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-checkmem turn on ccmalloc debugging"
17 --enable-debug turn on debugging"
19 --enable-shared[=PKGS] build shared libraries [default=yes]"
21 --enable-static[=PKGS] build static libraries [default=yes]"
23 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
25 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
27 # Find the correct PATH separator. Usually this is `:', but
28 # DJGPP uses `;' like DOS.
29 if test "X${PATH_SEPARATOR+set}" != Xset; then
30 UNAME=${UNAME-`uname 2>/dev/null`}
32 *-DOS) lt_cv_sys_path_separator=';' ;;
33 *) lt_cv_sys_path_separator=':' ;;
35 PATH_SEPARATOR=$lt_cv_sys_path_separator
39 # Check that we are running under the correct shell.
40 SHELL=${CONFIG_SHELL-/bin/sh}
44 # Remove one level of quotation (which was required for Make).
45 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
50 if test "X$1" = X--no-reexec; then
51 # Discard the --no-reexec flag, and continue.
53 elif test "X$1" = X--fallback-echo; then
54 # Avoid inline document here, it may be left over
56 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
57 # Yippee, $echo works!
60 # Restart under the correct shell.
61 exec $SHELL "$0" --no-reexec ${1+"$@"}
64 if test "X$1" = X--fallback-echo; then
65 # used as fallback echo
73 # The HP-UX ksh and POSIX shell print the target directory to stdout
75 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
77 if test -z "$ECHO"; then
78 if test "X${echo_test_string+set}" != Xset; then
79 # find a string as large as possible, as long as the shell can cope with it
80 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
81 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
82 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
83 echo_test_string="`eval $cmd`" &&
84 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
91 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
92 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
93 test "X$echo_testing_string" = "X$echo_test_string"; then
96 # The Solaris, AIX, and Digital Unix default echo programs unquote
97 # backslashes. This makes it impossible to quote backslashes using
98 # echo "$something" | sed 's/\\/\\\\/g'
100 # So, first we look for a working echo in the user's PATH.
102 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
103 for dir in $PATH /usr/ucb; do
104 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
105 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
106 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
107 test "X$echo_testing_string" = "X$echo_test_string"; then
114 if test "X$echo" = Xecho; then
115 # We didn't find a better echo, so look for alternatives.
116 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
117 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
118 test "X$echo_testing_string" = "X$echo_test_string"; then
119 # This shell has a builtin print -r that does the trick.
121 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
122 test "X$CONFIG_SHELL" != X/bin/ksh; then
123 # If we have ksh, try running configure again with it.
124 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
125 export ORIGINAL_CONFIG_SHELL
126 CONFIG_SHELL=/bin/ksh
128 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
132 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
133 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
134 test "X$echo_testing_string" = "X$echo_test_string"; then
137 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
138 test "X$echo_testing_string" = 'X\t' &&
139 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
140 test "X$echo_testing_string" = "X$echo_test_string"; then
141 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
143 SHELL="$CONFIG_SHELL"
145 echo="$CONFIG_SHELL $0 --fallback-echo"
146 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
147 test "X$echo_testing_string" = 'X\t' &&
148 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
149 test "X$echo_testing_string" = "X$echo_test_string"; then
150 echo="$CONFIG_SHELL $0 --fallback-echo"
152 # maybe with a smaller string...
155 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
156 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
163 if test "$prev" != 'sed 50q "$0"'; then
164 echo_test_string=`eval $prev`
165 export echo_test_string
166 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
168 # Oops. We lost completely, so just stick with echo.
177 # Copy echo and quote the copy suitably for passing to libtool from
178 # the Makefile, instead of quoting the original, which is used later.
180 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
181 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
186 --disable-libtool-lock avoid locking (might break parallel builds)"
188 --with-pic try to use only PIC/non-PIC objects [default=use both]"
190 # Initialize some variables set by options.
191 # The variables have the same names as the options, with
192 # dashes changed to underlines.
194 cache_file=./config.cache
203 program_transform_name=s,x,x,
211 bindir='${exec_prefix}/bin'
212 sbindir='${exec_prefix}/sbin'
213 libexecdir='${exec_prefix}/libexec'
214 datadir='${prefix}/share'
215 sysconfdir='${prefix}/etc'
216 sharedstatedir='${prefix}/com'
217 localstatedir='${prefix}/var'
218 libdir='${exec_prefix}/lib'
219 includedir='${prefix}/include'
220 oldincludedir='/usr/include'
221 infodir='${prefix}/info'
222 mandir='${prefix}/man'
224 # Initialize some other variables.
227 SHELL=${CONFIG_SHELL-/bin/sh}
228 # Maximum number of lines to put in a shell here document.
235 # If the previous option needs an argument, assign it.
236 if test -n "$ac_prev"; then
237 eval "$ac_prev=\$ac_option"
243 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
247 # Accept the important Cygnus configure options, so we can diagnose typos.
251 -bindir | --bindir | --bindi | --bind | --bin | --bi)
253 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
254 bindir="$ac_optarg" ;;
256 -build | --build | --buil | --bui | --bu)
258 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
259 build="$ac_optarg" ;;
261 -cache-file | --cache-file | --cache-fil | --cache-fi \
262 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
263 ac_prev=cache_file ;;
264 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
265 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
266 cache_file="$ac_optarg" ;;
268 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
270 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
272 datadir="$ac_optarg" ;;
274 -disable-* | --disable-*)
275 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
276 # Reject names that are not valid shell variable names.
277 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
278 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
280 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
281 eval "enable_${ac_feature}=no" ;;
283 -enable-* | --enable-*)
284 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
285 # Reject names that are not valid shell variable names.
286 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
287 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
289 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
294 eval "enable_${ac_feature}='$ac_optarg'" ;;
296 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
297 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
298 | --exec | --exe | --ex)
299 ac_prev=exec_prefix ;;
300 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
301 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
302 | --exec=* | --exe=* | --ex=*)
303 exec_prefix="$ac_optarg" ;;
305 -gas | --gas | --ga | --g)
306 # Obsolete; use --with-gas.
309 -help | --help | --hel | --he)
310 # Omit some internal or obsolete options to make the list less imposing.
311 # This message is too long to be a string in the A/UX 3.1 sh.
313 Usage: configure [options] [host]
314 Options: [defaults in brackets after descriptions]
316 --cache-file=FILE cache test results in FILE
317 --help print this message
318 --no-create do not create output files
319 --quiet, --silent do not print \`checking...' messages
320 --version print the version of autoconf that created configure
321 Directory and file names:
322 --prefix=PREFIX install architecture-independent files in PREFIX
324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
326 --bindir=DIR user executables in DIR [EPREFIX/bin]
327 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
328 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
329 --datadir=DIR read-only architecture-independent data in DIR
331 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
332 --sharedstatedir=DIR modifiable architecture-independent data in DIR
334 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
335 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
336 --includedir=DIR C header files in DIR [PREFIX/include]
337 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
338 --infodir=DIR info documentation in DIR [PREFIX/info]
339 --mandir=DIR man documentation in DIR [PREFIX/man]
340 --srcdir=DIR find the sources in DIR [configure dir or ..]
341 --program-prefix=PREFIX prepend PREFIX to installed program names
342 --program-suffix=SUFFIX append SUFFIX to installed program names
343 --program-transform-name=PROGRAM
344 run sed PROGRAM on installed program names
348 --build=BUILD configure for building on BUILD [BUILD=HOST]
349 --host=HOST configure for HOST [guessed]
350 --target=TARGET configure for TARGET [TARGET=HOST]
351 Features and packages:
352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
356 --x-includes=DIR X include files are in DIR
357 --x-libraries=DIR X library files are in DIR
359 if test -n "$ac_help"; then
360 echo "--enable and --with options recognized:$ac_help"
364 -host | --host | --hos | --ho)
366 -host=* | --host=* | --hos=* | --ho=*)
369 -includedir | --includedir | --includedi | --included | --include \
370 | --includ | --inclu | --incl | --inc)
371 ac_prev=includedir ;;
372 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
373 | --includ=* | --inclu=* | --incl=* | --inc=*)
374 includedir="$ac_optarg" ;;
376 -infodir | --infodir | --infodi | --infod | --info | --inf)
378 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
379 infodir="$ac_optarg" ;;
381 -libdir | --libdir | --libdi | --libd)
383 -libdir=* | --libdir=* | --libdi=* | --libd=*)
384 libdir="$ac_optarg" ;;
386 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
387 | --libexe | --libex | --libe)
388 ac_prev=libexecdir ;;
389 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
390 | --libexe=* | --libex=* | --libe=*)
391 libexecdir="$ac_optarg" ;;
393 -localstatedir | --localstatedir | --localstatedi | --localstated \
394 | --localstate | --localstat | --localsta | --localst \
395 | --locals | --local | --loca | --loc | --lo)
396 ac_prev=localstatedir ;;
397 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
398 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
399 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
400 localstatedir="$ac_optarg" ;;
402 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
404 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
405 mandir="$ac_optarg" ;;
408 # Obsolete; use --without-fp.
411 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
415 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
416 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
419 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
420 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
421 | --oldin | --oldi | --old | --ol | --o)
422 ac_prev=oldincludedir ;;
423 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
424 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
425 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
426 oldincludedir="$ac_optarg" ;;
428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
431 prefix="$ac_optarg" ;;
433 -program-prefix | --program-prefix | --program-prefi | --program-pref \
434 | --program-pre | --program-pr | --program-p)
435 ac_prev=program_prefix ;;
436 -program-prefix=* | --program-prefix=* | --program-prefi=* \
437 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
438 program_prefix="$ac_optarg" ;;
440 -program-suffix | --program-suffix | --program-suffi | --program-suff \
441 | --program-suf | --program-su | --program-s)
442 ac_prev=program_suffix ;;
443 -program-suffix=* | --program-suffix=* | --program-suffi=* \
444 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
445 program_suffix="$ac_optarg" ;;
447 -program-transform-name | --program-transform-name \
448 | --program-transform-nam | --program-transform-na \
449 | --program-transform-n | --program-transform- \
450 | --program-transform | --program-transfor \
451 | --program-transfo | --program-transf \
452 | --program-trans | --program-tran \
453 | --progr-tra | --program-tr | --program-t)
454 ac_prev=program_transform_name ;;
455 -program-transform-name=* | --program-transform-name=* \
456 | --program-transform-nam=* | --program-transform-na=* \
457 | --program-transform-n=* | --program-transform-=* \
458 | --program-transform=* | --program-transfor=* \
459 | --program-transfo=* | --program-transf=* \
460 | --program-trans=* | --program-tran=* \
461 | --progr-tra=* | --program-tr=* | --program-t=*)
462 program_transform_name="$ac_optarg" ;;
464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
465 | -silent | --silent | --silen | --sile | --sil)
468 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
470 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
472 sbindir="$ac_optarg" ;;
474 -sharedstatedir | --sharedstatedir | --sharedstatedi \
475 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
476 | --sharedst | --shareds | --shared | --share | --shar \
478 ac_prev=sharedstatedir ;;
479 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
480 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
481 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
483 sharedstatedir="$ac_optarg" ;;
485 -site | --site | --sit)
487 -site=* | --site=* | --sit=*)
490 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
492 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
493 srcdir="$ac_optarg" ;;
495 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
496 | --syscon | --sysco | --sysc | --sys | --sy)
497 ac_prev=sysconfdir ;;
498 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
499 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
500 sysconfdir="$ac_optarg" ;;
502 -target | --target | --targe | --targ | --tar | --ta | --t)
504 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
505 target="$ac_optarg" ;;
507 -v | -verbose | --verbose | --verbos | --verbo | --verb)
510 -version | --version | --versio | --versi | --vers)
511 echo "configure generated by autoconf version 2.13"
515 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
516 # Reject names that are not valid shell variable names.
517 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
518 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
520 ac_package=`echo $ac_package| sed 's/-/_/g'`
525 eval "with_${ac_package}='$ac_optarg'" ;;
527 -without-* | --without-*)
528 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
529 # Reject names that are not valid shell variable names.
530 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
531 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
533 ac_package=`echo $ac_package| sed 's/-/_/g'`
534 eval "with_${ac_package}=no" ;;
537 # Obsolete; use --with-x.
540 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
541 | --x-incl | --x-inc | --x-in | --x-i)
542 ac_prev=x_includes ;;
543 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
544 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
545 x_includes="$ac_optarg" ;;
547 -x-libraries | --x-libraries | --x-librarie | --x-librari \
548 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
549 ac_prev=x_libraries ;;
550 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
551 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
552 x_libraries="$ac_optarg" ;;
554 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
558 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
559 echo "configure: warning: $ac_option: invalid host type" 1>&2
561 if test "x$nonopt" != xNONE; then
562 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
570 if test -n "$ac_prev"; then
571 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
574 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
576 # File descriptor usage:
579 # 2 errors and warnings
580 # 3 some systems may open it to /dev/tty
581 # 4 used on the Kubota Titan
582 # 6 checking for... messages and results
583 # 5 compiler messages saved in config.log
584 if test "$silent" = yes; then
592 This file contains any messages produced by compilers while
593 running configure, to aid debugging if configure makes a mistake.
596 # Strip out --no-create and --no-recursion so they do not pile up.
597 # Also quote any args containing shell metacharacters.
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c) ;;
604 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
606 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
607 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
608 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
613 # Only set these to C if already set. These must not be set unconditionally
614 # because not all systems understand e.g. LANG=C (notably SCO).
615 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
616 # Non-C LC_CTYPE values break the ctype check.
617 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
618 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
619 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
620 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
623 rm -rf conftest* confdefs.h
624 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
627 # A filename unique to this package, relative to the directory that
628 # configure is in, which we can look for to find out if srcdir is correct.
631 # Find the source files, if location was not specified.
632 if test -z "$srcdir"; then
633 ac_srcdir_defaulted=yes
634 # Try the directory containing this script, then its parent.
636 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
637 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
639 if test ! -r $srcdir/$ac_unique_file; then
643 ac_srcdir_defaulted=no
645 if test ! -r $srcdir/$ac_unique_file; then
646 if test "$ac_srcdir_defaulted" = yes; then
647 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
649 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
652 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
654 # Prefer explicitly selected file to automatically selected ones.
655 if test -z "$CONFIG_SITE"; then
656 if test "x$prefix" != xNONE; then
657 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
659 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
662 for ac_site_file in $CONFIG_SITE; do
663 if test -r "$ac_site_file"; then
664 echo "loading site script $ac_site_file"
669 if test -r "$cache_file"; then
670 echo "loading cache $cache_file"
673 echo "creating cache $cache_file"
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp='$CPP $CPPFLAGS'
680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling=$ac_cv_prog_cc_cross
686 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
687 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
688 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
695 ac_n= ac_c='\c' ac_t=
700 # Check whether --enable-checkmem or --disable-checkmem was given.
701 if test "${enable_checkmem+set}" = set; then
702 enableval="$enable_checkmem"
706 # Check whether --enable-debug or --disable-debug was given.
707 if test "${enable_debug+set}" = set; then
708 enableval="$enable_debug"
717 if test "x$CHECKMEM" '!=' "x";then
720 if test "x$DEBUG" '!=' "x";then
721 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CFLAGS"
722 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CXXFLAGS"
723 STRIP="@echo debug enabled, not stripping "
727 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CFLAGS"
728 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CXXFLAGS"
731 export PACKAGE VERSION CFLAGS CXXFLAGS
734 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
735 if test -f $ac_dir/install-sh; then
737 ac_install_sh="$ac_aux_dir/install-sh -c"
739 elif test -f $ac_dir/install.sh; then
741 ac_install_sh="$ac_aux_dir/install.sh -c"
745 if test -z "$ac_aux_dir"; then
746 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
748 ac_config_guess=$ac_aux_dir/config.guess
749 ac_config_sub=$ac_aux_dir/config.sub
750 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
753 # Make sure we can run config.sub.
754 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
755 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
758 echo $ac_n "checking host system type""... $ac_c" 1>&6
759 echo "configure:760: checking host system type" >&5
762 case "$host_alias" in
766 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
767 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
769 *) host_alias=$nonopt ;;
773 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
774 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777 echo "$ac_t""$host" 1>&6
783 CFLAGS="$CFLAGS -fno-rtti"
784 CXXFLAGS="$CXXFLAGS -fno-rtti"
787 # Extract the first word of "gcc", so it can be a program name with args.
788 set dummy gcc; 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=":"
799 for ac_dir in $ac_dummy; do
800 test -z "$ac_dir" && ac_dir=.
801 if test -f $ac_dir/$ac_word; then
810 if test -n "$CC"; then
811 echo "$ac_t""$CC" 1>&6
813 echo "$ac_t""no" 1>&6
816 if test -z "$CC"; then
817 # Extract the first word of "cc", so it can be a program name with args.
818 set dummy cc; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 if test -n "$CC"; then
825 ac_cv_prog_CC="$CC" # Let the user override the test.
827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 for ac_dir in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
833 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
842 if test $ac_prog_rejected = yes; then
843 # We found a bogon in the path, so make sure we never use it.
844 set dummy $ac_cv_prog_CC
846 if test $# -gt 0; then
847 # We chose a different compiler from the bogus one.
848 # However, it has the same basename, so the bogon will be chosen
849 # first if we set CC to just the basename; use the full file name.
851 set dummy "$ac_dir/$ac_word" "$@"
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
868 # Extract the first word of "cl", so it can be a program name with args.
869 set dummy cl; ac_word=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
875 if test -n "$CC"; then
876 ac_cv_prog_CC="$CC" # Let the user override the test.
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
880 for ac_dir in $ac_dummy; do
881 test -z "$ac_dir" && ac_dir=.
882 if test -f $ac_dir/$ac_word; then
891 if test -n "$CC"; then
892 echo "$ac_t""$CC" 1>&6
894 echo "$ac_t""no" 1>&6
899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
910 cross_compiling=$ac_cv_prog_cc_cross
912 cat > conftest.$ac_ext << EOF
914 #line 915 "configure"
915 #include "confdefs.h"
919 if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
920 ac_cv_prog_cc_works=yes
921 # If we can't run a trivial program, we are probably using a cross compiler.
922 if (./conftest; exit) 2>/dev/null; then
923 ac_cv_prog_cc_cross=no
925 ac_cv_prog_cc_cross=yes
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
930 ac_cv_prog_cc_works=no
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
940 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
941 if test $ac_cv_prog_cc_works = no; then
942 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
944 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
945 echo "configure:946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
946 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
947 cross_compiling=$ac_cv_prog_cc_cross
949 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
950 echo "configure:951: checking whether we are using GNU C" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 cat > conftest.c <<EOF
959 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
966 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
968 if test $ac_cv_prog_gcc = yes; then
974 ac_test_CFLAGS="${CFLAGS+set}"
975 ac_save_CFLAGS="$CFLAGS"
977 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
978 echo "configure:979: checking whether ${CC-cc} accepts -g" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 echo 'void f(){}' > conftest.c
983 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
992 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
993 if test "$ac_test_CFLAGS" = set; then
994 CFLAGS="$ac_save_CFLAGS"
995 elif test $ac_cv_prog_cc_g = yes; then
996 if test "$GCC" = yes; then
1002 if test "$GCC" = yes; then
1009 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1011 # Extract the first word of "$ac_prog", so it can be a program name with args.
1012 set dummy $ac_prog; ac_word=$2
1013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1014 echo "configure:1015: checking for $ac_word" >&5
1015 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 if test -n "$CXX"; then
1019 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1023 for ac_dir in $ac_dummy; do
1024 test -z "$ac_dir" && ac_dir=.
1025 if test -f $ac_dir/$ac_word; then
1026 ac_cv_prog_CXX="$ac_prog"
1033 CXX="$ac_cv_prog_CXX"
1034 if test -n "$CXX"; then
1035 echo "$ac_t""$CXX" 1>&6
1037 echo "$ac_t""no" 1>&6
1040 test -n "$CXX" && break
1042 test -n "$CXX" || CXX="gcc"
1045 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1050 ac_cpp='$CXXCPP $CPPFLAGS'
1051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1053 cross_compiling=$ac_cv_prog_cxx_cross
1055 cat > conftest.$ac_ext << EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1060 int main(){return(0);}
1062 if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1063 ac_cv_prog_cxx_works=yes
1064 # If we can't run a trivial program, we are probably using a cross compiler.
1065 if (./conftest; exit) 2>/dev/null; then
1066 ac_cv_prog_cxx_cross=no
1068 ac_cv_prog_cxx_cross=yes
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1073 ac_cv_prog_cxx_works=no
1077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1078 ac_cpp='$CPP $CPPFLAGS'
1079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1081 cross_compiling=$ac_cv_prog_cc_cross
1083 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1084 if test $ac_cv_prog_cxx_works = no; then
1085 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1087 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1089 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1090 cross_compiling=$ac_cv_prog_cxx_cross
1092 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether we are using GNU C++" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 cat > conftest.C <<EOF
1102 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1109 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1111 if test $ac_cv_prog_gxx = yes; then
1117 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1118 ac_save_CXXFLAGS="$CXXFLAGS"
1120 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1121 echo "configure:1122: checking whether ${CXX-g++} accepts -g" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 echo 'void f(){}' > conftest.cc
1126 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1127 ac_cv_prog_cxx_g=yes
1135 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1136 if test "$ac_test_CXXFLAGS" = set; then
1137 CXXFLAGS="$ac_save_CXXFLAGS"
1138 elif test $ac_cv_prog_cxx_g = yes; then
1139 if test "$GXX" = yes; then
1145 if test "$GXX" = yes; then
1153 if test "x$CHECKMEM" '!=' "x";then
1157 #unset ac_cv_prog_CC
1158 #unset ac_cv_prog_CXX
1162 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1163 echo "configure:1164: checking how to run the C preprocessor" >&5
1164 # On Suns, sometimes $CPP names a directory.
1165 if test -n "$CPP" && test -d "$CPP"; then
1168 if test -z "$CPP"; then
1169 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 # This must be in double quotes, not single quotes, because CPP may get
1173 # substituted into the Makefile and "${CC-cc}" will confuse make.
1175 # On the NeXT, cc -E runs the code through the compiler's parser,
1176 # not just through cpp.
1177 cat > conftest.$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1184 { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1186 if test -z "$ac_err"; then
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1193 CPP="${CC-cc} -E -traditional-cpp"
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201 { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1203 if test -z "$ac_err"; then
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1210 CPP="${CC-cc} -nologo -E"
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1234 ac_cv_prog_CPP="$CPP"
1236 CPP="$ac_cv_prog_CPP"
1238 ac_cv_prog_CPP="$CPP"
1240 echo "$ac_t""$CPP" 1>&6
1243 # Extract the first word of "ranlib", so it can be a program name with args.
1244 set dummy ranlib; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -n "$RANLIB"; then
1251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 for ac_dir in $ac_dummy; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_RANLIB="ranlib"
1263 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1266 RANLIB="$ac_cv_prog_RANLIB"
1267 if test -n "$RANLIB"; then
1268 echo "$ac_t""$RANLIB" 1>&6
1270 echo "$ac_t""no" 1>&6
1273 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${MAKE-make} sets \${MAKE}" >&5
1275 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1276 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftestmake <<\EOF
1281 @echo 'ac_maketemp="${MAKE}"'
1283 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1284 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1285 if test -n "$ac_maketemp"; then
1286 eval ac_cv_prog_make_${ac_make}_set=yes
1288 eval ac_cv_prog_make_${ac_make}_set=no
1292 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1293 echo "$ac_t""yes" 1>&6
1296 echo "$ac_t""no" 1>&6
1297 SET_MAKE="MAKE=${MAKE-make}"
1300 # Find a good install program. We prefer a C program (faster),
1301 # so one script is as good as another. But avoid the broken or
1302 # incompatible versions:
1303 # SysV /etc/install, /usr/sbin/install
1304 # SunOS /usr/etc/install
1305 # IRIX /sbin/install
1307 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1308 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1309 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1310 # ./install, which can be erroneously created by make from ./install.sh.
1311 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1312 echo "configure:1313: checking for a BSD compatible install" >&5
1313 if test -z "$INSTALL"; then
1314 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1318 for ac_dir in $PATH; do
1319 # Account for people who put trailing slashes in PATH elements.
1321 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1323 # OSF1 and SCO ODT 3.0 have their own names for install.
1324 # Don't use installbsd from OSF since it installs stuff as root
1326 for ac_prog in ginstall scoinst install; do
1327 if test -f $ac_dir/$ac_prog; then
1328 if test $ac_prog = install &&
1329 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1330 # AIX install. It has an incompatible calling convention.
1333 ac_cv_path_install="$ac_dir/$ac_prog -c"
1344 if test "${ac_cv_path_install+set}" = set; then
1345 INSTALL="$ac_cv_path_install"
1347 # As a last resort, use the slow shell script. We don't cache a
1348 # path for INSTALL within a source directory, because that will
1349 # break other packages using the cache if that directory is
1350 # removed, or if the path is relative.
1351 INSTALL="$ac_install_sh"
1354 echo "$ac_t""$INSTALL" 1>&6
1356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1357 # It thinks the first close brace ends the variable substitution.
1358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1364 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1365 echo "configure:1366: checking whether ln -s works" >&5
1366 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1370 if ln -s X conftestdata 2>/dev/null
1373 ac_cv_prog_LN_S="ln -s"
1378 LN_S="$ac_cv_prog_LN_S"
1379 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1380 echo "$ac_t""yes" 1>&6
1382 echo "$ac_t""no" 1>&6
1385 # Find the correct PATH separator. Usually this is `:', but
1386 # DJGPP uses `;' like DOS.
1387 if test "X${PATH_SEPARATOR+set}" != Xset; then
1388 UNAME=${UNAME-`uname 2>/dev/null`}
1390 *-DOS) lt_cv_sys_path_separator=';' ;;
1391 *) lt_cv_sys_path_separator=':' ;;
1393 PATH_SEPARATOR=$lt_cv_sys_path_separator
1396 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1397 echo "configure:1398: checking for Cygwin environment" >&5
1398 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1408 #define __CYGWIN__ __CYGWIN32__
1413 if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1426 echo "$ac_t""$ac_cv_cygwin" 1>&6
1428 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1429 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1430 echo "configure:1431: checking for mingw32 environment" >&5
1431 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1442 if { (eval echo configure:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1455 echo "$ac_t""$ac_cv_mingw32" 1>&6
1457 test "$ac_cv_mingw32" = yes && MINGW32=yes
1458 # Check whether --enable-shared or --disable-shared was given.
1459 if test "${enable_shared+set}" = set; then
1460 enableval="$enable_shared"
1461 p=${PACKAGE-default}
1463 yes) enable_shared=yes ;;
1464 no) enable_shared=no ;;
1467 # Look at the argument we got. We use all the common list separators.
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1469 for pkg in $enableval; do
1470 if test "X$pkg" = "X$p"; then
1481 # Check whether --enable-static or --disable-static was given.
1482 if test "${enable_static+set}" = set; then
1483 enableval="$enable_static"
1484 p=${PACKAGE-default}
1486 yes) enable_static=yes ;;
1487 no) enable_static=no ;;
1490 # Look at the argument we got. We use all the common list separators.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1492 for pkg in $enableval; do
1493 if test "X$pkg" = "X$p"; then
1504 # Check whether --enable-fast-install or --disable-fast-install was given.
1505 if test "${enable_fast_install+set}" = set; then
1506 enableval="$enable_fast_install"
1507 p=${PACKAGE-default}
1509 yes) enable_fast_install=yes ;;
1510 no) enable_fast_install=no ;;
1512 enable_fast_install=no
1513 # Look at the argument we got. We use all the common list separators.
1514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1515 for pkg in $enableval; do
1516 if test "X$pkg" = "X$p"; then
1517 enable_fast_install=yes
1524 enable_fast_install=yes
1527 echo $ac_n "checking build system type""... $ac_c" 1>&6
1528 echo "configure:1529: checking build system type" >&5
1531 case "$build_alias" in
1534 NONE) build_alias=$host_alias ;;
1535 *) build_alias=$nonopt ;;
1539 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1540 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543 echo "$ac_t""$build" 1>&6
1545 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1546 if test "${with_gnu_ld+set}" = set; then
1547 withval="$with_gnu_ld"
1548 test "$withval" = no || with_gnu_ld=yes
1554 if test "$GCC" = yes; then
1555 # Check if gcc -print-prog-name=ld gives a path.
1556 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1557 echo "configure:1558: checking for ld used by GCC" >&5
1560 # gcc leaves a trailing carriage return which upsets mingw
1561 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1563 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1566 # Accept absolute paths.
1567 [\\/]* | [A-Za-z]:[\\/]*)
1568 re_direlt='/[^/][^/]*/\.\./'
1569 # Canonicalize the path of ld
1570 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1571 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1572 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1574 test -z "$LD" && LD="$ac_prog"
1577 # If it fails, then pretend we aren't using GCC.
1581 # If it is relative, then search for the first ld in PATH.
1585 elif test "$with_gnu_ld" = yes; then
1586 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1587 echo "configure:1588: checking for GNU ld" >&5
1589 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1590 echo "configure:1591: checking for non-GNU ld" >&5
1592 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 if test -z "$LD"; then
1596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1597 for ac_dir in $PATH; do
1598 test -z "$ac_dir" && ac_dir=.
1599 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1600 lt_cv_path_LD="$ac_dir/$ac_prog"
1601 # Check to see if the program is GNU ld. I'd rather use --version,
1602 # but apparently some GNU ld's only accept -v.
1603 # Break only if it was the GNU/non-GNU ld that we prefer.
1604 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1605 test "$with_gnu_ld" != no && break
1607 test "$with_gnu_ld" != yes && break
1613 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1618 if test -n "$LD"; then
1619 echo "$ac_t""$LD" 1>&6
1621 echo "$ac_t""no" 1>&6
1623 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1624 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1625 echo "configure:1626: checking if the linker ($LD) is GNU ld" >&5
1626 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1630 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1631 lt_cv_prog_gnu_ld=yes
1633 lt_cv_prog_gnu_ld=no
1637 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1638 with_gnu_ld=$lt_cv_prog_gnu_ld
1641 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $LD option to reload object files" >&5
1643 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 lt_cv_ld_reload_flag='-r'
1649 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1650 reload_flag=$lt_cv_ld_reload_flag
1651 test -n "$reload_flag" && reload_flag=" $reload_flag"
1653 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1654 echo "configure:1655: checking for BSD-compatible nm" >&5
1655 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 if test -n "$NM"; then
1659 # Let the user override the test.
1662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1663 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1664 test -z "$ac_dir" && ac_dir=.
1665 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1666 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1667 # Check to see if the nm accepts a BSD-compat flag.
1668 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1669 # nm: unknown option "B" ignored
1670 # Tru64's nm complains that /dev/null is an invalid object file
1671 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1672 lt_cv_path_NM="$tmp_nm -B"
1674 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1675 lt_cv_path_NM="$tmp_nm -p"
1678 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1679 continue # so that we can try to find one that supports BSD flags
1684 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1689 echo "$ac_t""$NM" 1>&6
1691 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1692 echo "configure:1693: checking how to recognise dependant libraries" >&5
1693 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 lt_cv_file_magic_cmd='$MAGIC_CMD'
1697 lt_cv_file_magic_test_file=
1698 lt_cv_deplibs_check_method='unknown'
1699 # Need to set the preceding variable on all platforms that support
1700 # interlibrary dependencies.
1701 # 'none' -- dependencies not supported.
1702 # `unknown' -- same as none, but documents that we really don't know.
1703 # 'pass_all' -- all dependencies passed with no checks.
1704 # 'test_compile' -- check by making test program.
1705 # 'file_magic [[regex]]' -- check by looking for files in library path
1706 # which responds to the $file_magic_cmd with a given egrep regex.
1707 # If you have `file' or equivalent on your system and you're not sure
1708 # whether `pass_all' will *always* work, you probably want this one.
1712 lt_cv_deplibs_check_method=pass_all
1716 lt_cv_deplibs_check_method=pass_all
1720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1721 lt_cv_file_magic_cmd='/usr/bin/file -L'
1722 lt_cv_file_magic_test_file=/shlib/libc.so
1725 cygwin* | mingw* | pw32*)
1726 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1727 lt_cv_file_magic_cmd='$OBJDUMP -f'
1730 darwin* | rhapsody*)
1731 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1732 lt_cv_file_magic_cmd='/usr/bin/file -L'
1734 rhapsody* | darwin1.[012])
1735 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1738 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1744 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1747 # Not sure whether the presence of OpenBSD here was a mistake.
1748 # Let's accept both of them until this is cleared up.
1749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1750 lt_cv_file_magic_cmd=/usr/bin/file
1751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1755 lt_cv_deplibs_check_method=pass_all
1760 lt_cv_deplibs_check_method=pass_all
1764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1765 lt_cv_file_magic_cmd=/usr/bin/file
1766 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1769 irix5* | irix6* | nonstopux*)
1771 irix5* | nonstopux*)
1772 # this will be overridden with pass_all, but let us keep it just in case
1773 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1777 *-32|*"-32 ") libmagic=32-bit;;
1778 *-n32|*"-n32 ") libmagic=N32;;
1779 *-64|*"-64 ") libmagic=64-bit;;
1780 *) libmagic=never-match;;
1782 # this will be overridden with pass_all, but let us keep it just in case
1783 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1786 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1787 lt_cv_deplibs_check_method=pass_all
1790 # This must be Linux ELF.
1793 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1794 lt_cv_deplibs_check_method=pass_all ;;
1796 # glibc up to 2.1.1 does not perform some relocations on ARM
1797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1799 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1803 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1804 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1806 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1812 lt_cv_file_magic_cmd=/usr/bin/file
1813 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1817 lt_cv_file_magic_cmd=/usr/bin/file
1818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1819 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1822 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1826 osf3* | osf4* | osf5*)
1827 # this will be overridden with pass_all, but let us keep it just in case
1828 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1829 lt_cv_file_magic_test_file=/shlib/libc.so
1830 lt_cv_deplibs_check_method=pass_all
1834 lt_cv_deplibs_check_method=pass_all
1838 lt_cv_deplibs_check_method=pass_all
1839 lt_cv_file_magic_test_file=/lib/libc.so
1842 sysv5uw[78]* | sysv4*uw2*)
1843 lt_cv_deplibs_check_method=pass_all
1846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1847 case $host_vendor in
1849 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]'
1850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1853 lt_cv_deplibs_check_method=pass_all
1856 lt_cv_file_magic_cmd='/bin/file'
1857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1860 lt_cv_file_magic_cmd='/bin/file'
1861 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1862 lt_cv_file_magic_test_file=/lib/libc.so
1870 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1871 file_magic_cmd=$lt_cv_file_magic_cmd
1872 deplibs_check_method=$lt_cv_deplibs_check_method
1874 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1875 echo "configure:1876: checking for object suffix" >&5
1876 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1880 echo 'int i = 1;' > conftest.$ac_ext
1881 if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1882 for ac_file in conftest.*; do
1885 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1889 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1894 echo "$ac_t""$ac_cv_objext" 1>&6
1895 OBJEXT=$ac_cv_objext
1896 ac_objext=$ac_cv_objext
1900 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1901 echo "configure:1902: checking for executable suffix" >&5
1902 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1909 echo 'int main () { return 0; }' > conftest.$ac_ext
1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1912 for file in conftest.*; do
1914 *.c | *.o | *.obj) ;;
1915 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1919 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1922 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1927 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1928 echo "$ac_t""${ac_cv_exeext}" 1>&6
1931 if test $host != $build; then
1932 ac_tool_prefix=${host_alias}-
1940 # Check for command to grab the raw symbol name followed by C symbol from nm.
1941 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1942 echo "configure:1943: checking command to parse $NM output" >&5
1943 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1947 # These are sane defaults that work on at least a few old systems.
1948 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1950 # Character class describing NM global symbol codes.
1951 symcode='[BCDEGRST]'
1953 # Regexp to match symbols that can be accessed directly from C.
1954 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1956 # Transform the above into a raw symbol and a C symbol.
1957 symxfrm='\1 \2\3 \3'
1959 # Transform an extracted symbol line into a proper C declaration
1960 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1962 # Transform an extracted symbol line into symbol name and symbol address
1963 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'"
1965 # Define system-specific variables.
1970 cygwin* | mingw* | pw32*)
1971 symcode='[ABCDGISTW]'
1973 hpux*) # Its linker distinguishes data from code symbols
1974 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1975 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'"
1978 symcode='[BCDEGRST]'
1988 # Handle CRLF in mingw tool chain
1992 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1996 # If we're using GNU nm, then use its standard symbol codes.
1997 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1998 symcode='[ABCDGISTW]'
2001 # Try without a prefix undercore, then with it.
2002 for ac_symprfx in "" "_"; do
2004 # Write the raw and C identifiers.
2005 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2007 # Check to see that the pipe works correctly.
2010 cat > conftest.$ac_ext <<EOF
2015 void nm_test_func(){}
2019 int main(){nm_test_var='a';nm_test_func();return(0);}
2022 if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2023 # Now try to grab the symbols.
2025 if { (eval echo configure:2026: \"$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
2026 # Try sorting and uniquifying the output.
2027 if sort "$nlist" | uniq > "$nlist"T; then
2028 mv -f "$nlist"T "$nlist"
2033 # Make sure that we snagged all the symbols we need.
2034 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2035 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2036 cat <<EOF > conftest.$ac_ext
2042 # Now generate the symbol file.
2043 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2045 cat <<EOF >> conftest.$ac_ext
2046 #if defined (__STDC__) && __STDC__
2047 # define lt_ptr void *
2049 # define lt_ptr char *
2053 /* The mapping between symbol names and symbols. */
2058 lt_preloaded_symbols[] =
2061 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2062 cat <<\EOF >> conftest.$ac_ext
2070 # Now try linking the two files.
2071 mv conftest.$ac_objext conftstm.$ac_objext
2073 save_CFLAGS="$CFLAGS"
2074 LIBS="conftstm.$ac_objext"
2075 CFLAGS="$CFLAGS$no_builtin_flag"
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2080 CFLAGS="$save_CFLAGS"
2082 echo "cannot find nm_test_func in $nlist" >&5
2085 echo "cannot find nm_test_var in $nlist" >&5
2088 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2091 echo "$progname: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 rm -f conftest* conftst*
2096 # Do not use the global_symbol_pipe unless it works.
2097 if test "$pipe_works" = yes; then
2100 lt_cv_sys_global_symbol_pipe=
2106 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2107 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2108 global_symbol_to_cdecl=
2109 global_symbol_to_c_name_address=
2111 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2112 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2114 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2116 echo "$ac_t""failed" 1>&6
2118 echo "$ac_t""ok" 1>&6
2121 for ac_hdr in dlfcn.h
2123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_hdr" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2135 { (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2137 if test -z "$ac_err"; then
2139 eval "ac_cv_header_$ac_safe=yes"
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2145 eval "ac_cv_header_$ac_safe=no"
2149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2150 echo "$ac_t""yes" 1>&6
2151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2152 cat >> confdefs.h <<EOF
2153 #define $ac_tr_hdr 1
2157 echo "$ac_t""no" 1>&6
2165 # Only perform the check for file, if the check method requires it
2166 case $deplibs_check_method in
2168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2169 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2170 echo "configure:2171: checking for ${ac_tool_prefix}file" >&5
2171 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2182 ac_save_MAGIC_CMD="$MAGIC_CMD"
2183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2184 ac_dummy="/usr/bin:$PATH"
2185 for ac_dir in $ac_dummy; do
2186 test -z "$ac_dir" && ac_dir=.
2187 if test -f $ac_dir/${ac_tool_prefix}file; then
2188 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2189 if test -n "$file_magic_test_file"; then
2190 case $deplibs_check_method in
2192 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2195 egrep "$file_magic_regex" > /dev/null; then
2200 *** Warning: the command libtool uses to detect shared libraries,
2201 *** $file_magic_cmd, produces output that libtool cannot recognize.
2202 *** The result is that libtool may fail to recognize shared libraries
2203 *** as such. This will affect the creation of libtool libraries that
2204 *** depend on shared libraries, but programs linked with such libtool
2205 *** libraries will work regardless of this problem. Nevertheless, you
2206 *** may want to report the problem to your system manager and/or to
2207 *** bug-libtool@gnu.org
2217 MAGIC_CMD="$ac_save_MAGIC_CMD"
2222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2223 if test -n "$MAGIC_CMD"; then
2224 echo "$ac_t""$MAGIC_CMD" 1>&6
2226 echo "$ac_t""no" 1>&6
2229 if test -z "$lt_cv_path_MAGIC_CMD"; then
2230 if test -n "$ac_tool_prefix"; then
2231 echo $ac_n "checking for file""... $ac_c" 1>&6
2232 echo "configure:2233: checking for file" >&5
2233 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2244 ac_save_MAGIC_CMD="$MAGIC_CMD"
2245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2246 ac_dummy="/usr/bin:$PATH"
2247 for ac_dir in $ac_dummy; do
2248 test -z "$ac_dir" && ac_dir=.
2249 if test -f $ac_dir/file; then
2250 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2251 if test -n "$file_magic_test_file"; then
2252 case $deplibs_check_method in
2254 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2257 egrep "$file_magic_regex" > /dev/null; then
2262 *** Warning: the command libtool uses to detect shared libraries,
2263 *** $file_magic_cmd, produces output that libtool cannot recognize.
2264 *** The result is that libtool may fail to recognize shared libraries
2265 *** as such. This will affect the creation of libtool libraries that
2266 *** depend on shared libraries, but programs linked with such libtool
2267 *** libraries will work regardless of this problem. Nevertheless, you
2268 *** may want to report the problem to your system manager and/or to
2269 *** bug-libtool@gnu.org
2279 MAGIC_CMD="$ac_save_MAGIC_CMD"
2284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2285 if test -n "$MAGIC_CMD"; then
2286 echo "$ac_t""$MAGIC_CMD" 1>&6
2288 echo "$ac_t""no" 1>&6
2300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 if test -n "$RANLIB"; then
2308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2322 RANLIB="$ac_cv_prog_RANLIB"
2323 if test -n "$RANLIB"; then
2324 echo "$ac_t""$RANLIB" 1>&6
2326 echo "$ac_t""no" 1>&6
2330 if test -z "$ac_cv_prog_RANLIB"; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "ranlib", so it can be a program name with args.
2333 set dummy ranlib; ac_word=$2
2334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2335 echo "configure:2336: checking for $ac_word" >&5
2336 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 if test -n "$RANLIB"; then
2340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2344 for ac_dir in $ac_dummy; do
2345 test -z "$ac_dir" && ac_dir=.
2346 if test -f $ac_dir/$ac_word; then
2347 ac_cv_prog_RANLIB="ranlib"
2352 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2355 RANLIB="$ac_cv_prog_RANLIB"
2356 if test -n "$RANLIB"; then
2357 echo "$ac_t""$RANLIB" 1>&6
2359 echo "$ac_t""no" 1>&6
2367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}strip; ac_word=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 if test -n "$STRIP"; then
2375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2379 for ac_dir in $ac_dummy; do
2380 test -z "$ac_dir" && ac_dir=.
2381 if test -f $ac_dir/$ac_word; then
2382 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2389 STRIP="$ac_cv_prog_STRIP"
2390 if test -n "$STRIP"; then
2391 echo "$ac_t""$STRIP" 1>&6
2393 echo "$ac_t""no" 1>&6
2397 if test -z "$ac_cv_prog_STRIP"; then
2398 if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "strip", so it can be a program name with args.
2400 set dummy strip; ac_word=$2
2401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_word" >&5
2403 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 if test -n "$STRIP"; then
2407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2411 for ac_dir in $ac_dummy; do
2412 test -z "$ac_dir" && ac_dir=.
2413 if test -f $ac_dir/$ac_word; then
2414 ac_cv_prog_STRIP="strip"
2419 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2422 STRIP="$ac_cv_prog_STRIP"
2423 if test -n "$STRIP"; then
2424 echo "$ac_t""$STRIP" 1>&6
2426 echo "$ac_t""no" 1>&6
2438 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2439 if test "${enable_libtool_lock+set}" = set; then
2440 enableval="$enable_libtool_lock"
2444 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2446 # Some flags need to be propagated to the compiler or linker for good
2450 # Find out which ABI we are using.
2451 echo '#line 2452 "configure"' > conftest.$ac_ext
2452 if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453 case `/usr/bin/file conftest.$ac_objext` in
2469 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2470 SAVE_CFLAGS="$CFLAGS"
2471 CFLAGS="$CFLAGS -belf"
2472 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2473 echo "configure:2474: checking whether the C compiler needs -belf" >&5
2474 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cc_cross
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2495 lt_cv_cc_needs_belf=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 lt_cv_cc_needs_belf=no
2504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cc_cross
2512 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2513 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2514 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2515 CFLAGS="$SAVE_CFLAGS"
2522 # Sed substitution that helps us do robust quoting. It backslashifies
2523 # metacharacters that are still active within double-quoted strings.
2524 Xsed='sed -e s/^X//'
2525 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2527 # Same as above, but do not quote variable references.
2528 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2530 # Sed substitution to delay expansion of an escaped shell variable in a
2531 # double_quote_subst'ed string.
2532 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2538 default_ofile=libtool
2539 can_build_shared=yes
2541 # All known linkers require a `.a' archive for static linking (except M$VC,
2542 # which needs '.lib').
2544 ltmain="$ac_aux_dir/ltmain.sh"
2545 ofile="$default_ofile"
2546 with_gnu_ld="$lt_cv_prog_gnu_ld"
2547 need_locks="$enable_libtool_lock"
2550 old_CFLAGS="$CFLAGS"
2552 # Set sane defaults for various variables
2553 test -z "$AR" && AR=ar
2554 test -z "$AR_FLAGS" && AR_FLAGS=cru
2555 test -z "$AS" && AS=as
2556 test -z "$CC" && CC=cc
2557 test -z "$DLLTOOL" && DLLTOOL=dlltool
2558 test -z "$LD" && LD=ld
2559 test -z "$LN_S" && LN_S="ln -s"
2560 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2561 test -z "$NM" && NM=nm
2562 test -z "$OBJDUMP" && OBJDUMP=objdump
2563 test -z "$RANLIB" && RANLIB=:
2564 test -z "$STRIP" && STRIP=:
2565 test -z "$ac_objext" && ac_objext=o
2567 if test x"$host" != x"$build"; then
2568 ac_tool_prefix=${host_alias}-
2573 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2576 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2581 # AIX sometimes has problems with the GCC collect2 program. For some
2582 # reason, if we set the COLLECT_NAMES environment variable, the problems
2583 # vanish in a puff of smoke.
2584 if test "X${COLLECT_NAMES+set}" != Xset; then
2586 export COLLECT_NAMES
2591 # Determine commands to create old-style static archives.
2592 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2593 old_postinstall_cmds='chmod 644 $oldlib'
2594 old_postuninstall_cmds=
2596 if test -n "$RANLIB"; then
2599 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2602 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2605 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2608 # Allow CC to be a program name with arguments.
2612 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2613 echo "configure:2614: checking for objdir" >&5
2614 rm -f .libs 2>/dev/null
2615 mkdir .libs 2>/dev/null
2616 if test -d .libs; then
2619 # MS-DOS does not allow filenames that begin with a dot.
2622 rmdir .libs 2>/dev/null
2623 echo "$ac_t""$objdir" 1>&6
2626 # Check whether --with-pic or --without-pic was given.
2627 if test "${with_pic+set}" = set; then
2634 test -z "$pic_mode" && pic_mode=default
2636 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2637 # in isolation, and that seeing it set (from the cache) indicates that
2638 # the associated values are set (in the cache) correctly too.
2639 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2640 echo "configure:2641: checking for $compiler option to produce PIC" >&5
2641 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2645 lt_cv_prog_cc_shlib=
2647 lt_cv_prog_cc_static=
2648 lt_cv_prog_cc_no_builtin=
2649 lt_cv_prog_cc_can_build_shared=$can_build_shared
2651 if test "$GCC" = yes; then
2652 lt_cv_prog_cc_wl='-Wl,'
2653 lt_cv_prog_cc_static='-static'
2657 # Below there is a dirty hack to force normal static linking with -ldl
2658 # The problem is because libdl dynamically linked with both libc and
2659 # libC (AIX C++ library), which obviously doesn't included in libraries
2660 # list by gcc. This cause undefined symbols with -static flags.
2661 # This hack allows C programs to be linked with "-static -ldl", but
2662 # not sure about C++ programs.
2663 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2666 # FIXME: we need at least 68020 code to build shared libraries, but
2667 # adding the `-m68020' flag to GCC prevents building anything better,
2669 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2671 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2672 # PIC is the default for these OSes.
2674 darwin* | rhapsody*)
2675 # PIC is the default on this platform
2676 # Common symbols not allowed in MH_DYLIB files
2677 lt_cv_prog_cc_pic='-fno-common'
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'
2685 if test -d /usr/nec; then
2686 lt_cv_prog_cc_pic=-Kconform_pic
2690 lt_cv_prog_cc_pic='-fPIC'
2694 # PORTME Check for PIC flags for the system compiler.
2696 aix3* | aix4* | aix5*)
2697 lt_cv_prog_cc_wl='-Wl,'
2698 # All AIX code is PIC.
2699 if test "$host_cpu" = ia64; then
2700 # AIX 5 now supports IA64 processor
2701 lt_cv_prog_cc_static='-Bstatic'
2703 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2707 hpux9* | hpux10* | hpux11*)
2708 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2709 lt_cv_prog_cc_wl='-Wl,'
2710 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2711 lt_cv_prog_cc_pic='+Z'
2714 irix5* | irix6* | nonstopux*)
2715 lt_cv_prog_cc_wl='-Wl,'
2716 lt_cv_prog_cc_static='-non_shared'
2717 # PIC (with -KPIC) is the default.
2720 cygwin* | mingw* | pw32* | os2*)
2721 # This hack is so that the source file can tell whether it is being
2722 # built for inclusion in a dll (and should export symbols for example).
2723 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2727 lt_cv_prog_cc_pic='-KPIC'
2728 lt_cv_prog_cc_static='-Bstatic'
2731 osf3* | osf4* | osf5*)
2732 # All OSF/1 code is PIC.
2733 lt_cv_prog_cc_wl='-Wl,'
2734 lt_cv_prog_cc_static='-non_shared'
2738 lt_cv_prog_cc_pic='-Kpic'
2739 lt_cv_prog_cc_static='-dn'
2740 lt_cv_prog_cc_shlib='-belf'
2744 lt_cv_prog_cc_pic='-KPIC'
2745 lt_cv_prog_cc_static='-Bstatic'
2746 lt_cv_prog_cc_wl='-Wl,'
2750 lt_cv_prog_cc_pic='-PIC'
2751 lt_cv_prog_cc_static='-Bstatic'
2752 lt_cv_prog_cc_wl='-Qoption ld '
2755 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2756 lt_cv_prog_cc_pic='-KPIC'
2757 lt_cv_prog_cc_static='-Bstatic'
2758 if test "x$host_vendor" = xsni; then
2759 lt_cv_prog_cc_wl='-LD'
2761 lt_cv_prog_cc_wl='-Wl,'
2766 lt_cv_prog_cc_pic='-pic'
2767 lt_cv_prog_cc_static='-Bstatic'
2771 if test -d /usr/nec ;then
2772 lt_cv_prog_cc_pic='-Kconform_pic'
2773 lt_cv_prog_cc_static='-Bstatic'
2778 lt_cv_prog_cc_can_build_shared=no
2785 if test -z "$lt_cv_prog_cc_pic"; then
2786 echo "$ac_t""none" 1>&6
2788 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2790 # Check to make sure the pic_flag actually works.
2791 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2792 echo "configure:2793: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2793 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 save_CFLAGS="$CFLAGS"
2797 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2798 cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2806 if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2809 hpux9* | hpux10* | hpux11*)
2810 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2811 # they create non-PIC objects. So, if there were any warnings, we
2812 # assume that PIC is not supported.
2813 if test -s conftest.err; then
2814 lt_cv_prog_cc_pic_works=no
2816 lt_cv_prog_cc_pic_works=yes
2820 lt_cv_prog_cc_pic_works=yes
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2828 lt_cv_prog_cc_pic_works=no
2832 CFLAGS="$save_CFLAGS"
2837 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2839 lt_cv_prog_cc_can_build_shared=no
2841 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2844 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2847 # Check for any special shared library compilation flags.
2848 if test -n "$lt_cv_prog_cc_shlib"; then
2849 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2850 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2852 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2853 lt_cv_prog_cc_can_build_shared=no
2857 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2858 echo "configure:2859: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2859 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 lt_cv_prog_cc_static_works=no
2863 save_LDFLAGS="$LDFLAGS"
2864 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2873 if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2875 lt_cv_prog_cc_static_works=yes
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2881 LDFLAGS="$save_LDFLAGS"
2886 # Belt *and* braces to stop my trousers falling down:
2887 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2888 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2890 pic_flag="$lt_cv_prog_cc_pic"
2891 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2892 wl="$lt_cv_prog_cc_wl"
2893 link_static_flag="$lt_cv_prog_cc_static"
2894 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2895 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2898 # Check to see if options -o and -c are simultaneously supported by compiler
2899 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2900 echo "configure:2901: checking if $compiler supports -c -o file.$ac_objext" >&5
2901 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2905 $rm -r conftest 2>/dev/null
2908 echo "int some_variable = 0;" > conftest.$ac_ext
2910 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2911 # that will create temporary files in the current directory regardless of
2912 # the output directory. Thus, making CWD read-only will cause this test
2913 # to fail, enabling locking or at least warning the user not to do parallel
2916 save_CFLAGS="$CFLAGS"
2917 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2919 if { (eval echo configure:2920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2920 # The compiler can only warn and ignore the option if not recognized
2921 # So say no if there are warnings
2922 if test -s out/conftest.err; then
2923 lt_cv_compiler_c_o=no
2925 lt_cv_compiler_c_o=yes
2928 # Append any errors to the config.log.
2929 cat out/conftest.err 1>&5
2930 lt_cv_compiler_c_o=no
2932 CFLAGS="$save_CFLAGS"
2938 $rm -r conftest 2>/dev/null
2942 compiler_c_o=$lt_cv_compiler_c_o
2943 echo "$ac_t""$compiler_c_o" 1>&6
2945 if test x"$compiler_c_o" = x"yes"; then
2946 # Check to see if we can write to a .lo
2947 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2948 echo "configure:2949: checking if $compiler supports -c -o file.lo" >&5
2949 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2953 lt_cv_compiler_o_lo=no
2954 save_CFLAGS="$CFLAGS"
2955 CFLAGS="$CFLAGS -c -o conftest.lo"
2956 save_objext="$ac_objext"
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2963 int some_variable = 0;
2966 if { (eval echo configure:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2968 # The compiler can only warn and ignore the option if not recognized
2969 # So say no if there are warnings
2970 if test -s conftest.err; then
2971 lt_cv_compiler_o_lo=no
2973 lt_cv_compiler_o_lo=yes
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2981 ac_objext="$save_objext"
2982 CFLAGS="$save_CFLAGS"
2986 compiler_o_lo=$lt_cv_compiler_o_lo
2987 echo "$ac_t""$compiler_o_lo" 1>&6
2992 # Check to see if we can do hard links to lock some files if needed
2993 hard_links="nottested"
2994 if test "$compiler_c_o" = no && test "$need_locks" != no; then
2995 # do not overwrite the value of need_locks provided by the user
2996 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2997 echo "configure:2998: checking if we can lock with hard links" >&5
3000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3002 ln conftest.a conftest.b 2>&5 || hard_links=no
3003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3004 echo "$ac_t""$hard_links" 1>&6
3005 if test "$hard_links" = no; then
3006 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3013 if test "$GCC" = yes; then
3014 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3015 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3016 echo "configure:3017: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3017 echo "int some_variable = 0;" > conftest.$ac_ext
3018 save_CFLAGS="$CFLAGS"
3019 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3020 compiler_rtti_exceptions=no
3021 cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3026 int some_variable = 0;
3029 if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3031 # The compiler can only warn and ignore the option if not recognized
3032 # So say no if there are warnings
3033 if test -s conftest.err; then
3034 compiler_rtti_exceptions=no
3036 compiler_rtti_exceptions=yes
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3044 CFLAGS="$save_CFLAGS"
3045 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3047 if test "$compiler_rtti_exceptions" = "yes"; then
3048 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3050 no_builtin_flag=' -fno-builtin'
3054 # See if the linker supports building shared libraries.
3055 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3056 echo "configure:3057: checking whether the linker ($LD) supports shared libraries" >&5
3058 allow_undefined_flag=
3060 need_lib_prefix=unknown
3061 need_version=unknown
3062 # when you set need_version to no, make sure it does not cause -set_version
3063 # flags to be left without arguments
3065 archive_expsym_cmds=
3066 old_archive_from_new_cmds=
3067 old_archive_from_expsyms_cmds=
3068 export_dynamic_flag_spec=
3069 whole_archive_flag_spec=
3070 thread_safe_flag_spec=
3071 hardcode_into_libs=no
3072 hardcode_libdir_flag_spec=
3073 hardcode_libdir_separator=
3076 hardcode_shlibpath_var=unsupported
3078 link_all_deplibs=unknown
3079 always_export_symbols=no
3080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3081 # include_expsyms should be a list of space-separated symbols to be *always*
3082 # included in the symbol list
3084 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3085 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3086 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3087 # as well as any symbol that contains `d'.
3088 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3090 # platforms (ab)use it in PIC code, but their linkers get confused if
3091 # the symbol is explicitly referenced. Since portable code cannot
3092 # rely on this symbol name, it's probably fine to never include it in
3093 # preloaded symbol tables.
3094 extract_expsyms_cmds=
3097 cygwin* | mingw* | pw32*)
3098 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3099 # When not using gcc, we currently assume that we are using
3100 # Microsoft Visual C++.
3101 if test "$GCC" != yes; then
3111 if test "$with_gnu_ld" = yes; then
3112 # If archive_cmds runs LD, not CC, wlarc should be empty
3115 # See if GNU ld supports shared libraries.
3117 aix3* | aix4* | aix5*)
3118 # On AIX, the GNU linker is very broken
3119 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3123 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3124 *** to be unable to reliably create shared libraries on AIX.
3125 *** Therefore, libtool is disabling shared libraries support. If you
3126 *** really care for shared libraries, you may want to modify your PATH
3127 *** so that a non-GNU linker is found, and then restart.
3133 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)'
3134 hardcode_libdir_flag_spec='-L$libdir'
3135 hardcode_minus_L=yes
3137 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3138 # that the semantics of dynamic libraries on AmigaOS, at least up
3139 # to version 4, is to share data among multiple programs linked
3140 # with the same dynamic library. Since this doesn't match the
3141 # behavior of shared libraries on other platforms, we can use
3147 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3148 allow_undefined_flag=unsupported
3149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3150 # support --undefined. This deserves some investigation. FIXME
3151 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3157 cygwin* | mingw* | pw32*)
3158 # hardcode_libdir_flag_spec is actually meaningless, as there is
3159 # no search path for DLLs.
3160 hardcode_libdir_flag_spec='-L$libdir'
3161 allow_undefined_flag=unsupported
3162 always_export_symbols=yes
3164 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3165 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3166 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3167 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3168 else $CC -o impgen impgen.c ; fi)~
3169 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3171 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3173 # cygwin and mingw dlls have different entry points and sets of symbols
3175 # FIXME: what about values for MSVC?
3176 dll_entry=__cygwin_dll_entry@12
3177 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3181 dll_entry=_DllMainCRTStartup@12
3182 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3186 # mingw and cygwin differ, and it's simplest to just exclude the union
3187 # of the two symbol sets.
3188 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3190 # recent cygwin and mingw systems supply a stub DllMain which the user
3191 # can override, but on older systems we have to supply one (in ltdll.c)
3192 if test "x$lt_cv_need_dllmain" = "xyes"; then
3193 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3194 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~
3195 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3201 # Extract the symbol export list from an `--export-all' def file,
3202 # then regenerate the def file from the symbol export list, so that
3203 # the compiled dll only exports the symbol export list.
3204 # Be careful not to strip the DATA tag left be newer dlltools.
3205 export_symbols_cmds="$ltdll_cmds"'
3206 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3207 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3209 # If the export-symbols file already is a .def file (1st line
3210 # is EXPORTS), use it as is.
3211 # If DATA tags from a recent dlltool are present, honour them!
3212 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3213 cp $export_symbols $output_objdir/$soname-def;
3215 echo EXPORTS > $output_objdir/$soname-def;
3217 cat $export_symbols | while read symbol; do
3220 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3221 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3223 _lt_hint=`expr 1 + \$_lt_hint`;
3227 $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~
3228 $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~
3229 $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~
3230 $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~
3231 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3239 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3240 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3245 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3250 *** create shared libraries on Solaris systems. Therefore, libtool
3251 *** is disabling shared libraries support. We urge you to upgrade GNU
3252 *** binutils to release 2.9.1 or newer. Another option is to modify
3253 *** your PATH or compiler configuration so that the native linker is
3254 *** used, and then restart.
3257 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3266 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3269 hardcode_shlibpath_var=no
3273 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3282 if test "$ld_shlibs" = yes; then
3283 runpath_var=LD_RUN_PATH
3284 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3285 export_dynamic_flag_spec='${wl}--export-dynamic'
3287 cygwin* | mingw* | pw32*)
3288 # dlltool doesn't understand --whole-archive et. al.
3289 whole_archive_flag_spec=
3292 # ancient GNU ld didn't support --whole-archive et. al.
3293 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3294 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3296 whole_archive_flag_spec=
3302 # PORTME fill in a description of your system's linker (not GNU ld)
3305 allow_undefined_flag=unsupported
3306 always_export_symbols=yes
3307 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'
3308 # Note: this linker hardcodes the directories in LIBPATH if there
3309 # are no directories specified by -L.
3310 hardcode_minus_L=yes
3311 if test "$GCC" = yes && test -z "$link_static_flag"; then
3312 # Neither direct hardcoding nor static linking is supported with a
3314 hardcode_direct=unsupported
3319 if test "$host_cpu" = ia64; then
3320 # On IA64, the linker does run time linking by default, so we don't
3321 # have to do anything special.
3322 aix_use_runtimelinking=no
3323 exp_sym_flag='-Bexport'
3326 aix_use_runtimelinking=no
3328 # Test if we are trying to use run time linking or normal
3329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3330 # need to do runtime linking.
3331 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3332 for ld_flag in $LDFLAGS; do
3333 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3334 aix_use_runtimelinking=yes
3340 exp_sym_flag='-bexport'
3341 no_entry_flag='-bnoentry'
3344 # When large executables or shared objects are built, AIX ld can
3345 # have problems creating the table of contents. If linking a library
3346 # or program results in "error TOC overflow" add -mminimal-toc to
3347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3352 hardcode_libdir_separator=':'
3353 if test "$GCC" = yes; then
3354 case $host_os in aix4.[012]|aix4.[012].*)
3355 collect2name=`${CC} -print-prog-name=collect2`
3356 if test -f "$collect2name" && \
3357 strings "$collect2name" | grep resolve_lib_name >/dev/null
3359 # We have reworked collect2
3362 # We have old collect2
3363 hardcode_direct=unsupported
3364 # It fails to find uninstalled libraries when the uninstalled
3365 # path is not listed in the libpath. Setting hardcode_minus_L
3366 # to unsupported forces relinking
3367 hardcode_minus_L=yes
3368 hardcode_libdir_flag_spec='-L$libdir'
3369 hardcode_libdir_separator=
3373 shared_flag='-shared'
3376 if test "$host_cpu" = ia64; then
3377 shared_flag='${wl}-G'
3379 if test "$aix_use_runtimelinking" = yes; then
3380 shared_flag='${wl}-G'
3382 shared_flag='${wl}-bM:SRE'
3387 # It seems that -bexpall can do strange things, so it is better to
3388 # generate a list of symbols to export.
3389 always_export_symbols=yes
3390 if test "$aix_use_runtimelinking" = yes; then
3391 # Warning - without using the other runtime loading flags (-brtl),
3392 # -berok will link without error, but may produce a broken library.
3393 allow_undefined_flag='-berok'
3394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3395 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"
3397 if test "$host_cpu" = ia64; then
3398 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3399 allow_undefined_flag="-z nodefs"
3400 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"
3402 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3403 # Warning - without using the other run time loading flags,
3404 # -berok will link without error, but may produce a broken library.
3405 allow_undefined_flag='${wl}-berok'
3406 # This is a bit strange, but is similar to how AIX traditionally builds
3407 # it's shared libraries.
3408 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'
3414 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)'
3415 hardcode_libdir_flag_spec='-L$libdir'
3416 hardcode_minus_L=yes
3417 # see comment about different semantics on the GNU ld section
3421 cygwin* | mingw* | pw32*)
3422 # When not using gcc, we currently assume that we are using
3423 # Microsoft Visual C++.
3424 # hardcode_libdir_flag_spec is actually meaningless, as there is
3425 # no search path for DLLs.
3426 hardcode_libdir_flag_spec=' '
3427 allow_undefined_flag=unsupported
3428 # Tell ltmain to make .lib files, not .a files.
3430 # FIXME: Setting linknames here is a bad hack.
3431 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3432 # The linker will automatically build a .lib file if we build a DLL.
3433 old_archive_from_new_cmds='true'
3434 # FIXME: Should let the user specify the lib program.
3435 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3436 fix_srcfile_path='`cygpath -w "$srcfile"`'
3439 darwin* | rhapsody*)
3441 rhapsody* | darwin1.[012])
3442 allow_undefined_flag='-undefined suppress'
3445 allow_undefined_flag='-flat_namespace -undefined suppress'
3448 # FIXME: Relying on posixy $() will cause problems for
3449 # cross-compilation, but unfortunately the echo tests do not
3450 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3451 # `"' quotes if we put them in here... so don't!
3452 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3453 # We need to add '_' to the symbols in $export_symbols first
3454 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3456 hardcode_shlibpath_var=no
3457 whole_archive_flag_spec='-all_load $convenience'
3464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3465 # support. Future versions do this automatically, but an explicit c++rt0.o
3466 # does not break anything, and helps significantly (at the cost of a little
3469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3470 hardcode_libdir_flag_spec='-R$libdir'
3472 hardcode_shlibpath_var=no
3475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3479 hardcode_minus_L=yes
3480 hardcode_shlibpath_var=no
3483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3485 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3486 hardcode_libdir_flag_spec='-R$libdir'
3488 hardcode_shlibpath_var=no
3491 hpux9* | hpux10* | hpux11*)
3493 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' ;;
3494 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3497 hardcode_libdir_separator=:
3499 hardcode_minus_L=yes # Not in the search PATH, but as the default
3500 # location of the library.
3501 export_dynamic_flag_spec='${wl}-E'
3504 irix5* | irix6* | nonstopux*)
3505 if test "$GCC" = yes; then
3506 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'
3508 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'
3510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3511 hardcode_libdir_separator=:
3512 link_all_deplibs=yes
3516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3519 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3521 hardcode_libdir_flag_spec='-R$libdir'
3523 hardcode_shlibpath_var=no
3527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3530 hardcode_libdir_separator=:
3531 hardcode_shlibpath_var=no
3536 hardcode_shlibpath_var=no
3537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3540 export_dynamic_flag_spec='${wl}-E'
3543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3545 hardcode_libdir_flag_spec='-R$libdir'
3548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3556 hardcode_libdir_flag_spec='-L$libdir'
3557 hardcode_minus_L=yes
3558 allow_undefined_flag=unsupported
3559 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'
3560 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3564 if test "$GCC" = yes; then
3565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3566 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'
3568 allow_undefined_flag=' -expect_unresolved \*'
3569 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'
3571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3572 hardcode_libdir_separator=:
3575 osf4* | osf5*) # as osf3* with the addition of -msym flag
3576 if test "$GCC" = yes; then
3577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3578 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'
3579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3581 allow_undefined_flag=' -expect_unresolved \*'
3582 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'
3583 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3584 $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'
3586 #Both c and cxx compiler support -rpath directly
3587 hardcode_libdir_flag_spec='-rpath $libdir'
3589 hardcode_libdir_separator=:
3593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3594 hardcode_shlibpath_var=no
3595 runpath_var=LD_RUN_PATH
3596 hardcode_runpath_var=yes
3597 export_dynamic_flag_spec='${wl}-Bexport'
3601 # gcc --version < 3.0 without binutils cannot create self contained
3602 # shared libraries reliably, requiring libgcc.a to resolve some of
3603 # the object symbols generated in some cases. Libraries that use
3604 # assert need libgcc.a to resolve __eprintf, for example. Linking
3605 # a copy of libgcc.a into every shared library to guarantee resolving
3606 # such symbols causes other problems: According to Tim Van Holder
3607 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3608 # (to the application) exception stack for one thing.
3609 no_undefined_flag=' -z defs'
3610 if test "$GCC" = yes; then
3611 case `$CC --version 2>/dev/null` in
3615 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3616 *** create self contained shared libraries on Solaris systems, without
3617 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3618 *** -no-undefined support, which will at least allow you to build shared
3619 *** libraries. However, you may find that when you link such libraries
3620 *** into an application without using GCC, you have to manually add
3621 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3622 *** upgrade to a newer version of GCC. Another option is to rebuild your
3623 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3630 # $CC -shared without GNU ld will not create a library from C++
3631 # object files and a static libstdc++, better avoid it by now
3632 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3633 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3635 hardcode_libdir_flag_spec='-R$libdir'
3636 hardcode_shlibpath_var=no
3638 solaris2.[0-5] | solaris2.[0-5].*) ;;
3639 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3640 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3642 link_all_deplibs=yes
3646 if test "x$host_vendor" = xsequent; then
3647 # Use $CC to link under sequent, because it throws in some extra .o
3648 # files that make .init and .fini sections work.
3649 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3651 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3653 hardcode_libdir_flag_spec='-L$libdir'
3655 hardcode_minus_L=yes
3656 hardcode_shlibpath_var=no
3660 if test "x$host_vendor" = xsno; then
3661 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3662 hardcode_direct=yes # is this really true???
3664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3667 runpath_var='LD_RUN_PATH'
3668 hardcode_shlibpath_var=no
3672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3673 hardcode_shlibpath_var=no
3674 export_dynamic_flag_spec='-Bexport'
3678 no_undefined_flag=' -z text'
3679 # $CC -shared without GNU ld will not create a library from C++
3680 # object files and a static libstdc++, better avoid it by now
3681 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3682 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3683 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3684 hardcode_libdir_flag_spec=
3685 hardcode_shlibpath_var=no
3686 runpath_var='LD_RUN_PATH'
3690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3691 hardcode_libdir_flag_spec='-L$libdir'
3692 hardcode_shlibpath_var=no
3696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3697 hardcode_libdir_flag_spec='-L$libdir'
3698 hardcode_shlibpath_var=no
3702 if test -d /usr/nec; then
3703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3704 hardcode_shlibpath_var=no
3705 runpath_var=LD_RUN_PATH
3706 hardcode_runpath_var=yes
3712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3715 hardcode_shlibpath_var=no
3716 hardcode_runpath_var=yes
3717 runpath_var=LD_RUN_PATH
3720 sysv5uw7* | unixware7*)
3721 no_undefined_flag='${wl}-z ${wl}text'
3722 if test "$GCC" = yes; then
3723 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3725 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3727 runpath_var='LD_RUN_PATH'
3728 hardcode_shlibpath_var=no
3736 echo "$ac_t""$ld_shlibs" 1>&6
3737 test "$ld_shlibs" = no && can_build_shared=no
3739 # Check hardcoding attributes.
3740 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3741 echo "configure:3742: checking how to hardcode library paths into programs" >&5
3743 if test -n "$hardcode_libdir_flag_spec" || \
3744 test -n "$runpath_var"; then
3746 # We can hardcode non-existant directories.
3747 if test "$hardcode_direct" != no &&
3748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3749 # have to relink, otherwise we might link with an installed library
3750 # when we should be linking with a yet-to-be-installed one
3751 ## test "$hardcode_shlibpath_var" != no &&
3752 test "$hardcode_minus_L" != no; then
3753 # Linking always hardcodes the temporary library directory.
3754 hardcode_action=relink
3756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3757 hardcode_action=immediate
3760 # We cannot hardcode anything, or else we can only hardcode existing
3762 hardcode_action=unsupported
3764 echo "$ac_t""$hardcode_action" 1>&6
3768 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3769 echo "configure:3770: checking whether stripping libraries is possible" >&5
3770 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3771 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3772 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3773 echo "$ac_t""yes" 1>&6
3775 echo "$ac_t""no" 1>&6
3778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3779 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3781 # PORTME Fill in your ld.so characteristics
3782 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3783 echo "configure:3784: checking dynamic linker characteristics" >&5
3785 libname_spec='lib$name'
3792 shlibpath_overrides_runpath=unknown
3794 dynamic_linker="$host_os ld.so"
3795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3801 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3802 shlibpath_var=LIBPATH
3804 # AIX has no versioning support, so we append a major version to the name.
3805 soname_spec='${libname}${release}.so$major'
3810 if test "$host_cpu" = ia64; then
3811 # AIX 5 supports IA64
3812 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3813 shlibpath_var=LD_LIBRARY_PATH
3815 # With GCC up to 2.95.x, collect2 would create an import file
3816 # for dependence libraries. The import file would start with
3817 # the line `#! .'. This would cause the generated library to
3818 # depend on `.', always an invalid library. This was fixed in
3819 # development snapshots of GCC prior to 3.0.
3821 aix4 | aix4.[01] | aix4.[01].*)
3822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3824 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3831 # AIX (on Power*) has no versioning support, so currently we can
3832 # not hardcode correct soname into executable. Probably we can
3833 # add versioning support to collect2, so additional links can
3834 # be useful in future.
3835 if test "$aix_use_runtimelinking" = yes; then
3836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3837 # instead of lib<name>.a to let people know that these are not
3838 # typical AIX shared libraries.
3839 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3841 # We preserve .a as extension for shared libraries through AIX4.2
3842 # and later when we are not doing run time linking.
3843 library_names_spec='${libname}${release}.a $libname.a'
3844 soname_spec='${libname}${release}.so$major'
3846 shlibpath_var=LIBPATH
3851 library_names_spec='$libname.ixlibrary $libname.a'
3852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3853 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'
3857 library_names_spec='${libname}.so'
3858 dynamic_linker="$host_os ld.so"
3859 shlibpath_var=LIBRARY_PATH
3865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3866 soname_spec='${libname}${release}.so$major'
3867 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3868 shlibpath_var=LD_LIBRARY_PATH
3869 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3870 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3871 export_dynamic_flag_spec=-rdynamic
3872 # the default ld.so.conf also contains /usr/contrib/lib and
3873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3874 # libtool to hard-code these into programs
3877 cygwin* | mingw* | pw32*)
3878 version_type=windows
3881 case $GCC,$host_os in
3883 library_names_spec='$libname.dll.a'
3884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3885 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3886 dldir=$destdir/`dirname \$dlpath`~
3887 test -d \$dldir || mkdir -p \$dldir~
3888 $install_prog .libs/$dlname \$dldir/$dlname'
3889 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3890 dlpath=$dir/\$dldll~
3894 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3901 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3904 dynamic_linker='Win32 ld.exe'
3905 # FIXME: first we should search . and the directory the executable is in
3909 darwin* | rhapsody*)
3910 dynamic_linker="$host_os dyld"
3914 # FIXME: Relying on posixy $() will cause problems for
3915 # cross-compilation, but unfortunately the echo tests do not
3916 # yet detect zsh echo's removal of \ escapes.
3917 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)'
3918 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3919 shlibpath_overrides_runpath=yes
3920 shlibpath_var=DYLD_LIBRARY_PATH
3928 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3929 version_type=freebsd-$objformat
3930 case $version_type in
3932 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3937 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3941 shlibpath_var=LD_LIBRARY_PATH
3944 shlibpath_overrides_runpath=yes
3947 shlibpath_overrides_runpath=no
3948 hardcode_into_libs=yes
3957 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3958 soname_spec='${libname}${release}.so$major'
3959 shlibpath_var=LD_LIBRARY_PATH
3960 hardcode_into_libs=yes
3963 hpux9* | hpux10* | hpux11*)
3964 # Give a soname corresponding to the major version so that dld.sl refuses to
3965 # link against other versions.
3966 dynamic_linker="$host_os dld.sl"
3970 shlibpath_var=SHLIB_PATH
3971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3972 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3973 soname_spec='${libname}${release}.sl$major'
3974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3975 postinstall_cmds='chmod 555 $lib'
3978 irix5* | irix6* | nonstopux*)
3980 nonstopux*) version_type=nonstopux ;;
3981 *) version_type=irix ;;
3985 soname_spec='${libname}${release}.so$major'
3986 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3988 irix5* | nonstopux*)
3992 case $LD in # libtool.m4 will add one of these switches to LD
3993 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3994 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3995 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3996 *) libsuff= shlibsuff= libmagic=never-match;;
4000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4001 shlibpath_overrides_runpath=no
4002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4006 # No shared lib support for Linux oldld, aout, or coff.
4007 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4011 # This must be Linux ELF.
4016 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4017 soname_spec='${libname}${release}.so$major'
4018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4019 shlibpath_var=LD_LIBRARY_PATH
4020 shlibpath_overrides_runpath=no
4021 # This implies no fast_install, which is unacceptable.
4022 # Some rework will be needed to allow for fast_install
4023 # before this can be enabled.
4024 hardcode_into_libs=yes
4026 # We used to test for /lib/ld.so.1 and disable shared libraries on
4027 # powerpc, because MkLinux only supported shared libraries with the
4028 # GNU dynamic linker. Since this was broken with cross compilers,
4029 # most powerpc-linux boxes support dynamic linking these days and
4030 # people can always --disable-shared, the test was removed, and we
4031 # assume the GNU/Linux dynamic linker is in use.
4032 dynamic_linker='GNU/Linux ld.so'
4039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4040 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4042 dynamic_linker='NetBSD (a.out) ld.so'
4044 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4045 soname_spec='${libname}${release}.so$major'
4046 dynamic_linker='NetBSD ld.elf_so'
4048 shlibpath_var=LD_LIBRARY_PATH
4049 shlibpath_overrides_runpath=yes
4050 hardcode_into_libs=yes
4055 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4056 shlibpath_var=LD_LIBRARY_PATH
4057 shlibpath_overrides_runpath=yes
4064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4066 openbsd2.[89] | openbsd2.[89].*)
4067 shlibpath_overrides_runpath=no
4070 shlibpath_overrides_runpath=yes
4074 shlibpath_overrides_runpath=yes
4076 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4078 shlibpath_var=LD_LIBRARY_PATH
4082 libname_spec='$name'
4084 library_names_spec='$libname.dll $libname.a'
4085 dynamic_linker='OS/2 ld.exe'
4086 shlibpath_var=LIBPATH
4089 osf3* | osf4* | osf5*)
4092 soname_spec='${libname}${release}.so'
4093 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4094 shlibpath_var=LD_LIBRARY_PATH
4095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4101 soname_spec='${libname}${release}.so$major'
4102 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4103 shlibpath_var=LD_LIBRARY_PATH
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
4113 shlibpath_overrides_runpath=yes
4114 hardcode_into_libs=yes
4115 # ldd complains unless libraries are executable
4116 postinstall_cmds='chmod +x $lib'
4121 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4123 shlibpath_var=LD_LIBRARY_PATH
4124 shlibpath_overrides_runpath=yes
4125 if test "$with_gnu_ld" = yes; then
4131 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4133 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4134 soname_spec='${libname}${release}.so$major'
4135 shlibpath_var=LD_LIBRARY_PATH
4136 case $host_vendor in
4138 shlibpath_overrides_runpath=no
4143 shlibpath_overrides_runpath=no
4144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4151 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4152 soname_spec='${libname}${release}.so$major'
4153 shlibpath_var=LD_LIBRARY_PATH
4160 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4161 soname_spec='${libname}${release}.so$major'
4162 shlibpath_var=LD_LIBRARY_PATH
4166 if test -d /usr/nec ;then
4168 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4169 soname_spec='$libname.so.$major'
4170 shlibpath_var=LD_LIBRARY_PATH
4178 echo "$ac_t""$dynamic_linker" 1>&6
4179 test "$dynamic_linker" = no && can_build_shared=no
4181 # Report the final consequences.
4182 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4183 echo "configure:4184: checking if libtool supports shared libraries" >&5
4184 echo "$ac_t""$can_build_shared" 1>&6
4186 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4187 echo "configure:4188: checking whether to build shared libraries" >&5
4188 test "$can_build_shared" = "no" && enable_shared=no
4190 # On AIX, shared libraries and static libraries use the same namespace, and
4191 # are all built from PIC.
4194 test "$enable_shared" = yes && enable_static=no
4195 if test -n "$RANLIB"; then
4196 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4197 postinstall_cmds='$RANLIB $lib'
4202 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4203 test "$enable_shared" = yes && enable_static=no
4207 echo "$ac_t""$enable_shared" 1>&6
4209 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4210 echo "configure:4211: checking whether to build static libraries" >&5
4211 # Make sure either enable_shared or enable_static is yes.
4212 test "$enable_shared" = yes || enable_static=yes
4213 echo "$ac_t""$enable_static" 1>&6
4215 if test "$hardcode_action" = relink; then
4216 # Fast installation is not supported
4217 enable_fast_install=no
4218 elif test "$shlibpath_overrides_runpath" = yes ||
4219 test "$enable_shared" = no; then
4220 # Fast installation is not necessary
4221 enable_fast_install=needless
4224 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4225 if test "$GCC" = yes; then
4226 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4229 if test "x$enable_dlopen" != xyes; then
4230 enable_dlopen=unknown
4231 enable_dlopen_self=unknown
4232 enable_dlopen_self_static=unknown
4239 lt_cv_dlopen="load_add_on"
4241 lt_cv_dlopen_self=yes
4244 cygwin* | mingw* | pw32*)
4245 lt_cv_dlopen="LoadLibrary"
4250 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4251 echo "configure:4252: checking for shl_load" >&5
4252 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* System header to define __stub macros and hopefully few prototypes,
4259 which can conflict with char shl_load(); below. */
4261 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4268 /* The GNU C library defines this for functions which it implements
4269 to always fail with ENOSYS. Some functions are actually named
4270 something starting with __ and the normal name is an alias. */
4271 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281 eval "ac_cv_func_shl_load=yes"
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4286 eval "ac_cv_func_shl_load=no"
4291 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
4293 lt_cv_dlopen="shl_load"
4295 echo "$ac_t""no" 1>&6
4296 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4297 echo "configure:4298: checking for shl_load in -ldld" >&5
4298 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 ac_save_LIBS="$LIBS"
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 /* Override any gcc2 internal prototype to avoid an error. */
4308 /* We use char because int might match the return type of a gcc2
4309 builtin and then its argument prototype would still apply. */
4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4318 eval "ac_cv_lib_$ac_lib_var=yes"
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4323 eval "ac_cv_lib_$ac_lib_var=no"
4326 LIBS="$ac_save_LIBS"
4329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4333 echo "$ac_t""no" 1>&6
4334 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4335 echo "configure:4336: checking for dlopen" >&5
4336 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* System header to define __stub macros and hopefully few prototypes,
4343 which can conflict with char dlopen(); below. */
4345 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4352 /* The GNU C library defines this for functions which it implements
4353 to always fail with ENOSYS. Some functions are actually named
4354 something starting with __ and the normal name is an alias. */
4355 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4365 eval "ac_cv_func_dlopen=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 eval "ac_cv_func_dlopen=no"
4375 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4377 lt_cv_dlopen="dlopen"
4379 echo "$ac_t""no" 1>&6
4380 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4381 echo "configure:4382: checking for dlopen in -ldl" >&5
4382 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4386 ac_save_LIBS="$LIBS"
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4400 if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4402 eval "ac_cv_lib_$ac_lib_var=yes"
4404 echo "configure: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4407 eval "ac_cv_lib_$ac_lib_var=no"
4410 LIBS="$ac_save_LIBS"
4413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4417 echo "$ac_t""no" 1>&6
4418 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4419 echo "configure:4420: checking for dlopen in -lsvld" >&5
4420 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4422 echo $ac_n "(cached) $ac_c" 1>&6
4424 ac_save_LIBS="$LIBS"
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 /* Override any gcc2 internal prototype to avoid an error. */
4430 /* We use char because int might match the return type of a gcc2
4431 builtin and then its argument prototype would still apply. */
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440 eval "ac_cv_lib_$ac_lib_var=yes"
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 eval "ac_cv_lib_$ac_lib_var=no"
4448 LIBS="$ac_save_LIBS"
4451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4452 echo "$ac_t""yes" 1>&6
4453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4455 echo "$ac_t""no" 1>&6
4456 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4457 echo "configure:4458: checking for dld_link in -ldld" >&5
4458 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 ac_save_LIBS="$LIBS"
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* Override any gcc2 internal prototype to avoid an error. */
4468 /* We use char because int might match the return type of a gcc2
4469 builtin and then its argument prototype would still apply. */
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 eval "ac_cv_lib_$ac_lib_var=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 eval "ac_cv_lib_$ac_lib_var=no"
4486 LIBS="$ac_save_LIBS"
4489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4493 echo "$ac_t""no" 1>&6
4514 if test "x$lt_cv_dlopen" != xno; then
4520 case $lt_cv_dlopen in
4522 save_CPPFLAGS="$CPPFLAGS"
4523 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4525 save_LDFLAGS="$LDFLAGS"
4526 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4529 LIBS="$lt_cv_dlopen_libs $LIBS"
4531 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4532 echo "configure:4533: checking whether a program can dlopen itself" >&5
4533 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 if test "$cross_compiling" = yes; then :
4537 lt_cv_dlopen_self=cross
4539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4540 lt_status=$lt_dlunknown
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4552 # define LT_DLGLOBAL RTLD_GLOBAL
4555 # define LT_DLGLOBAL DL_GLOBAL
4557 # define LT_DLGLOBAL 0
4561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4562 find out it does not work in some platform. */
4563 #ifndef LT_DLLAZY_OR_NOW
4565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4568 # define LT_DLLAZY_OR_NOW DL_LAZY
4571 # define LT_DLLAZY_OR_NOW RTLD_NOW
4574 # define LT_DLLAZY_OR_NOW DL_NOW
4576 # define LT_DLLAZY_OR_NOW 0
4584 extern "C" void exit (int);
4587 void fnord() { int i=42;}
4590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4591 int status = $lt_dlunknown;
4595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4596 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4597 /* dlclose (self); */
4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4604 (./conftest; exit; ) 2>/dev/null
4607 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4608 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4609 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4612 # compilation failed
4613 lt_cv_dlopen_self=no
4621 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4623 if test "x$lt_cv_dlopen_self" = xyes; then
4624 LDFLAGS="$LDFLAGS $link_static_flag"
4625 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4626 echo "configure:4627: checking whether a statically linked program can dlopen itself" >&5
4627 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 if test "$cross_compiling" = yes; then :
4631 lt_cv_dlopen_self_static=cross
4633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4634 lt_status=$lt_dlunknown
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4646 # define LT_DLGLOBAL RTLD_GLOBAL
4649 # define LT_DLGLOBAL DL_GLOBAL
4651 # define LT_DLGLOBAL 0
4655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4656 find out it does not work in some platform. */
4657 #ifndef LT_DLLAZY_OR_NOW
4659 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4662 # define LT_DLLAZY_OR_NOW DL_LAZY
4665 # define LT_DLLAZY_OR_NOW RTLD_NOW
4668 # define LT_DLLAZY_OR_NOW DL_NOW
4670 # define LT_DLLAZY_OR_NOW 0
4678 extern "C" void exit (int);
4681 void fnord() { int i=42;}
4684 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4685 int status = $lt_dlunknown;
4689 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4690 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4691 /* dlclose (self); */
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4698 (./conftest; exit; ) 2>/dev/null
4701 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4702 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4703 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4706 # compilation failed
4707 lt_cv_dlopen_self_static=no
4715 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4718 CPPFLAGS="$save_CPPFLAGS"
4719 LDFLAGS="$save_LDFLAGS"
4724 case $lt_cv_dlopen_self in
4725 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4726 *) enable_dlopen_self=unknown ;;
4729 case $lt_cv_dlopen_self_static in
4730 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4731 *) enable_dlopen_self_static=unknown ;;
4736 if test "$enable_shared" = yes && test "$GCC" = yes; then
4737 case $archive_cmds in
4739 # FIXME: we may have to deal with multi-command sequences.
4742 # Test whether the compiler implicitly links with -lc since on some
4743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4744 # to ld, don't add -lc before -lgcc.
4745 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4746 echo "configure:4747: checking whether -lc should be explicitly linked in" >&5
4747 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4751 echo 'static int dummy;' > conftest.$ac_ext
4753 if { (eval echo configure:4754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4756 libobjs=conftest.$ac_objext
4758 wl=$lt_cv_prog_cc_wl
4764 save_allow_undefined_flag=$allow_undefined_flag
4765 allow_undefined_flag=
4766 if { (eval echo configure:4767: \"$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; }
4768 lt_cv_archive_cmds_need_lc=no
4770 lt_cv_archive_cmds_need_lc=yes
4772 allow_undefined_flag=$save_allow_undefined_flag
4774 cat conftest.err 1>&5
4778 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4782 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4784 # The second clause should only fire when bootstrapping the
4785 # libtool distribution, otherwise you forgot to ship ltmain.sh
4786 # with your package, and you will get complaints that there are
4787 # no rules to generate ltmain.sh.
4788 if test -f "$ltmain"; then
4791 # If there is no Makefile yet, we rely on a make rule to execute
4792 # `config.status --recheck' to rerun these tests and create the
4793 # libtool script then.
4794 test -f Makefile && make "$ltmain"
4797 if test -f "$ltmain"; then
4798 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4801 echo creating $ofile
4803 # Now quote all the things that may contain metacharacters while being
4804 # careful not to overquote the AC_SUBSTed values. We take copies of the
4805 # variables and quote the copies for generation of the libtool script.
4806 for var in echo old_CC old_CFLAGS \
4807 AR AR_FLAGS CC LD LN_S NM SHELL \
4808 reload_flag reload_cmds wl \
4809 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4810 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4811 library_names_spec soname_spec \
4812 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4813 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4814 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4815 old_striplib striplib file_magic_cmd export_symbols_cmds \
4816 deplibs_check_method allow_undefined_flag no_undefined_flag \
4817 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4818 global_symbol_to_c_name_address \
4819 hardcode_libdir_flag_spec hardcode_libdir_separator \
4820 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4821 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4824 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4825 old_postinstall_cmds | old_postuninstall_cmds | \
4826 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4827 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4828 postinstall_cmds | postuninstall_cmds | \
4829 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4830 # Double-quote double-evaled strings.
4831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4839 cat <<__EOF__ > "${ofile}T"
4842 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4843 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4844 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4846 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4847 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4849 # This program is free software; you can redistribute it and/or modify
4850 # it under the terms of the GNU General Public License as published by
4851 # the Free Software Foundation; either version 2 of the License, or
4852 # (at your option) any later version.
4854 # This program is distributed in the hope that it will be useful, but
4855 # WITHOUT ANY WARRANTY; without even the implied warranty of
4856 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4857 # General Public License for more details.
4859 # You should have received a copy of the GNU General Public License
4860 # along with this program; if not, write to the Free Software
4861 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4863 # As a special exception to the GNU General Public License, if you
4864 # distribute this file as part of a program that contains a
4865 # configuration script generated by Autoconf, you may include it under
4866 # the same distribution terms that you use for the rest of that program.
4868 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4869 Xsed="sed -e s/^X//"
4871 # The HP-UX ksh and POSIX shell print the target directory to stdout
4873 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4875 # ### BEGIN LIBTOOL CONFIG
4877 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4879 # Shell to use when invoking shell scripts.
4882 # Whether or not to build shared libraries.
4883 build_libtool_libs=$enable_shared
4885 # Whether or not to build static libraries.
4886 build_old_libs=$enable_static
4888 # Whether or not to add -lc for building shared libraries.
4889 build_libtool_need_lc=$need_lc
4891 # Whether or not to optimize for fast installation.
4892 fast_install=$enable_fast_install
4895 host_alias=$host_alias
4898 # An echo program that does not interpret backslashes.
4903 AR_FLAGS=$lt_AR_FLAGS
4905 # The default C compiler.
4908 # Is the compiler the GNU C compiler?
4911 # The linker used to build libraries.
4914 # Whether we need hard or soft links.
4917 # A BSD-compatible nm program.
4920 # A symbol stripping program
4923 # Used to examine libraries when file_magic_cmd begins "file"
4924 MAGIC_CMD=$MAGIC_CMD
4926 # Used on cygwin: DLL creation program.
4929 # Used on cygwin: object dumper.
4932 # Used on cygwin: assembler.
4935 # The name of the directory that contains temporary libtool files.
4938 # How to create reloadable object files.
4939 reload_flag=$lt_reload_flag
4940 reload_cmds=$lt_reload_cmds
4942 # How to pass a linker flag through the compiler.
4945 # Object file suffix (normally "o").
4948 # Old archive suffix (normally "a").
4951 # Executable file suffix (normally "").
4954 # Additional compiler flags for building library objects.
4955 pic_flag=$lt_pic_flag
4958 # Does compiler simultaneously support -c and -o options?
4959 compiler_c_o=$lt_compiler_c_o
4961 # Can we write directly to a .lo ?
4962 compiler_o_lo=$lt_compiler_o_lo
4964 # Must we lock files when doing compilation ?
4965 need_locks=$lt_need_locks
4967 # Do we need the lib prefix for modules?
4968 need_lib_prefix=$need_lib_prefix
4970 # Do we need a version for libraries?
4971 need_version=$need_version
4973 # Whether dlopen is supported.
4974 dlopen_support=$enable_dlopen
4976 # Whether dlopen of programs is supported.
4977 dlopen_self=$enable_dlopen_self
4979 # Whether dlopen of statically linked programs is supported.
4980 dlopen_self_static=$enable_dlopen_self_static
4982 # Compiler flag to prevent dynamic linking.
4983 link_static_flag=$lt_link_static_flag
4985 # Compiler flag to turn off builtin functions.
4986 no_builtin_flag=$lt_no_builtin_flag
4988 # Compiler flag to allow reflexive dlopens.
4989 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4991 # Compiler flag to generate shared objects directly from archives.
4992 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4994 # Compiler flag to generate thread-safe objects.
4995 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4997 # Library versioning type.
4998 version_type=$version_type
5000 # Format of library name prefix.
5001 libname_spec=$lt_libname_spec
5003 # List of archive names. First name is the real one, the rest are links.
5004 # The last name is the one that the linker finds with -lNAME.
5005 library_names_spec=$lt_library_names_spec
5007 # The coded name of the library, if different from the real name.
5008 soname_spec=$lt_soname_spec
5010 # Commands used to build and install an old-style archive.
5012 old_archive_cmds=$lt_old_archive_cmds
5013 old_postinstall_cmds=$lt_old_postinstall_cmds
5014 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5016 # Create an old-style archive from a shared archive.
5017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5019 # Create a temporary old-style archive to link instead of a shared archive.
5020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5022 # Commands used to build and install a shared archive.
5023 archive_cmds=$lt_archive_cmds
5024 archive_expsym_cmds=$lt_archive_expsym_cmds
5025 postinstall_cmds=$lt_postinstall_cmds
5026 postuninstall_cmds=$lt_postuninstall_cmds
5028 # Commands to strip libraries.
5029 old_striplib=$lt_old_striplib
5030 striplib=$lt_striplib
5032 # Method to check whether dependent libraries are shared objects.
5033 deplibs_check_method=$lt_deplibs_check_method
5035 # Command to use when deplibs_check_method == file_magic.
5036 file_magic_cmd=$lt_file_magic_cmd
5038 # Flag that allows shared libraries with undefined symbols to be built.
5039 allow_undefined_flag=$lt_allow_undefined_flag
5041 # Flag that forces no undefined symbols.
5042 no_undefined_flag=$lt_no_undefined_flag
5044 # Commands used to finish a libtool library installation in a directory.
5045 finish_cmds=$lt_finish_cmds
5047 # Same as above, but a single script fragment to be evaled but not shown.
5048 finish_eval=$lt_finish_eval
5050 # Take the output of nm and produce a listing of raw symbols and C names.
5051 global_symbol_pipe=$lt_global_symbol_pipe
5053 # Transform the output of nm in a proper C declaration
5054 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5056 # Transform the output of nm in a C name address pair
5057 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5059 # This is the shared library runtime path variable.
5060 runpath_var=$runpath_var
5062 # This is the shared library path variable.
5063 shlibpath_var=$shlibpath_var
5065 # Is shlibpath searched before the hard-coded library search path?
5066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5068 # How to hardcode a shared library path into an executable.
5069 hardcode_action=$hardcode_action
5071 # Whether we should hardcode library paths into libraries.
5072 hardcode_into_libs=$hardcode_into_libs
5074 # Flag to hardcode \$libdir into a binary during linking.
5075 # This must work even if \$libdir does not exist.
5076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5078 # Whether we need a single -rpath flag with a separated argument.
5079 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5081 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5083 hardcode_direct=$hardcode_direct
5085 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5087 hardcode_minus_L=$hardcode_minus_L
5089 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5090 # the resulting binary.
5091 hardcode_shlibpath_var=$hardcode_shlibpath_var
5093 # Variables whose values should be saved in libtool wrapper scripts and
5094 # restored at relink time.
5095 variables_saved_for_relink="$variables_saved_for_relink"
5097 # Whether libtool must link a program against all its dependency libraries.
5098 link_all_deplibs=$link_all_deplibs
5100 # Compile-time system search path for libraries
5101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5103 # Run-time system search path for libraries
5104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5106 # Fix the shell variable \$srcfile for the compiler.
5107 fix_srcfile_path="$fix_srcfile_path"
5109 # Set to yes if exported symbols are required.
5110 always_export_symbols=$always_export_symbols
5112 # The commands to list exported symbols.
5113 export_symbols_cmds=$lt_export_symbols_cmds
5115 # The commands to extract the exported symbol list from a shared archive.
5116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5118 # Symbols that should not be listed in the preloaded symbols.
5119 exclude_expsyms=$lt_exclude_expsyms
5121 # Symbols that must always be exported.
5122 include_expsyms=$lt_include_expsyms
5124 # ### END LIBTOOL CONFIG
5130 cat <<\EOF >> "${ofile}T"
5132 # AIX sometimes has problems with the GCC collect2 program. For some
5133 # reason, if we set the COLLECT_NAMES environment variable, the problems
5134 # vanish in a puff of smoke.
5135 if test "X${COLLECT_NAMES+set}" != Xset; then
5137 export COLLECT_NAMES
5144 cygwin* | mingw* | pw32* | os2*)
5145 cat <<'EOF' >> "${ofile}T"
5146 # This is a source program that is used to create dlls on Windows
5147 # Don't remove nor modify the starting and closing comments
5148 # /* ltdll.c starts here */
5149 # #define WIN32_LEAN_AND_MEAN
5150 # #include <windows.h>
5151 # #undef WIN32_LEAN_AND_MEAN
5152 # #include <stdio.h>
5154 # #ifndef __CYGWIN__
5155 # # ifdef __CYGWIN32__
5156 # # define __CYGWIN__ __CYGWIN32__
5160 # #ifdef __cplusplus
5163 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5164 # #ifdef __cplusplus
5169 # #include <cygwin/cygwin_dll.h>
5170 # DECLARE_CYGWIN_DLL( DllMain );
5172 # HINSTANCE __hDllInstance_base;
5175 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5177 # __hDllInstance_base = hInst;
5180 # /* ltdll.c ends here */
5181 # This is a source program that is used to create import libraries
5182 # on Windows for dlls which lack them. Don't remove nor modify the
5183 # starting and closing comments
5184 # /* impgen.c starts here */
5185 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5187 # This file is part of GNU libtool.
5189 # This program is free software; you can redistribute it and/or modify
5190 # it under the terms of the GNU General Public License as published by
5191 # the Free Software Foundation; either version 2 of the License, or
5192 # (at your option) any later version.
5194 # This program is distributed in the hope that it will be useful,
5195 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5196 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5197 # GNU General Public License for more details.
5199 # You should have received a copy of the GNU General Public License
5200 # along with this program; if not, write to the Free Software
5201 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5204 # #include <stdio.h> /* for printf() */
5205 # #include <unistd.h> /* for open(), lseek(), read() */
5206 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5207 # #include <string.h> /* for strdup() */
5209 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5211 # #define O_BINARY 0
5214 # static unsigned int
5215 # pe_get16 (fd, offset)
5219 # unsigned char b[2];
5220 # lseek (fd, offset, SEEK_SET);
5222 # return b[0] + (b[1]<<8);
5225 # static unsigned int
5226 # pe_get32 (fd, offset)
5230 # unsigned char b[4];
5231 # lseek (fd, offset, SEEK_SET);
5233 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5236 # static unsigned int
5240 # unsigned char *b = ptr;
5241 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5250 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5251 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5252 # unsigned long name_rvas, nexp;
5253 # unsigned char *expdata, *erva;
5254 # char *filename, *dll_name;
5256 # filename = argv[1];
5258 # dll = open(filename, O_RDONLY|O_BINARY);
5262 # dll_name = filename;
5264 # for (i=0; filename[i]; i++)
5265 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5266 # dll_name = filename + i +1;
5268 # pe_header_offset = pe_get32 (dll, 0x3c);
5269 # opthdr_ofs = pe_header_offset + 4 + 20;
5270 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5272 # if (num_entries < 1) /* no exports */
5275 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5276 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5277 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5278 # secptr = (pe_header_offset + 4 + 20 +
5279 # pe_get16 (dll, pe_header_offset + 4 + 16));
5282 # for (i = 0; i < nsections; i++)
5285 # unsigned long secptr1 = secptr + 40 * i;
5286 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5287 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5288 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5289 # lseek(dll, secptr1, SEEK_SET);
5290 # read(dll, sname, 8);
5291 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5293 # expptr = fptr + (export_rva - vaddr);
5294 # if (export_rva + export_size > vaddr + vsize)
5295 # export_size = vsize - (export_rva - vaddr);
5300 # expdata = (unsigned char*)malloc(export_size);
5301 # lseek (dll, expptr, SEEK_SET);
5302 # read (dll, expdata, export_size);
5303 # erva = expdata - export_rva;
5305 # nexp = pe_as32 (expdata+24);
5306 # name_rvas = pe_as32 (expdata+32);
5308 # printf ("EXPORTS\n");
5309 # for (i = 0; i<nexp; i++)
5311 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5312 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5317 # /* impgen.c ends here */
5323 # We use sed instead of cat because bash on DJGPP gets confused if
5324 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5325 # text mode, it properly converts lines to CR/LF. This bash problem
5326 # is reportedly fixed, but why not run on old versions too?
5327 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5329 mv -f "${ofile}T" "$ofile" || \
5330 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5338 # This can be used to rebuild libtool when needed
5339 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5341 # Always use our own libtool.
5342 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5344 # Prevent multiple expansion
5347 for ac_prog in gzip uncompress compress
5349 # Extract the first word of "$ac_prog", so it can be a program name with args.
5350 set dummy $ac_prog; ac_word=$2
5351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5352 echo "configure:5353: checking for $ac_word" >&5
5353 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5356 if test -n "$UNCOMPRESS"; then
5357 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
5359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5361 for ac_dir in $ac_dummy; do
5362 test -z "$ac_dir" && ac_dir=.
5363 if test -f $ac_dir/$ac_word; then
5364 ac_cv_prog_UNCOMPRESS="$ac_prog"
5371 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
5372 if test -n "$UNCOMPRESS"; then
5373 echo "$ac_t""$UNCOMPRESS" 1>&6
5375 echo "$ac_t""no" 1>&6
5378 test -n "$UNCOMPRESS" && break
5384 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5385 echo "configure:5386: checking for executable suffix" >&5
5386 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5389 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5393 echo 'int main () { return 0; }' > conftest.$ac_ext
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5396 for file in conftest.*; do
5398 *.c | *.o | *.obj) ;;
5399 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5403 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5406 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5411 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5412 echo "$ac_t""${ac_cv_exeext}" 1>&6
5418 # Make sure we can run config.sub.
5419 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5420 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5423 echo $ac_n "checking host system type""... $ac_c" 1>&6
5424 echo "configure:5425: checking host system type" >&5
5427 case "$host_alias" in
5431 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5432 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5434 *) host_alias=$nonopt ;;
5438 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5439 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5440 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5441 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5442 echo "$ac_t""$host" 1>&6
5446 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5447 echo "configure:5448: checking for executable suffix" >&5
5448 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5451 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5455 echo 'int main () { return 0; }' > conftest.$ac_ext
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5458 for file in conftest.*; do
5460 *.c | *.o | *.obj) ;;
5461 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5465 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5468 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5473 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5474 echo "$ac_t""${ac_cv_exeext}" 1>&6
5478 echo $ac_n "checking for target system""... $ac_c" 1>&6
5479 echo "configure:5480: checking for target system" >&5
5483 *cygwin* ) CYGWIN=yes;;
5484 *mingw* ) MINGW=yes;;
5488 if test "x$CXX" == "xi586-mingw32msvc-g++"; then
5489 #fix for the debian distribution of mingw
5490 if test -x "/usr/i586-mingw32msvc/bin/ar";then
5491 AR="/usr/i586-mingw32msvc/bin/ar"
5493 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
5494 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
5500 if test "x${CYGWIN}" = "xyes"; then
5501 cat >> confdefs.h <<EOF
5505 echo "$ac_t""cygwin" 1>&6
5507 if test "x${MINGW}" = "xyes"; then
5508 cat >> confdefs.h <<EOF
5513 cat >> confdefs.h <<EOF
5517 LIBS="$LIBS -lws2_32"
5518 echo "$ac_t""mingw" 1>&6
5522 cat >> confdefs.h <<EOF
5531 if test "x${MINGW}" != "xyes"; then
5532 cat >> confdefs.h <<EOF
5537 # The following tries to make use of includes and libraries in
5538 # /usr/local, too. Notice: A -I/usr/local/include might break
5539 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
5540 # especially on systems which link /usr/local to /usr, so it has yet
5541 # to be seen how useful this is.
5542 if test -d /usr/local/lib; then
5543 LDFLAGS="$LDFLAGS -L/usr/local/lib"
5545 if test -d /usr/local/include; then
5546 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
5547 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
5550 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
5551 # if the user has a special prefix (like /opt), there might also be $prefix/lib
5552 # and $prefix/include, which should be included in our search paths for libraries
5554 LDFLAGS="$LDFLAGS -L${libdir}"
5555 CPPFLAGS="$CPPFLAGS -I${includedir}"
5556 # TODO- test whether gcc still works after this
5559 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5560 echo "configure:5561: checking for sin in -lm" >&5
5561 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 ac_save_LIBS="$LIBS"
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5570 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5579 if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5581 eval "ac_cv_lib_$ac_lib_var=yes"
5583 echo "configure: failed program was:" >&5
5584 cat conftest.$ac_ext >&5
5586 eval "ac_cv_lib_$ac_lib_var=no"
5589 LIBS="$ac_save_LIBS"
5592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5593 echo "$ac_t""yes" 1>&6
5594 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5596 cat >> confdefs.h <<EOF
5597 #define $ac_tr_lib 1
5603 echo "$ac_t""no" 1>&6
5604 echo "Error: Math library not found.";
5609 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5610 echo "configure:5611: checking for deflate in -lz" >&5
5611 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 ac_save_LIBS="$LIBS"
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5620 /* Override any gcc2 internal prototype to avoid an error. */
5621 /* We use char because int might match the return type of a gcc2
5622 builtin and then its argument prototype would still apply. */
5629 if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5631 eval "ac_cv_lib_$ac_lib_var=yes"
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5636 eval "ac_cv_lib_$ac_lib_var=no"
5639 LIBS="$ac_save_LIBS"
5642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5643 echo "$ac_t""yes" 1>&6
5644 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5645 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5646 cat >> confdefs.h <<EOF
5647 #define $ac_tr_lib 1
5653 echo "$ac_t""no" 1>&6
5654 DISABLEPNG2SWF=true;
5655 MISSINGLIBS="${MISSINGLIBS} zlib"
5660 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
5661 echo "configure:5662: checking for jpeg_write_raw_data in -ljpeg" >&5
5662 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
5663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5666 ac_save_LIBS="$LIBS"
5668 cat > conftest.$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5671 /* Override any gcc2 internal prototype to avoid an error. */
5672 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5674 char jpeg_write_raw_data();
5677 jpeg_write_raw_data()
5680 if { (eval echo configure:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5682 eval "ac_cv_lib_$ac_lib_var=yes"
5684 echo "configure: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5687 eval "ac_cv_lib_$ac_lib_var=no"
5690 LIBS="$ac_save_LIBS"
5693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5694 echo "$ac_t""yes" 1>&6
5695 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5697 cat >> confdefs.h <<EOF
5698 #define $ac_tr_lib 1
5704 echo "$ac_t""no" 1>&6
5705 DISABLEPDF2SWF=true;
5706 DISABLEJPEG2SWF=true;
5707 MISSINGLIBS="${MISSINGLIBS} jpeglib"
5711 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
5712 echo "configure:5713: checking for T1_LoadFont in -lt1" >&5
5713 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
5714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5717 ac_save_LIBS="$LIBS"
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5722 /* Override any gcc2 internal prototype to avoid an error. */
5723 /* We use char because int might match the return type of a gcc2
5724 builtin and then its argument prototype would still apply. */
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5733 eval "ac_cv_lib_$ac_lib_var=yes"
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5738 eval "ac_cv_lib_$ac_lib_var=no"
5741 LIBS="$ac_save_LIBS"
5744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5745 echo "$ac_t""yes" 1>&6
5746 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5747 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5748 cat >> confdefs.h <<EOF
5749 #define $ac_tr_lib 1
5755 echo "$ac_t""no" 1>&6
5756 DISABLEPDF2SWF=true;
5757 MISSINGLIBS="${MISSINGLIBS} t1lib"
5763 echo $ac_n "checking for byte order""... $ac_c" 1>&6
5764 echo "configure:5765: checking for byte order" >&5
5765 if test "$cross_compiling" = yes; then
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5772 int main (int argc, char *argv[])
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5793 if test "x${CROSSCOMPILE}" = "x1"; then
5794 echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
5796 # Do some error checking and defaulting for the host and target type.
5798 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
5801 # 1. You are not allowed to specify --host, --target, and nonopt at the
5803 # 2. Host defaults to nonopt.
5804 # 3. If nonopt is not specified, then host defaults to the current host,
5805 # as determined by config.guess.
5806 # 4. Target and build default to nonopt.
5807 # 5. If nonopt is not specified, then target and build default to host.
5809 # The aliases save the names the user supplied, while $host etc.
5810 # will get canonicalized.
5811 case $host---$target---$nonopt in
5812 NONE---*---* | *---NONE---* | *---*---NONE) ;;
5813 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
5817 # Make sure we can run config.sub.
5818 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5819 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5822 echo $ac_n "checking host system type""... $ac_c" 1>&6
5823 echo "configure:5824: checking host system type" >&5
5826 case "$host_alias" in
5830 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5831 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5833 *) host_alias=$nonopt ;;
5837 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5838 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5839 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5840 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5841 echo "$ac_t""$host" 1>&6
5843 echo $ac_n "checking target system type""... $ac_c" 1>&6
5844 echo "configure:5845: checking target system type" >&5
5846 target_alias=$target
5847 case "$target_alias" in
5850 NONE) target_alias=$host_alias ;;
5851 *) target_alias=$nonopt ;;
5855 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
5856 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5857 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5858 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5859 echo "$ac_t""$target" 1>&6
5861 echo $ac_n "checking build system type""... $ac_c" 1>&6
5862 echo "configure:5863: checking build system type" >&5
5865 case "$build_alias" in
5868 NONE) build_alias=$host_alias ;;
5869 *) build_alias=$nonopt ;;
5873 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
5874 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5875 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5876 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5877 echo "$ac_t""$build" 1>&6
5879 test "$host_alias" != "$target_alias" &&
5880 test "$program_prefix$program_suffix$program_transform_name" = \
5882 program_prefix=${target_alias}-
5884 echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
5885 echo "configure:5886: checking for byte order, try 2" >&5
5890 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
5897 if test "x${LITTLEENDIAN}" = "x1"; then
5898 echo "$ac_t""little endian" 1>&6
5902 if test "x${BIGENDIAN}" = "x1"; then
5903 echo "$ac_t""big endian" 1>&6
5906 export WORDS_BIGENDIAN
5907 cat >> confdefs.h <<EOF
5908 #define WORDS_BIGENDIAN 1
5912 if test "x${BYTEORDERCHECKOK}" != "x1"; then
5913 echo "$ac_t""unknown" 1>&6
5914 echo Byte order could not determined.
5920 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
5921 echo "configure:5922: checking whether system() can handle command substitution" >&5
5922 if test "$cross_compiling" = yes; then
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5930 int main (int argc, char*argv[])
5932 return system("test `touch config.tmp2`");
5936 if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5940 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5947 if test "x${OK}" = "xOK";then
5948 test -f config.tmp2 || OK=
5951 if test "x${CROSSCOMPILE}" = "x1";then
5954 if test "x${OK}" = "xOK";then
5956 echo "$ac_t""yes" 1>&6
5958 export SYSTEM_BACKTICKS
5959 cat >> confdefs.h <<EOF
5960 #define SYSTEM_BACKTICKS 1
5964 echo "$ac_t""no" 1>&6
5969 if test "$program_transform_name" = s,x,x,; then
5970 program_transform_name=
5972 # Double any \ or $. echo might interpret backslashes.
5973 cat <<\EOF_SED > conftestsed
5974 s,\\,\\\\,g; s,\$,$$,g
5976 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
5979 test "$program_prefix" != NONE &&
5980 program_transform_name="s,^,${program_prefix},; $program_transform_name"
5981 # Use a double $ so make ignores it.
5982 test "$program_suffix" != NONE &&
5983 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
5985 # sed with no file args requires a program.
5986 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
5991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5994 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5995 echo "configure:5996: checking for $ac_hdr that defines DIR" >&5
5996 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 #include <sys/types.h>
6008 if { (eval echo configure:6009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6010 eval "ac_cv_header_dirent_$ac_safe=yes"
6012 echo "configure: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6015 eval "ac_cv_header_dirent_$ac_safe=no"
6019 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6022 cat >> confdefs.h <<EOF
6023 #define $ac_tr_hdr 1
6025 ac_header_dirent=$ac_hdr; break
6027 echo "$ac_t""no" 1>&6
6030 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6031 if test $ac_header_dirent = dirent.h; then
6032 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6033 echo "configure:6034: checking for opendir in -ldir" >&5
6034 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6038 ac_save_LIBS="$LIBS"
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* Override any gcc2 internal prototype to avoid an error. */
6044 /* We use char because int might match the return type of a gcc2
6045 builtin and then its argument prototype would still apply. */
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6054 eval "ac_cv_lib_$ac_lib_var=yes"
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6059 eval "ac_cv_lib_$ac_lib_var=no"
6062 LIBS="$ac_save_LIBS"
6065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6069 echo "$ac_t""no" 1>&6
6073 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6074 echo "configure:6075: checking for opendir in -lx" >&5
6075 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6079 ac_save_LIBS="$LIBS"
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6084 /* Override any gcc2 internal prototype to avoid an error. */
6085 /* We use char because int might match the return type of a gcc2
6086 builtin and then its argument prototype would still apply. */
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 eval "ac_cv_lib_$ac_lib_var=yes"
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6100 eval "ac_cv_lib_$ac_lib_var=no"
6103 LIBS="$ac_save_LIBS"
6106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6107 echo "$ac_t""yes" 1>&6
6110 echo "$ac_t""no" 1>&6
6115 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6116 echo "configure:6117: checking for ANSI C header files" >&5
6117 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6118 echo $ac_n "(cached) $ac_c" 1>&6
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6129 { (eval echo configure:6130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6131 if test -z "$ac_err"; then
6133 ac_cv_header_stdc=yes
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6139 ac_cv_header_stdc=no
6143 if test $ac_cv_header_stdc = yes; then
6144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6151 egrep "memchr" >/dev/null 2>&1; then
6155 ac_cv_header_stdc=no
6161 if test $ac_cv_header_stdc = yes; then
6162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 egrep "free" >/dev/null 2>&1; then
6173 ac_cv_header_stdc=no
6179 if test $ac_cv_header_stdc = yes; then
6180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6181 if test "$cross_compiling" = yes; then
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6188 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6189 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6191 int main () { int i; for (i = 0; i < 256; i++)
6192 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6196 if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6203 ac_cv_header_stdc=no
6211 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6212 if test $ac_cv_header_stdc = yes; then
6213 cat >> confdefs.h <<\EOF
6214 #define STDC_HEADERS 1
6219 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
6221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_hdr" >&5
6224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6233 { (eval echo configure:6234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6235 if test -z "$ac_err"; then
6237 eval "ac_cv_header_$ac_safe=yes"
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_header_$ac_safe=no"
6247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6248 echo "$ac_t""yes" 1>&6
6249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6250 cat >> confdefs.h <<EOF
6251 #define $ac_tr_hdr 1
6255 echo "$ac_t""no" 1>&6
6260 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
6261 DISABLEPDF2SWF=true;
6262 DISABLEJPEG2SWF=true;
6263 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6265 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
6266 DISABLEPDF2SWF=true;
6267 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6269 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
6270 DISABLEPNG2SWF=true;
6271 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6275 cat >> confdefs.h <<EOF
6276 #define PACKAGE "$PACKAGE"
6279 cat >> confdefs.h <<EOF
6280 #define VERSION "$VERSION"
6289 echo $ac_n "checking for working const""... $ac_c" 1>&6
6290 echo "configure:6291: checking for working const" >&5
6291 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6292 echo $ac_n "(cached) $ac_c" 1>&6
6294 cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6300 /* Ultrix mips cc rejects this. */
6301 typedef int charset[2]; const charset x;
6302 /* SunOS 4.1.1 cc rejects this. */
6303 char const *const *ccp;
6305 /* NEC SVR4.0.2 mips cc rejects this. */
6306 struct point {int x, y;};
6307 static struct point const zero = {0,0};
6308 /* AIX XL C 1.02.0.0 rejects this.
6309 It does not let you subtract one const X* pointer from another in an arm
6310 of an if-expression whose if-part is not a constant expression */
6311 const char *g = "string";
6312 ccp = &g + (g ? g-g : 0);
6313 /* HPUX 7.0 cc rejects these. */
6316 ccp = (char const *const *) p;
6317 { /* SCO 3.2v4 cc rejects this. */
6319 char const *s = 0 ? (char *) 0 : (char const *) 0;
6323 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6325 const int *foo = &x[0];
6328 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6329 typedef const int *iptr;
6333 { /* AIX XL C 1.02.0.0 rejects this saying
6334 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6335 struct s { int j; const int *ap[3]; };
6336 struct s *b; b->j = 5;
6338 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6344 if { (eval echo configure:6345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6348 echo "configure: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6356 echo "$ac_t""$ac_cv_c_const" 1>&6
6357 if test $ac_cv_c_const = no; then
6358 cat >> confdefs.h <<\EOF
6364 echo $ac_n "checking for inline""... $ac_c" 1>&6
6365 echo "configure:6366: checking for inline" >&5
6366 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6370 for ac_kw in inline __inline__ __inline; do
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6379 if { (eval echo configure:6380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6381 ac_cv_c_inline=$ac_kw; break
6383 echo "configure: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6391 echo "$ac_t""$ac_cv_c_inline" 1>&6
6392 case "$ac_cv_c_inline" in
6394 no) cat >> confdefs.h <<\EOF
6398 *) cat >> confdefs.h <<EOF
6399 #define inline $ac_cv_c_inline
6404 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6405 echo "configure:6406: checking for off_t" >&5
6406 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6407 echo $ac_n "(cached) $ac_c" 1>&6
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 #include <sys/types.h>
6418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6419 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6421 ac_cv_type_off_t=yes
6429 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6430 if test $ac_cv_type_off_t = no; then
6431 cat >> confdefs.h <<\EOF
6437 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6438 echo "configure:6439: checking for size_t" >&5
6439 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 #include <sys/types.h>
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6454 ac_cv_type_size_t=yes
6457 ac_cv_type_size_t=no
6462 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6463 if test $ac_cv_type_size_t = no; then
6464 cat >> confdefs.h <<\EOF
6465 #define size_t unsigned
6470 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6471 echo "configure:6472: checking whether struct tm is in sys/time.h or time.h" >&5
6472 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 #include <sys/types.h>
6481 struct tm *tp; tp->tm_sec;
6484 if { (eval echo configure:6485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6486 ac_cv_struct_tm=time.h
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6491 ac_cv_struct_tm=sys/time.h
6496 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6497 if test $ac_cv_struct_tm = sys/time.h; then
6498 cat >> confdefs.h <<\EOF
6499 #define TM_IN_SYS_TIME 1
6504 echo $ac_n "checking for boolean""... $ac_c" 1>&6
6505 echo "configure:6506: checking for boolean" >&5
6506 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 #include <sys/types.h>
6518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6519 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6521 ac_cv_type_boolean=yes
6524 ac_cv_type_boolean=no
6529 echo "$ac_t""$ac_cv_type_boolean" 1>&6
6530 if test $ac_cv_type_boolean = no; then
6531 cat >> confdefs.h <<\EOF
6537 echo $ac_n "checking for bool""... $ac_c" 1>&6
6538 echo "configure:6539: checking for bool" >&5
6539 if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6545 #include <sys/types.h>
6551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552 egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6562 echo "$ac_t""$ac_cv_type_bool" 1>&6
6563 if test $ac_cv_type_bool = no; then
6564 cat >> confdefs.h <<\EOF
6571 for ac_func in popen mkstemp stat lrand48 rand srand48 srand
6573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6574 echo "configure:6575: checking for $ac_func" >&5
6575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 /* System header to define __stub macros and hopefully few prototypes,
6582 which can conflict with char $ac_func(); below. */
6584 /* Override any gcc2 internal prototype to avoid an error. */
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6591 /* The GNU C library defines this for functions which it implements
6592 to always fail with ENOSYS. Some functions are actually named
6593 something starting with __ and the normal name is an alias. */
6594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6604 eval "ac_cv_func_$ac_func=yes"
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 eval "ac_cv_func_$ac_func=no"
6614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6615 echo "$ac_t""yes" 1>&6
6616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6617 cat >> confdefs.h <<EOF
6618 #define $ac_tr_func 1
6622 echo "$ac_t""no" 1>&6
6627 echo $ac_n "checking whether we can compile the avifile test program""... $ac_c" 1>&6
6628 echo "configure:6629: checking whether we can compile the avifile test program" >&5
6630 cat > conftest.cpp << EOF
6631 #include <avifile/version.h>
6632 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6633 #include <avifile.h>
6634 #include <aviplay.h>
6636 #include <creators.h>
6637 #include <StreamInfo.h>
6640 #include <avifile.h>
6641 #include <aviplay.h>
6642 #include <aviutil.h>
6644 #define Height height
6649 int main (int argc, char*argv)
6651 IAviReadFile* player;
6652 IAviReadStream* astream;
6653 IAviReadStream* vstream;
6654 player = CreateIAviReadFile(0);
6655 astream = player->GetStream(0, AviStream::Audio);
6656 vstream = player->GetStream(0, AviStream::Video);
6657 vstream -> StartStreaming();
6658 astream -> StartStreaming();
6661 player->GetFileHeader(&head);
6662 head.dwMicroSecPerFrame;
6667 head.dwMicroSecPerFrame;
6668 astream->GetEndPos(),
6669 astream->GetEndTime());
6670 player->StreamCount();
6672 StreamInfo*audioinfo;
6673 StreamInfo*videoinfo;
6674 audioinfo = astream->GetStreamInfo();
6675 videoinfo = vstream->GetStreamInfo();
6676 videoinfo->GetVideoWidth();
6677 videoinfo->GetVideoHeight();
6678 audioinfo->GetAudioSamplesPerSec();
6679 videoinfo->GetFps();
6681 CImage*img = vstream->GetFrame();
6688 astream->GetAudioFormatInfo(&wave,0);
6690 astream->ReadFrames(0,0,0,a,b);
6694 ac_link='$CXX $CPPFLAGS $CXXFLAGS `avifile-config --cflags` `avifile-config --libs` conftest.cpp -o conftest${ac_exeext}'
6695 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 echo "$ac_t""yes" 1>&6
6699 cat >> confdefs.h <<EOF
6700 #define AVIFILE true
6704 echo "configure: failed program was:" >&5
6705 cat conftest.$ac_ext >&5
6706 echo "$ac_t""no" 1>&6
6711 avi2swf="avi2swf/Makefile"
6712 if test "x${AVIFILE}" != "xtrue"; then
6713 echo "* Couldn't compile the avifile test program."
6714 echo "* Disabling avi2swf tool..."
6715 echo all install uninstall clean: > avi2swf/Makefile
6719 if test "x${UNCOMPRESS}" = "xgzip"; then
6720 cat >> confdefs.h <<EOF
6727 JPEG2SWF='jpeg2swf' #$(EXEEXT)
6729 PNG2SWF='png2swf' #$(EXEEXT)
6731 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6732 echo "***************************************************"
6733 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
6734 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6735 echo "Disabling pdf2swf tool..."
6736 rm -f pdf2swf/Makefile
6737 echo all install uninstall clean: > pdf2swf/Makefile
6739 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6740 echo "Disabling jpeg2swf tool..."
6744 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
6745 echo "Disabling png2swf tool..."
6749 if test "x${ZLIBMISSING}" = "xtrue"; then
6751 echo "Warning! Without zlib, you will not be able to read"
6752 echo "or write compressed Flash MX files!"
6754 echo "***************************************************"
6755 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
6757 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
6763 cat > confcache <<\EOF
6764 # This file is a shell script that caches the results of configure
6765 # tests run on this system so they can be shared between configure
6766 # scripts and configure runs. It is not useful on other systems.
6767 # If it contains results you don't want to keep, you may remove or edit it.
6769 # By default, configure uses ./config.cache as the cache file,
6770 # creating it if it does not exist already. You can give configure
6771 # the --cache-file=FILE option to use a different cache file; that is
6772 # what configure does when it calls configure scripts in
6773 # subdirectories, so they share the cache.
6774 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6775 # config.status only pays attention to the cache file if you give it the
6776 # --recheck option to rerun configure.
6779 # The following way of writing the cache mishandles newlines in values,
6780 # but we know of no workaround that is simple, portable, and efficient.
6781 # So, don't put newlines in cache variables' values.
6782 # Ultrix sh set writes to stderr and can't be redirected directly,
6783 # and sets the high bit in the cache file unless we assign to the vars.
6785 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6787 # `set' does not quote correctly, so add quotes (double-quote substitution
6788 # turns \\\\ into \\, and sed turns \\ into \).
6790 -e "s/'/'\\\\''/g" \
6791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6794 # `set' quotes correctly as required by POSIX, so do not add quotes.
6795 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6798 if cmp -s $cache_file confcache; then
6801 if test -w $cache_file; then
6802 echo "updating cache $cache_file"
6803 cat confcache > $cache_file
6805 echo "not updating unwritable cache $cache_file"
6810 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6813 # Let make expand exec_prefix.
6814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6816 # Any assignment to VPATH causes Sun make to only execute
6817 # the first set of double-colon rules, so remove it if not needed.
6818 # If there is a colon in the path, we need to keep it.
6819 if test "x$srcdir" = x.; then
6820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6823 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6825 DEFS=-DHAVE_CONFIG_H
6827 # Without the "./", some shells look in PATH for config.status.
6828 : ${CONFIG_STATUS=./config.status}
6830 echo creating $CONFIG_STATUS
6831 rm -f $CONFIG_STATUS
6832 cat > $CONFIG_STATUS <<EOF
6834 # Generated automatically by configure.
6835 # Run this file to recreate the current configuration.
6836 # This directory was configured as follows,
6837 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6839 # $0 $ac_configure_args
6841 # Compiler output produced by configure, useful for debugging
6842 # configure, is in ./config.log if it exists.
6844 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6847 case "\$ac_option" in
6848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6852 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6854 -help | --help | --hel | --he | --h)
6855 echo "\$ac_cs_usage"; exit 0 ;;
6856 *) echo "\$ac_cs_usage"; exit 1 ;;
6860 ac_given_srcdir=$srcdir
6861 ac_given_INSTALL="$INSTALL"
6863 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6865 cat >> $CONFIG_STATUS <<EOF
6867 # Protect against being on the right side of a sed subst in config.status.
6868 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6869 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6873 s%@CFLAGS@%$CFLAGS%g
6874 s%@CPPFLAGS@%$CPPFLAGS%g
6875 s%@CXXFLAGS@%$CXXFLAGS%g
6876 s%@FFLAGS@%$FFLAGS%g
6878 s%@LDFLAGS@%$LDFLAGS%g
6880 s%@exec_prefix@%$exec_prefix%g
6881 s%@prefix@%$prefix%g
6882 s%@program_transform_name@%$program_transform_name%g
6883 s%@bindir@%$bindir%g
6884 s%@sbindir@%$sbindir%g
6885 s%@libexecdir@%$libexecdir%g
6886 s%@datadir@%$datadir%g
6887 s%@sysconfdir@%$sysconfdir%g
6888 s%@sharedstatedir@%$sharedstatedir%g
6889 s%@localstatedir@%$localstatedir%g
6890 s%@libdir@%$libdir%g
6891 s%@includedir@%$includedir%g
6892 s%@oldincludedir@%$oldincludedir%g
6893 s%@infodir@%$infodir%g
6894 s%@mandir@%$mandir%g
6897 s%@host_alias@%$host_alias%g
6898 s%@host_cpu@%$host_cpu%g
6899 s%@host_vendor@%$host_vendor%g
6900 s%@host_os@%$host_os%g
6904 s%@RANLIB@%$RANLIB%g
6905 s%@SET_MAKE@%$SET_MAKE%g
6906 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6907 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6908 s%@INSTALL_DATA@%$INSTALL_DATA%g
6911 s%@build_alias@%$build_alias%g
6912 s%@build_cpu@%$build_cpu%g
6913 s%@build_vendor@%$build_vendor%g
6914 s%@build_os@%$build_os%g
6915 s%@OBJEXT@%$OBJEXT%g
6916 s%@EXEEXT@%$EXEEXT%g
6918 s%@LIBTOOL@%$LIBTOOL%g
6919 s%@UNCOMPRESS@%$UNCOMPRESS%g
6921 s%@target@%$target%g
6922 s%@target_alias@%$target_alias%g
6923 s%@target_cpu@%$target_cpu%g
6924 s%@target_vendor@%$target_vendor%g
6925 s%@target_os@%$target_os%g
6926 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
6927 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
6928 s%@PACKAGE@%$PACKAGE%g
6929 s%@VERSION@%$VERSION%g
6930 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
6931 s%@USE_GZIP@%$USE_GZIP%g
6932 s%@JPEG2SWF@%$JPEG2SWF%g
6933 s%@PNG2SWF@%$PNG2SWF%g
6938 cat >> $CONFIG_STATUS <<\EOF
6940 # Split the substitutions into bite-sized pieces for seds with
6941 # small command number limits, like on Digital OSF/1 and HP-UX.
6942 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6943 ac_file=1 # Number of current file.
6944 ac_beg=1 # First line for current file.
6945 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6948 while $ac_more_lines; do
6949 if test $ac_beg -gt 1; then
6950 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6952 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6954 if test ! -s conftest.s$ac_file; then
6956 rm -f conftest.s$ac_file
6958 if test -z "$ac_sed_cmds"; then
6959 ac_sed_cmds="sed -f conftest.s$ac_file"
6961 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6963 ac_file=`expr $ac_file + 1`
6965 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6968 if test -z "$ac_sed_cmds"; then
6973 cat >> $CONFIG_STATUS <<EOF
6975 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
6977 cat >> $CONFIG_STATUS <<\EOF
6978 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6981 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6982 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6983 *) ac_file_in="${ac_file}.in" ;;
6986 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6988 # Remove last slash and all that follows it. Not all systems have dirname.
6989 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6990 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6991 # The file is in a subdirectory.
6992 test ! -d "$ac_dir" && mkdir "$ac_dir"
6993 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6994 # A "../" for each directory in $ac_dir_suffix.
6995 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6997 ac_dir_suffix= ac_dots=
7000 case "$ac_given_srcdir" in
7002 if test -z "$ac_dots"; then top_srcdir=.
7003 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7004 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7006 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7007 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7010 case "$ac_given_INSTALL" in
7011 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7012 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7015 echo creating "$ac_file"
7017 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7019 *Makefile*) ac_comsub="1i\\
7020 # $configure_input" ;;
7024 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7026 s%@configure_input@%$configure_input%g
7027 s%@srcdir@%$srcdir%g
7028 s%@top_srcdir@%$top_srcdir%g
7029 s%@INSTALL@%$INSTALL%g
7030 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7034 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7035 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7037 # ac_d sets the value in "#define NAME VALUE" lines.
7038 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7039 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7042 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7043 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7044 ac_uB='\([ ]\)%\1#\2define\3'
7047 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7048 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7049 ac_eB='$%\1#\2define\3'
7053 if test "${CONFIG_HEADERS+set}" != set; then
7055 cat >> $CONFIG_STATUS <<EOF
7056 CONFIG_HEADERS="config.h"
7058 cat >> $CONFIG_STATUS <<\EOF
7060 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7061 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7063 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7064 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7065 *) ac_file_in="${ac_file}.in" ;;
7068 echo creating $ac_file
7070 rm -f conftest.frag conftest.in conftest.out
7071 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7072 cat $ac_file_inputs > conftest.in
7076 # Transform confdefs.h into a sed script conftest.vals that substitutes
7077 # the proper values into config.h.in to produce config.h. And first:
7078 # Protect against being on the right side of a sed subst in config.status.
7079 # Protect against being in an unquoted here document in config.status.
7081 cat > conftest.hdr <<\EOF
7084 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7088 sed -n -f conftest.hdr confdefs.h > conftest.vals
7091 # This sed command replaces #undef with comments. This is necessary, for
7092 # example, in the case of _POSIX_SOURCE, which is predefined and required
7093 # on some systems where configure will not decide to define it.
7094 cat >> conftest.vals <<\EOF
7095 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7098 # Break up conftest.vals because some shells have a limit on
7099 # the size of here documents, and old seds have small limits too.
7104 ac_lines=`grep -c . conftest.vals`
7105 # grep -c gives empty output for an empty file on some AIX systems.
7106 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7107 # Write a limited-size here document to conftest.frag.
7108 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7109 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7111 sed -f conftest.frag conftest.in > conftest.out
7113 mv conftest.out conftest.in
7115 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7117 mv conftest.tail conftest.vals
7121 cat >> $CONFIG_STATUS <<\EOF
7122 rm -f conftest.frag conftest.h
7123 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7124 cat conftest.in >> conftest.h
7126 if cmp -s $ac_file conftest.h 2>/dev/null; then
7127 echo "$ac_file is unchanged"
7130 # Remove last slash and all that follows it. Not all systems have dirname.
7131 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7132 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7133 # The file is in a subdirectory.
7134 test ! -d "$ac_dir" && mkdir "$ac_dir"
7137 mv conftest.h $ac_file
7142 cat >> $CONFIG_STATUS <<EOF
7145 cat >> $CONFIG_STATUS <<\EOF
7149 chmod +x $CONFIG_STATUS
7150 rm -fr confdefs* $ac_clean_files
7151 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7154 if test "x${srcdir}" != "x."; then
7155 echo "Warning: --srcdir is not supported"