/[pcre]/code/trunk/configure
ViewVC logotype

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (show annotations)
Sat Feb 24 21:40:24 2007 UTC (8 years, 4 months ago) by nigel
File size: 269860 byte(s)
Error occurred while calculating annotation data.
Load pcre-4.4 into code/trunk.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator. Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
250 esac
251 fi
252
253
254 # Check that we are running under the correct shell.
255 SHELL=${CONFIG_SHELL-/bin/sh}
256
257 case X$ECHO in
258 X*--fallback-echo)
259 # Remove one level of quotation (which was required for Make).
260 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261 ;;
262 esac
263
264 echo=${ECHO-echo}
265 if test "X$1" = X--no-reexec; then
266 # Discard the --no-reexec flag, and continue.
267 shift
268 elif test "X$1" = X--fallback-echo; then
269 # Avoid inline document here, it may be left over
270 :
271 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
272 # Yippee, $echo works!
273 :
274 else
275 # Restart under the correct shell.
276 exec $SHELL "$0" --no-reexec ${1+"$@"}
277 fi
278
279 if test "X$1" = X--fallback-echo; then
280 # used as fallback echo
281 shift
282 cat <<EOF
283
284 EOF
285 exit 0
286 fi
287
288 # The HP-UX ksh and POSIX shell print the target directory to stdout
289 # if CDPATH is set.
290 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
291
292 if test -z "$ECHO"; then
293 if test "X${echo_test_string+set}" != Xset; then
294 # find a string as large as possible, as long as the shell can cope with it
295 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
298 echo_test_string="`eval $cmd`" &&
299 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 then
301 break
302 fi
303 done
304 fi
305
306 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308 test "X$echo_testing_string" = "X$echo_test_string"; then
309 :
310 else
311 # The Solaris, AIX, and Digital Unix default echo programs unquote
312 # backslashes. This makes it impossible to quote backslashes using
313 # echo "$something" | sed 's/\\/\\\\/g'
314 #
315 # So, first we look for a working echo in the user's PATH.
316
317 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
318 for dir in $PATH /usr/ucb; do
319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322 test "X$echo_testing_string" = "X$echo_test_string"; then
323 echo="$dir/echo"
324 break
325 fi
326 done
327 IFS="$save_ifs"
328
329 if test "X$echo" = Xecho; then
330 # We didn't find a better echo, so look for alternatives.
331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333 test "X$echo_testing_string" = "X$echo_test_string"; then
334 # This shell has a builtin print -r that does the trick.
335 echo='print -r'
336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337 test "X$CONFIG_SHELL" != X/bin/ksh; then
338 # If we have ksh, try running configure again with it.
339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340 export ORIGINAL_CONFIG_SHELL
341 CONFIG_SHELL=/bin/ksh
342 export CONFIG_SHELL
343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344 else
345 # Try using printf.
346 echo='printf %s\n'
347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 # Cool, printf works
351 :
352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357 export CONFIG_SHELL
358 SHELL="$CONFIG_SHELL"
359 export SHELL
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362 test "X$echo_testing_string" = 'X\t' &&
363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364 test "X$echo_testing_string" = "X$echo_test_string"; then
365 echo="$CONFIG_SHELL $0 --fallback-echo"
366 else
367 # maybe with a smaller string...
368 prev=:
369
370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 then
373 break
374 fi
375 prev="$cmd"
376 done
377
378 if test "$prev" != 'sed 50q "$0"'; then
379 echo_test_string=`eval $prev`
380 export echo_test_string
381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382 else
383 # Oops. We lost completely, so just stick with echo.
384 echo=echo
385 fi
386 fi
387 fi
388 fi
389 fi
390 fi
391
392 # Copy echo and quote the copy suitably for passing to libtool from
393 # the Makefile, instead of quoting the original, which is used later.
394 ECHO=$echo
395 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 fi
398
399
400
401 # Name of the host.
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
418
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
423
424 # Identity of this package.
425 PACKAGE_NAME=
426 PACKAGE_TARNAME=
427 PACKAGE_VERSION=
428 PACKAGE_STRING=
429 PACKAGE_BUGREPORT=
430
431 ac_unique_file="dftables.c"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 # include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 # include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 # include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CFLAGS_FOR_BUILD HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION POSIX_MALLOC_THRESHOLD UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807 done
808
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829 do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882 else
883 ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930
931 #
932 # Report the --help message.
933 #
934 if test "$ac_init_help" = "long"; then
935 # Omit some internal or obsolete options to make the list less imposing.
936 # The list generated by autoconf has been trimmed to remove many
937 # options that are totally irrelevant to PCRE (e.g. relating to X),
938 # or are not supported by its Makefile.
939 # The list generated by autoconf has been trimmed to remove many
940 # options that are totally irrelevant to PCRE (e.g. relating to X),
941 # or are not supported by its Makefile.
942 # This message is too long to be a string in the A/UX 3.1 sh.
943 cat <<_ACEOF
944 \`configure' configures this package to adapt to many kinds of systems.
945
946 Usage: $0 [OPTION]... [VAR=VALUE]...
947
948 To assign environment variables (e.g., CC, CFLAGS...), specify them as
949 VAR=VALUE. See below for descriptions of some of the useful variables.
950
951 Defaults for the options are specified in brackets.
952
953 Configuration:
954 -h, --help display this help and exit
955 --help=short display options specific to this package
956 --help=recursive display the short help of all the included packages
957 -V, --version display version information and exit
958 -q, --quiet, --silent do not print \`checking...' messages
959 --cache-file=FILE cache test results in FILE [disabled]
960 -C, --config-cache alias for \`--cache-file=config.cache'
961 -n, --no-create do not create output files
962 --srcdir=DIR find the sources in DIR [configure dir or \`..']
963
964 _ACEOF
965
966 cat <<_ACEOF
967 Installation directories:
968 --prefix=PREFIX install architecture-independent files in PREFIX
969 [$ac_default_prefix]
970 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
971 [PREFIX]
972
973 By default, \`make install' will install all the files in
974 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
975 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
976 for instance \`--prefix=\$HOME'.
977
978 For better control, use the options below.
979
980 Fine tuning of the installation directories:
981 --bindir=DIR user executables [EPREFIX/bin]
982 --libdir=DIR object code libraries [EPREFIX/lib]
983 --includedir=DIR C header files [PREFIX/include]
984 --mandir=DIR man documentation [PREFIX/man]
985 _ACEOF
986
987 cat <<\_ACEOF
988
989 _ACEOF
990 fi
991
992 if test -n "$ac_init_help"; then
993
994 cat <<\_ACEOF
995
996 Optional Features:
997 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
998 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
999 --enable-shared build shared libraries default=yes
1000 --enable-static build static libraries default=yes
1001 --enable-fast-install optimize for fast installation default=yes
1002 --disable-libtool-lock avoid locking (might break parallel builds)
1003 --enable-utf8 enable UTF8 support
1004 --enable-newline-is-cr use CR as the newline character
1005 --enable-newline-is-lf use LF as the newline character
1006
1007 Optional Packages:
1008 --with-gnu-ld assume the C compiler uses GNU ld default=no
1009 --with-pic try to use only PIC/non-PIC objects default=use both
1010 --with-posix-malloc-threshold=5 threshold for POSIX malloc usage
1011 --with-link-size=2 internal link size (2, 3, or 4 allowed)
1012 --with-match-limit=10000000 default limit on internal looping)
1013
1014 Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1022
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1025
1026 _ACEOF
1027 fi
1028
1029 if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1035
1036 if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041 ac_dir_suffix= ac_top_builddir=
1042 fi
1043
1044 case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1060 # absolute.
1061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1062 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1065
1066 cd $ac_dir
1067 # Check for guested configure; otherwise get Cygnus style configure.
1068 if test -f $ac_srcdir/configure.gnu; then
1069 echo
1070 $SHELL $ac_srcdir/configure.gnu --help=recursive
1071 elif test -f $ac_srcdir/configure; then
1072 echo
1073 $SHELL $ac_srcdir/configure --help=recursive
1074 elif test -f $ac_srcdir/configure.ac ||
1075 test -f $ac_srcdir/configure.in; then
1076 echo
1077 $ac_configure --help
1078 else
1079 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1080 fi
1081 cd $ac_popdir
1082 done
1083 fi
1084
1085 test -n "$ac_init_help" && exit 0
1086 if $ac_init_version; then
1087 cat <<\_ACEOF
1088
1089 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1090 Free Software Foundation, Inc.
1091 This configure script is free software; the Free Software Foundation
1092 gives unlimited permission to copy, distribute and modify it.
1093 _ACEOF
1094 exit 0
1095 fi
1096 exec 5>config.log
1097 cat >&5 <<_ACEOF
1098 This file contains any messages produced by compilers while
1099 running configure, to aid debugging if configure makes a mistake.
1100
1101 It was created by $as_me, which was
1102 generated by GNU Autoconf 2.57. Invocation command line was
1103
1104 $ $0 $@
1105
1106 _ACEOF
1107 {
1108 cat <<_ASUNAME
1109 ## --------- ##
1110 ## Platform. ##
1111 ## --------- ##
1112
1113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1118
1119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1120 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1121
1122 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1123 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1125 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1126 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1127 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1128 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1129
1130 _ASUNAME
1131
1132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1133 for as_dir in $PATH
1134 do
1135 IFS=$as_save_IFS
1136 test -z "$as_dir" && as_dir=.
1137 echo "PATH: $as_dir"
1138 done
1139
1140 } >&5
1141
1142 cat >&5 <<_ACEOF
1143
1144
1145 ## ----------- ##
1146 ## Core tests. ##
1147 ## ----------- ##
1148
1149 _ACEOF
1150
1151
1152 # Keep a trace of the command line.
1153 # Strip out --no-create and --no-recursion so they do not pile up.
1154 # Strip out --silent because we don't want to record it for future runs.
1155 # Also quote any args containing shell meta-characters.
1156 # Make two passes to allow for proper duplicate-argument suppression.
1157 ac_configure_args=
1158 ac_configure_args0=
1159 ac_configure_args1=
1160 ac_sep=
1161 ac_must_keep_next=false
1162 for ac_pass in 1 2
1163 do
1164 for ac_arg
1165 do
1166 case $ac_arg in
1167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 continue ;;
1171 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1172 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1173 esac
1174 case $ac_pass in
1175 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1176 2)
1177 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1178 if test $ac_must_keep_next = true; then
1179 ac_must_keep_next=false # Got value, back to normal.
1180 else
1181 case $ac_arg in
1182 *=* | --config-cache | -C | -disable-* | --disable-* \
1183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1185 | -with-* | --with-* | -without-* | --without-* | --x)
1186 case "$ac_configure_args0 " in
1187 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1188 esac
1189 ;;
1190 -* ) ac_must_keep_next=true ;;
1191 esac
1192 fi
1193 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1194 # Get rid of the leading space.
1195 ac_sep=" "
1196 ;;
1197 esac
1198 done
1199 done
1200 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1201 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1202
1203 # When interrupted or exit'd, cleanup temporary files, and complete
1204 # config.log. We remove comments because anyway the quotes in there
1205 # would cause problems or look ugly.
1206 # WARNING: Be sure not to use single quotes in there, as some shells,
1207 # such as our DU 5.0 friend, will then `close' the trap.
1208 trap 'exit_status=$?
1209 # Save into config.log some information that might help in debugging.
1210 {
1211 echo
1212
1213 cat <<\_ASBOX
1214 ## ---------------- ##
1215 ## Cache variables. ##
1216 ## ---------------- ##
1217 _ASBOX
1218 echo
1219 # The following way of writing the cache mishandles newlines in values,
1220 {
1221 (set) 2>&1 |
1222 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1223 *ac_space=\ *)
1224 sed -n \
1225 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1227 ;;
1228 *)
1229 sed -n \
1230 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1231 ;;
1232 esac;
1233 }
1234 echo
1235
1236 cat <<\_ASBOX
1237 ## ----------------- ##
1238 ## Output variables. ##
1239 ## ----------------- ##
1240 _ASBOX
1241 echo
1242 for ac_var in $ac_subst_vars
1243 do
1244 eval ac_val=$`echo $ac_var`
1245 echo "$ac_var='"'"'$ac_val'"'"'"
1246 done | sort
1247 echo
1248
1249 if test -n "$ac_subst_files"; then
1250 cat <<\_ASBOX
1251 ## ------------- ##
1252 ## Output files. ##
1253 ## ------------- ##
1254 _ASBOX
1255 echo
1256 for ac_var in $ac_subst_files
1257 do
1258 eval ac_val=$`echo $ac_var`
1259 echo "$ac_var='"'"'$ac_val'"'"'"
1260 done | sort
1261 echo
1262 fi
1263
1264 if test -s confdefs.h; then
1265 cat <<\_ASBOX
1266 ## ----------- ##
1267 ## confdefs.h. ##
1268 ## ----------- ##
1269 _ASBOX
1270 echo
1271 sed "/^$/d" confdefs.h | sort
1272 echo
1273 fi
1274 test "$ac_signal" != 0 &&
1275 echo "$as_me: caught signal $ac_signal"
1276 echo "$as_me: exit $exit_status"
1277 } >&5
1278 rm -f core core.* *.core &&
1279 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1280 exit $exit_status
1281 ' 0
1282 for ac_signal in 1 2 13 15; do
1283 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1284 done
1285 ac_signal=0
1286
1287 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1288 rm -rf conftest* confdefs.h
1289 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1290 echo >confdefs.h
1291
1292 # Predefined preprocessor variables.
1293
1294 cat >>confdefs.h <<_ACEOF
1295 #define PACKAGE_NAME "$PACKAGE_NAME"
1296 _ACEOF
1297
1298
1299 cat >>confdefs.h <<_ACEOF
1300 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1301 _ACEOF
1302
1303
1304 cat >>confdefs.h <<_ACEOF
1305 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1306 _ACEOF
1307
1308
1309 cat >>confdefs.h <<_ACEOF
1310 #define PACKAGE_STRING "$PACKAGE_STRING"
1311 _ACEOF
1312
1313
1314 cat >>confdefs.h <<_ACEOF
1315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1316 _ACEOF
1317
1318
1319 # Let the site file select an alternate cache file if it wants to.
1320 # Prefer explicitly selected file to automatically selected ones.
1321 if test -z "$CONFIG_SITE"; then
1322 if test "x$prefix" != xNONE; then
1323 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1324 else
1325 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1326 fi
1327 fi
1328 for ac_site_file in $CONFIG_SITE; do
1329 if test -r "$ac_site_file"; then
1330 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1331 echo "$as_me: loading site script $ac_site_file" >&6;}
1332 sed 's/^/| /' "$ac_site_file" >&5
1333 . "$ac_site_file"
1334 fi
1335 done
1336
1337 if test -r "$cache_file"; then
1338 # Some versions of bash will fail to source /dev/null (special
1339 # files actually), so we avoid doing that.
1340 if test -f "$cache_file"; then
1341 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1342 echo "$as_me: loading cache $cache_file" >&6;}
1343 case $cache_file in
1344 [\\/]* | ?:[\\/]* ) . $cache_file;;
1345 *) . ./$cache_file;;
1346 esac
1347 fi
1348 else
1349 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1350 echo "$as_me: creating cache $cache_file" >&6;}
1351 >$cache_file
1352 fi
1353
1354 # Check that the precious variables saved in the cache have kept the same
1355 # value.
1356 ac_cache_corrupted=false
1357 for ac_var in `(set) 2>&1 |
1358 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1359 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1360 eval ac_new_set=\$ac_env_${ac_var}_set
1361 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1362 eval ac_new_val="\$ac_env_${ac_var}_value"
1363 case $ac_old_set,$ac_new_set in
1364 set,)
1365 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1366 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1367 ac_cache_corrupted=: ;;
1368 ,set)
1369 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1370 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1371 ac_cache_corrupted=: ;;
1372 ,);;
1373 *)
1374 if test "x$ac_old_val" != "x$ac_new_val"; then
1375 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1376 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1377 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1378 echo "$as_me: former value: $ac_old_val" >&2;}
1379 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1380 echo "$as_me: current value: $ac_new_val" >&2;}
1381 ac_cache_corrupted=:
1382 fi;;
1383 esac
1384 # Pass precious variables to config.status.
1385 if test "$ac_new_set" = set; then
1386 case $ac_new_val in
1387 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1388 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1389 *) ac_arg=$ac_var=$ac_new_val ;;
1390 esac
1391 case " $ac_configure_args " in
1392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1393 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1394 esac
1395 fi
1396 done
1397 if $ac_cache_corrupted; then
1398 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1399 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1400 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1401 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1402 { (exit 1); exit 1; }; }
1403 fi
1404
1405 ac_ext=c
1406 ac_cpp='$CPP $CPPFLAGS'
1407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433 ac_config_headers="$ac_config_headers config.h:config.in"
1434
1435
1436
1437 PCRE_MAJOR=4
1438 PCRE_MINOR=4
1439 PCRE_DATE=21-August-2003
1440 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1441
1442
1443 POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
1444
1445
1446 PCRE_LIB_VERSION=0:1:0
1447 PCRE_POSIXLIB_VERSION=0:0:0
1448
1449
1450 ac_ext=c
1451 ac_cpp='$CPP $CPPFLAGS'
1452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1457 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1465 else
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 break 2
1476 fi
1477 done
1478 done
1479
1480 fi
1481 fi
1482 CC=$ac_cv_prog_CC
1483 if test -n "$CC"; then
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1486 else
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489 fi
1490
1491 fi
1492 if test -z "$ac_cv_prog_CC"; then
1493 ac_ct_CC=$CC
1494 # Extract the first word of "gcc", so it can be a program name with args.
1495 set dummy gcc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="gcc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
1514 fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521 if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523 echo "${ECHO_T}$ac_ct_CC" >&6
1524 else
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529 CC=$ac_ct_CC
1530 else
1531 CC="$ac_cv_prog_CC"
1532 fi
1533
1534 if test -z "$CC"; then
1535 if test -n "$ac_tool_prefix"; then
1536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 ac_cv_prog_CC="${ac_tool_prefix}cc"
1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 break 2
1556 fi
1557 done
1558 done
1559
1560 fi
1561 fi
1562 CC=$ac_cv_prog_CC
1563 if test -n "$CC"; then
1564 echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1566 else
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1569 fi
1570
1571 fi
1572 if test -z "$ac_cv_prog_CC"; then
1573 ac_ct_CC=$CC
1574 # Extract the first word of "cc", so it can be a program name with args.
1575 set dummy cc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 if test -n "$ac_ct_CC"; then
1582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_ac_ct_CC="cc"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 break 2
1594 fi
1595 done
1596 done
1597
1598 fi
1599 fi
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1604 else
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609 CC=$ac_ct_CC
1610 else
1611 CC="$ac_cv_prog_CC"
1612 fi
1613
1614 fi
1615 if test -z "$CC"; then
1616 # Extract the first word of "cc", so it can be a program name with args.
1617 set dummy cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else
1626 ac_prog_rejected=no
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1635 ac_prog_rejected=yes
1636 continue
1637 fi
1638 ac_cv_prog_CC="cc"
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640 break 2
1641 fi
1642 done
1643 done
1644
1645 if test $ac_prog_rejected = yes; then
1646 # We found a bogon in the path, so make sure we never use it.
1647 set dummy $ac_cv_prog_CC
1648 shift
1649 if test $# != 0; then
1650 # We chose a different compiler from the bogus one.
1651 # However, it has the same basename, so the bogon will be chosen
1652 # first if we set CC to just the basename; use the full file name.
1653 shift
1654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1655 fi
1656 fi
1657 fi
1658 fi
1659 CC=$ac_cv_prog_CC
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1663 else
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1666 fi
1667
1668 fi
1669 if test -z "$CC"; then
1670 if test -n "$ac_tool_prefix"; then
1671 for ac_prog in cl
1672 do
1673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 break 2
1693 fi
1694 done
1695 done
1696
1697 fi
1698 fi
1699 CC=$ac_cv_prog_CC
1700 if test -n "$CC"; then
1701 echo "$as_me:$LINENO: result: $CC" >&5
1702 echo "${ECHO_T}$CC" >&6
1703 else
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708 test -n "$CC" && break
1709 done
1710 fi
1711 if test -z "$CC"; then
1712 ac_ct_CC=$CC
1713 for ac_prog in cl
1714 do
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716 set dummy $ac_prog; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722 if test -n "$ac_ct_CC"; then
1723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_CC="$ac_prog"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 break 2
1735 fi
1736 done
1737 done
1738
1739 fi
1740 fi
1741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742 if test -n "$ac_ct_CC"; then
1743 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744 echo "${ECHO_T}$ac_ct_CC" >&6
1745 else
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 test -n "$ac_ct_CC" && break
1751 done
1752
1753 CC=$ac_ct_CC
1754 fi
1755
1756 fi
1757
1758
1759 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1760 See \`config.log' for more details." >&5
1761 echo "$as_me: error: no acceptable C compiler found in \$PATH
1762 See \`config.log' for more details." >&2;}
1763 { (exit 1); exit 1; }; }
1764
1765 # Provide some information about the compiler.
1766 echo "$as_me:$LINENO:" \
1767 "checking for C compiler version" >&5
1768 ac_compiler=`set X $ac_compile; echo $2`
1769 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1770 (eval $ac_compiler --version </dev/null >&5) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }
1774 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1775 (eval $ac_compiler -v </dev/null >&5) 2>&5
1776 ac_status=$?
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1780 (eval $ac_compiler -V </dev/null >&5) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784
1785 cat >conftest.$ac_ext <<_ACEOF
1786 #line $LINENO "configure"
1787 /* confdefs.h. */
1788 _ACEOF
1789 cat confdefs.h >>conftest.$ac_ext
1790 cat >>conftest.$ac_ext <<_ACEOF
1791 /* end confdefs.h. */
1792
1793 int
1794 main ()
1795 {
1796
1797 ;
1798 return 0;
1799 }
1800 _ACEOF
1801 ac_clean_files_save=$ac_clean_files
1802 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1803 # Try to create an executable without -o first, disregard a.out.
1804 # It will help us diagnose broken compilers, and finding out an intuition
1805 # of exeext.
1806 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1807 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1808 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1809 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1810 (eval $ac_link_default) 2>&5
1811 ac_status=$?
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; then
1814 # Find the output, starting from the most likely. This scheme is
1815 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1816 # resort.
1817
1818 # Be careful to initialize this variable, since it used to be cached.
1819 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1820 ac_cv_exeext=
1821 # b.out is created by i960 compilers.
1822 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1823 do
1824 test -f "$ac_file" || continue
1825 case $ac_file in
1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1827 ;;
1828 conftest.$ac_ext )
1829 # This is the source file.
1830 ;;
1831 [ab].out )
1832 # We found the default executable, but exeext='' is most
1833 # certainly right.
1834 break;;
1835 *.* )
1836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837 # FIXME: I believe we export ac_cv_exeext for Libtool,
1838 # but it would be cool to find out if it's true. Does anybody
1839 # maintain Libtool? --akim.
1840 export ac_cv_exeext
1841 break;;
1842 * )
1843 break;;
1844 esac
1845 done
1846 else
1847 echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: C compiler cannot create executables
1853 See \`config.log' for more details." >&2;}
1854 { (exit 77); exit 77; }; }
1855 fi
1856
1857 ac_exeext=$ac_cv_exeext
1858 echo "$as_me:$LINENO: result: $ac_file" >&5
1859 echo "${ECHO_T}$ac_file" >&6
1860
1861 # Check the compiler produces executables we can run. If not, either
1862 # the compiler is broken, or we cross compile.
1863 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1866 # If not cross compiling, check that we can run a simple program.
1867 if test "$cross_compiling" != yes; then
1868 if { ac_try='./$ac_file'
1869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1870 (eval $ac_try) 2>&5
1871 ac_status=$?
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; }; then
1874 cross_compiling=no
1875 else
1876 if test "$cross_compiling" = maybe; then
1877 cross_compiling=yes
1878 else
1879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1880 If you meant to cross compile, use \`--host'.
1881 See \`config.log' for more details." >&5
1882 echo "$as_me: error: cannot run C compiled programs.
1883 If you meant to cross compile, use \`--host'.
1884 See \`config.log' for more details." >&2;}
1885 { (exit 1); exit 1; }; }
1886 fi
1887 fi
1888 fi
1889 echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1891
1892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1893 ac_clean_files=$ac_clean_files_save
1894 # Check the compiler produces executables we can run. If not, either
1895 # the compiler is broken, or we cross compile.
1896 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1898 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1899 echo "${ECHO_T}$cross_compiling" >&6
1900
1901 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1904 (eval $ac_link) 2>&5
1905 ac_status=$?
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; then
1908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1909 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1910 # work properly (i.e., refer to `conftest.exe'), while it won't with
1911 # `rm'.
1912 for ac_file in conftest.exe conftest conftest.*; do
1913 test -f "$ac_file" || continue
1914 case $ac_file in
1915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1917 export ac_cv_exeext
1918 break;;
1919 * ) break;;
1920 esac
1921 done
1922 else
1923 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1924 See \`config.log' for more details." >&5
1925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1926 See \`config.log' for more details." >&2;}
1927 { (exit 1); exit 1; }; }
1928 fi
1929
1930 rm -f conftest$ac_cv_exeext
1931 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1932 echo "${ECHO_T}$ac_cv_exeext" >&6
1933
1934 rm -f conftest.$ac_ext
1935 EXEEXT=$ac_cv_exeext
1936 ac_exeext=$EXEEXT
1937 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1938 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1939 if test "${ac_cv_objext+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line $LINENO "configure"
1944 /* confdefs.h. */
1945 _ACEOF
1946 cat confdefs.h >>conftest.$ac_ext
1947 cat >>conftest.$ac_ext <<_ACEOF
1948 /* end confdefs.h. */
1949
1950 int
1951 main ()
1952 {
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 rm -f conftest.o conftest.obj
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; then
1964 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1965 case $ac_file in
1966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1968 break;;
1969 esac
1970 done
1971 else
1972 echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1976 See \`config.log' for more details." >&5
1977 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1978 See \`config.log' for more details." >&2;}
1979 { (exit 1); exit 1; }; }
1980 fi
1981
1982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1983 fi
1984 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1985 echo "${ECHO_T}$ac_cv_objext" >&6
1986 OBJEXT=$ac_cv_objext
1987 ac_objext=$OBJEXT
1988 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1989 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1990 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 cat >conftest.$ac_ext <<_ACEOF
1994 #line $LINENO "configure"
1995 /* confdefs.h. */
1996 _ACEOF
1997 cat confdefs.h >>conftest.$ac_ext
1998 cat >>conftest.$ac_ext <<_ACEOF
1999 /* end confdefs.h. */
2000
2001 int
2002 main ()
2003 {
2004 #ifndef __GNUC__
2005 choke me
2006 #endif
2007
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 rm -f conftest.$ac_objext
2013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014 (eval $ac_compile) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -s conftest.$ac_objext'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 (eval $ac_try) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2024 ac_compiler_gnu=yes
2025 else
2026 echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2028
2029 ac_compiler_gnu=no
2030 fi
2031 rm -f conftest.$ac_objext conftest.$ac_ext
2032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2033
2034 fi
2035 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2036 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2037 GCC=`test $ac_compiler_gnu = yes && echo yes`
2038 ac_test_CFLAGS=${CFLAGS+set}
2039 ac_save_CFLAGS=$CFLAGS
2040 CFLAGS="-g"
2041 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2042 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2043 if test "${ac_cv_prog_cc_g+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 /* confdefs.h. */
2049 _ACEOF
2050 cat confdefs.h >>conftest.$ac_ext
2051 cat >>conftest.$ac_ext <<_ACEOF
2052 /* end confdefs.h. */
2053
2054 int
2055 main ()
2056 {
2057
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064 (eval $ac_compile) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_g=yes
2075 else
2076 echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_cv_prog_cc_g=no
2080 fi
2081 rm -f conftest.$ac_objext conftest.$ac_ext
2082 fi
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2089 CFLAGS="-g -O2"
2090 else
2091 CFLAGS="-g"
2092 fi
2093 else
2094 if test "$GCC" = yes; then
2095 CFLAGS="-O2"
2096 else
2097 CFLAGS=
2098 fi
2099 fi
2100 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2101 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2102 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 ac_cv_prog_cc_stdc=no
2106 ac_save_CC=$CC
2107 cat >conftest.$ac_ext <<_ACEOF
2108 #line $LINENO "configure"
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2114 #include <stdarg.h>
2115 #include <stdio.h>
2116 #include <sys/types.h>
2117 #include <sys/stat.h>
2118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2119 struct buf { int x; };
2120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2121 static char *e (p, i)
2122 char **p;
2123 int i;
2124 {
2125 return p[i];
2126 }
2127 static char *f (char * (*g) (char **, int), char **p, ...)
2128 {
2129 char *s;
2130 va_list v;
2131 va_start (v,p);
2132 s = g (p, va_arg (v,int));
2133 va_end (v);
2134 return s;
2135 }
2136 int test (int i, double x);
2137 struct s1 {int (*f) (int a);};
2138 struct s2 {int (*f) (double a);};
2139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2140 int argc;
2141 char **argv;
2142 int
2143 main ()
2144 {
2145 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2146 ;
2147 return 0;
2148 }
2149 _ACEOF
2150 # Don't try gcc -ansi; that turns off useful extensions and
2151 # breaks some systems' header files.
2152 # AIX -qlanglvl=ansi
2153 # Ultrix and OSF/1 -std1
2154 # HP-UX 10.20 and later -Ae
2155 # HP-UX older versions -Aa -D_HPUX_SOURCE
2156 # SVR4 -Xc -D__EXTENSIONS__
2157 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2158 do
2159 CC="$ac_save_CC $ac_arg"
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 ac_cv_prog_cc_stdc=$ac_arg
2173 break
2174 else
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178 fi
2179 rm -f conftest.$ac_objext
2180 done
2181 rm -f conftest.$ac_ext conftest.$ac_objext
2182 CC=$ac_save_CC
2183
2184 fi
2185
2186 case "x$ac_cv_prog_cc_stdc" in
2187 x|xno)
2188 echo "$as_me:$LINENO: result: none needed" >&5
2189 echo "${ECHO_T}none needed" >&6 ;;
2190 *)
2191 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2192 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2193 CC="$CC $ac_cv_prog_cc_stdc" ;;
2194 esac
2195
2196 # Some people use a C++ compiler to compile C. Since we use `exit',
2197 # in C++ we need to declare it. In case someone uses the same compiler
2198 # for both compiling C and C++ we need to have the C++ compiler decide
2199 # the declaration of exit, since it's the most demanding environment.
2200 cat >conftest.$ac_ext <<_ACEOF
2201 #ifndef __cplusplus
2202 choke me
2203 #endif
2204 _ACEOF
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 for ac_declaration in \
2218 ''\
2219 '#include <stdlib.h>' \
2220 'extern "C" void std::exit (int) throw (); using std::exit;' \
2221 'extern "C" void std::exit (int); using std::exit;' \
2222 'extern "C" void exit (int) throw ();' \
2223 'extern "C" void exit (int);' \
2224 'void exit (int);'
2225 do
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233 #include <stdlib.h>
2234 $ac_declaration
2235 int
2236 main ()
2237 {
2238 exit (42);
2239 ;
2240 return 0;
2241 }
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 (eval $ac_try) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 :
2256 else
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 continue
2261 fi
2262 rm -f conftest.$ac_objext conftest.$ac_ext
2263 cat >conftest.$ac_ext <<_ACEOF
2264 #line $LINENO "configure"
2265 /* confdefs.h. */
2266 _ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2270 $ac_declaration
2271 int
2272 main ()
2273 {
2274 exit (42);
2275 ;
2276 return 0;
2277 }
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 break
2292 else
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 fi
2297 rm -f conftest.$ac_objext conftest.$ac_ext
2298 done
2299 rm -f conftest*
2300 if test -n "$ac_declaration"; then
2301 echo '#ifdef __cplusplus' >>confdefs.h
2302 echo $ac_declaration >>confdefs.h
2303 echo '#endif' >>confdefs.h
2304 fi
2305
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 fi
2311 rm -f conftest.$ac_objext conftest.$ac_ext
2312 ac_ext=c
2313 ac_cpp='$CPP $CPPFLAGS'
2314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317
2318 ac_aux_dir=
2319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2320 if test -f $ac_dir/install-sh; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/install-sh -c"
2323 break
2324 elif test -f $ac_dir/install.sh; then
2325 ac_aux_dir=$ac_dir
2326 ac_install_sh="$ac_aux_dir/install.sh -c"
2327 break
2328 elif test -f $ac_dir/shtool; then
2329 ac_aux_dir=$ac_dir
2330 ac_install_sh="$ac_aux_dir/shtool install -c"
2331 break
2332 fi
2333 done
2334 if test -z "$ac_aux_dir"; then
2335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2337 { (exit 1); exit 1; }; }
2338 fi
2339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2342
2343 # Find a good install program. We prefer a C program (faster),
2344 # so one script is as good as another. But avoid the broken or
2345 # incompatible versions:
2346 # SysV /etc/install, /usr/sbin/install
2347 # SunOS /usr/etc/install
2348 # IRIX /sbin/install
2349 # AIX /bin/install
2350 # AmigaOS /C/install, which installs bootblocks on floppy discs
2351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2354 # ./install, which can be erroneously created by make from ./install.sh.
2355 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2357 if test -z "$INSTALL"; then
2358 if test "${ac_cv_path_install+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2363 do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 # Account for people who put trailing slashes in PATH elements.
2367 case $as_dir/ in
2368 ./ | .// | /cC/* | \
2369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2370 /usr/ucb/* ) ;;
2371 *)
2372 # OSF1 and SCO ODT 3.0 have their own names for install.
2373 # Don't use installbsd from OSF since it installs stuff as root
2374 # by default.
2375 for ac_prog in ginstall scoinst install; do
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2378 if test $ac_prog = install &&
2379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380 # AIX install. It has an incompatible calling convention.
2381 :
2382 elif test $ac_prog = install &&
2383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384 # program-specific install script used by HP pwplus--don't use.
2385 :
2386 else
2387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2388 break 3
2389 fi
2390 fi
2391 done
2392 done
2393 ;;
2394 esac
2395 done
2396
2397
2398 fi
2399 if test "${ac_cv_path_install+set}" = set; then
2400 INSTALL=$ac_cv_path_install
2401 else
2402 # As a last resort, use the slow shell script. We don't cache a
2403 # path for INSTALL within a source directory, because that will
2404 # break other packages using the cache if that directory is
2405 # removed, or if the path is relative.
2406 INSTALL=$ac_install_sh
2407 fi
2408 fi
2409 echo "$as_me:$LINENO: result: $INSTALL" >&5
2410 echo "${ECHO_T}$INSTALL" >&6
2411
2412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2413 # It thinks the first close brace ends the variable substitution.
2414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2415
2416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2417
2418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2419
2420
2421 # Check whether --enable-shared or --disable-shared was given.
2422 if test "${enable_shared+set}" = set; then
2423 enableval="$enable_shared"
2424 p=${PACKAGE-default}
2425 case $enableval in
2426 yes) enable_shared=yes ;;
2427 no) enable_shared=no ;;
2428 *)
2429 enable_shared=no
2430 # Look at the argument we got. We use all the common list separators.
2431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2432 for pkg in $enableval; do
2433 if test "X$pkg" = "X$p"; then
2434 enable_shared=yes
2435 fi
2436 done
2437 IFS="$ac_save_ifs"
2438 ;;
2439 esac
2440 else
2441 enable_shared=yes
2442 fi;
2443 # Check whether --enable-static or --disable-static was given.
2444 if test "${enable_static+set}" = set; then
2445 enableval="$enable_static"
2446 p=${PACKAGE-default}
2447 case $enableval in
2448 yes) enable_static=yes ;;
2449 no) enable_static=no ;;
2450 *)
2451 enable_static=no
2452 # Look at the argument we got. We use all the common list separators.
2453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2454 for pkg in $enableval; do
2455 if test "X$pkg" = "X$p"; then
2456 enable_static=yes
2457 fi
2458 done
2459 IFS="$ac_save_ifs"
2460 ;;
2461 esac
2462 else
2463 enable_static=yes
2464 fi;
2465 # Check whether --enable-fast-install or --disable-fast-install was given.
2466 if test "${enable_fast_install+set}" = set; then
2467 enableval="$enable_fast_install"
2468 p=${PACKAGE-default}
2469 case $enableval in
2470 yes) enable_fast_install=yes ;;
2471 no) enable_fast_install=no ;;
2472 *)
2473 enable_fast_install=no
2474 # Look at the argument we got. We use all the common list separators.
2475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2476 for pkg in $enableval; do
2477 if test "X$pkg" = "X$p"; then
2478 enable_fast_install=yes
2479 fi
2480 done
2481 IFS="$ac_save_ifs"
2482 ;;
2483 esac
2484 else
2485 enable_fast_install=yes
2486 fi;
2487 # Make sure we can run config.sub.
2488 $ac_config_sub sun4 >/dev/null 2>&1 ||
2489 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2490 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2491 { (exit 1); exit 1; }; }
2492
2493 echo "$as_me:$LINENO: checking build system type" >&5
2494 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2495 if test "${ac_cv_build+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 ac_cv_build_alias=$build_alias
2499 test -z "$ac_cv_build_alias" &&
2500 ac_cv_build_alias=`$ac_config_guess`
2501 test -z "$ac_cv_build_alias" &&
2502 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2503 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2504 { (exit 1); exit 1; }; }
2505 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2506 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2507 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2508 { (exit 1); exit 1; }; }
2509
2510 fi
2511 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2512 echo "${ECHO_T}$ac_cv_build" >&6
2513 build=$ac_cv_build
2514 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2515 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2516 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2517
2518
2519 echo "$as_me:$LINENO: checking host system type" >&5
2520 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2521 if test "${ac_cv_host+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 ac_cv_host_alias=$host_alias
2525 test -z "$ac_cv_host_alias" &&
2526 ac_cv_host_alias=$ac_cv_build_alias
2527 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2528 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2529 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2530 { (exit 1); exit 1; }; }
2531
2532 fi
2533 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2534 echo "${ECHO_T}$ac_cv_host" >&6
2535 host=$ac_cv_host
2536 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2537 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2538 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2539
2540
2541
2542 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2543 if test "${with_gnu_ld+set}" = set; then
2544 withval="$with_gnu_ld"
2545 test "$withval" = no || with_gnu_ld=yes
2546 else
2547 with_gnu_ld=no
2548 fi;
2549 ac_prog=ld
2550 if test "$GCC" = yes; then
2551 # Check if gcc -print-prog-name=ld gives a path.
2552 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2553 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2554 case $host in
2555 *-*-mingw*)
2556 # gcc leaves a trailing carriage return which upsets mingw
2557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2558 *)
2559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2560 esac
2561 case $ac_prog in
2562 # Accept absolute paths.
2563 [\\/]* | [A-Za-z]:[\\/]*)
2564 re_direlt='/[^/][^/]*/\.\./'
2565 # Canonicalize the path of ld
2566 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2567 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2568 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2569 done
2570 test -z "$LD" && LD="$ac_prog"
2571 ;;
2572 "")
2573 # If it fails, then pretend we aren't using GCC.
2574 ac_prog=ld
2575 ;;
2576 *)
2577 # If it is relative, then search for the first ld in PATH.
2578 with_gnu_ld=unknown
2579 ;;
2580 esac
2581 elif test "$with_gnu_ld" = yes; then
2582 echo "$as_me:$LINENO: checking for GNU ld" >&5
2583 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2584 else
2585 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2586 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2587 fi
2588 if test "${lt_cv_path_LD+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591 if test -z "$LD"; then
2592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2593 for ac_dir in $PATH; do
2594 test -z "$ac_dir" && ac_dir=.
2595 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2596 lt_cv_path_LD="$ac_dir/$ac_prog"
2597 # Check to see if the program is GNU ld. I'd rather use --version,
2598 # but apparently some GNU ld's only accept -v.
2599 # Break only if it was the GNU/non-GNU ld that we prefer.
2600 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2601 test "$with_gnu_ld" != no && break
2602 else
2603 test "$with_gnu_ld" != yes && break
2604 fi
2605 fi
2606 done
2607 IFS="$ac_save_ifs"
2608 else
2609 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2610 fi
2611 fi
2612
2613 LD="$lt_cv_path_LD"
2614 if test -n "$LD"; then
2615 echo "$as_me:$LINENO: result: $LD" >&5
2616 echo "${ECHO_T}$LD" >&6
2617 else
2618 echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6
2620 fi
2621 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2622 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2623 { (exit 1); exit 1; }; }
2624 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2625 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2626 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2630 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2631 lt_cv_prog_gnu_ld=yes
2632 else
2633 lt_cv_prog_gnu_ld=no
2634 fi
2635 fi
2636 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2637 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2638 with_gnu_ld=$lt_cv_prog_gnu_ld
2639
2640
2641 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2642 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2643 if test "${lt_cv_ld_reload_flag+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646 lt_cv_ld_reload_flag='-r'
2647 fi
2648 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2649 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2650 reload_flag=$lt_cv_ld_reload_flag
2651 test -n "$reload_flag" && reload_flag=" $reload_flag"
2652
2653 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2654 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2655 if test "${lt_cv_path_NM+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 if test -n "$NM"; then
2659 # Let the user override the test.
2660 lt_cv_path_NM="$NM"
2661 else
2662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2663 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2664 test -z "$ac_dir" && ac_dir=.
2665 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2666 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2667 # Check to see if the nm accepts a BSD-compat flag.
2668 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2669 # nm: unknown option "B" ignored
2670 # Tru64's nm complains that /dev/null is an invalid object file
2671 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2672 lt_cv_path_NM="$tmp_nm -B"
2673 break
2674 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2675 lt_cv_path_NM="$tmp_nm -p"
2676 break
2677 else
2678 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2679 continue # so that we can try to find one that supports BSD flags
2680 fi
2681 fi
2682 done
2683 IFS="$ac_save_ifs"
2684 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2685 fi
2686 fi
2687
2688 NM="$lt_cv_path_NM"
2689 echo "$as_me:$LINENO: result: $NM" >&5
2690 echo "${ECHO_T}$NM" >&6
2691
2692 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2693 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2694 LN_S=$as_ln_s
2695 if test "$LN_S" = "ln -s"; then
2696 echo "$as_me:$LINENO: result: yes" >&5
2697 echo "${ECHO_T}yes" >&6
2698 else
2699 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2700 echo "${ECHO_T}no, using $LN_S" >&6
2701 fi
2702
2703 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2704 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2705 if test "${lt_cv_deplibs_check_method+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 lt_cv_file_magic_cmd='$MAGIC_CMD'
2709 lt_cv_file_magic_test_file=
2710 lt_cv_deplibs_check_method='unknown'
2711 # Need to set the preceding variable on all platforms that support
2712 # interlibrary dependencies.
2713 # 'none' -- dependencies not supported.
2714 # `unknown' -- same as none, but documents that we really don't know.
2715 # 'pass_all' -- all dependencies passed with no checks.
2716 # 'test_compile' -- check by making test program.
2717 # ['file_magic [regex]'] -- check by looking for files in library path
2718 # which responds to the $file_magic_cmd with a given egrep regex.
2719 # If you have `file' or equivalent on your system and you're not sure
2720 # whether `pass_all' will *always* work, you probably want this one.
2721
2722 case $host_os in
2723 aix4* | aix5*)
2724 lt_cv_deplibs_check_method=pass_all
2725 ;;
2726
2727 beos*)
2728 lt_cv_deplibs_check_method=pass_all
2729 ;;
2730
2731 bsdi4*)
2732 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2733 lt_cv_file_magic_cmd='/usr/bin/file -L'
2734 lt_cv_file_magic_test_file=/shlib/libc.so
2735 ;;
2736
2737 cygwin* | mingw* | pw32*)
2738 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2739 lt_cv_file_magic_cmd='$OBJDUMP -f'
2740 ;;
2741
2742 darwin* | rhapsody*)
2743 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2744 lt_cv_file_magic_cmd='/usr/bin/file -L'
2745 case "$host_os" in
2746 rhapsody* | darwin1.012)
2747 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2748 ;;
2749 *) # Darwin 1.3 on
2750 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2751 ;;
2752 esac
2753 ;;
2754
2755 freebsd*)
2756 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2757 case $host_cpu in
2758 i*86 )
2759 # Not sure whether the presence of OpenBSD here was a mistake.
2760 # Let's accept both of them until this is cleared up.
2761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2762 lt_cv_file_magic_cmd=/usr/bin/file
2763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2764 ;;
2765 esac
2766 else
2767 lt_cv_deplibs_check_method=pass_all
2768 fi
2769 ;;
2770
2771 gnu*)
2772 lt_cv_deplibs_check_method=pass_all
2773 ;;
2774
2775 hpux10.20*|hpux11*)
2776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2777 lt_cv_file_magic_cmd=/usr/bin/file
2778 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2779 ;;
2780
2781 irix5* | irix6*)
2782 case $host_os in
2783 irix5*)
2784 # this will be overridden with pass_all, but let us keep it just in case
2785 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2786 ;;
2787 *)
2788 case $LD in
2789 *-32|*"-32 ") libmagic=32-bit;;
2790 *-n32|*"-n32 ") libmagic=N32;;
2791 *-64|*"-64 ") libmagic=64-bit;;
2792 *) libmagic=never-match;;
2793 esac
2794 # this will be overridden with pass_all, but let us keep it just in case
2795 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2796 ;;
2797 esac
2798 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2799 lt_cv_deplibs_check_method=pass_all
2800 ;;
2801
2802 # This must be Linux ELF.
2803 linux-gnu*)
2804 case $host_cpu in
2805 alpha* | i*86 | powerpc* | sparc* | ia64* )
2806 lt_cv_deplibs_check_method=pass_all ;;
2807 *)
2808 # glibc up to 2.1.1 does not perform some relocations on ARM
2809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2810 esac
2811 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2812 ;;
2813
2814 netbsd*)
2815 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2816 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2817 else
2818 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2819 fi
2820 ;;
2821
2822 newos6*)
2823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2824 lt_cv_file_magic_cmd=/usr/bin/file
2825 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2826 ;;
2827
2828 osf3* | osf4* | osf5*)
2829 # this will be overridden with pass_all, but let us keep it just in case
2830 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2831 lt_cv_file_magic_test_file=/shlib/libc.so
2832 lt_cv_deplibs_check_method=pass_all
2833 ;;
2834
2835 sco3.2v5*)
2836 lt_cv_deplibs_check_method=pass_all
2837 ;;
2838
2839 solaris*)
2840 lt_cv_deplibs_check_method=pass_all
2841 lt_cv_file_magic_test_file=/lib/libc.so
2842 ;;
2843
2844 sysv5uw[78]* | sysv4*uw2*)
2845 lt_cv_deplibs_check_method=pass_all
2846 ;;
2847
2848 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2849 case $host_vendor in
2850 motorola)
2851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2853 ;;
2854 ncr)
2855 lt_cv_deplibs_check_method=pass_all
2856 ;;
2857 sequent)
2858 lt_cv_file_magic_cmd='/bin/file'
2859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2860 ;;
2861 sni)
2862 lt_cv_file_magic_cmd='/bin/file'
2863 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2864 lt_cv_file_magic_test_file=/lib/libc.so
2865 ;;
2866 esac
2867 ;;
2868 esac
2869
2870 fi
2871 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2872 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2873 file_magic_cmd=$lt_cv_file_magic_cmd
2874 deplibs_check_method=$lt_cv_deplibs_check_method
2875
2876
2877
2878
2879
2880
2881
2882
2883 # Check for command to grab the raw symbol name followed by C symbol from nm.
2884 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2885 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889
2890 # These are sane defaults that work on at least a few old systems.
2891 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2892
2893 # Character class describing NM global symbol codes.
2894 symcode='[BCDEGRST]'
2895
2896 # Regexp to match symbols that can be accessed directly from C.
2897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2898
2899 # Transform the above into a raw symbol and a C symbol.
2900 symxfrm='\1 \2\3 \3'
2901
2902 # Transform an extracted symbol line into a proper C declaration
2903 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2904
2905 # Define system-specific variables.
2906 case $host_os in
2907 aix*)
2908 symcode='[BCDT]'
2909 ;;
2910 cygwin* | mingw* | pw32*)
2911 symcode='[ABCDGISTW]'
2912 ;;
2913 hpux*) # Its linker distinguishes data from code symbols
2914 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2915 ;;
2916 irix*)
2917 symcode='[BCDEGRST]'
2918 ;;
2919 solaris* | sysv5*)
2920 symcode='[BDT]'
2921 ;;
2922 sysv4)
2923 symcode='[DFNSTU]'
2924 ;;
2925 esac
2926
2927 # Handle CRLF in mingw tool chain
2928 opt_cr=
2929 case $host_os in
2930 mingw*)
2931 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2932 ;;
2933 esac
2934
2935 # If we're using GNU nm, then use its standard symbol codes.
2936 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2937 symcode='[ABCDGISTW]'
2938 fi
2939
2940 # Try without a prefix undercore, then with it.
2941 for ac_symprfx in "" "_"; do
2942
2943 # Write the raw and C identifiers.
2944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2945
2946 # Check to see that the pipe works correctly.
2947 pipe_works=no
2948 rm -f conftest*
2949 cat > conftest.$ac_ext <<EOF
2950 #ifdef __cplusplus
2951 extern "C" {
2952 #endif
2953 char nm_test_var;
2954 void nm_test_func(){}
2955 #ifdef __cplusplus
2956 }
2957 #endif
2958 int main(){nm_test_var='a';nm_test_func();return(0);}
2959 EOF
2960
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962 (eval $ac_compile) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # Now try to grab the symbols.
2967 nlist=conftest.nm
2968 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2969 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && test -s "$nlist"; then
2973 # Try sorting and uniquifying the output.
2974 if sort "$nlist" | uniq > "$nlist"T; then
2975 mv -f "$nlist"T "$nlist"
2976 else
2977 rm -f "$nlist"T
2978 fi
2979
2980 # Make sure that we snagged all the symbols we need.
2981 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2982 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2983 cat <<EOF > conftest.$ac_ext
2984 #ifdef __cplusplus
2985 extern "C" {
2986 #endif
2987
2988 EOF
2989 # Now generate the symbol file.
2990 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2991
2992 cat <<EOF >> conftest.$ac_ext
2993 #if defined (__STDC__) && __STDC__
2994 # define lt_ptr_t void *
2995 #else
2996 # define lt_ptr_t char *
2997 # define const
2998 #endif
2999
3000 /* The mapping between symbol names and symbols. */
3001 const struct {
3002 const char *name;
3003 lt_ptr_t address;
3004 }
3005 lt_preloaded_symbols[] =
3006 {
3007 EOF
3008 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3009 cat <<\EOF >> conftest.$ac_ext
3010 {0, (lt_ptr_t) 0}
3011 };
3012
3013 #ifdef __cplusplus
3014 }
3015 #endif
3016 EOF
3017 # Now try linking the two files.
3018 mv conftest.$ac_objext conftstm.$ac_objext
3019 save_LIBS="$LIBS"
3020 save_CFLAGS="$CFLAGS"
3021 LIBS="conftstm.$ac_objext"
3022 CFLAGS="$CFLAGS$no_builtin_flag"
3023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3024 (eval $ac_link) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && test -s conftest; then
3028 pipe_works=yes
3029 fi
3030 LIBS="$save_LIBS"
3031 CFLAGS="$save_CFLAGS"
3032 else
3033 echo "cannot find nm_test_func in $nlist" >&5
3034 fi
3035 else
3036 echo "cannot find nm_test_var in $nlist" >&5
3037 fi
3038 else
3039 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3040 fi
3041 else
3042 echo "$progname: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3044 fi
3045 rm -f conftest* conftst*
3046
3047 # Do not use the global_symbol_pipe unless it works.
3048 if test "$pipe_works" = yes; then
3049 break
3050 else
3051 lt_cv_sys_global_symbol_pipe=
3052 fi
3053 done
3054
3055 fi
3056
3057 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3059 global_symbol_to_cdecl=
3060 else
3061 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3062 fi
3063 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3064 echo "$as_me:$LINENO: result: failed" >&5
3065 echo "${ECHO_T}failed" >&6
3066 else
3067 echo "$as_me:$LINENO: result: ok" >&5
3068 echo "${ECHO_T}ok" >&6
3069 fi
3070
3071 ac_ext=c
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3077 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3078 # On Suns, sometimes $CPP names a directory.
3079 if test -n "$CPP" && test -d "$CPP"; then
3080 CPP=
3081 fi
3082 if test -z "$CPP"; then
3083 if test "${ac_cv_prog_CPP+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 # Double quotes because CPP needs to be expanded
3087 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3088 do
3089 ac_preproc_ok=false
3090 for ac_c_preproc_warn_flag in '' yes
3091 do
3092 # Use a header file that comes with gcc, so configuring glibc
3093 # with a fresh cross-compiler works.
3094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3095 # <limits.h> exists even on freestanding compilers.
3096 # On the NeXT, cc -E runs the code through the compiler's parser,
3097 # not just through cpp. "Syntax error" is here to catch this case.
3098 cat >conftest.$ac_ext <<_ACEOF
3099 #line $LINENO "configure"
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3105 #ifdef __STDC__
3106 # include <limits.h>
3107 #else
3108 # include <assert.h>
3109 #endif
3110 Syntax error
3111 _ACEOF
3112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } >/dev/null; then
3120 if test -s conftest.err; then
3121 ac_cpp_err=$ac_c_preproc_warn_flag
3122 else
3123 ac_cpp_err=
3124 fi
3125 else
3126 ac_cpp_err=yes
3127 fi
3128 if test -z "$ac_cpp_err"; then
3129 :
3130 else
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 # Broken: fails on valid input.
3135 continue
3136 fi
3137 rm -f conftest.err conftest.$ac_ext
3138
3139 # OK, works on sane cases. Now check whether non-existent headers
3140 # can be detected and how.
3141 cat >conftest.$ac_ext <<_ACEOF
3142 #line $LINENO "configure"
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3148 #include <ac_nonexistent.h>
3149 _ACEOF
3150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } >/dev/null; then
3158 if test -s conftest.err; then
3159 ac_cpp_err=$ac_c_preproc_warn_flag
3160 else
3161 ac_cpp_err=
3162 fi
3163 else
3164 ac_cpp_err=yes
3165 fi
3166 if test -z "$ac_cpp_err"; then
3167 # Broken: success on invalid input.
3168 continue
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 # Passes both tests.
3174 ac_preproc_ok=:
3175 break
3176 fi
3177 rm -f conftest.err conftest.$ac_ext
3178
3179 done
3180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3181 rm -f conftest.err conftest.$ac_ext
3182 if $ac_preproc_ok; then
3183 break
3184 fi
3185
3186 done
3187 ac_cv_prog_CPP=$CPP
3188
3189 fi
3190 CPP=$ac_cv_prog_CPP
3191 else
3192 ac_cv_prog_CPP=$CPP
3193 fi
3194 echo "$as_me:$LINENO: result: $CPP" >&5
3195 echo "${ECHO_T}$CPP" >&6
3196 ac_preproc_ok=false
3197 for ac_c_preproc_warn_flag in '' yes
3198 do
3199 # Use a header file that comes with gcc, so configuring glibc
3200 # with a fresh cross-compiler works.
3201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3202 # <limits.h> exists even on freestanding compilers.
3203 # On the NeXT, cc -E runs the code through the compiler's parser,
3204 # not just through cpp. "Syntax error" is here to catch this case.
3205 cat >conftest.$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #ifdef __STDC__
3213 # include <limits.h>
3214 #else
3215 # include <assert.h>
3216 #endif
3217 Syntax error
3218 _ACEOF
3219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } >/dev/null; then
3227 if test -s conftest.err; then
3228 ac_cpp_err=$ac_c_preproc_warn_flag
3229 else
3230 ac_cpp_err=
3231 fi
3232 else
3233 ac_cpp_err=yes
3234 fi
3235 if test -z "$ac_cpp_err"; then
3236 :
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 # Broken: fails on valid input.
3242 continue
3243 fi
3244 rm -f conftest.err conftest.$ac_ext
3245
3246 # OK, works on sane cases. Now check whether non-existent headers
3247 # can be detected and how.
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 #include <ac_nonexistent.h>
3256 _ACEOF
3257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
3267 else
3268 ac_cpp_err=
3269 fi
3270 else
3271 ac_cpp_err=yes
3272 fi
3273 if test -z "$ac_cpp_err"; then
3274 # Broken: success on invalid input.
3275 continue
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 # Passes both tests.
3281 ac_preproc_ok=:
3282 break
3283 fi
3284 rm -f conftest.err conftest.$ac_ext
3285
3286 done
3287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3288 rm -f conftest.err conftest.$ac_ext
3289 if $ac_preproc_ok; then
3290 :
3291 else
3292 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3293 See \`config.log' for more details." >&5
3294 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3295 See \`config.log' for more details." >&2;}
3296 { (exit 1); exit 1; }; }
3297 fi
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304
3305
3306 echo "$as_me:$LINENO: checking for egrep" >&5
3307 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3308 if test "${ac_cv_prog_egrep+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3312 then ac_cv_prog_egrep='grep -E'
3313 else ac_cv_prog_egrep='egrep'
3314 fi
3315 fi
3316 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3317 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3318 EGREP=$ac_cv_prog_egrep
3319
3320
3321 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3322 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3323 if test "${ac_cv_header_stdc+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <stdlib.h>
3334 #include <stdarg.h>
3335 #include <string.h>
3336 #include <float.h>
3337
3338 int
3339 main ()
3340 {
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_header_stdc=yes
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 ac_cv_header_stdc=no
3364 fi
3365 rm -f conftest.$ac_objext conftest.$ac_ext
3366
3367 if test $ac_cv_header_stdc = yes; then
3368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3369 cat >conftest.$ac_ext <<_ACEOF
3370 #line $LINENO "configure"
3371 /* confdefs.h. */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 #include <string.h>
3377
3378 _ACEOF
3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380 $EGREP "memchr" >/dev/null 2>&1; then
3381 :
3382 else
3383 ac_cv_header_stdc=no
3384 fi
3385 rm -f conftest*
3386
3387 fi
3388
3389 if test $ac_cv_header_stdc = yes; then
3390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3391 cat >conftest.$ac_ext <<_ACEOF
3392 #line $LINENO "configure"
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 #include <stdlib.h>
3399
3400 _ACEOF
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 $EGREP "free" >/dev/null 2>&1; then
3403 :
3404 else
3405 ac_cv_header_stdc=no
3406 fi
3407 rm -f conftest*
3408
3409 fi
3410
3411 if test $ac_cv_header_stdc = yes; then
3412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3413 if test "$cross_compiling" = yes; then
3414 :
3415 else
3416 cat >conftest.$ac_ext <<_ACEOF
3417 #line $LINENO "configure"
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <ctype.h>
3424 #if ((' ' & 0x0FF) == 0x020)
3425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3427 #else
3428 # define ISLOWER(c) \
3429 (('a' <= (c) && (c) <= 'i') \
3430 || ('j' <= (c) && (c) <= 'r') \
3431 || ('s' <= (c) && (c) <= 'z'))
3432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3433 #endif
3434
3435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3436 int
3437 main ()
3438 {
3439 int i;
3440 for (i = 0; i < 256; i++)
3441 if (XOR (islower (i), ISLOWER (i))
3442 || toupper (i) != TOUPPER (i))
3443 exit(2);
3444 exit (0);
3445 }
3446 _ACEOF
3447 rm -f conftest$ac_exeext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3449 (eval $ac_link) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 :
3459 else
3460 echo "$as_me: program exited with status $ac_status" >&5
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 ( exit $ac_status )
3465 ac_cv_header_stdc=no
3466 fi
3467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3468 fi
3469 fi
3470 fi
3471 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3472 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3473 if test $ac_cv_header_stdc = yes; then
3474
3475 cat >>confdefs.h <<\_ACEOF
3476 #define STDC_HEADERS 1
3477 _ACEOF
3478
3479 fi
3480
3481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3492 inttypes.h stdint.h unistd.h
3493 do
3494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3495 echo "$as_me:$LINENO: checking for $ac_header" >&5
3496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_includes_default
3508
3509 #include <$ac_header>
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 eval "$as_ac_Header=yes"
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 eval "$as_ac_Header=no"
3529 fi
3530 rm -f conftest.$ac_objext conftest.$ac_ext
3531 fi
3532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3535 cat >>confdefs.h <<_ACEOF
3536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3537 _ACEOF
3538
3539 fi
3540
3541 done
3542
3543
3544
3545 for ac_header in dlfcn.h
3546 do
3547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3549 echo "$as_me:$LINENO: checking for $ac_header" >&5
3550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 fi
3554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3556 else
3557 # Is the header compilable?
3558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3560 cat >conftest.$ac_ext <<_ACEOF
3561 #line $LINENO "configure"
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567 $ac_includes_default
3568 #include <$ac_header>
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_header_compiler=yes
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 ac_header_compiler=no
3588 fi
3589 rm -f conftest.$ac_objext conftest.$ac_ext
3590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3591 echo "${ECHO_T}$ac_header_compiler" >&6
3592
3593 # Is the header present?
3594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <$ac_header>
3604 _ACEOF
3605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3615 else
3616 ac_cpp_err=
3617 fi
3618 else
3619 ac_cpp_err=yes
3620 fi
3621 if test -z "$ac_cpp_err"; then
3622 ac_header_preproc=yes
3623 else
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 ac_header_preproc=no
3628 fi
3629 rm -f conftest.err conftest.$ac_ext
3630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3631 echo "${ECHO_T}$ac_header_preproc" >&6
3632
3633 # So? What about this header?
3634 case $ac_header_compiler:$ac_header_preproc in
3635 yes:no )
3636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3640 (
3641 cat <<\_ASBOX
3642 ## ------------------------------------ ##
3643 ## Report this to bug-autoconf@gnu.org. ##
3644 ## ------------------------------------ ##
3645 _ASBOX
3646 ) |
3647 sed "s/^/$as_me: WARNING: /" >&2
3648 ;;
3649 no:yes )
3650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3656 (
3657 cat <<\_ASBOX
3658 ## ------------------------------------ ##
3659 ## Report this to bug-autoconf@gnu.org. ##
3660 ## ------------------------------------ ##
3661 _ASBOX
3662 ) |
3663 sed "s/^/$as_me: WARNING: /" >&2
3664 ;;
3665 esac
3666 echo "$as_me:$LINENO: checking for $ac_header" >&5
3667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 eval "$as_ac_Header=$ac_header_preproc"
3672 fi
3673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3675
3676 fi
3677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3678 cat >>confdefs.h <<_ACEOF
3679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3680 _ACEOF
3681
3682 fi
3683
3684 done
3685
3686
3687
3688
3689
3690 # Only perform the check for file, if the check method requires it
3691 case $deplibs_check_method in
3692 file_magic*)
3693 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3694 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3695 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3696 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 case $MAGIC_CMD in
3700 /*)
3701 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3702 ;;
3703 ?:/*)
3704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3705 ;;
3706 *)
3707 ac_save_MAGIC_CMD="$MAGIC_CMD"
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3709 ac_dummy="/usr/bin:$PATH"
3710 for ac_dir in $ac_dummy; do
3711 test -z "$ac_dir" && ac_dir=.
3712 if test -f $ac_dir/${ac_tool_prefix}file; then
3713 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3714 if test -n "$file_magic_test_file"; then
3715 case $deplibs_check_method in
3716 "file_magic "*)
3717 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3720 egrep "$file_magic_regex" > /dev/null; then
3721 :
3722 else
3723 cat <<EOF 1>&2
3724
3725 *** Warning: the command libtool uses to detect shared libraries,
3726 *** $file_magic_cmd, produces output that libtool cannot recognize.
3727 *** The result is that libtool may fail to recognize shared libraries
3728 *** as such. This will affect the creation of libtool libraries that
3729 *** depend on shared libraries, but programs linked with such libtool
3730 *** libraries will work regardless of this problem. Nevertheless, you
3731 *** may want to report the problem to your system manager and/or to
3732 *** bug-libtool@gnu.org
3733
3734 EOF
3735 fi ;;
3736 esac
3737 fi
3738 break
3739 fi
3740 done
3741 IFS="$ac_save_ifs"
3742 MAGIC_CMD="$ac_save_MAGIC_CMD"
3743 ;;
3744 esac
3745 fi
3746
3747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3748 if test -n "$MAGIC_CMD"; then
3749 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3750 echo "${ECHO_T}$MAGIC_CMD" >&6
3751 else
3752 echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6
3754 fi
3755
3756 if test -z "$lt_cv_path_MAGIC_CMD"; then
3757 if test -n "$ac_tool_prefix"; then
3758 echo "$as_me:$LINENO: checking for file" >&5
3759 echo $ECHO_N "checking for file... $ECHO_C" >&6
3760 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 case $MAGIC_CMD in
3764 /*)
3765 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3766 ;;
3767 ?:/*)
3768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3769 ;;
3770 *)
3771 ac_save_MAGIC_CMD="$MAGIC_CMD"
3772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3773 ac_dummy="/usr/bin:$PATH"
3774 for ac_dir in $ac_dummy; do
3775 test -z "$ac_dir" && ac_dir=.
3776 if test -f $ac_dir/file; then
3777 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3778 if test -n "$file_magic_test_file"; then
3779 case $deplibs_check_method in
3780 "file_magic "*)
3781 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3783 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3784 egrep "$file_magic_regex" > /dev/null; then
3785 :
3786 else
3787 cat <<EOF 1>&2
3788
3789 *** Warning: the command libtool uses to detect shared libraries,
3790 *** $file_magic_cmd, produces output that libtool cannot recognize.
3791 *** The result is that libtool may fail to recognize shared libraries
3792 *** as such. This will affect the creation of libtool libraries that
3793 *** depend on shared libraries, but programs linked with such libtool
3794 *** libraries will work regardless of this problem. Nevertheless, you
3795 *** may want to report the problem to your system manager and/or to
3796 *** bug-libtool@gnu.org
3797
3798 EOF
3799 fi ;;
3800 esac
3801 fi
3802 break
3803 fi
3804 done
3805 IFS="$ac_save_ifs"
3806 MAGIC_CMD="$ac_save_MAGIC_CMD"
3807 ;;
3808 esac
3809 fi
3810
3811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3812 if test -n "$MAGIC_CMD"; then
3813 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3814 echo "${ECHO_T}$MAGIC_CMD" >&6
3815 else
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820 else
3821 MAGIC_CMD=:
3822 fi
3823 fi
3824
3825 fi
3826 ;;
3827 esac
3828
3829 if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3832 echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_prog_RANLIB+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 if test -n "$RANLIB"; then
3838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3839 else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH
3842 do
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 break 2
3850 fi
3851 done
3852 done
3853
3854 fi
3855 fi
3856 RANLIB=$ac_cv_prog_RANLIB
3857 if test -n "$RANLIB"; then
3858 echo "$as_me:$LINENO: result: $RANLIB" >&5
3859 echo "${ECHO_T}$RANLIB" >&6
3860 else
3861 echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6
3863 fi
3864
3865 fi
3866 if test -z "$ac_cv_prog_RANLIB"; then
3867 ac_ct_RANLIB=$RANLIB
3868 # Extract the first word of "ranlib", so it can be a program name with args.
3869 set dummy ranlib; ac_word=$2
3870 echo "$as_me:$LINENO: checking for $ac_word" >&5
3871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875 if test -n "$ac_ct_RANLIB"; then
3876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_ac_ct_RANLIB="ranlib"
3886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889 done
3890 done
3891
3892 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3893 fi
3894 fi
3895 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3896 if test -n "$ac_ct_RANLIB"; then
3897 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3898 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3899 else
3900 echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6
3902 fi
3903
3904 RANLIB=$ac_ct_RANLIB
3905 else
3906 RANLIB="$ac_cv_prog_RANLIB"
3907 fi
3908
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}strip; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_prog_STRIP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 if test -n "$STRIP"; then
3918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931 done
3932 done
3933
3934 fi
3935 fi
3936 STRIP=$ac_cv_prog_STRIP
3937 if test -n "$STRIP"; then
3938 echo "$as_me:$LINENO: result: $STRIP" >&5
3939 echo "${ECHO_T}$STRIP" >&6
3940 else
3941 echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6
3943 fi
3944
3945 fi
3946 if test -z "$ac_cv_prog_STRIP"; then
3947 ac_ct_STRIP=$STRIP
3948 # Extract the first word of "strip", so it can be a program name with args.
3949 set dummy strip; ac_word=$2
3950 echo "$as_me:$LINENO: checking for $ac_word" >&5
3951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 if test -n "$ac_ct_STRIP"; then
3956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965 ac_cv_prog_ac_ct_STRIP="strip"
3966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3968 fi
3969 done
3970 done
3971
3972 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3973 fi
3974 fi
3975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3976 if test -n "$ac_ct_STRIP"; then
3977 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3978 echo "${ECHO_T}$ac_ct_STRIP" >&6
3979 else
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982 fi
3983
3984 STRIP=$ac_ct_STRIP
3985 else
3986 STRIP="$ac_cv_prog_STRIP"
3987 fi
3988
3989
3990 enable_dlopen=no
3991 enable_win32_dll=no
3992
3993 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3994 if test "${enable_libtool_lock+set}" = set; then
3995 enableval="$enable_libtool_lock"
3996
3997 fi;
3998 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3999
4000 # Some flags need to be propagated to the compiler or linker for good
4001 # libtool support.
4002 case $host in
4003 *-*-irix6*)
4004 # Find out which ABI we are using.
4005 echo '#line 4012 "configure"' > conftest.$ac_ext
4006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4007 (eval $ac_compile) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; then
4011 case `/usr/bin/file conftest.$ac_objext` in
4012 *32-bit*)
4013 LD="${LD-ld} -32"
4014 ;;
4015 *N32*)
4016 LD="${LD-ld} -n32"
4017 ;;
4018 *64-bit*)
4019 LD="${LD-ld} -64"
4020 ;;
4021 esac
4022 fi
4023 rm -rf conftest*
4024 ;;
4025
4026 *-*-sco3.2v5*)
4027 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4028 SAVE_CFLAGS="$CFLAGS"
4029 CFLAGS="$CFLAGS -belf"
4030 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4031 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4032 if test "${lt_cv_cc_needs_belf+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043 cat >conftest.$ac_ext <<_ACEOF
4044 #line $LINENO "configure"
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050
4051 int
4052 main ()
4053 {
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 rm -f conftest.$ac_objext conftest$ac_exeext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4061 (eval $ac_link) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -s conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 lt_cv_cc_needs_belf=yes
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 lt_cv_cc_needs_belf=no
4077 fi
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085 fi
4086 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4087 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4088 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4089 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4090 CFLAGS="$SAVE_CFLAGS"
4091 fi
4092 ;;
4093
4094
4095 esac
4096
4097 # Sed substitution that helps us do robust quoting. It backslashifies
4098 # metacharacters that are still active within double-quoted strings.
4099 Xsed='sed -e s/^X//'
4100 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4101
4102 # Same as above, but do not quote variable references.
4103 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4104
4105 # Sed substitution to delay expansion of an escaped shell variable in a
4106 # double_quote_subst'ed string.
4107 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4108
4109 # Constants:
4110 rm="rm -f"
4111
4112 # Global variables:
4113 default_ofile=libtool
4114 can_build_shared=yes
4115
4116 # All known linkers require a `.a' archive for static linking (except M$VC,
4117 # which needs '.lib').
4118 libext=a
4119 ltmain="$ac_aux_dir/ltmain.sh"
4120 ofile="$default_ofile"
4121 with_gnu_ld="$lt_cv_prog_gnu_ld"
4122 need_locks="$enable_libtool_lock"
4123
4124 old_CC="$CC"
4125 old_CFLAGS="$CFLAGS"
4126
4127 # Set sane defaults for various variables
4128 test -z "$AR" && AR=ar
4129 test -z "$AR_FLAGS" && AR_FLAGS=cru
4130 test -z "$AS" && AS=as
4131 test -z "$CC" && CC=cc
4132 test -z "$DLLTOOL" && DLLTOOL=dlltool
4133 test -z "$LD" && LD=ld
4134 test -z "$LN_S" && LN_S="ln -s"
4135 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4136 test -z "$NM" && NM=nm
4137 test -z "$OBJDUMP" && OBJDUMP=objdump
4138 test -z "$RANLIB" && RANLIB=:
4139 test -z "$STRIP" && STRIP=:
4140 test -z "$ac_objext" && ac_objext=o
4141
4142 if test x"$host" != x"$build"; then
4143 ac_tool_prefix=${host_alias}-
4144 else
4145 ac_tool_prefix=
4146 fi
4147
4148 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4149 case $host_os in
4150 linux-gnu*) ;;
4151 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4152 esac
4153
4154 case $host_os in
4155 aix3*)
4156 # AIX sometimes has problems with the GCC collect2 program. For some
4157 # reason, if we set the COLLECT_NAMES environment variable, the problems
4158 # vanish in a puff of smoke.
4159 if test "X${COLLECT_NAMES+set}" != Xset; then
4160 COLLECT_NAMES=
4161 export COLLECT_NAMES
4162 fi
4163 ;;
4164 esac
4165
4166 # Determine commands to create old-style static archives.
4167 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4168 old_postinstall_cmds='chmod 644 $oldlib'
4169 old_postuninstall_cmds=
4170
4171 if test -n "$RANLIB"; then
4172 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4173 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4174 fi
4175
4176 # Allow CC to be a program name with arguments.
4177 set dummy $CC
4178 compiler="$2"
4179
4180 ## FIXME: this should be a separate macro
4181 ##
4182 echo "$as_me:$LINENO: checking for objdir" >&5
4183 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4184 rm -f .libs 2>/dev/null
4185 mkdir .libs 2>/dev/null
4186 if test -d .libs; then
4187 objdir=.libs
4188 else
4189 # MS-DOS does not allow filenames that begin with a dot.
4190 objdir=_libs
4191 fi
4192 rmdir .libs 2>/dev/null
4193 echo "$as_me:$LINENO: result: $objdir" >&5
4194 echo "${ECHO_T}$objdir" >&6
4195 ##
4196 ## END FIXME
4197
4198
4199 ## FIXME: this should be a separate macro
4200 ##
4201
4202 # Check whether --with-pic or --without-pic was given.
4203 if test "${with_pic+set}" = set; then
4204 withval="$with_pic"
4205 pic_mode="$withval"
4206 else
4207 pic_mode=default
4208 fi;
4209 test -z "$pic_mode" && pic_mode=default
4210
4211 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4212 # in isolation, and that seeing it set (from the cache) indicates that
4213 # the associated values are set (in the cache) correctly too.
4214 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4215 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4216 if test "${lt_cv_prog_cc_pic+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 lt_cv_prog_cc_pic=
4220 lt_cv_prog_cc_shlib=
4221 lt_cv_prog_cc_wl=
4222 lt_cv_prog_cc_static=
4223 lt_cv_prog_cc_no_builtin=
4224 lt_cv_prog_cc_can_build_shared=$can_build_shared
4225
4226 if test "$GCC" = yes; then
4227 lt_cv_prog_cc_wl='-Wl,'
4228 lt_cv_prog_cc_static='-static'
4229
4230 case $host_os in
4231 aix*)
4232 # Below there is a dirty hack to force normal static linking with -ldl
4233 # The problem is because libdl dynamically linked with both libc and
4234 # libC (AIX C++ library), which obviously doesn't included in libraries
4235 # list by gcc. This cause undefined symbols with -static flags.
4236 # This hack allows C programs to be linked with "-static -ldl", but
4237 # we not sure about C++ programs.
4238 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4239 ;;
4240 amigaos*)
4241 # FIXME: we need at least 68020 code to build shared libraries, but
4242 # adding the `-m68020' flag to GCC prevents building anything better,
4243 # like `-m68040'.
4244 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4245 ;;
4246 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4247 # PIC is the default for these OSes.
4248 ;;
4249 darwin* | rhapsody*)
4250 # PIC is the default on this platform
4251 # Common symbols not allowed in MH_DYLIB files
4252 lt_cv_prog_cc_pic='-fno-common'
4253 ;;
4254 cygwin* | mingw* | pw32* | os2*)
4255 # This hack is so that the source file can tell whether it is being
4256 # built for inclusion in a dll (and should export symbols for example).
4257 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4258 ;;
4259 sysv4*MP*)
4260 if test -d /usr/nec; then
4261 lt_cv_prog_cc_pic=-Kconform_pic
4262 fi
4263 ;;
4264 *)
4265 lt_cv_prog_cc_pic='-fPIC'
4266 ;;
4267 esac
4268 else
4269 # PORTME Check for PIC flags for the system compiler.
4270 case $host_os in
4271 aix3* | aix4* | aix5*)
4272 # All AIX code is PIC.
4273 if test "$host_cpu" = ia64; then
4274 # AIX 5 now supports IA64 processor
4275 lt_cv_prog_cc_static='-Bstatic'
4276 lt_cv_prog_cc_wl='-Wl,'
4277 else
4278 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4279 fi
4280 ;;
4281
4282 hpux9* | hpux10* | hpux11*)
4283 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4284 lt_cv_prog_cc_wl='-Wl,'
4285 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4286 lt_cv_prog_cc_pic='+Z'
4287 ;;
4288
4289 irix5* | irix6*)
4290 lt_cv_prog_cc_wl='-Wl,'
4291 lt_cv_prog_cc_static='-non_shared'
4292 # PIC (with -KPIC) is the default.
4293 ;;
4294
4295 cygwin* | mingw* | pw32* | os2*)
4296 # This hack is so that the source file can tell whether it is being
4297 # built for inclusion in a dll (and should export symbols for example).
4298 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4299 ;;
4300
4301 newsos6)
4302 lt_cv_prog_cc_pic='-KPIC'
4303 lt_cv_prog_cc_static='-Bstatic'
4304 ;;
4305
4306 osf3* | osf4* | osf5*)
4307 # All OSF/1 code is PIC.
4308 lt_cv_prog_cc_wl='-Wl,'
4309 lt_cv_prog_cc_static='-non_shared'
4310 ;;
4311
4312 sco3.2v5*)
4313 lt_cv_prog_cc_pic='-Kpic'
4314 lt_cv_prog_cc_static='-dn'
4315 lt_cv_prog_cc_shlib='-belf'
4316 ;;
4317
4318 solaris*)
4319 lt_cv_prog_cc_pic='-KPIC'
4320 lt_cv_prog_cc_static='-Bstatic'
4321 lt_cv_prog_cc_wl='-Wl,'
4322 ;;
4323
4324 sunos4*)
4325 lt_cv_prog_cc_pic='-PIC'
4326 lt_cv_prog_cc_static='-Bstatic'
4327 lt_cv_prog_cc_wl='-Qoption ld '
4328 ;;
4329
4330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4331 lt_cv_prog_cc_pic='-KPIC'
4332 lt_cv_prog_cc_static='-Bstatic'
4333 if test "x$host_vendor" = xsni; then
4334 lt_cv_prog_cc_wl='-LD'
4335 else
4336 lt_cv_prog_cc_wl='-Wl,'
4337 fi
4338 ;;
4339
4340 uts4*)
4341 lt_cv_prog_cc_pic='-pic'
4342 lt_cv_prog_cc_static='-Bstatic'
4343 ;;
4344
4345 sysv4*MP*)
4346 if test -d /usr/nec ;then
4347 lt_cv_prog_cc_pic='-Kconform_pic'
4348 lt_cv_prog_cc_static='-Bstatic'
4349 fi
4350 ;;
4351
4352 *)
4353 lt_cv_prog_cc_can_build_shared=no
4354 ;;
4355 esac
4356 fi
4357
4358 fi
4359
4360 if test -z "$lt_cv_prog_cc_pic"; then
4361 echo "$as_me:$LINENO: result: none" >&5
4362 echo "${ECHO_T}none" >&6
4363 else
4364 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4365 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4366
4367 # Check to make sure the pic_flag actually works.
4368 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4369 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4370 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 save_CFLAGS="$CFLAGS"
4374 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4375 cat >conftest.$ac_ext <<_ACEOF
4376 #line $LINENO "configure"
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 case $host_os in
4404 hpux9* | hpux10* | hpux11*)
4405 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4406 # they create non-PIC objects. So, if there were any warnings, we
4407 # assume that PIC is not supported.
4408 if test -s conftest.err; then
4409 lt_cv_prog_cc_pic_works=no
4410 else
4411 lt_cv_prog_cc_pic_works=yes
4412 fi
4413 ;;
4414 *)
4415 lt_cv_prog_cc_pic_works=yes
4416 ;;
4417 esac
4418
4419 else
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 lt_cv_prog_cc_pic_works=no
4424
4425 fi
4426 rm -f conftest.$ac_objext conftest.$ac_ext
4427 CFLAGS="$save_CFLAGS"
4428
4429 fi
4430
4431
4432 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4433 lt_cv_prog_cc_pic=
4434 lt_cv_prog_cc_can_build_shared=no
4435 else
4436 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4437 fi
4438
4439 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4440 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4441 fi
4442 ##
4443 ## END FIXME
4444
4445 # Check for any special shared library compilation flags.
4446 if test -n "$lt_cv_prog_cc_shlib"; then
4447 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4448 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4449 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4450 else
4451 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4452 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4453 lt_cv_prog_cc_can_build_shared=no
4454 fi
4455 fi
4456
4457 ## FIXME: this should be a separate macro
4458 ##
4459 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4460 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4461 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 lt_cv_prog_cc_static_works=no
4465 save_LDFLAGS="$LDFLAGS"
4466 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474
4475 int
4476 main ()
4477 {
4478
4479 ;
4480 return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485 (eval $ac_link) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 lt_cv_prog_cc_static_works=yes
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500 fi
4501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4502 LDFLAGS="$save_LDFLAGS"
4503
4504 fi
4505
4506
4507 # Belt *and* braces to stop my trousers falling down:
4508 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4509 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4510 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4511
4512 pic_flag="$lt_cv_prog_cc_pic"
4513 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4514 wl="$lt_cv_prog_cc_wl"
4515 link_static_flag="$lt_cv_prog_cc_static"
4516 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4517 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4518 ##
4519 ## END FIXME
4520
4521
4522 ## FIXME: this should be a separate macro
4523 ##
4524 # Check to see if options -o and -c are simultaneously supported by compiler
4525 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4526 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4527 if test "${lt_cv_compiler_c_o+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530
4531 $rm -r conftest 2>/dev/null
4532 mkdir conftest
4533 cd conftest
4534 echo "int some_variable = 0;" > conftest.$ac_ext
4535 mkdir out
4536 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4537 # that will create temporary files in the current directory regardless of
4538 # the output directory. Thus, making CWD read-only will cause this test
4539 # to fail, enabling locking or at least warning the user not to do parallel
4540 # builds.
4541 chmod -w .
4542 save_CFLAGS="$CFLAGS"
4543 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4544 compiler_c_o=no
4545 if { (eval echo configure:4552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4546 # The compiler can only warn and ignore the option if not recognized
4547 # So say no if there are warnings
4548 if test -s out/conftest.err; then
4549 lt_cv_compiler_c_o=no
4550 else
4551 lt_cv_compiler_c_o=yes
4552 fi
4553 else
4554 # Append any errors to the config.log.
4555 cat out/conftest.err 1>&5
4556 lt_cv_compiler_c_o=no
4557 fi
4558 CFLAGS="$save_CFLAGS"
4559 chmod u+w .
4560 $rm conftest* out/*
4561 rmdir out
4562 cd ..
4563 rmdir conftest
4564 $rm -r conftest 2>/dev/null
4565
4566 fi
4567
4568 compiler_c_o=$lt_cv_compiler_c_o
4569 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4570 echo "${ECHO_T}$compiler_c_o" >&6
4571
4572 if test x"$compiler_c_o" = x"yes"; then
4573 # Check to see if we can write to a .lo
4574 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4575 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4576 if test "${lt_cv_compiler_o_lo+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579
4580 lt_cv_compiler_o_lo=no
4581 save_CFLAGS="$CFLAGS"
4582 CFLAGS="$CFLAGS -c -o conftest.lo"
4583 cat >conftest.$ac_ext <<_ACEOF
4584 #line $LINENO "configure"
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590
4591 int
4592 main ()
4593 {
4594 int some_variable = 0;
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 # The compiler can only warn and ignore the option if not recognized
4612 # So say no if there are warnings
4613 if test -s conftest.err; then
4614 lt_cv_compiler_o_lo=no
4615 else
4616 lt_cv_compiler_o_lo=yes
4617 fi
4618
4619 else
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 fi
4624 rm -f conftest.$ac_objext conftest.$ac_ext
4625 CFLAGS="$save_CFLAGS"
4626
4627 fi
4628
4629 compiler_o_lo=$lt_cv_compiler_o_lo
4630 echo "$as_me:$LINENO: result: $compiler_c_lo" >&5
4631 echo "${ECHO_T}$compiler_c_lo" >&6
4632 else
4633 compiler_o_lo=no
4634 fi
4635 ##
4636 ## END FIXME
4637
4638 ## FIXME: this should be a separate macro
4639 ##
4640 # Check to see if we can do hard links to lock some files if needed
4641 hard_links="nottested"
4642 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4643 # do not overwrite the value of need_locks provided by the user
4644 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4645 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4646 hard_links=yes
4647 $rm conftest*
4648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4649 touch conftest.a
4650 ln conftest.a conftest.b 2>&5 || hard_links=no
4651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4652 echo "$as_me:$LINENO: result: $hard_links" >&5
4653 echo "${ECHO_T}$hard_links" >&6
4654 if test "$hard_links" = no; then
4655 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4656 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4657 need_locks=warn
4658 fi
4659 else
4660 need_locks=no
4661 fi
4662 ##
4663 ## END FIXME
4664
4665 ## FIXME: this should be a separate macro
4666 ##
4667 if test "$GCC" = yes; then
4668 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4669 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4670 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4671 echo "int some_variable = 0;" > conftest.$ac_ext
4672 save_CFLAGS="$CFLAGS"
4673 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4674 compiler_rtti_exceptions=no
4675 cat >conftest.$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682
4683 int
4684 main ()
4685 {
4686 int some_variable = 0;
4687 ;
4688 return 0;
4689 }
4690 _ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693 (eval $ac_compile) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 # The compiler can only warn and ignore the option if not recognized
4704 # So say no if there are warnings
4705 if test -s conftest.err; then
4706 compiler_rtti_exceptions=no
4707 else
4708 compiler_rtti_exceptions=yes
4709 fi
4710
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 fi
4716 rm -f conftest.$ac_objext conftest.$ac_ext
4717 CFLAGS="$save_CFLAGS"
4718 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4719 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4720
4721 if test "$compiler_rtti_exceptions" = "yes"; then
4722 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4723 else
4724 no_builtin_flag=' -fno-builtin'
4725 fi
4726 fi
4727 ##
4728 ## END FIXME
4729
4730 ## FIXME: this should be a separate macro
4731 ##
4732 # See if the linker supports building shared libraries.
4733 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4734 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4735
4736 allow_undefined_flag=
4737 no_undefined_flag=
4738 need_lib_prefix=unknown
4739 need_version=unknown
4740 # when you set need_version to no, make sure it does not cause -set_version
4741 # flags to be left without arguments
4742 archive_cmds=
4743 archive_expsym_cmds=
4744 old_archive_from_new_cmds=
4745 old_archive_from_expsyms_cmds=
4746 export_dynamic_flag_spec=
4747 whole_archive_flag_spec=
4748 thread_safe_flag_spec=
4749 hardcode_into_libs=no
4750 hardcode_libdir_flag_spec=
4751 hardcode_libdir_separator=
4752 hardcode_direct=no
4753 hardcode_minus_L=no
4754 hardcode_shlibpath_var=unsupported
4755 runpath_var=
4756 link_all_deplibs=unknown
4757 always_export_symbols=no
4758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4759 # include_expsyms should be a list of space-separated symbols to be *always*
4760 # included in the symbol list
4761 include_expsyms=
4762 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4763 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4764 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4765 # as well as any symbol that contains `d'.
4766 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4767 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4768 # platforms (ab)use it in PIC code, but their linkers get confused if
4769 # the symbol is explicitly referenced. Since portable code cannot
4770 # rely on this symbol name, it's probably fine to never include it in
4771 # preloaded symbol tables.
4772 extract_expsyms_cmds=
4773
4774 case $host_os in
4775 cygwin* | mingw* | pw32* )
4776 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4777 # When not using gcc, we currently assume that we are using
4778 # Microsoft Visual C++.
4779 if test "$GCC" != yes; then
4780 with_gnu_ld=no
4781 fi
4782 ;;
4783
4784 esac
4785
4786 ld_shlibs=yes
4787 if test "$with_gnu_ld" = yes; then
4788 # If archive_cmds runs LD, not CC, wlarc should be empty
4789 wlarc='${wl}'
4790
4791 # See if GNU ld supports shared libraries.
4792 case $host_os in
4793 aix3* | aix4* | aix5*)
4794 # On AIX, the GNU linker is very broken
4795 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4796 ld_shlibs=no
4797 cat <<EOF 1>&2
4798
4799 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4800 *** to be unable to reliably create shared libraries on AIX.
4801 *** Therefore, libtool is disabling shared libraries support. If you
4802 *** really care for shared libraries, you may want to modify your PATH
4803 *** so that a non-GNU linker is found, and then restart.
4804
4805 EOF
4806 ;;
4807
4808 amigaos*)
4809 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4810 hardcode_libdir_flag_spec='-L$libdir'
4811 hardcode_minus_L=yes
4812
4813 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4814 # that the semantics of dynamic libraries on AmigaOS, at least up
4815 # to version 4, is to share data among multiple programs linked
4816 # with the same dynamic library. Since this doesn't match the
4817 # behavior of shared libraries on other platforms, we can use
4818 # them.
4819 ld_shlibs=no
4820 ;;
4821
4822 beos*)
4823 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4824 allow_undefined_flag=unsupported
4825 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4826 # support --undefined. This deserves some investigation. FIXME
4827 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4828 else
4829 ld_shlibs=no
4830 fi
4831 ;;
4832
4833 cygwin* | mingw* | pw32*)
4834 # hardcode_libdir_flag_spec is actually meaningless, as there is
4835 # no search path for DLLs.
4836 hardcode_libdir_flag_spec='-L$libdir'
4837 allow_undefined_flag=unsupported
4838 always_export_symbols=yes
4839
4840 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4841 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4842 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4843 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4844 else $CC -o impgen impgen.c ; fi)~
4845 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4846
4847 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4848
4849 # cygwin and mingw dlls have different entry points and sets of symbols
4850 # to exclude.
4851 # FIXME: what about values for MSVC?
4852 dll_entry=__cygwin_dll_entry@12
4853 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4854 case $host_os in
4855 mingw*)
4856 # mingw values
4857 dll_entry=_DllMainCRTStartup@12
4858 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4859 ;;
4860 esac
4861
4862 # mingw and cygwin differ, and it's simplest to just exclude the union
4863 # of the two symbol sets.
4864 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4865
4866 # recent cygwin and mingw systems supply a stub DllMain which the user
4867 # can override, but on older systems we have to supply one (in ltdll.c)
4868 if test "x$lt_cv_need_dllmain" = "xyes"; then
4869 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4870 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4871 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4872 else
4873 ltdll_obj=
4874 ltdll_cmds=
4875 fi
4876
4877 # Extract the symbol export list from an `--export-all' def file,
4878 # then regenerate the def file from the symbol export list, so that
4879 # the compiled dll only exports the symbol export list.
4880 # Be careful not to strip the DATA tag left be newer dlltools.
4881 export_symbols_cmds="$ltdll_cmds"'
4882 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4883 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4884
4885 # If the export-symbols file already is a .def file (1st line
4886 # is EXPORTS), use it as is.
4887 # If DATA tags from a recent dlltool are present, honour them!
4888 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4889 cp $export_symbols $output_objdir/$soname-def;
4890 else
4891 echo EXPORTS > $output_objdir/$soname-def;
4892 _lt_hint=1;
4893 cat $export_symbols | while read symbol; do
4894 set dummy \$symbol;
4895 case \$# in
4896 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4897 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4898 esac;
4899 _lt_hint=`expr 1 + \$_lt_hint`;
4900 done;
4901 fi~
4902 '"$ltdll_cmds"'
4903 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4904 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4905 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4906 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4907 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4908 ;;
4909
4910 netbsd*)
4911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4913 wlarc=
4914 else
4915 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4916 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4917 fi
4918 ;;
4919
4920 solaris* | sysv5*)
4921 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4922 ld_shlibs=no
4923 cat <<EOF 1>&2
4924
4925 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4926 *** create shared libraries on Solaris systems. Therefore, libtool
4927 *** is disabling shared libraries support. We urge you to upgrade GNU
4928 *** binutils to release 2.9.1 or newer. Another option is to modify
4929 *** your PATH or compiler configuration so that the native linker is
4930 *** used, and then restart.
4931
4932 EOF
4933 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4936 else
4937 ld_shlibs=no
4938 fi
4939 ;;
4940
4941 sunos4*)
4942 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4943 wlarc=
4944 hardcode_direct=yes
4945 hardcode_shlibpath_var=no
4946 ;;
4947
4948 *)
4949 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4952 else
4953 ld_shlibs=no
4954 fi
4955 ;;
4956 esac
4957
4958 if test "$ld_shlibs" = yes; then
4959 runpath_var=LD_RUN_PATH
4960 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4961 export_dynamic_flag_spec='${wl}--export-dynamic'
4962 case $host_os in
4963 cygwin* | mingw* | pw32*)
4964 # dlltool doesn't understand --whole-archive et. al.
4965 whole_archive_flag_spec=
4966 ;;
4967 *)
4968 # ancient GNU ld didn't support --whole-archive et. al.
4969 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4970 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4971 else
4972 whole_archive_flag_spec=
4973 fi
4974 ;;
4975 esac
4976 fi
4977 else
4978 # PORTME fill in a description of your system's linker (not GNU ld)
4979 case $host_os in
4980 aix3*)
4981 allow_undefined_flag=unsupported
4982 always_export_symbols=yes
4983 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4984 # Note: this linker hardcodes the directories in LIBPATH if there
4985 # are no directories specified by -L.
4986 hardcode_minus_L=yes
4987 if test "$GCC" = yes && test -z "$link_static_flag"; then
4988 # Neither direct hardcoding nor static linking is supported with a
4989 # broken collect2.
4990 hardcode_direct=unsupported
4991 fi
4992 ;;
4993
4994 aix4* | aix5*)
4995 # When large executables or shared objects are built, AIX ld can
4996 # have problems creating the table of contents. If linking a library
4997 # or program results in "error TOC overflow" add -mminimal-toc to
4998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5000
5001 archive_cmds=''
5002 hardcode_libdir_separator=':'
5003 if test "$GCC" = yes; then
5004 collect2name=`${CC} -print-prog-name=collect2`
5005 if test -f "$collect2name" && \
5006 strings "$collect2name" | grep resolve_lib_name >/dev/null
5007 then
5008 # We have reworked collect2
5009 hardcode_direct=yes
5010 else
5011 # We have old collect2
5012 hardcode_direct=unsupported
5013 # It fails to find uninstalled libraries when the uninstalled
5014 # path is not listed in the libpath. Setting hardcode_minus_L
5015 # to unsupported forces relinking
5016 hardcode_minus_L=yes
5017 hardcode_libdir_flag_spec='-L$libdir'
5018 hardcode_libdir_separator=
5019 fi
5020 shared_flag='-shared'
5021 else
5022 if test "$host_cpu" = ia64; then
5023 shared_flag='-G'
5024 else
5025 shared_flag='${wl}-bM:SRE'
5026 fi
5027 hardcode_direct=yes
5028 fi
5029
5030 if test "$host_cpu" = ia64; then
5031 # On IA64, the linker does run time linking by default, so we don't
5032 # have to do anything special.
5033 aix_use_runtimelinking=no
5034 exp_sym_flag='-Bexport'
5035 no_entry_flag=""
5036 else
5037 # Test if we are trying to use run time linking, or normal AIX style linking.
5038 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
5039 aix_use_runtimelinking=no
5040 for ld_flag in $LDFLAGS; do
5041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
5042 aix_use_runtimelinking=yes
5043 break
5044 fi
5045 done
5046 exp_sym_flag='-bexport'
5047 no_entry_flag='-bnoentry'
5048 fi
5049 # It seems that -bexpall can do strange things, so it is better to
5050 # generate a list of symbols to export.
5051 always_export_symbols=yes
5052 if test "$aix_use_runtimelinking" = yes; then
5053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5054 allow_undefined_flag=' -Wl,-G'
5055 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5056 else
5057 if test "$host_cpu" = ia64; then
5058 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5059 allow_undefined_flag="-znodefs"
5060 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5061 else
5062 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5063 # Warning - without using the other run time loading flags, -berok will
5064 # link without error, but may produce a broken library.
5065 allow_undefined_flag='${wl}-berok"
5066 # This is a bit strange, but is similar to how AIX traditionally builds
5067 # it's shared libraries.
5068 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5069 fi
5070 fi
5071 ;;
5072
5073 amigaos*)
5074 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5075 hardcode_libdir_flag_spec='-L$libdir'
5076 hardcode_minus_L=yes
5077 # see comment about different semantics on the GNU ld section
5078 ld_shlibs=no
5079 ;;
5080
5081 cygwin* | mingw* | pw32*)
5082 # When not using gcc, we currently assume that we are using
5083 # Microsoft Visual C++.
5084 # hardcode_libdir_flag_spec is actually meaningless, as there is
5085 # no search path for DLLs.
5086 hardcode_libdir_flag_spec=' '
5087 allow_undefined_flag=unsupported
5088 # Tell ltmain to make .lib files, not .a files.
5089 libext=lib
5090 # FIXME: Setting linknames here is a bad hack.
5091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5092 # The linker will automatically build a .lib file if we build a DLL.
5093 old_archive_from_new_cmds='true'
5094 # FIXME: Should let the user specify the lib program.
5095 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5096 fix_srcfile_path='`cygpath -w "$srcfile"`'
5097 ;;
5098
5099 darwin* | rhapsody*)
5100 # This patch put in by hand by PH (21-Aug-2003) for Darwin 1.3.
5101 case "$host_os" in
5102 rhapsody* | darwin1.[[012]])
5103 allow_undefined_flag='-undefined suppress'
5104 ;;
5105 *) # Darwin 1.3 on
5106 allow_undefined_flag='-flat_namespace -undefined suppress'
5107 ;;
5108 esac
5109 # End of hand-inserted patch
5110
5111 # FIXME: Relying on posixy $() will cause problems for
5112 # cross-compilation, but unfortunately the echo tests do not
5113 # yet detect zsh echo's removal of \ escapes.
5114 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
5115 # We need to add '_' to the symbols in $export_symbols first
5116 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5117 hardcode_direct=yes
5118 hardcode_shlibpath_var=no
5119 whole_archive_flag_spec='-all_load $convenience'
5120 ;;
5121
5122 freebsd1*)
5123 ld_shlibs=no
5124 ;;
5125
5126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5127 # support. Future versions do this automatically, but an explicit c++rt0.o
5128 # does not break anything, and helps significantly (at the cost of a little
5129 # extra space).
5130 freebsd2.2*)
5131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5132 hardcode_libdir_flag_spec='-R$libdir'
5133 hardcode_direct=yes
5134 hardcode_shlibpath_var=no
5135 ;;
5136
5137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5138 freebsd2*)
5139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5140 hardcode_direct=yes
5141 hardcode_minus_L=yes
5142 hardcode_shlibpath_var=no
5143 ;;
5144
5145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5146 freebsd*)
5147 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5148 hardcode_libdir_flag_spec='-R$libdir'
5149 hardcode_direct=yes
5150 hardcode_shlibpath_var=no
5151 ;;
5152
5153 hpux9* | hpux10* | hpux11*)
5154 case $host_os in
5155 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5156 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5157 esac
5158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5159 hardcode_libdir_separator=:
5160 hardcode_direct=yes
5161 hardcode_minus_L=yes # Not in the search PATH, but as the default
5162 # location of the library.
5163 export_dynamic_flag_spec='${wl}-E'
5164 ;;
5165
5166 irix5* | irix6*)
5167 if test "$GCC" = yes; then
5168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5169 else
5170 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5171 fi
5172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5173 hardcode_libdir_separator=:
5174 link_all_deplibs=yes
5175 ;;
5176
5177 netbsd*)
5178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5180 else
5181 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5182 fi
5183 hardcode_libdir_flag_spec='-R$libdir'
5184 hardcode_direct=yes
5185 hardcode_shlibpath_var=no
5186 ;;
5187
5188 newsos6)
5189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
5190 hardcode_direct=yes
5191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5192 hardcode_libdir_separator=:
5193 hardcode_shlibpath_var=no
5194 ;;
5195
5196 openbsd*)
5197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5198 hardcode_libdir_flag_spec='-R$libdir'
5199 hardcode_direct=yes
5200 hardcode_shlibpath_var=no
5201 ;;
5202
5203 os2*)
5204 hardcode_libdir_flag_spec='-L$libdir'
5205 hardcode_minus_L=yes
5206 allow_undefined_flag=unsupported
5207 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5208 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5209 ;;
5210
5211 osf3*)
5212 if test "$GCC" = yes; then
5213 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5214 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5215 else
5216 allow_undefined_flag=' -expect_unresolved \*'
5217 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5218 fi
5219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5220 hardcode_libdir_separator=:
5221 ;;
5222
5223 osf4* | osf5*) # as osf3* with the addition of -msym flag
5224 if test "$GCC" = yes; then
5225 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5226 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5228 else
5229 allow_undefined_flag=' -expect_unresolved \*'
5230 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5231 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5232 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5233
5234 #Both c and cxx compiler support -rpath directly
5235 hardcode_libdir_flag_spec='-rpath $libdir'
5236 fi
5237 hardcode_libdir_separator=:
5238 ;;
5239
5240 sco3.2v5*)
5241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5242 hardcode_shlibpath_var=no
5243 runpath_var=LD_RUN_PATH
5244 hardcode_runpath_var=yes
5245 ;;
5246
5247 solaris*)
5248 no_undefined_flag=' -z defs'
5249 # $CC -shared without GNU ld will not create a library from C++
5250 # object files and a static libstdc++, better avoid it by now
5251 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5252 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5254 hardcode_libdir_flag_spec='-R$libdir'
5255 hardcode_shlibpath_var=no
5256 case $host_os in
5257 solaris2.[0-5] | solaris2.[0-5].*) ;;
5258 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5259 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5260 esac
5261 link_all_deplibs=yes
5262 ;;
5263
5264 sunos4*)
5265 if test "x$host_vendor" = xsequent; then
5266 # Use $CC to link under sequent, because it throws in some extra .o
5267 # files that make .init and .fini sections work.
5268 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5269 else
5270 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5271 fi
5272 hardcode_libdir_flag_spec='-L$libdir'
5273 hardcode_direct=yes
5274 hardcode_minus_L=yes
5275 hardcode_shlibpath_var=no
5276 ;;
5277
5278 sysv4)
5279 if test "x$host_vendor" = xsno; then
5280 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
5281 hardcode_direct=yes # is this really true???
5282 else
5283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5284 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5285 fi
5286 runpath_var='LD_RUN_PATH'
5287 hardcode_shlibpath_var=no
5288 ;;
5289
5290 sysv4.3*)
5291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5292 hardcode_shlibpath_var=no
5293 export_dynamic_flag_spec='-Bexport'
5294 ;;
5295
5296 sysv5*)
5297 no_undefined_flag=' -z text'
5298 # $CC -shared without GNU ld will not create a library from C++
5299 # object files and a static libstdc++, better avoid it by now
5300 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5301 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5302 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5303 hardcode_libdir_flag_spec=
5304 hardcode_shlibpath_var=no
5305 runpath_var='LD_RUN_PATH'
5306 ;;
5307
5308 uts4*)
5309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5310 hardcode_libdir_flag_spec='-L$libdir'
5311 hardcode_shlibpath_var=no
5312 ;;
5313
5314 dgux*)
5315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5316 hardcode_libdir_flag_spec='-L$libdir'
5317 hardcode_shlibpath_var=no
5318 ;;
5319
5320 sysv4*MP*)
5321 if test -d /usr/nec; then
5322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5323 hardcode_shlibpath_var=no
5324 runpath_var=LD_RUN_PATH
5325 hardcode_runpath_var=yes
5326 ld_shlibs=yes
5327 fi
5328 ;;
5329
5330 sysv4.2uw2*)
5331 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5332 hardcode_direct=yes
5333 hardcode_minus_L=no
5334 hardcode_shlibpath_var=no
5335 hardcode_runpath_var=yes
5336 runpath_var=LD_RUN_PATH
5337 ;;
5338
5339 sysv5uw7* | unixware7*)
5340 no_undefined_flag='${wl}-z ${wl}text'
5341 if test "$GCC" = yes; then
5342 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5343 else
5344 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5345 fi
5346 runpath_var='LD_RUN_PATH'
5347 hardcode_shlibpath_var=no
5348 ;;
5349
5350 *)
5351 ld_shlibs=no
5352 ;;
5353 esac
5354 fi
5355 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5356 echo "${ECHO_T}$ld_shlibs" >&6
5357 test "$ld_shlibs" = no && can_build_shared=no
5358 ##
5359 ## END FIXME
5360
5361 ## FIXME: this should be a separate macro
5362 ##
5363 # Check hardcoding attributes.
5364 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5365 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5366 hardcode_action=
5367 if test -n "$hardcode_libdir_flag_spec" || \
5368 test -n "$runpath_var"; then
5369
5370 # We can hardcode non-existant directories.
5371 if test "$hardcode_direct" != no &&
5372 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5373 # have to relink, otherwise we might link with an installed library
5374 # when we should be linking with a yet-to-be-installed one
5375 ## test "$hardcode_shlibpath_var" != no &&
5376 test "$hardcode_minus_L" != no; then
5377 # Linking always hardcodes the temporary library directory.
5378 hardcode_action=relink
5379 else
5380 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5381 hardcode_action=immediate
5382 fi
5383 else
5384 # We cannot hardcode anything, or else we can only hardcode existing
5385 # directories.
5386 hardcode_action=unsupported
5387 fi
5388 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5389 echo "${ECHO_T}$hardcode_action" >&6
5390 ##
5391 ## END FIXME
5392
5393 ## FIXME: this should be a separate macro
5394 ##
5395 striplib=
5396 old_striplib=
5397 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5398 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5399 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5402 echo "$as_me:$LINENO: result: yes" >&5
5403 echo "${ECHO_T}yes" >&6
5404 else
5405 echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5407 fi
5408 ##
5409 ## END FIXME
5410
5411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5412 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5413
5414 ## FIXME: this should be a separate macro
5415 ##
5416 # PORTME Fill in your ld.so characteristics
5417 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5418 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5419 library_names_spec=
5420 libname_spec='lib$name'
5421 soname_spec=
5422 postinstall_cmds=
5423 postuninstall_cmds=
5424 finish_cmds=
5425 finish_eval=
5426 shlibpath_var=
5427 shlibpath_overrides_runpath=unknown
5428 version_type=none
5429 dynamic_linker="$host_os ld.so"
5430 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5431 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5432
5433 case $host_os in
5434 aix3*)
5435 version_type=linux
5436 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5437 shlibpath_var=LIBPATH
5438
5439 # AIX has no versioning support, so we append a major version to the name.
5440 soname_spec='${libname}${release}.so$major'
5441 ;;
5442
5443 aix4* | aix5*)
5444 version_type=linux
5445 if test "$host_cpu" = ia64; then
5446 # AIX 5 supports IA64
5447 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5448 shlibpath_var=LD_LIBRARY_PATH
5449 else
5450 # With GCC up to 2.95.x, collect2 would create an import file
5451 # for dependence libraries. The import file would start with
5452 # the line `#! .'. This would cause the generated library to
5453 # depend on `.', always an invalid library. This was fixed in
5454 # development snapshots of GCC prior to 3.0.
5455 case $host_os in
5456 aix4 | aix4.[01] | aix4.[01].*)
5457 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5458 echo ' yes '
5459 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5460 :
5461 else
5462 can_build_shared=no
5463 fi
5464 ;;
5465 esac
5466 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5467 # soname into executable. Probably we can add versioning support to
5468 # collect2, so additional links can be useful in future.
5469 if test "$aix_use_runtimelinking" = yes; then
5470 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
5471 # lib<name>.a to let people know that these are not typical AIX shared libraries.
5472 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5473 else
5474 # We preserve .a as extension for shared libraries through AIX4.2
5475 # and later when we are not doing run time linking.
5476 library_names_spec='${libname}${release}.a $libname.a'
5477 soname_spec='${libname}${release}.so$major'
5478 fi
5479 shlibpath_var=LIBPATH
5480 deplibs_check_method=pass_all
5481 fi
5482 ;;
5483
5484 amigaos*)
5485 library_names_spec='$libname.ixlibrary $libname.a'
5486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5487 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5488 ;;
5489
5490 beos*)
5491 library_names_spec='${libname}.so'
5492 dynamic_linker="$host_os ld.so"
5493 shlibpath_var=LIBRARY_PATH
5494 ;;
5495
5496 bsdi4*)
5497 version_type=linux
5498 need_version=no
5499 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5500 soname_spec='${libname}${release}.so$major'
5501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5502 shlibpath_var=LD_LIBRARY_PATH
5503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5505 export_dynamic_flag_spec=-rdynamic
5506 # the default ld.so.conf also contains /usr/contrib/lib and
5507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5508 # libtool to hard-code these into programs
5509 ;;
5510
5511 cygwin* | mingw* | pw32*)
5512 version_type=windows
5513 need_version=no
5514 need_lib_prefix=no
5515 case $GCC,$host_os in
5516 yes,cygwin*)
5517 library_names_spec='$libname.dll.a'
5518 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5519 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5520 dldir=$destdir/`dirname \$dlpath`~
5521 test -d \$dldir || mkdir -p \$dldir~
5522 $install_prog .libs/$dlname \$dldir/$dlname'
5523 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5524 dlpath=$dir/\$dldll~
5525 $rm \$dlpath'
5526 ;;
5527 yes,mingw*)
5528 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5529 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5530 ;;
5531 yes,pw32*)
5532 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5533 ;;
5534 *)
5535 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5536 ;;
5537 esac
5538 dynamic_linker='Win32 ld.exe'
5539 # FIXME: first we should search . and the directory the executable is in
5540 shlibpath_var=PATH
5541 ;;
5542
5543 darwin* | rhapsody*)
5544 dynamic_linker="$host_os dyld"
5545 version_type=darwin
5546 need_lib_prefix=no
5547 need_version=no
5548 # FIXME: Relying on posixy $() will cause problems for
5549 # cross-compilation, but unfortunately the echo tests do not
5550 # yet detect zsh echo's removal of \ escapes.
5551 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5552 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5553 shlibpath_overrides_runpath=yes
5554 shlibpath_var=DYLD_LIBRARY_PATH
5555 ;;
5556
5557 freebsd1*)
5558 dynamic_linker=no
5559 ;;
5560
5561 freebsd*)
5562 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5563 version_type=freebsd-$objformat
5564 case $version_type in
5565 freebsd-elf*)
5566 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5567 need_version=no
5568 need_lib_prefix=no
5569 ;;
5570 freebsd-*)
5571 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5572 need_version=yes
5573 ;;
5574 esac
5575 shlibpath_var=LD_LIBRARY_PATH
5576 case $host_os in
5577 freebsd2*)
5578 shlibpath_overrides_runpath=yes
5579 ;;
5580 *)
5581 shlibpath_overrides_runpath=no
5582 hardcode_into_libs=yes
5583 ;;
5584 esac
5585 ;;
5586
5587 gnu*)
5588 version_type=linux
5589 need_lib_prefix=no
5590 need_version=no
5591 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5592 soname_spec='${libname}${release}.so$major'
5593 shlibpath_var=LD_LIBRARY_PATH
5594 hardcode_into_libs=yes
5595 ;;
5596
5597 hpux9* | hpux10* | hpux11*)
5598 # Give a soname corresponding to the major version so that dld.sl refuses to
5599 # link against other versions.
5600 dynamic_linker="$host_os dld.sl"
5601 version_type=sunos
5602 need_lib_prefix=no
5603 need_version=no
5604 shlibpath_var=SHLIB_PATH
5605 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5606 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5607 soname_spec='${libname}${release}.sl$major'
5608 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5609 postinstall_cmds='chmod 555 $lib'
5610 ;;
5611
5612 irix5* | irix6*)
5613 version_type=irix
5614 need_lib_prefix=no
5615 need_version=no
5616 soname_spec='${libname}${release}.so$major'
5617 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5618 case $host_os in
5619 irix5*)
5620 libsuff= shlibsuff=
5621 ;;
5622 *)
5623 case $LD in # libtool.m4 will add one of these switches to LD
5624 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5625 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5626 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5627 *) libsuff= shlibsuff= libmagic=never-match;;
5628 esac
5629 ;;
5630 esac
5631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5632 shlibpath_overrides_runpath=no
5633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5635 ;;
5636
5637 # No shared lib support for Linux oldld, aout, or coff.
5638 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5639 dynamic_linker=no
5640 ;;
5641
5642 # This must be Linux ELF.
5643 linux-gnu*)
5644 version_type=linux
5645 need_lib_prefix=no
5646 need_version=no
5647 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5648 soname_spec='${libname}${release}.so$major'
5649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5650 shlibpath_var=LD_LIBRARY_PATH
5651 shlibpath_overrides_runpath=no
5652 # This implies no fast_install, which is unacceptable.
5653 # Some rework will be needed to allow for fast_install
5654 # before this can be enabled.
5655 hardcode_into_libs=yes
5656
5657 # We used to test for /lib/ld.so.1 and disable shared libraries on
5658 # powerpc, because MkLinux only supported shared libraries with the
5659 # GNU dynamic linker. Since this was broken with cross compilers,
5660 # most powerpc-linux boxes support dynamic linking these days and
5661 # people can always --disable-shared, the test was removed, and we
5662 # assume the GNU/Linux dynamic linker is in use.
5663 dynamic_linker='GNU/Linux ld.so'
5664 ;;
5665
5666 netbsd*)
5667 version_type=sunos
5668 need_lib_prefix=no
5669 need_version=no
5670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5671 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5673 dynamic_linker='NetBSD (a.out) ld.so'
5674 else
5675 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5676 soname_spec='${libname}${release}.so$major'
5677 dynamic_linker='NetBSD ld.elf_so'
5678 fi
5679 shlibpath_var=LD_LIBRARY_PATH
5680 shlibpath_overrides_runpath=yes
5681 hardcode_into_libs=yes
5682 ;;
5683
5684 newsos6)
5685 version_type=linux
5686 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5687 shlibpath_var=LD_LIBRARY_PATH
5688 shlibpath_overrides_runpath=yes
5689 ;;
5690
5691 openbsd*)
5692 version_type=sunos
5693 if test "$with_gnu_ld" = yes; then
5694 need_lib_prefix=no
5695 need_version=no
5696 fi
5697 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5699 shlibpath_var=LD_LIBRARY_PATH
5700 ;;
5701
5702 os2*)
5703 libname_spec='$name'
5704 need_lib_prefix=no
5705 library_names_spec='$libname.dll $libname.a'
5706 dynamic_linker='OS/2 ld.exe'
5707 shlibpath_var=LIBPATH
5708 ;;
5709
5710 osf3* | osf4* | osf5*)
5711 version_type=osf
5712 need_version=no
5713 soname_spec='${libname}${release}.so'
5714 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5715 shlibpath_var=LD_LIBRARY_PATH
5716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5718 ;;
5719
5720 sco3.2v5*)
5721 version_type=osf
5722 soname_spec='${libname}${release}.so$major'
5723 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5724 shlibpath_var=LD_LIBRARY_PATH
5725 ;;
5726
5727 solaris*)
5728 version_type=linux
5729 need_lib_prefix=no
5730 need_version=no
5731 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5732 soname_spec='${libname}${release}.so$major'
5733 shlibpath_var=LD_LIBRARY_PATH
5734 shlibpath_overrides_runpath=yes
5735 hardcode_into_libs=yes
5736 # ldd complains unless libraries are executable
5737 postinstall_cmds='chmod +x $lib'
5738 ;;
5739
5740 sunos4*)
5741 version_type=sunos
5742 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5744 shlibpath_var=LD_LIBRARY_PATH
5745 shlibpath_overrides_runpath=yes
5746 if test "$with_gnu_ld" = yes; then
5747 need_lib_prefix=no
5748 fi
5749 need_version=yes
5750 ;;
5751
5752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5753 version_type=linux
5754 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5755 soname_spec='${libname}${release}.so$major'
5756 shlibpath_var=LD_LIBRARY_PATH
5757 case $host_vendor in
5758 sni)
5759 shlibpath_overrides_runpath=no
5760 ;;
5761 motorola)
5762 need_lib_prefix=no
5763 need_version=no
5764 shlibpath_overrides_runpath=no
5765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5766 ;;
5767 esac
5768 ;;
5769
5770 uts4*)
5771 version_type=linux
5772 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5773 soname_spec='${libname}${release}.so$major'
5774 shlibpath_var=LD_LIBRARY_PATH
5775 ;;
5776
5777 dgux*)
5778 version_type=linux
5779 need_lib_prefix=no
5780 need_version=no
5781 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5782 soname_spec='${libname}${release}.so$major'
5783 shlibpath_var=LD_LIBRARY_PATH
5784 ;;
5785
5786 sysv4*MP*)
5787 if test -d /usr/nec ;then
5788 version_type=linux
5789 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5790 soname_spec='$libname.so.$major'
5791 shlibpath_var=LD_LIBRARY_PATH
5792 fi
5793 ;;
5794
5795 *)
5796 dynamic_linker=no
5797 ;;
5798 esac
5799 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5800 echo "${ECHO_T}$dynamic_linker" >&6
5801 test "$dynamic_linker" = no && can_build_shared=no
5802 ##
5803 ## END FIXME
5804
5805 ## FIXME: this should be a separate macro
5806 ##
5807 # Report the final consequences.
5808 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5809 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5810 echo "$as_me:$LINENO: result: $can_build_shared" >&5
5811 echo "${ECHO_T}$can_build_shared" >&6
5812 ##
5813 ## END FIXME
5814
5815 if test "$hardcode_action" = relink; then
5816 # Fast installation is not supported
5817 enable_fast_install=no
5818 elif test "$shlibpath_overrides_runpath" = yes ||
5819 test "$enable_shared" = no; then
5820 # Fast installation is not necessary
5821 enable_fast_install=needless
5822 fi
5823
5824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5825 if test "$GCC" = yes; then
5826 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5827 fi
5828
5829 if test "x$enable_dlopen" != xyes; then
5830 enable_dlopen=unknown
5831 enable_dlopen_self=unknown
5832 enable_dlopen_self_static=unknown
5833 else
5834 lt_cv_dlopen=no
5835 lt_cv_dlopen_libs=
5836
5837 case $host_os in
5838 beos*)
5839 lt_cv_dlopen="load_add_on"
5840 lt_cv_dlopen_libs=
5841 lt_cv_dlopen_self=yes
5842 ;;
5843
5844 cygwin* | mingw* | pw32*)
5845 lt_cv_dlopen="LoadLibrary"
5846 lt_cv_dlopen_libs=
5847 ;;
5848
5849 *)
5850 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5851 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 ac_check_lib_save_LIBS=$LIBS
5856 LIBS="-ldl $LIBS"
5857 cat >conftest.$ac_ext <<_ACEOF
5858 #line $LINENO "configure"
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864
5865 /* Override any gcc2 internal prototype to avoid an error. */
5866 #ifdef __cplusplus
5867 extern "C"
5868 #endif
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5871 char dlopen ();
5872 int
5873 main ()
5874 {
5875 dlopen ();
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882 (eval $ac_link) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try='test -s conftest$ac_exeext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 (eval $ac_try) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_lib_dl_dlopen=yes
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 ac_cv_lib_dl_dlopen=no
5898 fi
5899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5900 LIBS=$ac_check_lib_save_LIBS
5901 fi
5902 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5904 if test $ac_cv_lib_dl_dlopen = yes; then
5905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5906 else
5907 echo "$as_me:$LINENO: checking for dlopen" >&5
5908 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5909 if test "${ac_cv_func_dlopen+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 cat >conftest.$ac_ext <<_ACEOF
5913 #line $LINENO "configure"
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 /* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char dlopen (); below.
5921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5922 <limits.h> exists even on freestanding compilers. */
5923 #ifdef __STDC__
5924 # include <limits.h>
5925 #else
5926 # include <assert.h>
5927 #endif
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 #ifdef __cplusplus
5930 extern "C"
5931 {
5932 #endif
5933 /* We use char because int might match the return type of a gcc2
5934 builtin and then its argument prototype would still apply. */
5935 char dlopen ();
5936 /* The GNU C library defines this for functions which it implements
5937 to always fail with ENOSYS. Some functions are actually named
5938 something starting with __ and the normal name is an alias. */
5939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5940 choke me
5941 #else
5942 char (*f) () = dlopen;
5943 #endif
5944 #ifdef __cplusplus
5945 }
5946 #endif
5947
5948 int
5949 main ()
5950 {
5951 return f != dlopen;
5952 ;
5953 return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958 (eval $ac_link) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -s conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_func_dlopen=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_cv_func_dlopen=no
5974 fi
5975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5976 fi
5977 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5978 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5979 if test $ac_cv_func_dlopen = yes; then
5980 lt_cv_dlopen="dlopen"
5981 else
5982 echo "$as_me:$LINENO: checking for shl_load" >&5
5983 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5984 if test "${ac_cv_func_shl_load+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 /* System header to define __stub macros and hopefully few prototypes,
5995 which can conflict with char shl_load (); below.
5996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 <limits.h> exists even on freestanding compilers. */
5998 #ifdef __STDC__
5999 # include <limits.h>
6000 #else
6001 # include <assert.h>
6002 #endif
6003 /* Override any gcc2 internal prototype to avoid an error. */
6004 #ifdef __cplusplus
6005 extern "C"
6006 {
6007 #endif
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6010 char shl_load ();
6011 /* The GNU C library defines this for functions which it implements
6012 to always fail with ENOSYS. Some functions are actually named
6013 something starting with __ and the normal name is an alias. */
6014 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6015 choke me
6016 #else
6017 char (*f) () = shl_load;
6018 #endif
6019 #ifdef __cplusplus
6020 }
6021 #endif
6022
6023 int
6024 main ()
6025 {
6026 return f != shl_load;
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 rm -f conftest.$ac_objext conftest$ac_exeext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6033 (eval $ac_link) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -s conftest$ac_exeext'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_func_shl_load=yes
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048 ac_cv_func_shl_load=no
6049 fi
6050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6051 fi
6052 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6053 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6054 if test $ac_cv_func_shl_load = yes; then
6055 lt_cv_dlopen="shl_load"
6056 else
6057 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6058 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6059 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-lsvld $LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF
6065 #line $LINENO "configure"
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071
6072 /* Override any gcc2 internal prototype to avoid an error. */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6078 char dlopen ();
6079 int
6080 main ()
6081 {
6082 dlopen ();
6083 ;
6084 return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -s conftest$ac_exeext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 ac_cv_lib_svld_dlopen=yes
6100 else
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104 ac_cv_lib_svld_dlopen=no
6105 fi
6106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_check_lib_save_LIBS
6108 fi
6109 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6110 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6111 if test $ac_cv_lib_svld_dlopen = yes; then
6112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6113 else
6114 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6115 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6116 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 ac_check_lib_save_LIBS=$LIBS
6120 LIBS="-ldld $LIBS"
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line $LINENO "configure"
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128
6129 /* Override any gcc2 internal prototype to avoid an error. */
6130 #ifdef __cplusplus
6131 extern "C"
6132 #endif
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6135 char shl_load ();
6136 int
6137 main ()
6138 {
6139 shl_load ();
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146 (eval $ac_link) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -s conftest$ac_exeext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 ac_cv_lib_dld_shl_load=yes
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_cv_lib_dld_shl_load=no
6162 fi
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 LIBS=$ac_check_lib_save_LIBS
6165 fi
6166 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6167 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6168 if test $ac_cv_lib_dld_shl_load = yes; then
6169 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6170 fi
6171
6172
6173 fi
6174
6175
6176 fi
6177
6178
6179 fi
6180
6181
6182 fi
6183
6184 ;;
6185 esac
6186
6187 if test "x$lt_cv_dlopen" != xno; then
6188 enable_dlopen=yes
6189 else
6190 enable_dlopen=no
6191 fi
6192
6193 case $lt_cv_dlopen in
6194 dlopen)
6195 save_CPPFLAGS="$CPPFLAGS"
6196 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6197
6198 save_LDFLAGS="$LDFLAGS"
6199 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6200
6201 save_LIBS="$LIBS"
6202 LIBS="$lt_cv_dlopen_libs $LIBS"
6203
6204 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6205 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6206 if test "${lt_cv_dlopen_self+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if test "$cross_compiling" = yes; then :
6210 lt_cv_dlopen_self=cross
6211 else
6212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6213 lt_status=$lt_dlunknown
6214 cat > conftest.$ac_ext <<EOF
6215 #line 6212 "configure"
6216 #include "confdefs.h"
6217
6218 #if HAVE_DLFCN_H
6219 #include <dlfcn.h>
6220 #endif
6221
6222 #include <stdio.h>
6223
6224 #ifdef RTLD_GLOBAL
6225 # define LT_DLGLOBAL RTLD_GLOBAL
6226 #else
6227 # ifdef DL_GLOBAL
6228 # define LT_DLGLOBAL DL_GLOBAL
6229 # else
6230 # define LT_DLGLOBAL 0
6231 # endif
6232 #endif
6233
6234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6235 find out it does not work in some platform. */
6236 #ifndef LT_DLLAZY_OR_NOW
6237 # ifdef RTLD_LAZY
6238 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6239 # else
6240 # ifdef DL_LAZY
6241 # define LT_DLLAZY_OR_NOW DL_LAZY
6242 # else
6243 # ifdef RTLD_NOW
6244 # define LT_DLLAZY_OR_NOW RTLD_NOW
6245 # else
6246 # ifdef DL_NOW
6247 # define LT_DLLAZY_OR_NOW DL_NOW
6248 # else
6249 # define LT_DLLAZY_OR_NOW 0
6250 # endif
6251 # endif
6252 # endif
6253 # endif
6254 #endif
6255
6256 #ifdef __cplusplus
6257 extern "C" void exit (int);
6258 #endif
6259
6260 void fnord() { int i=42;}
6261 int main ()
6262 {
6263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6264 int status = $lt_dlunknown;
6265
6266 if (self)
6267 {
6268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6269 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6270 /* dlclose (self); */
6271 }
6272
6273 exit (status);
6274 }
6275 EOF
6276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6277 (eval $ac_link) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6281 (./conftest; exit; ) 2>/dev/null
6282 lt_status=$?
6283 case x$lt_status in
6284 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6285 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6286 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6287 esac
6288 else :
6289 # compilation failed
6290 lt_cv_dlopen_self=no
6291 fi
6292 fi
6293 rm -fr conftest*
6294
6295
6296 fi
6297 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6298 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6299
6300 if test "x$lt_cv_dlopen_self" = xyes; then
6301 LDFLAGS="$LDFLAGS $link_static_flag"
6302 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6303 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6304 if test "${lt_cv_dlopen_self_static+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 if test "$cross_compiling" = yes; then :
6308 lt_cv_dlopen_self_static=cross
6309 else
6310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6311 lt_status=$lt_dlunknown
6312 cat > conftest.$ac_ext <<EOF
6313 #line 6310 "configure"
6314 #include "confdefs.h"
6315
6316 #if HAVE_DLFCN_H
6317 #include <dlfcn.h>
6318 #endif
6319
6320 #include <stdio.h>
6321
6322 #ifdef RTLD_GLOBAL
6323 # define LT_DLGLOBAL RTLD_GLOBAL
6324 #else
6325 # ifdef DL_GLOBAL
6326 # define LT_DLGLOBAL DL_GLOBAL
6327 # else
6328 # define LT_DLGLOBAL 0
6329 # endif
6330 #endif
6331
6332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6333 find out it does not work in some platform. */
6334 #ifndef LT_DLLAZY_OR_NOW
6335 # ifdef RTLD_LAZY
6336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6337 # else
6338 # ifdef DL_LAZY
6339 # define LT_DLLAZY_OR_NOW DL_LAZY
6340 # else
6341 # ifdef RTLD_NOW
6342 # define LT_DLLAZY_OR_NOW RTLD_NOW
6343 # else
6344 # ifdef DL_NOW
6345 # define LT_DLLAZY_OR_NOW DL_NOW
6346 # else
6347 # define LT_DLLAZY_OR_NOW 0
6348 # endif
6349 # endif
6350 # endif
6351 # endif
6352 #endif
6353
6354 #ifdef __cplusplus
6355 extern "C" void exit (int);
6356 #endif
6357
6358 void fnord() { int i=42;}
6359 int main ()
6360 {
6361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6362 int status = $lt_dlunknown;
6363
6364 if (self)
6365 {
6366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6368 /* dlclose (self); */
6369 }
6370
6371 exit (status);
6372 }
6373 EOF
6374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6375 (eval $ac_link) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6379 (./conftest; exit; ) 2>/dev/null
6380 lt_status=$?
6381 case x$lt_status in
6382 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6383 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6384 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6385 esac
6386 else :
6387 # compilation failed
6388 lt_cv_dlopen_self_static=no
6389 fi
6390 fi
6391 rm -fr conftest*
6392
6393
6394 fi
6395 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6396 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6397 fi
6398
6399 CPPFLAGS="$save_CPPFLAGS"
6400 LDFLAGS="$save_LDFLAGS"
6401 LIBS="$save_LIBS"
6402 ;;
6403 esac
6404
6405 case $lt_cv_dlopen_self in
6406 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6407 *) enable_dlopen_self=unknown ;;
6408 esac
6409
6410 case $lt_cv_dlopen_self_static in
6411 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6412 *) enable_dlopen_self_static=unknown ;;
6413 esac
6414 fi
6415
6416
6417 ## FIXME: this should be a separate macro
6418 ##
6419 if test "$enable_shared" = yes && test "$GCC" = yes; then
6420 case $archive_cmds in
6421 *'~'*)
6422 # FIXME: we may have to deal with multi-command sequences.
6423 ;;
6424 '$CC '*)
6425 # Test whether the compiler implicitly links with -lc since on some
6426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6427 # to ld, don't add -lc before -lgcc.
6428 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6429 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6430 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433 $rm conftest*
6434 echo 'static int dummy;' > conftest.$ac_ext
6435
6436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437 (eval $ac_compile) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; then
6441 soname=conftest
6442 lib=conftest
6443 libobjs=conftest.$ac_objext
6444 deplibs=
6445 wl=$lt_cv_prog_cc_wl
6446 compiler_flags=-v
6447 linker_flags=-v
6448 verstring=
6449 output_objdir=.
6450 libname=conftest
6451 save_allow_undefined_flag=$allow_undefined_flag
6452 allow_undefined_flag=
6453 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6454 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }
6458 then
6459 lt_cv_archive_cmds_need_lc=no
6460 else
6461 lt_cv_archive_cmds_need_lc=yes
6462 fi
6463 allow_undefined_flag=$save_allow_undefined_flag
6464 else
6465 cat conftest.err 1>&5
6466 fi
6467 fi
6468
6469 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6470 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6471 ;;
6472 esac
6473 fi
6474 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6475 ##
6476 ## END FIXME
6477
6478 ## FIXME: this should be a separate macro
6479 ##
6480 # The second clause should only fire when bootstrapping the
6481 # libtool distribution, otherwise you forgot to ship ltmain.sh
6482 # with your package, and you will get complaints that there are
6483 # no rules to generate ltmain.sh.
6484 if test -f "$ltmain"; then
6485 :
6486 else
6487 # If there is no Makefile yet, we rely on a make rule to execute
6488 # `config.status --recheck' to rerun these tests and create the
6489 # libtool script then.
6490 test -f Makefile && make "$ltmain"
6491 fi
6492
6493 if test -f "$ltmain"; then
6494 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6495 $rm -f "${ofile}T"
6496
6497 echo creating $ofile
6498
6499 # Now quote all the things that may contain metacharacters while being
6500 # careful not to overquote the AC_SUBSTed values. We take copies of the
6501 # variables and quote the copies for generation of the libtool script.
6502 for var in echo old_CC old_CFLAGS \
6503 AR AR_FLAGS CC LD LN_S NM SHELL \
6504 reload_flag reload_cmds wl \
6505 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6506 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6507 library_names_spec soname_spec \
6508 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6509 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6510 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6511 old_striplib striplib file_magic_cmd export_symbols_cmds \
6512 deplibs_check_method allow_undefined_flag no_undefined_flag \
6513 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6514 hardcode_libdir_flag_spec hardcode_libdir_separator \
6515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6516 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6517
6518 case $var in
6519 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6520 old_postinstall_cmds | old_postuninstall_cmds | \
6521 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6522 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6523 postinstall_cmds | postuninstall_cmds | \
6524 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6525 # Double-quote double-evaled strings.
6526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6527 ;;
6528 *)
6529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6530 ;;
6531 esac
6532 done
6533
6534 cat <<__EOF__ > "${ofile}T"
6535 #! $SHELL
6536
6537 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6538 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6539 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6540 #
6541 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6542 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6543 #
6544 # This program is free software; you can redistribute it and/or modify
6545 # it under the terms of the GNU General Public License as published by
6546 # the Free Software Foundation; either version 2 of the License, or
6547 # (at your option) any later version.
6548 #
6549 # This program is distributed in the hope that it will be useful, but
6550 # WITHOUT ANY WARRANTY; without even the implied warranty of
6551 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6552 # General Public License for more details.
6553 #
6554 # You should have received a copy of the GNU General Public License
6555 # along with this program; if not, write to the Free Software
6556 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6557 #
6558 # As a special exception to the GNU General Public License, if you
6559 # distribute this file as part of a program that contains a
6560 # configuration script generated by Autoconf, you may include it under
6561 # the same distribution terms that you use for the rest of that program.
6562
6563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6564 Xsed="sed -e s/^X//"
6565
6566 # The HP-UX ksh and POSIX shell print the target directory to stdout
6567 # if CDPATH is set.
6568 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6569
6570 # ### BEGIN LIBTOOL CONFIG
6571
6572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6573
6574 # Shell to use when invoking shell scripts.
6575 SHELL=$lt_SHELL
6576
6577 # Whether or not to build shared libraries.
6578 build_libtool_libs=$enable_shared
6579
6580 # Whether or not to add -lc for building shared libraries.
6581 build_libtool_need_lc=$need_lc
6582
6583 # Whether or not to build static libraries.
6584 build_old_libs=$enable_static
6585
6586 # Whether or not to optimize for fast installation.
6587 fast_install=$enable_fast_install
6588
6589 # The host system.
6590 host_alias=$host_alias
6591 host=$host
6592
6593 # An echo program that does not interpret backslashes.
6594 echo=$lt_echo
6595