2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
21 # Check that we are running under the correct shell.
22 SHELL=${CONFIG_SHELL-/bin/sh}
26 # Remove one level of quotation (which was required for Make).
27 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32 if test "X$1" = X--no-reexec; then
33 # Discard the --no-reexec flag, and continue.
35 elif test "X$1" = X--fallback-echo; then
36 # Avoid inline document here, it may be left over
38 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39 # Yippee, $echo works!
42 # Restart under the correct shell.
43 exec $SHELL "$0" --no-reexec ${1+"$@"}
46 if test "X$1" = X--fallback-echo; then
47 # used as fallback echo
55 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59 if test -z "$ECHO"; then
60 if test "X${echo_test_string+set}" != Xset; then
61 # find a string as large as possible, as long as the shell can cope with it
62 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65 echo_test_string="`eval $cmd`" &&
66 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
73 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75 test "X$echo_testing_string" = "X$echo_test_string"; then
78 # The Solaris, AIX, and Digital Unix default echo programs unquote
79 # backslashes. This makes it impossible to quote backslashes using
80 # echo "$something" | sed 's/\\/\\\\/g'
82 # So, first we look for a working echo in the user's PATH.
84 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85 for dir in $PATH /usr/ucb; do
86 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
96 if test "X$echo" = Xecho; then
97 # We didn't find a better echo, so look for alternatives.
98 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100 test "X$echo_testing_string" = "X$echo_test_string"; then
101 # This shell has a builtin print -r that does the trick.
103 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104 test "X$CONFIG_SHELL" != X/bin/ksh; then
105 # If we have ksh, try running configure again with it.
106 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107 export ORIGINAL_CONFIG_SHELL
108 CONFIG_SHELL=/bin/ksh
110 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116 test "X$echo_testing_string" = "X$echo_test_string"; then
119 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 SHELL="$CONFIG_SHELL"
127 echo="$CONFIG_SHELL $0 --fallback-echo"
128 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129 test "X$echo_testing_string" = 'X\t' &&
130 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131 test "X$echo_testing_string" = "X$echo_test_string"; then
132 echo="$CONFIG_SHELL $0 --fallback-echo"
134 # maybe with a smaller string...
137 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
145 if test "$prev" != 'sed 50q "$0"'; then
146 echo_test_string=`eval $prev`
147 export echo_test_string
148 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 # Oops. We lost completely, so just stick with echo.
159 # Copy echo and quote the copy suitably for passing to libtool from
160 # the Makefile, instead of quoting the original, which is used later.
162 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
166 # Avoid depending upon Character Ranges.
167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170 as_cr_digits='0123456789'
171 as_cr_alnum=$as_cr_Letters$as_cr_digits
173 # Sed expression to map a string onto a valid variable name.
174 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
176 # Sed expression to map a string onto a valid CPP name.
177 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
179 # Be Bourne compatible
180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187 # Name of the executable.
188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Support unset when possible.
217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
234 # We need space, tab and new line, in precisely that order.
240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 ac_default_prefix=/usr/local
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 ac_unique_file="lib/localcharset.c"
265 # Initialize some variables set by options.
267 ac_init_version=false
268 # The variables have the same names as the options, with
269 # dashes changed to underlines.
277 program_transform_name=s,x,x,
285 # Installation directory options.
286 # These are left unexpanded so users can "make install exec_prefix=/foo"
287 # and all the variables that are supposed to be based on exec_prefix
288 # by default will actually change.
289 # Use braces instead of parens because sh, perl, etc. also accept them.
290 bindir='${exec_prefix}/bin'
291 sbindir='${exec_prefix}/sbin'
292 libexecdir='${exec_prefix}/libexec'
293 datadir='${prefix}/share'
294 sysconfdir='${prefix}/etc'
295 sharedstatedir='${prefix}/com'
296 localstatedir='${prefix}/var'
297 libdir='${exec_prefix}/lib'
298 includedir='${prefix}/include'
299 oldincludedir='/usr/include'
300 infodir='${prefix}/info'
301 mandir='${prefix}/man'
303 # Identity of this package.
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
320 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
322 # Accept the important Cygnus configure options, so we can diagnose typos.
326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
331 -build | --build | --buil | --bui | --bu)
332 ac_prev=build_alias ;;
333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
334 build_alias=$ac_optarg ;;
336 -cache-file | --cache-file | --cache-fil | --cache-fi \
337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
338 ac_prev=cache_file ;;
339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
341 cache_file=$ac_optarg ;;
344 cache_file=config.cache ;;
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
350 datadir=$ac_optarg ;;
352 -disable-* | --disable-*)
353 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
354 # Reject names that are not valid shell variable names.
355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
359 eval "enable_$ac_feature=no" ;;
361 -enable-* | --enable-*)
362 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
363 # Reject names that are not valid shell variable names.
364 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
365 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366 { (exit 1); exit 1; }; }
367 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
369 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
372 eval "enable_$ac_feature='$ac_optarg'" ;;
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix=$ac_optarg ;;
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
387 -help | --help | --hel | --he | -h)
389 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
390 ac_init_help=recursive ;;
391 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
392 ac_init_help=short ;;
394 -host | --host | --hos | --ho)
395 ac_prev=host_alias ;;
396 -host=* | --host=* | --hos=* | --ho=*)
397 host_alias=$ac_optarg ;;
399 -includedir | --includedir | --includedi | --included | --include \
400 | --includ | --inclu | --incl | --inc)
401 ac_prev=includedir ;;
402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
403 | --includ=* | --inclu=* | --incl=* | --inc=*)
404 includedir=$ac_optarg ;;
406 -infodir | --infodir | --infodi | --infod | --info | --inf)
408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
409 infodir=$ac_optarg ;;
411 -libdir | --libdir | --libdi | --libd)
413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
417 | --libexe | --libex | --libe)
418 ac_prev=libexecdir ;;
419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
420 | --libexe=* | --libex=* | --libe=*)
421 libexecdir=$ac_optarg ;;
423 -localstatedir | --localstatedir | --localstatedi | --localstated \
424 | --localstate | --localstat | --localsta | --localst \
425 | --locals | --local | --loca | --loc | --lo)
426 ac_prev=localstatedir ;;
427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
428 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
429 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
430 localstatedir=$ac_optarg ;;
432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
438 # Obsolete; use --without-fp.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
451 | --oldin | --oldi | --old | --ol | --o)
452 ac_prev=oldincludedir ;;
453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
456 oldincludedir=$ac_optarg ;;
458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
464 | --program-pre | --program-pr | --program-p)
465 ac_prev=program_prefix ;;
466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
468 program_prefix=$ac_optarg ;;
470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
471 | --program-suf | --program-su | --program-s)
472 ac_prev=program_suffix ;;
473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
475 program_suffix=$ac_optarg ;;
477 -program-transform-name | --program-transform-name \
478 | --program-transform-nam | --program-transform-na \
479 | --program-transform-n | --program-transform- \
480 | --program-transform | --program-transfor \
481 | --program-transfo | --program-transf \
482 | --program-trans | --program-tran \
483 | --progr-tra | --program-tr | --program-t)
484 ac_prev=program_transform_name ;;
485 -program-transform-name=* | --program-transform-name=* \
486 | --program-transform-nam=* | --program-transform-na=* \
487 | --program-transform-n=* | --program-transform-=* \
488 | --program-transform=* | --program-transfor=* \
489 | --program-transfo=* | --program-transf=* \
490 | --program-trans=* | --program-tran=* \
491 | --progr-tra=* | --program-tr=* | --program-t=*)
492 program_transform_name=$ac_optarg ;;
494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495 | -silent | --silent | --silen | --sile | --sil)
498 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
500 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
502 sbindir=$ac_optarg ;;
504 -sharedstatedir | --sharedstatedir | --sharedstatedi \
505 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
506 | --sharedst | --shareds | --shared | --share | --shar \
508 ac_prev=sharedstatedir ;;
509 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
510 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
511 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
513 sharedstatedir=$ac_optarg ;;
515 -site | --site | --sit)
517 -site=* | --site=* | --sit=*)
520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
525 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
526 | --syscon | --sysco | --sysc | --sys | --sy)
527 ac_prev=sysconfdir ;;
528 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
529 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
530 sysconfdir=$ac_optarg ;;
532 -target | --target | --targe | --targ | --tar | --ta | --t)
533 ac_prev=target_alias ;;
534 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
535 target_alias=$ac_optarg ;;
537 -v | -verbose | --verbose | --verbos | --verbo | --verb)
540 -version | --version | --versio | --versi | --vers | -V)
544 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid package name: $ac_package" >&2
548 { (exit 1); exit 1; }; }
549 ac_package=`echo $ac_package| sed 's/-/_/g'`
551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554 eval "with_$ac_package='$ac_optarg'" ;;
556 -without-* | --without-*)
557 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid package name: $ac_package" >&2
561 { (exit 1); exit 1; }; }
562 ac_package=`echo $ac_package | sed 's/-/_/g'`
563 eval "with_$ac_package=no" ;;
566 # Obsolete; use --with-x.
569 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
570 | --x-incl | --x-inc | --x-in | --x-i)
571 ac_prev=x_includes ;;
572 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
573 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
574 x_includes=$ac_optarg ;;
576 -x-libraries | --x-libraries | --x-librarie | --x-librari \
577 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
578 ac_prev=x_libraries ;;
579 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
580 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
581 x_libraries=$ac_optarg ;;
583 -*) { echo "$as_me: error: unrecognized option: $ac_option
584 Try \`$0 --help' for more information." >&2
585 { (exit 1); exit 1; }; }
589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593 { (exit 1); exit 1; }; }
594 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595 eval "$ac_envvar='$ac_optarg'"
599 # FIXME: should be removed in autoconf 3.0.
600 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
602 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 if test -n "$ac_prev"; then
610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
611 { echo "$as_me: error: missing argument to $ac_option" >&2
612 { (exit 1); exit 1; }; }
615 # Be sure to have absolute paths.
616 for ac_var in exec_prefix prefix
618 eval ac_val=$`echo $ac_var`
620 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
621 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622 { (exit 1); exit 1; }; };;
626 # Be sure to have absolute paths.
627 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628 localstatedir libdir includedir oldincludedir infodir mandir
630 eval ac_val=$`echo $ac_var`
632 [\\/$]* | ?:[\\/]* ) ;;
633 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634 { (exit 1); exit 1; }; };;
638 # There might be people who depend on the old broken behavior: `$host'
639 # used to hold the argument of --host etc.
644 # FIXME: should be removed in autoconf 3.0.
645 if test "x$host_alias" != x; then
646 if test "x$build_alias" = x; then
647 cross_compiling=maybe
648 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649 If a cross compiler is detected then cross compile mode will be used." >&2
650 elif test "x$build_alias" != "x$host_alias"; then
656 test -n "$host_alias" && ac_tool_prefix=$host_alias-
658 test "$silent" = yes && exec 6>/dev/null
660 # Find the source files, if location was not specified.
661 if test -z "$srcdir"; then
662 ac_srcdir_defaulted=yes
663 # Try the directory containing this script, then its parent.
665 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
666 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
668 if test ! -r $srcdir/$ac_unique_file; then
672 ac_srcdir_defaulted=no
674 if test ! -r $srcdir/$ac_unique_file; then
675 if test "$ac_srcdir_defaulted" = yes; then
676 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
677 { (exit 1); exit 1; }; }
679 { echo "$as_me: error: cannot find sources in $srcdir" >&2
680 { (exit 1); exit 1; }; }
683 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
684 ac_env_build_alias_set=${build_alias+set}
685 ac_env_build_alias_value=$build_alias
686 ac_cv_env_build_alias_set=${build_alias+set}
687 ac_cv_env_build_alias_value=$build_alias
688 ac_env_host_alias_set=${host_alias+set}
689 ac_env_host_alias_value=$host_alias
690 ac_cv_env_host_alias_set=${host_alias+set}
691 ac_cv_env_host_alias_value=$host_alias
692 ac_env_target_alias_set=${target_alias+set}
693 ac_env_target_alias_value=$target_alias
694 ac_cv_env_target_alias_set=${target_alias+set}
695 ac_cv_env_target_alias_value=$target_alias
696 ac_env_CC_set=${CC+set}
698 ac_cv_env_CC_set=${CC+set}
699 ac_cv_env_CC_value=$CC
700 ac_env_CFLAGS_set=${CFLAGS+set}
701 ac_env_CFLAGS_value=$CFLAGS
702 ac_cv_env_CFLAGS_set=${CFLAGS+set}
703 ac_cv_env_CFLAGS_value=$CFLAGS
704 ac_env_LDFLAGS_set=${LDFLAGS+set}
705 ac_env_LDFLAGS_value=$LDFLAGS
706 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
707 ac_cv_env_LDFLAGS_value=$LDFLAGS
708 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
709 ac_env_CPPFLAGS_value=$CPPFLAGS
710 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
711 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
712 ac_env_CPP_set=${CPP+set}
713 ac_env_CPP_value=$CPP
714 ac_cv_env_CPP_set=${CPP+set}
715 ac_cv_env_CPP_value=$CPP
718 # Report the --help message.
720 if test "$ac_init_help" = "long"; then
721 # Omit some internal or obsolete options to make the list less imposing.
722 # This message is too long to be a string in the A/UX 3.1 sh.
724 \`configure' configures this package to adapt to many kinds of systems.
726 Usage: $0 [OPTION]... [VAR=VALUE]...
728 To assign environment variables (e.g., CC, CFLAGS...), specify them as
729 VAR=VALUE. See below for descriptions of some of the useful variables.
731 Defaults for the options are specified in brackets.
734 -h, --help display this help and exit
735 --help=short display options specific to this package
736 --help=recursive display the short help of all the included packages
737 -V, --version display version information and exit
738 -q, --quiet, --silent do not print \`checking...' messages
739 --cache-file=FILE cache test results in FILE [disabled]
740 -C, --config-cache alias for \`--cache-file=config.cache'
741 -n, --no-create do not create output files
742 --srcdir=DIR find the sources in DIR [configure dir or \`..']
747 Installation directories:
748 --prefix=PREFIX install architecture-independent files in PREFIX
750 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
753 By default, \`make install' will install all the files in
754 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
755 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
756 for instance \`--prefix=\$HOME'.
758 For better control, use the options below.
760 Fine tuning of the installation directories:
761 --bindir=DIR user executables [EPREFIX/bin]
762 --sbindir=DIR system admin executables [EPREFIX/sbin]
763 --libexecdir=DIR program executables [EPREFIX/libexec]
764 --datadir=DIR read-only architecture-independent data [PREFIX/share]
765 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
766 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
767 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
768 --libdir=DIR object code libraries [EPREFIX/lib]
769 --includedir=DIR C header files [PREFIX/include]
770 --oldincludedir=DIR C header files for non-gcc [/usr/include]
771 --infodir=DIR info documentation [PREFIX/info]
772 --mandir=DIR man documentation [PREFIX/man]
778 --build=BUILD configure for building on BUILD [guessed]
779 --host=HOST build programs to run on HOST [BUILD]
783 if test -n "$ac_init_help"; then
788 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
789 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
790 --enable-shared=PKGS build shared libraries default=yes
791 --enable-static=PKGS build static libraries default=yes
792 --enable-fast-install=PKGS optimize for fast installation default=yes
793 --disable-libtool-lock avoid locking (might break parallel builds)
796 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
797 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
798 --with-gnu-ld assume the C compiler uses GNU ld default=no
799 --with-pic try to use only PIC/non-PIC objects default=use both
801 Some influential environment variables:
802 CC C compiler command
803 CFLAGS C compiler flags
804 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
805 nonstandard directory <lib dir>
806 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
807 headers in a nonstandard directory <include dir>
810 Use these variables to override the choices made by `configure' or to help
811 it to find libraries and programs with nonstandard names/locations.
816 if test "$ac_init_help" = "recursive"; then
817 # If there are subdirs, report their specific --help.
819 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
821 # A "../" for each directory in /$ac_subdir.
822 ac_dots=`echo $ac_subdir |
823 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
826 .) # No --srcdir option. We are building in place.
827 ac_sub_srcdir=$srcdir ;;
828 [\\/]* | ?:[\\/]* ) # Absolute path.
829 ac_sub_srcdir=$srcdir/$ac_subdir ;;
831 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
834 # Check for guested configure; otherwise get Cygnus style configure.
835 if test -f $ac_sub_srcdir/configure.gnu; then
837 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
838 elif test -f $ac_sub_srcdir/configure; then
840 $SHELL $ac_sub_srcdir/configure --help=recursive
841 elif test -f $ac_sub_srcdir/configure.ac ||
842 test -f $ac_sub_srcdir/configure.in; then
846 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
852 test -n "$ac_init_help" && exit 0
853 if $ac_init_version; then
856 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
857 Free Software Foundation, Inc.
858 This configure script is free software; the Free Software Foundation
859 gives unlimited permission to copy, distribute and modify it.
865 This file contains any messages produced by compilers while
866 running configure, to aid debugging if configure makes a mistake.
868 It was created by $as_me, which was
869 generated by GNU Autoconf 2.52. Invocation command line was
880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
892 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
909 # Keep a trace of the command line.
910 # Strip out --no-create and --no-recursion so they do not pile up.
911 # Also quote any args containing shell meta-characters.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c) ;;
919 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
920 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
921 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
922 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
923 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
925 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
928 # Get rid of the leading space.
931 # When interrupted or exit'd, cleanup temporary files, and complete
932 # config.log. We remove comments because anyway the quotes in there
933 # would cause problems or look ugly.
935 # Save into config.log some information that might help in debugging.
937 echo "## ----------------- ##" >&5
938 echo "## Cache variables. ##" >&5
939 echo "## ----------------- ##" >&5
941 # The following way of writing the cache mishandles newlines in values,
944 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
947 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
952 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
956 sed "/^$/d" confdefs.h >conftest.log
957 if test -s conftest.log; then
959 echo "## ------------ ##" >&5
960 echo "## confdefs.h. ##" >&5
961 echo "## ------------ ##" >&5
966 test "$ac_signal" != 0 &&
967 echo "$as_me: caught signal $ac_signal" >&5
968 echo "$as_me: exit $exit_status" >&5
969 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
972 for ac_signal in 1 2 13 15; do
973 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
977 # confdefs.h avoids OS command line length limits that DEFS can exceed.
978 rm -rf conftest* confdefs.h
979 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
982 # Let the site file select an alternate cache file if it wants to.
983 # Prefer explicitly selected file to automatically selected ones.
984 if test -z "$CONFIG_SITE"; then
985 if test "x$prefix" != xNONE; then
986 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
988 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
991 for ac_site_file in $CONFIG_SITE; do
992 if test -r "$ac_site_file"; then
993 { echo "$as_me:993: loading site script $ac_site_file" >&5
994 echo "$as_me: loading site script $ac_site_file" >&6;}
995 cat "$ac_site_file" >&5
1000 if test -r "$cache_file"; then
1001 # Some versions of bash will fail to source /dev/null (special
1002 # files actually), so we avoid doing that.
1003 if test -f "$cache_file"; then
1004 { echo "$as_me:1004: loading cache $cache_file" >&5
1005 echo "$as_me: loading cache $cache_file" >&6;}
1007 [\\/]* | ?:[\\/]* ) . $cache_file;;
1008 *) . ./$cache_file;;
1012 { echo "$as_me:1012: creating cache $cache_file" >&5
1013 echo "$as_me: creating cache $cache_file" >&6;}
1017 # Check that the precious variables saved in the cache have kept the same
1019 ac_cache_corrupted=false
1020 for ac_var in `(set) 2>&1 |
1021 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1023 eval ac_new_set=\$ac_env_${ac_var}_set
1024 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1025 eval ac_new_val="\$ac_env_${ac_var}_value"
1026 case $ac_old_set,$ac_new_set in
1028 { echo "$as_me:1028: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1029 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1030 ac_cache_corrupted=: ;;
1032 { echo "$as_me:1032: error: \`$ac_var' was not set in the previous run" >&5
1033 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1034 ac_cache_corrupted=: ;;
1037 if test "x$ac_old_val" != "x$ac_new_val"; then
1038 { echo "$as_me:1038: error: \`$ac_var' has changed since the previous run:" >&5
1039 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1040 { echo "$as_me:1040: former value: $ac_old_val" >&5
1041 echo "$as_me: former value: $ac_old_val" >&2;}
1042 { echo "$as_me:1042: current value: $ac_new_val" >&5
1043 echo "$as_me: current value: $ac_new_val" >&2;}
1044 ac_cache_corrupted=:
1047 # Pass precious variables to config.status. It doesn't matter if
1048 # we pass some twice (in addition to the command line arguments).
1049 if test "$ac_new_set" = set; then
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1053 ac_configure_args="$ac_configure_args '$ac_arg'"
1055 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1060 if $ac_cache_corrupted; then
1061 { echo "$as_me:1061: error: changes in the environment can compromise the build" >&5
1062 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1063 { { echo "$as_me:1063: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1064 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1065 { (exit 1); exit 1; }; }
1069 ac_cpp='$CPP $CPPFLAGS'
1070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1074 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1075 *c*,-n*) ECHO_N= ECHO_C='
1077 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1078 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1080 echo "#! $SHELL" >conftest.sh
1081 echo "exit 0" >>conftest.sh
1082 chmod +x conftest.sh
1083 if { (echo "$as_me:1083: PATH=\".;.\"; conftest.sh") >&5
1084 (PATH=".;."; conftest.sh) 2>&5
1086 echo "$as_me:1086: \$? = $ac_status" >&5
1087 (exit $ac_status); }; then
1088 ac_path_separator=';'
1092 PATH_SEPARATOR="$ac_path_separator"
1096 for ac_dir in autoconf $srcdir/autoconf; do
1097 if test -f $ac_dir/install-sh; then
1099 ac_install_sh="$ac_aux_dir/install-sh -c"
1101 elif test -f $ac_dir/install.sh; then
1103 ac_install_sh="$ac_aux_dir/install.sh -c"
1105 elif test -f $ac_dir/shtool; then
1107 ac_install_sh="$ac_aux_dir/shtool install -c"
1111 if test -z "$ac_aux_dir"; then
1112 { { echo "$as_me:1112: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1113 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1114 { (exit 1); exit 1; }; }
1116 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1117 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1118 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1120 ac_config_headers="$ac_config_headers config.h"
1122 echo "$as_me:1122: checking whether ${MAKE-make} sets \${MAKE}" >&5
1123 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1124 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1125 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1126 echo $ECHO_N "(cached) $ECHO_C" >&6
1128 cat >conftest.make <<\EOF
1130 @echo 'ac_maketemp="${MAKE}"'
1132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1133 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1134 if test -n "$ac_maketemp"; then
1135 eval ac_cv_prog_make_${ac_make}_set=yes
1137 eval ac_cv_prog_make_${ac_make}_set=no
1141 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1142 echo "$as_me:1142: result: yes" >&5
1143 echo "${ECHO_T}yes" >&6
1146 echo "$as_me:1146: result: no" >&5
1147 echo "${ECHO_T}no" >&6
1148 SET_MAKE="MAKE=${MAKE-make}"
1152 ac_cpp='$CPP $CPPFLAGS'
1153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1156 if test -n "$ac_tool_prefix"; then
1157 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1159 echo "$as_me:1159: checking for $ac_word" >&5
1160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1161 if test "${ac_cv_prog_CC+set}" = set; then
1162 echo $ECHO_N "(cached) $ECHO_C" >&6
1164 if test -n "$CC"; then
1165 ac_cv_prog_CC="$CC" # Let the user override the test.
1167 ac_save_IFS=$IFS; IFS=$ac_path_separator
1169 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 $as_executable_p "$ac_dir/$ac_word" || continue
1173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1174 echo "$as_me:1174: found $ac_dir/$ac_word" >&5
1181 if test -n "$CC"; then
1182 echo "$as_me:1182: result: $CC" >&5
1183 echo "${ECHO_T}$CC" >&6
1185 echo "$as_me:1185: result: no" >&5
1186 echo "${ECHO_T}no" >&6
1190 if test -z "$ac_cv_prog_CC"; then
1192 # Extract the first word of "gcc", so it can be a program name with args.
1193 set dummy gcc; ac_word=$2
1194 echo "$as_me:1194: checking for $ac_word" >&5
1195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1197 echo $ECHO_N "(cached) $ECHO_C" >&6
1199 if test -n "$ac_ct_CC"; then
1200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1202 ac_save_IFS=$IFS; IFS=$ac_path_separator
1204 for ac_dir in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir=.
1207 $as_executable_p "$ac_dir/$ac_word" || continue
1208 ac_cv_prog_ac_ct_CC="gcc"
1209 echo "$as_me:1209: found $ac_dir/$ac_word" >&5
1215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1216 if test -n "$ac_ct_CC"; then
1217 echo "$as_me:1217: result: $ac_ct_CC" >&5
1218 echo "${ECHO_T}$ac_ct_CC" >&6
1220 echo "$as_me:1220: result: no" >&5
1221 echo "${ECHO_T}no" >&6
1229 if test -z "$CC"; then
1230 if test -n "$ac_tool_prefix"; then
1231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1232 set dummy ${ac_tool_prefix}cc; ac_word=$2
1233 echo "$as_me:1233: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_CC+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1238 if test -n "$CC"; then
1239 ac_cv_prog_CC="$CC" # Let the user override the test.
1241 ac_save_IFS=$IFS; IFS=$ac_path_separator
1243 for ac_dir in $ac_dummy; do
1245 test -z "$ac_dir" && ac_dir=.
1246 $as_executable_p "$ac_dir/$ac_word" || continue
1247 ac_cv_prog_CC="${ac_tool_prefix}cc"
1248 echo "$as_me:1248: found $ac_dir/$ac_word" >&5
1255 if test -n "$CC"; then
1256 echo "$as_me:1256: result: $CC" >&5
1257 echo "${ECHO_T}$CC" >&6
1259 echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
1264 if test -z "$ac_cv_prog_CC"; then
1266 # Extract the first word of "cc", so it can be a program name with args.
1267 set dummy cc; ac_word=$2
1268 echo "$as_me:1268: checking for $ac_word" >&5
1269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1271 echo $ECHO_N "(cached) $ECHO_C" >&6
1273 if test -n "$ac_ct_CC"; then
1274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1276 ac_save_IFS=$IFS; IFS=$ac_path_separator
1278 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 $as_executable_p "$ac_dir/$ac_word" || continue
1282 ac_cv_prog_ac_ct_CC="cc"
1283 echo "$as_me:1283: found $ac_dir/$ac_word" >&5
1289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1290 if test -n "$ac_ct_CC"; then
1291 echo "$as_me:1291: result: $ac_ct_CC" >&5
1292 echo "${ECHO_T}$ac_ct_CC" >&6
1294 echo "$as_me:1294: result: no" >&5
1295 echo "${ECHO_T}no" >&6
1304 if test -z "$CC"; then
1305 # Extract the first word of "cc", so it can be a program name with args.
1306 set dummy cc; ac_word=$2
1307 echo "$as_me:1307: checking for $ac_word" >&5
1308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1309 if test "${ac_cv_prog_CC+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 if test -n "$CC"; then
1313 ac_cv_prog_CC="$CC" # Let the user override the test.
1316 ac_save_IFS=$IFS; IFS=$ac_path_separator
1318 for ac_dir in $ac_dummy; do
1320 test -z "$ac_dir" && ac_dir=.
1321 $as_executable_p "$ac_dir/$ac_word" || continue
1322 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1323 ac_prog_rejected=yes
1327 echo "$as_me:1327: found $ac_dir/$ac_word" >&5
1331 if test $ac_prog_rejected = yes; then
1332 # We found a bogon in the path, so make sure we never use it.
1333 set dummy $ac_cv_prog_CC
1335 if test $# != 0; then
1336 # We chose a different compiler from the bogus one.
1337 # However, it has the same basename, so the bogon will be chosen
1338 # first if we set CC to just the basename; use the full file name.
1340 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1348 if test -n "$CC"; then
1349 echo "$as_me:1349: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1352 echo "$as_me:1352: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1357 if test -z "$CC"; then
1358 if test -n "$ac_tool_prefix"; then
1361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1363 echo "$as_me:1363: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 if test -n "$CC"; then
1369 ac_cv_prog_CC="$CC" # Let the user override the test.
1371 ac_save_IFS=$IFS; IFS=$ac_path_separator
1373 for ac_dir in $ac_dummy; do
1375 test -z "$ac_dir" && ac_dir=.
1376 $as_executable_p "$ac_dir/$ac_word" || continue
1377 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1378 echo "$as_me:1378: found $ac_dir/$ac_word" >&5
1385 if test -n "$CC"; then
1386 echo "$as_me:1386: result: $CC" >&5
1387 echo "${ECHO_T}$CC" >&6
1389 echo "$as_me:1389: result: no" >&5
1390 echo "${ECHO_T}no" >&6
1393 test -n "$CC" && break
1396 if test -z "$CC"; then
1400 # Extract the first word of "$ac_prog", so it can be a program name with args.
1401 set dummy $ac_prog; ac_word=$2
1402 echo "$as_me:1402: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 if test -n "$ac_ct_CC"; then
1408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1410 ac_save_IFS=$IFS; IFS=$ac_path_separator
1412 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 $as_executable_p "$ac_dir/$ac_word" || continue
1416 ac_cv_prog_ac_ct_CC="$ac_prog"
1417 echo "$as_me:1417: found $ac_dir/$ac_word" >&5
1423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1424 if test -n "$ac_ct_CC"; then
1425 echo "$as_me:1425: result: $ac_ct_CC" >&5
1426 echo "${ECHO_T}$ac_ct_CC" >&6
1428 echo "$as_me:1428: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1432 test -n "$ac_ct_CC" && break
1440 test -z "$CC" && { { echo "$as_me:1440: error: no acceptable cc found in \$PATH" >&5
1441 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1442 { (exit 1); exit 1; }; }
1444 # Provide some information about the compiler.
1445 echo "$as_me:1445:" \
1446 "checking for C compiler version" >&5
1447 ac_compiler=`set X $ac_compile; echo $2`
1448 { (eval echo "$as_me:1448: \"$ac_compiler --version </dev/null >&5\"") >&5
1449 (eval $ac_compiler --version </dev/null >&5) 2>&5
1451 echo "$as_me:1451: \$? = $ac_status" >&5
1452 (exit $ac_status); }
1453 { (eval echo "$as_me:1453: \"$ac_compiler -v </dev/null >&5\"") >&5
1454 (eval $ac_compiler -v </dev/null >&5) 2>&5
1456 echo "$as_me:1456: \$? = $ac_status" >&5
1457 (exit $ac_status); }
1458 { (eval echo "$as_me:1458: \"$ac_compiler -V </dev/null >&5\"") >&5
1459 (eval $ac_compiler -V </dev/null >&5) 2>&5
1461 echo "$as_me:1461: \$? = $ac_status" >&5
1462 (exit $ac_status); }
1464 cat >conftest.$ac_ext <<_ACEOF
1465 #line 1465 "configure"
1466 #include "confdefs.h"
1476 ac_clean_files_save=$ac_clean_files
1477 ac_clean_files="$ac_clean_files a.out a.exe"
1478 # Try to create an executable without -o first, disregard a.out.
1479 # It will help us diagnose broken compilers, and finding out an intuition
1481 echo "$as_me:1481: checking for C compiler default output" >&5
1482 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1483 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1484 if { (eval echo "$as_me:1484: \"$ac_link_default\"") >&5
1485 (eval $ac_link_default) 2>&5
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }; then
1489 # Find the output, starting from the most likely. This scheme is
1490 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1492 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1493 ls a.out conftest 2>/dev/null;
1494 ls a.* conftest.* 2>/dev/null`; do
1496 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1497 a.out ) # We found the default executable, but exeext='' is most
1500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1501 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1508 echo "$as_me: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1510 { { echo "$as_me:1510: error: C compiler cannot create executables" >&5
1511 echo "$as_me: error: C compiler cannot create executables" >&2;}
1512 { (exit 77); exit 77; }; }
1515 ac_exeext=$ac_cv_exeext
1516 echo "$as_me:1516: result: $ac_file" >&5
1517 echo "${ECHO_T}$ac_file" >&6
1519 # Check the compiler produces executables we can run. If not, either
1520 # the compiler is broken, or we cross compile.
1521 echo "$as_me:1521: checking whether the C compiler works" >&5
1522 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1523 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1524 # If not cross compiling, check that we can run a simple program.
1525 if test "$cross_compiling" != yes; then
1526 if { ac_try='./$ac_file'
1527 { (eval echo "$as_me:1527: \"$ac_try\"") >&5
1530 echo "$as_me:1530: \$? = $ac_status" >&5
1531 (exit $ac_status); }; }; then
1534 if test "$cross_compiling" = maybe; then
1537 { { echo "$as_me:1537: error: cannot run C compiled programs.
1538 If you meant to cross compile, use \`--host'." >&5
1539 echo "$as_me: error: cannot run C compiled programs.
1540 If you meant to cross compile, use \`--host'." >&2;}
1541 { (exit 1); exit 1; }; }
1545 echo "$as_me:1545: result: yes" >&5
1546 echo "${ECHO_T}yes" >&6
1548 rm -f a.out a.exe conftest$ac_cv_exeext
1549 ac_clean_files=$ac_clean_files_save
1550 # Check the compiler produces executables we can run. If not, either
1551 # the compiler is broken, or we cross compile.
1552 echo "$as_me:1552: checking whether we are cross compiling" >&5
1553 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1554 echo "$as_me:1554: result: $cross_compiling" >&5
1555 echo "${ECHO_T}$cross_compiling" >&6
1557 echo "$as_me:1557: checking for executable suffix" >&5
1558 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1559 if { (eval echo "$as_me:1559: \"$ac_link\"") >&5
1560 (eval $ac_link) 2>&5
1562 echo "$as_me:1562: \$? = $ac_status" >&5
1563 (exit $ac_status); }; then
1564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1566 # work properly (i.e., refer to `conftest.exe'), while it won't with
1568 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1570 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1578 { { echo "$as_me:1578: error: cannot compute EXEEXT: cannot compile and link" >&5
1579 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1580 { (exit 1); exit 1; }; }
1583 rm -f conftest$ac_cv_exeext
1584 echo "$as_me:1584: result: $ac_cv_exeext" >&5
1585 echo "${ECHO_T}$ac_cv_exeext" >&6
1587 rm -f conftest.$ac_ext
1588 EXEEXT=$ac_cv_exeext
1590 echo "$as_me:1590: checking for object suffix" >&5
1591 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1592 if test "${ac_cv_objext+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 cat >conftest.$ac_ext <<_ACEOF
1596 #line 1596 "configure"
1597 #include "confdefs.h"
1607 rm -f conftest.o conftest.obj
1608 if { (eval echo "$as_me:1608: \"$ac_compile\"") >&5
1609 (eval $ac_compile) 2>&5
1611 echo "$as_me:1611: \$? = $ac_status" >&5
1612 (exit $ac_status); }; then
1613 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1621 echo "$as_me: failed program was:" >&5
1622 cat conftest.$ac_ext >&5
1623 { { echo "$as_me:1623: error: cannot compute OBJEXT: cannot compile" >&5
1624 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1625 { (exit 1); exit 1; }; }
1628 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1630 echo "$as_me:1630: result: $ac_cv_objext" >&5
1631 echo "${ECHO_T}$ac_cv_objext" >&6
1632 OBJEXT=$ac_cv_objext
1634 echo "$as_me:1634: checking whether we are using the GNU C compiler" >&5
1635 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1636 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 cat >conftest.$ac_ext <<_ACEOF
1640 #line 1640 "configure"
1641 #include "confdefs.h"
1654 rm -f conftest.$ac_objext
1655 if { (eval echo "$as_me:1655: \"$ac_compile\"") >&5
1656 (eval $ac_compile) 2>&5
1658 echo "$as_me:1658: \$? = $ac_status" >&5
1659 (exit $ac_status); } &&
1660 { ac_try='test -s conftest.$ac_objext'
1661 { (eval echo "$as_me:1661: \"$ac_try\"") >&5
1664 echo "$as_me:1664: \$? = $ac_status" >&5
1665 (exit $ac_status); }; }; then
1668 echo "$as_me: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1672 rm -f conftest.$ac_objext conftest.$ac_ext
1673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1676 echo "$as_me:1676: result: $ac_cv_c_compiler_gnu" >&5
1677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1678 GCC=`test $ac_compiler_gnu = yes && echo yes`
1679 ac_test_CFLAGS=${CFLAGS+set}
1680 ac_save_CFLAGS=$CFLAGS
1682 echo "$as_me:1682: checking whether $CC accepts -g" >&5
1683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1684 if test "${ac_cv_prog_cc_g+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 cat >conftest.$ac_ext <<_ACEOF
1688 #line 1688 "configure"
1689 #include "confdefs.h"
1699 rm -f conftest.$ac_objext
1700 if { (eval echo "$as_me:1700: \"$ac_compile\"") >&5
1701 (eval $ac_compile) 2>&5
1703 echo "$as_me:1703: \$? = $ac_status" >&5
1704 (exit $ac_status); } &&
1705 { ac_try='test -s conftest.$ac_objext'
1706 { (eval echo "$as_me:1706: \"$ac_try\"") >&5
1709 echo "$as_me:1709: \$? = $ac_status" >&5
1710 (exit $ac_status); }; }; then
1713 echo "$as_me: failed program was:" >&5
1714 cat conftest.$ac_ext >&5
1717 rm -f conftest.$ac_objext conftest.$ac_ext
1719 echo "$as_me:1719: result: $ac_cv_prog_cc_g" >&5
1720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1721 if test "$ac_test_CFLAGS" = set; then
1722 CFLAGS=$ac_save_CFLAGS
1723 elif test $ac_cv_prog_cc_g = yes; then
1724 if test "$GCC" = yes; then
1730 if test "$GCC" = yes; then
1736 # Some people use a C++ compiler to compile C. Since we use `exit',
1737 # in C++ we need to declare it. In case someone uses the same compiler
1738 # for both compiling C and C++ we need to have the C++ compiler decide
1739 # the declaration of exit, since it's the most demanding environment.
1740 cat >conftest.$ac_ext <<_ACEOF
1745 rm -f conftest.$ac_objext
1746 if { (eval echo "$as_me:1746: \"$ac_compile\"") >&5
1747 (eval $ac_compile) 2>&5
1749 echo "$as_me:1749: \$? = $ac_status" >&5
1750 (exit $ac_status); } &&
1751 { ac_try='test -s conftest.$ac_objext'
1752 { (eval echo "$as_me:1752: \"$ac_try\"") >&5
1755 echo "$as_me:1755: \$? = $ac_status" >&5
1756 (exit $ac_status); }; }; then
1757 for ac_declaration in \
1759 '#include <stdlib.h>' \
1760 'extern "C" void std::exit (int) throw (); using std::exit;' \
1761 'extern "C" void std::exit (int); using std::exit;' \
1762 'extern "C" void exit (int) throw ();' \
1763 'extern "C" void exit (int);' \
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line 1767 "configure"
1768 #include "confdefs.h"
1779 rm -f conftest.$ac_objext
1780 if { (eval echo "$as_me:1780: \"$ac_compile\"") >&5
1781 (eval $ac_compile) 2>&5
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); } &&
1785 { ac_try='test -s conftest.$ac_objext'
1786 { (eval echo "$as_me:1786: \"$ac_try\"") >&5
1789 echo "$as_me:1789: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1793 echo "$as_me: failed program was:" >&5
1794 cat conftest.$ac_ext >&5
1797 rm -f conftest.$ac_objext conftest.$ac_ext
1798 cat >conftest.$ac_ext <<_ACEOF
1799 #line 1799 "configure"
1800 #include "confdefs.h"
1810 rm -f conftest.$ac_objext
1811 if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5
1812 (eval $ac_compile) 2>&5
1814 echo "$as_me:1814: \$? = $ac_status" >&5
1815 (exit $ac_status); } &&
1816 { ac_try='test -s conftest.$ac_objext'
1817 { (eval echo "$as_me:1817: \"$ac_try\"") >&5
1820 echo "$as_me:1820: \$? = $ac_status" >&5
1821 (exit $ac_status); }; }; then
1824 echo "$as_me: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1827 rm -f conftest.$ac_objext conftest.$ac_ext
1830 if test -n "$ac_declaration"; then
1831 echo '#ifdef __cplusplus' >>confdefs.h
1832 echo $ac_declaration >>confdefs.h
1833 echo '#endif' >>confdefs.h
1837 echo "$as_me: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1840 rm -f conftest.$ac_objext conftest.$ac_ext
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852 echo "$as_me:1852: checking how to run the C preprocessor" >&5
1853 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1854 # On Suns, sometimes $CPP names a directory.
1855 if test -n "$CPP" && test -d "$CPP"; then
1858 if test -z "$CPP"; then
1859 if test "${ac_cv_prog_CPP+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 # Double quotes because CPP needs to be expanded
1863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1866 for ac_c_preproc_warn_flag in '' yes
1868 # Use a header file that comes with gcc, so configuring glibc
1869 # with a fresh cross-compiler works.
1870 # On the NeXT, cc -E runs the code through the compiler's parser,
1871 # not just through cpp. "Syntax error" is here to catch this case.
1872 cat >conftest.$ac_ext <<_ACEOF
1873 #line 1873 "configure"
1874 #include "confdefs.h"
1878 if { (eval echo "$as_me:1878: \"$ac_cpp conftest.$ac_ext\"") >&5
1879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1881 egrep -v '^ *\+' conftest.er1 >conftest.err
1883 cat conftest.err >&5
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit $ac_status); } >/dev/null; then
1886 if test -s conftest.err; then
1887 ac_cpp_err=$ac_c_preproc_warn_flag
1894 if test -z "$ac_cpp_err"; then
1897 echo "$as_me: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 # Broken: fails on valid input.
1902 rm -f conftest.err conftest.$ac_ext
1904 # OK, works on sane cases. Now check whether non-existent headers
1905 # can be detected and how.
1906 cat >conftest.$ac_ext <<_ACEOF
1907 #line 1907 "configure"
1908 #include "confdefs.h"
1909 #include <ac_nonexistent.h>
1911 if { (eval echo "$as_me:1911: \"$ac_cpp conftest.$ac_ext\"") >&5
1912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1914 egrep -v '^ *\+' conftest.er1 >conftest.err
1916 cat conftest.err >&5
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); } >/dev/null; then
1919 if test -s conftest.err; then
1920 ac_cpp_err=$ac_c_preproc_warn_flag
1927 if test -z "$ac_cpp_err"; then
1928 # Broken: success on invalid input.
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 # Passes both tests.
1937 rm -f conftest.err conftest.$ac_ext
1940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1941 rm -f conftest.err conftest.$ac_ext
1942 if $ac_preproc_ok; then
1954 echo "$as_me:1954: result: $CPP" >&5
1955 echo "${ECHO_T}$CPP" >&6
1957 for ac_c_preproc_warn_flag in '' yes
1959 # Use a header file that comes with gcc, so configuring glibc
1960 # with a fresh cross-compiler works.
1961 # On the NeXT, cc -E runs the code through the compiler's parser,
1962 # not just through cpp. "Syntax error" is here to catch this case.
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #line 1964 "configure"
1965 #include "confdefs.h"
1969 if { (eval echo "$as_me:1969: \"$ac_cpp conftest.$ac_ext\"") >&5
1970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1972 egrep -v '^ *\+' conftest.er1 >conftest.err
1974 cat conftest.err >&5
1975 echo "$as_me:1975: \$? = $ac_status" >&5
1976 (exit $ac_status); } >/dev/null; then
1977 if test -s conftest.err; then
1978 ac_cpp_err=$ac_c_preproc_warn_flag
1985 if test -z "$ac_cpp_err"; then
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 # Broken: fails on valid input.
1993 rm -f conftest.err conftest.$ac_ext
1995 # OK, works on sane cases. Now check whether non-existent headers
1996 # can be detected and how.
1997 cat >conftest.$ac_ext <<_ACEOF
1998 #line 1998 "configure"
1999 #include "confdefs.h"
2000 #include <ac_nonexistent.h>
2002 if { (eval echo "$as_me:2002: \"$ac_cpp conftest.$ac_ext\"") >&5
2003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2005 egrep -v '^ *\+' conftest.er1 >conftest.err
2007 cat conftest.err >&5
2008 echo "$as_me:2008: \$? = $ac_status" >&5
2009 (exit $ac_status); } >/dev/null; then
2010 if test -s conftest.err; then
2011 ac_cpp_err=$ac_c_preproc_warn_flag
2018 if test -z "$ac_cpp_err"; then
2019 # Broken: success on invalid input.
2022 echo "$as_me: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 # Passes both tests.
2028 rm -f conftest.err conftest.$ac_ext
2031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2032 rm -f conftest.err conftest.$ac_ext
2033 if $ac_preproc_ok; then
2036 { { echo "$as_me:2036: error: C preprocessor \"$CPP\" fails sanity check" >&5
2037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2038 { (exit 1); exit 1; }; }
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047 if test $ac_cv_c_compiler_gnu = yes; then
2048 echo "$as_me:2048: checking whether $CC needs -traditional" >&5
2049 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2050 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 ac_pattern="Autoconf.*'x'"
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2061 egrep "$ac_pattern" >/dev/null 2>&1; then
2062 ac_cv_prog_gcc_traditional=yes
2064 ac_cv_prog_gcc_traditional=no
2068 if test $ac_cv_prog_gcc_traditional = no; then
2069 cat >conftest.$ac_ext <<_ACEOF
2070 #line 2070 "configure"
2071 #include "confdefs.h"
2075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2076 egrep "$ac_pattern" >/dev/null 2>&1; then
2077 ac_cv_prog_gcc_traditional=yes
2083 echo "$as_me:2083: result: $ac_cv_prog_gcc_traditional" >&5
2084 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2085 if test $ac_cv_prog_gcc_traditional = yes; then
2086 CC="$CC -traditional"
2090 # Find a good install program. We prefer a C program (faster),
2091 # so one script is as good as another. But avoid the broken or
2092 # incompatible versions:
2093 # SysV /etc/install, /usr/sbin/install
2094 # SunOS /usr/etc/install
2095 # IRIX /sbin/install
2097 # AmigaOS /C/install, which installs bootblocks on floppy discs
2098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101 # ./install, which can be erroneously created by make from ./install.sh.
2102 echo "$as_me:2102: checking for a BSD compatible install" >&5
2103 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2104 if test -z "$INSTALL"; then
2105 if test "${ac_cv_path_install+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 ac_save_IFS=$IFS; IFS=$ac_path_separator
2109 for ac_dir in $PATH; do
2111 # Account for people who put trailing slashes in PATH elements.
2113 / | ./ | .// | /cC/* \
2114 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2117 # OSF1 and SCO ODT 3.0 have their own names for install.
2118 # Don't use installbsd from OSF since it installs stuff as root
2120 for ac_prog in ginstall scoinst install; do
2121 if $as_executable_p "$ac_dir/$ac_prog"; then
2122 if test $ac_prog = install &&
2123 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2124 # AIX install. It has an incompatible calling convention.
2126 elif test $ac_prog = install &&
2127 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2128 # program-specific install script used by HP pwplus--don't use.
2131 ac_cv_path_install="$ac_dir/$ac_prog -c"
2141 if test "${ac_cv_path_install+set}" = set; then
2142 INSTALL=$ac_cv_path_install
2144 # As a last resort, use the slow shell script. We don't cache a
2145 # path for INSTALL within a source directory, because that will
2146 # break other packages using the cache if that directory is
2147 # removed, or if the path is relative.
2148 INSTALL=$ac_install_sh
2151 echo "$as_me:2151: result: $INSTALL" >&5
2152 echo "${ECHO_T}$INSTALL" >&6
2154 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2155 # It thinks the first close brace ends the variable substitution.
2156 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2158 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2160 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2162 # Make sure we can run config.sub.
2163 $ac_config_sub sun4 >/dev/null 2>&1 ||
2164 { { echo "$as_me:2164: error: cannot run $ac_config_sub" >&5
2165 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2166 { (exit 1); exit 1; }; }
2168 echo "$as_me:2168: checking build system type" >&5
2169 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2170 if test "${ac_cv_build+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 ac_cv_build_alias=$build_alias
2174 test -z "$ac_cv_build_alias" &&
2175 ac_cv_build_alias=`$ac_config_guess`
2176 test -z "$ac_cv_build_alias" &&
2177 { { echo "$as_me:2177: error: cannot guess build type; you must specify one" >&5
2178 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2179 { (exit 1); exit 1; }; }
2180 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2181 { { echo "$as_me:2181: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2182 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2183 { (exit 1); exit 1; }; }
2186 echo "$as_me:2186: result: $ac_cv_build" >&5
2187 echo "${ECHO_T}$ac_cv_build" >&6
2189 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2190 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2191 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2193 echo "$as_me:2193: checking host system type" >&5
2194 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2195 if test "${ac_cv_host+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 ac_cv_host_alias=$host_alias
2199 test -z "$ac_cv_host_alias" &&
2200 ac_cv_host_alias=$ac_cv_build_alias
2201 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2202 { { echo "$as_me:2202: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2203 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2204 { (exit 1); exit 1; }; }
2207 echo "$as_me:2207: result: $ac_cv_host" >&5
2208 echo "${ECHO_T}$ac_cv_host" >&6
2210 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2211 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2212 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2214 echo "$as_me:2214: checking for AIX" >&5
2215 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #line 2217 "configure"
2218 #include "confdefs.h"
2224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2225 egrep "yes" >/dev/null 2>&1; then
2226 echo "$as_me:2226: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6
2228 cat >>confdefs.h <<\EOF
2229 #define _ALL_SOURCE 1
2233 echo "$as_me:2233: result: no" >&5
2234 echo "${ECHO_T}no" >&6
2238 echo "$as_me:2238: checking for minix/config.h" >&5
2239 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2240 if test "${ac_cv_header_minix_config_h+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #line 2244 "configure"
2245 #include "confdefs.h"
2246 #include <minix/config.h>
2248 if { (eval echo "$as_me:2248: \"$ac_cpp conftest.$ac_ext\"") >&5
2249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2251 egrep -v '^ *\+' conftest.er1 >conftest.err
2253 cat conftest.err >&5
2254 echo "$as_me:2254: \$? = $ac_status" >&5
2255 (exit $ac_status); } >/dev/null; then
2256 if test -s conftest.err; then
2257 ac_cpp_err=$ac_c_preproc_warn_flag
2264 if test -z "$ac_cpp_err"; then
2265 ac_cv_header_minix_config_h=yes
2267 echo "$as_me: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2269 ac_cv_header_minix_config_h=no
2271 rm -f conftest.err conftest.$ac_ext
2273 echo "$as_me:2273: result: $ac_cv_header_minix_config_h" >&5
2274 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2275 if test $ac_cv_header_minix_config_h = yes; then
2281 if test "$MINIX" = yes; then
2283 cat >>confdefs.h <<\EOF
2284 #define _POSIX_SOURCE 1
2287 cat >>confdefs.h <<\EOF
2288 #define _POSIX_1_SOURCE 2
2291 cat >>confdefs.h <<\EOF
2297 echo "$as_me:2297: checking for POSIXized ISC" >&5
2298 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2299 if test -d /etc/conf/kconfig.d &&
2300 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2302 echo "$as_me:2302: result: yes" >&5
2303 echo "${ECHO_T}yes" >&6
2304 ISC=yes # If later tests want to check for ISC.
2306 cat >>confdefs.h <<\EOF
2307 #define _POSIX_SOURCE 1
2310 if test "$GCC" = yes; then
2316 echo "$as_me:2316: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2321 # Check whether --enable-shared or --disable-shared was given.
2322 if test "${enable_shared+set}" = set; then
2323 enableval="$enable_shared"
2324 p=${PACKAGE-default}
2326 yes) enable_shared=yes ;;
2327 no) enable_shared=no ;;
2330 # Look at the argument we got. We use all the common list separators.
2331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2332 for pkg in $enableval; do
2333 if test "X$pkg" = "X$p"; then
2343 # Check whether --enable-static or --disable-static was given.
2344 if test "${enable_static+set}" = set; then
2345 enableval="$enable_static"
2346 p=${PACKAGE-default}
2348 yes) enable_static=yes ;;
2349 no) enable_static=no ;;
2352 # Look at the argument we got. We use all the common list separators.
2353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2354 for pkg in $enableval; do
2355 if test "X$pkg" = "X$p"; then
2365 # Check whether --enable-fast-install or --disable-fast-install was given.
2366 if test "${enable_fast_install+set}" = set; then
2367 enableval="$enable_fast_install"
2368 p=${PACKAGE-default}
2370 yes) enable_fast_install=yes ;;
2371 no) enable_fast_install=no ;;
2373 enable_fast_install=no
2374 # Look at the argument we got. We use all the common list separators.
2375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2376 for pkg in $enableval; do
2377 if test "X$pkg" = "X$p"; then
2378 enable_fast_install=yes
2385 enable_fast_install=yes
2387 # Find the correct PATH separator. Usually this is `:', but
2388 # DJGPP uses `;' like DOS.
2389 if test "X${PATH_SEPARATOR+set}" != Xset; then
2390 UNAME=${UNAME-`uname 2>/dev/null`}
2392 *-DOS) lt_cv_sys_path_separator=';' ;;
2393 *) lt_cv_sys_path_separator=':' ;;
2395 PATH_SEPARATOR=$lt_cv_sys_path_separator
2398 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2399 if test "${with_gnu_ld+set}" = set; then
2400 withval="$with_gnu_ld"
2401 test "$withval" = no || with_gnu_ld=yes
2406 if test "$GCC" = yes; then
2407 # Check if gcc -print-prog-name=ld gives a path.
2408 echo "$as_me:2408: checking for ld used by GCC" >&5
2409 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2412 # gcc leaves a trailing carriage return which upsets mingw
2413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2418 # Accept absolute paths.
2419 [\\/]* | [A-Za-z]:[\\/]*)
2420 re_direlt='/[^/][^/]*/\.\./'
2421 # Canonicalize the path of ld
2422 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2423 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2424 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2426 test -z "$LD" && LD="$ac_prog"
2429 # If it fails, then pretend we aren't using GCC.
2433 # If it is relative, then search for the first ld in PATH.
2437 elif test "$with_gnu_ld" = yes; then
2438 echo "$as_me:2438: checking for GNU ld" >&5
2439 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2441 echo "$as_me:2441: checking for non-GNU ld" >&5
2442 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2444 if test "${lt_cv_path_LD+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 if test -z "$LD"; then
2448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2449 for ac_dir in $PATH; do
2450 test -z "$ac_dir" && ac_dir=.
2451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2452 lt_cv_path_LD="$ac_dir/$ac_prog"
2453 # Check to see if the program is GNU ld. I'd rather use --version,
2454 # but apparently some GNU ld's only accept -v.
2455 # Break only if it was the GNU/non-GNU ld that we prefer.
2456 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2457 test "$with_gnu_ld" != no && break
2459 test "$with_gnu_ld" != yes && break
2465 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2470 if test -n "$LD"; then
2471 echo "$as_me:2471: result: $LD" >&5
2472 echo "${ECHO_T}$LD" >&6
2474 echo "$as_me:2474: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2477 test -z "$LD" && { { echo "$as_me:2477: error: no acceptable ld found in \$PATH" >&5
2478 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2479 { (exit 1); exit 1; }; }
2480 echo "$as_me:2480: checking if the linker ($LD) is GNU ld" >&5
2481 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2482 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2486 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2487 lt_cv_prog_gnu_ld=yes
2489 lt_cv_prog_gnu_ld=no
2492 echo "$as_me:2492: result: $lt_cv_prog_gnu_ld" >&5
2493 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2494 with_gnu_ld=$lt_cv_prog_gnu_ld
2496 echo "$as_me:2496: checking for $LD option to reload object files" >&5
2497 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2498 if test "${lt_cv_ld_reload_flag+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 lt_cv_ld_reload_flag='-r'
2503 echo "$as_me:2503: result: $lt_cv_ld_reload_flag" >&5
2504 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2505 reload_flag=$lt_cv_ld_reload_flag
2506 test -n "$reload_flag" && reload_flag=" $reload_flag"
2508 echo "$as_me:2508: checking for BSD-compatible nm" >&5
2509 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2510 if test "${lt_cv_path_NM+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$NM"; then
2514 # Let the user override the test.
2517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2518 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2519 test -z "$ac_dir" && ac_dir=.
2520 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2521 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2522 # Check to see if the nm accepts a BSD-compat flag.
2523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2524 # nm: unknown option "B" ignored
2525 # Tru64's nm complains that /dev/null is an invalid object file
2526 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2527 lt_cv_path_NM="$tmp_nm -B"
2529 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2530 lt_cv_path_NM="$tmp_nm -p"
2533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2534 continue # so that we can try to find one that supports BSD flags
2539 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2544 echo "$as_me:2544: result: $NM" >&5
2545 echo "${ECHO_T}$NM" >&6
2547 echo "$as_me:2547: checking whether ln -s works" >&5
2548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2550 if test "$LN_S" = "ln -s"; then
2551 echo "$as_me:2551: result: yes" >&5
2552 echo "${ECHO_T}yes" >&6
2554 echo "$as_me:2554: result: no, using $LN_S" >&5
2555 echo "${ECHO_T}no, using $LN_S" >&6
2558 echo "$as_me:2558: checking how to recognise dependant libraries" >&5
2559 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2560 if test "${lt_cv_deplibs_check_method+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 lt_cv_file_magic_cmd='$MAGIC_CMD'
2564 lt_cv_file_magic_test_file=
2565 lt_cv_deplibs_check_method='unknown'
2566 # Need to set the preceding variable on all platforms that support
2567 # interlibrary dependencies.
2568 # 'none' -- dependencies not supported.
2569 # `unknown' -- same as none, but documents that we really don't know.
2570 # 'pass_all' -- all dependencies passed with no checks.
2571 # 'test_compile' -- check by making test program.
2572 # 'file_magic [[regex]]' -- check by looking for files in library path
2573 # which responds to the $file_magic_cmd with a given egrep regex.
2574 # If you have `file' or equivalent on your system and you're not sure
2575 # whether `pass_all' will *always* work, you probably want this one.
2579 lt_cv_deplibs_check_method=pass_all
2583 lt_cv_deplibs_check_method=pass_all
2587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2588 lt_cv_file_magic_cmd='/usr/bin/file -L'
2589 lt_cv_file_magic_test_file=/shlib/libc.so
2592 cygwin* | mingw* | pw32*)
2593 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2594 lt_cv_file_magic_cmd='$OBJDUMP -f'
2597 darwin* | rhapsody*)
2598 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2599 lt_cv_file_magic_cmd='/usr/bin/file -L'
2601 rhapsody* | darwin1.[012])
2602 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2605 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2611 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2614 # Not sure whether the presence of OpenBSD here was a mistake.
2615 # Let's accept both of them until this is cleared up.
2616 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2617 lt_cv_file_magic_cmd=/usr/bin/file
2618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2622 lt_cv_deplibs_check_method=pass_all
2627 lt_cv_deplibs_check_method=pass_all
2631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2632 lt_cv_file_magic_cmd=/usr/bin/file
2633 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2639 # this will be overridden with pass_all, but let us keep it just in case
2640 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2644 *-32|*"-32 ") libmagic=32-bit;;
2645 *-n32|*"-n32 ") libmagic=N32;;
2646 *-64|*"-64 ") libmagic=64-bit;;
2647 *) libmagic=never-match;;
2649 # this will be overridden with pass_all, but let us keep it just in case
2650 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2653 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2654 lt_cv_deplibs_check_method=pass_all
2657 # This must be Linux ELF.
2660 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2661 lt_cv_deplibs_check_method=pass_all ;;
2663 # glibc up to 2.1.1 does not perform some relocations on ARM
2664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2666 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2670 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2671 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2673 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2679 lt_cv_file_magic_cmd=/usr/bin/file
2680 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2684 lt_cv_file_magic_cmd=/usr/bin/file
2685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2689 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2693 osf3* | osf4* | osf5*)
2694 # this will be overridden with pass_all, but let us keep it just in case
2695 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2696 lt_cv_file_magic_test_file=/shlib/libc.so
2697 lt_cv_deplibs_check_method=pass_all
2701 lt_cv_deplibs_check_method=pass_all
2705 lt_cv_deplibs_check_method=pass_all
2706 lt_cv_file_magic_test_file=/lib/libc.so
2709 sysv5uw[78]* | sysv4*uw2*)
2710 lt_cv_deplibs_check_method=pass_all
2713 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2714 case $host_vendor in
2716 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]'
2717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2720 lt_cv_deplibs_check_method=pass_all
2723 lt_cv_file_magic_cmd='/bin/file'
2724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2727 lt_cv_file_magic_cmd='/bin/file'
2728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2729 lt_cv_file_magic_test_file=/lib/libc.so
2736 echo "$as_me:2736: result: $lt_cv_deplibs_check_method" >&5
2737 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2738 file_magic_cmd=$lt_cv_file_magic_cmd
2739 deplibs_check_method=$lt_cv_deplibs_check_method
2741 # Check for command to grab the raw symbol name followed by C symbol from nm.
2742 echo "$as_me:2742: checking command to parse $NM output" >&5
2743 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2744 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 # These are sane defaults that work on at least a few old systems.
2749 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2751 # Character class describing NM global symbol codes.
2752 symcode='[BCDEGRST]'
2754 # Regexp to match symbols that can be accessed directly from C.
2755 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2757 # Transform the above into a raw symbol and a C symbol.
2758 symxfrm='\1 \2\3 \3'
2760 # Transform an extracted symbol line into a proper C declaration
2761 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2763 # Transform an extracted symbol line into symbol name and symbol address
2764 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2766 # Define system-specific variables.
2771 cygwin* | mingw* | pw32*)
2772 symcode='[ABCDGISTW]'
2774 hpux*) # Its linker distinguishes data from code symbols
2775 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2776 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2779 symcode='[BCDEGRST]'
2789 # Handle CRLF in mingw tool chain
2793 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2797 # If we're using GNU nm, then use its standard symbol codes.
2798 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2799 symcode='[ABCDGISTW]'
2802 # Try without a prefix undercore, then with it.
2803 for ac_symprfx in "" "_"; do
2805 # Write the raw and C identifiers.
2806 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2808 # Check to see that the pipe works correctly.
2811 cat > conftest.$ac_ext <<EOF
2816 void nm_test_func(){}
2820 int main(){nm_test_var='a';nm_test_func();return(0);}
2823 if { (eval echo "$as_me:2823: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>&5
2826 echo "$as_me:2826: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Now try to grab the symbols.
2830 if { (eval echo "$as_me:2830: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2831 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2833 echo "$as_me:2833: \$? = $ac_status" >&5
2834 (exit $ac_status); } && test -s "$nlist"; then
2835 # Try sorting and uniquifying the output.
2836 if sort "$nlist" | uniq > "$nlist"T; then
2837 mv -f "$nlist"T "$nlist"
2842 # Make sure that we snagged all the symbols we need.
2843 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2844 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2845 cat <<EOF > conftest.$ac_ext
2851 # Now generate the symbol file.
2852 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2854 cat <<EOF >> conftest.$ac_ext
2855 #if defined (__STDC__) && __STDC__
2856 # define lt_ptr void *
2858 # define lt_ptr char *
2862 /* The mapping between symbol names and symbols. */
2867 lt_preloaded_symbols[] =
2870 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2871 cat <<\EOF >> conftest.$ac_ext
2879 # Now try linking the two files.
2880 mv conftest.$ac_objext conftstm.$ac_objext
2882 save_CFLAGS="$CFLAGS"
2883 LIBS="conftstm.$ac_objext"
2884 CFLAGS="$CFLAGS$no_builtin_flag"
2885 if { (eval echo "$as_me:2885: \"$ac_link\"") >&5
2886 (eval $ac_link) 2>&5
2888 echo "$as_me:2888: \$? = $ac_status" >&5
2889 (exit $ac_status); } && test -s conftest; then
2893 CFLAGS="$save_CFLAGS"
2895 echo "cannot find nm_test_func in $nlist" >&5
2898 echo "cannot find nm_test_var in $nlist" >&5
2901 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2904 echo "$progname: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 rm -f conftest* conftst*
2909 # Do not use the global_symbol_pipe unless it works.
2910 if test "$pipe_works" = yes; then
2913 lt_cv_sys_global_symbol_pipe=
2919 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2920 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2921 global_symbol_to_cdecl=
2922 global_symbol_to_c_name_address=
2924 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2925 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2927 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2929 echo "$as_me:2929: result: failed" >&5
2930 echo "${ECHO_T}failed" >&6
2932 echo "$as_me:2932: result: ok" >&5
2933 echo "${ECHO_T}ok" >&6
2936 for ac_header in dlfcn.h
2938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2939 echo "$as_me:2939: checking for $ac_header" >&5
2940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #line 2945 "configure"
2946 #include "confdefs.h"
2947 #include <$ac_header>
2949 if { (eval echo "$as_me:2949: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 egrep -v '^ *\+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:2955: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2965 if test -z "$ac_cpp_err"; then
2966 eval "$as_ac_Header=yes"
2968 echo "$as_me: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2970 eval "$as_ac_Header=no"
2972 rm -f conftest.err conftest.$ac_ext
2974 echo "$as_me:2974: result: `eval echo '${'$as_ac_Header'}'`" >&5
2975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2977 cat >>confdefs.h <<EOF
2978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2984 # Only perform the check for file, if the check method requires it
2985 case $deplibs_check_method in
2987 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2988 echo "$as_me:2988: checking for ${ac_tool_prefix}file" >&5
2989 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3001 ac_save_MAGIC_CMD="$MAGIC_CMD"
3002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3003 ac_dummy="/usr/bin:$PATH"
3004 for ac_dir in $ac_dummy; do
3005 test -z "$ac_dir" && ac_dir=.
3006 if test -f $ac_dir/${ac_tool_prefix}file; then
3007 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3008 if test -n "$file_magic_test_file"; then
3009 case $deplibs_check_method in
3011 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3014 egrep "$file_magic_regex" > /dev/null; then
3019 *** Warning: the command libtool uses to detect shared libraries,
3020 *** $file_magic_cmd, produces output that libtool cannot recognize.
3021 *** The result is that libtool may fail to recognize shared libraries
3022 *** as such. This will affect the creation of libtool libraries that
3023 *** depend on shared libraries, but programs linked with such libtool
3024 *** libraries will work regardless of this problem. Nevertheless, you
3025 *** may want to report the problem to your system manager and/or to
3026 *** bug-libtool@gnu.org
3036 MAGIC_CMD="$ac_save_MAGIC_CMD"
3041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3042 if test -n "$MAGIC_CMD"; then
3043 echo "$as_me:3043: result: $MAGIC_CMD" >&5
3044 echo "${ECHO_T}$MAGIC_CMD" >&6
3046 echo "$as_me:3046: result: no" >&5
3047 echo "${ECHO_T}no" >&6
3050 if test -z "$lt_cv_path_MAGIC_CMD"; then
3051 if test -n "$ac_tool_prefix"; then
3052 echo "$as_me:3052: checking for file" >&5
3053 echo $ECHO_N "checking for file... $ECHO_C" >&6
3054 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3065 ac_save_MAGIC_CMD="$MAGIC_CMD"
3066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3067 ac_dummy="/usr/bin:$PATH"
3068 for ac_dir in $ac_dummy; do
3069 test -z "$ac_dir" && ac_dir=.
3070 if test -f $ac_dir/file; then
3071 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3072 if test -n "$file_magic_test_file"; then
3073 case $deplibs_check_method in
3075 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3078 egrep "$file_magic_regex" > /dev/null; then
3083 *** Warning: the command libtool uses to detect shared libraries,
3084 *** $file_magic_cmd, produces output that libtool cannot recognize.
3085 *** The result is that libtool may fail to recognize shared libraries
3086 *** as such. This will affect the creation of libtool libraries that
3087 *** depend on shared libraries, but programs linked with such libtool
3088 *** libraries will work regardless of this problem. Nevertheless, you
3089 *** may want to report the problem to your system manager and/or to
3090 *** bug-libtool@gnu.org
3100 MAGIC_CMD="$ac_save_MAGIC_CMD"
3105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3106 if test -n "$MAGIC_CMD"; then
3107 echo "$as_me:3107: result: $MAGIC_CMD" >&5
3108 echo "${ECHO_T}$MAGIC_CMD" >&6
3110 echo "$as_me:3110: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3126 echo "$as_me:3126: checking for $ac_word" >&5
3127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128 if test "${ac_cv_prog_RANLIB+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 if test -n "$RANLIB"; then
3132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3134 ac_save_IFS=$IFS; IFS=$ac_path_separator
3136 for ac_dir in $ac_dummy; do
3138 test -z "$ac_dir" && ac_dir=.
3139 $as_executable_p "$ac_dir/$ac_word" || continue
3140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3141 echo "$as_me:3141: found $ac_dir/$ac_word" >&5
3147 RANLIB=$ac_cv_prog_RANLIB
3148 if test -n "$RANLIB"; then
3149 echo "$as_me:3149: result: $RANLIB" >&5
3150 echo "${ECHO_T}$RANLIB" >&6
3152 echo "$as_me:3152: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3157 if test -z "$ac_cv_prog_RANLIB"; then
3158 ac_ct_RANLIB=$RANLIB
3159 # Extract the first word of "ranlib", so it can be a program name with args.
3160 set dummy ranlib; ac_word=$2
3161 echo "$as_me:3161: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 if test -n "$ac_ct_RANLIB"; then
3167 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3169 ac_save_IFS=$IFS; IFS=$ac_path_separator
3171 for ac_dir in $ac_dummy; do
3173 test -z "$ac_dir" && ac_dir=.
3174 $as_executable_p "$ac_dir/$ac_word" || continue
3175 ac_cv_prog_ac_ct_RANLIB="ranlib"
3176 echo "$as_me:3176: found $ac_dir/$ac_word" >&5
3180 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3184 if test -n "$ac_ct_RANLIB"; then
3185 echo "$as_me:3185: result: $ac_ct_RANLIB" >&5
3186 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3188 echo "$as_me:3188: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3192 RANLIB=$ac_ct_RANLIB
3194 RANLIB="$ac_cv_prog_RANLIB"
3197 if test -n "$ac_tool_prefix"; then
3198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}strip; ac_word=$2
3200 echo "$as_me:3200: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_STRIP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if test -n "$STRIP"; then
3206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3208 ac_save_IFS=$IFS; IFS=$ac_path_separator
3210 for ac_dir in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir=.
3213 $as_executable_p "$ac_dir/$ac_word" || continue
3214 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3215 echo "$as_me:3215: found $ac_dir/$ac_word" >&5
3221 STRIP=$ac_cv_prog_STRIP
3222 if test -n "$STRIP"; then
3223 echo "$as_me:3223: result: $STRIP" >&5
3224 echo "${ECHO_T}$STRIP" >&6
3226 echo "$as_me:3226: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3231 if test -z "$ac_cv_prog_STRIP"; then
3233 # Extract the first word of "strip", so it can be a program name with args.
3234 set dummy strip; ac_word=$2
3235 echo "$as_me:3235: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3237 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 if test -n "$ac_ct_STRIP"; then
3241 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3243 ac_save_IFS=$IFS; IFS=$ac_path_separator
3245 for ac_dir in $ac_dummy; do
3247 test -z "$ac_dir" && ac_dir=.
3248 $as_executable_p "$ac_dir/$ac_word" || continue
3249 ac_cv_prog_ac_ct_STRIP="strip"
3250 echo "$as_me:3250: found $ac_dir/$ac_word" >&5
3254 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3257 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3258 if test -n "$ac_ct_STRIP"; then
3259 echo "$as_me:3259: result: $ac_ct_STRIP" >&5
3260 echo "${ECHO_T}$ac_ct_STRIP" >&6
3262 echo "$as_me:3262: result: no" >&5
3263 echo "${ECHO_T}no" >&6
3268 STRIP="$ac_cv_prog_STRIP"
3274 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3275 if test "${enable_libtool_lock+set}" = set; then
3276 enableval="$enable_libtool_lock"
3279 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3281 # Some flags need to be propagated to the compiler or linker for good
3285 # Find out which ABI we are using.
3286 echo '#line 3286 "configure"' > conftest.$ac_ext
3287 if { (eval echo "$as_me:3287: \"$ac_compile\"") >&5
3288 (eval $ac_compile) 2>&5
3290 echo "$as_me:3290: \$? = $ac_status" >&5
3291 (exit $ac_status); }; then
3292 case `/usr/bin/file conftest.$ac_objext` in
3308 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3309 SAVE_CFLAGS="$CFLAGS"
3310 CFLAGS="$CFLAGS -belf"
3311 echo "$as_me:3311: checking whether the C compiler needs -belf" >&5
3312 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3313 if test "${lt_cv_cc_needs_belf+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 cat >conftest.$ac_ext <<_ACEOF
3324 #line 3324 "configure"
3325 #include "confdefs.h"
3335 rm -f conftest.$ac_objext conftest$ac_exeext
3336 if { (eval echo "$as_me:3336: \"$ac_link\"") >&5
3337 (eval $ac_link) 2>&5
3339 echo "$as_me:3339: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -s conftest$ac_exeext'
3342 { (eval echo "$as_me:3342: \"$ac_try\"") >&5
3345 echo "$as_me:3345: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 lt_cv_cc_needs_belf=yes
3349 echo "$as_me: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 lt_cv_cc_needs_belf=no
3353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 echo "$as_me:3361: result: $lt_cv_cc_needs_belf" >&5
3362 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3363 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3364 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3365 CFLAGS="$SAVE_CFLAGS"
3371 # Sed substitution that helps us do robust quoting. It backslashifies
3372 # metacharacters that are still active within double-quoted strings.
3373 Xsed='sed -e s/^X//'
3374 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3376 # Same as above, but do not quote variable references.
3377 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3379 # Sed substitution to delay expansion of an escaped shell variable in a
3380 # double_quote_subst'ed string.
3381 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3387 default_ofile=libtool
3388 can_build_shared=yes
3390 # All known linkers require a `.a' archive for static linking (except M$VC,
3391 # which needs '.lib').
3393 ltmain="$ac_aux_dir/ltmain.sh"
3394 ofile="$default_ofile"
3395 with_gnu_ld="$lt_cv_prog_gnu_ld"
3396 need_locks="$enable_libtool_lock"
3399 old_CFLAGS="$CFLAGS"
3401 # Set sane defaults for various variables
3402 test -z "$AR" && AR=ar
3403 test -z "$AR_FLAGS" && AR_FLAGS=cru
3404 test -z "$AS" && AS=as
3405 test -z "$CC" && CC=cc
3406 test -z "$DLLTOOL" && DLLTOOL=dlltool
3407 test -z "$LD" && LD=ld
3408 test -z "$LN_S" && LN_S="ln -s"
3409 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3410 test -z "$NM" && NM=nm
3411 test -z "$OBJDUMP" && OBJDUMP=objdump
3412 test -z "$RANLIB" && RANLIB=:
3413 test -z "$STRIP" && STRIP=:
3414 test -z "$ac_objext" && ac_objext=o
3416 if test x"$host" != x"$build"; then
3417 ac_tool_prefix=${host_alias}-
3422 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3425 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3430 # AIX sometimes has problems with the GCC collect2 program. For some
3431 # reason, if we set the COLLECT_NAMES environment variable, the problems
3432 # vanish in a puff of smoke.
3433 if test "X${COLLECT_NAMES+set}" != Xset; then
3435 export COLLECT_NAMES
3440 # Determine commands to create old-style static archives.
3441 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3442 old_postinstall_cmds='chmod 644 $oldlib'
3443 old_postuninstall_cmds=
3445 if test -n "$RANLIB"; then
3448 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3451 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3454 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3457 # Allow CC to be a program name with arguments.
3461 echo "$as_me:3461: checking for objdir" >&5
3462 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3463 rm -f .libs 2>/dev/null
3464 mkdir .libs 2>/dev/null
3465 if test -d .libs; then
3468 # MS-DOS does not allow filenames that begin with a dot.
3471 rmdir .libs 2>/dev/null
3472 echo "$as_me:3472: result: $objdir" >&5
3473 echo "${ECHO_T}$objdir" >&6
3475 # Check whether --with-pic or --without-pic was given.
3476 if test "${with_pic+set}" = set; then
3482 test -z "$pic_mode" && pic_mode=default
3484 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3485 # in isolation, and that seeing it set (from the cache) indicates that
3486 # the associated values are set (in the cache) correctly too.
3487 echo "$as_me:3487: checking for $compiler option to produce PIC" >&5
3488 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3489 if test "${lt_cv_prog_cc_pic+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 lt_cv_prog_cc_shlib=
3495 lt_cv_prog_cc_static=
3496 lt_cv_prog_cc_no_builtin=
3497 lt_cv_prog_cc_can_build_shared=$can_build_shared
3499 if test "$GCC" = yes; then
3500 lt_cv_prog_cc_wl='-Wl,'
3501 lt_cv_prog_cc_static='-static'
3505 # Below there is a dirty hack to force normal static linking with -ldl
3506 # The problem is because libdl dynamically linked with both libc and
3507 # libC (AIX C++ library), which obviously doesn't included in libraries
3508 # list by gcc. This cause undefined symbols with -static flags.
3509 # This hack allows C programs to be linked with "-static -ldl", but
3510 # not sure about C++ programs.
3511 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3514 # FIXME: we need at least 68020 code to build shared libraries, but
3515 # adding the `-m68020' flag to GCC prevents building anything better,
3517 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3519 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3520 # PIC is the default for these OSes.
3522 darwin* | rhapsody*)
3523 # PIC is the default on this platform
3524 # Common symbols not allowed in MH_DYLIB files
3525 lt_cv_prog_cc_pic='-fno-common'
3527 cygwin* | mingw* | pw32* | os2*)
3528 # This hack is so that the source file can tell whether it is being
3529 # built for inclusion in a dll (and should export symbols for example).
3530 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3533 if test -d /usr/nec; then
3534 lt_cv_prog_cc_pic=-Kconform_pic
3538 lt_cv_prog_cc_pic='-fPIC'
3542 # PORTME Check for PIC flags for the system compiler.
3544 aix3* | aix4* | aix5*)
3545 lt_cv_prog_cc_wl='-Wl,'
3546 # All AIX code is PIC.
3547 if test "$host_cpu" = ia64; then
3548 # AIX 5 now supports IA64 processor
3549 lt_cv_prog_cc_static='-Bstatic'
3551 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3555 hpux9* | hpux10* | hpux11*)
3556 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3557 lt_cv_prog_cc_wl='-Wl,'
3558 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3559 lt_cv_prog_cc_pic='+Z'
3563 lt_cv_prog_cc_wl='-Wl,'
3564 lt_cv_prog_cc_static='-non_shared'
3565 # PIC (with -KPIC) is the default.
3569 echo '__INTEL_COMPILER' > conftest.$ac_ext
3570 if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null
3572 lt_cv_prog_cc_can_build_shared=no
3575 lt_cv_prog_cc_pic='-KPIC'
3576 lt_cv_prog_cc_static='-static'
3577 lt_cv_prog_cc_wl='-Qoption,ld,'
3581 cygwin* | mingw* | pw32* | os2*)
3582 # This hack is so that the source file can tell whether it is being
3583 # built for inclusion in a dll (and should export symbols for example).
3584 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3588 lt_cv_prog_cc_pic='-KPIC'
3589 lt_cv_prog_cc_static='-Bstatic'
3592 osf3* | osf4* | osf5*)
3593 # All OSF/1 code is PIC.
3594 lt_cv_prog_cc_wl='-Wl,'
3595 lt_cv_prog_cc_static='-non_shared'
3599 lt_cv_prog_cc_pic='-Kpic'
3600 lt_cv_prog_cc_static='-dn'
3601 lt_cv_prog_cc_shlib='-belf'
3605 lt_cv_prog_cc_pic='-KPIC'
3606 lt_cv_prog_cc_static='-Bstatic'
3607 lt_cv_prog_cc_wl='-Wl,'
3611 lt_cv_prog_cc_pic='-PIC'
3612 lt_cv_prog_cc_static='-Bstatic'
3613 lt_cv_prog_cc_wl='-Qoption ld '
3616 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3617 lt_cv_prog_cc_pic='-KPIC'
3618 lt_cv_prog_cc_static='-Bstatic'
3619 if test "x$host_vendor" = xsni; then
3620 lt_cv_prog_cc_wl='-LD'
3622 lt_cv_prog_cc_wl='-Wl,'
3627 lt_cv_prog_cc_pic='-pic'
3628 lt_cv_prog_cc_static='-Bstatic'
3632 if test -d /usr/nec ;then
3633 lt_cv_prog_cc_pic='-Kconform_pic'
3634 lt_cv_prog_cc_static='-Bstatic'
3639 lt_cv_prog_cc_can_build_shared=no
3646 if test -z "$lt_cv_prog_cc_pic"; then
3647 echo "$as_me:3647: result: none" >&5
3648 echo "${ECHO_T}none" >&6
3650 echo "$as_me:3650: result: $lt_cv_prog_cc_pic" >&5
3651 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3653 # Check to make sure the pic_flag actually works.
3654 echo "$as_me:3654: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3655 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3656 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 save_CFLAGS="$CFLAGS"
3660 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3661 cat >conftest.$ac_ext <<_ACEOF
3662 #line 3662 "configure"
3663 #include "confdefs.h"
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:3674: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>&5
3677 echo "$as_me:3677: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:3680: \"$ac_try\"") >&5
3683 echo "$as_me:3683: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3686 hpux9* | hpux10* | hpux11*)
3687 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3688 # they create non-PIC objects. So, if there were any warnings, we
3689 # assume that PIC is not supported.
3690 if test -s conftest.err; then
3691 lt_cv_prog_cc_pic_works=no
3693 lt_cv_prog_cc_pic_works=yes
3697 lt_cv_prog_cc_pic_works=yes
3702 echo "$as_me: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3704 lt_cv_prog_cc_pic_works=no
3707 rm -f conftest.$ac_objext conftest.$ac_ext
3708 CFLAGS="$save_CFLAGS"
3712 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3714 lt_cv_prog_cc_can_build_shared=no
3716 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3719 echo "$as_me:3719: result: $lt_cv_prog_cc_pic_works" >&5
3720 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3723 # Check for any special shared library compilation flags.
3724 if test -n "$lt_cv_prog_cc_shlib"; then
3725 { echo "$as_me:3725: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3726 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3727 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3729 { echo "$as_me:3729: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3730 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3731 lt_cv_prog_cc_can_build_shared=no
3735 echo "$as_me:3735: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3736 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3737 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 lt_cv_prog_cc_static_works=no
3741 save_LDFLAGS="$LDFLAGS"
3742 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3743 cat >conftest.$ac_ext <<_ACEOF
3744 #line 3744 "configure"
3745 #include "confdefs.h"
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (eval echo "$as_me:3756: \"$ac_link\"") >&5
3757 (eval $ac_link) 2>&5
3759 echo "$as_me:3759: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -s conftest$ac_exeext'
3762 { (eval echo "$as_me:3762: \"$ac_try\"") >&5
3765 echo "$as_me:3765: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 lt_cv_prog_cc_static_works=yes
3769 echo "$as_me: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3773 LDFLAGS="$save_LDFLAGS"
3777 # Belt *and* braces to stop my trousers falling down:
3778 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3779 echo "$as_me:3779: result: $lt_cv_prog_cc_static_works" >&5
3780 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3782 pic_flag="$lt_cv_prog_cc_pic"
3783 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3784 wl="$lt_cv_prog_cc_wl"
3785 link_static_flag="$lt_cv_prog_cc_static"
3786 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3787 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3789 # Check to see if options -o and -c are simultaneously supported by compiler
3790 echo "$as_me:3790: checking if $compiler supports -c -o file.$ac_objext" >&5
3791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
3792 if test "${lt_cv_compiler_c_o+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 $rm -r conftest 2>/dev/null
3799 echo "int some_variable = 0;" > conftest.$ac_ext
3801 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3802 # that will create temporary files in the current directory regardless of
3803 # the output directory. Thus, making CWD read-only will cause this test
3804 # to fail, enabling locking or at least warning the user not to do parallel
3807 save_CFLAGS="$CFLAGS"
3808 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3810 if { (eval echo configure:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3811 # The compiler can only warn and ignore the option if not recognized
3812 # So say no if there are warnings
3813 if test -s out/conftest.err; then
3814 lt_cv_compiler_c_o=no
3816 lt_cv_compiler_c_o=yes
3819 # Append any errors to the config.log.
3820 cat out/conftest.err 1>&5
3821 lt_cv_compiler_c_o=no
3823 CFLAGS="$save_CFLAGS"
3829 $rm -r conftest 2>/dev/null
3833 compiler_c_o=$lt_cv_compiler_c_o
3834 echo "$as_me:3834: result: $compiler_c_o" >&5
3835 echo "${ECHO_T}$compiler_c_o" >&6
3837 if test x"$compiler_c_o" = x"yes"; then
3838 # Check to see if we can write to a .lo
3839 echo "$as_me:3839: checking if $compiler supports -c -o file.lo" >&5
3840 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
3841 if test "${lt_cv_compiler_o_lo+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 lt_cv_compiler_o_lo=no
3846 save_CFLAGS="$CFLAGS"
3847 CFLAGS="$CFLAGS -c -o conftest.lo"
3848 save_objext="$ac_objext"
3850 cat >conftest.$ac_ext <<_ACEOF
3851 #line 3851 "configure"
3852 #include "confdefs.h"
3857 int some_variable = 0;
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:3863: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>&5
3866 echo "$as_me:3866: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (eval echo "$as_me:3869: \"$ac_try\"") >&5
3872 echo "$as_me:3872: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3874 # The compiler can only warn and ignore the option if not recognized
3875 # So say no if there are warnings
3876 if test -s conftest.err; then
3877 lt_cv_compiler_o_lo=no
3879 lt_cv_compiler_o_lo=yes
3883 echo "$as_me: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3887 ac_objext="$save_objext"
3888 CFLAGS="$save_CFLAGS"
3892 compiler_o_lo=$lt_cv_compiler_o_lo
3893 echo "$as_me:3893: result: $compiler_o_lo" >&5
3894 echo "${ECHO_T}$compiler_o_lo" >&6
3899 # Check to see if we can do hard links to lock some files if needed
3900 hard_links="nottested"
3901 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3902 # do not overwrite the value of need_locks provided by the user
3903 echo "$as_me:3903: checking if we can lock with hard links" >&5
3904 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3909 ln conftest.a conftest.b 2>&5 || hard_links=no
3910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3911 echo "$as_me:3911: result: $hard_links" >&5
3912 echo "${ECHO_T}$hard_links" >&6
3913 if test "$hard_links" = no; then
3914 { echo "$as_me:3914: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
3915 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3922 if test "$GCC" = yes; then
3923 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3924 echo "$as_me:3924: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3925 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3926 echo "int some_variable = 0;" > conftest.$ac_ext
3927 save_CFLAGS="$CFLAGS"
3928 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3929 compiler_rtti_exceptions=no
3930 cat >conftest.$ac_ext <<_ACEOF
3931 #line 3931 "configure"
3932 #include "confdefs.h"
3937 int some_variable = 0;
3942 rm -f conftest.$ac_objext
3943 if { (eval echo "$as_me:3943: \"$ac_compile\"") >&5
3944 (eval $ac_compile) 2>&5
3946 echo "$as_me:3946: \$? = $ac_status" >&5
3947 (exit $ac_status); } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:3949: \"$ac_try\"") >&5
3952 echo "$as_me:3952: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 # The compiler can only warn and ignore the option if not recognized
3955 # So say no if there are warnings
3956 if test -s conftest.err; then
3957 compiler_rtti_exceptions=no
3959 compiler_rtti_exceptions=yes
3963 echo "$as_me: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3966 rm -f conftest.$ac_objext conftest.$ac_ext
3967 CFLAGS="$save_CFLAGS"
3968 echo "$as_me:3968: result: $compiler_rtti_exceptions" >&5
3969 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3971 if test "$compiler_rtti_exceptions" = "yes"; then
3972 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3974 no_builtin_flag=' -fno-builtin'
3978 # See if the linker supports building shared libraries.
3979 echo "$as_me:3979: checking whether the linker ($LD) supports shared libraries" >&5
3980 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
3982 allow_undefined_flag=
3984 need_lib_prefix=unknown
3985 need_version=unknown
3986 # when you set need_version to no, make sure it does not cause -set_version
3987 # flags to be left without arguments
3989 archive_expsym_cmds=
3990 old_archive_from_new_cmds=
3991 old_archive_from_expsyms_cmds=
3992 export_dynamic_flag_spec=
3993 whole_archive_flag_spec=
3994 thread_safe_flag_spec=
3995 hardcode_into_libs=no
3996 hardcode_libdir_flag_spec=
3997 hardcode_libdir_separator=
4000 hardcode_shlibpath_var=unsupported
4002 link_all_deplibs=unknown
4003 always_export_symbols=no
4004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4005 # include_expsyms should be a list of space-separated symbols to be *always*
4006 # included in the symbol list
4008 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4009 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4011 # as well as any symbol that contains `d'.
4012 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4014 # platforms (ab)use it in PIC code, but their linkers get confused if
4015 # the symbol is explicitly referenced. Since portable code cannot
4016 # rely on this symbol name, it's probably fine to never include it in
4017 # preloaded symbol tables.
4018 extract_expsyms_cmds=
4021 cygwin* | mingw* | pw32*)
4022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4023 # When not using gcc, we currently assume that we are using
4024 # Microsoft Visual C++.
4025 if test "$GCC" != yes; then
4035 if test "$with_gnu_ld" = yes; then
4036 # If archive_cmds runs LD, not CC, wlarc should be empty
4039 # See if GNU ld supports shared libraries.
4041 aix3* | aix4* | aix5*)
4042 # On AIX, the GNU linker is very broken
4043 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4047 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4048 *** to be unable to reliably create shared libraries on AIX.
4049 *** Therefore, libtool is disabling shared libraries support. If you
4050 *** really care for shared libraries, you may want to modify your PATH
4051 *** so that a non-GNU linker is found, and then restart.
4057 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)'
4058 hardcode_libdir_flag_spec='-L$libdir'
4059 hardcode_minus_L=yes
4061 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4062 # that the semantics of dynamic libraries on AmigaOS, at least up
4063 # to version 4, is to share data among multiple programs linked
4064 # with the same dynamic library. Since this doesn't match the
4065 # behavior of shared libraries on other platforms, we can use
4071 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4072 allow_undefined_flag=unsupported
4073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4074 # support --undefined. This deserves some investigation. FIXME
4075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4081 cygwin* | mingw* | pw32*)
4082 # hardcode_libdir_flag_spec is actually meaningless, as there is
4083 # no search path for DLLs.
4084 hardcode_libdir_flag_spec='-L$libdir'
4085 allow_undefined_flag=unsupported
4086 always_export_symbols=yes
4088 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4089 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4090 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4091 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4092 else $CC -o impgen impgen.c ; fi)~
4093 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4095 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4097 # cygwin and mingw dlls have different entry points and sets of symbols
4099 # FIXME: what about values for MSVC?
4100 dll_entry=__cygwin_dll_entry@12
4101 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4105 dll_entry=_DllMainCRTStartup@12
4106 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4110 # mingw and cygwin differ, and it's simplest to just exclude the union
4111 # of the two symbol sets.
4112 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4114 # recent cygwin and mingw systems supply a stub DllMain which the user
4115 # can override, but on older systems we have to supply one (in ltdll.c)
4116 if test "x$lt_cv_need_dllmain" = "xyes"; then
4117 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4118 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~
4119 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4125 # Extract the symbol export list from an `--export-all' def file,
4126 # then regenerate the def file from the symbol export list, so that
4127 # the compiled dll only exports the symbol export list.
4128 # Be careful not to strip the DATA tag left be newer dlltools.
4129 export_symbols_cmds="$ltdll_cmds"'
4130 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4131 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4133 # If the export-symbols file already is a .def file (1st line
4134 # is EXPORTS), use it as is.
4135 # If DATA tags from a recent dlltool are present, honour them!
4136 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4137 cp $export_symbols $output_objdir/$soname-def;
4139 echo EXPORTS > $output_objdir/$soname-def;
4141 cat $export_symbols | while read symbol; do
4144 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4145 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4147 _lt_hint=`expr 1 + \$_lt_hint`;
4151 $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~
4152 $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~
4153 $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~
4154 $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~
4155 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4160 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4163 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4164 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4169 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4173 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4174 *** create shared libraries on Solaris systems. Therefore, libtool
4175 *** is disabling shared libraries support. We urge you to upgrade GNU
4176 *** binutils to release 2.9.1 or newer. Another option is to modify
4177 *** your PATH or compiler configuration so that the native linker is
4178 *** used, and then restart.
4181 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4190 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4193 hardcode_shlibpath_var=no
4197 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4206 if test "$ld_shlibs" = yes; then
4207 runpath_var=LD_RUN_PATH
4208 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4209 export_dynamic_flag_spec='${wl}--export-dynamic'
4211 cygwin* | mingw* | pw32*)
4212 # dlltool doesn't understand --whole-archive et. al.
4213 whole_archive_flag_spec=
4216 # ancient GNU ld didn't support --whole-archive et. al.
4217 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4218 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4220 whole_archive_flag_spec=
4226 # PORTME fill in a description of your system's linker (not GNU ld)
4229 allow_undefined_flag=unsupported
4230 always_export_symbols=yes
4231 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'
4232 # Note: this linker hardcodes the directories in LIBPATH if there
4233 # are no directories specified by -L.
4234 hardcode_minus_L=yes
4235 if test "$GCC" = yes && test -z "$link_static_flag"; then
4236 # Neither direct hardcoding nor static linking is supported with a
4238 hardcode_direct=unsupported
4243 if test "$host_cpu" = ia64; then
4244 # On IA64, the linker does run time linking by default, so we don't
4245 # have to do anything special.
4246 aix_use_runtimelinking=no
4247 exp_sym_flag='-Bexport'
4250 aix_use_runtimelinking=no
4252 # Test if we are trying to use run time linking or normal
4253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4254 # need to do runtime linking.
4255 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4256 for ld_flag in $LDFLAGS; do
4257 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4258 aix_use_runtimelinking=yes
4264 exp_sym_flag='-bexport'
4265 no_entry_flag='-bnoentry'
4268 # When large executables or shared objects are built, AIX ld can
4269 # have problems creating the table of contents. If linking a library
4270 # or program results in "error TOC overflow" add -mminimal-toc to
4271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4276 hardcode_libdir_separator=':'
4277 if test "$GCC" = yes; then
4278 case $host_os in aix4.[012]|aix4.[012].*)
4279 collect2name=`${CC} -print-prog-name=collect2`
4280 if test -f "$collect2name" && \
4281 strings "$collect2name" | grep resolve_lib_name >/dev/null
4283 # We have reworked collect2
4286 # We have old collect2
4287 hardcode_direct=unsupported
4288 # It fails to find uninstalled libraries when the uninstalled
4289 # path is not listed in the libpath. Setting hardcode_minus_L
4290 # to unsupported forces relinking
4291 hardcode_minus_L=yes
4292 hardcode_libdir_flag_spec='-L$libdir'
4293 hardcode_libdir_separator=
4297 shared_flag='-shared'
4300 if test "$host_cpu" = ia64; then
4301 shared_flag='${wl}-G'
4303 if test "$aix_use_runtimelinking" = yes; then
4304 shared_flag='${wl}-G'
4306 shared_flag='${wl}-bM:SRE'
4311 # It seems that -bexpall can do strange things, so it is better to
4312 # generate a list of symbols to export.
4313 always_export_symbols=yes
4314 if test "$aix_use_runtimelinking" = yes; then
4315 # Warning - without using the other runtime loading flags (-brtl),
4316 # -berok will link without error, but may produce a broken library.
4317 allow_undefined_flag='-berok'
4318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4319 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4321 if test "$host_cpu" = ia64; then
4322 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4323 allow_undefined_flag="-z nodefs"
4324 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"
4326 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4327 # Warning - without using the other run time loading flags,
4328 # -berok will link without error, but may produce a broken library.
4329 allow_undefined_flag='${wl}-berok'
4330 # This is a bit strange, but is similar to how AIX traditionally builds
4331 # it's shared libraries.
4332 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'
4338 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)'
4339 hardcode_libdir_flag_spec='-L$libdir'
4340 hardcode_minus_L=yes
4341 # see comment about different semantics on the GNU ld section
4345 cygwin* | mingw* | pw32*)
4346 # When not using gcc, we currently assume that we are using
4347 # Microsoft Visual C++.
4348 # hardcode_libdir_flag_spec is actually meaningless, as there is
4349 # no search path for DLLs.
4350 hardcode_libdir_flag_spec=' '
4351 allow_undefined_flag=unsupported
4352 # Tell ltmain to make .lib files, not .a files.
4354 # FIXME: Setting linknames here is a bad hack.
4355 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4356 # The linker will automatically build a .lib file if we build a DLL.
4357 old_archive_from_new_cmds='true'
4358 # FIXME: Should let the user specify the lib program.
4359 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4360 fix_srcfile_path='`cygpath -w "$srcfile"`'
4363 darwin* | rhapsody*)
4365 rhapsody* | darwin1.[012])
4366 allow_undefined_flag='-undefined suppress'
4369 allow_undefined_flag='-flat_namespace -undefined suppress'
4372 # FIXME: Relying on posixy $() will cause problems for
4373 # cross-compilation, but unfortunately the echo tests do not
4374 # yet detect zsh echo's removal of \ escapes.
4375 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4376 # We need to add '_' to the symbols in $export_symbols first
4377 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4379 hardcode_shlibpath_var=no
4380 whole_archive_flag_spec='-all_load $convenience'
4387 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4388 # support. Future versions do this automatically, but an explicit c++rt0.o
4389 # does not break anything, and helps significantly (at the cost of a little
4392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4393 hardcode_libdir_flag_spec='-R$libdir'
4395 hardcode_shlibpath_var=no
4398 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4402 hardcode_minus_L=yes
4403 hardcode_shlibpath_var=no
4406 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4408 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4409 hardcode_libdir_flag_spec='-R$libdir'
4411 hardcode_shlibpath_var=no
4414 hpux9* | hpux10* | hpux11*)
4416 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' ;;
4417 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4420 hardcode_libdir_separator=:
4422 hardcode_minus_L=yes # Not in the search PATH, but as the default
4423 # location of the library.
4424 export_dynamic_flag_spec='${wl}-E'
4428 if test "$GCC" = yes; then
4429 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'
4431 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'
4433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4434 hardcode_libdir_separator=:
4435 link_all_deplibs=yes
4439 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4442 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4444 hardcode_libdir_flag_spec='-R$libdir'
4446 hardcode_shlibpath_var=no
4450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4453 hardcode_libdir_separator=:
4454 hardcode_shlibpath_var=no
4459 hardcode_shlibpath_var=no
4460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4463 export_dynamic_flag_spec='${wl}-E'
4466 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4468 hardcode_libdir_flag_spec='-R$libdir'
4471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4479 hardcode_libdir_flag_spec='-L$libdir'
4480 hardcode_minus_L=yes
4481 allow_undefined_flag=unsupported
4482 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'
4483 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4487 if test "$GCC" = yes; then
4488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4489 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'
4491 allow_undefined_flag=' -expect_unresolved \*'
4492 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'
4494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4495 hardcode_libdir_separator=:
4498 osf4* | osf5*) # as osf3* with the addition of -msym flag
4499 if test "$GCC" = yes; then
4500 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4501 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'
4502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4504 allow_undefined_flag=' -expect_unresolved \*'
4505 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'
4506 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4507 $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'
4509 #Both c and cxx compiler support -rpath directly
4510 hardcode_libdir_flag_spec='-rpath $libdir'
4512 hardcode_libdir_separator=:
4516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4517 hardcode_shlibpath_var=no
4518 runpath_var=LD_RUN_PATH
4519 hardcode_runpath_var=yes
4520 export_dynamic_flag_spec='${wl}-Bexport'
4524 # gcc --version < 3.0 without binutils cannot create self contained
4525 # shared libraries reliably, requiring libgcc.a to resolve some of
4526 # the object symbols generated in some cases. Libraries that use
4527 # assert need libgcc.a to resolve __eprintf, for example. Linking
4528 # a copy of libgcc.a into every shared library to guarantee resolving
4529 # such symbols causes other problems: According to Tim Van Holder
4530 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4531 # (to the application) exception stack for one thing.
4532 no_undefined_flag=' -z defs'
4533 if test "$GCC" = yes; then
4534 case `$CC --version 2>/dev/null` in
4538 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4539 *** create self contained shared libraries on Solaris systems, without
4540 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4541 *** -no-undefined support, which will at least allow you to build shared
4542 *** libraries. However, you may find that when you link such libraries
4543 *** into an application without using GCC, you have to manually add
4544 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4545 *** upgrade to a newer version of GCC. Another option is to rebuild your
4546 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4553 # $CC -shared without GNU ld will not create a library from C++
4554 # object files and a static libstdc++, better avoid it by now
4555 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4556 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4557 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4558 hardcode_libdir_flag_spec='-R$libdir'
4559 hardcode_shlibpath_var=no
4561 solaris2.[0-5] | solaris2.[0-5].*) ;;
4562 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4563 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4565 link_all_deplibs=yes
4569 if test "x$host_vendor" = xsequent; then
4570 # Use $CC to link under sequent, because it throws in some extra .o
4571 # files that make .init and .fini sections work.
4572 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4574 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4576 hardcode_libdir_flag_spec='-L$libdir'
4578 hardcode_minus_L=yes
4579 hardcode_shlibpath_var=no
4583 if test "x$host_vendor" = xsno; then
4584 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4585 hardcode_direct=yes # is this really true???
4587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4588 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4590 runpath_var='LD_RUN_PATH'
4591 hardcode_shlibpath_var=no
4595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4596 hardcode_shlibpath_var=no
4597 export_dynamic_flag_spec='-Bexport'
4601 no_undefined_flag=' -z text'
4602 # $CC -shared without GNU ld will not create a library from C++
4603 # object files and a static libstdc++, better avoid it by now
4604 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4605 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4606 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4607 hardcode_libdir_flag_spec=
4608 hardcode_shlibpath_var=no
4609 runpath_var='LD_RUN_PATH'
4613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4614 hardcode_libdir_flag_spec='-L$libdir'
4615 hardcode_shlibpath_var=no
4619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4620 hardcode_libdir_flag_spec='-L$libdir'
4621 hardcode_shlibpath_var=no
4625 if test -d /usr/nec; then
4626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4627 hardcode_shlibpath_var=no
4628 runpath_var=LD_RUN_PATH
4629 hardcode_runpath_var=yes
4635 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4638 hardcode_shlibpath_var=no
4639 hardcode_runpath_var=yes
4640 runpath_var=LD_RUN_PATH
4643 sysv5uw7* | unixware7*)
4644 no_undefined_flag='${wl}-z ${wl}text'
4645 if test "$GCC" = yes; then
4646 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4648 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4650 runpath_var='LD_RUN_PATH'
4651 hardcode_shlibpath_var=no
4659 echo "$as_me:4659: result: $ld_shlibs" >&5
4660 echo "${ECHO_T}$ld_shlibs" >&6
4661 test "$ld_shlibs" = no && can_build_shared=no
4663 # Check hardcoding attributes.
4664 echo "$as_me:4664: checking how to hardcode library paths into programs" >&5
4665 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4667 if test -n "$hardcode_libdir_flag_spec" || \
4668 test -n "$runpath_var"; then
4670 # We can hardcode non-existant directories.
4671 if test "$hardcode_direct" != no &&
4672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4673 # have to relink, otherwise we might link with an installed library
4674 # when we should be linking with a yet-to-be-installed one
4675 ## test "$hardcode_shlibpath_var" != no &&
4676 test "$hardcode_minus_L" != no; then
4677 # Linking always hardcodes the temporary library directory.
4678 hardcode_action=relink
4680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4681 hardcode_action=immediate
4684 # We cannot hardcode anything, or else we can only hardcode existing
4686 hardcode_action=unsupported
4688 echo "$as_me:4688: result: $hardcode_action" >&5
4689 echo "${ECHO_T}$hardcode_action" >&6
4693 echo "$as_me:4693: checking whether stripping libraries is possible" >&5
4694 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4695 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4696 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4697 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4698 echo "$as_me:4698: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6
4701 echo "$as_me:4701: result: no" >&5
4702 echo "${ECHO_T}no" >&6
4705 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4706 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4708 # PORTME Fill in your ld.so characteristics
4709 echo "$as_me:4709: checking dynamic linker characteristics" >&5
4710 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4712 libname_spec='lib$name'
4719 shlibpath_overrides_runpath=unknown
4721 dynamic_linker="$host_os ld.so"
4722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4728 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4729 shlibpath_var=LIBPATH
4731 # AIX has no versioning support, so we append a major version to the name.
4732 soname_spec='${libname}${release}.so$major'
4737 if test "$host_cpu" = ia64; then
4738 # AIX 5 supports IA64
4739 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4740 shlibpath_var=LD_LIBRARY_PATH
4742 # With GCC up to 2.95.x, collect2 would create an import file
4743 # for dependence libraries. The import file would start with
4744 # the line `#! .'. This would cause the generated library to
4745 # depend on `.', always an invalid library. This was fixed in
4746 # development snapshots of GCC prior to 3.0.
4748 aix4 | aix4.[01] | aix4.[01].*)
4749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4751 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4758 # AIX (on Power*) has no versioning support, so currently we can
4759 # not hardcode correct soname into executable. Probably we can
4760 # add versioning support to collect2, so additional links can
4761 # be useful in future.
4762 if test "$aix_use_runtimelinking" = yes; then
4763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4764 # instead of lib<name>.a to let people know that these are not
4765 # typical AIX shared libraries.
4766 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4768 # We preserve .a as extension for shared libraries through AIX4.2
4769 # and later when we are not doing run time linking.
4770 library_names_spec='${libname}${release}.a $libname.a'
4771 soname_spec='${libname}${release}.so$major'
4773 shlibpath_var=LIBPATH
4778 library_names_spec='$libname.ixlibrary $libname.a'
4779 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4780 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'
4784 library_names_spec='${libname}.so'
4785 dynamic_linker="$host_os ld.so"
4786 shlibpath_var=LIBRARY_PATH
4792 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4793 soname_spec='${libname}${release}.so$major'
4794 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4795 shlibpath_var=LD_LIBRARY_PATH
4796 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4797 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4798 export_dynamic_flag_spec=-rdynamic
4799 # the default ld.so.conf also contains /usr/contrib/lib and
4800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4801 # libtool to hard-code these into programs
4804 cygwin* | mingw* | pw32*)
4805 version_type=windows
4808 case $GCC,$host_os in
4810 library_names_spec='$libname.dll.a'
4811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4812 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4813 dldir=$destdir/`dirname \$dlpath`~
4814 test -d \$dldir || mkdir -p \$dldir~
4815 $install_prog .libs/$dlname \$dldir/$dlname'
4816 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4817 dlpath=$dir/\$dldll~
4821 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4828 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4831 dynamic_linker='Win32 ld.exe'
4832 # FIXME: first we should search . and the directory the executable is in
4836 darwin* | rhapsody*)
4837 dynamic_linker="$host_os dyld"
4841 # FIXME: Relying on posixy $() will cause problems for
4842 # cross-compilation, but unfortunately the echo tests do not
4843 # yet detect zsh echo's removal of \ escapes.
4844 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)'
4845 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4846 shlibpath_overrides_runpath=yes
4847 shlibpath_var=DYLD_LIBRARY_PATH
4855 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4856 version_type=freebsd-$objformat
4857 case $version_type in
4859 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4864 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4868 shlibpath_var=LD_LIBRARY_PATH
4871 shlibpath_overrides_runpath=yes
4874 shlibpath_overrides_runpath=no
4875 hardcode_into_libs=yes
4884 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4885 soname_spec='${libname}${release}.so$major'
4886 shlibpath_var=LD_LIBRARY_PATH
4887 hardcode_into_libs=yes
4890 hpux9* | hpux10* | hpux11*)
4891 # Give a soname corresponding to the major version so that dld.sl refuses to
4892 # link against other versions.
4893 dynamic_linker="$host_os dld.sl"
4897 shlibpath_var=SHLIB_PATH
4898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4899 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4900 soname_spec='${libname}${release}.sl$major'
4901 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4902 postinstall_cmds='chmod 555 $lib'
4909 soname_spec='${libname}${release}.so$major'
4910 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4916 case $LD in # libtool.m4 will add one of these switches to LD
4917 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4918 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4919 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4920 *) libsuff= shlibsuff= libmagic=never-match;;
4924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4925 shlibpath_overrides_runpath=no
4926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4930 # No shared lib support for Linux oldld, aout, or coff.
4931 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4935 # This must be Linux ELF.
4940 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4941 soname_spec='${libname}${release}.so$major'
4942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4943 shlibpath_var=LD_LIBRARY_PATH
4944 shlibpath_overrides_runpath=no
4945 # This implies no fast_install, which is unacceptable.
4946 # Some rework will be needed to allow for fast_install
4947 # before this can be enabled.
4948 hardcode_into_libs=yes
4950 # We used to test for /lib/ld.so.1 and disable shared libraries on
4951 # powerpc, because MkLinux only supported shared libraries with the
4952 # GNU dynamic linker. Since this was broken with cross compilers,
4953 # most powerpc-linux boxes support dynamic linking these days and
4954 # people can always --disable-shared, the test was removed, and we
4955 # assume the GNU/Linux dynamic linker is in use.
4956 dynamic_linker='GNU/Linux ld.so'
4963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4964 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4966 dynamic_linker='NetBSD (a.out) ld.so'
4968 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4969 soname_spec='${libname}${release}.so$major'
4970 dynamic_linker='NetBSD ld.elf_so'
4972 shlibpath_var=LD_LIBRARY_PATH
4973 shlibpath_overrides_runpath=yes
4974 hardcode_into_libs=yes
4979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4980 shlibpath_var=LD_LIBRARY_PATH
4981 shlibpath_overrides_runpath=yes
4988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4990 openbsd2.[89] | openbsd2.[89].*)
4991 shlibpath_overrides_runpath=no
4994 shlibpath_overrides_runpath=yes
4998 shlibpath_overrides_runpath=yes
5000 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5002 shlibpath_var=LD_LIBRARY_PATH
5006 libname_spec='$name'
5008 library_names_spec='$libname.dll $libname.a'
5009 dynamic_linker='OS/2 ld.exe'
5010 shlibpath_var=LIBPATH
5013 osf3* | osf4* | osf5*)
5016 soname_spec='${libname}${release}.so'
5017 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5018 shlibpath_var=LD_LIBRARY_PATH
5019 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5020 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5025 soname_spec='${libname}${release}.so$major'
5026 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5027 shlibpath_var=LD_LIBRARY_PATH
5034 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5035 soname_spec='${libname}${release}.so$major'
5036 shlibpath_var=LD_LIBRARY_PATH
5037 shlibpath_overrides_runpath=yes
5038 hardcode_into_libs=yes
5039 # ldd complains unless libraries are executable
5040 postinstall_cmds='chmod +x $lib'
5045 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5047 shlibpath_var=LD_LIBRARY_PATH
5048 shlibpath_overrides_runpath=yes
5049 if test "$with_gnu_ld" = yes; then
5055 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5057 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5058 soname_spec='${libname}${release}.so$major'
5059 shlibpath_var=LD_LIBRARY_PATH
5060 case $host_vendor in
5062 shlibpath_overrides_runpath=no
5067 shlibpath_overrides_runpath=no
5068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5075 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5076 soname_spec='${libname}${release}.so$major'
5077 shlibpath_var=LD_LIBRARY_PATH
5084 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5085 soname_spec='${libname}${release}.so$major'
5086 shlibpath_var=LD_LIBRARY_PATH
5090 if test -d /usr/nec ;then
5092 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5093 soname_spec='$libname.so.$major'
5094 shlibpath_var=LD_LIBRARY_PATH
5102 echo "$as_me:5102: result: $dynamic_linker" >&5
5103 echo "${ECHO_T}$dynamic_linker" >&6
5104 test "$dynamic_linker" = no && can_build_shared=no
5106 # Report the final consequences.
5107 echo "$as_me:5107: checking if libtool supports shared libraries" >&5
5108 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5109 echo "$as_me:5109: result: $can_build_shared" >&5
5110 echo "${ECHO_T}$can_build_shared" >&6
5112 echo "$as_me:5112: checking whether to build shared libraries" >&5
5113 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5114 test "$can_build_shared" = "no" && enable_shared=no
5116 # On AIX, shared libraries and static libraries use the same namespace, and
5117 # are all built from PIC.
5120 test "$enable_shared" = yes && enable_static=no
5121 if test -n "$RANLIB"; then
5122 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5123 postinstall_cmds='$RANLIB $lib'
5128 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5129 test "$enable_shared" = yes && enable_static=no
5133 echo "$as_me:5133: result: $enable_shared" >&5
5134 echo "${ECHO_T}$enable_shared" >&6
5136 echo "$as_me:5136: checking whether to build static libraries" >&5
5137 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5138 # Make sure either enable_shared or enable_static is yes.
5139 test "$enable_shared" = yes || enable_static=yes
5140 echo "$as_me:5140: result: $enable_static" >&5
5141 echo "${ECHO_T}$enable_static" >&6
5143 if test "$hardcode_action" = relink; then
5144 # Fast installation is not supported
5145 enable_fast_install=no
5146 elif test "$shlibpath_overrides_runpath" = yes ||
5147 test "$enable_shared" = no; then
5148 # Fast installation is not necessary
5149 enable_fast_install=needless
5152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5153 if test "$GCC" = yes; then
5154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5157 if test "x$enable_dlopen" != xyes; then
5158 enable_dlopen=unknown
5159 enable_dlopen_self=unknown
5160 enable_dlopen_self_static=unknown
5167 lt_cv_dlopen="load_add_on"
5169 lt_cv_dlopen_self=yes
5172 cygwin* | mingw* | pw32*)
5173 lt_cv_dlopen="LoadLibrary"
5178 echo "$as_me:5178: checking for shl_load" >&5
5179 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5180 if test "${ac_cv_func_shl_load+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 cat >conftest.$ac_ext <<_ACEOF
5184 #line 5184 "configure"
5185 #include "confdefs.h"
5186 /* System header to define __stub macros and hopefully few prototypes,
5187 which can conflict with char shl_load (); below. */
5189 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5201 /* The GNU C library defines this for functions which it implements
5202 to always fail with ENOSYS. Some functions are actually named
5203 something starting with __ and the normal name is an alias. */
5204 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:5215: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5218 echo "$as_me:5218: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:5221: \"$ac_try\"") >&5
5224 echo "$as_me:5224: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_func_shl_load=yes
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_cv_func_shl_load=no
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5234 echo "$as_me:5234: result: $ac_cv_func_shl_load" >&5
5235 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5236 if test $ac_cv_func_shl_load = yes; then
5237 lt_cv_dlopen="shl_load"
5239 echo "$as_me:5239: checking for shl_load in -ldld" >&5
5240 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5241 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_check_lib_save_LIBS=$LIBS
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line 5247 "configure"
5248 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */
5254 /* We use char because int might match the return type of a gcc2
5255 builtin and then its argument prototype would still apply. */
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:5266: \"$ac_link\"") >&5
5267 (eval $ac_link) 2>&5
5269 echo "$as_me:5269: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest$ac_exeext'
5272 { (eval echo "$as_me:5272: \"$ac_try\"") >&5
5275 echo "$as_me:5275: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_lib_dld_shl_load=yes
5279 echo "$as_me: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 ac_cv_lib_dld_shl_load=no
5283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284 LIBS=$ac_check_lib_save_LIBS
5286 echo "$as_me:5286: result: $ac_cv_lib_dld_shl_load" >&5
5287 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5288 if test $ac_cv_lib_dld_shl_load = yes; then
5289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5291 echo "$as_me:5291: checking for dlopen" >&5
5292 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5293 if test "${ac_cv_func_dlopen+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line 5297 "configure"
5298 #include "confdefs.h"
5299 /* System header to define __stub macros and hopefully few prototypes,
5300 which can conflict with char dlopen (); below. */
5302 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5314 /* The GNU C library defines this for functions which it implements
5315 to always fail with ENOSYS. Some functions are actually named
5316 something starting with __ and the normal name is an alias. */
5317 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5327 rm -f conftest.$ac_objext conftest$ac_exeext
5328 if { (eval echo "$as_me:5328: \"$ac_link\"") >&5
5329 (eval $ac_link) 2>&5
5331 echo "$as_me:5331: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try='test -s conftest$ac_exeext'
5334 { (eval echo "$as_me:5334: \"$ac_try\"") >&5
5337 echo "$as_me:5337: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_cv_func_dlopen=yes
5341 echo "$as_me: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5343 ac_cv_func_dlopen=no
5345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5347 echo "$as_me:5347: result: $ac_cv_func_dlopen" >&5
5348 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5349 if test $ac_cv_func_dlopen = yes; then
5350 lt_cv_dlopen="dlopen"
5352 echo "$as_me:5352: checking for dlopen in -ldl" >&5
5353 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5354 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 ac_check_lib_save_LIBS=$LIBS
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line 5360 "configure"
5361 #include "confdefs.h"
5363 /* Override any gcc2 internal prototype to avoid an error. */
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (eval echo "$as_me:5379: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>&5
5382 echo "$as_me:5382: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -s conftest$ac_exeext'
5385 { (eval echo "$as_me:5385: \"$ac_try\"") >&5
5388 echo "$as_me:5388: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_lib_dl_dlopen=yes
5392 echo "$as_me: failed program was:" >&5
5393 cat conftest.$ac_ext >&5
5394 ac_cv_lib_dl_dlopen=no
5396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5397 LIBS=$ac_check_lib_save_LIBS
5399 echo "$as_me:5399: result: $ac_cv_lib_dl_dlopen" >&5
5400 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5401 if test $ac_cv_lib_dl_dlopen = yes; then
5402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5404 echo "$as_me:5404: checking for dlopen in -lsvld" >&5
5405 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5406 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 ac_check_lib_save_LIBS=$LIBS
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line 5412 "configure"
5413 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { (eval echo "$as_me:5431: \"$ac_link\"") >&5
5432 (eval $ac_link) 2>&5
5434 echo "$as_me:5434: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:5437: \"$ac_try\"") >&5
5440 echo "$as_me:5440: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_cv_lib_svld_dlopen=yes
5444 echo "$as_me: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5446 ac_cv_lib_svld_dlopen=no
5448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5449 LIBS=$ac_check_lib_save_LIBS
5451 echo "$as_me:5451: result: $ac_cv_lib_svld_dlopen" >&5
5452 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5453 if test $ac_cv_lib_svld_dlopen = yes; then
5454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5456 echo "$as_me:5456: checking for dld_link in -ldld" >&5
5457 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5458 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 ac_check_lib_save_LIBS=$LIBS
5463 cat >conftest.$ac_ext <<_ACEOF
5464 #line 5464 "configure"
5465 #include "confdefs.h"
5467 /* Override any gcc2 internal prototype to avoid an error. */
5471 /* We use char because int might match the return type of a gcc2
5472 builtin and then its argument prototype would still apply. */
5482 rm -f conftest.$ac_objext conftest$ac_exeext
5483 if { (eval echo "$as_me:5483: \"$ac_link\"") >&5
5484 (eval $ac_link) 2>&5
5486 echo "$as_me:5486: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -s conftest$ac_exeext'
5489 { (eval echo "$as_me:5489: \"$ac_try\"") >&5
5492 echo "$as_me:5492: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 ac_cv_lib_dld_dld_link=yes
5496 echo "$as_me: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5498 ac_cv_lib_dld_dld_link=no
5500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5501 LIBS=$ac_check_lib_save_LIBS
5503 echo "$as_me:5503: result: $ac_cv_lib_dld_dld_link" >&5
5504 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5505 if test $ac_cv_lib_dld_dld_link = yes; then
5506 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5522 if test "x$lt_cv_dlopen" != xno; then
5528 case $lt_cv_dlopen in
5530 save_CPPFLAGS="$CPPFLAGS"
5531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5533 save_LDFLAGS="$LDFLAGS"
5534 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5537 LIBS="$lt_cv_dlopen_libs $LIBS"
5539 echo "$as_me:5539: checking whether a program can dlopen itself" >&5
5540 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5541 if test "${lt_cv_dlopen_self+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 if test "$cross_compiling" = yes; then :
5545 lt_cv_dlopen_self=cross
5547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5548 lt_status=$lt_dlunknown
5549 cat > conftest.$ac_ext <<EOF
5550 #line 5550 "configure"
5551 #include "confdefs.h"
5560 # define LT_DLGLOBAL RTLD_GLOBAL
5563 # define LT_DLGLOBAL DL_GLOBAL
5565 # define LT_DLGLOBAL 0
5569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5570 find out it does not work in some platform. */
5571 #ifndef LT_DLLAZY_OR_NOW
5573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5576 # define LT_DLLAZY_OR_NOW DL_LAZY
5579 # define LT_DLLAZY_OR_NOW RTLD_NOW
5582 # define LT_DLLAZY_OR_NOW DL_NOW
5584 # define LT_DLLAZY_OR_NOW 0
5592 extern "C" void exit (int);
5595 void fnord() { int i=42;}
5598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5599 int status = $lt_dlunknown;
5603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5605 /* dlclose (self); */
5611 if { (eval echo "$as_me:5611: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5614 echo "$as_me:5614: \$? = $ac_status" >&5
5615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5616 (./conftest; exit; ) 2>/dev/null
5619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5621 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5624 # compilation failed
5625 lt_cv_dlopen_self=no
5631 echo "$as_me:5631: result: $lt_cv_dlopen_self" >&5
5632 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5634 if test "x$lt_cv_dlopen_self" = xyes; then
5635 LDFLAGS="$LDFLAGS $link_static_flag"
5636 echo "$as_me:5636: checking whether a statically linked program can dlopen itself" >&5
5637 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5638 if test "${lt_cv_dlopen_self_static+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 if test "$cross_compiling" = yes; then :
5642 lt_cv_dlopen_self_static=cross
5644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5645 lt_status=$lt_dlunknown
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5647 "configure"
5648 #include "confdefs.h"
5657 # define LT_DLGLOBAL RTLD_GLOBAL
5660 # define LT_DLGLOBAL DL_GLOBAL
5662 # define LT_DLGLOBAL 0
5666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5667 find out it does not work in some platform. */
5668 #ifndef LT_DLLAZY_OR_NOW
5670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5673 # define LT_DLLAZY_OR_NOW DL_LAZY
5676 # define LT_DLLAZY_OR_NOW RTLD_NOW
5679 # define LT_DLLAZY_OR_NOW DL_NOW
5681 # define LT_DLLAZY_OR_NOW 0
5689 extern "C" void exit (int);
5692 void fnord() { int i=42;}
5695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5696 int status = $lt_dlunknown;
5700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5701 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5702 /* dlclose (self); */
5708 if { (eval echo "$as_me:5708: \"$ac_link\"") >&5
5709 (eval $ac_link) 2>&5
5711 echo "$as_me:5711: \$? = $ac_status" >&5
5712 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5713 (./conftest; exit; ) 2>/dev/null
5716 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5717 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5718 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5721 # compilation failed
5722 lt_cv_dlopen_self_static=no
5728 echo "$as_me:5728: result: $lt_cv_dlopen_self_static" >&5
5729 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5732 CPPFLAGS="$save_CPPFLAGS"
5733 LDFLAGS="$save_LDFLAGS"
5738 case $lt_cv_dlopen_self in
5739 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5740 *) enable_dlopen_self=unknown ;;
5743 case $lt_cv_dlopen_self_static in
5744 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5745 *) enable_dlopen_self_static=unknown ;;
5749 if test "$enable_shared" = yes && test "$GCC" = yes; then
5750 case $archive_cmds in
5752 # FIXME: we may have to deal with multi-command sequences.
5755 # Test whether the compiler implicitly links with -lc since on some
5756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5757 # to ld, don't add -lc before -lgcc.
5758 echo "$as_me:5758: checking whether -lc should be explicitly linked in" >&5
5759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5760 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 echo 'static int dummy;' > conftest.$ac_ext
5766 if { (eval echo "$as_me:5766: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5769 echo "$as_me:5769: \$? = $ac_status" >&5
5770 (exit $ac_status); }; then
5773 libobjs=conftest.$ac_objext
5775 wl=$lt_cv_prog_cc_wl
5781 save_allow_undefined_flag=$allow_undefined_flag
5782 allow_undefined_flag=
5783 if { (eval echo "$as_me:5783: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5784 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5786 echo "$as_me:5786: \$? = $ac_status" >&5
5787 (exit $ac_status); }
5789 lt_cv_archive_cmds_need_lc=no
5791 lt_cv_archive_cmds_need_lc=yes
5793 allow_undefined_flag=$save_allow_undefined_flag
5795 cat conftest.err 1>&5
5801 echo "$as_me:5801: result: $lt_cv_archive_cmds_need_lc" >&5
5802 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5806 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5808 # The second clause should only fire when bootstrapping the
5809 # libtool distribution, otherwise you forgot to ship ltmain.sh
5810 # with your package, and you will get complaints that there are
5811 # no rules to generate ltmain.sh.
5812 if test -f "$ltmain"; then
5815 # If there is no Makefile yet, we rely on a make rule to execute
5816 # `config.status --recheck' to rerun these tests and create the
5817 # libtool script then.
5818 test -f Makefile && make "$ltmain"
5821 if test -f "$ltmain"; then
5822 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5825 echo creating $ofile
5827 # Now quote all the things that may contain metacharacters while being
5828 # careful not to overquote the AC_SUBSTed values. We take copies of the
5829 # variables and quote the copies for generation of the libtool script.
5830 for var in echo old_CC old_CFLAGS \
5831 AR AR_FLAGS CC LD LN_S NM SHELL \
5832 reload_flag reload_cmds wl \
5833 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5834 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5835 library_names_spec soname_spec \
5836 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5837 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5838 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5839 old_striplib striplib file_magic_cmd export_symbols_cmds \
5840 deplibs_check_method allow_undefined_flag no_undefined_flag \
5841 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5842 global_symbol_to_c_name_address \
5843 hardcode_libdir_flag_spec hardcode_libdir_separator \
5844 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5845 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5848 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5849 old_postinstall_cmds | old_postuninstall_cmds | \
5850 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5851 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5852 postinstall_cmds | postuninstall_cmds | \
5853 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5854 # Double-quote double-evaled strings.
5855 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5863 cat <<__EOF__ > "${ofile}T"
5866 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5867 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5868 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5870 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5871 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5873 # This program is free software; you can redistribute it and/or modify
5874 # it under the terms of the GNU General Public License as published by
5875 # the Free Software Foundation; either version 2 of the License, or
5876 # (at your option) any later version.
5878 # This program is distributed in the hope that it will be useful, but
5879 # WITHOUT ANY WARRANTY; without even the implied warranty of
5880 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5881 # General Public License for more details.
5883 # You should have received a copy of the GNU General Public License
5884 # along with this program; if not, write to the Free Software
5885 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5887 # As a special exception to the GNU General Public License, if you
5888 # distribute this file as part of a program that contains a
5889 # configuration script generated by Autoconf, you may include it under
5890 # the same distribution terms that you use for the rest of that program.
5892 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5893 Xsed="sed -e s/^X//"
5895 # The HP-UX ksh and POSIX shell print the target directory to stdout
5897 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5899 # ### BEGIN LIBTOOL CONFIG
5901 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5903 # Shell to use when invoking shell scripts.
5906 # Whether or not to build shared libraries.
5907 build_libtool_libs=$enable_shared
5909 # Whether or not to build static libraries.
5910 build_old_libs=$enable_static
5912 # Whether or not to add -lc for building shared libraries.
5913 build_libtool_need_lc=$need_lc
5915 # Whether or not to optimize for fast installation.
5916 fast_install=$enable_fast_install
5919 host_alias=$host_alias
5922 # An echo program that does not interpret backslashes.
5927 AR_FLAGS=$lt_AR_FLAGS
5929 # The default C compiler.
5932 # Is the compiler the GNU C compiler?
5935 # The linker used to build libraries.
5938 # Whether we need hard or soft links.
5941 # A BSD-compatible nm program.
5944 # A symbol stripping program
5947 # Used to examine libraries when file_magic_cmd begins "file"
5948 MAGIC_CMD=$MAGIC_CMD
5950 # Used on cygwin: DLL creation program.
5953 # Used on cygwin: object dumper.
5956 # Used on cygwin: assembler.
5959 # The name of the directory that contains temporary libtool files.
5962 # How to create reloadable object files.
5963 reload_flag=$lt_reload_flag
5964 reload_cmds=$lt_reload_cmds
5966 # How to pass a linker flag through the compiler.
5969 # Object file suffix (normally "o").
5972 # Old archive suffix (normally "a").
5975 # Executable file suffix (normally "").
5978 # Additional compiler flags for building library objects.
5979 pic_flag=$lt_pic_flag
5982 # Does compiler simultaneously support -c and -o options?
5983 compiler_c_o=$lt_compiler_c_o
5985 # Can we write directly to a .lo ?
5986 compiler_o_lo=$lt_compiler_o_lo
5988 # Must we lock files when doing compilation ?
5989 need_locks=$lt_need_locks
5991 # Do we need the lib prefix for modules?
5992 need_lib_prefix=$need_lib_prefix
5994 # Do we need a version for libraries?
5995 need_version=$need_version
5997 # Whether dlopen is supported.
5998 dlopen_support=$enable_dlopen
6000 # Whether dlopen of programs is supported.
6001 dlopen_self=$enable_dlopen_self
6003 # Whether dlopen of statically linked programs is supported.
6004 dlopen_self_static=$enable_dlopen_self_static
6006 # Compiler flag to prevent dynamic linking.
6007 link_static_flag=$lt_link_static_flag
6009 # Compiler flag to turn off builtin functions.
6010 no_builtin_flag=$lt_no_builtin_flag
6012 # Compiler flag to allow reflexive dlopens.
6013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6015 # Compiler flag to generate shared objects directly from archives.
6016 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6018 # Compiler flag to generate thread-safe objects.
6019 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6021 # Library versioning type.
6022 version_type=$version_type
6024 # Format of library name prefix.
6025 libname_spec=$lt_libname_spec
6027 # List of archive names. First name is the real one, the rest are links.
6028 # The last name is the one that the linker finds with -lNAME.
6029 library_names_spec=$lt_library_names_spec
6031 # The coded name of the library, if different from the real name.
6032 soname_spec=$lt_soname_spec
6034 # Commands used to build and install an old-style archive.
6036 old_archive_cmds=$lt_old_archive_cmds
6037 old_postinstall_cmds=$lt_old_postinstall_cmds
6038 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6040 # Create an old-style archive from a shared archive.
6041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6043 # Create a temporary old-style archive to link instead of a shared archive.
6044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6046 # Commands used to build and install a shared archive.
6047 archive_cmds=$lt_archive_cmds
6048 archive_expsym_cmds=$lt_archive_expsym_cmds
6049 postinstall_cmds=$lt_postinstall_cmds
6050 postuninstall_cmds=$lt_postuninstall_cmds
6052 # Commands to strip libraries.
6053 old_striplib=$lt_old_striplib
6054 striplib=$lt_striplib
6056 # Method to check whether dependent libraries are shared objects.
6057 deplibs_check_method=$lt_deplibs_check_method
6059 # Command to use when deplibs_check_method == file_magic.
6060 file_magic_cmd=$lt_file_magic_cmd
6062 # Flag that allows shared libraries with undefined symbols to be built.
6063 allow_undefined_flag=$lt_allow_undefined_flag
6065 # Flag that forces no undefined symbols.
6066 no_undefined_flag=$lt_no_undefined_flag
6068 # Commands used to finish a libtool library installation in a directory.
6069 finish_cmds=$lt_finish_cmds
6071 # Same as above, but a single script fragment to be evaled but not shown.
6072 finish_eval=$lt_finish_eval
6074 # Take the output of nm and produce a listing of raw symbols and C names.
6075 global_symbol_pipe=$lt_global_symbol_pipe
6077 # Transform the output of nm in a proper C declaration
6078 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6080 # Transform the output of nm in a C name address pair
6081 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6083 # This is the shared library runtime path variable.
6084 runpath_var=$runpath_var
6086 # This is the shared library path variable.
6087 shlibpath_var=$shlibpath_var
6089 # Is shlibpath searched before the hard-coded library search path?
6090 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6092 # How to hardcode a shared library path into an executable.
6093 hardcode_action=$hardcode_action
6095 # Whether we should hardcode library paths into libraries.
6096 hardcode_into_libs=$hardcode_into_libs
6098 # Flag to hardcode \$libdir into a binary during linking.
6099 # This must work even if \$libdir does not exist.
6100 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6102 # Whether we need a single -rpath flag with a separated argument.
6103 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6105 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6107 hardcode_direct=$hardcode_direct
6109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6111 hardcode_minus_L=$hardcode_minus_L
6113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6114 # the resulting binary.
6115 hardcode_shlibpath_var=$hardcode_shlibpath_var
6117 # Variables whose values should be saved in libtool wrapper scripts and
6118 # restored at relink time.
6119 variables_saved_for_relink="$variables_saved_for_relink"
6121 # Whether libtool must link a program against all its dependency libraries.
6122 link_all_deplibs=$link_all_deplibs
6124 # Compile-time system search path for libraries
6125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6127 # Run-time system search path for libraries
6128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6130 # Fix the shell variable \$srcfile for the compiler.
6131 fix_srcfile_path="$fix_srcfile_path"
6133 # Set to yes if exported symbols are required.
6134 always_export_symbols=$always_export_symbols
6136 # The commands to list exported symbols.
6137 export_symbols_cmds=$lt_export_symbols_cmds
6139 # The commands to extract the exported symbol list from a shared archive.
6140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6142 # Symbols that should not be listed in the preloaded symbols.
6143 exclude_expsyms=$lt_exclude_expsyms
6145 # Symbols that must always be exported.
6146 include_expsyms=$lt_include_expsyms
6148 # ### END LIBTOOL CONFIG
6154 cat <<\EOF >> "${ofile}T"
6156 # AIX sometimes has problems with the GCC collect2 program. For some
6157 # reason, if we set the COLLECT_NAMES environment variable, the problems
6158 # vanish in a puff of smoke.
6159 if test "X${COLLECT_NAMES+set}" != Xset; then
6161 export COLLECT_NAMES
6168 cygwin* | mingw* | pw32* | os2*)
6169 cat <<'EOF' >> "${ofile}T"
6170 # This is a source program that is used to create dlls on Windows
6171 # Don't remove nor modify the starting and closing comments
6172 # /* ltdll.c starts here */
6173 # #define WIN32_LEAN_AND_MEAN
6174 # #include <windows.h>
6175 # #undef WIN32_LEAN_AND_MEAN
6176 # #include <stdio.h>
6178 # #ifndef __CYGWIN__
6179 # # ifdef __CYGWIN32__
6180 # # define __CYGWIN__ __CYGWIN32__
6184 # #ifdef __cplusplus
6187 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6188 # #ifdef __cplusplus
6193 # #include <cygwin/cygwin_dll.h>
6194 # DECLARE_CYGWIN_DLL( DllMain );
6196 # HINSTANCE __hDllInstance_base;
6199 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6201 # __hDllInstance_base = hInst;
6204 # /* ltdll.c ends here */
6205 # This is a source program that is used to create import libraries
6206 # on Windows for dlls which lack them. Don't remove nor modify the
6207 # starting and closing comments
6208 # /* impgen.c starts here */
6209 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6211 # This file is part of GNU libtool.
6213 # This program is free software; you can redistribute it and/or modify
6214 # it under the terms of the GNU General Public License as published by
6215 # the Free Software Foundation; either version 2 of the License, or
6216 # (at your option) any later version.
6218 # This program is distributed in the hope that it will be useful,
6219 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6221 # GNU General Public License for more details.
6223 # You should have received a copy of the GNU General Public License
6224 # along with this program; if not, write to the Free Software
6225 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6228 # #include <stdio.h> /* for printf() */
6229 # #include <unistd.h> /* for open(), lseek(), read() */
6230 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6231 # #include <string.h> /* for strdup() */
6233 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6235 # #define O_BINARY 0
6238 # static unsigned int
6239 # pe_get16 (fd, offset)
6243 # unsigned char b[2];
6244 # lseek (fd, offset, SEEK_SET);
6246 # return b[0] + (b[1]<<8);
6249 # static unsigned int
6250 # pe_get32 (fd, offset)
6254 # unsigned char b[4];
6255 # lseek (fd, offset, SEEK_SET);
6257 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6260 # static unsigned int
6264 # unsigned char *b = ptr;
6265 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6274 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6275 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6276 # unsigned long name_rvas, nexp;
6277 # unsigned char *expdata, *erva;
6278 # char *filename, *dll_name;
6280 # filename = argv[1];
6282 # dll = open(filename, O_RDONLY|O_BINARY);
6286 # dll_name = filename;
6288 # for (i=0; filename[i]; i++)
6289 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6290 # dll_name = filename + i +1;
6292 # pe_header_offset = pe_get32 (dll, 0x3c);
6293 # opthdr_ofs = pe_header_offset + 4 + 20;
6294 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6296 # if (num_entries < 1) /* no exports */
6299 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6300 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6301 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6302 # secptr = (pe_header_offset + 4 + 20 +
6303 # pe_get16 (dll, pe_header_offset + 4 + 16));
6306 # for (i = 0; i < nsections; i++)
6309 # unsigned long secptr1 = secptr + 40 * i;
6310 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6311 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6312 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6313 # lseek(dll, secptr1, SEEK_SET);
6314 # read(dll, sname, 8);
6315 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6317 # expptr = fptr + (export_rva - vaddr);
6318 # if (export_rva + export_size > vaddr + vsize)
6319 # export_size = vsize - (export_rva - vaddr);
6324 # expdata = (unsigned char*)malloc(export_size);
6325 # lseek (dll, expptr, SEEK_SET);
6326 # read (dll, expdata, export_size);
6327 # erva = expdata - export_rva;
6329 # nexp = pe_as32 (expdata+24);
6330 # name_rvas = pe_as32 (expdata+32);
6332 # printf ("EXPORTS\n");
6333 # for (i = 0; i<nexp; i++)
6335 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6336 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6341 # /* impgen.c ends here */
6347 # We use sed instead of cat because bash on DJGPP gets confused if
6348 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6349 # text mode, it properly converts lines to CR/LF. This bash problem
6350 # is reportedly fixed, but why not run on old versions too?
6351 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6353 mv -f "${ofile}T" "$ofile" || \
6354 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6358 # This can be used to rebuild libtool when needed
6359 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6361 # Always use our own libtool.
6362 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6364 # Prevent multiple expansion
6366 for ac_header in langinfo.h
6368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6369 echo "$as_me:6369: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6375 #line 6375 "configure"
6376 #include "confdefs.h"
6377 #include <$ac_header>
6379 if { (eval echo "$as_me:6379: \"$ac_cpp conftest.$ac_ext\"") >&5
6380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6382 egrep -v '^ *\+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:6385: \$? = $ac_status" >&5
6386 (exit $ac_status); } >/dev/null; then
6387 if test -s conftest.err; then
6388 ac_cpp_err=$ac_c_preproc_warn_flag
6395 if test -z "$ac_cpp_err"; then
6396 eval "$as_ac_Header=yes"
6398 echo "$as_me: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6400 eval "$as_ac_Header=no"
6402 rm -f conftest.err conftest.$ac_ext
6404 echo "$as_me:6404: result: `eval echo '${'$as_ac_Header'}'`" >&5
6405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6407 cat >>confdefs.h <<EOF
6408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6414 for ac_func in nl_langinfo
6416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6417 echo "$as_me:6417: checking for $ac_func" >&5
6418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_var+set}\" = set"; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 #line 6423 "configure"
6424 #include "confdefs.h"
6425 /* System header to define __stub macros and hopefully few prototypes,
6426 which can conflict with char $ac_func (); below. */
6428 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (eval echo "$as_me:6454: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>&5
6457 echo "$as_me:6457: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -s conftest$ac_exeext'
6460 { (eval echo "$as_me:6460: \"$ac_try\"") >&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 eval "$as_ac_var=yes"
6467 echo "$as_me: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 eval "$as_ac_var=no"
6471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6473 echo "$as_me:6473: result: `eval echo '${'$as_ac_var'}'`" >&5
6474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6475 if test `eval echo '${'$as_ac_var'}'` = yes; then
6476 cat >>confdefs.h <<EOF
6477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6483 echo "$as_me:6483: checking for nl_langinfo and CODESET" >&5
6484 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6485 if test "${jm_cv_langinfo_codeset+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 cat >conftest.$ac_ext <<_ACEOF
6489 #line 6489 "configure"
6490 #include "confdefs.h"
6491 #include <langinfo.h>
6495 char* cs = nl_langinfo(CODESET);
6500 rm -f conftest.$ac_objext conftest$ac_exeext
6501 if { (eval echo "$as_me:6501: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6504 echo "$as_me:6504: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -s conftest$ac_exeext'
6507 { (eval echo "$as_me:6507: \"$ac_try\"") >&5
6510 echo "$as_me:6510: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 jm_cv_langinfo_codeset=yes
6514 echo "$as_me: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6516 jm_cv_langinfo_codeset=no
6518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6521 echo "$as_me:6521: result: $jm_cv_langinfo_codeset" >&5
6522 echo "${ECHO_T}$jm_cv_langinfo_codeset" >&6
6523 if test $jm_cv_langinfo_codeset = yes; then
6525 cat >>confdefs.h <<\EOF
6526 #define HAVE_LANGINFO_CODESET 1
6531 echo "$as_me:6531: checking whether we are using the GNU C Library 2.1 or newer" >&5
6532 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6533 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 cat >conftest.$ac_ext <<_ACEOF
6537 #line 6537 "configure"
6538 #include "confdefs.h"
6540 #include <features.h>
6541 #ifdef __GNU_LIBRARY__
6542 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6549 egrep "Lucky GNU user" >/dev/null 2>&1; then
6550 ac_cv_gnu_library_2_1=yes
6552 ac_cv_gnu_library_2_1=no
6557 echo "$as_me:6557: result: $ac_cv_gnu_library_2_1" >&5
6558 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6560 GLIBC21="$ac_cv_gnu_library_2_1"
6562 for ac_header in stddef.h stdlib.h string.h
6564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6565 echo "$as_me:6565: checking for $ac_header" >&5
6566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6571 #line 6571 "configure"
6572 #include "confdefs.h"
6573 #include <$ac_header>
6575 if { (eval echo "$as_me:6575: \"$ac_cpp conftest.$ac_ext\"") >&5
6576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6578 egrep -v '^ *\+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 echo "$as_me:6581: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev/null; then
6583 if test -s conftest.err; then
6584 ac_cpp_err=$ac_c_preproc_warn_flag
6591 if test -z "$ac_cpp_err"; then
6592 eval "$as_ac_Header=yes"
6594 echo "$as_me: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 eval "$as_ac_Header=no"
6598 rm -f conftest.err conftest.$ac_ext
6600 echo "$as_me:6600: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603 cat >>confdefs.h <<EOF
6604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 for ac_func in setlocale
6612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6613 echo "$as_me:6613: checking for $ac_func" >&5
6614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6615 if eval "test \"\${$as_ac_var+set}\" = set"; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6619 #line 6619 "configure"
6620 #include "confdefs.h"
6621 /* System header to define __stub macros and hopefully few prototypes,
6622 which can conflict with char $ac_func (); below. */
6624 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6636 /* The GNU C library defines this for functions which it implements
6637 to always fail with ENOSYS. Some functions are actually named
6638 something starting with __ and the normal name is an alias. */
6639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (eval echo "$as_me:6650: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>&5
6653 echo "$as_me:6653: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -s conftest$ac_exeext'
6656 { (eval echo "$as_me:6656: \"$ac_try\"") >&5
6659 echo "$as_me:6659: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 eval "$as_ac_var=yes"
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 eval "$as_ac_var=no"
6667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6669 echo "$as_me:6669: result: `eval echo '${'$as_ac_var'}'`" >&5
6670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6671 if test `eval echo '${'$as_ac_var'}'` = yes; then
6672 cat >>confdefs.h <<EOF
6673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6679 ac_config_files="$ac_config_files Makefile lib/Makefile"
6680 cat >confcache <<\_ACEOF
6681 # This file is a shell script that caches the results of configure
6682 # tests run on this system so they can be shared between configure
6683 # scripts and configure runs, see configure's option --config-cache.
6684 # It is not useful on other systems. If it contains results you don't
6685 # want to keep, you may remove or edit it.
6687 # config.status only pays attention to the cache file if you give it
6688 # the --recheck option to rerun configure.
6690 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6696 # The following way of writing the cache mishandles newlines in values,
6697 # but we know of no workaround that is simple, portable, and efficient.
6698 # So, don't put newlines in cache variables' values.
6699 # Ultrix sh set writes to stderr and can't be redirected directly,
6700 # and sets the high bit in the cache file unless we assign to the vars.
6703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6705 # `set' does not quote correctly, so add quotes (double-quote
6706 # substitution turns \\\\ into \\, and sed turns \\ into \).
6709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6712 # `set' quotes correctly as required by POSIX, so do not add quotes.
6714 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6723 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6725 if cmp -s $cache_file confcache; then :; else
6726 if test -w $cache_file; then
6727 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6728 cat confcache >$cache_file
6730 echo "not updating unwritable cache $cache_file"
6735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6736 # Let make expand exec_prefix.
6737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6739 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6740 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6741 # trailing colons and then remove the whole line if VPATH becomes empty
6742 # (actually we leave an empty line to preserve line numbers).
6743 if test "x$srcdir" = x.; then
6744 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6745 s/:*\$(srcdir):*/:/;
6746 s/:*\${srcdir}:*/:/;
6748 s/^\([^=]*=[ ]*\):*/\1/;
6754 DEFS=-DHAVE_CONFIG_H
6756 : ${CONFIG_STATUS=./config.status}
6757 ac_clean_files_save=$ac_clean_files
6758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6759 { echo "$as_me:6759: creating $CONFIG_STATUS" >&5
6760 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6761 cat >$CONFIG_STATUS <<_ACEOF
6763 # Generated automatically by configure.
6764 # Run this file to recreate the current configuration.
6765 # Compiler output produced by configure, useful for debugging
6766 # configure, is in config.log if it exists.
6769 SHELL=\${CONFIG_SHELL-$SHELL}
6770 ac_cs_invocation="\$0 \$@"
6774 cat >>$CONFIG_STATUS <<\_ACEOF
6775 # Be Bourne compatible
6776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6779 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6783 # Name of the executable.
6784 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6786 if expr a : '\(a\)' >/dev/null 2>&1; then
6792 rm -f conf$$ conf$$.exe conf$$.file
6794 if ln -s conf$$.file conf$$ 2>/dev/null; then
6795 # We could just check for DJGPP; but this test a) works b) is more generic
6796 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6797 if test -f conf$$.exe; then
6798 # Don't use ln at all; we don't have any links
6803 elif ln conf$$.file conf$$ 2>/dev/null; then
6808 rm -f conf$$ conf$$.exe conf$$.file
6810 as_executable_p="test -f"
6812 # Support unset when possible.
6813 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6820 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6821 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6822 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6823 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6824 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6825 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6826 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6827 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6830 # We need space, tab and new line, in precisely that order.
6836 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6842 # Files that config.status was made for.
6843 if test -n "$ac_config_files"; then
6844 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6847 if test -n "$ac_config_headers"; then
6848 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6851 if test -n "$ac_config_links"; then
6852 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6855 if test -n "$ac_config_commands"; then
6856 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6859 cat >>$CONFIG_STATUS <<\EOF
6862 \`$as_me' instantiates files from templates according to the
6863 current configuration.
6865 Usage: $0 [OPTIONS] [FILE]...
6867 -h, --help print this help, then exit
6868 -V, --version print version number, then exit
6869 -d, --debug don't remove temporary files
6870 --recheck update $as_me by reconfiguring in the same conditions
6871 --file=FILE[:TEMPLATE]
6872 instantiate the configuration file FILE
6873 --header=FILE[:TEMPLATE]
6874 instantiate the configuration header FILE
6876 Configuration files:
6879 Configuration headers:
6882 Report bugs to <bug-autoconf@gnu.org>."
6885 cat >>$CONFIG_STATUS <<EOF
6888 configured by $0, generated by GNU Autoconf 2.52,
6889 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6891 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6892 Free Software Foundation, Inc.
6893 This config.status script is free software; the Free Software Foundation
6894 gives unlimited permission to copy, distribute and modify it."
6899 cat >>$CONFIG_STATUS <<\EOF
6900 # If no file are specified by the user, then we need to provide default
6901 # value. By we need to know if files were specified by the user.
6907 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6908 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6910 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6914 *) # This is not an option, so the user has probably given explicit
6916 ac_need_defaults=false;;
6920 # Handling of the options.
6922 cat >>$CONFIG_STATUS <<EOF
6923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6924 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6925 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6927 cat >>$CONFIG_STATUS <<\EOF
6928 --version | --vers* | -V )
6929 echo "$ac_cs_version"; exit 0 ;;
6931 # Conflict between --help and --header
6932 { { echo "$as_me:6932: error: ambiguous option: $1
6933 Try \`$0 --help' for more information." >&5
6934 echo "$as_me: error: ambiguous option: $1
6935 Try \`$0 --help' for more information." >&2;}
6936 { (exit 1); exit 1; }; };;
6937 --help | --hel | -h )
6938 echo "$ac_cs_usage"; exit 0 ;;
6939 --debug | --d* | -d )
6941 --file | --fil | --fi | --f )
6943 CONFIG_FILES="$CONFIG_FILES $1"
6944 ac_need_defaults=false;;
6945 --header | --heade | --head | --hea )
6947 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6948 ac_need_defaults=false;;
6951 -*) { { echo "$as_me:6951: error: unrecognized option: $1
6952 Try \`$0 --help' for more information." >&5
6953 echo "$as_me: error: unrecognized option: $1
6954 Try \`$0 --help' for more information." >&2;}
6955 { (exit 1); exit 1; }; } ;;
6957 *) ac_config_targets="$ac_config_targets $1" ;;
6966 ## ----------------------- ##
6967 ## Running config.status. ##
6968 ## ----------------------- ##
6970 This file was extended by $as_me 2.52, executed with
6971 CONFIG_FILES = $CONFIG_FILES
6972 CONFIG_HEADERS = $CONFIG_HEADERS
6973 CONFIG_LINKS = $CONFIG_LINKS
6974 CONFIG_COMMANDS = $CONFIG_COMMANDS
6976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6981 cat >>$CONFIG_STATUS <<\EOF
6982 for ac_config_target in $ac_config_targets
6984 case "$ac_config_target" in
6985 # Handling of arguments.
6986 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6987 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6988 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6989 *) { { echo "$as_me:6989: error: invalid argument: $ac_config_target" >&5
6990 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6991 { (exit 1); exit 1; }; };;
6995 # If the user did not use the arguments to specify the items to instantiate,
6996 # then the envvar interface is used. Set only those that are not.
6997 # We use the long form for the default assignment because of an extremely
6998 # bizarre bug on SunOS 4.1.3.
6999 if $ac_need_defaults; then
7000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7004 # Create a temporary directory, and hook for its removal unless debugging.
7007 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7008 trap '{ (exit 1); exit 1; }' 1 2 13 15
7011 # Create a (secure) tmp directory for tmp files.
7014 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7015 test -n "$tmp" && test -d "$tmp"
7018 tmp=$TMPDIR/cs$$-$RANDOM
7019 (umask 077 && mkdir $tmp)
7022 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7023 { (exit 1); exit 1; }
7028 cat >>$CONFIG_STATUS <<EOF
7031 # CONFIG_FILES section.
7034 # No need to generate the scripts if there are no CONFIG_FILES.
7035 # This happens for instance when ./config.status config.h
7036 if test -n "\$CONFIG_FILES"; then
7037 # Protect against being on the right side of a sed subst in config.status.
7038 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7039 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7040 s,@SHELL@,$SHELL,;t t
7041 s,@exec_prefix@,$exec_prefix,;t t
7042 s,@prefix@,$prefix,;t t
7043 s,@program_transform_name@,$program_transform_name,;t t
7044 s,@bindir@,$bindir,;t t
7045 s,@sbindir@,$sbindir,;t t
7046 s,@libexecdir@,$libexecdir,;t t
7047 s,@datadir@,$datadir,;t t
7048 s,@sysconfdir@,$sysconfdir,;t t
7049 s,@sharedstatedir@,$sharedstatedir,;t t
7050 s,@localstatedir@,$localstatedir,;t t
7051 s,@libdir@,$libdir,;t t
7052 s,@includedir@,$includedir,;t t
7053 s,@oldincludedir@,$oldincludedir,;t t
7054 s,@infodir@,$infodir,;t t
7055 s,@mandir@,$mandir,;t t
7056 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7057 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7058 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7059 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7060 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7061 s,@build_alias@,$build_alias,;t t
7062 s,@host_alias@,$host_alias,;t t
7063 s,@target_alias@,$target_alias,;t t
7064 s,@ECHO_C@,$ECHO_C,;t t
7065 s,@ECHO_N@,$ECHO_N,;t t
7066 s,@ECHO_T@,$ECHO_T,;t t
7067 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7070 s,@SET_MAKE@,$SET_MAKE,;t t
7071 s,@PACKAGE@,$PACKAGE,;t t
7072 s,@VERSION@,$VERSION,;t t
7074 s,@CFLAGS@,$CFLAGS,;t t
7075 s,@LDFLAGS@,$LDFLAGS,;t t
7076 s,@CPPFLAGS@,$CPPFLAGS,;t t
7077 s,@ac_ct_CC@,$ac_ct_CC,;t t
7078 s,@EXEEXT@,$EXEEXT,;t t
7079 s,@OBJEXT@,$OBJEXT,;t t
7081 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7082 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7083 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7084 s,@build@,$build,;t t
7085 s,@build_cpu@,$build_cpu,;t t
7086 s,@build_vendor@,$build_vendor,;t t
7087 s,@build_os@,$build_os,;t t
7089 s,@host_cpu@,$host_cpu,;t t
7090 s,@host_vendor@,$host_vendor,;t t
7091 s,@host_os@,$host_os,;t t
7094 s,@RANLIB@,$RANLIB,;t t
7095 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7096 s,@STRIP@,$STRIP,;t t
7097 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7098 s,@LIBTOOL@,$LIBTOOL,;t t
7099 s,@GLIBC21@,$GLIBC21,;t t
7104 cat >>$CONFIG_STATUS <<\EOF
7105 # Split the substitutions into bite-sized pieces for seds with
7106 # small command number limits, like on Digital OSF/1 and HP-UX.
7108 ac_sed_frag=1 # Number of current file.
7109 ac_beg=1 # First line for current file.
7110 ac_end=$ac_max_sed_lines # Line after last line for current file.
7113 while $ac_more_lines; do
7114 if test $ac_beg -gt 1; then
7115 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7117 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7119 if test ! -s $tmp/subs.frag; then
7122 # The purpose of the label and of the branching condition is to
7123 # speed up the sed processing (if there are no `@' at all, there
7124 # is no need to browse any of the substitutions).
7125 # These are the two extra sed commands mentioned above.
7127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7128 if test -z "$ac_sed_cmds"; then
7129 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7131 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7133 ac_sed_frag=`expr $ac_sed_frag + 1`
7135 ac_end=`expr $ac_end + $ac_max_sed_lines`
7138 if test -z "$ac_sed_cmds"; then
7141 fi # test -n "$CONFIG_FILES"
7144 cat >>$CONFIG_STATUS <<\EOF
7145 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7146 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7148 - | *:- | *:-:* ) # input from stdin
7150 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7151 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7152 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7153 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7154 * ) ac_file_in=$ac_file.in ;;
7157 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7158 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7159 X"$ac_file" : 'X\(//\)[^/]' \| \
7160 X"$ac_file" : 'X\(//\)$' \| \
7161 X"$ac_file" : 'X\(/\)' \| \
7162 . : '\(.\)' 2>/dev/null ||
7164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7166 /^X\(\/\/\)$/{ s//\1/; q; }
7167 /^X\(\/\).*/{ s//\1/; q; }
7169 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7171 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7175 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7176 case $as_mkdir_dir in
7177 # Skip DOS drivespec
7178 ?:) as_incr_dir=$as_mkdir_dir ;;
7180 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7181 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7186 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7187 # A "../" for each directory in $ac_dir_suffix.
7188 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7190 ac_dir_suffix= ac_dots=
7195 if test -z "$ac_dots"; then
7198 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7201 ac_srcdir=$srcdir$ac_dir_suffix;
7202 ac_top_srcdir=$srcdir ;;
7204 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7205 ac_top_srcdir=$ac_dots$srcdir ;;
7209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7210 *) ac_INSTALL=$ac_dots$INSTALL ;;
7213 if test x"$ac_file" != x-; then
7214 { echo "$as_me:7214: creating $ac_file" >&5
7215 echo "$as_me: creating $ac_file" >&6;}
7218 # Let's still pretend it is `configure' which instantiates (i.e., don't
7219 # use $as_me), people would be surprised to read:
7220 # /* config.h. Generated automatically by config.status. */
7221 configure_input="Generated automatically from `echo $ac_file_in |
7222 sed 's,.*/,,'` by configure."
7224 # First look for the input files in the build tree, otherwise in the
7226 ac_file_inputs=`IFS=:
7227 for f in $ac_file_in; do
7229 -) echo $tmp/stdin ;;
7231 # Absolute (can't be DOS-style, as IFS=:)
7232 test -f "$f" || { { echo "$as_me:7232: error: cannot find input file: $f" >&5
7233 echo "$as_me: error: cannot find input file: $f" >&2;}
7234 { (exit 1); exit 1; }; }
7237 if test -f "$f"; then
7240 elif test -f "$srcdir/$f"; then
7245 { { echo "$as_me:7245: error: cannot find input file: $f" >&5
7246 echo "$as_me: error: cannot find input file: $f" >&2;}
7247 { (exit 1); exit 1; }; }
7250 done` || { (exit 1); exit 1; }
7252 cat >>$CONFIG_STATUS <<EOF
7256 cat >>$CONFIG_STATUS <<\EOF
7258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7259 s,@configure_input@,$configure_input,;t t
7260 s,@srcdir@,$ac_srcdir,;t t
7261 s,@top_srcdir@,$ac_top_srcdir,;t t
7262 s,@INSTALL@,$ac_INSTALL,;t t
7263 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7265 if test x"$ac_file" != x-; then
7266 mv $tmp/out $ac_file
7274 cat >>$CONFIG_STATUS <<\EOF
7277 # CONFIG_HEADER section.
7280 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7281 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7283 # ac_d sets the value in "#define NAME VALUE" lines.
7284 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7285 ac_dB='[ ].*$,\1#\2'
7288 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7289 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7290 ac_uB='$,\1#\2define\3'
7294 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7297 - | *:- | *:-:* ) # input from stdin
7299 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7301 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7303 * ) ac_file_in=$ac_file.in ;;
7306 test x"$ac_file" != x- && { echo "$as_me:7306: creating $ac_file" >&5
7307 echo "$as_me: creating $ac_file" >&6;}
7309 # First look for the input files in the build tree, otherwise in the
7311 ac_file_inputs=`IFS=:
7312 for f in $ac_file_in; do
7314 -) echo $tmp/stdin ;;
7316 # Absolute (can't be DOS-style, as IFS=:)
7317 test -f "$f" || { { echo "$as_me:7317: error: cannot find input file: $f" >&5
7318 echo "$as_me: error: cannot find input file: $f" >&2;}
7319 { (exit 1); exit 1; }; }
7322 if test -f "$f"; then
7325 elif test -f "$srcdir/$f"; then
7330 { { echo "$as_me:7330: error: cannot find input file: $f" >&5
7331 echo "$as_me: error: cannot find input file: $f" >&2;}
7332 { (exit 1); exit 1; }; }
7335 done` || { (exit 1); exit 1; }
7336 # Remove the trailing spaces.
7337 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7341 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7342 # `conftest.undefs', that substitutes the proper values into
7343 # config.h.in to produce config.h. The first handles `#define'
7344 # templates, and the second `#undef' templates.
7345 # And first: Protect against being on the right side of a sed subst in
7346 # config.status. Protect against being in an unquoted here document
7348 rm -f conftest.defines conftest.undefs
7349 # Using a here document instead of a string reduces the quoting nightmare.
7350 # Putting comments in sed scripts is not portable.
7352 # `end' is used to avoid that the second main sed command (meant for
7353 # 0-ary CPP macros) applies to n-ary macro definitions.
7354 # See the Autoconf documentation for `clear'.
7355 cat >confdef2sed.sed <<\EOF
7360 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7362 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7365 # If some macros were called several times there might be several times
7366 # the same #defines, which is useless. Nevertheless, we may not want to
7367 # sort them, since we want the *last* AC-DEFINE to be honored.
7368 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7369 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7370 rm -f confdef2sed.sed
7372 # This sed command replaces #undef with comments. This is necessary, for
7373 # example, in the case of _POSIX_SOURCE, which is predefined and required
7374 # on some systems where configure will not decide to define it.
7375 cat >>conftest.undefs <<\EOF
7376 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7379 # Break up conftest.defines because some shells have a limit on the size
7380 # of here documents, and old seds have small limits too (100 cmds).
7381 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7382 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7383 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7384 echo ' :' >>$CONFIG_STATUS
7386 while grep . conftest.defines >/dev/null
7388 # Write a limited-size here document to $tmp/defines.sed.
7389 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7390 # Speed up: don't consider the non `#define' lines.
7391 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7392 # Work around the forget-to-reset-the-flag bug.
7393 echo 't clr' >>$CONFIG_STATUS
7394 echo ': clr' >>$CONFIG_STATUS
7395 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7397 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7401 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7402 rm -f conftest.defines
7403 mv conftest.tail conftest.defines
7405 rm -f conftest.defines
7406 echo ' fi # egrep' >>$CONFIG_STATUS
7407 echo >>$CONFIG_STATUS
7409 # Break up conftest.undefs because some shells have a limit on the size
7410 # of here documents, and old seds have small limits too (100 cmds).
7411 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7413 while grep . conftest.undefs >/dev/null
7415 # Write a limited-size here document to $tmp/undefs.sed.
7416 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7417 # Speed up: don't consider the non `#undef'
7418 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7419 # Work around the forget-to-reset-the-flag bug.
7420 echo 't clr' >>$CONFIG_STATUS
7421 echo ': clr' >>$CONFIG_STATUS
7422 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7424 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7428 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7429 rm -f conftest.undefs
7430 mv conftest.tail conftest.undefs
7432 rm -f conftest.undefs
7434 cat >>$CONFIG_STATUS <<\EOF
7435 # Let's still pretend it is `configure' which instantiates (i.e., don't
7436 # use $as_me), people would be surprised to read:
7437 # /* config.h. Generated automatically by config.status. */
7438 if test x"$ac_file" = x-; then
7439 echo "/* Generated automatically by configure. */" >$tmp/config.h
7441 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7443 cat $tmp/in >>$tmp/config.h
7445 if test x"$ac_file" != x-; then
7446 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7447 { echo "$as_me:7447: $ac_file is unchanged" >&5
7448 echo "$as_me: $ac_file is unchanged" >&6;}
7450 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7451 X"$ac_file" : 'X\(//\)[^/]' \| \
7452 X"$ac_file" : 'X\(//\)$' \| \
7453 X"$ac_file" : 'X\(/\)' \| \
7454 . : '\(.\)' 2>/dev/null ||
7456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7458 /^X\(\/\/\)$/{ s//\1/; q; }
7459 /^X\(\/\).*/{ s//\1/; q; }
7461 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7463 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7467 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7468 case $as_mkdir_dir in
7469 # Skip DOS drivespec
7470 ?:) as_incr_dir=$as_mkdir_dir ;;
7472 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7473 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7480 mv $tmp/config.h $ac_file
7489 cat >>$CONFIG_STATUS <<\EOF
7491 { (exit 0); exit 0; }
7493 chmod +x $CONFIG_STATUS
7494 ac_clean_files=$ac_clean_files_save
7496 # configure is writing to config.log, and then calls config.status.
7497 # config.status does its own redirection, appending to config.log.
7498 # Unfortunately, on DOS this fails, as config.log is still kept open
7499 # by configure, so config.status won't be able to write to it; its
7500 # output is simply discarded. So we exec the FD to /dev/null,
7501 # effectively closing config.log, so it can be properly (re)opened and
7502 # appended to by config.status. When coming back to configure, we
7503 # need to make the FD available again.
7504 if test "$no_create" != yes; then
7507 $SHELL $CONFIG_STATUS || ac_cs_success=false
7509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7510 # would make configure fail if this is the last instruction.
7511 $ac_cs_success || { (exit 1); exit 1; }