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 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 # Find the correct PATH separator. Usually this is `:', but
24 # DJGPP uses `;' like DOS.
25 if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`}
28 *-DOS) lt_cv_sys_path_separator=';' ;;
29 *) lt_cv_sys_path_separator=':' ;;
31 PATH_SEPARATOR=$lt_cv_sys_path_separator
35 # Check that we are running under the correct shell.
36 SHELL=${CONFIG_SHELL-/bin/sh}
40 # Remove one level of quotation (which was required for Make).
41 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
46 if test "X$1" = X--no-reexec; then
47 # Discard the --no-reexec flag, and continue.
49 elif test "X$1" = X--fallback-echo; then
50 # Avoid inline document here, it may be left over
52 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
53 # Yippee, $echo works!
56 # Restart under the correct shell.
57 exec $SHELL "$0" --no-reexec ${1+"$@"}
60 if test "X$1" = X--fallback-echo; then
61 # used as fallback echo
69 # The HP-UX ksh and POSIX shell print the target directory to stdout
71 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
73 if test -z "$ECHO"; then
74 if test "X${echo_test_string+set}" != Xset; then
75 # find a string as large as possible, as long as the shell can cope with it
76 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
77 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
78 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
79 echo_test_string="`eval $cmd`" &&
80 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
87 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
92 # The Solaris, AIX, and Digital Unix default echo programs unquote
93 # backslashes. This makes it impossible to quote backslashes using
94 # echo "$something" | sed 's/\\/\\\\/g'
96 # So, first we look for a working echo in the user's PATH.
98 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
99 for dir in $PATH /usr/ucb; do
100 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
101 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
102 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
103 test "X$echo_testing_string" = "X$echo_test_string"; then
110 if test "X$echo" = Xecho; then
111 # We didn't find a better echo, so look for alternatives.
112 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
113 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
114 test "X$echo_testing_string" = "X$echo_test_string"; then
115 # This shell has a builtin print -r that does the trick.
117 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
118 test "X$CONFIG_SHELL" != X/bin/ksh; then
119 # If we have ksh, try running configure again with it.
120 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
121 export ORIGINAL_CONFIG_SHELL
122 CONFIG_SHELL=/bin/ksh
124 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
128 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
129 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
133 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
134 test "X$echo_testing_string" = 'X\t' &&
135 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
136 test "X$echo_testing_string" = "X$echo_test_string"; then
137 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
139 SHELL="$CONFIG_SHELL"
141 echo="$CONFIG_SHELL $0 --fallback-echo"
142 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
143 test "X$echo_testing_string" = 'X\t' &&
144 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
145 test "X$echo_testing_string" = "X$echo_test_string"; then
146 echo="$CONFIG_SHELL $0 --fallback-echo"
148 # maybe with a smaller string...
151 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
152 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
159 if test "$prev" != 'sed 50q "$0"'; then
160 echo_test_string=`eval $prev`
161 export echo_test_string
162 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
164 # Oops. We lost completely, so just stick with echo.
173 # Copy echo and quote the copy suitably for passing to libtool from
174 # the Makefile, instead of quoting the original, which is used later.
176 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
177 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
182 --disable-libtool-lock avoid locking (might break parallel builds)"
184 --with-pic try to use only PIC/non-PIC objects [default=use both]"
186 # Initialize some variables set by options.
187 # The variables have the same names as the options, with
188 # dashes changed to underlines.
190 cache_file=./config.cache
199 program_transform_name=s,x,x,
207 bindir='${exec_prefix}/bin'
208 sbindir='${exec_prefix}/sbin'
209 libexecdir='${exec_prefix}/libexec'
210 datadir='${prefix}/share'
211 sysconfdir='${prefix}/etc'
212 sharedstatedir='${prefix}/com'
213 localstatedir='${prefix}/var'
214 libdir='${exec_prefix}/lib'
215 includedir='${prefix}/include'
216 oldincludedir='/usr/include'
217 infodir='${prefix}/info'
218 mandir='${prefix}/man'
220 # Initialize some other variables.
223 SHELL=${CONFIG_SHELL-/bin/sh}
224 # Maximum number of lines to put in a shell here document.
231 # If the previous option needs an argument, assign it.
232 if test -n "$ac_prev"; then
233 eval "$ac_prev=\$ac_option"
239 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
243 # Accept the important Cygnus configure options, so we can diagnose typos.
247 -bindir | --bindir | --bindi | --bind | --bin | --bi)
249 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
250 bindir="$ac_optarg" ;;
252 -build | --build | --buil | --bui | --bu)
254 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
255 build="$ac_optarg" ;;
257 -cache-file | --cache-file | --cache-fil | --cache-fi \
258 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
259 ac_prev=cache_file ;;
260 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
261 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
262 cache_file="$ac_optarg" ;;
264 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
266 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
268 datadir="$ac_optarg" ;;
270 -disable-* | --disable-*)
271 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
272 # Reject names that are not valid shell variable names.
273 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
274 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
276 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
277 eval "enable_${ac_feature}=no" ;;
279 -enable-* | --enable-*)
280 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
281 # Reject names that are not valid shell variable names.
282 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
283 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
285 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
290 eval "enable_${ac_feature}='$ac_optarg'" ;;
292 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
293 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
294 | --exec | --exe | --ex)
295 ac_prev=exec_prefix ;;
296 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
297 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
298 | --exec=* | --exe=* | --ex=*)
299 exec_prefix="$ac_optarg" ;;
301 -gas | --gas | --ga | --g)
302 # Obsolete; use --with-gas.
305 -help | --help | --hel | --he)
306 # Omit some internal or obsolete options to make the list less imposing.
307 # This message is too long to be a string in the A/UX 3.1 sh.
309 Usage: configure [options] [host]
310 Options: [defaults in brackets after descriptions]
312 --cache-file=FILE cache test results in FILE
313 --help print this message
314 --no-create do not create output files
315 --quiet, --silent do not print \`checking...' messages
316 --version print the version of autoconf that created configure
317 Directory and file names:
318 --prefix=PREFIX install architecture-independent files in PREFIX
320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
322 --bindir=DIR user executables in DIR [EPREFIX/bin]
323 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
324 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
325 --datadir=DIR read-only architecture-independent data in DIR
327 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
328 --sharedstatedir=DIR modifiable architecture-independent data in DIR
330 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
331 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
332 --includedir=DIR C header files in DIR [PREFIX/include]
333 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
334 --infodir=DIR info documentation in DIR [PREFIX/info]
335 --mandir=DIR man documentation in DIR [PREFIX/man]
336 --srcdir=DIR find the sources in DIR [configure dir or ..]
337 --program-prefix=PREFIX prepend PREFIX to installed program names
338 --program-suffix=SUFFIX append SUFFIX to installed program names
339 --program-transform-name=PROGRAM
340 run sed PROGRAM on installed program names
344 --build=BUILD configure for building on BUILD [BUILD=HOST]
345 --host=HOST configure for HOST [guessed]
346 --target=TARGET configure for TARGET [TARGET=HOST]
347 Features and packages:
348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
352 --x-includes=DIR X include files are in DIR
353 --x-libraries=DIR X library files are in DIR
355 if test -n "$ac_help"; then
356 echo "--enable and --with options recognized:$ac_help"
360 -host | --host | --hos | --ho)
362 -host=* | --host=* | --hos=* | --ho=*)
365 -includedir | --includedir | --includedi | --included | --include \
366 | --includ | --inclu | --incl | --inc)
367 ac_prev=includedir ;;
368 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
369 | --includ=* | --inclu=* | --incl=* | --inc=*)
370 includedir="$ac_optarg" ;;
372 -infodir | --infodir | --infodi | --infod | --info | --inf)
374 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
375 infodir="$ac_optarg" ;;
377 -libdir | --libdir | --libdi | --libd)
379 -libdir=* | --libdir=* | --libdi=* | --libd=*)
380 libdir="$ac_optarg" ;;
382 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
383 | --libexe | --libex | --libe)
384 ac_prev=libexecdir ;;
385 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
386 | --libexe=* | --libex=* | --libe=*)
387 libexecdir="$ac_optarg" ;;
389 -localstatedir | --localstatedir | --localstatedi | --localstated \
390 | --localstate | --localstat | --localsta | --localst \
391 | --locals | --local | --loca | --loc | --lo)
392 ac_prev=localstatedir ;;
393 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
394 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
395 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
396 localstatedir="$ac_optarg" ;;
398 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
400 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
401 mandir="$ac_optarg" ;;
404 # Obsolete; use --without-fp.
407 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
411 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
412 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
415 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
416 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
417 | --oldin | --oldi | --old | --ol | --o)
418 ac_prev=oldincludedir ;;
419 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
420 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
421 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
422 oldincludedir="$ac_optarg" ;;
424 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
426 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
427 prefix="$ac_optarg" ;;
429 -program-prefix | --program-prefix | --program-prefi | --program-pref \
430 | --program-pre | --program-pr | --program-p)
431 ac_prev=program_prefix ;;
432 -program-prefix=* | --program-prefix=* | --program-prefi=* \
433 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
434 program_prefix="$ac_optarg" ;;
436 -program-suffix | --program-suffix | --program-suffi | --program-suff \
437 | --program-suf | --program-su | --program-s)
438 ac_prev=program_suffix ;;
439 -program-suffix=* | --program-suffix=* | --program-suffi=* \
440 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
441 program_suffix="$ac_optarg" ;;
443 -program-transform-name | --program-transform-name \
444 | --program-transform-nam | --program-transform-na \
445 | --program-transform-n | --program-transform- \
446 | --program-transform | --program-transfor \
447 | --program-transfo | --program-transf \
448 | --program-trans | --program-tran \
449 | --progr-tra | --program-tr | --program-t)
450 ac_prev=program_transform_name ;;
451 -program-transform-name=* | --program-transform-name=* \
452 | --program-transform-nam=* | --program-transform-na=* \
453 | --program-transform-n=* | --program-transform-=* \
454 | --program-transform=* | --program-transfor=* \
455 | --program-transfo=* | --program-transf=* \
456 | --program-trans=* | --program-tran=* \
457 | --progr-tra=* | --program-tr=* | --program-t=*)
458 program_transform_name="$ac_optarg" ;;
460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
461 | -silent | --silent | --silen | --sile | --sil)
464 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
466 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
468 sbindir="$ac_optarg" ;;
470 -sharedstatedir | --sharedstatedir | --sharedstatedi \
471 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
472 | --sharedst | --shareds | --shared | --share | --shar \
474 ac_prev=sharedstatedir ;;
475 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
476 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
477 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
479 sharedstatedir="$ac_optarg" ;;
481 -site | --site | --sit)
483 -site=* | --site=* | --sit=*)
486 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
488 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
489 srcdir="$ac_optarg" ;;
491 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
492 | --syscon | --sysco | --sysc | --sys | --sy)
493 ac_prev=sysconfdir ;;
494 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
495 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
496 sysconfdir="$ac_optarg" ;;
498 -target | --target | --targe | --targ | --tar | --ta | --t)
500 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
501 target="$ac_optarg" ;;
503 -v | -verbose | --verbose | --verbos | --verbo | --verb)
506 -version | --version | --versio | --versi | --vers)
507 echo "configure generated by autoconf version 2.13"
511 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
512 # Reject names that are not valid shell variable names.
513 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
514 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
516 ac_package=`echo $ac_package| sed 's/-/_/g'`
521 eval "with_${ac_package}='$ac_optarg'" ;;
523 -without-* | --without-*)
524 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
525 # Reject names that are not valid shell variable names.
526 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
527 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
529 ac_package=`echo $ac_package| sed 's/-/_/g'`
530 eval "with_${ac_package}=no" ;;
533 # Obsolete; use --with-x.
536 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
537 | --x-incl | --x-inc | --x-in | --x-i)
538 ac_prev=x_includes ;;
539 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
540 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
541 x_includes="$ac_optarg" ;;
543 -x-libraries | --x-libraries | --x-librarie | --x-librari \
544 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
545 ac_prev=x_libraries ;;
546 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
547 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
548 x_libraries="$ac_optarg" ;;
550 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
554 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
555 echo "configure: warning: $ac_option: invalid host type" 1>&2
557 if test "x$nonopt" != xNONE; then
558 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
566 if test -n "$ac_prev"; then
567 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
570 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
572 # File descriptor usage:
575 # 2 errors and warnings
576 # 3 some systems may open it to /dev/tty
577 # 4 used on the Kubota Titan
578 # 6 checking for... messages and results
579 # 5 compiler messages saved in config.log
580 if test "$silent" = yes; then
588 This file contains any messages produced by compilers while
589 running configure, to aid debugging if configure makes a mistake.
592 # Strip out --no-create and --no-recursion so they do not pile up.
593 # Also quote any args containing shell metacharacters.
598 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
599 | --no-cr | --no-c) ;;
600 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
601 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
602 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
603 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
604 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
609 # Only set these to C if already set. These must not be set unconditionally
610 # because not all systems understand e.g. LANG=C (notably SCO).
611 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
612 # Non-C LC_CTYPE values break the ctype check.
613 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
614 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
615 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
616 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
619 rm -rf conftest* confdefs.h
620 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
623 # A filename unique to this package, relative to the directory that
624 # configure is in, which we can look for to find out if srcdir is correct.
627 # Find the source files, if location was not specified.
628 if test -z "$srcdir"; then
629 ac_srcdir_defaulted=yes
630 # Try the directory containing this script, then its parent.
632 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
633 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
635 if test ! -r $srcdir/$ac_unique_file; then
639 ac_srcdir_defaulted=no
641 if test ! -r $srcdir/$ac_unique_file; then
642 if test "$ac_srcdir_defaulted" = yes; then
643 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
645 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
648 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
650 # Prefer explicitly selected file to automatically selected ones.
651 if test -z "$CONFIG_SITE"; then
652 if test "x$prefix" != xNONE; then
653 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
655 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
658 for ac_site_file in $CONFIG_SITE; do
659 if test -r "$ac_site_file"; then
660 echo "loading site script $ac_site_file"
665 if test -r "$cache_file"; then
666 echo "loading cache $cache_file"
669 echo "creating cache $cache_file"
674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
675 ac_cpp='$CPP $CPPFLAGS'
676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
678 cross_compiling=$ac_cv_prog_cc_cross
682 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
683 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
684 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
691 ac_n= ac_c='\c' ac_t=
699 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer $CFLAGS"
700 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer $CXXFLAGS"
701 export PACKAGE VERSION CFLAGS CXXFLAGS
704 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
705 if test -f $ac_dir/install-sh; then
707 ac_install_sh="$ac_aux_dir/install-sh -c"
709 elif test -f $ac_dir/install.sh; then
711 ac_install_sh="$ac_aux_dir/install.sh -c"
715 if test -z "$ac_aux_dir"; then
716 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
718 ac_config_guess=$ac_aux_dir/config.guess
719 ac_config_sub=$ac_aux_dir/config.sub
720 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
723 # Make sure we can run config.sub.
724 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
725 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
728 echo $ac_n "checking host system type""... $ac_c" 1>&6
729 echo "configure:730: checking host system type" >&5
732 case "$host_alias" in
736 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
737 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
739 *) host_alias=$nonopt ;;
743 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
744 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
745 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
746 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
747 echo "$ac_t""$host" 1>&6
753 CFLAGS="$CFLAGS -fno-rtti"
754 CXXFLAGS="$CXXFLAGS -fno-rtti"
757 # Extract the first word of "gcc", so it can be a program name with args.
758 set dummy gcc; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
780 if test -n "$CC"; then
781 echo "$ac_t""$CC" 1>&6
783 echo "$ac_t""no" 1>&6
786 if test -z "$CC"; then
787 # Extract the first word of "cc", so it can be a program name with args.
788 set dummy cc; ac_word=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 if test -n "$CC"; then
795 ac_cv_prog_CC="$CC" # Let the user override the test.
797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
800 for ac_dir in $ac_dummy; do
801 test -z "$ac_dir" && ac_dir=.
802 if test -f $ac_dir/$ac_word; then
803 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
812 if test $ac_prog_rejected = yes; then
813 # We found a bogon in the path, so make sure we never use it.
814 set dummy $ac_cv_prog_CC
816 if test $# -gt 0; then
817 # We chose a different compiler from the bogus one.
818 # However, it has the same basename, so the bogon will be chosen
819 # first if we set CC to just the basename; use the full file name.
821 set dummy "$ac_dir/$ac_word" "$@"
829 if test -n "$CC"; then
830 echo "$ac_t""$CC" 1>&6
832 echo "$ac_t""no" 1>&6
835 if test -z "$CC"; then
838 # Extract the first word of "cl", so it can be a program name with args.
839 set dummy cl; ac_word=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
850 for ac_dir in $ac_dummy; do
851 test -z "$ac_dir" && ac_dir=.
852 if test -f $ac_dir/$ac_word; then
861 if test -n "$CC"; then
862 echo "$ac_t""$CC" 1>&6
864 echo "$ac_t""no" 1>&6
869 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
872 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
873 echo "configure:874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
877 ac_cpp='$CPP $CPPFLAGS'
878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
880 cross_compiling=$ac_cv_prog_cc_cross
882 cat > conftest.$ac_ext << EOF
884 #line 885 "configure"
885 #include "confdefs.h"
889 if { (eval echo configure:890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
890 ac_cv_prog_cc_works=yes
891 # If we can't run a trivial program, we are probably using a cross compiler.
892 if (./conftest; exit) 2>/dev/null; then
893 ac_cv_prog_cc_cross=no
895 ac_cv_prog_cc_cross=yes
898 echo "configure: failed program was:" >&5
899 cat conftest.$ac_ext >&5
900 ac_cv_prog_cc_works=no
904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
905 ac_cpp='$CPP $CPPFLAGS'
906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
908 cross_compiling=$ac_cv_prog_cc_cross
910 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
911 if test $ac_cv_prog_cc_works = no; then
912 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
914 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
915 echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
916 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
917 cross_compiling=$ac_cv_prog_cc_cross
919 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
920 echo "configure:921: checking whether we are using GNU C" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 cat > conftest.c <<EOF
929 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
936 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
938 if test $ac_cv_prog_gcc = yes; then
944 ac_test_CFLAGS="${CFLAGS+set}"
945 ac_save_CFLAGS="$CFLAGS"
947 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
948 echo "configure:949: checking whether ${CC-cc} accepts -g" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 echo 'void f(){}' > conftest.c
953 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
962 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
963 if test "$ac_test_CFLAGS" = set; then
964 CFLAGS="$ac_save_CFLAGS"
965 elif test $ac_cv_prog_cc_g = yes; then
966 if test "$GCC" = yes; then
972 if test "$GCC" = yes; then
979 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
980 echo "configure:981: checking how to run the C preprocessor" >&5
981 # On Suns, sometimes $CPP names a directory.
982 if test -n "$CPP" && test -d "$CPP"; then
985 if test -z "$CPP"; then
986 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 # This must be in double quotes, not single quotes, because CPP may get
990 # substituted into the Makefile and "${CC-cc}" will confuse make.
992 # On the NeXT, cc -E runs the code through the compiler's parser,
993 # not just through cpp.
994 cat > conftest.$ac_ext <<EOF
995 #line 996 "configure"
996 #include "confdefs.h"
1000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1001 { (eval echo configure:1002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1003 if test -z "$ac_err"; then
1007 echo "configure: failed program was:" >&5
1008 cat conftest.$ac_ext >&5
1010 CPP="${CC-cc} -E -traditional-cpp"
1011 cat > conftest.$ac_ext <<EOF
1012 #line 1013 "configure"
1013 #include "confdefs.h"
1017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1018 { (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1020 if test -z "$ac_err"; then
1024 echo "configure: failed program was:" >&5
1025 cat conftest.$ac_ext >&5
1027 CPP="${CC-cc} -nologo -E"
1028 cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1035 { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1037 if test -z "$ac_err"; then
1041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
1051 ac_cv_prog_CPP="$CPP"
1053 CPP="$ac_cv_prog_CPP"
1055 ac_cv_prog_CPP="$CPP"
1057 echo "$ac_t""$CPP" 1>&6
1059 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1061 # Extract the first word of "$ac_prog", so it can be a program name with args.
1062 set dummy $ac_prog; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$CXX"; then
1069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_CXX="$ac_prog"
1083 CXX="$ac_cv_prog_CXX"
1084 if test -n "$CXX"; then
1085 echo "$ac_t""$CXX" 1>&6
1087 echo "$ac_t""no" 1>&6
1090 test -n "$CXX" && break
1092 test -n "$CXX" || CXX="gcc"
1095 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1096 echo "configure:1097: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1099 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1100 ac_cpp='$CXXCPP $CPPFLAGS'
1101 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1102 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1103 cross_compiling=$ac_cv_prog_cxx_cross
1105 cat > conftest.$ac_ext << EOF
1107 #line 1108 "configure"
1108 #include "confdefs.h"
1110 int main(){return(0);}
1112 if { (eval echo configure:1113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1113 ac_cv_prog_cxx_works=yes
1114 # If we can't run a trivial program, we are probably using a cross compiler.
1115 if (./conftest; exit) 2>/dev/null; then
1116 ac_cv_prog_cxx_cross=no
1118 ac_cv_prog_cxx_cross=yes
1121 echo "configure: failed program was:" >&5
1122 cat conftest.$ac_ext >&5
1123 ac_cv_prog_cxx_works=no
1127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1128 ac_cpp='$CPP $CPPFLAGS'
1129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1131 cross_compiling=$ac_cv_prog_cc_cross
1133 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1134 if test $ac_cv_prog_cxx_works = no; then
1135 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1137 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1139 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1140 cross_compiling=$ac_cv_prog_cxx_cross
1142 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether we are using GNU C++" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 cat > conftest.C <<EOF
1152 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1159 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1161 if test $ac_cv_prog_gxx = yes; then
1167 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1168 ac_save_CXXFLAGS="$CXXFLAGS"
1170 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether ${CXX-g++} accepts -g" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 echo 'void f(){}' > conftest.cc
1176 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1177 ac_cv_prog_cxx_g=yes
1185 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1186 if test "$ac_test_CXXFLAGS" = set; then
1187 CXXFLAGS="$ac_save_CXXFLAGS"
1188 elif test $ac_cv_prog_cxx_g = yes; then
1189 if test "$GXX" = yes; then
1195 if test "$GXX" = yes; then
1202 # Extract the first word of "ranlib", so it can be a program name with args.
1203 set dummy ranlib; ac_word=$2
1204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_word" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 if test -n "$RANLIB"; then
1210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1214 for ac_dir in $ac_dummy; do
1215 test -z "$ac_dir" && ac_dir=.
1216 if test -f $ac_dir/$ac_word; then
1217 ac_cv_prog_RANLIB="ranlib"
1222 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1225 RANLIB="$ac_cv_prog_RANLIB"
1226 if test -n "$RANLIB"; then
1227 echo "$ac_t""$RANLIB" 1>&6
1229 echo "$ac_t""no" 1>&6
1232 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether ${MAKE-make} sets \${MAKE}" >&5
1234 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1235 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 cat > conftestmake <<\EOF
1240 @echo 'ac_maketemp="${MAKE}"'
1242 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1243 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1244 if test -n "$ac_maketemp"; then
1245 eval ac_cv_prog_make_${ac_make}_set=yes
1247 eval ac_cv_prog_make_${ac_make}_set=no
1251 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1252 echo "$ac_t""yes" 1>&6
1255 echo "$ac_t""no" 1>&6
1256 SET_MAKE="MAKE=${MAKE-make}"
1259 # Find a good install program. We prefer a C program (faster),
1260 # so one script is as good as another. But avoid the broken or
1261 # incompatible versions:
1262 # SysV /etc/install, /usr/sbin/install
1263 # SunOS /usr/etc/install
1264 # IRIX /sbin/install
1266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1269 # ./install, which can be erroneously created by make from ./install.sh.
1270 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1271 echo "configure:1272: checking for a BSD compatible install" >&5
1272 if test -z "$INSTALL"; then
1273 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1277 for ac_dir in $PATH; do
1278 # Account for people who put trailing slashes in PATH elements.
1280 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1282 # OSF1 and SCO ODT 3.0 have their own names for install.
1283 # Don't use installbsd from OSF since it installs stuff as root
1285 for ac_prog in ginstall scoinst install; do
1286 if test -f $ac_dir/$ac_prog; then
1287 if test $ac_prog = install &&
1288 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1289 # AIX install. It has an incompatible calling convention.
1292 ac_cv_path_install="$ac_dir/$ac_prog -c"
1303 if test "${ac_cv_path_install+set}" = set; then
1304 INSTALL="$ac_cv_path_install"
1306 # As a last resort, use the slow shell script. We don't cache a
1307 # path for INSTALL within a source directory, because that will
1308 # break other packages using the cache if that directory is
1309 # removed, or if the path is relative.
1310 INSTALL="$ac_install_sh"
1313 echo "$ac_t""$INSTALL" 1>&6
1315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1316 # It thinks the first close brace ends the variable substitution.
1317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1323 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether ln -s works" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1329 if ln -s X conftestdata 2>/dev/null
1332 ac_cv_prog_LN_S="ln -s"
1337 LN_S="$ac_cv_prog_LN_S"
1338 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1339 echo "$ac_t""yes" 1>&6
1341 echo "$ac_t""no" 1>&6
1344 # Find the correct PATH separator. Usually this is `:', but
1345 # DJGPP uses `;' like DOS.
1346 if test "X${PATH_SEPARATOR+set}" != Xset; then
1347 UNAME=${UNAME-`uname 2>/dev/null`}
1349 *-DOS) lt_cv_sys_path_separator=';' ;;
1350 *) lt_cv_sys_path_separator=':' ;;
1352 PATH_SEPARATOR=$lt_cv_sys_path_separator
1355 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1356 echo "configure:1357: checking for Cygwin environment" >&5
1357 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1367 #define __CYGWIN__ __CYGWIN32__
1372 if { (eval echo configure:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1385 echo "$ac_t""$ac_cv_cygwin" 1>&6
1387 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1388 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1389 echo "configure:1390: checking for mingw32 environment" >&5
1390 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1401 if { (eval echo configure:1402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1414 echo "$ac_t""$ac_cv_mingw32" 1>&6
1416 test "$ac_cv_mingw32" = yes && MINGW32=yes
1417 # Check whether --enable-shared or --disable-shared was given.
1418 if test "${enable_shared+set}" = set; then
1419 enableval="$enable_shared"
1420 p=${PACKAGE-default}
1422 yes) enable_shared=yes ;;
1423 no) enable_shared=no ;;
1426 # Look at the argument we got. We use all the common list separators.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1428 for pkg in $enableval; do
1429 if test "X$pkg" = "X$p"; then
1440 # Check whether --enable-static or --disable-static was given.
1441 if test "${enable_static+set}" = set; then
1442 enableval="$enable_static"
1443 p=${PACKAGE-default}
1445 yes) enable_static=yes ;;
1446 no) enable_static=no ;;
1449 # Look at the argument we got. We use all the common list separators.
1450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1451 for pkg in $enableval; do
1452 if test "X$pkg" = "X$p"; then
1463 # Check whether --enable-fast-install or --disable-fast-install was given.
1464 if test "${enable_fast_install+set}" = set; then
1465 enableval="$enable_fast_install"
1466 p=${PACKAGE-default}
1468 yes) enable_fast_install=yes ;;
1469 no) enable_fast_install=no ;;
1471 enable_fast_install=no
1472 # Look at the argument we got. We use all the common list separators.
1473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1474 for pkg in $enableval; do
1475 if test "X$pkg" = "X$p"; then
1476 enable_fast_install=yes
1483 enable_fast_install=yes
1486 echo $ac_n "checking build system type""... $ac_c" 1>&6
1487 echo "configure:1488: checking build system type" >&5
1490 case "$build_alias" in
1493 NONE) build_alias=$host_alias ;;
1494 *) build_alias=$nonopt ;;
1498 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1499 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502 echo "$ac_t""$build" 1>&6
1504 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1505 if test "${with_gnu_ld+set}" = set; then
1506 withval="$with_gnu_ld"
1507 test "$withval" = no || with_gnu_ld=yes
1513 if test "$GCC" = yes; then
1514 # Check if gcc -print-prog-name=ld gives a path.
1515 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1516 echo "configure:1517: checking for ld used by GCC" >&5
1519 # gcc leaves a trailing carriage return which upsets mingw
1520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1525 # Accept absolute paths.
1526 [\\/]* | [A-Za-z]:[\\/]*)
1527 re_direlt='/[^/][^/]*/\.\./'
1528 # Canonicalize the path of ld
1529 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1530 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1531 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1533 test -z "$LD" && LD="$ac_prog"
1536 # If it fails, then pretend we aren't using GCC.
1540 # If it is relative, then search for the first ld in PATH.
1544 elif test "$with_gnu_ld" = yes; then
1545 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1546 echo "configure:1547: checking for GNU ld" >&5
1548 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1549 echo "configure:1550: checking for non-GNU ld" >&5
1551 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 if test -z "$LD"; then
1555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1556 for ac_dir in $PATH; do
1557 test -z "$ac_dir" && ac_dir=.
1558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1559 lt_cv_path_LD="$ac_dir/$ac_prog"
1560 # Check to see if the program is GNU ld. I'd rather use --version,
1561 # but apparently some GNU ld's only accept -v.
1562 # Break only if it was the GNU/non-GNU ld that we prefer.
1563 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1564 test "$with_gnu_ld" != no && break
1566 test "$with_gnu_ld" != yes && break
1572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1577 if test -n "$LD"; then
1578 echo "$ac_t""$LD" 1>&6
1580 echo "$ac_t""no" 1>&6
1582 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1583 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1584 echo "configure:1585: checking if the linker ($LD) is GNU ld" >&5
1585 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1589 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1590 lt_cv_prog_gnu_ld=yes
1592 lt_cv_prog_gnu_ld=no
1596 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1597 with_gnu_ld=$lt_cv_prog_gnu_ld
1600 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1601 echo "configure:1602: checking for $LD option to reload object files" >&5
1602 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 lt_cv_ld_reload_flag='-r'
1608 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1609 reload_flag=$lt_cv_ld_reload_flag
1610 test -n "$reload_flag" && reload_flag=" $reload_flag"
1612 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1613 echo "configure:1614: checking for BSD-compatible nm" >&5
1614 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 if test -n "$NM"; then
1618 # Let the user override the test.
1621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1622 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1623 test -z "$ac_dir" && ac_dir=.
1624 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1625 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1626 # Check to see if the nm accepts a BSD-compat flag.
1627 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1628 # nm: unknown option "B" ignored
1629 # Tru64's nm complains that /dev/null is an invalid object file
1630 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1631 lt_cv_path_NM="$tmp_nm -B"
1633 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1634 lt_cv_path_NM="$tmp_nm -p"
1637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1638 continue # so that we can try to find one that supports BSD flags
1643 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1648 echo "$ac_t""$NM" 1>&6
1650 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1651 echo "configure:1652: checking how to recognise dependant libraries" >&5
1652 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 lt_cv_file_magic_cmd='$MAGIC_CMD'
1656 lt_cv_file_magic_test_file=
1657 lt_cv_deplibs_check_method='unknown'
1658 # Need to set the preceding variable on all platforms that support
1659 # interlibrary dependencies.
1660 # 'none' -- dependencies not supported.
1661 # `unknown' -- same as none, but documents that we really don't know.
1662 # 'pass_all' -- all dependencies passed with no checks.
1663 # 'test_compile' -- check by making test program.
1664 # 'file_magic [[regex]]' -- check by looking for files in library path
1665 # which responds to the $file_magic_cmd with a given egrep regex.
1666 # If you have `file' or equivalent on your system and you're not sure
1667 # whether `pass_all' will *always* work, you probably want this one.
1671 lt_cv_deplibs_check_method=pass_all
1675 lt_cv_deplibs_check_method=pass_all
1679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1680 lt_cv_file_magic_cmd='/usr/bin/file -L'
1681 lt_cv_file_magic_test_file=/shlib/libc.so
1684 cygwin* | mingw* | pw32*)
1685 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1686 lt_cv_file_magic_cmd='$OBJDUMP -f'
1689 darwin* | rhapsody*)
1690 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1691 lt_cv_file_magic_cmd='/usr/bin/file -L'
1693 rhapsody* | darwin1.[012])
1694 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1697 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1703 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1706 # Not sure whether the presence of OpenBSD here was a mistake.
1707 # Let's accept both of them until this is cleared up.
1708 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1709 lt_cv_file_magic_cmd=/usr/bin/file
1710 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1714 lt_cv_deplibs_check_method=pass_all
1719 lt_cv_deplibs_check_method=pass_all
1723 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1724 lt_cv_file_magic_cmd=/usr/bin/file
1725 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1728 irix5* | irix6* | nonstopux*)
1730 irix5* | nonstopux*)
1731 # this will be overridden with pass_all, but let us keep it just in case
1732 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1736 *-32|*"-32 ") libmagic=32-bit;;
1737 *-n32|*"-n32 ") libmagic=N32;;
1738 *-64|*"-64 ") libmagic=64-bit;;
1739 *) libmagic=never-match;;
1741 # this will be overridden with pass_all, but let us keep it just in case
1742 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1745 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1746 lt_cv_deplibs_check_method=pass_all
1749 # This must be Linux ELF.
1752 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1753 lt_cv_deplibs_check_method=pass_all ;;
1755 # glibc up to 2.1.1 does not perform some relocations on ARM
1756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1758 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1762 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1763 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1765 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1771 lt_cv_file_magic_cmd=/usr/bin/file
1772 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1776 lt_cv_file_magic_cmd=/usr/bin/file
1777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1778 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1781 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1785 osf3* | osf4* | osf5*)
1786 # this will be overridden with pass_all, but let us keep it just in case
1787 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1788 lt_cv_file_magic_test_file=/shlib/libc.so
1789 lt_cv_deplibs_check_method=pass_all
1793 lt_cv_deplibs_check_method=pass_all
1797 lt_cv_deplibs_check_method=pass_all
1798 lt_cv_file_magic_test_file=/lib/libc.so
1801 sysv5uw[78]* | sysv4*uw2*)
1802 lt_cv_deplibs_check_method=pass_all
1805 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1806 case $host_vendor in
1808 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]'
1809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1812 lt_cv_deplibs_check_method=pass_all
1815 lt_cv_file_magic_cmd='/bin/file'
1816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1819 lt_cv_file_magic_cmd='/bin/file'
1820 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1821 lt_cv_file_magic_test_file=/lib/libc.so
1829 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1830 file_magic_cmd=$lt_cv_file_magic_cmd
1831 deplibs_check_method=$lt_cv_deplibs_check_method
1833 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1834 echo "configure:1835: checking for object suffix" >&5
1835 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1839 echo 'int i = 1;' > conftest.$ac_ext
1840 if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1841 for ac_file in conftest.*; do
1844 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1848 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1853 echo "$ac_t""$ac_cv_objext" 1>&6
1854 OBJEXT=$ac_cv_objext
1855 ac_objext=$ac_cv_objext
1859 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1860 echo "configure:1861: checking for executable suffix" >&5
1861 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1868 echo 'int main () { return 0; }' > conftest.$ac_ext
1870 if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1871 for file in conftest.*; do
1873 *.c | *.o | *.obj) ;;
1874 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1878 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1881 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1886 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1887 echo "$ac_t""${ac_cv_exeext}" 1>&6
1890 if test $host != $build; then
1891 ac_tool_prefix=${host_alias}-
1899 # Check for command to grab the raw symbol name followed by C symbol from nm.
1900 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1901 echo "configure:1902: checking command to parse $NM output" >&5
1902 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1906 # These are sane defaults that work on at least a few old systems.
1907 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1909 # Character class describing NM global symbol codes.
1910 symcode='[BCDEGRST]'
1912 # Regexp to match symbols that can be accessed directly from C.
1913 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1915 # Transform the above into a raw symbol and a C symbol.
1916 symxfrm='\1 \2\3 \3'
1918 # Transform an extracted symbol line into a proper C declaration
1919 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1921 # Transform an extracted symbol line into symbol name and symbol address
1922 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'"
1924 # Define system-specific variables.
1929 cygwin* | mingw* | pw32*)
1930 symcode='[ABCDGISTW]'
1932 hpux*) # Its linker distinguishes data from code symbols
1933 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1934 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'"
1937 symcode='[BCDEGRST]'
1947 # Handle CRLF in mingw tool chain
1951 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1955 # If we're using GNU nm, then use its standard symbol codes.
1956 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1957 symcode='[ABCDGISTW]'
1960 # Try without a prefix undercore, then with it.
1961 for ac_symprfx in "" "_"; do
1963 # Write the raw and C identifiers.
1964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1966 # Check to see that the pipe works correctly.
1969 cat > conftest.$ac_ext <<EOF
1974 void nm_test_func(){}
1978 int main(){nm_test_var='a';nm_test_func();return(0);}
1981 if { (eval echo configure:1982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1982 # Now try to grab the symbols.
1984 if { (eval echo configure:1985: \"$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
1985 # Try sorting and uniquifying the output.
1986 if sort "$nlist" | uniq > "$nlist"T; then
1987 mv -f "$nlist"T "$nlist"
1992 # Make sure that we snagged all the symbols we need.
1993 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1994 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1995 cat <<EOF > conftest.$ac_ext
2001 # Now generate the symbol file.
2002 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2004 cat <<EOF >> conftest.$ac_ext
2005 #if defined (__STDC__) && __STDC__
2006 # define lt_ptr void *
2008 # define lt_ptr char *
2012 /* The mapping between symbol names and symbols. */
2017 lt_preloaded_symbols[] =
2020 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2021 cat <<\EOF >> conftest.$ac_ext
2029 # Now try linking the two files.
2030 mv conftest.$ac_objext conftstm.$ac_objext
2032 save_CFLAGS="$CFLAGS"
2033 LIBS="conftstm.$ac_objext"
2034 CFLAGS="$CFLAGS$no_builtin_flag"
2035 if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2039 CFLAGS="$save_CFLAGS"
2041 echo "cannot find nm_test_func in $nlist" >&5
2044 echo "cannot find nm_test_var in $nlist" >&5
2047 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2050 echo "$progname: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2053 rm -f conftest* conftst*
2055 # Do not use the global_symbol_pipe unless it works.
2056 if test "$pipe_works" = yes; then
2059 lt_cv_sys_global_symbol_pipe=
2065 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2066 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2067 global_symbol_to_cdecl=
2068 global_symbol_to_c_name_address=
2070 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2071 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2073 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2075 echo "$ac_t""failed" 1>&6
2077 echo "$ac_t""ok" 1>&6
2080 for ac_hdr in dlfcn.h
2082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_hdr" >&5
2085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2094 { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2096 if test -z "$ac_err"; then
2098 eval "ac_cv_header_$ac_safe=yes"
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 eval "ac_cv_header_$ac_safe=no"
2108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2111 cat >> confdefs.h <<EOF
2112 #define $ac_tr_hdr 1
2116 echo "$ac_t""no" 1>&6
2124 # Only perform the check for file, if the check method requires it
2125 case $deplibs_check_method in
2127 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2128 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2129 echo "configure:2130: checking for ${ac_tool_prefix}file" >&5
2130 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2141 ac_save_MAGIC_CMD="$MAGIC_CMD"
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2143 ac_dummy="/usr/bin:$PATH"
2144 for ac_dir in $ac_dummy; do
2145 test -z "$ac_dir" && ac_dir=.
2146 if test -f $ac_dir/${ac_tool_prefix}file; then
2147 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2148 if test -n "$file_magic_test_file"; then
2149 case $deplibs_check_method in
2151 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2154 egrep "$file_magic_regex" > /dev/null; then
2159 *** Warning: the command libtool uses to detect shared libraries,
2160 *** $file_magic_cmd, produces output that libtool cannot recognize.
2161 *** The result is that libtool may fail to recognize shared libraries
2162 *** as such. This will affect the creation of libtool libraries that
2163 *** depend on shared libraries, but programs linked with such libtool
2164 *** libraries will work regardless of this problem. Nevertheless, you
2165 *** may want to report the problem to your system manager and/or to
2166 *** bug-libtool@gnu.org
2176 MAGIC_CMD="$ac_save_MAGIC_CMD"
2181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2182 if test -n "$MAGIC_CMD"; then
2183 echo "$ac_t""$MAGIC_CMD" 1>&6
2185 echo "$ac_t""no" 1>&6
2188 if test -z "$lt_cv_path_MAGIC_CMD"; then
2189 if test -n "$ac_tool_prefix"; then
2190 echo $ac_n "checking for file""... $ac_c" 1>&6
2191 echo "configure:2192: checking for file" >&5
2192 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2197 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2203 ac_save_MAGIC_CMD="$MAGIC_CMD"
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2205 ac_dummy="/usr/bin:$PATH"
2206 for ac_dir in $ac_dummy; do
2207 test -z "$ac_dir" && ac_dir=.
2208 if test -f $ac_dir/file; then
2209 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2210 if test -n "$file_magic_test_file"; then
2211 case $deplibs_check_method in
2213 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2216 egrep "$file_magic_regex" > /dev/null; then
2221 *** Warning: the command libtool uses to detect shared libraries,
2222 *** $file_magic_cmd, produces output that libtool cannot recognize.
2223 *** The result is that libtool may fail to recognize shared libraries
2224 *** as such. This will affect the creation of libtool libraries that
2225 *** depend on shared libraries, but programs linked with such libtool
2226 *** libraries will work regardless of this problem. Nevertheless, you
2227 *** may want to report the problem to your system manager and/or to
2228 *** bug-libtool@gnu.org
2238 MAGIC_CMD="$ac_save_MAGIC_CMD"
2243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2244 if test -n "$MAGIC_CMD"; then
2245 echo "$ac_t""$MAGIC_CMD" 1>&6
2247 echo "$ac_t""no" 1>&6
2259 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2260 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_word" >&5
2263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2266 if test -n "$RANLIB"; then
2267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2271 for ac_dir in $ac_dummy; do
2272 test -z "$ac_dir" && ac_dir=.
2273 if test -f $ac_dir/$ac_word; then
2274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2281 RANLIB="$ac_cv_prog_RANLIB"
2282 if test -n "$RANLIB"; then
2283 echo "$ac_t""$RANLIB" 1>&6
2285 echo "$ac_t""no" 1>&6
2289 if test -z "$ac_cv_prog_RANLIB"; then
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "ranlib", so it can be a program name with args.
2292 set dummy ranlib; ac_word=$2
2293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_word" >&5
2295 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 if test -n "$RANLIB"; then
2299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2303 for ac_dir in $ac_dummy; do
2304 test -z "$ac_dir" && ac_dir=.
2305 if test -f $ac_dir/$ac_word; then
2306 ac_cv_prog_RANLIB="ranlib"
2311 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2314 RANLIB="$ac_cv_prog_RANLIB"
2315 if test -n "$RANLIB"; then
2316 echo "$ac_t""$RANLIB" 1>&6
2318 echo "$ac_t""no" 1>&6
2326 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2327 set dummy ${ac_tool_prefix}strip; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 if test -n "$STRIP"; then
2334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 if test -f $ac_dir/$ac_word; then
2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2348 STRIP="$ac_cv_prog_STRIP"
2349 if test -n "$STRIP"; then
2350 echo "$ac_t""$STRIP" 1>&6
2352 echo "$ac_t""no" 1>&6
2356 if test -z "$ac_cv_prog_STRIP"; then
2357 if test -n "$ac_tool_prefix"; then
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2361 echo "configure:2362: checking for $ac_word" >&5
2362 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 if test -n "$STRIP"; then
2366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2370 for ac_dir in $ac_dummy; do
2371 test -z "$ac_dir" && ac_dir=.
2372 if test -f $ac_dir/$ac_word; then
2373 ac_cv_prog_STRIP="strip"
2378 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2381 STRIP="$ac_cv_prog_STRIP"
2382 if test -n "$STRIP"; then
2383 echo "$ac_t""$STRIP" 1>&6
2385 echo "$ac_t""no" 1>&6
2397 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2398 if test "${enable_libtool_lock+set}" = set; then
2399 enableval="$enable_libtool_lock"
2403 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2405 # Some flags need to be propagated to the compiler or linker for good
2409 # Find out which ABI we are using.
2410 echo '#line 2411 "configure"' > conftest.$ac_ext
2411 if { (eval echo configure:2412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2412 case `/usr/bin/file conftest.$ac_objext` in
2428 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2429 SAVE_CFLAGS="$CFLAGS"
2430 CFLAGS="$CFLAGS -belf"
2431 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2432 echo "configure:2433: checking whether the C compiler needs -belf" >&5
2433 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2442 cross_compiling=$ac_cv_prog_cc_cross
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2454 lt_cv_cc_needs_belf=yes
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2459 lt_cv_cc_needs_belf=no
2463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2467 cross_compiling=$ac_cv_prog_cc_cross
2471 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2474 CFLAGS="$SAVE_CFLAGS"
2481 # Sed substitution that helps us do robust quoting. It backslashifies
2482 # metacharacters that are still active within double-quoted strings.
2483 Xsed='sed -e s/^X//'
2484 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2486 # Same as above, but do not quote variable references.
2487 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2489 # Sed substitution to delay expansion of an escaped shell variable in a
2490 # double_quote_subst'ed string.
2491 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2497 default_ofile=libtool
2498 can_build_shared=yes
2500 # All known linkers require a `.a' archive for static linking (except M$VC,
2501 # which needs '.lib').
2503 ltmain="$ac_aux_dir/ltmain.sh"
2504 ofile="$default_ofile"
2505 with_gnu_ld="$lt_cv_prog_gnu_ld"
2506 need_locks="$enable_libtool_lock"
2509 old_CFLAGS="$CFLAGS"
2511 # Set sane defaults for various variables
2512 test -z "$AR" && AR=ar
2513 test -z "$AR_FLAGS" && AR_FLAGS=cru
2514 test -z "$AS" && AS=as
2515 test -z "$CC" && CC=cc
2516 test -z "$DLLTOOL" && DLLTOOL=dlltool
2517 test -z "$LD" && LD=ld
2518 test -z "$LN_S" && LN_S="ln -s"
2519 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2520 test -z "$NM" && NM=nm
2521 test -z "$OBJDUMP" && OBJDUMP=objdump
2522 test -z "$RANLIB" && RANLIB=:
2523 test -z "$STRIP" && STRIP=:
2524 test -z "$ac_objext" && ac_objext=o
2526 if test x"$host" != x"$build"; then
2527 ac_tool_prefix=${host_alias}-
2532 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2535 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2540 # AIX sometimes has problems with the GCC collect2 program. For some
2541 # reason, if we set the COLLECT_NAMES environment variable, the problems
2542 # vanish in a puff of smoke.
2543 if test "X${COLLECT_NAMES+set}" != Xset; then
2545 export COLLECT_NAMES
2550 # Determine commands to create old-style static archives.
2551 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2552 old_postinstall_cmds='chmod 644 $oldlib'
2553 old_postuninstall_cmds=
2555 if test -n "$RANLIB"; then
2558 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2561 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2564 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2567 # Allow CC to be a program name with arguments.
2571 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2572 echo "configure:2573: checking for objdir" >&5
2573 rm -f .libs 2>/dev/null
2574 mkdir .libs 2>/dev/null
2575 if test -d .libs; then
2578 # MS-DOS does not allow filenames that begin with a dot.
2581 rmdir .libs 2>/dev/null
2582 echo "$ac_t""$objdir" 1>&6
2585 # Check whether --with-pic or --without-pic was given.
2586 if test "${with_pic+set}" = set; then
2593 test -z "$pic_mode" && pic_mode=default
2595 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2596 # in isolation, and that seeing it set (from the cache) indicates that
2597 # the associated values are set (in the cache) correctly too.
2598 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2599 echo "configure:2600: checking for $compiler option to produce PIC" >&5
2600 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2604 lt_cv_prog_cc_shlib=
2606 lt_cv_prog_cc_static=
2607 lt_cv_prog_cc_no_builtin=
2608 lt_cv_prog_cc_can_build_shared=$can_build_shared
2610 if test "$GCC" = yes; then
2611 lt_cv_prog_cc_wl='-Wl,'
2612 lt_cv_prog_cc_static='-static'
2616 # Below there is a dirty hack to force normal static linking with -ldl
2617 # The problem is because libdl dynamically linked with both libc and
2618 # libC (AIX C++ library), which obviously doesn't included in libraries
2619 # list by gcc. This cause undefined symbols with -static flags.
2620 # This hack allows C programs to be linked with "-static -ldl", but
2621 # not sure about C++ programs.
2622 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2625 # FIXME: we need at least 68020 code to build shared libraries, but
2626 # adding the `-m68020' flag to GCC prevents building anything better,
2628 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2631 # PIC is the default for these OSes.
2633 darwin* | rhapsody*)
2634 # PIC is the default on this platform
2635 # Common symbols not allowed in MH_DYLIB files
2636 lt_cv_prog_cc_pic='-fno-common'
2638 cygwin* | mingw* | pw32* | os2*)
2639 # This hack is so that the source file can tell whether it is being
2640 # built for inclusion in a dll (and should export symbols for example).
2641 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2644 if test -d /usr/nec; then
2645 lt_cv_prog_cc_pic=-Kconform_pic
2649 lt_cv_prog_cc_pic='-fPIC'
2653 # PORTME Check for PIC flags for the system compiler.
2655 aix3* | aix4* | aix5*)
2656 lt_cv_prog_cc_wl='-Wl,'
2657 # All AIX code is PIC.
2658 if test "$host_cpu" = ia64; then
2659 # AIX 5 now supports IA64 processor
2660 lt_cv_prog_cc_static='-Bstatic'
2662 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2666 hpux9* | hpux10* | hpux11*)
2667 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2668 lt_cv_prog_cc_wl='-Wl,'
2669 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2670 lt_cv_prog_cc_pic='+Z'
2673 irix5* | irix6* | nonstopux*)
2674 lt_cv_prog_cc_wl='-Wl,'
2675 lt_cv_prog_cc_static='-non_shared'
2676 # PIC (with -KPIC) is the default.
2679 cygwin* | mingw* | pw32* | os2*)
2680 # This hack is so that the source file can tell whether it is being
2681 # built for inclusion in a dll (and should export symbols for example).
2682 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2686 lt_cv_prog_cc_pic='-KPIC'
2687 lt_cv_prog_cc_static='-Bstatic'
2690 osf3* | osf4* | osf5*)
2691 # All OSF/1 code is PIC.
2692 lt_cv_prog_cc_wl='-Wl,'
2693 lt_cv_prog_cc_static='-non_shared'
2697 lt_cv_prog_cc_pic='-Kpic'
2698 lt_cv_prog_cc_static='-dn'
2699 lt_cv_prog_cc_shlib='-belf'
2703 lt_cv_prog_cc_pic='-KPIC'
2704 lt_cv_prog_cc_static='-Bstatic'
2705 lt_cv_prog_cc_wl='-Wl,'
2709 lt_cv_prog_cc_pic='-PIC'
2710 lt_cv_prog_cc_static='-Bstatic'
2711 lt_cv_prog_cc_wl='-Qoption ld '
2714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2715 lt_cv_prog_cc_pic='-KPIC'
2716 lt_cv_prog_cc_static='-Bstatic'
2717 if test "x$host_vendor" = xsni; then
2718 lt_cv_prog_cc_wl='-LD'
2720 lt_cv_prog_cc_wl='-Wl,'
2725 lt_cv_prog_cc_pic='-pic'
2726 lt_cv_prog_cc_static='-Bstatic'
2730 if test -d /usr/nec ;then
2731 lt_cv_prog_cc_pic='-Kconform_pic'
2732 lt_cv_prog_cc_static='-Bstatic'
2737 lt_cv_prog_cc_can_build_shared=no
2744 if test -z "$lt_cv_prog_cc_pic"; then
2745 echo "$ac_t""none" 1>&6
2747 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2749 # Check to make sure the pic_flag actually works.
2750 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2751 echo "configure:2752: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2752 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 save_CFLAGS="$CFLAGS"
2756 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2768 hpux9* | hpux10* | hpux11*)
2769 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2770 # they create non-PIC objects. So, if there were any warnings, we
2771 # assume that PIC is not supported.
2772 if test -s conftest.err; then
2773 lt_cv_prog_cc_pic_works=no
2775 lt_cv_prog_cc_pic_works=yes
2779 lt_cv_prog_cc_pic_works=yes
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2787 lt_cv_prog_cc_pic_works=no
2791 CFLAGS="$save_CFLAGS"
2796 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2798 lt_cv_prog_cc_can_build_shared=no
2800 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2803 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2806 # Check for any special shared library compilation flags.
2807 if test -n "$lt_cv_prog_cc_shlib"; then
2808 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2809 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2811 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2812 lt_cv_prog_cc_can_build_shared=no
2816 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2817 echo "configure:2818: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2818 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 lt_cv_prog_cc_static_works=no
2822 save_LDFLAGS="$LDFLAGS"
2823 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2832 if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2834 lt_cv_prog_cc_static_works=yes
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2840 LDFLAGS="$save_LDFLAGS"
2845 # Belt *and* braces to stop my trousers falling down:
2846 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2847 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2849 pic_flag="$lt_cv_prog_cc_pic"
2850 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2851 wl="$lt_cv_prog_cc_wl"
2852 link_static_flag="$lt_cv_prog_cc_static"
2853 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2854 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2857 # Check to see if options -o and -c are simultaneously supported by compiler
2858 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2859 echo "configure:2860: checking if $compiler supports -c -o file.$ac_objext" >&5
2860 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2864 $rm -r conftest 2>/dev/null
2867 echo "int some_variable = 0;" > conftest.$ac_ext
2869 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2870 # that will create temporary files in the current directory regardless of
2871 # the output directory. Thus, making CWD read-only will cause this test
2872 # to fail, enabling locking or at least warning the user not to do parallel
2875 save_CFLAGS="$CFLAGS"
2876 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2878 if { (eval echo configure:2879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2879 # The compiler can only warn and ignore the option if not recognized
2880 # So say no if there are warnings
2881 if test -s out/conftest.err; then
2882 lt_cv_compiler_c_o=no
2884 lt_cv_compiler_c_o=yes
2887 # Append any errors to the config.log.
2888 cat out/conftest.err 1>&5
2889 lt_cv_compiler_c_o=no
2891 CFLAGS="$save_CFLAGS"
2897 $rm -r conftest 2>/dev/null
2901 compiler_c_o=$lt_cv_compiler_c_o
2902 echo "$ac_t""$compiler_c_o" 1>&6
2904 if test x"$compiler_c_o" = x"yes"; then
2905 # Check to see if we can write to a .lo
2906 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2907 echo "configure:2908: checking if $compiler supports -c -o file.lo" >&5
2908 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2912 lt_cv_compiler_o_lo=no
2913 save_CFLAGS="$CFLAGS"
2914 CFLAGS="$CFLAGS -c -o conftest.lo"
2915 save_objext="$ac_objext"
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2922 int some_variable = 0;
2925 if { (eval echo configure:2926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2927 # The compiler can only warn and ignore the option if not recognized
2928 # So say no if there are warnings
2929 if test -s conftest.err; then
2930 lt_cv_compiler_o_lo=no
2932 lt_cv_compiler_o_lo=yes
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2940 ac_objext="$save_objext"
2941 CFLAGS="$save_CFLAGS"
2945 compiler_o_lo=$lt_cv_compiler_o_lo
2946 echo "$ac_t""$compiler_o_lo" 1>&6
2951 # Check to see if we can do hard links to lock some files if needed
2952 hard_links="nottested"
2953 if test "$compiler_c_o" = no && test "$need_locks" != no; then
2954 # do not overwrite the value of need_locks provided by the user
2955 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2956 echo "configure:2957: checking if we can lock with hard links" >&5
2959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2961 ln conftest.a conftest.b 2>&5 || hard_links=no
2962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2963 echo "$ac_t""$hard_links" 1>&6
2964 if test "$hard_links" = no; then
2965 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
2972 if test "$GCC" = yes; then
2973 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2974 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
2975 echo "configure:2976: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
2976 echo "int some_variable = 0;" > conftest.$ac_ext
2977 save_CFLAGS="$CFLAGS"
2978 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2979 compiler_rtti_exceptions=no
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2985 int some_variable = 0;
2988 if { (eval echo configure:2989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 # The compiler can only warn and ignore the option if not recognized
2991 # So say no if there are warnings
2992 if test -s conftest.err; then
2993 compiler_rtti_exceptions=no
2995 compiler_rtti_exceptions=yes
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3003 CFLAGS="$save_CFLAGS"
3004 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3006 if test "$compiler_rtti_exceptions" = "yes"; then
3007 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3009 no_builtin_flag=' -fno-builtin'
3013 # See if the linker supports building shared libraries.
3014 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3015 echo "configure:3016: checking whether the linker ($LD) supports shared libraries" >&5
3017 allow_undefined_flag=
3019 need_lib_prefix=unknown
3020 need_version=unknown
3021 # when you set need_version to no, make sure it does not cause -set_version
3022 # flags to be left without arguments
3024 archive_expsym_cmds=
3025 old_archive_from_new_cmds=
3026 old_archive_from_expsyms_cmds=
3027 export_dynamic_flag_spec=
3028 whole_archive_flag_spec=
3029 thread_safe_flag_spec=
3030 hardcode_into_libs=no
3031 hardcode_libdir_flag_spec=
3032 hardcode_libdir_separator=
3035 hardcode_shlibpath_var=unsupported
3037 link_all_deplibs=unknown
3038 always_export_symbols=no
3039 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3040 # include_expsyms should be a list of space-separated symbols to be *always*
3041 # included in the symbol list
3043 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3046 # as well as any symbol that contains `d'.
3047 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3049 # platforms (ab)use it in PIC code, but their linkers get confused if
3050 # the symbol is explicitly referenced. Since portable code cannot
3051 # rely on this symbol name, it's probably fine to never include it in
3052 # preloaded symbol tables.
3053 extract_expsyms_cmds=
3056 cygwin* | mingw* | pw32*)
3057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3058 # When not using gcc, we currently assume that we are using
3059 # Microsoft Visual C++.
3060 if test "$GCC" != yes; then
3070 if test "$with_gnu_ld" = yes; then
3071 # If archive_cmds runs LD, not CC, wlarc should be empty
3074 # See if GNU ld supports shared libraries.
3076 aix3* | aix4* | aix5*)
3077 # On AIX, the GNU linker is very broken
3078 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3083 *** to be unable to reliably create shared libraries on AIX.
3084 *** Therefore, libtool is disabling shared libraries support. If you
3085 *** really care for shared libraries, you may want to modify your PATH
3086 *** so that a non-GNU linker is found, and then restart.
3092 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)'
3093 hardcode_libdir_flag_spec='-L$libdir'
3094 hardcode_minus_L=yes
3096 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3097 # that the semantics of dynamic libraries on AmigaOS, at least up
3098 # to version 4, is to share data among multiple programs linked
3099 # with the same dynamic library. Since this doesn't match the
3100 # behavior of shared libraries on other platforms, we can use
3106 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3107 allow_undefined_flag=unsupported
3108 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3109 # support --undefined. This deserves some investigation. FIXME
3110 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3116 cygwin* | mingw* | pw32*)
3117 # hardcode_libdir_flag_spec is actually meaningless, as there is
3118 # no search path for DLLs.
3119 hardcode_libdir_flag_spec='-L$libdir'
3120 allow_undefined_flag=unsupported
3121 always_export_symbols=yes
3123 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3124 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3125 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3126 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3127 else $CC -o impgen impgen.c ; fi)~
3128 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3130 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3132 # cygwin and mingw dlls have different entry points and sets of symbols
3134 # FIXME: what about values for MSVC?
3135 dll_entry=__cygwin_dll_entry@12
3136 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3140 dll_entry=_DllMainCRTStartup@12
3141 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3145 # mingw and cygwin differ, and it's simplest to just exclude the union
3146 # of the two symbol sets.
3147 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3149 # recent cygwin and mingw systems supply a stub DllMain which the user
3150 # can override, but on older systems we have to supply one (in ltdll.c)
3151 if test "x$lt_cv_need_dllmain" = "xyes"; then
3152 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3153 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~
3154 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3160 # Extract the symbol export list from an `--export-all' def file,
3161 # then regenerate the def file from the symbol export list, so that
3162 # the compiled dll only exports the symbol export list.
3163 # Be careful not to strip the DATA tag left be newer dlltools.
3164 export_symbols_cmds="$ltdll_cmds"'
3165 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3166 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3168 # If the export-symbols file already is a .def file (1st line
3169 # is EXPORTS), use it as is.
3170 # If DATA tags from a recent dlltool are present, honour them!
3171 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3172 cp $export_symbols $output_objdir/$soname-def;
3174 echo EXPORTS > $output_objdir/$soname-def;
3176 cat $export_symbols | while read symbol; do
3179 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3180 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3182 _lt_hint=`expr 1 + \$_lt_hint`;
3186 $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~
3187 $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~
3188 $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~
3189 $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~
3190 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3195 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3198 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3199 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3204 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3208 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3209 *** create shared libraries on Solaris systems. Therefore, libtool
3210 *** is disabling shared libraries support. We urge you to upgrade GNU
3211 *** binutils to release 2.9.1 or newer. Another option is to modify
3212 *** your PATH or compiler configuration so that the native linker is
3213 *** used, and then restart.
3216 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3225 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3228 hardcode_shlibpath_var=no
3232 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3241 if test "$ld_shlibs" = yes; then
3242 runpath_var=LD_RUN_PATH
3243 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3244 export_dynamic_flag_spec='${wl}--export-dynamic'
3246 cygwin* | mingw* | pw32*)
3247 # dlltool doesn't understand --whole-archive et. al.
3248 whole_archive_flag_spec=
3251 # ancient GNU ld didn't support --whole-archive et. al.
3252 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3253 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3255 whole_archive_flag_spec=
3261 # PORTME fill in a description of your system's linker (not GNU ld)
3264 allow_undefined_flag=unsupported
3265 always_export_symbols=yes
3266 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'
3267 # Note: this linker hardcodes the directories in LIBPATH if there
3268 # are no directories specified by -L.
3269 hardcode_minus_L=yes
3270 if test "$GCC" = yes && test -z "$link_static_flag"; then
3271 # Neither direct hardcoding nor static linking is supported with a
3273 hardcode_direct=unsupported
3278 if test "$host_cpu" = ia64; then
3279 # On IA64, the linker does run time linking by default, so we don't
3280 # have to do anything special.
3281 aix_use_runtimelinking=no
3282 exp_sym_flag='-Bexport'
3285 aix_use_runtimelinking=no
3287 # Test if we are trying to use run time linking or normal
3288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3289 # need to do runtime linking.
3290 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3291 for ld_flag in $LDFLAGS; do
3292 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3293 aix_use_runtimelinking=yes
3299 exp_sym_flag='-bexport'
3300 no_entry_flag='-bnoentry'
3303 # When large executables or shared objects are built, AIX ld can
3304 # have problems creating the table of contents. If linking a library
3305 # or program results in "error TOC overflow" add -mminimal-toc to
3306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3311 hardcode_libdir_separator=':'
3312 if test "$GCC" = yes; then
3313 case $host_os in aix4.[012]|aix4.[012].*)
3314 collect2name=`${CC} -print-prog-name=collect2`
3315 if test -f "$collect2name" && \
3316 strings "$collect2name" | grep resolve_lib_name >/dev/null
3318 # We have reworked collect2
3321 # We have old collect2
3322 hardcode_direct=unsupported
3323 # It fails to find uninstalled libraries when the uninstalled
3324 # path is not listed in the libpath. Setting hardcode_minus_L
3325 # to unsupported forces relinking
3326 hardcode_minus_L=yes
3327 hardcode_libdir_flag_spec='-L$libdir'
3328 hardcode_libdir_separator=
3332 shared_flag='-shared'
3335 if test "$host_cpu" = ia64; then
3336 shared_flag='${wl}-G'
3338 if test "$aix_use_runtimelinking" = yes; then
3339 shared_flag='${wl}-G'
3341 shared_flag='${wl}-bM:SRE'
3346 # It seems that -bexpall can do strange things, so it is better to
3347 # generate a list of symbols to export.
3348 always_export_symbols=yes
3349 if test "$aix_use_runtimelinking" = yes; then
3350 # Warning - without using the other runtime loading flags (-brtl),
3351 # -berok will link without error, but may produce a broken library.
3352 allow_undefined_flag='-berok'
3353 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3354 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"
3356 if test "$host_cpu" = ia64; then
3357 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3358 allow_undefined_flag="-z nodefs"
3359 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"
3361 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3362 # Warning - without using the other run time loading flags,
3363 # -berok will link without error, but may produce a broken library.
3364 allow_undefined_flag='${wl}-berok'
3365 # This is a bit strange, but is similar to how AIX traditionally builds
3366 # it's shared libraries.
3367 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'
3373 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)'
3374 hardcode_libdir_flag_spec='-L$libdir'
3375 hardcode_minus_L=yes
3376 # see comment about different semantics on the GNU ld section
3380 cygwin* | mingw* | pw32*)
3381 # When not using gcc, we currently assume that we are using
3382 # Microsoft Visual C++.
3383 # hardcode_libdir_flag_spec is actually meaningless, as there is
3384 # no search path for DLLs.
3385 hardcode_libdir_flag_spec=' '
3386 allow_undefined_flag=unsupported
3387 # Tell ltmain to make .lib files, not .a files.
3389 # FIXME: Setting linknames here is a bad hack.
3390 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3391 # The linker will automatically build a .lib file if we build a DLL.
3392 old_archive_from_new_cmds='true'
3393 # FIXME: Should let the user specify the lib program.
3394 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3395 fix_srcfile_path='`cygpath -w "$srcfile"`'
3398 darwin* | rhapsody*)
3400 rhapsody* | darwin1.[012])
3401 allow_undefined_flag='-undefined suppress'
3404 allow_undefined_flag='-flat_namespace -undefined suppress'
3407 # FIXME: Relying on posixy $() will cause problems for
3408 # cross-compilation, but unfortunately the echo tests do not
3409 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3410 # `"' quotes if we put them in here... so don't!
3411 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3412 # We need to add '_' to the symbols in $export_symbols first
3413 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3415 hardcode_shlibpath_var=no
3416 whole_archive_flag_spec='-all_load $convenience'
3423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3424 # support. Future versions do this automatically, but an explicit c++rt0.o
3425 # does not break anything, and helps significantly (at the cost of a little
3428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3429 hardcode_libdir_flag_spec='-R$libdir'
3431 hardcode_shlibpath_var=no
3434 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3438 hardcode_minus_L=yes
3439 hardcode_shlibpath_var=no
3442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3444 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3445 hardcode_libdir_flag_spec='-R$libdir'
3447 hardcode_shlibpath_var=no
3450 hpux9* | hpux10* | hpux11*)
3452 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' ;;
3453 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3456 hardcode_libdir_separator=:
3458 hardcode_minus_L=yes # Not in the search PATH, but as the default
3459 # location of the library.
3460 export_dynamic_flag_spec='${wl}-E'
3463 irix5* | irix6* | nonstopux*)
3464 if test "$GCC" = yes; then
3465 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'
3467 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'
3469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3470 hardcode_libdir_separator=:
3471 link_all_deplibs=yes
3475 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3480 hardcode_libdir_flag_spec='-R$libdir'
3482 hardcode_shlibpath_var=no
3486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3489 hardcode_libdir_separator=:
3490 hardcode_shlibpath_var=no
3495 hardcode_shlibpath_var=no
3496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3497 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3499 export_dynamic_flag_spec='${wl}-E'
3502 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3504 hardcode_libdir_flag_spec='-R$libdir'
3507 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3515 hardcode_libdir_flag_spec='-L$libdir'
3516 hardcode_minus_L=yes
3517 allow_undefined_flag=unsupported
3518 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'
3519 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3523 if test "$GCC" = yes; then
3524 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3525 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'
3527 allow_undefined_flag=' -expect_unresolved \*'
3528 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'
3530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3531 hardcode_libdir_separator=:
3534 osf4* | osf5*) # as osf3* with the addition of -msym flag
3535 if test "$GCC" = yes; then
3536 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3537 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'
3538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3540 allow_undefined_flag=' -expect_unresolved \*'
3541 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'
3542 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3543 $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'
3545 #Both c and cxx compiler support -rpath directly
3546 hardcode_libdir_flag_spec='-rpath $libdir'
3548 hardcode_libdir_separator=:
3552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3553 hardcode_shlibpath_var=no
3554 runpath_var=LD_RUN_PATH
3555 hardcode_runpath_var=yes
3556 export_dynamic_flag_spec='${wl}-Bexport'
3560 # gcc --version < 3.0 without binutils cannot create self contained
3561 # shared libraries reliably, requiring libgcc.a to resolve some of
3562 # the object symbols generated in some cases. Libraries that use
3563 # assert need libgcc.a to resolve __eprintf, for example. Linking
3564 # a copy of libgcc.a into every shared library to guarantee resolving
3565 # such symbols causes other problems: According to Tim Van Holder
3566 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3567 # (to the application) exception stack for one thing.
3568 no_undefined_flag=' -z defs'
3569 if test "$GCC" = yes; then
3570 case `$CC --version 2>/dev/null` in
3574 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3575 *** create self contained shared libraries on Solaris systems, without
3576 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3577 *** -no-undefined support, which will at least allow you to build shared
3578 *** libraries. However, you may find that when you link such libraries
3579 *** into an application without using GCC, you have to manually add
3580 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3581 *** upgrade to a newer version of GCC. Another option is to rebuild your
3582 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3589 # $CC -shared without GNU ld will not create a library from C++
3590 # object files and a static libstdc++, better avoid it by now
3591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3592 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3594 hardcode_libdir_flag_spec='-R$libdir'
3595 hardcode_shlibpath_var=no
3597 solaris2.[0-5] | solaris2.[0-5].*) ;;
3598 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3599 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3601 link_all_deplibs=yes
3605 if test "x$host_vendor" = xsequent; then
3606 # Use $CC to link under sequent, because it throws in some extra .o
3607 # files that make .init and .fini sections work.
3608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3612 hardcode_libdir_flag_spec='-L$libdir'
3614 hardcode_minus_L=yes
3615 hardcode_shlibpath_var=no
3619 if test "x$host_vendor" = xsno; then
3620 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3621 hardcode_direct=yes # is this really true???
3623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3624 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3626 runpath_var='LD_RUN_PATH'
3627 hardcode_shlibpath_var=no
3631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3632 hardcode_shlibpath_var=no
3633 export_dynamic_flag_spec='-Bexport'
3637 no_undefined_flag=' -z text'
3638 # $CC -shared without GNU ld will not create a library from C++
3639 # object files and a static libstdc++, better avoid it by now
3640 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3641 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3643 hardcode_libdir_flag_spec=
3644 hardcode_shlibpath_var=no
3645 runpath_var='LD_RUN_PATH'
3649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3650 hardcode_libdir_flag_spec='-L$libdir'
3651 hardcode_shlibpath_var=no
3655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3656 hardcode_libdir_flag_spec='-L$libdir'
3657 hardcode_shlibpath_var=no
3661 if test -d /usr/nec; then
3662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3663 hardcode_shlibpath_var=no
3664 runpath_var=LD_RUN_PATH
3665 hardcode_runpath_var=yes
3671 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3674 hardcode_shlibpath_var=no
3675 hardcode_runpath_var=yes
3676 runpath_var=LD_RUN_PATH
3679 sysv5uw7* | unixware7*)
3680 no_undefined_flag='${wl}-z ${wl}text'
3681 if test "$GCC" = yes; then
3682 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3684 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3686 runpath_var='LD_RUN_PATH'
3687 hardcode_shlibpath_var=no
3695 echo "$ac_t""$ld_shlibs" 1>&6
3696 test "$ld_shlibs" = no && can_build_shared=no
3698 # Check hardcoding attributes.
3699 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3700 echo "configure:3701: checking how to hardcode library paths into programs" >&5
3702 if test -n "$hardcode_libdir_flag_spec" || \
3703 test -n "$runpath_var"; then
3705 # We can hardcode non-existant directories.
3706 if test "$hardcode_direct" != no &&
3707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3708 # have to relink, otherwise we might link with an installed library
3709 # when we should be linking with a yet-to-be-installed one
3710 ## test "$hardcode_shlibpath_var" != no &&
3711 test "$hardcode_minus_L" != no; then
3712 # Linking always hardcodes the temporary library directory.
3713 hardcode_action=relink
3715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3716 hardcode_action=immediate
3719 # We cannot hardcode anything, or else we can only hardcode existing
3721 hardcode_action=unsupported
3723 echo "$ac_t""$hardcode_action" 1>&6
3727 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3728 echo "configure:3729: checking whether stripping libraries is possible" >&5
3729 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3730 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3731 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3732 echo "$ac_t""yes" 1>&6
3734 echo "$ac_t""no" 1>&6
3737 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3738 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3740 # PORTME Fill in your ld.so characteristics
3741 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3742 echo "configure:3743: checking dynamic linker characteristics" >&5
3744 libname_spec='lib$name'
3751 shlibpath_overrides_runpath=unknown
3753 dynamic_linker="$host_os ld.so"
3754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3760 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3761 shlibpath_var=LIBPATH
3763 # AIX has no versioning support, so we append a major version to the name.
3764 soname_spec='${libname}${release}.so$major'
3769 if test "$host_cpu" = ia64; then
3770 # AIX 5 supports IA64
3771 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3772 shlibpath_var=LD_LIBRARY_PATH
3774 # With GCC up to 2.95.x, collect2 would create an import file
3775 # for dependence libraries. The import file would start with
3776 # the line `#! .'. This would cause the generated library to
3777 # depend on `.', always an invalid library. This was fixed in
3778 # development snapshots of GCC prior to 3.0.
3780 aix4 | aix4.[01] | aix4.[01].*)
3781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3783 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3790 # AIX (on Power*) has no versioning support, so currently we can
3791 # not hardcode correct soname into executable. Probably we can
3792 # add versioning support to collect2, so additional links can
3793 # be useful in future.
3794 if test "$aix_use_runtimelinking" = yes; then
3795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3796 # instead of lib<name>.a to let people know that these are not
3797 # typical AIX shared libraries.
3798 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3800 # We preserve .a as extension for shared libraries through AIX4.2
3801 # and later when we are not doing run time linking.
3802 library_names_spec='${libname}${release}.a $libname.a'
3803 soname_spec='${libname}${release}.so$major'
3805 shlibpath_var=LIBPATH
3810 library_names_spec='$libname.ixlibrary $libname.a'
3811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3812 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'
3816 library_names_spec='${libname}.so'
3817 dynamic_linker="$host_os ld.so"
3818 shlibpath_var=LIBRARY_PATH
3824 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3825 soname_spec='${libname}${release}.so$major'
3826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3827 shlibpath_var=LD_LIBRARY_PATH
3828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3830 export_dynamic_flag_spec=-rdynamic
3831 # the default ld.so.conf also contains /usr/contrib/lib and
3832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3833 # libtool to hard-code these into programs
3836 cygwin* | mingw* | pw32*)
3837 version_type=windows
3840 case $GCC,$host_os in
3842 library_names_spec='$libname.dll.a'
3843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3844 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3845 dldir=$destdir/`dirname \$dlpath`~
3846 test -d \$dldir || mkdir -p \$dldir~
3847 $install_prog .libs/$dlname \$dldir/$dlname'
3848 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3849 dlpath=$dir/\$dldll~
3853 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3860 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3863 dynamic_linker='Win32 ld.exe'
3864 # FIXME: first we should search . and the directory the executable is in
3868 darwin* | rhapsody*)
3869 dynamic_linker="$host_os dyld"
3873 # FIXME: Relying on posixy $() will cause problems for
3874 # cross-compilation, but unfortunately the echo tests do not
3875 # yet detect zsh echo's removal of \ escapes.
3876 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)'
3877 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3878 shlibpath_overrides_runpath=yes
3879 shlibpath_var=DYLD_LIBRARY_PATH
3887 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3888 version_type=freebsd-$objformat
3889 case $version_type in
3891 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3896 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3900 shlibpath_var=LD_LIBRARY_PATH
3903 shlibpath_overrides_runpath=yes
3906 shlibpath_overrides_runpath=no
3907 hardcode_into_libs=yes
3916 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3917 soname_spec='${libname}${release}.so$major'
3918 shlibpath_var=LD_LIBRARY_PATH
3919 hardcode_into_libs=yes
3922 hpux9* | hpux10* | hpux11*)
3923 # Give a soname corresponding to the major version so that dld.sl refuses to
3924 # link against other versions.
3925 dynamic_linker="$host_os dld.sl"
3929 shlibpath_var=SHLIB_PATH
3930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3931 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3932 soname_spec='${libname}${release}.sl$major'
3933 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3934 postinstall_cmds='chmod 555 $lib'
3937 irix5* | irix6* | nonstopux*)
3939 nonstopux*) version_type=nonstopux ;;
3940 *) version_type=irix ;;
3944 soname_spec='${libname}${release}.so$major'
3945 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3947 irix5* | nonstopux*)
3951 case $LD in # libtool.m4 will add one of these switches to LD
3952 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3953 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3954 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3955 *) libsuff= shlibsuff= libmagic=never-match;;
3959 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3960 shlibpath_overrides_runpath=no
3961 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3962 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3965 # No shared lib support for Linux oldld, aout, or coff.
3966 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
3970 # This must be Linux ELF.
3975 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3976 soname_spec='${libname}${release}.so$major'
3977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3978 shlibpath_var=LD_LIBRARY_PATH
3979 shlibpath_overrides_runpath=no
3980 # This implies no fast_install, which is unacceptable.
3981 # Some rework will be needed to allow for fast_install
3982 # before this can be enabled.
3983 hardcode_into_libs=yes
3985 # We used to test for /lib/ld.so.1 and disable shared libraries on
3986 # powerpc, because MkLinux only supported shared libraries with the
3987 # GNU dynamic linker. Since this was broken with cross compilers,
3988 # most powerpc-linux boxes support dynamic linking these days and
3989 # people can always --disable-shared, the test was removed, and we
3990 # assume the GNU/Linux dynamic linker is in use.
3991 dynamic_linker='GNU/Linux ld.so'
3998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3999 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4001 dynamic_linker='NetBSD (a.out) ld.so'
4003 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4004 soname_spec='${libname}${release}.so$major'
4005 dynamic_linker='NetBSD ld.elf_so'
4007 shlibpath_var=LD_LIBRARY_PATH
4008 shlibpath_overrides_runpath=yes
4009 hardcode_into_libs=yes
4014 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4015 shlibpath_var=LD_LIBRARY_PATH
4016 shlibpath_overrides_runpath=yes
4023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4025 openbsd2.[89] | openbsd2.[89].*)
4026 shlibpath_overrides_runpath=no
4029 shlibpath_overrides_runpath=yes
4033 shlibpath_overrides_runpath=yes
4035 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4037 shlibpath_var=LD_LIBRARY_PATH
4041 libname_spec='$name'
4043 library_names_spec='$libname.dll $libname.a'
4044 dynamic_linker='OS/2 ld.exe'
4045 shlibpath_var=LIBPATH
4048 osf3* | osf4* | osf5*)
4051 soname_spec='${libname}${release}.so'
4052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4053 shlibpath_var=LD_LIBRARY_PATH
4054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4055 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4060 soname_spec='${libname}${release}.so$major'
4061 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4062 shlibpath_var=LD_LIBRARY_PATH
4069 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4070 soname_spec='${libname}${release}.so$major'
4071 shlibpath_var=LD_LIBRARY_PATH
4072 shlibpath_overrides_runpath=yes
4073 hardcode_into_libs=yes
4074 # ldd complains unless libraries are executable
4075 postinstall_cmds='chmod +x $lib'
4080 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4081 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4082 shlibpath_var=LD_LIBRARY_PATH
4083 shlibpath_overrides_runpath=yes
4084 if test "$with_gnu_ld" = yes; then
4090 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4092 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4093 soname_spec='${libname}${release}.so$major'
4094 shlibpath_var=LD_LIBRARY_PATH
4095 case $host_vendor in
4097 shlibpath_overrides_runpath=no
4102 shlibpath_overrides_runpath=no
4103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4110 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4111 soname_spec='${libname}${release}.so$major'
4112 shlibpath_var=LD_LIBRARY_PATH
4119 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4120 soname_spec='${libname}${release}.so$major'
4121 shlibpath_var=LD_LIBRARY_PATH
4125 if test -d /usr/nec ;then
4127 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4128 soname_spec='$libname.so.$major'
4129 shlibpath_var=LD_LIBRARY_PATH
4137 echo "$ac_t""$dynamic_linker" 1>&6
4138 test "$dynamic_linker" = no && can_build_shared=no
4140 # Report the final consequences.
4141 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4142 echo "configure:4143: checking if libtool supports shared libraries" >&5
4143 echo "$ac_t""$can_build_shared" 1>&6
4145 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4146 echo "configure:4147: checking whether to build shared libraries" >&5
4147 test "$can_build_shared" = "no" && enable_shared=no
4149 # On AIX, shared libraries and static libraries use the same namespace, and
4150 # are all built from PIC.
4153 test "$enable_shared" = yes && enable_static=no
4154 if test -n "$RANLIB"; then
4155 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4156 postinstall_cmds='$RANLIB $lib'
4161 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4162 test "$enable_shared" = yes && enable_static=no
4166 echo "$ac_t""$enable_shared" 1>&6
4168 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4169 echo "configure:4170: checking whether to build static libraries" >&5
4170 # Make sure either enable_shared or enable_static is yes.
4171 test "$enable_shared" = yes || enable_static=yes
4172 echo "$ac_t""$enable_static" 1>&6
4174 if test "$hardcode_action" = relink; then
4175 # Fast installation is not supported
4176 enable_fast_install=no
4177 elif test "$shlibpath_overrides_runpath" = yes ||
4178 test "$enable_shared" = no; then
4179 # Fast installation is not necessary
4180 enable_fast_install=needless
4183 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4184 if test "$GCC" = yes; then
4185 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4188 if test "x$enable_dlopen" != xyes; then
4189 enable_dlopen=unknown
4190 enable_dlopen_self=unknown
4191 enable_dlopen_self_static=unknown
4198 lt_cv_dlopen="load_add_on"
4200 lt_cv_dlopen_self=yes
4203 cygwin* | mingw* | pw32*)
4204 lt_cv_dlopen="LoadLibrary"
4209 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4210 echo "configure:4211: checking for shl_load" >&5
4211 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* System header to define __stub macros and hopefully few prototypes,
4218 which can conflict with char shl_load(); below. */
4220 /* Override any gcc2 internal prototype to avoid an error. */
4221 /* We use char because int might match the return type of a gcc2
4222 builtin and then its argument prototype would still apply. */
4227 /* The GNU C library defines this for functions which it implements
4228 to always fail with ENOSYS. Some functions are actually named
4229 something starting with __ and the normal name is an alias. */
4230 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4240 eval "ac_cv_func_shl_load=yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 eval "ac_cv_func_shl_load=no"
4250 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 lt_cv_dlopen="shl_load"
4254 echo "$ac_t""no" 1>&6
4255 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4256 echo "configure:4257: checking for shl_load in -ldld" >&5
4257 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4292 echo "$ac_t""no" 1>&6
4293 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4294 echo "configure:4295: checking for dlopen" >&5
4295 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4301 /* System header to define __stub macros and hopefully few prototypes,
4302 which can conflict with char dlopen(); below. */
4304 /* Override any gcc2 internal prototype to avoid an error. */
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4311 /* The GNU C library defines this for functions which it implements
4312 to always fail with ENOSYS. Some functions are actually named
4313 something starting with __ and the normal name is an alias. */
4314 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4324 eval "ac_cv_func_dlopen=yes"
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 eval "ac_cv_func_dlopen=no"
4334 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4336 lt_cv_dlopen="dlopen"
4338 echo "$ac_t""no" 1>&6
4339 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4340 echo "configure:4341: checking for dlopen in -ldl" >&5
4341 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 ac_save_LIBS="$LIBS"
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4359 if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4361 eval "ac_cv_lib_$ac_lib_var=yes"
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4366 eval "ac_cv_lib_$ac_lib_var=no"
4369 LIBS="$ac_save_LIBS"
4372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4376 echo "$ac_t""no" 1>&6
4377 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4378 echo "configure:4379: checking for dlopen in -lsvld" >&5
4379 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 ac_save_LIBS="$LIBS"
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 /* We use char because int might match the return type of a gcc2
4390 builtin and then its argument prototype would still apply. */
4397 if { (eval echo configure:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399 eval "ac_cv_lib_$ac_lib_var=yes"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4404 eval "ac_cv_lib_$ac_lib_var=no"
4407 LIBS="$ac_save_LIBS"
4410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4411 echo "$ac_t""yes" 1>&6
4412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4414 echo "$ac_t""no" 1>&6
4415 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4416 echo "configure:4417: checking for dld_link in -ldld" >&5
4417 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 ac_save_LIBS="$LIBS"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 eval "ac_cv_lib_$ac_lib_var=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_lib_$ac_lib_var=no"
4445 LIBS="$ac_save_LIBS"
4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4452 echo "$ac_t""no" 1>&6
4473 if test "x$lt_cv_dlopen" != xno; then
4479 case $lt_cv_dlopen in
4481 save_CPPFLAGS="$CPPFLAGS"
4482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4484 save_LDFLAGS="$LDFLAGS"
4485 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4488 LIBS="$lt_cv_dlopen_libs $LIBS"
4490 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4491 echo "configure:4492: checking whether a program can dlopen itself" >&5
4492 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 if test "$cross_compiling" = yes; then :
4496 lt_cv_dlopen_self=cross
4498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4499 lt_status=$lt_dlunknown
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4511 # define LT_DLGLOBAL RTLD_GLOBAL
4514 # define LT_DLGLOBAL DL_GLOBAL
4516 # define LT_DLGLOBAL 0
4520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4521 find out it does not work in some platform. */
4522 #ifndef LT_DLLAZY_OR_NOW
4524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4527 # define LT_DLLAZY_OR_NOW DL_LAZY
4530 # define LT_DLLAZY_OR_NOW RTLD_NOW
4533 # define LT_DLLAZY_OR_NOW DL_NOW
4535 # define LT_DLLAZY_OR_NOW 0
4543 extern "C" void exit (int);
4546 void fnord() { int i=42;}
4549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4550 int status = $lt_dlunknown;
4554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4556 /* dlclose (self); */
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4563 (./conftest; exit; ) 2>/dev/null
4566 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4567 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4568 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4571 # compilation failed
4572 lt_cv_dlopen_self=no
4580 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4582 if test "x$lt_cv_dlopen_self" = xyes; then
4583 LDFLAGS="$LDFLAGS $link_static_flag"
4584 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4585 echo "configure:4586: checking whether a statically linked program can dlopen itself" >&5
4586 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 if test "$cross_compiling" = yes; then :
4590 lt_cv_dlopen_self_static=cross
4592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4593 lt_status=$lt_dlunknown
4594 cat > conftest.$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4605 # define LT_DLGLOBAL RTLD_GLOBAL
4608 # define LT_DLGLOBAL DL_GLOBAL
4610 # define LT_DLGLOBAL 0
4614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4615 find out it does not work in some platform. */
4616 #ifndef LT_DLLAZY_OR_NOW
4618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4621 # define LT_DLLAZY_OR_NOW DL_LAZY
4624 # define LT_DLLAZY_OR_NOW RTLD_NOW
4627 # define LT_DLLAZY_OR_NOW DL_NOW
4629 # define LT_DLLAZY_OR_NOW 0
4637 extern "C" void exit (int);
4640 void fnord() { int i=42;}
4643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4644 int status = $lt_dlunknown;
4648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4649 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4650 /* dlclose (self); */
4656 if { (eval echo configure:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4657 (./conftest; exit; ) 2>/dev/null
4660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4662 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4665 # compilation failed
4666 lt_cv_dlopen_self_static=no
4674 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4677 CPPFLAGS="$save_CPPFLAGS"
4678 LDFLAGS="$save_LDFLAGS"
4683 case $lt_cv_dlopen_self in
4684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4685 *) enable_dlopen_self=unknown ;;
4688 case $lt_cv_dlopen_self_static in
4689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4690 *) enable_dlopen_self_static=unknown ;;
4695 if test "$enable_shared" = yes && test "$GCC" = yes; then
4696 case $archive_cmds in
4698 # FIXME: we may have to deal with multi-command sequences.
4701 # Test whether the compiler implicitly links with -lc since on some
4702 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4703 # to ld, don't add -lc before -lgcc.
4704 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4705 echo "configure:4706: checking whether -lc should be explicitly linked in" >&5
4706 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4710 echo 'static int dummy;' > conftest.$ac_ext
4712 if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4715 libobjs=conftest.$ac_objext
4717 wl=$lt_cv_prog_cc_wl
4723 save_allow_undefined_flag=$allow_undefined_flag
4724 allow_undefined_flag=
4725 if { (eval echo configure:4726: \"$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; }
4727 lt_cv_archive_cmds_need_lc=no
4729 lt_cv_archive_cmds_need_lc=yes
4731 allow_undefined_flag=$save_allow_undefined_flag
4733 cat conftest.err 1>&5
4737 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4741 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4743 # The second clause should only fire when bootstrapping the
4744 # libtool distribution, otherwise you forgot to ship ltmain.sh
4745 # with your package, and you will get complaints that there are
4746 # no rules to generate ltmain.sh.
4747 if test -f "$ltmain"; then
4750 # If there is no Makefile yet, we rely on a make rule to execute
4751 # `config.status --recheck' to rerun these tests and create the
4752 # libtool script then.
4753 test -f Makefile && make "$ltmain"
4756 if test -f "$ltmain"; then
4757 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4760 echo creating $ofile
4762 # Now quote all the things that may contain metacharacters while being
4763 # careful not to overquote the AC_SUBSTed values. We take copies of the
4764 # variables and quote the copies for generation of the libtool script.
4765 for var in echo old_CC old_CFLAGS \
4766 AR AR_FLAGS CC LD LN_S NM SHELL \
4767 reload_flag reload_cmds wl \
4768 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4769 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4770 library_names_spec soname_spec \
4771 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4772 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4773 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4774 old_striplib striplib file_magic_cmd export_symbols_cmds \
4775 deplibs_check_method allow_undefined_flag no_undefined_flag \
4776 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4777 global_symbol_to_c_name_address \
4778 hardcode_libdir_flag_spec hardcode_libdir_separator \
4779 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4780 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4783 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4784 old_postinstall_cmds | old_postuninstall_cmds | \
4785 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4786 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4787 postinstall_cmds | postuninstall_cmds | \
4788 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4789 # Double-quote double-evaled strings.
4790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4793 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4798 cat <<__EOF__ > "${ofile}T"
4801 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4802 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4803 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4805 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4806 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4808 # This program is free software; you can redistribute it and/or modify
4809 # it under the terms of the GNU General Public License as published by
4810 # the Free Software Foundation; either version 2 of the License, or
4811 # (at your option) any later version.
4813 # This program is distributed in the hope that it will be useful, but
4814 # WITHOUT ANY WARRANTY; without even the implied warranty of
4815 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4816 # General Public License for more details.
4818 # You should have received a copy of the GNU General Public License
4819 # along with this program; if not, write to the Free Software
4820 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4822 # As a special exception to the GNU General Public License, if you
4823 # distribute this file as part of a program that contains a
4824 # configuration script generated by Autoconf, you may include it under
4825 # the same distribution terms that you use for the rest of that program.
4827 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4828 Xsed="sed -e s/^X//"
4830 # The HP-UX ksh and POSIX shell print the target directory to stdout
4832 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4834 # ### BEGIN LIBTOOL CONFIG
4836 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4838 # Shell to use when invoking shell scripts.
4841 # Whether or not to build shared libraries.
4842 build_libtool_libs=$enable_shared
4844 # Whether or not to build static libraries.
4845 build_old_libs=$enable_static
4847 # Whether or not to add -lc for building shared libraries.
4848 build_libtool_need_lc=$need_lc
4850 # Whether or not to optimize for fast installation.
4851 fast_install=$enable_fast_install
4854 host_alias=$host_alias
4857 # An echo program that does not interpret backslashes.
4862 AR_FLAGS=$lt_AR_FLAGS
4864 # The default C compiler.
4867 # Is the compiler the GNU C compiler?
4870 # The linker used to build libraries.
4873 # Whether we need hard or soft links.
4876 # A BSD-compatible nm program.
4879 # A symbol stripping program
4882 # Used to examine libraries when file_magic_cmd begins "file"
4883 MAGIC_CMD=$MAGIC_CMD
4885 # Used on cygwin: DLL creation program.
4888 # Used on cygwin: object dumper.
4891 # Used on cygwin: assembler.
4894 # The name of the directory that contains temporary libtool files.
4897 # How to create reloadable object files.
4898 reload_flag=$lt_reload_flag
4899 reload_cmds=$lt_reload_cmds
4901 # How to pass a linker flag through the compiler.
4904 # Object file suffix (normally "o").
4907 # Old archive suffix (normally "a").
4910 # Executable file suffix (normally "").
4913 # Additional compiler flags for building library objects.
4914 pic_flag=$lt_pic_flag
4917 # Does compiler simultaneously support -c and -o options?
4918 compiler_c_o=$lt_compiler_c_o
4920 # Can we write directly to a .lo ?
4921 compiler_o_lo=$lt_compiler_o_lo
4923 # Must we lock files when doing compilation ?
4924 need_locks=$lt_need_locks
4926 # Do we need the lib prefix for modules?
4927 need_lib_prefix=$need_lib_prefix
4929 # Do we need a version for libraries?
4930 need_version=$need_version
4932 # Whether dlopen is supported.
4933 dlopen_support=$enable_dlopen
4935 # Whether dlopen of programs is supported.
4936 dlopen_self=$enable_dlopen_self
4938 # Whether dlopen of statically linked programs is supported.
4939 dlopen_self_static=$enable_dlopen_self_static
4941 # Compiler flag to prevent dynamic linking.
4942 link_static_flag=$lt_link_static_flag
4944 # Compiler flag to turn off builtin functions.
4945 no_builtin_flag=$lt_no_builtin_flag
4947 # Compiler flag to allow reflexive dlopens.
4948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4950 # Compiler flag to generate shared objects directly from archives.
4951 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4953 # Compiler flag to generate thread-safe objects.
4954 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4956 # Library versioning type.
4957 version_type=$version_type
4959 # Format of library name prefix.
4960 libname_spec=$lt_libname_spec
4962 # List of archive names. First name is the real one, the rest are links.
4963 # The last name is the one that the linker finds with -lNAME.
4964 library_names_spec=$lt_library_names_spec
4966 # The coded name of the library, if different from the real name.
4967 soname_spec=$lt_soname_spec
4969 # Commands used to build and install an old-style archive.
4971 old_archive_cmds=$lt_old_archive_cmds
4972 old_postinstall_cmds=$lt_old_postinstall_cmds
4973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4975 # Create an old-style archive from a shared archive.
4976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
4978 # Create a temporary old-style archive to link instead of a shared archive.
4979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
4981 # Commands used to build and install a shared archive.
4982 archive_cmds=$lt_archive_cmds
4983 archive_expsym_cmds=$lt_archive_expsym_cmds
4984 postinstall_cmds=$lt_postinstall_cmds
4985 postuninstall_cmds=$lt_postuninstall_cmds
4987 # Commands to strip libraries.
4988 old_striplib=$lt_old_striplib
4989 striplib=$lt_striplib
4991 # Method to check whether dependent libraries are shared objects.
4992 deplibs_check_method=$lt_deplibs_check_method
4994 # Command to use when deplibs_check_method == file_magic.
4995 file_magic_cmd=$lt_file_magic_cmd
4997 # Flag that allows shared libraries with undefined symbols to be built.
4998 allow_undefined_flag=$lt_allow_undefined_flag
5000 # Flag that forces no undefined symbols.
5001 no_undefined_flag=$lt_no_undefined_flag
5003 # Commands used to finish a libtool library installation in a directory.
5004 finish_cmds=$lt_finish_cmds
5006 # Same as above, but a single script fragment to be evaled but not shown.
5007 finish_eval=$lt_finish_eval
5009 # Take the output of nm and produce a listing of raw symbols and C names.
5010 global_symbol_pipe=$lt_global_symbol_pipe
5012 # Transform the output of nm in a proper C declaration
5013 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5015 # Transform the output of nm in a C name address pair
5016 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5018 # This is the shared library runtime path variable.
5019 runpath_var=$runpath_var
5021 # This is the shared library path variable.
5022 shlibpath_var=$shlibpath_var
5024 # Is shlibpath searched before the hard-coded library search path?
5025 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5027 # How to hardcode a shared library path into an executable.
5028 hardcode_action=$hardcode_action
5030 # Whether we should hardcode library paths into libraries.
5031 hardcode_into_libs=$hardcode_into_libs
5033 # Flag to hardcode \$libdir into a binary during linking.
5034 # This must work even if \$libdir does not exist.
5035 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5037 # Whether we need a single -rpath flag with a separated argument.
5038 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5040 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5042 hardcode_direct=$hardcode_direct
5044 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5046 hardcode_minus_L=$hardcode_minus_L
5048 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5049 # the resulting binary.
5050 hardcode_shlibpath_var=$hardcode_shlibpath_var
5052 # Variables whose values should be saved in libtool wrapper scripts and
5053 # restored at relink time.
5054 variables_saved_for_relink="$variables_saved_for_relink"
5056 # Whether libtool must link a program against all its dependency libraries.
5057 link_all_deplibs=$link_all_deplibs
5059 # Compile-time system search path for libraries
5060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5062 # Run-time system search path for libraries
5063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5065 # Fix the shell variable \$srcfile for the compiler.
5066 fix_srcfile_path="$fix_srcfile_path"
5068 # Set to yes if exported symbols are required.
5069 always_export_symbols=$always_export_symbols
5071 # The commands to list exported symbols.
5072 export_symbols_cmds=$lt_export_symbols_cmds
5074 # The commands to extract the exported symbol list from a shared archive.
5075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5077 # Symbols that should not be listed in the preloaded symbols.
5078 exclude_expsyms=$lt_exclude_expsyms
5080 # Symbols that must always be exported.
5081 include_expsyms=$lt_include_expsyms
5083 # ### END LIBTOOL CONFIG
5089 cat <<\EOF >> "${ofile}T"
5091 # AIX sometimes has problems with the GCC collect2 program. For some
5092 # reason, if we set the COLLECT_NAMES environment variable, the problems
5093 # vanish in a puff of smoke.
5094 if test "X${COLLECT_NAMES+set}" != Xset; then
5096 export COLLECT_NAMES
5103 cygwin* | mingw* | pw32* | os2*)
5104 cat <<'EOF' >> "${ofile}T"
5105 # This is a source program that is used to create dlls on Windows
5106 # Don't remove nor modify the starting and closing comments
5107 # /* ltdll.c starts here */
5108 # #define WIN32_LEAN_AND_MEAN
5109 # #include <windows.h>
5110 # #undef WIN32_LEAN_AND_MEAN
5111 # #include <stdio.h>
5113 # #ifndef __CYGWIN__
5114 # # ifdef __CYGWIN32__
5115 # # define __CYGWIN__ __CYGWIN32__
5119 # #ifdef __cplusplus
5122 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5123 # #ifdef __cplusplus
5128 # #include <cygwin/cygwin_dll.h>
5129 # DECLARE_CYGWIN_DLL( DllMain );
5131 # HINSTANCE __hDllInstance_base;
5134 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5136 # __hDllInstance_base = hInst;
5139 # /* ltdll.c ends here */
5140 # This is a source program that is used to create import libraries
5141 # on Windows for dlls which lack them. Don't remove nor modify the
5142 # starting and closing comments
5143 # /* impgen.c starts here */
5144 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5146 # This file is part of GNU libtool.
5148 # This program is free software; you can redistribute it and/or modify
5149 # it under the terms of the GNU General Public License as published by
5150 # the Free Software Foundation; either version 2 of the License, or
5151 # (at your option) any later version.
5153 # This program is distributed in the hope that it will be useful,
5154 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5155 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5156 # GNU General Public License for more details.
5158 # You should have received a copy of the GNU General Public License
5159 # along with this program; if not, write to the Free Software
5160 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5163 # #include <stdio.h> /* for printf() */
5164 # #include <unistd.h> /* for open(), lseek(), read() */
5165 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5166 # #include <string.h> /* for strdup() */
5168 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5170 # #define O_BINARY 0
5173 # static unsigned int
5174 # pe_get16 (fd, offset)
5178 # unsigned char b[2];
5179 # lseek (fd, offset, SEEK_SET);
5181 # return b[0] + (b[1]<<8);
5184 # static unsigned int
5185 # pe_get32 (fd, offset)
5189 # unsigned char b[4];
5190 # lseek (fd, offset, SEEK_SET);
5192 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5195 # static unsigned int
5199 # unsigned char *b = ptr;
5200 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5209 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5210 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5211 # unsigned long name_rvas, nexp;
5212 # unsigned char *expdata, *erva;
5213 # char *filename, *dll_name;
5215 # filename = argv[1];
5217 # dll = open(filename, O_RDONLY|O_BINARY);
5221 # dll_name = filename;
5223 # for (i=0; filename[i]; i++)
5224 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5225 # dll_name = filename + i +1;
5227 # pe_header_offset = pe_get32 (dll, 0x3c);
5228 # opthdr_ofs = pe_header_offset + 4 + 20;
5229 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5231 # if (num_entries < 1) /* no exports */
5234 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5235 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5236 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5237 # secptr = (pe_header_offset + 4 + 20 +
5238 # pe_get16 (dll, pe_header_offset + 4 + 16));
5241 # for (i = 0; i < nsections; i++)
5244 # unsigned long secptr1 = secptr + 40 * i;
5245 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5246 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5247 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5248 # lseek(dll, secptr1, SEEK_SET);
5249 # read(dll, sname, 8);
5250 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5252 # expptr = fptr + (export_rva - vaddr);
5253 # if (export_rva + export_size > vaddr + vsize)
5254 # export_size = vsize - (export_rva - vaddr);
5259 # expdata = (unsigned char*)malloc(export_size);
5260 # lseek (dll, expptr, SEEK_SET);
5261 # read (dll, expdata, export_size);
5262 # erva = expdata - export_rva;
5264 # nexp = pe_as32 (expdata+24);
5265 # name_rvas = pe_as32 (expdata+32);
5267 # printf ("EXPORTS\n");
5268 # for (i = 0; i<nexp; i++)
5270 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5271 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5276 # /* impgen.c ends here */
5282 # We use sed instead of cat because bash on DJGPP gets confused if
5283 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5284 # text mode, it properly converts lines to CR/LF. This bash problem
5285 # is reportedly fixed, but why not run on old versions too?
5286 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5288 mv -f "${ofile}T" "$ofile" || \
5289 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5297 # This can be used to rebuild libtool when needed
5298 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5300 # Always use our own libtool.
5301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5303 # Prevent multiple expansion
5306 for ac_prog in gzip uncompress compress
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5311 echo "configure:5312: checking for $ac_word" >&5
5312 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 if test -n "$UNCOMPRESS"; then
5316 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
5318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5320 for ac_dir in $ac_dummy; do
5321 test -z "$ac_dir" && ac_dir=.
5322 if test -f $ac_dir/$ac_word; then
5323 ac_cv_prog_UNCOMPRESS="$ac_prog"
5330 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
5331 if test -n "$UNCOMPRESS"; then
5332 echo "$ac_t""$UNCOMPRESS" 1>&6
5334 echo "$ac_t""no" 1>&6
5337 test -n "$UNCOMPRESS" && break
5343 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5344 echo "configure:5345: checking for executable suffix" >&5
5345 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5352 echo 'int main () { return 0; }' > conftest.$ac_ext
5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5355 for file in conftest.*; do
5357 *.c | *.o | *.obj) ;;
5358 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5362 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5365 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5370 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5371 echo "$ac_t""${ac_cv_exeext}" 1>&6
5375 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5376 echo "configure:5377: checking for sin in -lm" >&5
5377 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 ac_save_LIBS="$LIBS"
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386 /* Override any gcc2 internal prototype to avoid an error. */
5387 /* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397 eval "ac_cv_lib_$ac_lib_var=yes"
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5402 eval "ac_cv_lib_$ac_lib_var=no"
5405 LIBS="$ac_save_LIBS"
5408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5409 echo "$ac_t""yes" 1>&6
5410 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5411 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5412 cat >> confdefs.h <<EOF
5413 #define $ac_tr_lib 1
5419 echo "$ac_t""no" 1>&6
5420 echo "Error: Math library not found.";
5425 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5426 echo "configure:5427: checking for deflate in -lz" >&5
5427 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 ac_save_LIBS="$LIBS"
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5447 eval "ac_cv_lib_$ac_lib_var=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 eval "ac_cv_lib_$ac_lib_var=no"
5455 LIBS="$ac_save_LIBS"
5458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5459 echo "$ac_t""yes" 1>&6
5460 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5461 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5462 cat >> confdefs.h <<EOF
5463 #define $ac_tr_lib 1
5469 echo "$ac_t""no" 1>&6
5470 echo "Error: The zlib compression library is required."
5471 DISABLEPDF2SWF=true;
5472 MISSINGLIBS="${MISSINGLIBS} zlib"
5477 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
5478 echo "configure:5479: checking for jpeg_write_raw_data in -ljpeg" >&5
5479 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
5480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 ac_save_LIBS="$LIBS"
5485 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5491 char jpeg_write_raw_data();
5494 jpeg_write_raw_data()
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5499 eval "ac_cv_lib_$ac_lib_var=yes"
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5504 eval "ac_cv_lib_$ac_lib_var=no"
5507 LIBS="$ac_save_LIBS"
5510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5511 echo "$ac_t""yes" 1>&6
5512 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5514 cat >> confdefs.h <<EOF
5515 #define $ac_tr_lib 1
5521 echo "$ac_t""no" 1>&6
5522 DISABLEPDF2SWF=true;
5523 DISABLEJPEG2SWF=true;
5524 MISSINGLIBS="${MISSINGLIBS} jpeglib"
5528 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
5529 echo "configure:5530: checking for T1_LoadFont in -lt1" >&5
5530 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
5531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5534 ac_save_LIBS="$LIBS"
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5539 /* Override any gcc2 internal prototype to avoid an error. */
5540 /* We use char because int might match the return type of a gcc2
5541 builtin and then its argument prototype would still apply. */
5548 if { (eval echo configure:5549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5550 eval "ac_cv_lib_$ac_lib_var=yes"
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 eval "ac_cv_lib_$ac_lib_var=no"
5558 LIBS="$ac_save_LIBS"
5561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5562 echo "$ac_t""yes" 1>&6
5563 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5564 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5565 cat >> confdefs.h <<EOF
5566 #define $ac_tr_lib 1
5572 echo "$ac_t""no" 1>&6
5573 DISABLEPDF2SWF=true;
5574 MISSINGLIBS="${MISSINGLIBS} T1lib"
5580 echo $ac_n "checking for byte order""... $ac_c" 1>&6
5581 echo "configure:5582: checking for byte order" >&5
5582 if test "$cross_compiling" = yes; then
5585 cat > conftest.$ac_ext <<EOF
5586 #line 5587 "configure"
5587 #include "confdefs.h"
5589 int main (int argc, char *argv[])
5596 if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5600 echo "configure: failed program was:" >&5
5601 cat conftest.$ac_ext >&5
5610 if test "x${CROSSCOMPILE}" = "x1"; then
5611 echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
5613 # Do some error checking and defaulting for the host and target type.
5615 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
5618 # 1. You are not allowed to specify --host, --target, and nonopt at the
5620 # 2. Host defaults to nonopt.
5621 # 3. If nonopt is not specified, then host defaults to the current host,
5622 # as determined by config.guess.
5623 # 4. Target and build default to nonopt.
5624 # 5. If nonopt is not specified, then target and build default to host.
5626 # The aliases save the names the user supplied, while $host etc.
5627 # will get canonicalized.
5628 case $host---$target---$nonopt in
5629 NONE---*---* | *---NONE---* | *---*---NONE) ;;
5630 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
5634 # Make sure we can run config.sub.
5635 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5636 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5639 echo $ac_n "checking host system type""... $ac_c" 1>&6
5640 echo "configure:5641: checking host system type" >&5
5643 case "$host_alias" in
5647 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5648 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5650 *) host_alias=$nonopt ;;
5654 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5655 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5656 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5657 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5658 echo "$ac_t""$host" 1>&6
5660 echo $ac_n "checking target system type""... $ac_c" 1>&6
5661 echo "configure:5662: checking target system type" >&5
5663 target_alias=$target
5664 case "$target_alias" in
5667 NONE) target_alias=$host_alias ;;
5668 *) target_alias=$nonopt ;;
5672 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
5673 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5674 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5675 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5676 echo "$ac_t""$target" 1>&6
5678 echo $ac_n "checking build system type""... $ac_c" 1>&6
5679 echo "configure:5680: checking build system type" >&5
5682 case "$build_alias" in
5685 NONE) build_alias=$host_alias ;;
5686 *) build_alias=$nonopt ;;
5690 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
5691 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5692 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5693 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5694 echo "$ac_t""$build" 1>&6
5696 test "$host_alias" != "$target_alias" &&
5697 test "$program_prefix$program_suffix$program_transform_name" = \
5699 program_prefix=${target_alias}-
5701 echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
5702 echo "configure:5703: checking for byte order, try 2" >&5
5707 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
5714 if test "x${LITTLEENDIAN}" = "x1"; then
5715 echo "$ac_t""little endian" 1>&6
5719 if test "x${BIGENDIAN}" = "x1"; then
5720 echo "$ac_t""big endian" 1>&6
5723 export WORDS_BIGENDIAN
5724 cat >> confdefs.h <<EOF
5725 #define WORDS_BIGENDIAN 1
5729 if test "x${BYTEORDERCHECKOK}" != "x1"; then
5730 echo "$ac_t""unknown" 1>&6
5731 echo Byte order could not determined.
5737 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
5738 echo "configure:5739: checking whether system() can handle command substitution" >&5
5739 if test "$cross_compiling" = yes; then
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5747 int main (int argc, char*argv[])
5749 return system("test `touch config.tmp2`");
5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5764 if test "x${OK}" = "xOK";then
5765 test -f config.tmp2 || OK=
5768 if test "x${CROSSCOMPILE}" = "x1";then
5771 if test "x${OK}" = "xOK";then
5773 echo "$ac_t""yes" 1>&6
5775 export SYSTEM_BACKTICKS
5776 cat >> confdefs.h <<EOF
5777 #define SYSTEM_BACKTICKS 1
5781 echo "$ac_t""no" 1>&6
5786 if test "$program_transform_name" = s,x,x,; then
5787 program_transform_name=
5789 # Double any \ or $. echo might interpret backslashes.
5790 cat <<\EOF_SED > conftestsed
5791 s,\\,\\\\,g; s,\$,$$,g
5793 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
5796 test "$program_prefix" != NONE &&
5797 program_transform_name="s,^,${program_prefix},; $program_transform_name"
5798 # Use a double $ so make ignores it.
5799 test "$program_suffix" != NONE &&
5800 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
5802 # sed with no file args requires a program.
5803 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
5809 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5812 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_hdr that defines DIR" >&5
5814 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 #include <sys/types.h>
5826 if { (eval echo configure:5827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5828 eval "ac_cv_header_dirent_$ac_safe=yes"
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5833 eval "ac_cv_header_dirent_$ac_safe=no"
5837 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5840 cat >> confdefs.h <<EOF
5841 #define $ac_tr_hdr 1
5843 ac_header_dirent=$ac_hdr; break
5845 echo "$ac_t""no" 1>&6
5848 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5849 if test $ac_header_dirent = dirent.h; then
5850 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5851 echo "configure:5852: checking for opendir in -ldir" >&5
5852 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 ac_save_LIBS="$LIBS"
5858 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure"
5860 #include "confdefs.h"
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5870 if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5872 eval "ac_cv_lib_$ac_lib_var=yes"
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5877 eval "ac_cv_lib_$ac_lib_var=no"
5880 LIBS="$ac_save_LIBS"
5883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5884 echo "$ac_t""yes" 1>&6
5887 echo "$ac_t""no" 1>&6
5891 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5892 echo "configure:5893: checking for opendir in -lx" >&5
5893 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5897 ac_save_LIBS="$LIBS"
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5911 if { (eval echo configure:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5913 eval "ac_cv_lib_$ac_lib_var=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5918 eval "ac_cv_lib_$ac_lib_var=no"
5921 LIBS="$ac_save_LIBS"
5924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5925 echo "$ac_t""yes" 1>&6
5928 echo "$ac_t""no" 1>&6
5933 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5934 echo "configure:5935: checking for ANSI C header files" >&5
5935 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5947 { (eval echo configure:5948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5949 if test -z "$ac_err"; then
5951 ac_cv_header_stdc=yes
5954 echo "configure: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5957 ac_cv_header_stdc=no
5961 if test $ac_cv_header_stdc = yes; then
5962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5969 egrep "memchr" >/dev/null 2>&1; then
5973 ac_cv_header_stdc=no
5979 if test $ac_cv_header_stdc = yes; then
5980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5987 egrep "free" >/dev/null 2>&1; then
5991 ac_cv_header_stdc=no
5997 if test $ac_cv_header_stdc = yes; then
5998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5999 if test "$cross_compiling" = yes; then
6002 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6006 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6007 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6008 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6009 int main () { int i; for (i = 0; i < 256; i++)
6010 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 ac_cv_header_stdc=no
6029 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6030 if test $ac_cv_header_stdc = yes; then
6031 cat >> confdefs.h <<\EOF
6032 #define STDC_HEADERS 1
6037 for ac_hdr in zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h
6039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6041 echo "configure:6042: checking for $ac_hdr" >&5
6042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6051 { (eval echo configure:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6053 if test -z "$ac_err"; then
6055 eval "ac_cv_header_$ac_safe=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 eval "ac_cv_header_$ac_safe=no"
6065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6068 cat >> confdefs.h <<EOF
6069 #define $ac_tr_hdr 1
6073 echo "$ac_t""no" 1>&6
6078 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
6079 DISABLEPDF2SWF=true;
6080 DISABLEJPEG2SWF=true;
6081 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6083 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
6084 DISABLEPDF2SWF=true;
6085 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6087 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
6088 DISABLEPDF2SWF=true;
6089 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6092 cat >> confdefs.h <<EOF
6093 #define PACKAGE "$PACKAGE"
6096 cat >> confdefs.h <<EOF
6097 #define VERSION "$VERSION"
6106 echo $ac_n "checking for working const""... $ac_c" 1>&6
6107 echo "configure:6108: checking for working const" >&5
6108 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6111 cat > conftest.$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6117 /* Ultrix mips cc rejects this. */
6118 typedef int charset[2]; const charset x;
6119 /* SunOS 4.1.1 cc rejects this. */
6120 char const *const *ccp;
6122 /* NEC SVR4.0.2 mips cc rejects this. */
6123 struct point {int x, y;};
6124 static struct point const zero = {0,0};
6125 /* AIX XL C 1.02.0.0 rejects this.
6126 It does not let you subtract one const X* pointer from another in an arm
6127 of an if-expression whose if-part is not a constant expression */
6128 const char *g = "string";
6129 ccp = &g + (g ? g-g : 0);
6130 /* HPUX 7.0 cc rejects these. */
6133 ccp = (char const *const *) p;
6134 { /* SCO 3.2v4 cc rejects this. */
6136 char const *s = 0 ? (char *) 0 : (char const *) 0;
6140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6142 const int *foo = &x[0];
6145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6146 typedef const int *iptr;
6150 { /* AIX XL C 1.02.0.0 rejects this saying
6151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6152 struct s { int j; const int *ap[3]; };
6153 struct s *b; b->j = 5;
6155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6161 if { (eval echo configure:6162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6165 echo "configure: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6173 echo "$ac_t""$ac_cv_c_const" 1>&6
6174 if test $ac_cv_c_const = no; then
6175 cat >> confdefs.h <<\EOF
6181 echo $ac_n "checking for inline""... $ac_c" 1>&6
6182 echo "configure:6183: checking for inline" >&5
6183 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6184 echo $ac_n "(cached) $ac_c" 1>&6
6187 for ac_kw in inline __inline__ __inline; do
6188 cat > conftest.$ac_ext <<EOF
6189 #line 6190 "configure"
6190 #include "confdefs.h"
6196 if { (eval echo configure:6197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6198 ac_cv_c_inline=$ac_kw; break
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6208 echo "$ac_t""$ac_cv_c_inline" 1>&6
6209 case "$ac_cv_c_inline" in
6211 no) cat >> confdefs.h <<\EOF
6215 *) cat >> confdefs.h <<EOF
6216 #define inline $ac_cv_c_inline
6221 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6222 echo "configure:6223: checking for off_t" >&5
6223 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6224 echo $ac_n "(cached) $ac_c" 1>&6
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6229 #include <sys/types.h>
6235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6236 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6238 ac_cv_type_off_t=yes
6246 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6247 if test $ac_cv_type_off_t = no; then
6248 cat >> confdefs.h <<\EOF
6254 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6255 echo "configure:6256: checking for size_t" >&5
6256 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 #include <sys/types.h>
6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6271 ac_cv_type_size_t=yes
6274 ac_cv_type_size_t=no
6279 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6280 if test $ac_cv_type_size_t = no; then
6281 cat >> confdefs.h <<\EOF
6282 #define size_t unsigned
6287 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6288 echo "configure:6289: checking whether struct tm is in sys/time.h or time.h" >&5
6289 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6292 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6295 #include <sys/types.h>
6298 struct tm *tp; tp->tm_sec;
6301 if { (eval echo configure:6302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6303 ac_cv_struct_tm=time.h
6305 echo "configure: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6308 ac_cv_struct_tm=sys/time.h
6313 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6314 if test $ac_cv_struct_tm = sys/time.h; then
6315 cat >> confdefs.h <<\EOF
6316 #define TM_IN_SYS_TIME 1
6321 echo $ac_n "checking for boolean""... $ac_c" 1>&6
6322 echo "configure:6323: checking for boolean" >&5
6323 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6329 #include <sys/types.h>
6335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6336 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6338 ac_cv_type_boolean=yes
6341 ac_cv_type_boolean=no
6346 echo "$ac_t""$ac_cv_type_boolean" 1>&6
6347 if test $ac_cv_type_boolean = no; then
6348 cat >> confdefs.h <<\EOF
6354 echo $ac_n "checking for bool""... $ac_c" 1>&6
6355 echo "configure:6356: checking for bool" >&5
6356 if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
6357 echo $ac_n "(cached) $ac_c" 1>&6
6359 cat > conftest.$ac_ext <<EOF
6360 #line 6361 "configure"
6361 #include "confdefs.h"
6362 #include <sys/types.h>
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369 egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6379 echo "$ac_t""$ac_cv_type_bool" 1>&6
6380 if test $ac_cv_type_bool = no; then
6381 cat >> confdefs.h <<\EOF
6388 for ac_func in popen mkstemp stat lrand48 rand srand48 srand
6390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6391 echo "configure:6392: checking for $ac_func" >&5
6392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6398 /* System header to define __stub macros and hopefully few prototypes,
6399 which can conflict with char $ac_func(); below. */
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6419 if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6421 eval "ac_cv_func_$ac_func=yes"
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 eval "ac_cv_func_$ac_func=no"
6431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6434 cat >> confdefs.h <<EOF
6435 #define $ac_tr_func 1
6439 echo "$ac_t""no" 1>&6
6444 echo $ac_n "checking whether we can compile the avifile test program""... $ac_c" 1>&6
6445 echo "configure:6446: checking whether we can compile the avifile test program" >&5
6447 cat > conftest.$ac_ext << EOF
6448 #include <avifile/version.h>
6449 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6450 #include <avifile.h>
6451 #include <aviplay.h>
6453 #include <creators.h>
6454 #include <StreamInfo.h>
6457 #include <avifile.h>
6458 #include <aviplay.h>
6459 #include <aviutil.h>
6461 #define Height height
6466 int main (int argc, char*argv)
6468 IAviReadFile* player;
6469 IAviReadStream* astream;
6470 IAviReadStream* vstream;
6471 player = CreateIAviReadFile(0);
6472 astream = player->GetStream(0, AviStream::Audio);
6473 vstream = player->GetStream(0, AviStream::Video);
6474 vstream -> StartStreaming();
6475 astream -> StartStreaming();
6478 player->GetFileHeader(&head);
6479 head.dwMicroSecPerFrame;
6484 head.dwMicroSecPerFrame;
6485 astream->GetEndPos(),
6486 astream->GetEndTime());
6487 player->StreamCount();
6489 StreamInfo*audioinfo;
6490 StreamInfo*videoinfo;
6491 audioinfo = astream->GetStreamInfo();
6492 videoinfo = vstream->GetStreamInfo();
6493 videoinfo->GetVideoWidth();
6494 videoinfo->GetVideoHeight();
6495 audioinfo->GetAudioSamplesPerSec();
6496 videoinfo->GetFps();
6498 CImage*img = vstream->GetFrame();
6505 astream->GetAudioFormatInfo(&wave,0);
6507 astream->ReadFrames(0,0,0,a,b);
6511 ac_link='$CXX $CPPFLAGS $CXXFLAGS `avifile-config --cflags` `avifile-config --libs` conftest.$ac_ext -o conftest${ac_exeext}'
6512 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6513 echo "$ac_t""yes" 1>&6
6516 cat >> confdefs.h <<EOF
6517 #define AVIFILE true
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6523 echo "$ac_t""no" 1>&6
6528 avi2swf="avi2swf/Makefile"
6529 if test "x${AVIFILE}" != "xtrue"; then
6530 echo "* Couldn't compile the avifile test program."
6531 echo "* Disabling avi2swf tool..."
6532 echo all install uninstall clean: > avi2swf/Makefile
6536 if test "x${UNCOMPRESS}" = "xgzip"; then
6537 cat >> confdefs.h <<EOF
6544 JPEG2SWF='jpeg2swf$(EXEEXT)'
6546 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6547 echo "***************************************************"
6548 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
6549 echo "Disabling pdf2swf tool..."
6550 rm -f pdf2swf/Makefile
6551 echo all install uninstall clean: > pdf2swf/Makefile
6552 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6553 echo "Disabling jpeg2swf tool..."
6557 echo "***************************************************"
6558 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
6560 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
6568 cat > confcache <<\EOF
6569 # This file is a shell script that caches the results of configure
6570 # tests run on this system so they can be shared between configure
6571 # scripts and configure runs. It is not useful on other systems.
6572 # If it contains results you don't want to keep, you may remove or edit it.
6574 # By default, configure uses ./config.cache as the cache file,
6575 # creating it if it does not exist already. You can give configure
6576 # the --cache-file=FILE option to use a different cache file; that is
6577 # what configure does when it calls configure scripts in
6578 # subdirectories, so they share the cache.
6579 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6580 # config.status only pays attention to the cache file if you give it the
6581 # --recheck option to rerun configure.
6584 # The following way of writing the cache mishandles newlines in values,
6585 # but we know of no workaround that is simple, portable, and efficient.
6586 # So, don't put newlines in cache variables' values.
6587 # Ultrix sh set writes to stderr and can't be redirected directly,
6588 # and sets the high bit in the cache file unless we assign to the vars.
6590 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6592 # `set' does not quote correctly, so add quotes (double-quote substitution
6593 # turns \\\\ into \\, and sed turns \\ into \).
6595 -e "s/'/'\\\\''/g" \
6596 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6599 # `set' quotes correctly as required by POSIX, so do not add quotes.
6600 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6603 if cmp -s $cache_file confcache; then
6606 if test -w $cache_file; then
6607 echo "updating cache $cache_file"
6608 cat confcache > $cache_file
6610 echo "not updating unwritable cache $cache_file"
6615 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6618 # Let make expand exec_prefix.
6619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6621 # Any assignment to VPATH causes Sun make to only execute
6622 # the first set of double-colon rules, so remove it if not needed.
6623 # If there is a colon in the path, we need to keep it.
6624 if test "x$srcdir" = x.; then
6625 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6628 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6630 DEFS=-DHAVE_CONFIG_H
6632 # Without the "./", some shells look in PATH for config.status.
6633 : ${CONFIG_STATUS=./config.status}
6635 echo creating $CONFIG_STATUS
6636 rm -f $CONFIG_STATUS
6637 cat > $CONFIG_STATUS <<EOF
6639 # Generated automatically by configure.
6640 # Run this file to recreate the current configuration.
6641 # This directory was configured as follows,
6642 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6644 # $0 $ac_configure_args
6646 # Compiler output produced by configure, useful for debugging
6647 # configure, is in ./config.log if it exists.
6649 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6652 case "\$ac_option" in
6653 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6654 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6655 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6656 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6657 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6659 -help | --help | --hel | --he | --h)
6660 echo "\$ac_cs_usage"; exit 0 ;;
6661 *) echo "\$ac_cs_usage"; exit 1 ;;
6665 ac_given_srcdir=$srcdir
6666 ac_given_INSTALL="$INSTALL"
6668 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6670 cat >> $CONFIG_STATUS <<EOF
6672 # Protect against being on the right side of a sed subst in config.status.
6673 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6674 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6678 s%@CFLAGS@%$CFLAGS%g
6679 s%@CPPFLAGS@%$CPPFLAGS%g
6680 s%@CXXFLAGS@%$CXXFLAGS%g
6681 s%@FFLAGS@%$FFLAGS%g
6683 s%@LDFLAGS@%$LDFLAGS%g
6685 s%@exec_prefix@%$exec_prefix%g
6686 s%@prefix@%$prefix%g
6687 s%@program_transform_name@%$program_transform_name%g
6688 s%@bindir@%$bindir%g
6689 s%@sbindir@%$sbindir%g
6690 s%@libexecdir@%$libexecdir%g
6691 s%@datadir@%$datadir%g
6692 s%@sysconfdir@%$sysconfdir%g
6693 s%@sharedstatedir@%$sharedstatedir%g
6694 s%@localstatedir@%$localstatedir%g
6695 s%@libdir@%$libdir%g
6696 s%@includedir@%$includedir%g
6697 s%@oldincludedir@%$oldincludedir%g
6698 s%@infodir@%$infodir%g
6699 s%@mandir@%$mandir%g
6701 s%@host_alias@%$host_alias%g
6702 s%@host_cpu@%$host_cpu%g
6703 s%@host_vendor@%$host_vendor%g
6704 s%@host_os@%$host_os%g
6708 s%@RANLIB@%$RANLIB%g
6709 s%@SET_MAKE@%$SET_MAKE%g
6710 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6711 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6712 s%@INSTALL_DATA@%$INSTALL_DATA%g
6715 s%@build_alias@%$build_alias%g
6716 s%@build_cpu@%$build_cpu%g
6717 s%@build_vendor@%$build_vendor%g
6718 s%@build_os@%$build_os%g
6719 s%@OBJEXT@%$OBJEXT%g
6720 s%@EXEEXT@%$EXEEXT%g
6723 s%@LIBTOOL@%$LIBTOOL%g
6724 s%@UNCOMPRESS@%$UNCOMPRESS%g
6725 s%@target@%$target%g
6726 s%@target_alias@%$target_alias%g
6727 s%@target_cpu@%$target_cpu%g
6728 s%@target_vendor@%$target_vendor%g
6729 s%@target_os@%$target_os%g
6730 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
6731 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
6732 s%@PACKAGE@%$PACKAGE%g
6733 s%@VERSION@%$VERSION%g
6734 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
6735 s%@USE_GZIP@%$USE_GZIP%g
6736 s%@JPEG2SWF@%$JPEG2SWF%g
6742 cat >> $CONFIG_STATUS <<\EOF
6744 # Split the substitutions into bite-sized pieces for seds with
6745 # small command number limits, like on Digital OSF/1 and HP-UX.
6746 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6747 ac_file=1 # Number of current file.
6748 ac_beg=1 # First line for current file.
6749 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6752 while $ac_more_lines; do
6753 if test $ac_beg -gt 1; then
6754 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6756 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6758 if test ! -s conftest.s$ac_file; then
6760 rm -f conftest.s$ac_file
6762 if test -z "$ac_sed_cmds"; then
6763 ac_sed_cmds="sed -f conftest.s$ac_file"
6765 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6767 ac_file=`expr $ac_file + 1`
6769 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6772 if test -z "$ac_sed_cmds"; then
6777 cat >> $CONFIG_STATUS <<EOF
6779 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
6781 cat >> $CONFIG_STATUS <<\EOF
6782 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6785 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6786 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6787 *) ac_file_in="${ac_file}.in" ;;
6790 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6792 # Remove last slash and all that follows it. Not all systems have dirname.
6793 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6794 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6795 # The file is in a subdirectory.
6796 test ! -d "$ac_dir" && mkdir "$ac_dir"
6797 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6798 # A "../" for each directory in $ac_dir_suffix.
6799 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6801 ac_dir_suffix= ac_dots=
6804 case "$ac_given_srcdir" in
6806 if test -z "$ac_dots"; then top_srcdir=.
6807 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6808 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6810 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6811 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6814 case "$ac_given_INSTALL" in
6815 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6816 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6819 echo creating "$ac_file"
6821 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6823 *Makefile*) ac_comsub="1i\\
6824 # $configure_input" ;;
6828 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6830 s%@configure_input@%$configure_input%g
6831 s%@srcdir@%$srcdir%g
6832 s%@top_srcdir@%$top_srcdir%g
6833 s%@INSTALL@%$INSTALL%g
6834 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6838 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6839 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6841 # ac_d sets the value in "#define NAME VALUE" lines.
6842 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6843 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6846 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6847 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6848 ac_uB='\([ ]\)%\1#\2define\3'
6851 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6852 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6853 ac_eB='$%\1#\2define\3'
6857 if test "${CONFIG_HEADERS+set}" != set; then
6859 cat >> $CONFIG_STATUS <<EOF
6860 CONFIG_HEADERS="config.h"
6862 cat >> $CONFIG_STATUS <<\EOF
6864 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6865 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6867 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6868 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6869 *) ac_file_in="${ac_file}.in" ;;
6872 echo creating $ac_file
6874 rm -f conftest.frag conftest.in conftest.out
6875 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6876 cat $ac_file_inputs > conftest.in
6880 # Transform confdefs.h into a sed script conftest.vals that substitutes
6881 # the proper values into config.h.in to produce config.h. And first:
6882 # Protect against being on the right side of a sed subst in config.status.
6883 # Protect against being in an unquoted here document in config.status.
6885 cat > conftest.hdr <<\EOF
6888 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6892 sed -n -f conftest.hdr confdefs.h > conftest.vals
6895 # This sed command replaces #undef with comments. This is necessary, for
6896 # example, in the case of _POSIX_SOURCE, which is predefined and required
6897 # on some systems where configure will not decide to define it.
6898 cat >> conftest.vals <<\EOF
6899 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6902 # Break up conftest.vals because some shells have a limit on
6903 # the size of here documents, and old seds have small limits too.
6908 ac_lines=`grep -c . conftest.vals`
6909 # grep -c gives empty output for an empty file on some AIX systems.
6910 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6911 # Write a limited-size here document to conftest.frag.
6912 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6913 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6915 sed -f conftest.frag conftest.in > conftest.out
6917 mv conftest.out conftest.in
6919 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6921 mv conftest.tail conftest.vals
6925 cat >> $CONFIG_STATUS <<\EOF
6926 rm -f conftest.frag conftest.h
6927 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6928 cat conftest.in >> conftest.h
6930 if cmp -s $ac_file conftest.h 2>/dev/null; then
6931 echo "$ac_file is unchanged"
6934 # Remove last slash and all that follows it. Not all systems have dirname.
6935 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6936 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6937 # The file is in a subdirectory.
6938 test ! -d "$ac_dir" && mkdir "$ac_dir"
6941 mv conftest.h $ac_file
6946 cat >> $CONFIG_STATUS <<EOF
6949 cat >> $CONFIG_STATUS <<\EOF
6953 chmod +x $CONFIG_STATUS
6954 rm -fr confdefs* $ac_clean_files
6955 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1