3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-auxdir=DIR path to autoconf auxiliary files"
17 --disable-dependency-tracking Speeds up one-time builds
18 --enable-dependency-tracking Do not reject slow dependency extractors"
20 --enable-maintainer-mode enable make rules and dependencies not useful
21 (and sometimes confusing) to the casual installer"
23 --enable-shared[=PKGS] build shared libraries [default=yes]"
25 --enable-static[=PKGS] build static libraries [default=yes]"
27 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31 # Find the correct PATH separator. Usually this is `:', but
32 # DJGPP uses `;' like DOS.
33 if test "X${PATH_SEPARATOR+set}" != Xset; then
34 UNAME=${UNAME-`uname 2>/dev/null`}
36 *-DOS) lt_cv_sys_path_separator=';' ;;
37 *) lt_cv_sys_path_separator=':' ;;
39 PATH_SEPARATOR=$lt_cv_sys_path_separator
43 # Check that we are running under the correct shell.
44 SHELL=${CONFIG_SHELL-/bin/sh}
48 # Remove one level of quotation (which was required for Make).
49 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
54 if test "X$1" = X--no-reexec; then
55 # Discard the --no-reexec flag, and continue.
57 elif test "X$1" = X--fallback-echo; then
58 # Avoid inline document here, it may be left over
60 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
61 # Yippee, $echo works!
64 # Restart under the correct shell.
65 exec $SHELL "$0" --no-reexec ${1+"$@"}
68 if test "X$1" = X--fallback-echo; then
69 # used as fallback echo
77 # The HP-UX ksh and POSIX shell print the target directory to stdout
79 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
81 if test -z "$ECHO"; then
82 if test "X${echo_test_string+set}" != Xset; then
83 # find a string as large as possible, as long as the shell can cope with it
84 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
85 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
86 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
87 echo_test_string="`eval $cmd`" &&
88 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
95 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
96 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
97 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # The Solaris, AIX, and Digital Unix default echo programs unquote
101 # backslashes. This makes it impossible to quote backslashes using
102 # echo "$something" | sed 's/\\/\\\\/g'
104 # So, first we look for a working echo in the user's PATH.
106 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
107 for dir in $PATH /usr/ucb; do
108 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
109 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
110 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
111 test "X$echo_testing_string" = "X$echo_test_string"; then
118 if test "X$echo" = Xecho; then
119 # We didn't find a better echo, so look for alternatives.
120 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
121 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 # This shell has a builtin print -r that does the trick.
125 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
126 test "X$CONFIG_SHELL" != X/bin/ksh; then
127 # If we have ksh, try running configure again with it.
128 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
129 export ORIGINAL_CONFIG_SHELL
130 CONFIG_SHELL=/bin/ksh
132 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
136 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
137 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
138 test "X$echo_testing_string" = "X$echo_test_string"; then
141 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142 test "X$echo_testing_string" = 'X\t' &&
143 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144 test "X$echo_testing_string" = "X$echo_test_string"; then
145 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
147 SHELL="$CONFIG_SHELL"
149 echo="$CONFIG_SHELL $0 --fallback-echo"
150 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
151 test "X$echo_testing_string" = 'X\t' &&
152 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
153 test "X$echo_testing_string" = "X$echo_test_string"; then
154 echo="$CONFIG_SHELL $0 --fallback-echo"
156 # maybe with a smaller string...
159 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
160 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
167 if test "$prev" != 'sed 50q "$0"'; then
168 echo_test_string=`eval $prev`
169 export echo_test_string
170 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
172 # Oops. We lost completely, so just stick with echo.
181 # Copy echo and quote the copy suitably for passing to libtool from
182 # the Makefile, instead of quoting the original, which is used later.
184 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
185 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
190 --disable-libtool-lock avoid locking (might break parallel builds)"
192 --with-pic try to use only PIC/non-PIC objects [default=use both]"
194 --enable-ltdl-install install libltdl"
196 # Initialize some variables set by options.
197 # The variables have the same names as the options, with
198 # dashes changed to underlines.
200 cache_file=./config.cache
209 program_transform_name=s,x,x,
217 bindir='${exec_prefix}/bin'
218 sbindir='${exec_prefix}/sbin'
219 libexecdir='${exec_prefix}/libexec'
220 datadir='${prefix}/share'
221 sysconfdir='${prefix}/etc'
222 sharedstatedir='${prefix}/com'
223 localstatedir='${prefix}/var'
224 libdir='${exec_prefix}/lib'
225 includedir='${prefix}/include'
226 oldincludedir='/usr/include'
227 infodir='${prefix}/info'
228 mandir='${prefix}/man'
230 # Initialize some other variables.
233 SHELL=${CONFIG_SHELL-/bin/sh}
234 # Maximum number of lines to put in a shell here document.
241 # If the previous option needs an argument, assign it.
242 if test -n "$ac_prev"; then
243 eval "$ac_prev=\$ac_option"
249 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
253 # Accept the important Cygnus configure options, so we can diagnose typos.
257 -bindir | --bindir | --bindi | --bind | --bin | --bi)
259 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
260 bindir="$ac_optarg" ;;
262 -build | --build | --buil | --bui | --bu)
264 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
265 build="$ac_optarg" ;;
267 -cache-file | --cache-file | --cache-fil | --cache-fi \
268 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
269 ac_prev=cache_file ;;
270 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
271 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
272 cache_file="$ac_optarg" ;;
274 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
276 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
278 datadir="$ac_optarg" ;;
280 -disable-* | --disable-*)
281 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
282 # Reject names that are not valid shell variable names.
283 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
284 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
286 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
287 eval "enable_${ac_feature}=no" ;;
289 -enable-* | --enable-*)
290 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
291 # Reject names that are not valid shell variable names.
292 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
293 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
295 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
300 eval "enable_${ac_feature}='$ac_optarg'" ;;
302 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
303 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
304 | --exec | --exe | --ex)
305 ac_prev=exec_prefix ;;
306 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
307 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
308 | --exec=* | --exe=* | --ex=*)
309 exec_prefix="$ac_optarg" ;;
311 -gas | --gas | --ga | --g)
312 # Obsolete; use --with-gas.
315 -help | --help | --hel | --he)
316 # Omit some internal or obsolete options to make the list less imposing.
317 # This message is too long to be a string in the A/UX 3.1 sh.
319 Usage: configure [options] [host]
320 Options: [defaults in brackets after descriptions]
322 --cache-file=FILE cache test results in FILE
323 --help print this message
324 --no-create do not create output files
325 --quiet, --silent do not print \`checking...' messages
326 --version print the version of autoconf that created configure
327 Directory and file names:
328 --prefix=PREFIX install architecture-independent files in PREFIX
330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
332 --bindir=DIR user executables in DIR [EPREFIX/bin]
333 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
334 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
335 --datadir=DIR read-only architecture-independent data in DIR
337 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
338 --sharedstatedir=DIR modifiable architecture-independent data in DIR
340 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
341 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
342 --includedir=DIR C header files in DIR [PREFIX/include]
343 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
344 --infodir=DIR info documentation in DIR [PREFIX/info]
345 --mandir=DIR man documentation in DIR [PREFIX/man]
346 --srcdir=DIR find the sources in DIR [configure dir or ..]
347 --program-prefix=PREFIX prepend PREFIX to installed program names
348 --program-suffix=SUFFIX append SUFFIX to installed program names
349 --program-transform-name=PROGRAM
350 run sed PROGRAM on installed program names
354 --build=BUILD configure for building on BUILD [BUILD=HOST]
355 --host=HOST configure for HOST [guessed]
356 --target=TARGET configure for TARGET [TARGET=HOST]
357 Features and packages:
358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
362 --x-includes=DIR X include files are in DIR
363 --x-libraries=DIR X library files are in DIR
365 if test -n "$ac_help"; then
366 echo "--enable and --with options recognized:$ac_help"
370 -host | --host | --hos | --ho)
372 -host=* | --host=* | --hos=* | --ho=*)
375 -includedir | --includedir | --includedi | --included | --include \
376 | --includ | --inclu | --incl | --inc)
377 ac_prev=includedir ;;
378 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
379 | --includ=* | --inclu=* | --incl=* | --inc=*)
380 includedir="$ac_optarg" ;;
382 -infodir | --infodir | --infodi | --infod | --info | --inf)
384 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
385 infodir="$ac_optarg" ;;
387 -libdir | --libdir | --libdi | --libd)
389 -libdir=* | --libdir=* | --libdi=* | --libd=*)
390 libdir="$ac_optarg" ;;
392 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
393 | --libexe | --libex | --libe)
394 ac_prev=libexecdir ;;
395 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
396 | --libexe=* | --libex=* | --libe=*)
397 libexecdir="$ac_optarg" ;;
399 -localstatedir | --localstatedir | --localstatedi | --localstated \
400 | --localstate | --localstat | --localsta | --localst \
401 | --locals | --local | --loca | --loc | --lo)
402 ac_prev=localstatedir ;;
403 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
404 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
405 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
406 localstatedir="$ac_optarg" ;;
408 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
410 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
411 mandir="$ac_optarg" ;;
414 # Obsolete; use --without-fp.
417 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
421 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
422 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
425 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
426 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
427 | --oldin | --oldi | --old | --ol | --o)
428 ac_prev=oldincludedir ;;
429 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
430 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
431 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
432 oldincludedir="$ac_optarg" ;;
434 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
436 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
437 prefix="$ac_optarg" ;;
439 -program-prefix | --program-prefix | --program-prefi | --program-pref \
440 | --program-pre | --program-pr | --program-p)
441 ac_prev=program_prefix ;;
442 -program-prefix=* | --program-prefix=* | --program-prefi=* \
443 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
444 program_prefix="$ac_optarg" ;;
446 -program-suffix | --program-suffix | --program-suffi | --program-suff \
447 | --program-suf | --program-su | --program-s)
448 ac_prev=program_suffix ;;
449 -program-suffix=* | --program-suffix=* | --program-suffi=* \
450 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
451 program_suffix="$ac_optarg" ;;
453 -program-transform-name | --program-transform-name \
454 | --program-transform-nam | --program-transform-na \
455 | --program-transform-n | --program-transform- \
456 | --program-transform | --program-transfor \
457 | --program-transfo | --program-transf \
458 | --program-trans | --program-tran \
459 | --progr-tra | --program-tr | --program-t)
460 ac_prev=program_transform_name ;;
461 -program-transform-name=* | --program-transform-name=* \
462 | --program-transform-nam=* | --program-transform-na=* \
463 | --program-transform-n=* | --program-transform-=* \
464 | --program-transform=* | --program-transfor=* \
465 | --program-transfo=* | --program-transf=* \
466 | --program-trans=* | --program-tran=* \
467 | --progr-tra=* | --program-tr=* | --program-t=*)
468 program_transform_name="$ac_optarg" ;;
470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
471 | -silent | --silent | --silen | --sile | --sil)
474 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
476 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
478 sbindir="$ac_optarg" ;;
480 -sharedstatedir | --sharedstatedir | --sharedstatedi \
481 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
482 | --sharedst | --shareds | --shared | --share | --shar \
484 ac_prev=sharedstatedir ;;
485 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
486 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
487 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
489 sharedstatedir="$ac_optarg" ;;
491 -site | --site | --sit)
493 -site=* | --site=* | --sit=*)
496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
499 srcdir="$ac_optarg" ;;
501 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
502 | --syscon | --sysco | --sysc | --sys | --sy)
503 ac_prev=sysconfdir ;;
504 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
505 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
506 sysconfdir="$ac_optarg" ;;
508 -target | --target | --targe | --targ | --tar | --ta | --t)
510 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
511 target="$ac_optarg" ;;
513 -v | -verbose | --verbose | --verbos | --verbo | --verb)
516 -version | --version | --versio | --versi | --vers)
517 echo "configure generated by autoconf version 2.13"
521 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
522 # Reject names that are not valid shell variable names.
523 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
524 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
526 ac_package=`echo $ac_package| sed 's/-/_/g'`
531 eval "with_${ac_package}='$ac_optarg'" ;;
533 -without-* | --without-*)
534 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
535 # Reject names that are not valid shell variable names.
536 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
537 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
539 ac_package=`echo $ac_package| sed 's/-/_/g'`
540 eval "with_${ac_package}=no" ;;
543 # Obsolete; use --with-x.
546 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
547 | --x-incl | --x-inc | --x-in | --x-i)
548 ac_prev=x_includes ;;
549 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
550 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
551 x_includes="$ac_optarg" ;;
553 -x-libraries | --x-libraries | --x-librarie | --x-librari \
554 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
555 ac_prev=x_libraries ;;
556 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
557 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
558 x_libraries="$ac_optarg" ;;
560 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
564 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
565 echo "configure: warning: $ac_option: invalid host type" 1>&2
567 if test "x$nonopt" != xNONE; then
568 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
576 if test -n "$ac_prev"; then
577 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
580 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
582 # File descriptor usage:
585 # 2 errors and warnings
586 # 3 some systems may open it to /dev/tty
587 # 4 used on the Kubota Titan
588 # 6 checking for... messages and results
589 # 5 compiler messages saved in config.log
590 if test "$silent" = yes; then
598 This file contains any messages produced by compilers while
599 running configure, to aid debugging if configure makes a mistake.
602 # Strip out --no-create and --no-recursion so they do not pile up.
603 # Also quote any args containing shell metacharacters.
608 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
609 | --no-cr | --no-c) ;;
610 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
611 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
612 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
613 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
614 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
619 # Only set these to C if already set. These must not be set unconditionally
620 # because not all systems understand e.g. LANG=C (notably SCO).
621 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
622 # Non-C LC_CTYPE values break the ctype check.
623 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
624 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
625 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
626 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
629 rm -rf conftest* confdefs.h
630 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
633 # A filename unique to this package, relative to the directory that
634 # configure is in, which we can look for to find out if srcdir is correct.
635 ac_unique_file=ltdl.c
637 # Find the source files, if location was not specified.
638 if test -z "$srcdir"; then
639 ac_srcdir_defaulted=yes
640 # Try the directory containing this script, then its parent.
642 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
643 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
645 if test ! -r $srcdir/$ac_unique_file; then
649 ac_srcdir_defaulted=no
651 if test ! -r $srcdir/$ac_unique_file; then
652 if test "$ac_srcdir_defaulted" = yes; then
653 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
655 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
658 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
660 # Prefer explicitly selected file to automatically selected ones.
661 if test -z "$CONFIG_SITE"; then
662 if test "x$prefix" != xNONE; then
663 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
665 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
668 for ac_site_file in $CONFIG_SITE; do
669 if test -r "$ac_site_file"; then
670 echo "loading site script $ac_site_file"
675 if test -r "$cache_file"; then
676 echo "loading cache $cache_file"
679 echo "creating cache $cache_file"
684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685 ac_cpp='$CPP $CPPFLAGS'
686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688 cross_compiling=$ac_cv_prog_cc_cross
692 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
693 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
694 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
701 ac_n= ac_c='\c' ac_t=
706 # Check whether --with-auxdir or --without-auxdir was given.
707 if test "${with_auxdir+set}" = set; then
708 withval="$with_auxdir"
710 for ac_dir in $with_auxdir; do
711 if test -f $ac_dir/install-sh; then
713 ac_install_sh="$ac_aux_dir/install-sh -c"
715 elif test -f $ac_dir/install.sh; then
717 ac_install_sh="$ac_aux_dir/install.sh -c"
721 if test -z "$ac_aux_dir"; then
722 { echo "configure: error: can not find install-sh or install.sh in $with_auxdir" 1>&2; exit 1; }
724 ac_config_guess=$ac_aux_dir/config.guess
725 ac_config_sub=$ac_aux_dir/config.sub
726 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
730 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
731 if test -f $ac_dir/install-sh; then
733 ac_install_sh="$ac_aux_dir/install-sh -c"
735 elif test -f $ac_dir/install.sh; then
737 ac_install_sh="$ac_aux_dir/install.sh -c"
741 if test -z "$ac_aux_dir"; then
742 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
744 ac_config_guess=$ac_aux_dir/config.guess
745 ac_config_sub=$ac_aux_dir/config.sub
746 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
751 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
752 if test -f ${srcdir}/ltmain.sh; then
753 # if libltdl is libtoolized, it is assumed to be stand-alone and
754 # installed unless the command line overrides it (tested above)
755 enable_ltdl_install=yes
757 echo "configure: warning: *** The top-level configure must select either" 1>&2
758 echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
759 { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
764 # expand $ac_aux_dir to an absolute path
765 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
767 # Find a good install program. We prefer a C program (faster),
768 # so one script is as good as another. But avoid the broken or
769 # incompatible versions:
770 # SysV /etc/install, /usr/sbin/install
771 # SunOS /usr/etc/install
774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
777 # ./install, which can be erroneously created by make from ./install.sh.
778 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
779 echo "configure:780: checking for a BSD compatible install" >&5
780 if test -z "$INSTALL"; then
781 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
785 for ac_dir in $PATH; do
786 # Account for people who put trailing slashes in PATH elements.
788 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
790 # OSF1 and SCO ODT 3.0 have their own names for install.
791 # Don't use installbsd from OSF since it installs stuff as root
793 for ac_prog in ginstall scoinst install; do
794 if test -f $ac_dir/$ac_prog; then
795 if test $ac_prog = install &&
796 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
797 # AIX install. It has an incompatible calling convention.
800 ac_cv_path_install="$ac_dir/$ac_prog -c"
811 if test "${ac_cv_path_install+set}" = set; then
812 INSTALL="$ac_cv_path_install"
814 # As a last resort, use the slow shell script. We don't cache a
815 # path for INSTALL within a source directory, because that will
816 # break other packages using the cache if that directory is
817 # removed, or if the path is relative.
818 INSTALL="$ac_install_sh"
821 echo "$ac_t""$INSTALL" 1>&6
823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
824 # It thinks the first close brace ends the variable substitution.
825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
831 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
832 echo "configure:833: checking whether build environment is sane" >&5
835 echo timestamp > conftest.file
836 # Do `set' in a subshell so we don't clobber the current shell's
837 # arguments. Must try -L first in case configure is actually a
838 # symlink; some systems play weird games with the mod time of symlinks
839 # (eg FreeBSD returns the mod time of the symlink's containing
842 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
843 if test "$*" = "X"; then
845 set X `ls -t $srcdir/configure conftest.file`
848 if test "$*" != "X $srcdir/configure conftest.file" \
849 && test "$*" != "X conftest.file $srcdir/configure"; then
851 # If neither matched, then we have a broken ls. This can happen
852 # if, for instance, CONFIG_SHELL is bash and it inherits a
853 # broken ls alias from the environment. This has actually
854 # happened. Such a system could not be considered "sane".
855 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
856 alias in your environment" 1>&2; exit 1; }
859 test "$2" = conftest.file
865 { echo "configure: error: newly created file is older than distributed files!
866 Check your system clock" 1>&2; exit 1; }
868 echo "$ac_t""yes" 1>&6
869 if test "$program_transform_name" = s,x,x,; then
870 program_transform_name=
872 # Double any \ or $. echo might interpret backslashes.
873 cat <<\EOF_SED > conftestsed
874 s,\\,\\\\,g; s,\$,$$,g
876 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
879 test "$program_prefix" != NONE &&
880 program_transform_name="s,^,${program_prefix},; $program_transform_name"
881 # Use a double $ so make ignores it.
882 test "$program_suffix" != NONE &&
883 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
885 # sed with no file args requires a program.
886 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
888 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
889 # Use eval to expand $SHELL
890 if eval "$MISSING --run true"; then
891 am_missing_run="$MISSING --run "
895 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
898 for ac_prog in mawk gawk nawk awk
900 # Extract the first word of "$ac_prog", so it can be a program name with args.
901 set dummy $ac_prog; ac_word=$2
902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
903 echo "configure:904: checking for $ac_word" >&5
904 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
907 if test -n "$AWK"; then
908 ac_cv_prog_AWK="$AWK" # Let the user override the test.
910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
912 for ac_dir in $ac_dummy; do
913 test -z "$ac_dir" && ac_dir=.
914 if test -f $ac_dir/$ac_word; then
915 ac_cv_prog_AWK="$ac_prog"
922 AWK="$ac_cv_prog_AWK"
923 if test -n "$AWK"; then
924 echo "$ac_t""$AWK" 1>&6
926 echo "$ac_t""no" 1>&6
929 test -n "$AWK" && break
932 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
933 echo "configure:934: checking whether ${MAKE-make} sets \${MAKE}" >&5
934 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
935 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 cat > conftestmake <<\EOF
940 @echo 'ac_maketemp="${MAKE}"'
942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
943 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
944 if test -n "$ac_maketemp"; then
945 eval ac_cv_prog_make_${ac_make}_set=yes
947 eval ac_cv_prog_make_${ac_make}_set=no
951 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
952 echo "$ac_t""yes" 1>&6
955 echo "$ac_t""no" 1>&6
956 SET_MAKE="MAKE=${MAKE-make}"
959 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
960 if test "${enable_dependency_tracking+set}" = set; then
961 enableval="$enable_dependency_tracking"
965 if test "x$enable_dependency_tracking" != xno; then
966 am_depcomp="$ac_aux_dir/depcomp"
971 if test "x$enable_dependency_tracking" != xno; then
982 rm -f .deps 2>/dev/null
983 mkdir .deps 2>/dev/null
984 if test -d .deps; then
987 # MS-DOS does not allow filenames that begin with a dot.
990 rmdir .deps 2>/dev/null
993 # test to see if srcdir already configured
994 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
995 test -f $srcdir/config.status; then
996 { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
999 # Define the identity of the package.
1004 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1005 # the ones we care about.
1007 # Autoconf 2.50 always computes EXEEXT. However we need to be
1008 # compatible with 2.13, for now. So we always define EXEEXT, but we
1011 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1012 # requests that it be used. This is a bit dumb.
1016 # Some tools Automake needs.
1018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1033 AMTAR=${AMTAR-"${am_missing_run}tar"}
1035 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1037 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1039 # We need awk for the "check" target. The system "awk" is bad on
1045 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether to enable maintainer-specific portions of Makefiles" >&5
1047 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1048 if test "${enable_maintainer_mode+set}" = set; then
1049 enableval="$enable_maintainer_mode"
1050 USE_MAINTAINER_MODE=$enableval
1052 USE_MAINTAINER_MODE=no
1055 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1058 if test $USE_MAINTAINER_MODE = yes; then
1059 MAINTAINER_MODE_TRUE=
1060 MAINTAINER_MODE_FALSE='#'
1062 MAINTAINER_MODE_TRUE='#'
1063 MAINTAINER_MODE_FALSE=
1065 MAINT=$MAINTAINER_MODE_TRUE
1069 # Extract the first word of "gcc", so it can be a program name with args.
1070 set dummy gcc; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC="$CC" # Let the user override the test.
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1092 if test -n "$CC"; then
1093 echo "$ac_t""$CC" 1>&6
1095 echo "$ac_t""no" 1>&6
1098 if test -z "$CC"; then
1099 # Extract the first word of "cc", so it can be a program name with args.
1100 set dummy cc; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 if test -n "$CC"; then
1107 ac_cv_prog_CC="$CC" # Let the user override the test.
1109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1116 ac_prog_rejected=yes
1124 if test $ac_prog_rejected = yes; then
1125 # We found a bogon in the path, so make sure we never use it.
1126 set dummy $ac_cv_prog_CC
1128 if test $# -gt 0; then
1129 # We chose a different compiler from the bogus one.
1130 # However, it has the same basename, so the bogon will be chosen
1131 # first if we set CC to just the basename; use the full file name.
1133 set dummy "$ac_dir/$ac_word" "$@"
1141 if test -n "$CC"; then
1142 echo "$ac_t""$CC" 1>&6
1144 echo "$ac_t""no" 1>&6
1147 if test -z "$CC"; then
1148 case "`uname -s`" in
1150 # Extract the first word of "cl", so it can be a program name with args.
1151 set dummy cl; ac_word=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$CC"; then
1158 ac_cv_prog_CC="$CC" # Let the user override the test.
1160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1162 for ac_dir in $ac_dummy; do
1163 test -z "$ac_dir" && ac_dir=.
1164 if test -f $ac_dir/$ac_word; then
1173 if test -n "$CC"; then
1174 echo "$ac_t""$CC" 1>&6
1176 echo "$ac_t""no" 1>&6
1181 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1184 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1189 ac_cpp='$CPP $CPPFLAGS'
1190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1192 cross_compiling=$ac_cv_prog_cc_cross
1194 cat > conftest.$ac_ext << EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1201 if { (eval echo configure:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1202 ac_cv_prog_cc_works=yes
1203 # If we can't run a trivial program, we are probably using a cross compiler.
1204 if (./conftest; exit) 2>/dev/null; then
1205 ac_cv_prog_cc_cross=no
1207 ac_cv_prog_cc_cross=yes
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1212 ac_cv_prog_cc_works=no
1216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1220 cross_compiling=$ac_cv_prog_cc_cross
1222 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1223 if test $ac_cv_prog_cc_works = no; then
1224 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1226 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1228 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1229 cross_compiling=$ac_cv_prog_cc_cross
1231 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether we are using GNU C" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 cat > conftest.c <<EOF
1241 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1248 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1250 if test $ac_cv_prog_gcc = yes; then
1256 ac_test_CFLAGS="${CFLAGS+set}"
1257 ac_save_CFLAGS="$CFLAGS"
1259 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether ${CC-cc} accepts -g" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 echo 'void f(){}' > conftest.c
1265 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1274 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1275 if test "$ac_test_CFLAGS" = set; then
1276 CFLAGS="$ac_save_CFLAGS"
1277 elif test $ac_cv_prog_cc_g = yes; then
1278 if test "$GCC" = yes; then
1284 if test "$GCC" = yes; then
1292 am_make=${MAKE-make}
1293 cat > confinc << 'END'
1297 # If we don't find an include directive, just comment out the code.
1298 echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
1299 echo "configure:1300: checking for style of include used by $am_make" >&5
1303 # First try GNU make style include.
1304 echo "include confinc" > confmf
1305 # We grep out `Entering directory' and `Leaving directory'
1306 # messages which can occur if `w' ends up in MAKEFLAGS.
1307 # In particular we don't look at `^make:' because GNU make might
1308 # be invoked under some other name (usually "gmake"), in which
1309 # case it prints its new name instead of `make'.
1310 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1315 # Now try BSD make style include.
1316 if test "$am__include" = "#"; then
1317 echo '.include "confinc"' > confmf
1318 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1319 am__include=.include
1326 echo "$ac_t""$_am_result" 1>&6
1327 rm -f confinc confmf
1330 depcc="$CC" am_compiler_list=
1332 echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
1333 echo "configure:1334: checking dependency style of $depcc" >&5
1334 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1338 # We make a subdir and do the tests there. Otherwise we can end up
1339 # making bogus files that we don't know about and never remove. For
1340 # instance it was reported that on HP-UX the gcc test will end up
1341 # making a dummy file named `D' -- because `-MD' means `put the output
1344 # Copy depcomp to subdir because otherwise we won't find it if we're
1345 # using a relative directory.
1346 cp "$am_depcomp" conftest.dir
1349 am_cv_CC_dependencies_compiler_type=none
1350 if test "$am_compiler_list" = ""; then
1351 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1353 for depmode in $am_compiler_list; do
1354 # We need to recreate these files for each test, as the compiler may
1355 # overwrite some of them when testing with obscure command lines.
1356 # This happens at least with the AIX C compiler.
1357 echo '#include "conftest.h"' > conftest.c
1358 echo 'int i;' > conftest.h
1359 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
1363 # after this tag, mechanisms are not by side-effect, so they'll
1364 # only be used when explicitly requested
1365 if test "x$enable_dependency_tracking" = xyes; then
1373 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1374 # mode. It turns out that the SunPro C++ compiler does not properly
1375 # handle `-M -o', and we need to detect this.
1376 if depmode=$depmode \
1377 source=conftest.c object=conftest.o \
1378 depfile=conftest.Po tmpdepfile=conftest.TPo \
1379 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1380 grep conftest.h conftest.Po > /dev/null 2>&1 &&
1381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1382 am_cv_CC_dependencies_compiler_type=$depmode
1390 am_cv_CC_dependencies_compiler_type=none
1395 echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
1396 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1399 echo $ac_n "checking for working const""... $ac_c" 1>&6
1400 echo "configure:1401: checking for working const" >&5
1401 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1410 /* Ultrix mips cc rejects this. */
1411 typedef int charset[2]; const charset x;
1412 /* SunOS 4.1.1 cc rejects this. */
1413 char const *const *ccp;
1415 /* NEC SVR4.0.2 mips cc rejects this. */
1416 struct point {int x, y;};
1417 static struct point const zero = {0,0};
1418 /* AIX XL C 1.02.0.0 rejects this.
1419 It does not let you subtract one const X* pointer from another in an arm
1420 of an if-expression whose if-part is not a constant expression */
1421 const char *g = "string";
1422 ccp = &g + (g ? g-g : 0);
1423 /* HPUX 7.0 cc rejects these. */
1426 ccp = (char const *const *) p;
1427 { /* SCO 3.2v4 cc rejects this. */
1429 char const *s = 0 ? (char *) 0 : (char const *) 0;
1433 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1435 const int *foo = &x[0];
1438 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1439 typedef const int *iptr;
1443 { /* AIX XL C 1.02.0.0 rejects this saying
1444 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1445 struct s { int j; const int *ap[3]; };
1446 struct s *b; b->j = 5;
1448 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1454 if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1466 echo "$ac_t""$ac_cv_c_const" 1>&6
1467 if test $ac_cv_c_const = no; then
1468 cat >> confdefs.h <<\EOF
1474 echo $ac_n "checking for inline""... $ac_c" 1>&6
1475 echo "configure:1476: checking for inline" >&5
1476 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1480 for ac_kw in inline __inline__ __inline; do
1481 cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1489 if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1491 ac_cv_c_inline=$ac_kw; break
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1501 echo "$ac_t""$ac_cv_c_inline" 1>&6
1502 case "$ac_cv_c_inline" in
1504 no) cat >> confdefs.h <<\EOF
1508 *) cat >> confdefs.h <<EOF
1509 #define inline $ac_cv_c_inline
1516 # Find the correct PATH separator. Usually this is `:', but
1517 # DJGPP uses `;' like DOS.
1518 if test "X${PATH_SEPARATOR+set}" != Xset; then
1519 UNAME=${UNAME-`uname 2>/dev/null`}
1521 *-DOS) lt_cv_sys_path_separator=';' ;;
1522 *) lt_cv_sys_path_separator=':' ;;
1524 PATH_SEPARATOR=$lt_cv_sys_path_separator
1527 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1528 echo "configure:1529: checking for Cygwin environment" >&5
1529 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1539 #define __CYGWIN__ __CYGWIN32__
1544 if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548 echo "configure: failed program was:" >&5
1549 cat conftest.$ac_ext >&5
1557 echo "$ac_t""$ac_cv_cygwin" 1>&6
1559 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1560 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1561 echo "configure:1562: checking for mingw32 environment" >&5
1562 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1573 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1586 echo "$ac_t""$ac_cv_mingw32" 1>&6
1588 test "$ac_cv_mingw32" = yes && MINGW32=yes
1589 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1590 echo "configure:1591: checking how to run the C preprocessor" >&5
1591 # On Suns, sometimes $CPP names a directory.
1592 if test -n "$CPP" && test -d "$CPP"; then
1595 if test -z "$CPP"; then
1596 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 # This must be in double quotes, not single quotes, because CPP may get
1600 # substituted into the Makefile and "${CC-cc}" will confuse make.
1602 # On the NeXT, cc -E runs the code through the compiler's parser,
1603 # not just through cpp.
1604 cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1613 if test -z "$ac_err"; then
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1620 CPP="${CC-cc} -E -traditional-cpp"
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1630 if test -z "$ac_err"; then
1634 echo "configure: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1637 CPP="${CC-cc} -nologo -E"
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645 { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1647 if test -z "$ac_err"; then
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1661 ac_cv_prog_CPP="$CPP"
1663 CPP="$ac_cv_prog_CPP"
1665 ac_cv_prog_CPP="$CPP"
1667 echo "$ac_t""$CPP" 1>&6
1669 # Check whether --enable-shared or --disable-shared was given.
1670 if test "${enable_shared+set}" = set; then
1671 enableval="$enable_shared"
1672 p=${PACKAGE-default}
1674 yes) enable_shared=yes ;;
1675 no) enable_shared=no ;;
1678 # Look at the argument we got. We use all the common list separators.
1679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1680 for pkg in $enableval; do
1681 if test "X$pkg" = "X$p"; then
1692 # Check whether --enable-static or --disable-static was given.
1693 if test "${enable_static+set}" = set; then
1694 enableval="$enable_static"
1695 p=${PACKAGE-default}
1697 yes) enable_static=yes ;;
1698 no) enable_static=no ;;
1701 # Look at the argument we got. We use all the common list separators.
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1703 for pkg in $enableval; do
1704 if test "X$pkg" = "X$p"; then
1715 # Check whether --enable-fast-install or --disable-fast-install was given.
1716 if test "${enable_fast_install+set}" = set; then
1717 enableval="$enable_fast_install"
1718 p=${PACKAGE-default}
1720 yes) enable_fast_install=yes ;;
1721 no) enable_fast_install=no ;;
1723 enable_fast_install=no
1724 # Look at the argument we got. We use all the common list separators.
1725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1726 for pkg in $enableval; do
1727 if test "X$pkg" = "X$p"; then
1728 enable_fast_install=yes
1735 enable_fast_install=yes
1739 # Make sure we can run config.sub.
1740 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1741 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1744 echo $ac_n "checking host system type""... $ac_c" 1>&6
1745 echo "configure:1746: checking host system type" >&5
1748 case "$host_alias" in
1752 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1753 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1755 *) host_alias=$nonopt ;;
1759 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1760 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1761 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1762 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763 echo "$ac_t""$host" 1>&6
1765 echo $ac_n "checking build system type""... $ac_c" 1>&6
1766 echo "configure:1767: checking build system type" >&5
1769 case "$build_alias" in
1772 NONE) build_alias=$host_alias ;;
1773 *) build_alias=$nonopt ;;
1777 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1778 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1779 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1780 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1781 echo "$ac_t""$build" 1>&6
1783 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1784 if test "${with_gnu_ld+set}" = set; then
1785 withval="$with_gnu_ld"
1786 test "$withval" = no || with_gnu_ld=yes
1792 if test "$GCC" = yes; then
1793 # Check if gcc -print-prog-name=ld gives a path.
1794 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1795 echo "configure:1796: checking for ld used by GCC" >&5
1798 # gcc leaves a trailing carriage return which upsets mingw
1799 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1801 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1804 # Accept absolute paths.
1805 [\\/]* | [A-Za-z]:[\\/]*)
1806 re_direlt='/[^/][^/]*/\.\./'
1807 # Canonicalize the path of ld
1808 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1809 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1810 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1812 test -z "$LD" && LD="$ac_prog"
1815 # If it fails, then pretend we aren't using GCC.
1819 # If it is relative, then search for the first ld in PATH.
1823 elif test "$with_gnu_ld" = yes; then
1824 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1825 echo "configure:1826: checking for GNU ld" >&5
1827 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking for non-GNU ld" >&5
1830 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 if test -z "$LD"; then
1834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1835 for ac_dir in $PATH; do
1836 test -z "$ac_dir" && ac_dir=.
1837 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1838 lt_cv_path_LD="$ac_dir/$ac_prog"
1839 # Check to see if the program is GNU ld. I'd rather use --version,
1840 # but apparently some GNU ld's only accept -v.
1841 # Break only if it was the GNU/non-GNU ld that we prefer.
1842 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1843 test "$with_gnu_ld" != no && break
1845 test "$with_gnu_ld" != yes && break
1851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1856 if test -n "$LD"; then
1857 echo "$ac_t""$LD" 1>&6
1859 echo "$ac_t""no" 1>&6
1861 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1862 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1863 echo "configure:1864: checking if the linker ($LD) is GNU ld" >&5
1864 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1868 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1869 lt_cv_prog_gnu_ld=yes
1871 lt_cv_prog_gnu_ld=no
1875 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1876 with_gnu_ld=$lt_cv_prog_gnu_ld
1879 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $LD option to reload object files" >&5
1881 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 lt_cv_ld_reload_flag='-r'
1887 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1888 reload_flag=$lt_cv_ld_reload_flag
1889 test -n "$reload_flag" && reload_flag=" $reload_flag"
1891 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1892 echo "configure:1893: checking for BSD-compatible nm" >&5
1893 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 if test -n "$NM"; then
1897 # Let the user override the test.
1900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1901 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1902 test -z "$ac_dir" && ac_dir=.
1903 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1904 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1905 # Check to see if the nm accepts a BSD-compat flag.
1906 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1907 # nm: unknown option "B" ignored
1908 # Tru64's nm complains that /dev/null is an invalid object file
1909 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1910 lt_cv_path_NM="$tmp_nm -B"
1912 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1913 lt_cv_path_NM="$tmp_nm -p"
1916 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1917 continue # so that we can try to find one that supports BSD flags
1922 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1927 echo "$ac_t""$NM" 1>&6
1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether ln -s works" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1935 if ln -s X conftestdata 2>/dev/null
1938 ac_cv_prog_LN_S="ln -s"
1943 LN_S="$ac_cv_prog_LN_S"
1944 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945 echo "$ac_t""yes" 1>&6
1947 echo "$ac_t""no" 1>&6
1950 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1951 echo "configure:1952: checking how to recognise dependant libraries" >&5
1952 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 lt_cv_file_magic_cmd='$MAGIC_CMD'
1956 lt_cv_file_magic_test_file=
1957 lt_cv_deplibs_check_method='unknown'
1958 # Need to set the preceding variable on all platforms that support
1959 # interlibrary dependencies.
1960 # 'none' -- dependencies not supported.
1961 # `unknown' -- same as none, but documents that we really don't know.
1962 # 'pass_all' -- all dependencies passed with no checks.
1963 # 'test_compile' -- check by making test program.
1964 # 'file_magic [[regex]]' -- check by looking for files in library path
1965 # which responds to the $file_magic_cmd with a given egrep regex.
1966 # If you have `file' or equivalent on your system and you're not sure
1967 # whether `pass_all' will *always* work, you probably want this one.
1971 lt_cv_deplibs_check_method=pass_all
1975 lt_cv_deplibs_check_method=pass_all
1979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1980 lt_cv_file_magic_cmd='/usr/bin/file -L'
1981 lt_cv_file_magic_test_file=/shlib/libc.so
1984 cygwin* | mingw* | pw32*)
1985 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1986 lt_cv_file_magic_cmd='$OBJDUMP -f'
1989 darwin* | rhapsody*)
1990 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1991 lt_cv_file_magic_cmd='/usr/bin/file -L'
1993 rhapsody* | darwin1.[012])
1994 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1997 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2003 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2006 # Not sure whether the presence of OpenBSD here was a mistake.
2007 # Let's accept both of them until this is cleared up.
2008 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2009 lt_cv_file_magic_cmd=/usr/bin/file
2010 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2014 lt_cv_deplibs_check_method=pass_all
2019 lt_cv_deplibs_check_method=pass_all
2023 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2024 lt_cv_file_magic_cmd=/usr/bin/file
2025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2028 irix5* | irix6* | nonstopux*)
2030 irix5* | nonstopux*)
2031 # this will be overridden with pass_all, but let us keep it just in case
2032 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2036 *-32|*"-32 ") libmagic=32-bit;;
2037 *-n32|*"-n32 ") libmagic=N32;;
2038 *-64|*"-64 ") libmagic=64-bit;;
2039 *) libmagic=never-match;;
2041 # this will be overridden with pass_all, but let us keep it just in case
2042 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2045 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2046 lt_cv_deplibs_check_method=pass_all
2049 # This must be Linux ELF.
2052 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2053 lt_cv_deplibs_check_method=pass_all ;;
2055 # glibc up to 2.1.1 does not perform some relocations on ARM
2056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2058 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2062 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2063 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2065 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2071 lt_cv_file_magic_cmd=/usr/bin/file
2072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2076 lt_cv_file_magic_cmd=/usr/bin/file
2077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2081 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2085 osf3* | osf4* | osf5*)
2086 # this will be overridden with pass_all, but let us keep it just in case
2087 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2088 lt_cv_file_magic_test_file=/shlib/libc.so
2089 lt_cv_deplibs_check_method=pass_all
2093 lt_cv_deplibs_check_method=pass_all
2097 lt_cv_deplibs_check_method=pass_all
2098 lt_cv_file_magic_test_file=/lib/libc.so
2101 sysv5uw[78]* | sysv4*uw2*)
2102 lt_cv_deplibs_check_method=pass_all
2105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2106 case $host_vendor in
2108 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]'
2109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2112 lt_cv_deplibs_check_method=pass_all
2115 lt_cv_file_magic_cmd='/bin/file'
2116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2119 lt_cv_file_magic_cmd='/bin/file'
2120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2121 lt_cv_file_magic_test_file=/lib/libc.so
2129 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2130 file_magic_cmd=$lt_cv_file_magic_cmd
2131 deplibs_check_method=$lt_cv_deplibs_check_method
2133 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2134 echo "configure:2135: checking for object suffix" >&5
2135 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2139 echo 'int i = 1;' > conftest.$ac_ext
2140 if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2141 for ac_file in conftest.*; do
2144 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2148 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2153 echo "$ac_t""$ac_cv_objext" 1>&6
2154 OBJEXT=$ac_cv_objext
2155 ac_objext=$ac_cv_objext
2159 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2160 echo "configure:2161: checking for executable suffix" >&5
2161 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2168 echo 'int main () { return 0; }' > conftest.$ac_ext
2170 if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2171 for file in conftest.*; do
2173 *.c | *.o | *.obj) ;;
2174 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2178 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2181 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2186 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2187 echo "$ac_t""${ac_cv_exeext}" 1>&6
2190 if test $host != $build; then
2191 ac_tool_prefix=${host_alias}-
2199 # Check for command to grab the raw symbol name followed by C symbol from nm.
2200 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2201 echo "configure:2202: checking command to parse $NM output" >&5
2202 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2206 # These are sane defaults that work on at least a few old systems.
2207 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2209 # Character class describing NM global symbol codes.
2210 symcode='[BCDEGRST]'
2212 # Regexp to match symbols that can be accessed directly from C.
2213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2215 # Transform the above into a raw symbol and a C symbol.
2216 symxfrm='\1 \2\3 \3'
2218 # Transform an extracted symbol line into a proper C declaration
2219 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2221 # Transform an extracted symbol line into symbol name and symbol address
2222 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'"
2224 # Define system-specific variables.
2229 cygwin* | mingw* | pw32*)
2230 symcode='[ABCDGISTW]'
2232 hpux*) # Its linker distinguishes data from code symbols
2233 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2234 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'"
2237 symcode='[BCDEGRST]'
2247 # Handle CRLF in mingw tool chain
2251 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2255 # If we're using GNU nm, then use its standard symbol codes.
2256 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2257 symcode='[ABCDGISTW]'
2260 # Try without a prefix undercore, then with it.
2261 for ac_symprfx in "" "_"; do
2263 # Write the raw and C identifiers.
2264 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2266 # Check to see that the pipe works correctly.
2269 cat > conftest.$ac_ext <<EOF
2274 void nm_test_func(){}
2278 int main(){nm_test_var='a';nm_test_func();return(0);}
2281 if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282 # Now try to grab the symbols.
2284 if { (eval echo configure:2285: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2285 # Try sorting and uniquifying the output.
2286 if sort "$nlist" | uniq > "$nlist"T; then
2287 mv -f "$nlist"T "$nlist"
2292 # Make sure that we snagged all the symbols we need.
2293 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2294 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2295 cat <<EOF > conftest.$ac_ext
2301 # Now generate the symbol file.
2302 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2304 cat <<EOF >> conftest.$ac_ext
2305 #if defined (__STDC__) && __STDC__
2306 # define lt_ptr void *
2308 # define lt_ptr char *
2312 /* The mapping between symbol names and symbols. */
2317 lt_preloaded_symbols[] =
2320 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2321 cat <<\EOF >> conftest.$ac_ext
2329 # Now try linking the two files.
2330 mv conftest.$ac_objext conftstm.$ac_objext
2332 save_CFLAGS="$CFLAGS"
2333 LIBS="conftstm.$ac_objext"
2334 CFLAGS="$CFLAGS$no_builtin_flag"
2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2339 CFLAGS="$save_CFLAGS"
2341 echo "cannot find nm_test_func in $nlist" >&5
2344 echo "cannot find nm_test_var in $nlist" >&5
2347 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2350 echo "$progname: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2353 rm -f conftest* conftst*
2355 # Do not use the global_symbol_pipe unless it works.
2356 if test "$pipe_works" = yes; then
2359 lt_cv_sys_global_symbol_pipe=
2365 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2366 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2367 global_symbol_to_cdecl=
2368 global_symbol_to_c_name_address=
2370 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2371 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2373 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2375 echo "$ac_t""failed" 1>&6
2377 echo "$ac_t""ok" 1>&6
2380 for ac_hdr in dlfcn.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2424 # Only perform the check for file, if the check method requires it
2425 case $deplibs_check_method in
2427 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2428 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2429 echo "configure:2430: checking for ${ac_tool_prefix}file" >&5
2430 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2435 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2438 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2441 ac_save_MAGIC_CMD="$MAGIC_CMD"
2442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2443 ac_dummy="/usr/bin:$PATH"
2444 for ac_dir in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir=.
2446 if test -f $ac_dir/${ac_tool_prefix}file; then
2447 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2448 if test -n "$file_magic_test_file"; then
2449 case $deplibs_check_method in
2451 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2453 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2454 egrep "$file_magic_regex" > /dev/null; then
2459 *** Warning: the command libtool uses to detect shared libraries,
2460 *** $file_magic_cmd, produces output that libtool cannot recognize.
2461 *** The result is that libtool may fail to recognize shared libraries
2462 *** as such. This will affect the creation of libtool libraries that
2463 *** depend on shared libraries, but programs linked with such libtool
2464 *** libraries will work regardless of this problem. Nevertheless, you
2465 *** may want to report the problem to your system manager and/or to
2466 *** bug-libtool@gnu.org
2476 MAGIC_CMD="$ac_save_MAGIC_CMD"
2481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2482 if test -n "$MAGIC_CMD"; then
2483 echo "$ac_t""$MAGIC_CMD" 1>&6
2485 echo "$ac_t""no" 1>&6
2488 if test -z "$lt_cv_path_MAGIC_CMD"; then
2489 if test -n "$ac_tool_prefix"; then
2490 echo $ac_n "checking for file""... $ac_c" 1>&6
2491 echo "configure:2492: checking for file" >&5
2492 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2497 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2503 ac_save_MAGIC_CMD="$MAGIC_CMD"
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2505 ac_dummy="/usr/bin:$PATH"
2506 for ac_dir in $ac_dummy; do
2507 test -z "$ac_dir" && ac_dir=.
2508 if test -f $ac_dir/file; then
2509 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2510 if test -n "$file_magic_test_file"; then
2511 case $deplibs_check_method in
2513 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2515 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2516 egrep "$file_magic_regex" > /dev/null; then
2521 *** Warning: the command libtool uses to detect shared libraries,
2522 *** $file_magic_cmd, produces output that libtool cannot recognize.
2523 *** The result is that libtool may fail to recognize shared libraries
2524 *** as such. This will affect the creation of libtool libraries that
2525 *** depend on shared libraries, but programs linked with such libtool
2526 *** libraries will work regardless of this problem. Nevertheless, you
2527 *** may want to report the problem to your system manager and/or to
2528 *** bug-libtool@gnu.org
2538 MAGIC_CMD="$ac_save_MAGIC_CMD"
2543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2544 if test -n "$MAGIC_CMD"; then
2545 echo "$ac_t""$MAGIC_CMD" 1>&6
2547 echo "$ac_t""no" 1>&6
2559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2562 echo "configure:2563: checking for $ac_word" >&5
2563 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 if test -n "$RANLIB"; then
2567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2571 for ac_dir in $ac_dummy; do
2572 test -z "$ac_dir" && ac_dir=.
2573 if test -f $ac_dir/$ac_word; then
2574 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2581 RANLIB="$ac_cv_prog_RANLIB"
2582 if test -n "$RANLIB"; then
2583 echo "$ac_t""$RANLIB" 1>&6
2585 echo "$ac_t""no" 1>&6
2589 if test -z "$ac_cv_prog_RANLIB"; then
2590 if test -n "$ac_tool_prefix"; then
2591 # Extract the first word of "ranlib", so it can be a program name with args.
2592 set dummy ranlib; ac_word=$2
2593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_word" >&5
2595 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 if test -n "$RANLIB"; then
2599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2603 for ac_dir in $ac_dummy; do
2604 test -z "$ac_dir" && ac_dir=.
2605 if test -f $ac_dir/$ac_word; then
2606 ac_cv_prog_RANLIB="ranlib"
2611 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2614 RANLIB="$ac_cv_prog_RANLIB"
2615 if test -n "$RANLIB"; then
2616 echo "$ac_t""$RANLIB" 1>&6
2618 echo "$ac_t""no" 1>&6
2626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}strip; ac_word=$2
2628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_word" >&5
2630 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 if test -n "$STRIP"; then
2634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2638 for ac_dir in $ac_dummy; do
2639 test -z "$ac_dir" && ac_dir=.
2640 if test -f $ac_dir/$ac_word; then
2641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648 STRIP="$ac_cv_prog_STRIP"
2649 if test -n "$STRIP"; then
2650 echo "$ac_t""$STRIP" 1>&6
2652 echo "$ac_t""no" 1>&6
2656 if test -z "$ac_cv_prog_STRIP"; then
2657 if test -n "$ac_tool_prefix"; then
2658 # Extract the first word of "strip", so it can be a program name with args.
2659 set dummy strip; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 if test -n "$STRIP"; then
2666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2670 for ac_dir in $ac_dummy; do
2671 test -z "$ac_dir" && ac_dir=.
2672 if test -f $ac_dir/$ac_word; then
2673 ac_cv_prog_STRIP="strip"
2678 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2681 STRIP="$ac_cv_prog_STRIP"
2682 if test -n "$STRIP"; then
2683 echo "$ac_t""$STRIP" 1>&6
2685 echo "$ac_t""no" 1>&6
2695 enable_win32_dll=yes
2697 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2698 if test "${enable_libtool_lock+set}" = set; then
2699 enableval="$enable_libtool_lock"
2703 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2705 # Some flags need to be propagated to the compiler or linker for good
2709 # Find out which ABI we are using.
2710 echo '#line 2711 "configure"' > conftest.$ac_ext
2711 if { (eval echo configure:2712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2712 case `/usr/bin/file conftest.$ac_objext` in
2728 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2729 SAVE_CFLAGS="$CFLAGS"
2730 CFLAGS="$CFLAGS -belf"
2731 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2732 echo "configure:2733: checking whether the C compiler needs -belf" >&5
2733 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2742 cross_compiling=$ac_cv_prog_cc_cross
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2754 lt_cv_cc_needs_belf=yes
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2759 lt_cv_cc_needs_belf=no
2763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2767 cross_compiling=$ac_cv_prog_cc_cross
2771 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2772 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2773 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2774 CFLAGS="$SAVE_CFLAGS"
2778 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2779 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_word" >&5
2783 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 if test -n "$DLLTOOL"; then
2787 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2791 for ac_dir in $ac_dummy; do
2792 test -z "$ac_dir" && ac_dir=.
2793 if test -f $ac_dir/$ac_word; then
2794 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2801 DLLTOOL="$ac_cv_prog_DLLTOOL"
2802 if test -n "$DLLTOOL"; then
2803 echo "$ac_t""$DLLTOOL" 1>&6
2805 echo "$ac_t""no" 1>&6
2809 if test -z "$ac_cv_prog_DLLTOOL"; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "dlltool", so it can be a program name with args.
2812 set dummy dlltool; ac_word=$2
2813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_word" >&5
2815 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 if test -n "$DLLTOOL"; then
2819 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2823 for ac_dir in $ac_dummy; do
2824 test -z "$ac_dir" && ac_dir=.
2825 if test -f $ac_dir/$ac_word; then
2826 ac_cv_prog_DLLTOOL="dlltool"
2831 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2834 DLLTOOL="$ac_cv_prog_DLLTOOL"
2835 if test -n "$DLLTOOL"; then
2836 echo "$ac_t""$DLLTOOL" 1>&6
2838 echo "$ac_t""no" 1>&6
2846 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}as; ac_word=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 if test -n "$AS"; then
2854 ac_cv_prog_AS="$AS" # Let the user override the test.
2856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2858 for ac_dir in $ac_dummy; do
2859 test -z "$ac_dir" && ac_dir=.
2860 if test -f $ac_dir/$ac_word; then
2861 ac_cv_prog_AS="${ac_tool_prefix}as"
2869 if test -n "$AS"; then
2870 echo "$ac_t""$AS" 1>&6
2872 echo "$ac_t""no" 1>&6
2876 if test -z "$ac_cv_prog_AS"; then
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "as", so it can be a program name with args.
2879 set dummy as; ac_word=$2
2880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2881 echo "configure:2882: checking for $ac_word" >&5
2882 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 if test -n "$AS"; then
2886 ac_cv_prog_AS="$AS" # Let the user override the test.
2888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2890 for ac_dir in $ac_dummy; do
2891 test -z "$ac_dir" && ac_dir=.
2892 if test -f $ac_dir/$ac_word; then
2898 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2902 if test -n "$AS"; then
2903 echo "$ac_t""$AS" 1>&6
2905 echo "$ac_t""no" 1>&6
2913 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2914 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 if test -n "$OBJDUMP"; then
2921 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2925 for ac_dir in $ac_dummy; do
2926 test -z "$ac_dir" && ac_dir=.
2927 if test -f $ac_dir/$ac_word; then
2928 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2935 OBJDUMP="$ac_cv_prog_OBJDUMP"
2936 if test -n "$OBJDUMP"; then
2937 echo "$ac_t""$OBJDUMP" 1>&6
2939 echo "$ac_t""no" 1>&6
2943 if test -z "$ac_cv_prog_OBJDUMP"; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "objdump", so it can be a program name with args.
2946 set dummy objdump; ac_word=$2
2947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2948 echo "configure:2949: checking for $ac_word" >&5
2949 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 if test -n "$OBJDUMP"; then
2953 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2957 for ac_dir in $ac_dummy; do
2958 test -z "$ac_dir" && ac_dir=.
2959 if test -f $ac_dir/$ac_word; then
2960 ac_cv_prog_OBJDUMP="objdump"
2965 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2968 OBJDUMP="$ac_cv_prog_OBJDUMP"
2969 if test -n "$OBJDUMP"; then
2970 echo "$ac_t""$OBJDUMP" 1>&6
2972 echo "$ac_t""no" 1>&6
2981 # recent cygwin and mingw systems supply a stub DllMain which the user
2982 # can override, but on older systems we have to supply one
2983 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2984 echo "configure:2985: checking if libtool should supply DllMain function" >&5
2985 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2993 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2999 lt_cv_need_dllmain=no
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 lt_cv_need_dllmain=yes
3009 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
3012 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
3013 # old mingw systems require "-dll" to link a DLL, while more recent ones
3015 SAVE_CFLAGS="$CFLAGS"
3016 CFLAGS="$CFLAGS -mdll"
3017 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
3018 echo "configure:3019: checking how to link DLLs" >&5
3019 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3032 lt_cv_cc_dll_switch=-mdll
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 lt_cv_cc_dll_switch=-dll
3042 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
3043 CFLAGS="$SAVE_CFLAGS" ;;
3044 *-*-cygwin* | *-*-pw32*)
3045 # cygwin systems need to pass --dll to the linker, and not link
3046 # crt.o which will require a WinMain@16 definition.
3047 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
3053 # Sed substitution that helps us do robust quoting. It backslashifies
3054 # metacharacters that are still active within double-quoted strings.
3055 Xsed='sed -e s/^X//'
3056 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3058 # Same as above, but do not quote variable references.
3059 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3061 # Sed substitution to delay expansion of an escaped shell variable in a
3062 # double_quote_subst'ed string.
3063 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3069 default_ofile=libtool
3070 can_build_shared=yes
3072 # All known linkers require a `.a' archive for static linking (except M$VC,
3073 # which needs '.lib').
3075 ltmain="$ac_aux_dir/ltmain.sh"
3076 ofile="$default_ofile"
3077 with_gnu_ld="$lt_cv_prog_gnu_ld"
3078 need_locks="$enable_libtool_lock"
3081 old_CFLAGS="$CFLAGS"
3083 # Set sane defaults for various variables
3084 test -z "$AR" && AR=ar
3085 test -z "$AR_FLAGS" && AR_FLAGS=cru
3086 test -z "$AS" && AS=as
3087 test -z "$CC" && CC=cc
3088 test -z "$DLLTOOL" && DLLTOOL=dlltool
3089 test -z "$LD" && LD=ld
3090 test -z "$LN_S" && LN_S="ln -s"
3091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3092 test -z "$NM" && NM=nm
3093 test -z "$OBJDUMP" && OBJDUMP=objdump
3094 test -z "$RANLIB" && RANLIB=:
3095 test -z "$STRIP" && STRIP=:
3096 test -z "$ac_objext" && ac_objext=o
3098 if test x"$host" != x"$build"; then
3099 ac_tool_prefix=${host_alias}-
3104 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3107 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3112 # AIX sometimes has problems with the GCC collect2 program. For some
3113 # reason, if we set the COLLECT_NAMES environment variable, the problems
3114 # vanish in a puff of smoke.
3115 if test "X${COLLECT_NAMES+set}" != Xset; then
3117 export COLLECT_NAMES
3122 # Determine commands to create old-style static archives.
3123 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3124 old_postinstall_cmds='chmod 644 $oldlib'
3125 old_postuninstall_cmds=
3127 if test -n "$RANLIB"; then
3130 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3133 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3136 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3139 # Allow CC to be a program name with arguments.
3143 echo $ac_n "checking for objdir""... $ac_c" 1>&6
3144 echo "configure:3145: checking for objdir" >&5
3145 rm -f .libs 2>/dev/null
3146 mkdir .libs 2>/dev/null
3147 if test -d .libs; then
3150 # MS-DOS does not allow filenames that begin with a dot.
3153 rmdir .libs 2>/dev/null
3154 echo "$ac_t""$objdir" 1>&6
3157 # Check whether --with-pic or --without-pic was given.
3158 if test "${with_pic+set}" = set; then
3165 test -z "$pic_mode" && pic_mode=default
3167 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3168 # in isolation, and that seeing it set (from the cache) indicates that
3169 # the associated values are set (in the cache) correctly too.
3170 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
3171 echo "configure:3172: checking for $compiler option to produce PIC" >&5
3172 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3176 lt_cv_prog_cc_shlib=
3178 lt_cv_prog_cc_static=
3179 lt_cv_prog_cc_no_builtin=
3180 lt_cv_prog_cc_can_build_shared=$can_build_shared
3182 if test "$GCC" = yes; then
3183 lt_cv_prog_cc_wl='-Wl,'
3184 lt_cv_prog_cc_static='-static'
3188 # Below there is a dirty hack to force normal static linking with -ldl
3189 # The problem is because libdl dynamically linked with both libc and
3190 # libC (AIX C++ library), which obviously doesn't included in libraries
3191 # list by gcc. This cause undefined symbols with -static flags.
3192 # This hack allows C programs to be linked with "-static -ldl", but
3193 # not sure about C++ programs.
3194 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3197 # FIXME: we need at least 68020 code to build shared libraries, but
3198 # adding the `-m68020' flag to GCC prevents building anything better,
3200 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3203 # PIC is the default for these OSes.
3205 darwin* | rhapsody*)
3206 # PIC is the default on this platform
3207 # Common symbols not allowed in MH_DYLIB files
3208 lt_cv_prog_cc_pic='-fno-common'
3210 cygwin* | mingw* | pw32* | os2*)
3211 # This hack is so that the source file can tell whether it is being
3212 # built for inclusion in a dll (and should export symbols for example).
3213 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3216 if test -d /usr/nec; then
3217 lt_cv_prog_cc_pic=-Kconform_pic
3221 lt_cv_prog_cc_pic='-fPIC'
3225 # PORTME Check for PIC flags for the system compiler.
3227 aix3* | aix4* | aix5*)
3228 lt_cv_prog_cc_wl='-Wl,'
3229 # All AIX code is PIC.
3230 if test "$host_cpu" = ia64; then
3231 # AIX 5 now supports IA64 processor
3232 lt_cv_prog_cc_static='-Bstatic'
3234 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3238 hpux9* | hpux10* | hpux11*)
3239 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3240 lt_cv_prog_cc_wl='-Wl,'
3241 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3242 lt_cv_prog_cc_pic='+Z'
3245 irix5* | irix6* | nonstopux*)
3246 lt_cv_prog_cc_wl='-Wl,'
3247 lt_cv_prog_cc_static='-non_shared'
3248 # PIC (with -KPIC) is the default.
3251 cygwin* | mingw* | pw32* | os2*)
3252 # This hack is so that the source file can tell whether it is being
3253 # built for inclusion in a dll (and should export symbols for example).
3254 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3258 lt_cv_prog_cc_pic='-KPIC'
3259 lt_cv_prog_cc_static='-Bstatic'
3262 osf3* | osf4* | osf5*)
3263 # All OSF/1 code is PIC.
3264 lt_cv_prog_cc_wl='-Wl,'
3265 lt_cv_prog_cc_static='-non_shared'
3269 lt_cv_prog_cc_pic='-Kpic'
3270 lt_cv_prog_cc_static='-dn'
3271 lt_cv_prog_cc_shlib='-belf'
3275 lt_cv_prog_cc_pic='-KPIC'
3276 lt_cv_prog_cc_static='-Bstatic'
3277 lt_cv_prog_cc_wl='-Wl,'
3281 lt_cv_prog_cc_pic='-PIC'
3282 lt_cv_prog_cc_static='-Bstatic'
3283 lt_cv_prog_cc_wl='-Qoption ld '
3286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3287 lt_cv_prog_cc_pic='-KPIC'
3288 lt_cv_prog_cc_static='-Bstatic'
3289 if test "x$host_vendor" = xsni; then
3290 lt_cv_prog_cc_wl='-LD'
3292 lt_cv_prog_cc_wl='-Wl,'
3297 lt_cv_prog_cc_pic='-pic'
3298 lt_cv_prog_cc_static='-Bstatic'
3302 if test -d /usr/nec ;then
3303 lt_cv_prog_cc_pic='-Kconform_pic'
3304 lt_cv_prog_cc_static='-Bstatic'
3309 lt_cv_prog_cc_can_build_shared=no
3316 if test -z "$lt_cv_prog_cc_pic"; then
3317 echo "$ac_t""none" 1>&6
3319 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
3321 # Check to make sure the pic_flag actually works.
3322 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
3323 echo "configure:3324: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3324 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 save_CFLAGS="$CFLAGS"
3328 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3337 if { (eval echo configure:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340 hpux9* | hpux10* | hpux11*)
3341 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3342 # they create non-PIC objects. So, if there were any warnings, we
3343 # assume that PIC is not supported.
3344 if test -s conftest.err; then
3345 lt_cv_prog_cc_pic_works=no
3347 lt_cv_prog_cc_pic_works=yes
3351 lt_cv_prog_cc_pic_works=yes
3356 echo "configure: failed program was:" >&5
3357 cat conftest.$ac_ext >&5
3359 lt_cv_prog_cc_pic_works=no
3363 CFLAGS="$save_CFLAGS"
3368 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3370 lt_cv_prog_cc_can_build_shared=no
3372 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3375 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3378 # Check for any special shared library compilation flags.
3379 if test -n "$lt_cv_prog_cc_shlib"; then
3380 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
3381 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3383 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
3384 lt_cv_prog_cc_can_build_shared=no
3388 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3389 echo "configure:3390: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3390 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 lt_cv_prog_cc_static_works=no
3394 save_LDFLAGS="$LDFLAGS"
3395 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3404 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3406 lt_cv_prog_cc_static_works=yes
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3412 LDFLAGS="$save_LDFLAGS"
3417 # Belt *and* braces to stop my trousers falling down:
3418 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3419 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3421 pic_flag="$lt_cv_prog_cc_pic"
3422 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3423 wl="$lt_cv_prog_cc_wl"
3424 link_static_flag="$lt_cv_prog_cc_static"
3425 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3426 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3429 # Check to see if options -o and -c are simultaneously supported by compiler
3430 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3431 echo "configure:3432: checking if $compiler supports -c -o file.$ac_objext" >&5
3432 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3436 $rm -r conftest 2>/dev/null
3439 echo "int some_variable = 0;" > conftest.$ac_ext
3441 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3442 # that will create temporary files in the current directory regardless of
3443 # the output directory. Thus, making CWD read-only will cause this test
3444 # to fail, enabling locking or at least warning the user not to do parallel
3447 save_CFLAGS="$CFLAGS"
3448 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3450 if { (eval echo configure:3451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3451 # The compiler can only warn and ignore the option if not recognized
3452 # So say no if there are warnings
3453 if test -s out/conftest.err; then
3454 lt_cv_compiler_c_o=no
3456 lt_cv_compiler_c_o=yes
3459 # Append any errors to the config.log.
3460 cat out/conftest.err 1>&5
3461 lt_cv_compiler_c_o=no
3463 CFLAGS="$save_CFLAGS"
3469 $rm -r conftest 2>/dev/null
3473 compiler_c_o=$lt_cv_compiler_c_o
3474 echo "$ac_t""$compiler_c_o" 1>&6
3476 if test x"$compiler_c_o" = x"yes"; then
3477 # Check to see if we can write to a .lo
3478 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3479 echo "configure:3480: checking if $compiler supports -c -o file.lo" >&5
3480 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3484 lt_cv_compiler_o_lo=no
3485 save_CFLAGS="$CFLAGS"
3486 CFLAGS="$CFLAGS -c -o conftest.lo"
3487 save_objext="$ac_objext"
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3494 int some_variable = 0;
3497 if { (eval echo configure:3498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3499 # The compiler can only warn and ignore the option if not recognized
3500 # So say no if there are warnings
3501 if test -s conftest.err; then
3502 lt_cv_compiler_o_lo=no
3504 lt_cv_compiler_o_lo=yes
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3512 ac_objext="$save_objext"
3513 CFLAGS="$save_CFLAGS"
3517 compiler_o_lo=$lt_cv_compiler_o_lo
3518 echo "$ac_t""$compiler_o_lo" 1>&6
3523 # Check to see if we can do hard links to lock some files if needed
3524 hard_links="nottested"
3525 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3526 # do not overwrite the value of need_locks provided by the user
3527 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3528 echo "configure:3529: checking if we can lock with hard links" >&5
3531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3533 ln conftest.a conftest.b 2>&5 || hard_links=no
3534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3535 echo "$ac_t""$hard_links" 1>&6
3536 if test "$hard_links" = no; then
3537 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3544 if test "$GCC" = yes; then
3545 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3546 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3547 echo "configure:3548: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3548 echo "int some_variable = 0;" > conftest.$ac_ext
3549 save_CFLAGS="$CFLAGS"
3550 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3551 compiler_rtti_exceptions=no
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3557 int some_variable = 0;
3560 if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3562 # The compiler can only warn and ignore the option if not recognized
3563 # So say no if there are warnings
3564 if test -s conftest.err; then
3565 compiler_rtti_exceptions=no
3567 compiler_rtti_exceptions=yes
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3575 CFLAGS="$save_CFLAGS"
3576 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3578 if test "$compiler_rtti_exceptions" = "yes"; then
3579 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3581 no_builtin_flag=' -fno-builtin'
3585 # See if the linker supports building shared libraries.
3586 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3587 echo "configure:3588: checking whether the linker ($LD) supports shared libraries" >&5
3589 allow_undefined_flag=
3591 need_lib_prefix=unknown
3592 need_version=unknown
3593 # when you set need_version to no, make sure it does not cause -set_version
3594 # flags to be left without arguments
3596 archive_expsym_cmds=
3597 old_archive_from_new_cmds=
3598 old_archive_from_expsyms_cmds=
3599 export_dynamic_flag_spec=
3600 whole_archive_flag_spec=
3601 thread_safe_flag_spec=
3602 hardcode_into_libs=no
3603 hardcode_libdir_flag_spec=
3604 hardcode_libdir_separator=
3607 hardcode_shlibpath_var=unsupported
3609 link_all_deplibs=unknown
3610 always_export_symbols=no
3611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3612 # include_expsyms should be a list of space-separated symbols to be *always*
3613 # included in the symbol list
3615 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3618 # as well as any symbol that contains `d'.
3619 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3621 # platforms (ab)use it in PIC code, but their linkers get confused if
3622 # the symbol is explicitly referenced. Since portable code cannot
3623 # rely on this symbol name, it's probably fine to never include it in
3624 # preloaded symbol tables.
3625 extract_expsyms_cmds=
3628 cygwin* | mingw* | pw32*)
3629 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3630 # When not using gcc, we currently assume that we are using
3631 # Microsoft Visual C++.
3632 if test "$GCC" != yes; then
3642 if test "$with_gnu_ld" = yes; then
3643 # If archive_cmds runs LD, not CC, wlarc should be empty
3646 # See if GNU ld supports shared libraries.
3648 aix3* | aix4* | aix5*)
3649 # On AIX, the GNU linker is very broken
3650 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3655 *** to be unable to reliably create shared libraries on AIX.
3656 *** Therefore, libtool is disabling shared libraries support. If you
3657 *** really care for shared libraries, you may want to modify your PATH
3658 *** so that a non-GNU linker is found, and then restart.
3664 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)'
3665 hardcode_libdir_flag_spec='-L$libdir'
3666 hardcode_minus_L=yes
3668 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3669 # that the semantics of dynamic libraries on AmigaOS, at least up
3670 # to version 4, is to share data among multiple programs linked
3671 # with the same dynamic library. Since this doesn't match the
3672 # behavior of shared libraries on other platforms, we can use
3678 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3679 allow_undefined_flag=unsupported
3680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3681 # support --undefined. This deserves some investigation. FIXME
3682 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3688 cygwin* | mingw* | pw32*)
3689 # hardcode_libdir_flag_spec is actually meaningless, as there is
3690 # no search path for DLLs.
3691 hardcode_libdir_flag_spec='-L$libdir'
3692 allow_undefined_flag=unsupported
3693 always_export_symbols=yes
3695 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3696 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3697 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3698 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3699 else $CC -o impgen impgen.c ; fi)~
3700 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3702 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3704 # cygwin and mingw dlls have different entry points and sets of symbols
3706 # FIXME: what about values for MSVC?
3707 dll_entry=__cygwin_dll_entry@12
3708 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3712 dll_entry=_DllMainCRTStartup@12
3713 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3717 # mingw and cygwin differ, and it's simplest to just exclude the union
3718 # of the two symbol sets.
3719 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3721 # recent cygwin and mingw systems supply a stub DllMain which the user
3722 # can override, but on older systems we have to supply one (in ltdll.c)
3723 if test "x$lt_cv_need_dllmain" = "xyes"; then
3724 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3725 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~
3726 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3732 # Extract the symbol export list from an `--export-all' def file,
3733 # then regenerate the def file from the symbol export list, so that
3734 # the compiled dll only exports the symbol export list.
3735 # Be careful not to strip the DATA tag left be newer dlltools.
3736 export_symbols_cmds="$ltdll_cmds"'
3737 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3738 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3740 # If the export-symbols file already is a .def file (1st line
3741 # is EXPORTS), use it as is.
3742 # If DATA tags from a recent dlltool are present, honour them!
3743 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3744 cp $export_symbols $output_objdir/$soname-def;
3746 echo EXPORTS > $output_objdir/$soname-def;
3748 cat $export_symbols | while read symbol; do
3751 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3752 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3754 _lt_hint=`expr 1 + \$_lt_hint`;
3758 $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~
3759 $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~
3760 $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~
3761 $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~
3762 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3770 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3771 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3776 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3781 *** create shared libraries on Solaris systems. Therefore, libtool
3782 *** is disabling shared libraries support. We urge you to upgrade GNU
3783 *** binutils to release 2.9.1 or newer. Another option is to modify
3784 *** your PATH or compiler configuration so that the native linker is
3785 *** used, and then restart.
3788 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3797 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3800 hardcode_shlibpath_var=no
3804 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3813 if test "$ld_shlibs" = yes; then
3814 runpath_var=LD_RUN_PATH
3815 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3816 export_dynamic_flag_spec='${wl}--export-dynamic'
3818 cygwin* | mingw* | pw32*)
3819 # dlltool doesn't understand --whole-archive et. al.
3820 whole_archive_flag_spec=
3823 # ancient GNU ld didn't support --whole-archive et. al.
3824 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3825 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3827 whole_archive_flag_spec=
3833 # PORTME fill in a description of your system's linker (not GNU ld)
3836 allow_undefined_flag=unsupported
3837 always_export_symbols=yes
3838 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'
3839 # Note: this linker hardcodes the directories in LIBPATH if there
3840 # are no directories specified by -L.
3841 hardcode_minus_L=yes
3842 if test "$GCC" = yes && test -z "$link_static_flag"; then
3843 # Neither direct hardcoding nor static linking is supported with a
3845 hardcode_direct=unsupported
3850 if test "$host_cpu" = ia64; then
3851 # On IA64, the linker does run time linking by default, so we don't
3852 # have to do anything special.
3853 aix_use_runtimelinking=no
3854 exp_sym_flag='-Bexport'
3857 aix_use_runtimelinking=no
3859 # Test if we are trying to use run time linking or normal
3860 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3861 # need to do runtime linking.
3862 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3863 for ld_flag in $LDFLAGS; do
3864 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3865 aix_use_runtimelinking=yes
3871 exp_sym_flag='-bexport'
3872 no_entry_flag='-bnoentry'
3875 # When large executables or shared objects are built, AIX ld can
3876 # have problems creating the table of contents. If linking a library
3877 # or program results in "error TOC overflow" add -mminimal-toc to
3878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3883 hardcode_libdir_separator=':'
3884 if test "$GCC" = yes; then
3885 case $host_os in aix4.[012]|aix4.[012].*)
3886 collect2name=`${CC} -print-prog-name=collect2`
3887 if test -f "$collect2name" && \
3888 strings "$collect2name" | grep resolve_lib_name >/dev/null
3890 # We have reworked collect2
3893 # We have old collect2
3894 hardcode_direct=unsupported
3895 # It fails to find uninstalled libraries when the uninstalled
3896 # path is not listed in the libpath. Setting hardcode_minus_L
3897 # to unsupported forces relinking
3898 hardcode_minus_L=yes
3899 hardcode_libdir_flag_spec='-L$libdir'
3900 hardcode_libdir_separator=
3904 shared_flag='-shared'
3907 if test "$host_cpu" = ia64; then
3908 shared_flag='${wl}-G'
3910 if test "$aix_use_runtimelinking" = yes; then
3911 shared_flag='${wl}-G'
3913 shared_flag='${wl}-bM:SRE'
3918 # It seems that -bexpall can do strange things, so it is better to
3919 # generate a list of symbols to export.
3920 always_export_symbols=yes
3921 if test "$aix_use_runtimelinking" = yes; then
3922 # Warning - without using the other runtime loading flags (-brtl),
3923 # -berok will link without error, but may produce a broken library.
3924 allow_undefined_flag='-berok'
3925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3926 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"
3928 if test "$host_cpu" = ia64; then
3929 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3930 allow_undefined_flag="-z nodefs"
3931 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"
3933 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3934 # Warning - without using the other run time loading flags,
3935 # -berok will link without error, but may produce a broken library.
3936 allow_undefined_flag='${wl}-berok'
3937 # This is a bit strange, but is similar to how AIX traditionally builds
3938 # it's shared libraries.
3939 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'
3945 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)'
3946 hardcode_libdir_flag_spec='-L$libdir'
3947 hardcode_minus_L=yes
3948 # see comment about different semantics on the GNU ld section
3952 cygwin* | mingw* | pw32*)
3953 # When not using gcc, we currently assume that we are using
3954 # Microsoft Visual C++.
3955 # hardcode_libdir_flag_spec is actually meaningless, as there is
3956 # no search path for DLLs.
3957 hardcode_libdir_flag_spec=' '
3958 allow_undefined_flag=unsupported
3959 # Tell ltmain to make .lib files, not .a files.
3961 # FIXME: Setting linknames here is a bad hack.
3962 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3963 # The linker will automatically build a .lib file if we build a DLL.
3964 old_archive_from_new_cmds='true'
3965 # FIXME: Should let the user specify the lib program.
3966 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3967 fix_srcfile_path='`cygpath -w "$srcfile"`'
3970 darwin* | rhapsody*)
3972 rhapsody* | darwin1.[012])
3973 allow_undefined_flag='-undefined suppress'
3976 allow_undefined_flag='-flat_namespace -undefined suppress'
3979 # FIXME: Relying on posixy $() will cause problems for
3980 # cross-compilation, but unfortunately the echo tests do not
3981 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3982 # `"' quotes if we put them in here... so don't!
3983 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3984 # We need to add '_' to the symbols in $export_symbols first
3985 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3987 hardcode_shlibpath_var=no
3988 whole_archive_flag_spec='-all_load $convenience'
3995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3996 # support. Future versions do this automatically, but an explicit c++rt0.o
3997 # does not break anything, and helps significantly (at the cost of a little
4000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4001 hardcode_libdir_flag_spec='-R$libdir'
4003 hardcode_shlibpath_var=no
4006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4010 hardcode_minus_L=yes
4011 hardcode_shlibpath_var=no
4014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4016 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4017 hardcode_libdir_flag_spec='-R$libdir'
4019 hardcode_shlibpath_var=no
4022 hpux9* | hpux10* | hpux11*)
4024 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' ;;
4025 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4028 hardcode_libdir_separator=:
4030 hardcode_minus_L=yes # Not in the search PATH, but as the default
4031 # location of the library.
4032 export_dynamic_flag_spec='${wl}-E'
4035 irix5* | irix6* | nonstopux*)
4036 if test "$GCC" = yes; then
4037 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'
4039 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'
4041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4042 hardcode_libdir_separator=:
4043 link_all_deplibs=yes
4047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4050 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4052 hardcode_libdir_flag_spec='-R$libdir'
4054 hardcode_shlibpath_var=no
4058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4061 hardcode_libdir_separator=:
4062 hardcode_shlibpath_var=no
4067 hardcode_shlibpath_var=no
4068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4071 export_dynamic_flag_spec='${wl}-E'
4074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4076 hardcode_libdir_flag_spec='-R$libdir'
4079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4087 hardcode_libdir_flag_spec='-L$libdir'
4088 hardcode_minus_L=yes
4089 allow_undefined_flag=unsupported
4090 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'
4091 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4095 if test "$GCC" = yes; then
4096 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4097 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'
4099 allow_undefined_flag=' -expect_unresolved \*'
4100 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'
4102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4103 hardcode_libdir_separator=:
4106 osf4* | osf5*) # as osf3* with the addition of -msym flag
4107 if test "$GCC" = yes; then
4108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4109 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'
4110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4112 allow_undefined_flag=' -expect_unresolved \*'
4113 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'
4114 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4115 $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'
4117 #Both c and cxx compiler support -rpath directly
4118 hardcode_libdir_flag_spec='-rpath $libdir'
4120 hardcode_libdir_separator=:
4124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4125 hardcode_shlibpath_var=no
4126 runpath_var=LD_RUN_PATH
4127 hardcode_runpath_var=yes
4128 export_dynamic_flag_spec='${wl}-Bexport'
4132 # gcc --version < 3.0 without binutils cannot create self contained
4133 # shared libraries reliably, requiring libgcc.a to resolve some of
4134 # the object symbols generated in some cases. Libraries that use
4135 # assert need libgcc.a to resolve __eprintf, for example. Linking
4136 # a copy of libgcc.a into every shared library to guarantee resolving
4137 # such symbols causes other problems: According to Tim Van Holder
4138 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4139 # (to the application) exception stack for one thing.
4140 no_undefined_flag=' -z defs'
4141 if test "$GCC" = yes; then
4142 case `$CC --version 2>/dev/null` in
4146 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4147 *** create self contained shared libraries on Solaris systems, without
4148 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4149 *** -no-undefined support, which will at least allow you to build shared
4150 *** libraries. However, you may find that when you link such libraries
4151 *** into an application without using GCC, you have to manually add
4152 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4153 *** upgrade to a newer version of GCC. Another option is to rebuild your
4154 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4161 # $CC -shared without GNU ld will not create a library from C++
4162 # object files and a static libstdc++, better avoid it by now
4163 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4164 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4165 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4166 hardcode_libdir_flag_spec='-R$libdir'
4167 hardcode_shlibpath_var=no
4169 solaris2.[0-5] | solaris2.[0-5].*) ;;
4170 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4171 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4173 link_all_deplibs=yes
4177 if test "x$host_vendor" = xsequent; then
4178 # Use $CC to link under sequent, because it throws in some extra .o
4179 # files that make .init and .fini sections work.
4180 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4182 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4184 hardcode_libdir_flag_spec='-L$libdir'
4186 hardcode_minus_L=yes
4187 hardcode_shlibpath_var=no
4191 if test "x$host_vendor" = xsno; then
4192 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4193 hardcode_direct=yes # is this really true???
4195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4196 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4198 runpath_var='LD_RUN_PATH'
4199 hardcode_shlibpath_var=no
4203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4204 hardcode_shlibpath_var=no
4205 export_dynamic_flag_spec='-Bexport'
4209 no_undefined_flag=' -z text'
4210 # $CC -shared without GNU ld will not create a library from C++
4211 # object files and a static libstdc++, better avoid it by now
4212 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4213 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4214 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4215 hardcode_libdir_flag_spec=
4216 hardcode_shlibpath_var=no
4217 runpath_var='LD_RUN_PATH'
4221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4222 hardcode_libdir_flag_spec='-L$libdir'
4223 hardcode_shlibpath_var=no
4227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4228 hardcode_libdir_flag_spec='-L$libdir'
4229 hardcode_shlibpath_var=no
4233 if test -d /usr/nec; then
4234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4235 hardcode_shlibpath_var=no
4236 runpath_var=LD_RUN_PATH
4237 hardcode_runpath_var=yes
4243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4246 hardcode_shlibpath_var=no
4247 hardcode_runpath_var=yes
4248 runpath_var=LD_RUN_PATH
4251 sysv5uw7* | unixware7*)
4252 no_undefined_flag='${wl}-z ${wl}text'
4253 if test "$GCC" = yes; then
4254 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4256 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4258 runpath_var='LD_RUN_PATH'
4259 hardcode_shlibpath_var=no
4267 echo "$ac_t""$ld_shlibs" 1>&6
4268 test "$ld_shlibs" = no && can_build_shared=no
4270 # Check hardcoding attributes.
4271 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
4272 echo "configure:4273: checking how to hardcode library paths into programs" >&5
4274 if test -n "$hardcode_libdir_flag_spec" || \
4275 test -n "$runpath_var"; then
4277 # We can hardcode non-existant directories.
4278 if test "$hardcode_direct" != no &&
4279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4280 # have to relink, otherwise we might link with an installed library
4281 # when we should be linking with a yet-to-be-installed one
4282 ## test "$hardcode_shlibpath_var" != no &&
4283 test "$hardcode_minus_L" != no; then
4284 # Linking always hardcodes the temporary library directory.
4285 hardcode_action=relink
4287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4288 hardcode_action=immediate
4291 # We cannot hardcode anything, or else we can only hardcode existing
4293 hardcode_action=unsupported
4295 echo "$ac_t""$hardcode_action" 1>&6
4299 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
4300 echo "configure:4301: checking whether stripping libraries is possible" >&5
4301 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4302 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4303 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4304 echo "$ac_t""yes" 1>&6
4306 echo "$ac_t""no" 1>&6
4309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4310 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4312 # PORTME Fill in your ld.so characteristics
4313 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
4314 echo "configure:4315: checking dynamic linker characteristics" >&5
4316 libname_spec='lib$name'
4323 shlibpath_overrides_runpath=unknown
4325 dynamic_linker="$host_os ld.so"
4326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4332 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4333 shlibpath_var=LIBPATH
4335 # AIX has no versioning support, so we append a major version to the name.
4336 soname_spec='${libname}${release}.so$major'
4341 if test "$host_cpu" = ia64; then
4342 # AIX 5 supports IA64
4343 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4344 shlibpath_var=LD_LIBRARY_PATH
4346 # With GCC up to 2.95.x, collect2 would create an import file
4347 # for dependence libraries. The import file would start with
4348 # the line `#! .'. This would cause the generated library to
4349 # depend on `.', always an invalid library. This was fixed in
4350 # development snapshots of GCC prior to 3.0.
4352 aix4 | aix4.[01] | aix4.[01].*)
4353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4355 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4362 # AIX (on Power*) has no versioning support, so currently we can
4363 # not hardcode correct soname into executable. Probably we can
4364 # add versioning support to collect2, so additional links can
4365 # be useful in future.
4366 if test "$aix_use_runtimelinking" = yes; then
4367 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4368 # instead of lib<name>.a to let people know that these are not
4369 # typical AIX shared libraries.
4370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4372 # We preserve .a as extension for shared libraries through AIX4.2
4373 # and later when we are not doing run time linking.
4374 library_names_spec='${libname}${release}.a $libname.a'
4375 soname_spec='${libname}${release}.so$major'
4377 shlibpath_var=LIBPATH
4382 library_names_spec='$libname.ixlibrary $libname.a'
4383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4384 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'
4388 library_names_spec='${libname}.so'
4389 dynamic_linker="$host_os ld.so"
4390 shlibpath_var=LIBRARY_PATH
4396 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4397 soname_spec='${libname}${release}.so$major'
4398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4399 shlibpath_var=LD_LIBRARY_PATH
4400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4402 export_dynamic_flag_spec=-rdynamic
4403 # the default ld.so.conf also contains /usr/contrib/lib and
4404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4405 # libtool to hard-code these into programs
4408 cygwin* | mingw* | pw32*)
4409 version_type=windows
4412 case $GCC,$host_os in
4414 library_names_spec='$libname.dll.a'
4415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4416 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4417 dldir=$destdir/`dirname \$dlpath`~
4418 test -d \$dldir || mkdir -p \$dldir~
4419 $install_prog .libs/$dlname \$dldir/$dlname'
4420 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4421 dlpath=$dir/\$dldll~
4425 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4432 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4435 dynamic_linker='Win32 ld.exe'
4436 # FIXME: first we should search . and the directory the executable is in
4440 darwin* | rhapsody*)
4441 dynamic_linker="$host_os dyld"
4445 # FIXME: Relying on posixy $() will cause problems for
4446 # cross-compilation, but unfortunately the echo tests do not
4447 # yet detect zsh echo's removal of \ escapes.
4448 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)'
4449 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4450 shlibpath_overrides_runpath=yes
4451 shlibpath_var=DYLD_LIBRARY_PATH
4459 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4460 version_type=freebsd-$objformat
4461 case $version_type in
4463 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4468 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4472 shlibpath_var=LD_LIBRARY_PATH
4475 shlibpath_overrides_runpath=yes
4478 shlibpath_overrides_runpath=no
4479 hardcode_into_libs=yes
4488 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4489 soname_spec='${libname}${release}.so$major'
4490 shlibpath_var=LD_LIBRARY_PATH
4491 hardcode_into_libs=yes
4494 hpux9* | hpux10* | hpux11*)
4495 # Give a soname corresponding to the major version so that dld.sl refuses to
4496 # link against other versions.
4497 dynamic_linker="$host_os dld.sl"
4501 shlibpath_var=SHLIB_PATH
4502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4503 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4504 soname_spec='${libname}${release}.sl$major'
4505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4506 postinstall_cmds='chmod 555 $lib'
4509 irix5* | irix6* | nonstopux*)
4511 nonstopux*) version_type=nonstopux ;;
4512 *) version_type=irix ;;
4516 soname_spec='${libname}${release}.so$major'
4517 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4519 irix5* | nonstopux*)
4523 case $LD in # libtool.m4 will add one of these switches to LD
4524 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4525 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4526 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4527 *) libsuff= shlibsuff= libmagic=never-match;;
4531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4532 shlibpath_overrides_runpath=no
4533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4537 # No shared lib support for Linux oldld, aout, or coff.
4538 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4542 # This must be Linux ELF.
4547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4548 soname_spec='${libname}${release}.so$major'
4549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4550 shlibpath_var=LD_LIBRARY_PATH
4551 shlibpath_overrides_runpath=no
4552 # This implies no fast_install, which is unacceptable.
4553 # Some rework will be needed to allow for fast_install
4554 # before this can be enabled.
4555 hardcode_into_libs=yes
4557 # We used to test for /lib/ld.so.1 and disable shared libraries on
4558 # powerpc, because MkLinux only supported shared libraries with the
4559 # GNU dynamic linker. Since this was broken with cross compilers,
4560 # most powerpc-linux boxes support dynamic linking these days and
4561 # people can always --disable-shared, the test was removed, and we
4562 # assume the GNU/Linux dynamic linker is in use.
4563 dynamic_linker='GNU/Linux ld.so'
4570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4571 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4573 dynamic_linker='NetBSD (a.out) ld.so'
4575 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4576 soname_spec='${libname}${release}.so$major'
4577 dynamic_linker='NetBSD ld.elf_so'
4579 shlibpath_var=LD_LIBRARY_PATH
4580 shlibpath_overrides_runpath=yes
4581 hardcode_into_libs=yes
4586 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4587 shlibpath_var=LD_LIBRARY_PATH
4588 shlibpath_overrides_runpath=yes
4595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4597 openbsd2.[89] | openbsd2.[89].*)
4598 shlibpath_overrides_runpath=no
4601 shlibpath_overrides_runpath=yes
4605 shlibpath_overrides_runpath=yes
4607 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4609 shlibpath_var=LD_LIBRARY_PATH
4613 libname_spec='$name'
4615 library_names_spec='$libname.dll $libname.a'
4616 dynamic_linker='OS/2 ld.exe'
4617 shlibpath_var=LIBPATH
4620 osf3* | osf4* | osf5*)
4623 soname_spec='${libname}${release}.so'
4624 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4625 shlibpath_var=LD_LIBRARY_PATH
4626 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4627 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4632 soname_spec='${libname}${release}.so$major'
4633 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4634 shlibpath_var=LD_LIBRARY_PATH
4641 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4642 soname_spec='${libname}${release}.so$major'
4643 shlibpath_var=LD_LIBRARY_PATH
4644 shlibpath_overrides_runpath=yes
4645 hardcode_into_libs=yes
4646 # ldd complains unless libraries are executable
4647 postinstall_cmds='chmod +x $lib'
4652 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4654 shlibpath_var=LD_LIBRARY_PATH
4655 shlibpath_overrides_runpath=yes
4656 if test "$with_gnu_ld" = yes; then
4662 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4664 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4665 soname_spec='${libname}${release}.so$major'
4666 shlibpath_var=LD_LIBRARY_PATH
4667 case $host_vendor in
4669 shlibpath_overrides_runpath=no
4674 shlibpath_overrides_runpath=no
4675 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4682 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4683 soname_spec='${libname}${release}.so$major'
4684 shlibpath_var=LD_LIBRARY_PATH
4691 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4692 soname_spec='${libname}${release}.so$major'
4693 shlibpath_var=LD_LIBRARY_PATH
4697 if test -d /usr/nec ;then
4699 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4700 soname_spec='$libname.so.$major'
4701 shlibpath_var=LD_LIBRARY_PATH
4709 echo "$ac_t""$dynamic_linker" 1>&6
4710 test "$dynamic_linker" = no && can_build_shared=no
4712 # Report the final consequences.
4713 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4714 echo "configure:4715: checking if libtool supports shared libraries" >&5
4715 echo "$ac_t""$can_build_shared" 1>&6
4717 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4718 echo "configure:4719: checking whether to build shared libraries" >&5
4719 test "$can_build_shared" = "no" && enable_shared=no
4721 # On AIX, shared libraries and static libraries use the same namespace, and
4722 # are all built from PIC.
4725 test "$enable_shared" = yes && enable_static=no
4726 if test -n "$RANLIB"; then
4727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4728 postinstall_cmds='$RANLIB $lib'
4733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4734 test "$enable_shared" = yes && enable_static=no
4738 echo "$ac_t""$enable_shared" 1>&6
4740 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4741 echo "configure:4742: checking whether to build static libraries" >&5
4742 # Make sure either enable_shared or enable_static is yes.
4743 test "$enable_shared" = yes || enable_static=yes
4744 echo "$ac_t""$enable_static" 1>&6
4746 if test "$hardcode_action" = relink; then
4747 # Fast installation is not supported
4748 enable_fast_install=no
4749 elif test "$shlibpath_overrides_runpath" = yes ||
4750 test "$enable_shared" = no; then
4751 # Fast installation is not necessary
4752 enable_fast_install=needless
4755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4756 if test "$GCC" = yes; then
4757 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4760 if test "x$enable_dlopen" != xyes; then
4761 enable_dlopen=unknown
4762 enable_dlopen_self=unknown
4763 enable_dlopen_self_static=unknown
4770 lt_cv_dlopen="load_add_on"
4772 lt_cv_dlopen_self=yes
4775 cygwin* | mingw* | pw32*)
4776 lt_cv_dlopen="LoadLibrary"
4781 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4782 echo "configure:4783: checking for shl_load" >&5
4783 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 /* System header to define __stub macros and hopefully few prototypes,
4790 which can conflict with char shl_load(); below. */
4792 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4799 /* The GNU C library defines this for functions which it implements
4800 to always fail with ENOSYS. Some functions are actually named
4801 something starting with __ and the normal name is an alias. */
4802 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4812 eval "ac_cv_func_shl_load=yes"
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4817 eval "ac_cv_func_shl_load=no"
4822 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 lt_cv_dlopen="shl_load"
4826 echo "$ac_t""no" 1>&6
4827 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4828 echo "configure:4829: checking for shl_load in -ldld" >&5
4829 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 ac_save_LIBS="$LIBS"
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 /* Override any gcc2 internal prototype to avoid an error. */
4839 /* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4849 eval "ac_cv_lib_$ac_lib_var=yes"
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4854 eval "ac_cv_lib_$ac_lib_var=no"
4857 LIBS="$ac_save_LIBS"
4860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4864 echo "$ac_t""no" 1>&6
4865 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4866 echo "configure:4867: checking for dlopen" >&5
4867 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 /* System header to define __stub macros and hopefully few prototypes,
4874 which can conflict with char dlopen(); below. */
4876 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4883 /* The GNU C library defines this for functions which it implements
4884 to always fail with ENOSYS. Some functions are actually named
4885 something starting with __ and the normal name is an alias. */
4886 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4894 if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4896 eval "ac_cv_func_dlopen=yes"
4898 echo "configure: failed program was:" >&5
4899 cat conftest.$ac_ext >&5
4901 eval "ac_cv_func_dlopen=no"
4906 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4907 echo "$ac_t""yes" 1>&6
4908 lt_cv_dlopen="dlopen"
4910 echo "$ac_t""no" 1>&6
4911 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4912 echo "configure:4913: checking for dlopen in -ldl" >&5
4913 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 ac_save_LIBS="$LIBS"
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 /* Override any gcc2 internal prototype to avoid an error. */
4923 /* We use char because int might match the return type of a gcc2
4924 builtin and then its argument prototype would still apply. */
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4933 eval "ac_cv_lib_$ac_lib_var=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 eval "ac_cv_lib_$ac_lib_var=no"
4941 LIBS="$ac_save_LIBS"
4944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4945 echo "$ac_t""yes" 1>&6
4946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4948 echo "$ac_t""no" 1>&6
4949 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4950 echo "configure:4951: checking for dlopen in -lsvld" >&5
4951 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 ac_save_LIBS="$LIBS"
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 /* Override any gcc2 internal prototype to avoid an error. */
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4971 eval "ac_cv_lib_$ac_lib_var=yes"
4973 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4976 eval "ac_cv_lib_$ac_lib_var=no"
4979 LIBS="$ac_save_LIBS"
4982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4983 echo "$ac_t""yes" 1>&6
4984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4986 echo "$ac_t""no" 1>&6
4987 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4988 echo "configure:4989: checking for dld_link in -ldld" >&5
4989 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4993 ac_save_LIBS="$LIBS"
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 /* Override any gcc2 internal prototype to avoid an error. */
4999 /* We use char because int might match the return type of a gcc2
5000 builtin and then its argument prototype would still apply. */
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009 eval "ac_cv_lib_$ac_lib_var=yes"
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 eval "ac_cv_lib_$ac_lib_var=no"
5017 LIBS="$ac_save_LIBS"
5020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5021 echo "$ac_t""yes" 1>&6
5022 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5024 echo "$ac_t""no" 1>&6
5045 if test "x$lt_cv_dlopen" != xno; then
5051 case $lt_cv_dlopen in
5053 save_CPPFLAGS="$CPPFLAGS"
5054 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5056 save_LDFLAGS="$LDFLAGS"
5057 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5060 LIBS="$lt_cv_dlopen_libs $LIBS"
5062 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
5063 echo "configure:5064: checking whether a program can dlopen itself" >&5
5064 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 if test "$cross_compiling" = yes; then :
5068 lt_cv_dlopen_self=cross
5070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5071 lt_status=$lt_dlunknown
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5083 # define LT_DLGLOBAL RTLD_GLOBAL
5086 # define LT_DLGLOBAL DL_GLOBAL
5088 # define LT_DLGLOBAL 0
5092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5093 find out it does not work in some platform. */
5094 #ifndef LT_DLLAZY_OR_NOW
5096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5099 # define LT_DLLAZY_OR_NOW DL_LAZY
5102 # define LT_DLLAZY_OR_NOW RTLD_NOW
5105 # define LT_DLLAZY_OR_NOW DL_NOW
5107 # define LT_DLLAZY_OR_NOW 0
5115 extern "C" void exit (int);
5118 void fnord() { int i=42;}
5121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5122 int status = $lt_dlunknown;
5126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5128 /* dlclose (self); */
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
5135 (./conftest; exit; ) 2>/dev/null
5138 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5139 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5140 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5143 # compilation failed
5144 lt_cv_dlopen_self=no
5152 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
5154 if test "x$lt_cv_dlopen_self" = xyes; then
5155 LDFLAGS="$LDFLAGS $link_static_flag"
5156 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
5157 echo "configure:5158: checking whether a statically linked program can dlopen itself" >&5
5158 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5161 if test "$cross_compiling" = yes; then :
5162 lt_cv_dlopen_self_static=cross
5164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5165 lt_status=$lt_dlunknown
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5177 # define LT_DLGLOBAL RTLD_GLOBAL
5180 # define LT_DLGLOBAL DL_GLOBAL
5182 # define LT_DLGLOBAL 0
5186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5187 find out it does not work in some platform. */
5188 #ifndef LT_DLLAZY_OR_NOW
5190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5193 # define LT_DLLAZY_OR_NOW DL_LAZY
5196 # define LT_DLLAZY_OR_NOW RTLD_NOW
5199 # define LT_DLLAZY_OR_NOW DL_NOW
5201 # define LT_DLLAZY_OR_NOW 0
5209 extern "C" void exit (int);
5212 void fnord() { int i=42;}
5215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5216 int status = $lt_dlunknown;
5220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5222 /* dlclose (self); */
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
5229 (./conftest; exit; ) 2>/dev/null
5232 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5233 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5234 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5237 # compilation failed
5238 lt_cv_dlopen_self_static=no
5246 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
5249 CPPFLAGS="$save_CPPFLAGS"
5250 LDFLAGS="$save_LDFLAGS"
5255 case $lt_cv_dlopen_self in
5256 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5257 *) enable_dlopen_self=unknown ;;
5260 case $lt_cv_dlopen_self_static in
5261 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5262 *) enable_dlopen_self_static=unknown ;;
5267 if test "$enable_shared" = yes && test "$GCC" = yes; then
5268 case $archive_cmds in
5270 # FIXME: we may have to deal with multi-command sequences.
5273 # Test whether the compiler implicitly links with -lc since on some
5274 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5275 # to ld, don't add -lc before -lgcc.
5276 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
5277 echo "configure:5278: checking whether -lc should be explicitly linked in" >&5
5278 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5282 echo 'static int dummy;' > conftest.$ac_ext
5284 if { (eval echo configure:5285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5287 libobjs=conftest.$ac_objext
5289 wl=$lt_cv_prog_cc_wl
5295 save_allow_undefined_flag=$allow_undefined_flag
5296 allow_undefined_flag=
5297 if { (eval echo configure:5298: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
5299 lt_cv_archive_cmds_need_lc=no
5301 lt_cv_archive_cmds_need_lc=yes
5303 allow_undefined_flag=$save_allow_undefined_flag
5305 cat conftest.err 1>&5
5309 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5313 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5315 # The second clause should only fire when bootstrapping the
5316 # libtool distribution, otherwise you forgot to ship ltmain.sh
5317 # with your package, and you will get complaints that there are
5318 # no rules to generate ltmain.sh.
5319 if test -f "$ltmain"; then
5322 # If there is no Makefile yet, we rely on a make rule to execute
5323 # `config.status --recheck' to rerun these tests and create the
5324 # libtool script then.
5325 test -f Makefile && make "$ltmain"
5328 if test -f "$ltmain"; then
5329 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5332 echo creating $ofile
5334 # Now quote all the things that may contain metacharacters while being
5335 # careful not to overquote the AC_SUBSTed values. We take copies of the
5336 # variables and quote the copies for generation of the libtool script.
5337 for var in echo old_CC old_CFLAGS \
5338 AR AR_FLAGS CC LD LN_S NM SHELL \
5339 reload_flag reload_cmds wl \
5340 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5341 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5342 library_names_spec soname_spec \
5343 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5344 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5345 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5346 old_striplib striplib file_magic_cmd export_symbols_cmds \
5347 deplibs_check_method allow_undefined_flag no_undefined_flag \
5348 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5349 global_symbol_to_c_name_address \
5350 hardcode_libdir_flag_spec hardcode_libdir_separator \
5351 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5352 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5355 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5356 old_postinstall_cmds | old_postuninstall_cmds | \
5357 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5358 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5359 postinstall_cmds | postuninstall_cmds | \
5360 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5361 # Double-quote double-evaled strings.
5362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5370 cat <<__EOF__ > "${ofile}T"
5373 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5374 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5377 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5378 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5380 # This program is free software; you can redistribute it and/or modify
5381 # it under the terms of the GNU General Public License as published by
5382 # the Free Software Foundation; either version 2 of the License, or
5383 # (at your option) any later version.
5385 # This program is distributed in the hope that it will be useful, but
5386 # WITHOUT ANY WARRANTY; without even the implied warranty of
5387 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5388 # General Public License for more details.
5390 # You should have received a copy of the GNU General Public License
5391 # along with this program; if not, write to the Free Software
5392 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5394 # As a special exception to the GNU General Public License, if you
5395 # distribute this file as part of a program that contains a
5396 # configuration script generated by Autoconf, you may include it under
5397 # the same distribution terms that you use for the rest of that program.
5399 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5400 Xsed="sed -e s/^X//"
5402 # The HP-UX ksh and POSIX shell print the target directory to stdout
5404 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5406 # ### BEGIN LIBTOOL CONFIG
5408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5410 # Shell to use when invoking shell scripts.
5413 # Whether or not to build shared libraries.
5414 build_libtool_libs=$enable_shared
5416 # Whether or not to build static libraries.
5417 build_old_libs=$enable_static
5419 # Whether or not to add -lc for building shared libraries.
5420 build_libtool_need_lc=$need_lc
5422 # Whether or not to optimize for fast installation.
5423 fast_install=$enable_fast_install
5426 host_alias=$host_alias
5429 # An echo program that does not interpret backslashes.
5434 AR_FLAGS=$lt_AR_FLAGS
5436 # The default C compiler.
5439 # Is the compiler the GNU C compiler?
5442 # The linker used to build libraries.
5445 # Whether we need hard or soft links.
5448 # A BSD-compatible nm program.
5451 # A symbol stripping program
5454 # Used to examine libraries when file_magic_cmd begins "file"
5455 MAGIC_CMD=$MAGIC_CMD
5457 # Used on cygwin: DLL creation program.
5460 # Used on cygwin: object dumper.
5463 # Used on cygwin: assembler.
5466 # The name of the directory that contains temporary libtool files.
5469 # How to create reloadable object files.
5470 reload_flag=$lt_reload_flag
5471 reload_cmds=$lt_reload_cmds
5473 # How to pass a linker flag through the compiler.
5476 # Object file suffix (normally "o").
5479 # Old archive suffix (normally "a").
5482 # Executable file suffix (normally "").
5485 # Additional compiler flags for building library objects.
5486 pic_flag=$lt_pic_flag
5489 # Does compiler simultaneously support -c and -o options?
5490 compiler_c_o=$lt_compiler_c_o
5492 # Can we write directly to a .lo ?
5493 compiler_o_lo=$lt_compiler_o_lo
5495 # Must we lock files when doing compilation ?
5496 need_locks=$lt_need_locks
5498 # Do we need the lib prefix for modules?
5499 need_lib_prefix=$need_lib_prefix
5501 # Do we need a version for libraries?
5502 need_version=$need_version
5504 # Whether dlopen is supported.
5505 dlopen_support=$enable_dlopen
5507 # Whether dlopen of programs is supported.
5508 dlopen_self=$enable_dlopen_self
5510 # Whether dlopen of statically linked programs is supported.
5511 dlopen_self_static=$enable_dlopen_self_static
5513 # Compiler flag to prevent dynamic linking.
5514 link_static_flag=$lt_link_static_flag
5516 # Compiler flag to turn off builtin functions.
5517 no_builtin_flag=$lt_no_builtin_flag
5519 # Compiler flag to allow reflexive dlopens.
5520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5522 # Compiler flag to generate shared objects directly from archives.
5523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5525 # Compiler flag to generate thread-safe objects.
5526 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5528 # Library versioning type.
5529 version_type=$version_type
5531 # Format of library name prefix.
5532 libname_spec=$lt_libname_spec
5534 # List of archive names. First name is the real one, the rest are links.
5535 # The last name is the one that the linker finds with -lNAME.
5536 library_names_spec=$lt_library_names_spec
5538 # The coded name of the library, if different from the real name.
5539 soname_spec=$lt_soname_spec
5541 # Commands used to build and install an old-style archive.
5543 old_archive_cmds=$lt_old_archive_cmds
5544 old_postinstall_cmds=$lt_old_postinstall_cmds
5545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5547 # Create an old-style archive from a shared archive.
5548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5550 # Create a temporary old-style archive to link instead of a shared archive.
5551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5553 # Commands used to build and install a shared archive.
5554 archive_cmds=$lt_archive_cmds
5555 archive_expsym_cmds=$lt_archive_expsym_cmds
5556 postinstall_cmds=$lt_postinstall_cmds
5557 postuninstall_cmds=$lt_postuninstall_cmds
5559 # Commands to strip libraries.
5560 old_striplib=$lt_old_striplib
5561 striplib=$lt_striplib
5563 # Method to check whether dependent libraries are shared objects.
5564 deplibs_check_method=$lt_deplibs_check_method
5566 # Command to use when deplibs_check_method == file_magic.
5567 file_magic_cmd=$lt_file_magic_cmd
5569 # Flag that allows shared libraries with undefined symbols to be built.
5570 allow_undefined_flag=$lt_allow_undefined_flag
5572 # Flag that forces no undefined symbols.
5573 no_undefined_flag=$lt_no_undefined_flag
5575 # Commands used to finish a libtool library installation in a directory.
5576 finish_cmds=$lt_finish_cmds
5578 # Same as above, but a single script fragment to be evaled but not shown.
5579 finish_eval=$lt_finish_eval
5581 # Take the output of nm and produce a listing of raw symbols and C names.
5582 global_symbol_pipe=$lt_global_symbol_pipe
5584 # Transform the output of nm in a proper C declaration
5585 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5587 # Transform the output of nm in a C name address pair
5588 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5590 # This is the shared library runtime path variable.
5591 runpath_var=$runpath_var
5593 # This is the shared library path variable.
5594 shlibpath_var=$shlibpath_var
5596 # Is shlibpath searched before the hard-coded library search path?
5597 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5599 # How to hardcode a shared library path into an executable.
5600 hardcode_action=$hardcode_action
5602 # Whether we should hardcode library paths into libraries.
5603 hardcode_into_libs=$hardcode_into_libs
5605 # Flag to hardcode \$libdir into a binary during linking.
5606 # This must work even if \$libdir does not exist.
5607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5609 # Whether we need a single -rpath flag with a separated argument.
5610 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5612 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5614 hardcode_direct=$hardcode_direct
5616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5618 hardcode_minus_L=$hardcode_minus_L
5620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5621 # the resulting binary.
5622 hardcode_shlibpath_var=$hardcode_shlibpath_var
5624 # Variables whose values should be saved in libtool wrapper scripts and
5625 # restored at relink time.
5626 variables_saved_for_relink="$variables_saved_for_relink"
5628 # Whether libtool must link a program against all its dependency libraries.
5629 link_all_deplibs=$link_all_deplibs
5631 # Compile-time system search path for libraries
5632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5634 # Run-time system search path for libraries
5635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5637 # Fix the shell variable \$srcfile for the compiler.
5638 fix_srcfile_path="$fix_srcfile_path"
5640 # Set to yes if exported symbols are required.
5641 always_export_symbols=$always_export_symbols
5643 # The commands to list exported symbols.
5644 export_symbols_cmds=$lt_export_symbols_cmds
5646 # The commands to extract the exported symbol list from a shared archive.
5647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5649 # Symbols that should not be listed in the preloaded symbols.
5650 exclude_expsyms=$lt_exclude_expsyms
5652 # Symbols that must always be exported.
5653 include_expsyms=$lt_include_expsyms
5655 # ### END LIBTOOL CONFIG
5661 cat <<\EOF >> "${ofile}T"
5663 # AIX sometimes has problems with the GCC collect2 program. For some
5664 # reason, if we set the COLLECT_NAMES environment variable, the problems
5665 # vanish in a puff of smoke.
5666 if test "X${COLLECT_NAMES+set}" != Xset; then
5668 export COLLECT_NAMES
5675 cygwin* | mingw* | pw32* | os2*)
5676 cat <<'EOF' >> "${ofile}T"
5677 # This is a source program that is used to create dlls on Windows
5678 # Don't remove nor modify the starting and closing comments
5679 # /* ltdll.c starts here */
5680 # #define WIN32_LEAN_AND_MEAN
5681 # #include <windows.h>
5682 # #undef WIN32_LEAN_AND_MEAN
5683 # #include <stdio.h>
5685 # #ifndef __CYGWIN__
5686 # # ifdef __CYGWIN32__
5687 # # define __CYGWIN__ __CYGWIN32__
5691 # #ifdef __cplusplus
5694 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5695 # #ifdef __cplusplus
5700 # #include <cygwin/cygwin_dll.h>
5701 # DECLARE_CYGWIN_DLL( DllMain );
5703 # HINSTANCE __hDllInstance_base;
5706 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5708 # __hDllInstance_base = hInst;
5711 # /* ltdll.c ends here */
5712 # This is a source program that is used to create import libraries
5713 # on Windows for dlls which lack them. Don't remove nor modify the
5714 # starting and closing comments
5715 # /* impgen.c starts here */
5716 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5718 # This file is part of GNU libtool.
5720 # This program is free software; you can redistribute it and/or modify
5721 # it under the terms of the GNU General Public License as published by
5722 # the Free Software Foundation; either version 2 of the License, or
5723 # (at your option) any later version.
5725 # This program is distributed in the hope that it will be useful,
5726 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5728 # GNU General Public License for more details.
5730 # You should have received a copy of the GNU General Public License
5731 # along with this program; if not, write to the Free Software
5732 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5735 # #include <stdio.h> /* for printf() */
5736 # #include <unistd.h> /* for open(), lseek(), read() */
5737 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5738 # #include <string.h> /* for strdup() */
5740 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5742 # #define O_BINARY 0
5745 # static unsigned int
5746 # pe_get16 (fd, offset)
5750 # unsigned char b[2];
5751 # lseek (fd, offset, SEEK_SET);
5753 # return b[0] + (b[1]<<8);
5756 # static unsigned int
5757 # pe_get32 (fd, offset)
5761 # unsigned char b[4];
5762 # lseek (fd, offset, SEEK_SET);
5764 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5767 # static unsigned int
5771 # unsigned char *b = ptr;
5772 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5781 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5782 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5783 # unsigned long name_rvas, nexp;
5784 # unsigned char *expdata, *erva;
5785 # char *filename, *dll_name;
5787 # filename = argv[1];
5789 # dll = open(filename, O_RDONLY|O_BINARY);
5793 # dll_name = filename;
5795 # for (i=0; filename[i]; i++)
5796 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5797 # dll_name = filename + i +1;
5799 # pe_header_offset = pe_get32 (dll, 0x3c);
5800 # opthdr_ofs = pe_header_offset + 4 + 20;
5801 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5803 # if (num_entries < 1) /* no exports */
5806 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5807 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5808 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5809 # secptr = (pe_header_offset + 4 + 20 +
5810 # pe_get16 (dll, pe_header_offset + 4 + 16));
5813 # for (i = 0; i < nsections; i++)
5816 # unsigned long secptr1 = secptr + 40 * i;
5817 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5818 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5819 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5820 # lseek(dll, secptr1, SEEK_SET);
5821 # read(dll, sname, 8);
5822 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5824 # expptr = fptr + (export_rva - vaddr);
5825 # if (export_rva + export_size > vaddr + vsize)
5826 # export_size = vsize - (export_rva - vaddr);
5831 # expdata = (unsigned char*)malloc(export_size);
5832 # lseek (dll, expptr, SEEK_SET);
5833 # read (dll, expdata, export_size);
5834 # erva = expdata - export_rva;
5836 # nexp = pe_as32 (expdata+24);
5837 # name_rvas = pe_as32 (expdata+32);
5839 # printf ("EXPORTS\n");
5840 # for (i = 0; i<nexp; i++)
5842 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5843 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5848 # /* impgen.c ends here */
5854 # We use sed instead of cat because bash on DJGPP gets confused if
5855 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5856 # text mode, it properly converts lines to CR/LF. This bash problem
5857 # is reportedly fixed, but why not run on old versions too?
5858 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5860 mv -f "${ofile}T" "$ofile" || \
5861 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5869 # This can be used to rebuild libtool when needed
5870 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5872 # Always use our own libtool.
5873 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5875 # Prevent multiple expansion
5880 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5881 echo "configure:5882: checking for ANSI C header files" >&5
5882 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5885 cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5894 { (eval echo configure:5895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5896 if test -z "$ac_err"; then
5898 ac_cv_header_stdc=yes
5901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5904 ac_cv_header_stdc=no
5908 if test $ac_cv_header_stdc = yes; then
5909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916 egrep "memchr" >/dev/null 2>&1; then
5920 ac_cv_header_stdc=no
5926 if test $ac_cv_header_stdc = yes; then
5927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5934 egrep "free" >/dev/null 2>&1; then
5938 ac_cv_header_stdc=no
5944 if test $ac_cv_header_stdc = yes; then
5945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5946 if test "$cross_compiling" = yes; then
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5953 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5954 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5956 int main () { int i; for (i = 0; i < 256; i++)
5957 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 ac_cv_header_stdc=no
5976 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5977 if test $ac_cv_header_stdc = yes; then
5978 cat >> confdefs.h <<\EOF
5979 #define STDC_HEADERS 1
5985 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5988 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_hdr that defines DIR" >&5
5990 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 #include <sys/types.h>
6002 if { (eval echo configure:6003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6004 eval "ac_cv_header_dirent_$ac_safe=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 eval "ac_cv_header_dirent_$ac_safe=no"
6013 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6016 cat >> confdefs.h <<EOF
6017 #define $ac_tr_hdr 1
6019 ac_header_dirent=$ac_hdr; break
6021 echo "$ac_t""no" 1>&6
6024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6025 if test $ac_header_dirent = dirent.h; then
6026 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6027 echo "configure:6028: checking for opendir in -ldir" >&5
6028 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 ac_save_LIBS="$LIBS"
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 /* Override any gcc2 internal prototype to avoid an error. */
6038 /* We use char because int might match the return type of a gcc2
6039 builtin and then its argument prototype would still apply. */
6046 if { (eval echo configure:6047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6048 eval "ac_cv_lib_$ac_lib_var=yes"
6050 echo "configure: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6053 eval "ac_cv_lib_$ac_lib_var=no"
6056 LIBS="$ac_save_LIBS"
6059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6063 echo "$ac_t""no" 1>&6
6067 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6068 echo "configure:6069: checking for opendir in -lx" >&5
6069 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6073 ac_save_LIBS="$LIBS"
6075 cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure"
6077 #include "confdefs.h"
6078 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6089 eval "ac_cv_lib_$ac_lib_var=yes"
6091 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6094 eval "ac_cv_lib_$ac_lib_var=no"
6097 LIBS="$ac_save_LIBS"
6100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6101 echo "$ac_t""yes" 1>&6
6104 echo "$ac_t""no" 1>&6
6109 echo $ac_n "checking whether $CC supports assert without backlinking""... $ac_c" 1>&6
6110 echo "configure:6111: checking whether $CC supports assert without backlinking" >&5
6111 if eval "test \"`echo '$''{'lt_cv_func_assert_works'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6116 if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
6117 case `$CC --version 2>/dev/null` in
6118 [12].*) lt_cv_func_assert_works=no ;;
6119 *) lt_cv_func_assert_works=yes ;;
6126 echo "$ac_t""$lt_cv_func_assert_works" 1>&6
6128 if test "x$lt_cv_func_assert_works" = xyes; then
6129 for ac_hdr in assert.h
6131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6133 echo "configure:6134: checking for $ac_hdr" >&5
6134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6143 { (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6145 if test -z "$ac_err"; then
6147 eval "ac_cv_header_$ac_safe=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_header_$ac_safe=no"
6157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6158 echo "$ac_t""yes" 1>&6
6159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6160 cat >> confdefs.h <<EOF
6161 #define $ac_tr_hdr 1
6165 echo "$ac_t""no" 1>&6
6171 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6172 if test "${enable_ltdl_install+set}" = set; then
6173 enableval="$enable_ltdl_install"
6180 if test x"${enable_ltdl_install-no}" != xno; then
6182 INSTALL_LTDL_FALSE='#'
6184 INSTALL_LTDL_TRUE='#'
6189 if test x"${enable_ltdl_convenience-no}" != xno; then
6190 CONVENIENCE_LTDL_TRUE=
6191 CONVENIENCE_LTDL_FALSE='#'
6193 CONVENIENCE_LTDL_TRUE='#'
6194 CONVENIENCE_LTDL_FALSE=
6198 echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
6199 echo "configure:6200: checking which extension is used for shared libraries" >&5
6200 if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6204 for ac_spec in $library_names_spec; do
6207 echo "$ac_last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
6208 libltdl_cv_shlibext=`cat conftest`
6213 echo "$ac_t""$libltdl_cv_shlibext" 1>&6
6214 if test -n "$libltdl_cv_shlibext"; then
6215 cat >> confdefs.h <<EOF
6216 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
6222 echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
6223 echo "configure:6224: checking which variable specifies run-time library path" >&5
6224 if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6227 libltdl_cv_shlibpath_var="$shlibpath_var"
6230 echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
6231 if test -n "$libltdl_cv_shlibpath_var"; then
6232 cat >> confdefs.h <<EOF
6233 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6239 echo $ac_n "checking for the default library search path""... $ac_c" 1>&6
6240 echo "configure:6241: checking for the default library search path" >&5
6241 if eval "test \"`echo '$''{'libltdl_cv_sys_search_path'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6244 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
6247 echo "$ac_t""$libltdl_cv_sys_search_path" 1>&6
6248 if test -n "$libltdl_cv_sys_search_path"; then
6250 *-*-mingw*) pathsep=";" ;;
6254 for dir in $libltdl_cv_sys_search_path; do
6255 if test -z "$sys_search_path"; then
6256 sys_search_path="$dir"
6258 sys_search_path="$sys_search_path$pathsep$dir"
6261 cat >> confdefs.h <<EOF
6262 #define LTDL_SYSSEARCHPATH "$sys_search_path"
6267 echo $ac_n "checking for objdir""... $ac_c" 1>&6
6268 echo "configure:6269: checking for objdir" >&5
6269 if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6272 libltdl_cv_objdir="$objdir"
6273 if test -n "$objdir"; then
6276 rm -f .libs 2>/dev/null
6277 mkdir .libs 2>/dev/null
6278 if test -d .libs; then
6279 libltdl_cv_objdir=.libs
6281 # MS-DOS does not allow filenames that begin with a dot.
6282 libltdl_cv_objdir=_libs
6284 rmdir .libs 2>/dev/null
6288 echo "$ac_t""$libltdl_cv_objdir" 1>&6
6289 cat >> confdefs.h <<EOF
6290 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
6294 echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
6295 echo "configure:6296: checking whether libtool supports -dlopen/-dlpreopen" >&5
6296 if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 if test -n "$global_symbol_pipe"; then
6300 libltdl_cv_preloaded_symbols=yes
6302 libltdl_cv_preloaded_symbols=no
6307 echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
6308 if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
6309 cat >> confdefs.h <<\EOF
6310 #define HAVE_PRELOADED_SYMBOLS 1
6318 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6319 echo "configure:6320: checking for shl_load" >&5
6320 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* System header to define __stub macros and hopefully few prototypes,
6327 which can conflict with char shl_load(); below. */
6329 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6347 if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6349 eval "ac_cv_func_shl_load=yes"
6351 echo "configure: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6354 eval "ac_cv_func_shl_load=no"
6359 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6360 echo "$ac_t""yes" 1>&6
6361 cat >> confdefs.h <<\EOF
6362 #define HAVE_SHL_LOAD 1
6366 echo "$ac_t""no" 1>&6
6367 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6368 echo "configure:6369: checking for shl_load in -ldld" >&5
6369 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
6370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 ac_save_LIBS="$LIBS"
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 /* Override any gcc2 internal prototype to avoid an error. */
6379 /* We use char because int might match the return type of a gcc2
6380 builtin and then its argument prototype would still apply. */
6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6389 eval "ac_cv_lib_$ac_lib_var=yes"
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6394 eval "ac_cv_lib_$ac_lib_var=no"
6397 LIBS="$ac_save_LIBS"
6400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6401 echo "$ac_t""yes" 1>&6
6402 cat >> confdefs.h <<\EOF
6403 #define HAVE_SHL_LOAD 1
6406 LIBADD_DL="$LIBADD_DL -ldld"
6408 echo "$ac_t""no" 1>&6
6409 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6410 echo "configure:6411: checking for dlopen in -ldl" >&5
6411 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6415 ac_save_LIBS="$LIBS"
6417 cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6429 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6431 eval "ac_cv_lib_$ac_lib_var=yes"
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6436 eval "ac_cv_lib_$ac_lib_var=no"
6439 LIBS="$ac_save_LIBS"
6442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6443 echo "$ac_t""yes" 1>&6
6444 cat >> confdefs.h <<\EOF
6445 #define HAVE_LIBDL 1
6450 echo "$ac_t""no" 1>&6
6451 cat > conftest.$ac_ext <<EOF
6452 #line 6453 "configure"
6453 #include "confdefs.h"
6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6464 cat >> confdefs.h <<\EOF
6465 #define HAVE_LIBDL 1
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6472 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6473 echo "configure:6474: checking for dlopen in -lsvld" >&5
6474 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
6475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6476 echo $ac_n "(cached) $ac_c" 1>&6
6478 ac_save_LIBS="$LIBS"
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 /* Override any gcc2 internal prototype to avoid an error. */
6484 /* We use char because int might match the return type of a gcc2
6485 builtin and then its argument prototype would still apply. */
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6494 eval "ac_cv_lib_$ac_lib_var=yes"
6496 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 eval "ac_cv_lib_$ac_lib_var=no"
6502 LIBS="$ac_save_LIBS"
6505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6506 echo "$ac_t""yes" 1>&6
6507 cat >> confdefs.h <<\EOF
6508 #define HAVE_LIBDL 1
6513 echo "$ac_t""no" 1>&6
6514 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6515 echo "configure:6516: checking for dld_link in -ldld" >&5
6516 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
6517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6520 ac_save_LIBS="$LIBS"
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* Override any gcc2 internal prototype to avoid an error. */
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6536 eval "ac_cv_lib_$ac_lib_var=yes"
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6541 eval "ac_cv_lib_$ac_lib_var=no"
6544 LIBS="$ac_save_LIBS"
6547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6548 echo "$ac_t""yes" 1>&6
6549 cat >> confdefs.h <<\EOF
6553 LIBADD_DL="$LIBADD_DL -ldld"
6556 echo "$ac_t""no" 1>&6
6575 if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
6577 LIBS="$LIBS $LIBADD_DL"
6578 for ac_func in dlerror
6580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6581 echo "configure:6582: checking for $ac_func" >&5
6582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6583 echo $ac_n "(cached) $ac_c" 1>&6
6585 cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* System header to define __stub macros and hopefully few prototypes,
6589 which can conflict with char $ac_func(); below. */
6591 /* Override any gcc2 internal prototype to avoid an error. */
6592 /* We use char because int might match the return type of a gcc2
6593 builtin and then its argument prototype would still apply. */
6598 /* The GNU C library defines this for functions which it implements
6599 to always fail with ENOSYS. Some functions are actually named
6600 something starting with __ and the normal name is an alias. */
6601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 eval "ac_cv_func_$ac_func=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 eval "ac_cv_func_$ac_func=no"
6621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6624 cat >> confdefs.h <<EOF
6625 #define $ac_tr_func 1
6629 echo "$ac_t""no" 1>&6
6636 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
6637 echo "configure:6638: checking for _ prefix in compiled symbols" >&5
6638 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 ac_cv_sys_symbol_underscore=no
6642 cat > conftest.$ac_ext <<EOF
6643 void nm_test_func(){}
6644 int main(){nm_test_func;return 0;}
6646 if { (eval echo configure:6647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6647 # Now try to grab the symbols.
6648 ac_nlist=conftest.nm
6649 if { (eval echo configure:6650: \"$NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
6650 # See whether the symbols have a leading underscore.
6651 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
6652 ac_cv_sys_symbol_underscore=yes
6654 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
6657 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
6661 echo "configure: cannot run $global_symbol_pipe" >&5
6664 echo "configure: failed program was:" >&5
6671 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
6673 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
6674 if test x"$ac_cv_func_dlopen" = xyes ||
6675 test x"$ac_cv_lib_dl_dlopen" = xyes ; then
6676 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
6677 echo "configure:6678: checking whether we have to add an underscore for dlsym" >&5
6678 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
6679 echo $ac_n "(cached) $ac_c" 1>&6
6681 libltdl_cv_need_uscore=unknown
6683 LIBS="$LIBS $LIBADD_DL"
6684 if test "$cross_compiling" = yes; then :
6685 libltdl_cv_need_uscore=cross
6687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6688 lt_status=$lt_dlunknown
6689 cat > conftest.$ac_ext <<EOF
6690 #line 6691 "configure"
6691 #include "confdefs.h"
6700 # define LT_DLGLOBAL RTLD_GLOBAL
6703 # define LT_DLGLOBAL DL_GLOBAL
6705 # define LT_DLGLOBAL 0
6709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6710 find out it does not work in some platform. */
6711 #ifndef LT_DLLAZY_OR_NOW
6713 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6716 # define LT_DLLAZY_OR_NOW DL_LAZY
6719 # define LT_DLLAZY_OR_NOW RTLD_NOW
6722 # define LT_DLLAZY_OR_NOW DL_NOW
6724 # define LT_DLLAZY_OR_NOW 0
6732 extern "C" void exit (int);
6735 void fnord() { int i=42;}
6738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6739 int status = $lt_dlunknown;
6743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6745 /* dlclose (self); */
6751 if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6752 (./conftest; exit; ) 2>/dev/null
6755 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
6756 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
6760 # compilation failed
6770 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
6774 if test x"$libltdl_cv_need_uscore" = xyes; then
6775 cat >> confdefs.h <<\EOF
6776 #define NEED_USCORE 1
6782 echo $ac_n "checking whether deplibs are loaded by dlopen""... $ac_c" 1>&6
6783 echo "configure:6784: checking whether deplibs are loaded by dlopen" >&5
6784 if eval "test \"`echo '$''{'libltdl_cv_sys_dlopen_deplibs'+set}'`\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6787 # PORTME does your system automatically load deplibs for dlopen()?
6788 libltdl_cv_sys_dlopen_deplibs=unknown
6791 libltdl_cv_sys_dlopen_deplibs=yes
6794 libltdl_cv_sys_dlopen_deplibs=yes
6797 libltdl_cv_sys_dlopen_deplibs=yes
6800 libltdl_cv_sys_dlopen_deplibs=yes
6806 echo "$ac_t""$libltdl_cv_sys_dlopen_deplibs" 1>&6
6807 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
6808 cat >> confdefs.h <<\EOF
6809 #define LTDL_DLOPEN_DEPLIBS 1
6814 for ac_hdr in argz.h
6816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6818 echo "configure:6819: checking for $ac_hdr" >&5
6819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6828 { (eval echo configure:6829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6830 if test -z "$ac_err"; then
6832 eval "ac_cv_header_$ac_safe=yes"
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6838 eval "ac_cv_header_$ac_safe=no"
6842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6845 cat >> confdefs.h <<EOF
6846 #define $ac_tr_hdr 1
6850 echo "$ac_t""no" 1>&6
6855 echo $ac_n "checking for error_t""... $ac_c" 1>&6
6856 echo "configure:6857: checking for error_t" >&5
6857 if eval "test \"`echo '$''{'ac_Type'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6869 if (sizeof (error_t))
6873 if { (eval echo configure:6874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877 echo "configure: failed program was:" >&5
6878 cat conftest.$ac_ext >&5
6885 echo "$ac_t""$ac_Type" 1>&6
6886 if test "x$ac_Type" = xyes; then
6889 cat >> confdefs.h <<\EOF
6895 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
6897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6898 echo "configure:6899: checking for $ac_func" >&5
6899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6902 cat > conftest.$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6905 /* System header to define __stub macros and hopefully few prototypes,
6906 which can conflict with char $ac_func(); below. */
6908 /* Override any gcc2 internal prototype to avoid an error. */
6909 /* We use char because int might match the return type of a gcc2
6910 builtin and then its argument prototype would still apply. */
6915 /* The GNU C library defines this for functions which it implements
6916 to always fail with ENOSYS. Some functions are actually named
6917 something starting with __ and the normal name is an alias. */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6926 if { (eval echo configure:6927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6928 eval "ac_cv_func_$ac_func=yes"
6930 echo "configure: failed program was:" >&5
6931 cat conftest.$ac_ext >&5
6933 eval "ac_cv_func_$ac_func=no"
6938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6939 echo "$ac_t""yes" 1>&6
6940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6941 cat >> confdefs.h <<EOF
6942 #define $ac_tr_func 1
6946 echo "$ac_t""no" 1>&6
6970 for ac_hdr in errno.h malloc.h memory.h stdlib.h stdio.h ctype.h unistd.h
6972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6974 echo "configure:6975: checking for $ac_hdr" >&5
6975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6978 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6984 { (eval echo configure:6985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6986 if test -z "$ac_err"; then
6988 eval "ac_cv_header_$ac_safe=yes"
6991 echo "configure: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6994 eval "ac_cv_header_$ac_safe=no"
6998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6999 echo "$ac_t""yes" 1>&6
7000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7001 cat >> confdefs.h <<EOF
7002 #define $ac_tr_hdr 1
7006 echo "$ac_t""no" 1>&6
7010 for ac_hdr in dl.h sys/dl.h dld.h
7012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7014 echo "configure:7015: checking for $ac_hdr" >&5
7015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7016 echo $ac_n "(cached) $ac_c" 1>&6
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7024 { (eval echo configure:7025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7026 if test -z "$ac_err"; then
7028 eval "ac_cv_header_$ac_safe=yes"
7031 echo "configure: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7034 eval "ac_cv_header_$ac_safe=no"
7038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7041 cat >> confdefs.h <<EOF
7042 #define $ac_tr_hdr 1
7046 echo "$ac_t""no" 1>&6
7050 for ac_hdr in string.h strings.h
7052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7054 echo "configure:7055: checking for $ac_hdr" >&5
7055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7056 echo $ac_n "(cached) $ac_c" 1>&6
7058 cat > conftest.$ac_ext <<EOF
7059 #line 7060 "configure"
7060 #include "confdefs.h"
7063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7064 { (eval echo configure:7065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7066 if test -z "$ac_err"; then
7068 eval "ac_cv_header_$ac_safe=yes"
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7074 eval "ac_cv_header_$ac_safe=no"
7078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7079 echo "$ac_t""yes" 1>&6
7080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7081 cat >> confdefs.h <<EOF
7082 #define $ac_tr_hdr 1
7086 echo "$ac_t""no" 1>&6
7091 for ac_func in strchr index
7093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7094 echo "configure:7095: checking for $ac_func" >&5
7095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7096 echo $ac_n "(cached) $ac_c" 1>&6
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 /* System header to define __stub macros and hopefully few prototypes,
7102 which can conflict with char $ac_func(); below. */
7104 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7111 /* The GNU C library defines this for functions which it implements
7112 to always fail with ENOSYS. Some functions are actually named
7113 something starting with __ and the normal name is an alias. */
7114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7122 if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7124 eval "ac_cv_func_$ac_func=yes"
7126 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7129 eval "ac_cv_func_$ac_func=no"
7134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7135 echo "$ac_t""yes" 1>&6
7136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7137 cat >> confdefs.h <<EOF
7138 #define $ac_tr_func 1
7142 echo "$ac_t""no" 1>&6
7146 for ac_func in strrchr rindex
7148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7149 echo "configure:7150: checking for $ac_func" >&5
7150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7153 cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7156 /* System header to define __stub macros and hopefully few prototypes,
7157 which can conflict with char $ac_func(); below. */
7159 /* Override any gcc2 internal prototype to avoid an error. */
7160 /* We use char because int might match the return type of a gcc2
7161 builtin and then its argument prototype would still apply. */
7166 /* The GNU C library defines this for functions which it implements
7167 to always fail with ENOSYS. Some functions are actually named
7168 something starting with __ and the normal name is an alias. */
7169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179 eval "ac_cv_func_$ac_func=yes"
7181 echo "configure: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7184 eval "ac_cv_func_$ac_func=no"
7189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7190 echo "$ac_t""yes" 1>&6
7191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7192 cat >> confdefs.h <<EOF
7193 #define $ac_tr_func 1
7197 echo "$ac_t""no" 1>&6
7201 for ac_func in memcpy bcopy
7203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7204 echo "configure:7205: checking for $ac_func" >&5
7205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7206 echo $ac_n "(cached) $ac_c" 1>&6
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 /* System header to define __stub macros and hopefully few prototypes,
7212 which can conflict with char $ac_func(); below. */
7214 /* Override any gcc2 internal prototype to avoid an error. */
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7221 /* The GNU C library defines this for functions which it implements
7222 to always fail with ENOSYS. Some functions are actually named
7223 something starting with __ and the normal name is an alias. */
7224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7232 if { (eval echo configure:7233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7234 eval "ac_cv_func_$ac_func=yes"
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 eval "ac_cv_func_$ac_func=no"
7244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7245 echo "$ac_t""yes" 1>&6
7246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7247 cat >> confdefs.h <<EOF
7248 #define $ac_tr_func 1
7252 echo "$ac_t""no" 1>&6
7256 for ac_func in memmove strcmp
7258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7259 echo "configure:7260: checking for $ac_func" >&5
7260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* System header to define __stub macros and hopefully few prototypes,
7267 which can conflict with char $ac_func(); below. */
7269 /* Override any gcc2 internal prototype to avoid an error. */
7270 /* We use char because int might match the return type of a gcc2
7271 builtin and then its argument prototype would still apply. */
7276 /* The GNU C library defines this for functions which it implements
7277 to always fail with ENOSYS. Some functions are actually named
7278 something starting with __ and the normal name is an alias. */
7279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7289 eval "ac_cv_func_$ac_func=yes"
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7294 eval "ac_cv_func_$ac_func=no"
7299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7300 echo "$ac_t""yes" 1>&6
7301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7302 cat >> confdefs.h <<EOF
7303 #define $ac_tr_func 1
7307 echo "$ac_t""no" 1>&6
7315 cat > confcache <<\EOF
7316 # This file is a shell script that caches the results of configure
7317 # tests run on this system so they can be shared between configure
7318 # scripts and configure runs. It is not useful on other systems.
7319 # If it contains results you don't want to keep, you may remove or edit it.
7321 # By default, configure uses ./config.cache as the cache file,
7322 # creating it if it does not exist already. You can give configure
7323 # the --cache-file=FILE option to use a different cache file; that is
7324 # what configure does when it calls configure scripts in
7325 # subdirectories, so they share the cache.
7326 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7327 # config.status only pays attention to the cache file if you give it the
7328 # --recheck option to rerun configure.
7331 # The following way of writing the cache mishandles newlines in values,
7332 # but we know of no workaround that is simple, portable, and efficient.
7333 # So, don't put newlines in cache variables' values.
7334 # Ultrix sh set writes to stderr and can't be redirected directly,
7335 # and sets the high bit in the cache file unless we assign to the vars.
7337 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7339 # `set' does not quote correctly, so add quotes (double-quote substitution
7340 # turns \\\\ into \\, and sed turns \\ into \).
7342 -e "s/'/'\\\\''/g" \
7343 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7346 # `set' quotes correctly as required by POSIX, so do not add quotes.
7347 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7350 if cmp -s $cache_file confcache; then
7353 if test -w $cache_file; then
7354 echo "updating cache $cache_file"
7355 cat confcache > $cache_file
7357 echo "not updating unwritable cache $cache_file"
7362 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7365 # Let make expand exec_prefix.
7366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7368 # Any assignment to VPATH causes Sun make to only execute
7369 # the first set of double-colon rules, so remove it if not needed.
7370 # If there is a colon in the path, we need to keep it.
7371 if test "x$srcdir" = x.; then
7372 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7375 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7377 DEFS=-DHAVE_CONFIG_H
7379 # Without the "./", some shells look in PATH for config.status.
7380 : ${CONFIG_STATUS=./config.status}
7382 echo creating $CONFIG_STATUS
7383 rm -f $CONFIG_STATUS
7384 cat > $CONFIG_STATUS <<EOF
7386 # Generated automatically by configure.
7387 # Run this file to recreate the current configuration.
7388 # This directory was configured as follows,
7389 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7391 # $0 $ac_configure_args
7393 # Compiler output produced by configure, useful for debugging
7394 # configure, is in ./config.log if it exists.
7396 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7399 case "\$ac_option" in
7400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7401 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7402 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7403 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7404 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7406 -help | --help | --hel | --he | --h)
7407 echo "\$ac_cs_usage"; exit 0 ;;
7408 *) echo "\$ac_cs_usage"; exit 1 ;;
7412 ac_given_srcdir=$srcdir
7413 ac_given_INSTALL="$INSTALL"
7415 trap 'rm -fr `echo "Makefile config.h:config-h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7417 cat >> $CONFIG_STATUS <<EOF
7419 # Protect against being on the right side of a sed subst in config.status.
7420 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7421 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7425 s%@CFLAGS@%$CFLAGS%g
7426 s%@CPPFLAGS@%$CPPFLAGS%g
7427 s%@CXXFLAGS@%$CXXFLAGS%g
7428 s%@FFLAGS@%$FFLAGS%g
7430 s%@LDFLAGS@%$LDFLAGS%g
7432 s%@exec_prefix@%$exec_prefix%g
7433 s%@prefix@%$prefix%g
7434 s%@program_transform_name@%$program_transform_name%g
7435 s%@bindir@%$bindir%g
7436 s%@sbindir@%$sbindir%g
7437 s%@libexecdir@%$libexecdir%g
7438 s%@datadir@%$datadir%g
7439 s%@sysconfdir@%$sysconfdir%g
7440 s%@sharedstatedir@%$sharedstatedir%g
7441 s%@localstatedir@%$localstatedir%g
7442 s%@libdir@%$libdir%g
7443 s%@includedir@%$includedir%g
7444 s%@oldincludedir@%$oldincludedir%g
7445 s%@infodir@%$infodir%g
7446 s%@mandir@%$mandir%g
7447 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7448 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7449 s%@INSTALL_DATA@%$INSTALL_DATA%g
7450 s%@PACKAGE@%$PACKAGE%g
7451 s%@VERSION@%$VERSION%g
7452 s%@EXEEXT@%$EXEEXT%g
7453 s%@OBJEXT@%$OBJEXT%g
7454 s%@ACLOCAL@%$ACLOCAL%g
7455 s%@AUTOCONF@%$AUTOCONF%g
7456 s%@AUTOMAKE@%$AUTOMAKE%g
7457 s%@AUTOHEADER@%$AUTOHEADER%g
7458 s%@MAKEINFO@%$MAKEINFO%g
7460 s%@install_sh@%$install_sh%g
7461 s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
7463 s%@SET_MAKE@%$SET_MAKE%g
7464 s%@AMDEP_TRUE@%$AMDEP_TRUE%g
7465 s%@AMDEP_FALSE@%$AMDEP_FALSE%g
7466 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
7467 s%@DEPDIR@%$DEPDIR%g
7468 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7469 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7472 s%@am__include@%$am__include%g
7473 s%@am__quote@%$am__quote%g
7474 s%@CCDEPMODE@%$CCDEPMODE%g
7476 s%@host_alias@%$host_alias%g
7477 s%@host_cpu@%$host_cpu%g
7478 s%@host_vendor@%$host_vendor%g
7479 s%@host_os@%$host_os%g
7481 s%@build_alias@%$build_alias%g
7482 s%@build_cpu@%$build_cpu%g
7483 s%@build_vendor@%$build_vendor%g
7484 s%@build_os@%$build_os%g
7487 s%@RANLIB@%$RANLIB%g
7489 s%@DLLTOOL@%$DLLTOOL%g
7491 s%@OBJDUMP@%$OBJDUMP%g
7493 s%@LIBTOOL@%$LIBTOOL%g
7494 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
7495 s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
7496 s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
7497 s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
7498 s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
7499 s%@LIBADD_DL@%$LIBADD_DL%g
7504 cat >> $CONFIG_STATUS <<\EOF
7506 # Split the substitutions into bite-sized pieces for seds with
7507 # small command number limits, like on Digital OSF/1 and HP-UX.
7508 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7509 ac_file=1 # Number of current file.
7510 ac_beg=1 # First line for current file.
7511 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7514 while $ac_more_lines; do
7515 if test $ac_beg -gt 1; then
7516 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7518 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7520 if test ! -s conftest.s$ac_file; then
7522 rm -f conftest.s$ac_file
7524 if test -z "$ac_sed_cmds"; then
7525 ac_sed_cmds="sed -f conftest.s$ac_file"
7527 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7529 ac_file=`expr $ac_file + 1`
7531 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7534 if test -z "$ac_sed_cmds"; then
7539 cat >> $CONFIG_STATUS <<EOF
7541 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7543 cat >> $CONFIG_STATUS <<\EOF
7544 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7547 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7548 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7549 *) ac_file_in="${ac_file}.in" ;;
7552 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7554 # Remove last slash and all that follows it. Not all systems have dirname.
7555 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7556 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7557 # The file is in a subdirectory.
7558 test ! -d "$ac_dir" && mkdir "$ac_dir"
7559 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7560 # A "../" for each directory in $ac_dir_suffix.
7561 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7563 ac_dir_suffix= ac_dots=
7566 case "$ac_given_srcdir" in
7568 if test -z "$ac_dots"; then top_srcdir=.
7569 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7570 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7572 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7573 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7576 case "$ac_given_INSTALL" in
7577 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7578 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7581 echo creating "$ac_file"
7583 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7585 *Makefile*) ac_comsub="1i\\
7586 # $configure_input" ;;
7590 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7592 s%@configure_input@%$configure_input%g
7593 s%@srcdir@%$srcdir%g
7594 s%@top_srcdir@%$top_srcdir%g
7595 s%@INSTALL@%$INSTALL%g
7596 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7600 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7601 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7603 # ac_d sets the value in "#define NAME VALUE" lines.
7604 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7605 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7608 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7609 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7610 ac_uB='\([ ]\)%\1#\2define\3'
7613 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7614 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7615 ac_eB='$%\1#\2define\3'
7619 if test "${CONFIG_HEADERS+set}" != set; then
7621 cat >> $CONFIG_STATUS <<EOF
7622 CONFIG_HEADERS="config.h:config-h.in"
7624 cat >> $CONFIG_STATUS <<\EOF
7626 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7629 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7630 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7631 *) ac_file_in="${ac_file}.in" ;;
7634 echo creating $ac_file
7636 rm -f conftest.frag conftest.in conftest.out
7637 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7638 cat $ac_file_inputs > conftest.in
7642 # Transform confdefs.h into a sed script conftest.vals that substitutes
7643 # the proper values into config.h.in to produce config.h. And first:
7644 # Protect against being on the right side of a sed subst in config.status.
7645 # Protect against being in an unquoted here document in config.status.
7647 cat > conftest.hdr <<\EOF
7650 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7654 sed -n -f conftest.hdr confdefs.h > conftest.vals
7657 # This sed command replaces #undef with comments. This is necessary, for
7658 # example, in the case of _POSIX_SOURCE, which is predefined and required
7659 # on some systems where configure will not decide to define it.
7660 cat >> conftest.vals <<\EOF
7661 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7664 # Break up conftest.vals because some shells have a limit on
7665 # the size of here documents, and old seds have small limits too.
7670 ac_lines=`grep -c . conftest.vals`
7671 # grep -c gives empty output for an empty file on some AIX systems.
7672 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7673 # Write a limited-size here document to conftest.frag.
7674 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7675 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7677 sed -f conftest.frag conftest.in > conftest.out
7679 mv conftest.out conftest.in
7681 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7683 mv conftest.tail conftest.vals
7687 cat >> $CONFIG_STATUS <<\EOF
7688 rm -f conftest.frag conftest.h
7689 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7690 cat conftest.in >> conftest.h
7692 if cmp -s $ac_file conftest.h 2>/dev/null; then
7693 echo "$ac_file is unchanged"
7696 # Remove last slash and all that follows it. Not all systems have dirname.
7697 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7699 # The file is in a subdirectory.
7700 test ! -d "$ac_dir" && mkdir "$ac_dir"
7703 mv conftest.h $ac_file
7708 cat >> $CONFIG_STATUS <<EOF
7710 for am_file in config.h:config-h.in; do
7711 case " \$CONFIG_HEADERS " in
7713 am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
7714 if test -n "\$am_dir"; then
7715 am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
7716 for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
7717 am_tmpdir=\$am_tmpdir\$am_subdir/
7718 if test ! -d \$am_tmpdir; then
7723 echo timestamp > "\$am_dir"stamp-h\$am_indx
7726 am_indx=\`expr \$am_indx + 1\`
7728 AMDEP_TRUE="$AMDEP_TRUE"
7729 ac_aux_dir="$ac_aux_dir"
7732 cat >> $CONFIG_STATUS <<\EOF
7733 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7735 test x"$AMDEP_TRUE" != x"" ||
7736 for mf in $CONFIG_FILES; do
7738 Makefile) dirpart=.;;
7739 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
7742 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7743 # Extract the definition of DEP_FILES from the Makefile without
7745 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7746 test -z "$DEPDIR" && continue
7747 # When using ansi2knr, U may be empty or an underscore; expand it
7748 U=`sed -n -e '/^U = / s///p' < "$mf"`
7749 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7750 # We invoke sed twice because it is the simplest approach to
7751 # changing $(DEPDIR) to its actual value in the expansion.
7752 for file in `sed -n -e '
7753 /^DEP_FILES = .*\\\\$/ {
7762 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7763 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7764 # Make sure the directory exists.
7765 test -f "$dirpart/$file" && continue
7766 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
7767 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
7768 # echo "creating $dirpart/$file"
7769 echo '# dummy' > "$dirpart/$file"
7776 chmod +x $CONFIG_STATUS
7777 rm -fr confdefs* $ac_clean_files
7778 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1