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"
724 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CFLAGS"
725 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CXXFLAGS"
728 export PACKAGE VERSION CFLAGS CXXFLAGS
731 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
732 if test -f $ac_dir/install-sh; then
734 ac_install_sh="$ac_aux_dir/install-sh -c"
736 elif test -f $ac_dir/install.sh; then
738 ac_install_sh="$ac_aux_dir/install.sh -c"
742 if test -z "$ac_aux_dir"; then
743 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
745 ac_config_guess=$ac_aux_dir/config.guess
746 ac_config_sub=$ac_aux_dir/config.sub
747 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
750 # Make sure we can run config.sub.
751 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
752 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
755 echo $ac_n "checking host system type""... $ac_c" 1>&6
756 echo "configure:757: checking host system type" >&5
759 case "$host_alias" in
763 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
764 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
766 *) host_alias=$nonopt ;;
770 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
771 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
772 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
773 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
774 echo "$ac_t""$host" 1>&6
780 CFLAGS="$CFLAGS -fno-rtti"
781 CXXFLAGS="$CXXFLAGS -fno-rtti"
784 # Extract the first word of "gcc", so it can be a program name with args.
785 set dummy gcc; ac_word=$2
786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787 echo "configure:788: checking for $ac_word" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 if test -n "$CC"; then
792 ac_cv_prog_CC="$CC" # Let the user override the test.
794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
796 for ac_dir in $ac_dummy; do
797 test -z "$ac_dir" && ac_dir=.
798 if test -f $ac_dir/$ac_word; then
807 if test -n "$CC"; then
808 echo "$ac_t""$CC" 1>&6
810 echo "$ac_t""no" 1>&6
813 if test -z "$CC"; then
814 # Extract the first word of "cc", so it can be a program name with args.
815 set dummy cc; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$CC"; then
822 ac_cv_prog_CC="$CC" # Let the user override the test.
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
827 for ac_dir in $ac_dummy; do
828 test -z "$ac_dir" && ac_dir=.
829 if test -f $ac_dir/$ac_word; then
830 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
839 if test $ac_prog_rejected = yes; then
840 # We found a bogon in the path, so make sure we never use it.
841 set dummy $ac_cv_prog_CC
843 if test $# -gt 0; then
844 # We chose a different compiler from the bogus one.
845 # However, it has the same basename, so the bogon will be chosen
846 # first if we set CC to just the basename; use the full file name.
848 set dummy "$ac_dir/$ac_word" "$@"
856 if test -n "$CC"; then
857 echo "$ac_t""$CC" 1>&6
859 echo "$ac_t""no" 1>&6
862 if test -z "$CC"; then
865 # Extract the first word of "cl", so it can be a program name with args.
866 set dummy cl; ac_word=$2
867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
868 echo "configure:869: checking for $ac_word" >&5
869 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 if test -n "$CC"; then
873 ac_cv_prog_CC="$CC" # Let the user override the test.
875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
877 for ac_dir in $ac_dummy; do
878 test -z "$ac_dir" && ac_dir=.
879 if test -f $ac_dir/$ac_word; then
888 if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
891 echo "$ac_t""no" 1>&6
896 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
899 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
900 echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
904 ac_cpp='$CPP $CPPFLAGS'
905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
907 cross_compiling=$ac_cv_prog_cc_cross
909 cat > conftest.$ac_ext << EOF
911 #line 912 "configure"
912 #include "confdefs.h"
916 if { (eval echo configure:917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
917 ac_cv_prog_cc_works=yes
918 # If we can't run a trivial program, we are probably using a cross compiler.
919 if (./conftest; exit) 2>/dev/null; then
920 ac_cv_prog_cc_cross=no
922 ac_cv_prog_cc_cross=yes
925 echo "configure: failed program was:" >&5
926 cat conftest.$ac_ext >&5
927 ac_cv_prog_cc_works=no
931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
932 ac_cpp='$CPP $CPPFLAGS'
933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
935 cross_compiling=$ac_cv_prog_cc_cross
937 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
938 if test $ac_cv_prog_cc_works = no; then
939 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
942 echo "configure:943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
943 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
944 cross_compiling=$ac_cv_prog_cc_cross
946 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
947 echo "configure:948: checking whether we are using GNU C" >&5
948 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
949 echo $ac_n "(cached) $ac_c" 1>&6
951 cat > conftest.c <<EOF
956 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
963 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
965 if test $ac_cv_prog_gcc = yes; then
971 ac_test_CFLAGS="${CFLAGS+set}"
972 ac_save_CFLAGS="$CFLAGS"
974 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
975 echo "configure:976: checking whether ${CC-cc} accepts -g" >&5
976 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 echo 'void f(){}' > conftest.c
980 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
989 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
990 if test "$ac_test_CFLAGS" = set; then
991 CFLAGS="$ac_save_CFLAGS"
992 elif test $ac_cv_prog_cc_g = yes; then
993 if test "$GCC" = yes; then
999 if test "$GCC" = yes; then
1006 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1008 # Extract the first word of "$ac_prog", so it can be a program name with args.
1009 set dummy $ac_prog; ac_word=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 if test -n "$CXX"; then
1016 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1020 for ac_dir in $ac_dummy; do
1021 test -z "$ac_dir" && ac_dir=.
1022 if test -f $ac_dir/$ac_word; then
1023 ac_cv_prog_CXX="$ac_prog"
1030 CXX="$ac_cv_prog_CXX"
1031 if test -n "$CXX"; then
1032 echo "$ac_t""$CXX" 1>&6
1034 echo "$ac_t""no" 1>&6
1037 test -n "$CXX" && break
1039 test -n "$CXX" || CXX="gcc"
1042 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1043 echo "configure:1044: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1047 ac_cpp='$CXXCPP $CPPFLAGS'
1048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1050 cross_compiling=$ac_cv_prog_cxx_cross
1052 cat > conftest.$ac_ext << EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1057 int main(){return(0);}
1059 if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1060 ac_cv_prog_cxx_works=yes
1061 # If we can't run a trivial program, we are probably using a cross compiler.
1062 if (./conftest; exit) 2>/dev/null; then
1063 ac_cv_prog_cxx_cross=no
1065 ac_cv_prog_cxx_cross=yes
1068 echo "configure: failed program was:" >&5
1069 cat conftest.$ac_ext >&5
1070 ac_cv_prog_cxx_works=no
1074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1075 ac_cpp='$CPP $CPPFLAGS'
1076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1078 cross_compiling=$ac_cv_prog_cc_cross
1080 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1081 if test $ac_cv_prog_cxx_works = no; then
1082 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1084 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1086 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1087 cross_compiling=$ac_cv_prog_cxx_cross
1089 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether we are using GNU C++" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 cat > conftest.C <<EOF
1099 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1106 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1108 if test $ac_cv_prog_gxx = yes; then
1114 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1115 ac_save_CXXFLAGS="$CXXFLAGS"
1117 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1118 echo "configure:1119: checking whether ${CXX-g++} accepts -g" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 echo 'void f(){}' > conftest.cc
1123 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1124 ac_cv_prog_cxx_g=yes
1132 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1133 if test "$ac_test_CXXFLAGS" = set; then
1134 CXXFLAGS="$ac_save_CXXFLAGS"
1135 elif test $ac_cv_prog_cxx_g = yes; then
1136 if test "$GXX" = yes; then
1142 if test "$GXX" = yes; then
1150 if test "x$CHECKMEM" '!=' "x";then
1154 #unset ac_cv_prog_CC
1155 #unset ac_cv_prog_CXX
1159 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1160 echo "configure:1161: checking how to run the C preprocessor" >&5
1161 # On Suns, sometimes $CPP names a directory.
1162 if test -n "$CPP" && test -d "$CPP"; then
1165 if test -z "$CPP"; then
1166 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 # This must be in double quotes, not single quotes, because CPP may get
1170 # substituted into the Makefile and "${CC-cc}" will confuse make.
1172 # On the NeXT, cc -E runs the code through the compiler's parser,
1173 # not just through cpp.
1174 cat > conftest.$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1181 { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1183 if test -z "$ac_err"; then
1187 echo "configure: failed program was:" >&5
1188 cat conftest.$ac_ext >&5
1190 CPP="${CC-cc} -E -traditional-cpp"
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1198 { (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1200 if test -z "$ac_err"; then
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1207 CPP="${CC-cc} -nologo -E"
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1215 { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1217 if test -z "$ac_err"; then
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1231 ac_cv_prog_CPP="$CPP"
1233 CPP="$ac_cv_prog_CPP"
1235 ac_cv_prog_CPP="$CPP"
1237 echo "$ac_t""$CPP" 1>&6
1240 # Extract the first word of "ranlib", so it can be a program name with args.
1241 set dummy ranlib; ac_word=$2
1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_word" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 if test -n "$RANLIB"; then
1248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1252 for ac_dir in $ac_dummy; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f $ac_dir/$ac_word; then
1255 ac_cv_prog_RANLIB="ranlib"
1260 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1263 RANLIB="$ac_cv_prog_RANLIB"
1264 if test -n "$RANLIB"; then
1265 echo "$ac_t""$RANLIB" 1>&6
1267 echo "$ac_t""no" 1>&6
1270 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1271 echo "configure:1272: checking whether ${MAKE-make} sets \${MAKE}" >&5
1272 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1273 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 cat > conftestmake <<\EOF
1278 @echo 'ac_maketemp="${MAKE}"'
1280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1281 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1282 if test -n "$ac_maketemp"; then
1283 eval ac_cv_prog_make_${ac_make}_set=yes
1285 eval ac_cv_prog_make_${ac_make}_set=no
1289 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1290 echo "$ac_t""yes" 1>&6
1293 echo "$ac_t""no" 1>&6
1294 SET_MAKE="MAKE=${MAKE-make}"
1297 # Find a good install program. We prefer a C program (faster),
1298 # so one script is as good as another. But avoid the broken or
1299 # incompatible versions:
1300 # SysV /etc/install, /usr/sbin/install
1301 # SunOS /usr/etc/install
1302 # IRIX /sbin/install
1304 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1305 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1306 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1307 # ./install, which can be erroneously created by make from ./install.sh.
1308 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1309 echo "configure:1310: checking for a BSD compatible install" >&5
1310 if test -z "$INSTALL"; then
1311 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1315 for ac_dir in $PATH; do
1316 # Account for people who put trailing slashes in PATH elements.
1318 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1320 # OSF1 and SCO ODT 3.0 have their own names for install.
1321 # Don't use installbsd from OSF since it installs stuff as root
1323 for ac_prog in ginstall scoinst install; do
1324 if test -f $ac_dir/$ac_prog; then
1325 if test $ac_prog = install &&
1326 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1327 # AIX install. It has an incompatible calling convention.
1330 ac_cv_path_install="$ac_dir/$ac_prog -c"
1341 if test "${ac_cv_path_install+set}" = set; then
1342 INSTALL="$ac_cv_path_install"
1344 # As a last resort, use the slow shell script. We don't cache a
1345 # path for INSTALL within a source directory, because that will
1346 # break other packages using the cache if that directory is
1347 # removed, or if the path is relative.
1348 INSTALL="$ac_install_sh"
1351 echo "$ac_t""$INSTALL" 1>&6
1353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1354 # It thinks the first close brace ends the variable substitution.
1355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1361 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1362 echo "configure:1363: checking whether ln -s works" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1367 if ln -s X conftestdata 2>/dev/null
1370 ac_cv_prog_LN_S="ln -s"
1375 LN_S="$ac_cv_prog_LN_S"
1376 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1377 echo "$ac_t""yes" 1>&6
1379 echo "$ac_t""no" 1>&6
1382 # Find the correct PATH separator. Usually this is `:', but
1383 # DJGPP uses `;' like DOS.
1384 if test "X${PATH_SEPARATOR+set}" != Xset; then
1385 UNAME=${UNAME-`uname 2>/dev/null`}
1387 *-DOS) lt_cv_sys_path_separator=';' ;;
1388 *) lt_cv_sys_path_separator=':' ;;
1390 PATH_SEPARATOR=$lt_cv_sys_path_separator
1393 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1394 echo "configure:1395: checking for Cygwin environment" >&5
1395 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1405 #define __CYGWIN__ __CYGWIN32__
1410 if { (eval echo configure:1411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1423 echo "$ac_t""$ac_cv_cygwin" 1>&6
1425 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1426 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1427 echo "configure:1428: checking for mingw32 environment" >&5
1428 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 cat > conftest.$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1439 if { (eval echo configure:1440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1452 echo "$ac_t""$ac_cv_mingw32" 1>&6
1454 test "$ac_cv_mingw32" = yes && MINGW32=yes
1455 # Check whether --enable-shared or --disable-shared was given.
1456 if test "${enable_shared+set}" = set; then
1457 enableval="$enable_shared"
1458 p=${PACKAGE-default}
1460 yes) enable_shared=yes ;;
1461 no) enable_shared=no ;;
1464 # Look at the argument we got. We use all the common list separators.
1465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1466 for pkg in $enableval; do
1467 if test "X$pkg" = "X$p"; then
1478 # Check whether --enable-static or --disable-static was given.
1479 if test "${enable_static+set}" = set; then
1480 enableval="$enable_static"
1481 p=${PACKAGE-default}
1483 yes) enable_static=yes ;;
1484 no) enable_static=no ;;
1487 # Look at the argument we got. We use all the common list separators.
1488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1489 for pkg in $enableval; do
1490 if test "X$pkg" = "X$p"; then
1501 # Check whether --enable-fast-install or --disable-fast-install was given.
1502 if test "${enable_fast_install+set}" = set; then
1503 enableval="$enable_fast_install"
1504 p=${PACKAGE-default}
1506 yes) enable_fast_install=yes ;;
1507 no) enable_fast_install=no ;;
1509 enable_fast_install=no
1510 # Look at the argument we got. We use all the common list separators.
1511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1512 for pkg in $enableval; do
1513 if test "X$pkg" = "X$p"; then
1514 enable_fast_install=yes
1521 enable_fast_install=yes
1524 echo $ac_n "checking build system type""... $ac_c" 1>&6
1525 echo "configure:1526: checking build system type" >&5
1528 case "$build_alias" in
1531 NONE) build_alias=$host_alias ;;
1532 *) build_alias=$nonopt ;;
1536 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1537 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1538 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1539 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1540 echo "$ac_t""$build" 1>&6
1542 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1543 if test "${with_gnu_ld+set}" = set; then
1544 withval="$with_gnu_ld"
1545 test "$withval" = no || with_gnu_ld=yes
1551 if test "$GCC" = yes; then
1552 # Check if gcc -print-prog-name=ld gives a path.
1553 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1554 echo "configure:1555: checking for ld used by GCC" >&5
1557 # gcc leaves a trailing carriage return which upsets mingw
1558 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1560 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1563 # Accept absolute paths.
1564 [\\/]* | [A-Za-z]:[\\/]*)
1565 re_direlt='/[^/][^/]*/\.\./'
1566 # Canonicalize the path of ld
1567 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1568 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1569 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1571 test -z "$LD" && LD="$ac_prog"
1574 # If it fails, then pretend we aren't using GCC.
1578 # If it is relative, then search for the first ld in PATH.
1582 elif test "$with_gnu_ld" = yes; then
1583 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1584 echo "configure:1585: checking for GNU ld" >&5
1586 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1587 echo "configure:1588: checking for non-GNU ld" >&5
1589 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 if test -z "$LD"; then
1593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1594 for ac_dir in $PATH; do
1595 test -z "$ac_dir" && ac_dir=.
1596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1597 lt_cv_path_LD="$ac_dir/$ac_prog"
1598 # Check to see if the program is GNU ld. I'd rather use --version,
1599 # but apparently some GNU ld's only accept -v.
1600 # Break only if it was the GNU/non-GNU ld that we prefer.
1601 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1602 test "$with_gnu_ld" != no && break
1604 test "$with_gnu_ld" != yes && break
1610 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1615 if test -n "$LD"; then
1616 echo "$ac_t""$LD" 1>&6
1618 echo "$ac_t""no" 1>&6
1620 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1621 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1622 echo "configure:1623: checking if the linker ($LD) is GNU ld" >&5
1623 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1627 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1628 lt_cv_prog_gnu_ld=yes
1630 lt_cv_prog_gnu_ld=no
1634 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1635 with_gnu_ld=$lt_cv_prog_gnu_ld
1638 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1639 echo "configure:1640: checking for $LD option to reload object files" >&5
1640 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1643 lt_cv_ld_reload_flag='-r'
1646 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1647 reload_flag=$lt_cv_ld_reload_flag
1648 test -n "$reload_flag" && reload_flag=" $reload_flag"
1650 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1651 echo "configure:1652: checking for BSD-compatible nm" >&5
1652 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 if test -n "$NM"; then
1656 # Let the user override the test.
1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1660 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1661 test -z "$ac_dir" && ac_dir=.
1662 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1663 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1664 # Check to see if the nm accepts a BSD-compat flag.
1665 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1666 # nm: unknown option "B" ignored
1667 # Tru64's nm complains that /dev/null is an invalid object file
1668 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1669 lt_cv_path_NM="$tmp_nm -B"
1671 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1672 lt_cv_path_NM="$tmp_nm -p"
1675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1676 continue # so that we can try to find one that supports BSD flags
1681 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1686 echo "$ac_t""$NM" 1>&6
1688 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1689 echo "configure:1690: checking how to recognise dependant libraries" >&5
1690 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 lt_cv_file_magic_cmd='$MAGIC_CMD'
1694 lt_cv_file_magic_test_file=
1695 lt_cv_deplibs_check_method='unknown'
1696 # Need to set the preceding variable on all platforms that support
1697 # interlibrary dependencies.
1698 # 'none' -- dependencies not supported.
1699 # `unknown' -- same as none, but documents that we really don't know.
1700 # 'pass_all' -- all dependencies passed with no checks.
1701 # 'test_compile' -- check by making test program.
1702 # 'file_magic [[regex]]' -- check by looking for files in library path
1703 # which responds to the $file_magic_cmd with a given egrep regex.
1704 # If you have `file' or equivalent on your system and you're not sure
1705 # whether `pass_all' will *always* work, you probably want this one.
1709 lt_cv_deplibs_check_method=pass_all
1713 lt_cv_deplibs_check_method=pass_all
1717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1718 lt_cv_file_magic_cmd='/usr/bin/file -L'
1719 lt_cv_file_magic_test_file=/shlib/libc.so
1722 cygwin* | mingw* | pw32*)
1723 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1724 lt_cv_file_magic_cmd='$OBJDUMP -f'
1727 darwin* | rhapsody*)
1728 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1729 lt_cv_file_magic_cmd='/usr/bin/file -L'
1731 rhapsody* | darwin1.[012])
1732 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1735 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1741 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1744 # Not sure whether the presence of OpenBSD here was a mistake.
1745 # Let's accept both of them until this is cleared up.
1746 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1747 lt_cv_file_magic_cmd=/usr/bin/file
1748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1752 lt_cv_deplibs_check_method=pass_all
1757 lt_cv_deplibs_check_method=pass_all
1761 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1762 lt_cv_file_magic_cmd=/usr/bin/file
1763 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1766 irix5* | irix6* | nonstopux*)
1768 irix5* | nonstopux*)
1769 # this will be overridden with pass_all, but let us keep it just in case
1770 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1774 *-32|*"-32 ") libmagic=32-bit;;
1775 *-n32|*"-n32 ") libmagic=N32;;
1776 *-64|*"-64 ") libmagic=64-bit;;
1777 *) libmagic=never-match;;
1779 # this will be overridden with pass_all, but let us keep it just in case
1780 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1783 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1784 lt_cv_deplibs_check_method=pass_all
1787 # This must be Linux ELF.
1790 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1791 lt_cv_deplibs_check_method=pass_all ;;
1793 # glibc up to 2.1.1 does not perform some relocations on ARM
1794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1796 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1800 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1801 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1803 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1809 lt_cv_file_magic_cmd=/usr/bin/file
1810 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1814 lt_cv_file_magic_cmd=/usr/bin/file
1815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1819 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1823 osf3* | osf4* | osf5*)
1824 # this will be overridden with pass_all, but let us keep it just in case
1825 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1826 lt_cv_file_magic_test_file=/shlib/libc.so
1827 lt_cv_deplibs_check_method=pass_all
1831 lt_cv_deplibs_check_method=pass_all
1835 lt_cv_deplibs_check_method=pass_all
1836 lt_cv_file_magic_test_file=/lib/libc.so
1839 sysv5uw[78]* | sysv4*uw2*)
1840 lt_cv_deplibs_check_method=pass_all
1843 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1844 case $host_vendor in
1846 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]'
1847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1850 lt_cv_deplibs_check_method=pass_all
1853 lt_cv_file_magic_cmd='/bin/file'
1854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1857 lt_cv_file_magic_cmd='/bin/file'
1858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1859 lt_cv_file_magic_test_file=/lib/libc.so
1867 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1868 file_magic_cmd=$lt_cv_file_magic_cmd
1869 deplibs_check_method=$lt_cv_deplibs_check_method
1871 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1872 echo "configure:1873: checking for object suffix" >&5
1873 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1877 echo 'int i = 1;' > conftest.$ac_ext
1878 if { (eval echo configure:1879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1879 for ac_file in conftest.*; do
1882 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1886 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1891 echo "$ac_t""$ac_cv_objext" 1>&6
1892 OBJEXT=$ac_cv_objext
1893 ac_objext=$ac_cv_objext
1897 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1898 echo "configure:1899: checking for executable suffix" >&5
1899 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1906 echo 'int main () { return 0; }' > conftest.$ac_ext
1908 if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1909 for file in conftest.*; do
1911 *.c | *.o | *.obj) ;;
1912 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1916 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1919 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1924 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1925 echo "$ac_t""${ac_cv_exeext}" 1>&6
1928 if test $host != $build; then
1929 ac_tool_prefix=${host_alias}-
1937 # Check for command to grab the raw symbol name followed by C symbol from nm.
1938 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1939 echo "configure:1940: checking command to parse $NM output" >&5
1940 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1944 # These are sane defaults that work on at least a few old systems.
1945 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1947 # Character class describing NM global symbol codes.
1948 symcode='[BCDEGRST]'
1950 # Regexp to match symbols that can be accessed directly from C.
1951 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1953 # Transform the above into a raw symbol and a C symbol.
1954 symxfrm='\1 \2\3 \3'
1956 # Transform an extracted symbol line into a proper C declaration
1957 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1959 # Transform an extracted symbol line into symbol name and symbol address
1960 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'"
1962 # Define system-specific variables.
1967 cygwin* | mingw* | pw32*)
1968 symcode='[ABCDGISTW]'
1970 hpux*) # Its linker distinguishes data from code symbols
1971 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1972 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'"
1975 symcode='[BCDEGRST]'
1985 # Handle CRLF in mingw tool chain
1989 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1993 # If we're using GNU nm, then use its standard symbol codes.
1994 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1995 symcode='[ABCDGISTW]'
1998 # Try without a prefix undercore, then with it.
1999 for ac_symprfx in "" "_"; do
2001 # Write the raw and C identifiers.
2002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2004 # Check to see that the pipe works correctly.
2007 cat > conftest.$ac_ext <<EOF
2012 void nm_test_func(){}
2016 int main(){nm_test_var='a';nm_test_func();return(0);}
2019 if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2020 # Now try to grab the symbols.
2022 if { (eval echo configure:2023: \"$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
2023 # Try sorting and uniquifying the output.
2024 if sort "$nlist" | uniq > "$nlist"T; then
2025 mv -f "$nlist"T "$nlist"
2030 # Make sure that we snagged all the symbols we need.
2031 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2032 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2033 cat <<EOF > conftest.$ac_ext
2039 # Now generate the symbol file.
2040 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2042 cat <<EOF >> conftest.$ac_ext
2043 #if defined (__STDC__) && __STDC__
2044 # define lt_ptr void *
2046 # define lt_ptr char *
2050 /* The mapping between symbol names and symbols. */
2055 lt_preloaded_symbols[] =
2058 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2059 cat <<\EOF >> conftest.$ac_ext
2067 # Now try linking the two files.
2068 mv conftest.$ac_objext conftstm.$ac_objext
2070 save_CFLAGS="$CFLAGS"
2071 LIBS="conftstm.$ac_objext"
2072 CFLAGS="$CFLAGS$no_builtin_flag"
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2077 CFLAGS="$save_CFLAGS"
2079 echo "cannot find nm_test_func in $nlist" >&5
2082 echo "cannot find nm_test_var in $nlist" >&5
2085 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2088 echo "$progname: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 rm -f conftest* conftst*
2093 # Do not use the global_symbol_pipe unless it works.
2094 if test "$pipe_works" = yes; then
2097 lt_cv_sys_global_symbol_pipe=
2103 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2104 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2105 global_symbol_to_cdecl=
2106 global_symbol_to_c_name_address=
2108 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2109 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2111 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2113 echo "$ac_t""failed" 1>&6
2115 echo "$ac_t""ok" 1>&6
2118 for ac_hdr in dlfcn.h
2120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2122 echo "configure:2123: checking for $ac_hdr" >&5
2123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2132 { (eval echo configure:2133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2134 if test -z "$ac_err"; then
2136 eval "ac_cv_header_$ac_safe=yes"
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 eval "ac_cv_header_$ac_safe=no"
2146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2149 cat >> confdefs.h <<EOF
2150 #define $ac_tr_hdr 1
2154 echo "$ac_t""no" 1>&6
2162 # Only perform the check for file, if the check method requires it
2163 case $deplibs_check_method in
2165 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2166 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2167 echo "configure:2168: checking for ${ac_tool_prefix}file" >&5
2168 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2179 ac_save_MAGIC_CMD="$MAGIC_CMD"
2180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2181 ac_dummy="/usr/bin:$PATH"
2182 for ac_dir in $ac_dummy; do
2183 test -z "$ac_dir" && ac_dir=.
2184 if test -f $ac_dir/${ac_tool_prefix}file; then
2185 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2186 if test -n "$file_magic_test_file"; then
2187 case $deplibs_check_method in
2189 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2192 egrep "$file_magic_regex" > /dev/null; then
2197 *** Warning: the command libtool uses to detect shared libraries,
2198 *** $file_magic_cmd, produces output that libtool cannot recognize.
2199 *** The result is that libtool may fail to recognize shared libraries
2200 *** as such. This will affect the creation of libtool libraries that
2201 *** depend on shared libraries, but programs linked with such libtool
2202 *** libraries will work regardless of this problem. Nevertheless, you
2203 *** may want to report the problem to your system manager and/or to
2204 *** bug-libtool@gnu.org
2214 MAGIC_CMD="$ac_save_MAGIC_CMD"
2219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2220 if test -n "$MAGIC_CMD"; then
2221 echo "$ac_t""$MAGIC_CMD" 1>&6
2223 echo "$ac_t""no" 1>&6
2226 if test -z "$lt_cv_path_MAGIC_CMD"; then
2227 if test -n "$ac_tool_prefix"; then
2228 echo $ac_n "checking for file""... $ac_c" 1>&6
2229 echo "configure:2230: checking for file" >&5
2230 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2241 ac_save_MAGIC_CMD="$MAGIC_CMD"
2242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2243 ac_dummy="/usr/bin:$PATH"
2244 for ac_dir in $ac_dummy; do
2245 test -z "$ac_dir" && ac_dir=.
2246 if test -f $ac_dir/file; then
2247 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2248 if test -n "$file_magic_test_file"; then
2249 case $deplibs_check_method in
2251 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2254 egrep "$file_magic_regex" > /dev/null; then
2259 *** Warning: the command libtool uses to detect shared libraries,
2260 *** $file_magic_cmd, produces output that libtool cannot recognize.
2261 *** The result is that libtool may fail to recognize shared libraries
2262 *** as such. This will affect the creation of libtool libraries that
2263 *** depend on shared libraries, but programs linked with such libtool
2264 *** libraries will work regardless of this problem. Nevertheless, you
2265 *** may want to report the problem to your system manager and/or to
2266 *** bug-libtool@gnu.org
2276 MAGIC_CMD="$ac_save_MAGIC_CMD"
2281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2282 if test -n "$MAGIC_CMD"; then
2283 echo "$ac_t""$MAGIC_CMD" 1>&6
2285 echo "$ac_t""no" 1>&6
2297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_word" >&5
2301 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 if test -n "$RANLIB"; then
2305 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2309 for ac_dir in $ac_dummy; do
2310 test -z "$ac_dir" && ac_dir=.
2311 if test -f $ac_dir/$ac_word; then
2312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2319 RANLIB="$ac_cv_prog_RANLIB"
2320 if test -n "$RANLIB"; then
2321 echo "$ac_t""$RANLIB" 1>&6
2323 echo "$ac_t""no" 1>&6
2327 if test -z "$ac_cv_prog_RANLIB"; then
2328 if test -n "$ac_tool_prefix"; then
2329 # Extract the first word of "ranlib", so it can be a program name with args.
2330 set dummy ranlib; ac_word=$2
2331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_word" >&5
2333 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 if test -n "$RANLIB"; then
2337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2341 for ac_dir in $ac_dummy; do
2342 test -z "$ac_dir" && ac_dir=.
2343 if test -f $ac_dir/$ac_word; then
2344 ac_cv_prog_RANLIB="ranlib"
2349 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2352 RANLIB="$ac_cv_prog_RANLIB"
2353 if test -n "$RANLIB"; then
2354 echo "$ac_t""$RANLIB" 1>&6
2356 echo "$ac_t""no" 1>&6
2364 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2365 set dummy ${ac_tool_prefix}strip; ac_word=$2
2366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2367 echo "configure:2368: checking for $ac_word" >&5
2368 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 if test -n "$STRIP"; then
2372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2376 for ac_dir in $ac_dummy; do
2377 test -z "$ac_dir" && ac_dir=.
2378 if test -f $ac_dir/$ac_word; then
2379 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2386 STRIP="$ac_cv_prog_STRIP"
2387 if test -n "$STRIP"; then
2388 echo "$ac_t""$STRIP" 1>&6
2390 echo "$ac_t""no" 1>&6
2394 if test -z "$ac_cv_prog_STRIP"; then
2395 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "strip", so it can be a program name with args.
2397 set dummy strip; ac_word=$2
2398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2399 echo "configure:2400: checking for $ac_word" >&5
2400 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 if test -n "$STRIP"; then
2404 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2408 for ac_dir in $ac_dummy; do
2409 test -z "$ac_dir" && ac_dir=.
2410 if test -f $ac_dir/$ac_word; then
2411 ac_cv_prog_STRIP="strip"
2416 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2419 STRIP="$ac_cv_prog_STRIP"
2420 if test -n "$STRIP"; then
2421 echo "$ac_t""$STRIP" 1>&6
2423 echo "$ac_t""no" 1>&6
2435 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2436 if test "${enable_libtool_lock+set}" = set; then
2437 enableval="$enable_libtool_lock"
2441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2443 # Some flags need to be propagated to the compiler or linker for good
2447 # Find out which ABI we are using.
2448 echo '#line 2449 "configure"' > conftest.$ac_ext
2449 if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450 case `/usr/bin/file conftest.$ac_objext` in
2466 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2467 SAVE_CFLAGS="$CFLAGS"
2468 CFLAGS="$CFLAGS -belf"
2469 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether the C compiler needs -belf" >&5
2471 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling=$ac_cv_prog_cc_cross
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2492 lt_cv_cc_needs_belf=yes
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 lt_cv_cc_needs_belf=no
2501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2505 cross_compiling=$ac_cv_prog_cc_cross
2509 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2510 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2511 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2512 CFLAGS="$SAVE_CFLAGS"
2519 # Sed substitution that helps us do robust quoting. It backslashifies
2520 # metacharacters that are still active within double-quoted strings.
2521 Xsed='sed -e s/^X//'
2522 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2524 # Same as above, but do not quote variable references.
2525 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2527 # Sed substitution to delay expansion of an escaped shell variable in a
2528 # double_quote_subst'ed string.
2529 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2535 default_ofile=libtool
2536 can_build_shared=yes
2538 # All known linkers require a `.a' archive for static linking (except M$VC,
2539 # which needs '.lib').
2541 ltmain="$ac_aux_dir/ltmain.sh"
2542 ofile="$default_ofile"
2543 with_gnu_ld="$lt_cv_prog_gnu_ld"
2544 need_locks="$enable_libtool_lock"
2547 old_CFLAGS="$CFLAGS"
2549 # Set sane defaults for various variables
2550 test -z "$AR" && AR=ar
2551 test -z "$AR_FLAGS" && AR_FLAGS=cru
2552 test -z "$AS" && AS=as
2553 test -z "$CC" && CC=cc
2554 test -z "$DLLTOOL" && DLLTOOL=dlltool
2555 test -z "$LD" && LD=ld
2556 test -z "$LN_S" && LN_S="ln -s"
2557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2558 test -z "$NM" && NM=nm
2559 test -z "$OBJDUMP" && OBJDUMP=objdump
2560 test -z "$RANLIB" && RANLIB=:
2561 test -z "$STRIP" && STRIP=:
2562 test -z "$ac_objext" && ac_objext=o
2564 if test x"$host" != x"$build"; then
2565 ac_tool_prefix=${host_alias}-
2570 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2573 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2578 # AIX sometimes has problems with the GCC collect2 program. For some
2579 # reason, if we set the COLLECT_NAMES environment variable, the problems
2580 # vanish in a puff of smoke.
2581 if test "X${COLLECT_NAMES+set}" != Xset; then
2583 export COLLECT_NAMES
2588 # Determine commands to create old-style static archives.
2589 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2590 old_postinstall_cmds='chmod 644 $oldlib'
2591 old_postuninstall_cmds=
2593 if test -n "$RANLIB"; then
2596 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2599 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2602 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2605 # Allow CC to be a program name with arguments.
2609 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2610 echo "configure:2611: checking for objdir" >&5
2611 rm -f .libs 2>/dev/null
2612 mkdir .libs 2>/dev/null
2613 if test -d .libs; then
2616 # MS-DOS does not allow filenames that begin with a dot.
2619 rmdir .libs 2>/dev/null
2620 echo "$ac_t""$objdir" 1>&6
2623 # Check whether --with-pic or --without-pic was given.
2624 if test "${with_pic+set}" = set; then
2631 test -z "$pic_mode" && pic_mode=default
2633 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2634 # in isolation, and that seeing it set (from the cache) indicates that
2635 # the associated values are set (in the cache) correctly too.
2636 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2637 echo "configure:2638: checking for $compiler option to produce PIC" >&5
2638 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2642 lt_cv_prog_cc_shlib=
2644 lt_cv_prog_cc_static=
2645 lt_cv_prog_cc_no_builtin=
2646 lt_cv_prog_cc_can_build_shared=$can_build_shared
2648 if test "$GCC" = yes; then
2649 lt_cv_prog_cc_wl='-Wl,'
2650 lt_cv_prog_cc_static='-static'
2654 # Below there is a dirty hack to force normal static linking with -ldl
2655 # The problem is because libdl dynamically linked with both libc and
2656 # libC (AIX C++ library), which obviously doesn't included in libraries
2657 # list by gcc. This cause undefined symbols with -static flags.
2658 # This hack allows C programs to be linked with "-static -ldl", but
2659 # not sure about C++ programs.
2660 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2663 # FIXME: we need at least 68020 code to build shared libraries, but
2664 # adding the `-m68020' flag to GCC prevents building anything better,
2666 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2668 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2669 # PIC is the default for these OSes.
2671 darwin* | rhapsody*)
2672 # PIC is the default on this platform
2673 # Common symbols not allowed in MH_DYLIB files
2674 lt_cv_prog_cc_pic='-fno-common'
2676 cygwin* | mingw* | pw32* | os2*)
2677 # This hack is so that the source file can tell whether it is being
2678 # built for inclusion in a dll (and should export symbols for example).
2679 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2682 if test -d /usr/nec; then
2683 lt_cv_prog_cc_pic=-Kconform_pic
2687 lt_cv_prog_cc_pic='-fPIC'
2691 # PORTME Check for PIC flags for the system compiler.
2693 aix3* | aix4* | aix5*)
2694 lt_cv_prog_cc_wl='-Wl,'
2695 # All AIX code is PIC.
2696 if test "$host_cpu" = ia64; then
2697 # AIX 5 now supports IA64 processor
2698 lt_cv_prog_cc_static='-Bstatic'
2700 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2704 hpux9* | hpux10* | hpux11*)
2705 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2706 lt_cv_prog_cc_wl='-Wl,'
2707 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2708 lt_cv_prog_cc_pic='+Z'
2711 irix5* | irix6* | nonstopux*)
2712 lt_cv_prog_cc_wl='-Wl,'
2713 lt_cv_prog_cc_static='-non_shared'
2714 # PIC (with -KPIC) is the default.
2717 cygwin* | mingw* | pw32* | os2*)
2718 # This hack is so that the source file can tell whether it is being
2719 # built for inclusion in a dll (and should export symbols for example).
2720 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2724 lt_cv_prog_cc_pic='-KPIC'
2725 lt_cv_prog_cc_static='-Bstatic'
2728 osf3* | osf4* | osf5*)
2729 # All OSF/1 code is PIC.
2730 lt_cv_prog_cc_wl='-Wl,'
2731 lt_cv_prog_cc_static='-non_shared'
2735 lt_cv_prog_cc_pic='-Kpic'
2736 lt_cv_prog_cc_static='-dn'
2737 lt_cv_prog_cc_shlib='-belf'
2741 lt_cv_prog_cc_pic='-KPIC'
2742 lt_cv_prog_cc_static='-Bstatic'
2743 lt_cv_prog_cc_wl='-Wl,'
2747 lt_cv_prog_cc_pic='-PIC'
2748 lt_cv_prog_cc_static='-Bstatic'
2749 lt_cv_prog_cc_wl='-Qoption ld '
2752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2753 lt_cv_prog_cc_pic='-KPIC'
2754 lt_cv_prog_cc_static='-Bstatic'
2755 if test "x$host_vendor" = xsni; then
2756 lt_cv_prog_cc_wl='-LD'
2758 lt_cv_prog_cc_wl='-Wl,'
2763 lt_cv_prog_cc_pic='-pic'
2764 lt_cv_prog_cc_static='-Bstatic'
2768 if test -d /usr/nec ;then
2769 lt_cv_prog_cc_pic='-Kconform_pic'
2770 lt_cv_prog_cc_static='-Bstatic'
2775 lt_cv_prog_cc_can_build_shared=no
2782 if test -z "$lt_cv_prog_cc_pic"; then
2783 echo "$ac_t""none" 1>&6
2785 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2787 # Check to make sure the pic_flag actually works.
2788 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2789 echo "configure:2790: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2790 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 save_CFLAGS="$CFLAGS"
2794 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2803 if { (eval echo configure:2804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2806 hpux9* | hpux10* | hpux11*)
2807 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2808 # they create non-PIC objects. So, if there were any warnings, we
2809 # assume that PIC is not supported.
2810 if test -s conftest.err; then
2811 lt_cv_prog_cc_pic_works=no
2813 lt_cv_prog_cc_pic_works=yes
2817 lt_cv_prog_cc_pic_works=yes
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2825 lt_cv_prog_cc_pic_works=no
2829 CFLAGS="$save_CFLAGS"
2834 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2836 lt_cv_prog_cc_can_build_shared=no
2838 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2841 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2844 # Check for any special shared library compilation flags.
2845 if test -n "$lt_cv_prog_cc_shlib"; then
2846 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2847 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2849 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2850 lt_cv_prog_cc_can_build_shared=no
2854 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2855 echo "configure:2856: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2856 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 lt_cv_prog_cc_static_works=no
2860 save_LDFLAGS="$LDFLAGS"
2861 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2870 if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2872 lt_cv_prog_cc_static_works=yes
2874 echo "configure: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2878 LDFLAGS="$save_LDFLAGS"
2883 # Belt *and* braces to stop my trousers falling down:
2884 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2885 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2887 pic_flag="$lt_cv_prog_cc_pic"
2888 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2889 wl="$lt_cv_prog_cc_wl"
2890 link_static_flag="$lt_cv_prog_cc_static"
2891 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2892 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2895 # Check to see if options -o and -c are simultaneously supported by compiler
2896 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2897 echo "configure:2898: checking if $compiler supports -c -o file.$ac_objext" >&5
2898 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2902 $rm -r conftest 2>/dev/null
2905 echo "int some_variable = 0;" > conftest.$ac_ext
2907 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2908 # that will create temporary files in the current directory regardless of
2909 # the output directory. Thus, making CWD read-only will cause this test
2910 # to fail, enabling locking or at least warning the user not to do parallel
2913 save_CFLAGS="$CFLAGS"
2914 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2916 if { (eval echo configure:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2917 # The compiler can only warn and ignore the option if not recognized
2918 # So say no if there are warnings
2919 if test -s out/conftest.err; then
2920 lt_cv_compiler_c_o=no
2922 lt_cv_compiler_c_o=yes
2925 # Append any errors to the config.log.
2926 cat out/conftest.err 1>&5
2927 lt_cv_compiler_c_o=no
2929 CFLAGS="$save_CFLAGS"
2935 $rm -r conftest 2>/dev/null
2939 compiler_c_o=$lt_cv_compiler_c_o
2940 echo "$ac_t""$compiler_c_o" 1>&6
2942 if test x"$compiler_c_o" = x"yes"; then
2943 # Check to see if we can write to a .lo
2944 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2945 echo "configure:2946: checking if $compiler supports -c -o file.lo" >&5
2946 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2950 lt_cv_compiler_o_lo=no
2951 save_CFLAGS="$CFLAGS"
2952 CFLAGS="$CFLAGS -c -o conftest.lo"
2953 save_objext="$ac_objext"
2955 cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2960 int some_variable = 0;
2963 if { (eval echo configure:2964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2965 # The compiler can only warn and ignore the option if not recognized
2966 # So say no if there are warnings
2967 if test -s conftest.err; then
2968 lt_cv_compiler_o_lo=no
2970 lt_cv_compiler_o_lo=yes
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2978 ac_objext="$save_objext"
2979 CFLAGS="$save_CFLAGS"
2983 compiler_o_lo=$lt_cv_compiler_o_lo
2984 echo "$ac_t""$compiler_o_lo" 1>&6
2989 # Check to see if we can do hard links to lock some files if needed
2990 hard_links="nottested"
2991 if test "$compiler_c_o" = no && test "$need_locks" != no; then
2992 # do not overwrite the value of need_locks provided by the user
2993 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2994 echo "configure:2995: checking if we can lock with hard links" >&5
2997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2999 ln conftest.a conftest.b 2>&5 || hard_links=no
3000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3001 echo "$ac_t""$hard_links" 1>&6
3002 if test "$hard_links" = no; then
3003 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3010 if test "$GCC" = yes; then
3011 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3012 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3013 echo "configure:3014: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3014 echo "int some_variable = 0;" > conftest.$ac_ext
3015 save_CFLAGS="$CFLAGS"
3016 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3017 compiler_rtti_exceptions=no
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3023 int some_variable = 0;
3026 if { (eval echo configure:3027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3028 # The compiler can only warn and ignore the option if not recognized
3029 # So say no if there are warnings
3030 if test -s conftest.err; then
3031 compiler_rtti_exceptions=no
3033 compiler_rtti_exceptions=yes
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3041 CFLAGS="$save_CFLAGS"
3042 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3044 if test "$compiler_rtti_exceptions" = "yes"; then
3045 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3047 no_builtin_flag=' -fno-builtin'
3051 # See if the linker supports building shared libraries.
3052 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3053 echo "configure:3054: checking whether the linker ($LD) supports shared libraries" >&5
3055 allow_undefined_flag=
3057 need_lib_prefix=unknown
3058 need_version=unknown
3059 # when you set need_version to no, make sure it does not cause -set_version
3060 # flags to be left without arguments
3062 archive_expsym_cmds=
3063 old_archive_from_new_cmds=
3064 old_archive_from_expsyms_cmds=
3065 export_dynamic_flag_spec=
3066 whole_archive_flag_spec=
3067 thread_safe_flag_spec=
3068 hardcode_into_libs=no
3069 hardcode_libdir_flag_spec=
3070 hardcode_libdir_separator=
3073 hardcode_shlibpath_var=unsupported
3075 link_all_deplibs=unknown
3076 always_export_symbols=no
3077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3078 # include_expsyms should be a list of space-separated symbols to be *always*
3079 # included in the symbol list
3081 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3082 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3083 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3084 # as well as any symbol that contains `d'.
3085 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3086 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3087 # platforms (ab)use it in PIC code, but their linkers get confused if
3088 # the symbol is explicitly referenced. Since portable code cannot
3089 # rely on this symbol name, it's probably fine to never include it in
3090 # preloaded symbol tables.
3091 extract_expsyms_cmds=
3094 cygwin* | mingw* | pw32*)
3095 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3096 # When not using gcc, we currently assume that we are using
3097 # Microsoft Visual C++.
3098 if test "$GCC" != yes; then
3108 if test "$with_gnu_ld" = yes; then
3109 # If archive_cmds runs LD, not CC, wlarc should be empty
3112 # See if GNU ld supports shared libraries.
3114 aix3* | aix4* | aix5*)
3115 # On AIX, the GNU linker is very broken
3116 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3120 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3121 *** to be unable to reliably create shared libraries on AIX.
3122 *** Therefore, libtool is disabling shared libraries support. If you
3123 *** really care for shared libraries, you may want to modify your PATH
3124 *** so that a non-GNU linker is found, and then restart.
3130 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)'
3131 hardcode_libdir_flag_spec='-L$libdir'
3132 hardcode_minus_L=yes
3134 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3135 # that the semantics of dynamic libraries on AmigaOS, at least up
3136 # to version 4, is to share data among multiple programs linked
3137 # with the same dynamic library. Since this doesn't match the
3138 # behavior of shared libraries on other platforms, we can use
3144 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3145 allow_undefined_flag=unsupported
3146 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3147 # support --undefined. This deserves some investigation. FIXME
3148 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3154 cygwin* | mingw* | pw32*)
3155 # hardcode_libdir_flag_spec is actually meaningless, as there is
3156 # no search path for DLLs.
3157 hardcode_libdir_flag_spec='-L$libdir'
3158 allow_undefined_flag=unsupported
3159 always_export_symbols=yes
3161 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3162 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3163 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3164 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3165 else $CC -o impgen impgen.c ; fi)~
3166 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3168 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3170 # cygwin and mingw dlls have different entry points and sets of symbols
3172 # FIXME: what about values for MSVC?
3173 dll_entry=__cygwin_dll_entry@12
3174 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3178 dll_entry=_DllMainCRTStartup@12
3179 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3183 # mingw and cygwin differ, and it's simplest to just exclude the union
3184 # of the two symbol sets.
3185 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3187 # recent cygwin and mingw systems supply a stub DllMain which the user
3188 # can override, but on older systems we have to supply one (in ltdll.c)
3189 if test "x$lt_cv_need_dllmain" = "xyes"; then
3190 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3191 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~
3192 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3198 # Extract the symbol export list from an `--export-all' def file,
3199 # then regenerate the def file from the symbol export list, so that
3200 # the compiled dll only exports the symbol export list.
3201 # Be careful not to strip the DATA tag left be newer dlltools.
3202 export_symbols_cmds="$ltdll_cmds"'
3203 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3204 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3206 # If the export-symbols file already is a .def file (1st line
3207 # is EXPORTS), use it as is.
3208 # If DATA tags from a recent dlltool are present, honour them!
3209 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3210 cp $export_symbols $output_objdir/$soname-def;
3212 echo EXPORTS > $output_objdir/$soname-def;
3214 cat $export_symbols | while read symbol; do
3217 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3218 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3220 _lt_hint=`expr 1 + \$_lt_hint`;
3224 $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~
3225 $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~
3226 $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~
3227 $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~
3228 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3233 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3236 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3237 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3242 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3247 *** create shared libraries on Solaris systems. Therefore, libtool
3248 *** is disabling shared libraries support. We urge you to upgrade GNU
3249 *** binutils to release 2.9.1 or newer. Another option is to modify
3250 *** your PATH or compiler configuration so that the native linker is
3251 *** used, and then restart.
3254 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3263 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3266 hardcode_shlibpath_var=no
3270 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3279 if test "$ld_shlibs" = yes; then
3280 runpath_var=LD_RUN_PATH
3281 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3282 export_dynamic_flag_spec='${wl}--export-dynamic'
3284 cygwin* | mingw* | pw32*)
3285 # dlltool doesn't understand --whole-archive et. al.
3286 whole_archive_flag_spec=
3289 # ancient GNU ld didn't support --whole-archive et. al.
3290 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3291 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3293 whole_archive_flag_spec=
3299 # PORTME fill in a description of your system's linker (not GNU ld)
3302 allow_undefined_flag=unsupported
3303 always_export_symbols=yes
3304 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'
3305 # Note: this linker hardcodes the directories in LIBPATH if there
3306 # are no directories specified by -L.
3307 hardcode_minus_L=yes
3308 if test "$GCC" = yes && test -z "$link_static_flag"; then
3309 # Neither direct hardcoding nor static linking is supported with a
3311 hardcode_direct=unsupported
3316 if test "$host_cpu" = ia64; then
3317 # On IA64, the linker does run time linking by default, so we don't
3318 # have to do anything special.
3319 aix_use_runtimelinking=no
3320 exp_sym_flag='-Bexport'
3323 aix_use_runtimelinking=no
3325 # Test if we are trying to use run time linking or normal
3326 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3327 # need to do runtime linking.
3328 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3329 for ld_flag in $LDFLAGS; do
3330 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3331 aix_use_runtimelinking=yes
3337 exp_sym_flag='-bexport'
3338 no_entry_flag='-bnoentry'
3341 # When large executables or shared objects are built, AIX ld can
3342 # have problems creating the table of contents. If linking a library
3343 # or program results in "error TOC overflow" add -mminimal-toc to
3344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3349 hardcode_libdir_separator=':'
3350 if test "$GCC" = yes; then
3351 case $host_os in aix4.[012]|aix4.[012].*)
3352 collect2name=`${CC} -print-prog-name=collect2`
3353 if test -f "$collect2name" && \
3354 strings "$collect2name" | grep resolve_lib_name >/dev/null
3356 # We have reworked collect2
3359 # We have old collect2
3360 hardcode_direct=unsupported
3361 # It fails to find uninstalled libraries when the uninstalled
3362 # path is not listed in the libpath. Setting hardcode_minus_L
3363 # to unsupported forces relinking
3364 hardcode_minus_L=yes
3365 hardcode_libdir_flag_spec='-L$libdir'
3366 hardcode_libdir_separator=
3370 shared_flag='-shared'
3373 if test "$host_cpu" = ia64; then
3374 shared_flag='${wl}-G'
3376 if test "$aix_use_runtimelinking" = yes; then
3377 shared_flag='${wl}-G'
3379 shared_flag='${wl}-bM:SRE'
3384 # It seems that -bexpall can do strange things, so it is better to
3385 # generate a list of symbols to export.
3386 always_export_symbols=yes
3387 if test "$aix_use_runtimelinking" = yes; then
3388 # Warning - without using the other runtime loading flags (-brtl),
3389 # -berok will link without error, but may produce a broken library.
3390 allow_undefined_flag='-berok'
3391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3392 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"
3394 if test "$host_cpu" = ia64; then
3395 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3396 allow_undefined_flag="-z nodefs"
3397 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"
3399 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3400 # Warning - without using the other run time loading flags,
3401 # -berok will link without error, but may produce a broken library.
3402 allow_undefined_flag='${wl}-berok'
3403 # This is a bit strange, but is similar to how AIX traditionally builds
3404 # it's shared libraries.
3405 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'
3411 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)'
3412 hardcode_libdir_flag_spec='-L$libdir'
3413 hardcode_minus_L=yes
3414 # see comment about different semantics on the GNU ld section
3418 cygwin* | mingw* | pw32*)
3419 # When not using gcc, we currently assume that we are using
3420 # Microsoft Visual C++.
3421 # hardcode_libdir_flag_spec is actually meaningless, as there is
3422 # no search path for DLLs.
3423 hardcode_libdir_flag_spec=' '
3424 allow_undefined_flag=unsupported
3425 # Tell ltmain to make .lib files, not .a files.
3427 # FIXME: Setting linknames here is a bad hack.
3428 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3429 # The linker will automatically build a .lib file if we build a DLL.
3430 old_archive_from_new_cmds='true'
3431 # FIXME: Should let the user specify the lib program.
3432 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3433 fix_srcfile_path='`cygpath -w "$srcfile"`'
3436 darwin* | rhapsody*)
3438 rhapsody* | darwin1.[012])
3439 allow_undefined_flag='-undefined suppress'
3442 allow_undefined_flag='-flat_namespace -undefined suppress'
3445 # FIXME: Relying on posixy $() will cause problems for
3446 # cross-compilation, but unfortunately the echo tests do not
3447 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3448 # `"' quotes if we put them in here... so don't!
3449 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3450 # We need to add '_' to the symbols in $export_symbols first
3451 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3453 hardcode_shlibpath_var=no
3454 whole_archive_flag_spec='-all_load $convenience'
3461 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3462 # support. Future versions do this automatically, but an explicit c++rt0.o
3463 # does not break anything, and helps significantly (at the cost of a little
3466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3467 hardcode_libdir_flag_spec='-R$libdir'
3469 hardcode_shlibpath_var=no
3472 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3476 hardcode_minus_L=yes
3477 hardcode_shlibpath_var=no
3480 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3482 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3483 hardcode_libdir_flag_spec='-R$libdir'
3485 hardcode_shlibpath_var=no
3488 hpux9* | hpux10* | hpux11*)
3490 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' ;;
3491 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3494 hardcode_libdir_separator=:
3496 hardcode_minus_L=yes # Not in the search PATH, but as the default
3497 # location of the library.
3498 export_dynamic_flag_spec='${wl}-E'
3501 irix5* | irix6* | nonstopux*)
3502 if test "$GCC" = yes; then
3503 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'
3505 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'
3507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3508 hardcode_libdir_separator=:
3509 link_all_deplibs=yes
3513 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3516 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3518 hardcode_libdir_flag_spec='-R$libdir'
3520 hardcode_shlibpath_var=no
3524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3527 hardcode_libdir_separator=:
3528 hardcode_shlibpath_var=no
3533 hardcode_shlibpath_var=no
3534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3537 export_dynamic_flag_spec='${wl}-E'
3540 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3542 hardcode_libdir_flag_spec='-R$libdir'
3545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3553 hardcode_libdir_flag_spec='-L$libdir'
3554 hardcode_minus_L=yes
3555 allow_undefined_flag=unsupported
3556 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'
3557 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3561 if test "$GCC" = yes; then
3562 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3563 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'
3565 allow_undefined_flag=' -expect_unresolved \*'
3566 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'
3568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3569 hardcode_libdir_separator=:
3572 osf4* | osf5*) # as osf3* with the addition of -msym flag
3573 if test "$GCC" = yes; then
3574 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3575 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'
3576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3578 allow_undefined_flag=' -expect_unresolved \*'
3579 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'
3580 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3581 $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'
3583 #Both c and cxx compiler support -rpath directly
3584 hardcode_libdir_flag_spec='-rpath $libdir'
3586 hardcode_libdir_separator=:
3590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3591 hardcode_shlibpath_var=no
3592 runpath_var=LD_RUN_PATH
3593 hardcode_runpath_var=yes
3594 export_dynamic_flag_spec='${wl}-Bexport'
3598 # gcc --version < 3.0 without binutils cannot create self contained
3599 # shared libraries reliably, requiring libgcc.a to resolve some of
3600 # the object symbols generated in some cases. Libraries that use
3601 # assert need libgcc.a to resolve __eprintf, for example. Linking
3602 # a copy of libgcc.a into every shared library to guarantee resolving
3603 # such symbols causes other problems: According to Tim Van Holder
3604 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3605 # (to the application) exception stack for one thing.
3606 no_undefined_flag=' -z defs'
3607 if test "$GCC" = yes; then
3608 case `$CC --version 2>/dev/null` in
3612 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3613 *** create self contained shared libraries on Solaris systems, without
3614 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3615 *** -no-undefined support, which will at least allow you to build shared
3616 *** libraries. However, you may find that when you link such libraries
3617 *** into an application without using GCC, you have to manually add
3618 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3619 *** upgrade to a newer version of GCC. Another option is to rebuild your
3620 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3627 # $CC -shared without GNU ld will not create a library from C++
3628 # object files and a static libstdc++, better avoid it by now
3629 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3630 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3632 hardcode_libdir_flag_spec='-R$libdir'
3633 hardcode_shlibpath_var=no
3635 solaris2.[0-5] | solaris2.[0-5].*) ;;
3636 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3637 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3639 link_all_deplibs=yes
3643 if test "x$host_vendor" = xsequent; then
3644 # Use $CC to link under sequent, because it throws in some extra .o
3645 # files that make .init and .fini sections work.
3646 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3648 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3650 hardcode_libdir_flag_spec='-L$libdir'
3652 hardcode_minus_L=yes
3653 hardcode_shlibpath_var=no
3657 if test "x$host_vendor" = xsno; then
3658 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3659 hardcode_direct=yes # is this really true???
3661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3662 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3664 runpath_var='LD_RUN_PATH'
3665 hardcode_shlibpath_var=no
3669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3670 hardcode_shlibpath_var=no
3671 export_dynamic_flag_spec='-Bexport'
3675 no_undefined_flag=' -z text'
3676 # $CC -shared without GNU ld will not create a library from C++
3677 # object files and a static libstdc++, better avoid it by now
3678 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3679 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3681 hardcode_libdir_flag_spec=
3682 hardcode_shlibpath_var=no
3683 runpath_var='LD_RUN_PATH'
3687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3688 hardcode_libdir_flag_spec='-L$libdir'
3689 hardcode_shlibpath_var=no
3693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3694 hardcode_libdir_flag_spec='-L$libdir'
3695 hardcode_shlibpath_var=no
3699 if test -d /usr/nec; then
3700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3701 hardcode_shlibpath_var=no
3702 runpath_var=LD_RUN_PATH
3703 hardcode_runpath_var=yes
3709 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3712 hardcode_shlibpath_var=no
3713 hardcode_runpath_var=yes
3714 runpath_var=LD_RUN_PATH
3717 sysv5uw7* | unixware7*)
3718 no_undefined_flag='${wl}-z ${wl}text'
3719 if test "$GCC" = yes; then
3720 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3722 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3724 runpath_var='LD_RUN_PATH'
3725 hardcode_shlibpath_var=no
3733 echo "$ac_t""$ld_shlibs" 1>&6
3734 test "$ld_shlibs" = no && can_build_shared=no
3736 # Check hardcoding attributes.
3737 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3738 echo "configure:3739: checking how to hardcode library paths into programs" >&5
3740 if test -n "$hardcode_libdir_flag_spec" || \
3741 test -n "$runpath_var"; then
3743 # We can hardcode non-existant directories.
3744 if test "$hardcode_direct" != no &&
3745 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3746 # have to relink, otherwise we might link with an installed library
3747 # when we should be linking with a yet-to-be-installed one
3748 ## test "$hardcode_shlibpath_var" != no &&
3749 test "$hardcode_minus_L" != no; then
3750 # Linking always hardcodes the temporary library directory.
3751 hardcode_action=relink
3753 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3754 hardcode_action=immediate
3757 # We cannot hardcode anything, or else we can only hardcode existing
3759 hardcode_action=unsupported
3761 echo "$ac_t""$hardcode_action" 1>&6
3765 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3766 echo "configure:3767: checking whether stripping libraries is possible" >&5
3767 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3768 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3769 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3770 echo "$ac_t""yes" 1>&6
3772 echo "$ac_t""no" 1>&6
3775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3776 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3778 # PORTME Fill in your ld.so characteristics
3779 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3780 echo "configure:3781: checking dynamic linker characteristics" >&5
3782 libname_spec='lib$name'
3789 shlibpath_overrides_runpath=unknown
3791 dynamic_linker="$host_os ld.so"
3792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3798 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3799 shlibpath_var=LIBPATH
3801 # AIX has no versioning support, so we append a major version to the name.
3802 soname_spec='${libname}${release}.so$major'
3807 if test "$host_cpu" = ia64; then
3808 # AIX 5 supports IA64
3809 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3810 shlibpath_var=LD_LIBRARY_PATH
3812 # With GCC up to 2.95.x, collect2 would create an import file
3813 # for dependence libraries. The import file would start with
3814 # the line `#! .'. This would cause the generated library to
3815 # depend on `.', always an invalid library. This was fixed in
3816 # development snapshots of GCC prior to 3.0.
3818 aix4 | aix4.[01] | aix4.[01].*)
3819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3821 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3828 # AIX (on Power*) has no versioning support, so currently we can
3829 # not hardcode correct soname into executable. Probably we can
3830 # add versioning support to collect2, so additional links can
3831 # be useful in future.
3832 if test "$aix_use_runtimelinking" = yes; then
3833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3834 # instead of lib<name>.a to let people know that these are not
3835 # typical AIX shared libraries.
3836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3838 # We preserve .a as extension for shared libraries through AIX4.2
3839 # and later when we are not doing run time linking.
3840 library_names_spec='${libname}${release}.a $libname.a'
3841 soname_spec='${libname}${release}.so$major'
3843 shlibpath_var=LIBPATH
3848 library_names_spec='$libname.ixlibrary $libname.a'
3849 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3850 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'
3854 library_names_spec='${libname}.so'
3855 dynamic_linker="$host_os ld.so"
3856 shlibpath_var=LIBRARY_PATH
3862 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3863 soname_spec='${libname}${release}.so$major'
3864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3865 shlibpath_var=LD_LIBRARY_PATH
3866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3868 export_dynamic_flag_spec=-rdynamic
3869 # the default ld.so.conf also contains /usr/contrib/lib and
3870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3871 # libtool to hard-code these into programs
3874 cygwin* | mingw* | pw32*)
3875 version_type=windows
3878 case $GCC,$host_os in
3880 library_names_spec='$libname.dll.a'
3881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3882 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3883 dldir=$destdir/`dirname \$dlpath`~
3884 test -d \$dldir || mkdir -p \$dldir~
3885 $install_prog .libs/$dlname \$dldir/$dlname'
3886 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3887 dlpath=$dir/\$dldll~
3891 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3898 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3901 dynamic_linker='Win32 ld.exe'
3902 # FIXME: first we should search . and the directory the executable is in
3906 darwin* | rhapsody*)
3907 dynamic_linker="$host_os dyld"
3911 # FIXME: Relying on posixy $() will cause problems for
3912 # cross-compilation, but unfortunately the echo tests do not
3913 # yet detect zsh echo's removal of \ escapes.
3914 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)'
3915 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3916 shlibpath_overrides_runpath=yes
3917 shlibpath_var=DYLD_LIBRARY_PATH
3925 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3926 version_type=freebsd-$objformat
3927 case $version_type in
3929 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3934 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3938 shlibpath_var=LD_LIBRARY_PATH
3941 shlibpath_overrides_runpath=yes
3944 shlibpath_overrides_runpath=no
3945 hardcode_into_libs=yes
3954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3955 soname_spec='${libname}${release}.so$major'
3956 shlibpath_var=LD_LIBRARY_PATH
3957 hardcode_into_libs=yes
3960 hpux9* | hpux10* | hpux11*)
3961 # Give a soname corresponding to the major version so that dld.sl refuses to
3962 # link against other versions.
3963 dynamic_linker="$host_os dld.sl"
3967 shlibpath_var=SHLIB_PATH
3968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3969 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3970 soname_spec='${libname}${release}.sl$major'
3971 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3972 postinstall_cmds='chmod 555 $lib'
3975 irix5* | irix6* | nonstopux*)
3977 nonstopux*) version_type=nonstopux ;;
3978 *) version_type=irix ;;
3982 soname_spec='${libname}${release}.so$major'
3983 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3985 irix5* | nonstopux*)
3989 case $LD in # libtool.m4 will add one of these switches to LD
3990 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3991 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3992 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3993 *) libsuff= shlibsuff= libmagic=never-match;;
3997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3998 shlibpath_overrides_runpath=no
3999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4003 # No shared lib support for Linux oldld, aout, or coff.
4004 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4008 # This must be Linux ELF.
4013 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4014 soname_spec='${libname}${release}.so$major'
4015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4016 shlibpath_var=LD_LIBRARY_PATH
4017 shlibpath_overrides_runpath=no
4018 # This implies no fast_install, which is unacceptable.
4019 # Some rework will be needed to allow for fast_install
4020 # before this can be enabled.
4021 hardcode_into_libs=yes
4023 # We used to test for /lib/ld.so.1 and disable shared libraries on
4024 # powerpc, because MkLinux only supported shared libraries with the
4025 # GNU dynamic linker. Since this was broken with cross compilers,
4026 # most powerpc-linux boxes support dynamic linking these days and
4027 # people can always --disable-shared, the test was removed, and we
4028 # assume the GNU/Linux dynamic linker is in use.
4029 dynamic_linker='GNU/Linux ld.so'
4036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4037 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4039 dynamic_linker='NetBSD (a.out) ld.so'
4041 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4042 soname_spec='${libname}${release}.so$major'
4043 dynamic_linker='NetBSD ld.elf_so'
4045 shlibpath_var=LD_LIBRARY_PATH
4046 shlibpath_overrides_runpath=yes
4047 hardcode_into_libs=yes
4052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4053 shlibpath_var=LD_LIBRARY_PATH
4054 shlibpath_overrides_runpath=yes
4061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4063 openbsd2.[89] | openbsd2.[89].*)
4064 shlibpath_overrides_runpath=no
4067 shlibpath_overrides_runpath=yes
4071 shlibpath_overrides_runpath=yes
4073 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4075 shlibpath_var=LD_LIBRARY_PATH
4079 libname_spec='$name'
4081 library_names_spec='$libname.dll $libname.a'
4082 dynamic_linker='OS/2 ld.exe'
4083 shlibpath_var=LIBPATH
4086 osf3* | osf4* | osf5*)
4089 soname_spec='${libname}${release}.so'
4090 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4091 shlibpath_var=LD_LIBRARY_PATH
4092 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4093 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4098 soname_spec='${libname}${release}.so$major'
4099 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4100 shlibpath_var=LD_LIBRARY_PATH
4107 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4108 soname_spec='${libname}${release}.so$major'
4109 shlibpath_var=LD_LIBRARY_PATH
4110 shlibpath_overrides_runpath=yes
4111 hardcode_into_libs=yes
4112 # ldd complains unless libraries are executable
4113 postinstall_cmds='chmod +x $lib'
4118 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4120 shlibpath_var=LD_LIBRARY_PATH
4121 shlibpath_overrides_runpath=yes
4122 if test "$with_gnu_ld" = yes; then
4128 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4130 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4131 soname_spec='${libname}${release}.so$major'
4132 shlibpath_var=LD_LIBRARY_PATH
4133 case $host_vendor in
4135 shlibpath_overrides_runpath=no
4140 shlibpath_overrides_runpath=no
4141 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4148 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4149 soname_spec='${libname}${release}.so$major'
4150 shlibpath_var=LD_LIBRARY_PATH
4157 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4158 soname_spec='${libname}${release}.so$major'
4159 shlibpath_var=LD_LIBRARY_PATH
4163 if test -d /usr/nec ;then
4165 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4166 soname_spec='$libname.so.$major'
4167 shlibpath_var=LD_LIBRARY_PATH
4175 echo "$ac_t""$dynamic_linker" 1>&6
4176 test "$dynamic_linker" = no && can_build_shared=no
4178 # Report the final consequences.
4179 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4180 echo "configure:4181: checking if libtool supports shared libraries" >&5
4181 echo "$ac_t""$can_build_shared" 1>&6
4183 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4184 echo "configure:4185: checking whether to build shared libraries" >&5
4185 test "$can_build_shared" = "no" && enable_shared=no
4187 # On AIX, shared libraries and static libraries use the same namespace, and
4188 # are all built from PIC.
4191 test "$enable_shared" = yes && enable_static=no
4192 if test -n "$RANLIB"; then
4193 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4194 postinstall_cmds='$RANLIB $lib'
4199 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4200 test "$enable_shared" = yes && enable_static=no
4204 echo "$ac_t""$enable_shared" 1>&6
4206 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4207 echo "configure:4208: checking whether to build static libraries" >&5
4208 # Make sure either enable_shared or enable_static is yes.
4209 test "$enable_shared" = yes || enable_static=yes
4210 echo "$ac_t""$enable_static" 1>&6
4212 if test "$hardcode_action" = relink; then
4213 # Fast installation is not supported
4214 enable_fast_install=no
4215 elif test "$shlibpath_overrides_runpath" = yes ||
4216 test "$enable_shared" = no; then
4217 # Fast installation is not necessary
4218 enable_fast_install=needless
4221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4222 if test "$GCC" = yes; then
4223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4226 if test "x$enable_dlopen" != xyes; then
4227 enable_dlopen=unknown
4228 enable_dlopen_self=unknown
4229 enable_dlopen_self_static=unknown
4236 lt_cv_dlopen="load_add_on"
4238 lt_cv_dlopen_self=yes
4241 cygwin* | mingw* | pw32*)
4242 lt_cv_dlopen="LoadLibrary"
4247 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4248 echo "configure:4249: checking for shl_load" >&5
4249 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 /* System header to define __stub macros and hopefully few prototypes,
4256 which can conflict with char shl_load(); below. */
4258 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4265 /* The GNU C library defines this for functions which it implements
4266 to always fail with ENOSYS. Some functions are actually named
4267 something starting with __ and the normal name is an alias. */
4268 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4276 if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4278 eval "ac_cv_func_shl_load=yes"
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 eval "ac_cv_func_shl_load=no"
4288 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 lt_cv_dlopen="shl_load"
4292 echo "$ac_t""no" 1>&6
4293 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4294 echo "configure:4295: checking for shl_load in -ldld" >&5
4295 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 ac_save_LIBS="$LIBS"
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 /* Override any gcc2 internal prototype to avoid an error. */
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4315 eval "ac_cv_lib_$ac_lib_var=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 eval "ac_cv_lib_$ac_lib_var=no"
4323 LIBS="$ac_save_LIBS"
4326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4327 echo "$ac_t""yes" 1>&6
4328 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4330 echo "$ac_t""no" 1>&6
4331 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4332 echo "configure:4333: checking for dlopen" >&5
4333 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 /* System header to define __stub macros and hopefully few prototypes,
4340 which can conflict with char dlopen(); below. */
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4349 /* The GNU C library defines this for functions which it implements
4350 to always fail with ENOSYS. Some functions are actually named
4351 something starting with __ and the normal name is an alias. */
4352 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4360 if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4362 eval "ac_cv_func_dlopen=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.$ac_ext >&5
4367 eval "ac_cv_func_dlopen=no"
4372 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4374 lt_cv_dlopen="dlopen"
4376 echo "$ac_t""no" 1>&6
4377 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4378 echo "configure:4379: checking for dlopen in -ldl" >&5
4379 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 ac_save_LIBS="$LIBS"
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 /* We use char because int might match the return type of a gcc2
4390 builtin and then its argument prototype would still apply. */
4397 if { (eval echo configure:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399 eval "ac_cv_lib_$ac_lib_var=yes"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4404 eval "ac_cv_lib_$ac_lib_var=no"
4407 LIBS="$ac_save_LIBS"
4410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4411 echo "$ac_t""yes" 1>&6
4412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4414 echo "$ac_t""no" 1>&6
4415 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4416 echo "configure:4417: checking for dlopen in -lsvld" >&5
4417 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 ac_save_LIBS="$LIBS"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 eval "ac_cv_lib_$ac_lib_var=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_lib_$ac_lib_var=no"
4445 LIBS="$ac_save_LIBS"
4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4452 echo "$ac_t""no" 1>&6
4453 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4454 echo "configure:4455: checking for dld_link in -ldld" >&5
4455 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 ac_save_LIBS="$LIBS"
4461 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 eval "ac_cv_lib_$ac_lib_var=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 eval "ac_cv_lib_$ac_lib_var=no"
4483 LIBS="$ac_save_LIBS"
4486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4490 echo "$ac_t""no" 1>&6
4511 if test "x$lt_cv_dlopen" != xno; then
4517 case $lt_cv_dlopen in
4519 save_CPPFLAGS="$CPPFLAGS"
4520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4522 save_LDFLAGS="$LDFLAGS"
4523 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4526 LIBS="$lt_cv_dlopen_libs $LIBS"
4528 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4529 echo "configure:4530: checking whether a program can dlopen itself" >&5
4530 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 if test "$cross_compiling" = yes; then :
4534 lt_cv_dlopen_self=cross
4536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4537 lt_status=$lt_dlunknown
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4549 # define LT_DLGLOBAL RTLD_GLOBAL
4552 # define LT_DLGLOBAL DL_GLOBAL
4554 # define LT_DLGLOBAL 0
4558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4559 find out it does not work in some platform. */
4560 #ifndef LT_DLLAZY_OR_NOW
4562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4565 # define LT_DLLAZY_OR_NOW DL_LAZY
4568 # define LT_DLLAZY_OR_NOW RTLD_NOW
4571 # define LT_DLLAZY_OR_NOW DL_NOW
4573 # define LT_DLLAZY_OR_NOW 0
4581 extern "C" void exit (int);
4584 void fnord() { int i=42;}
4587 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4588 int status = $lt_dlunknown;
4592 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4593 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4594 /* dlclose (self); */
4600 if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4601 (./conftest; exit; ) 2>/dev/null
4604 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4605 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4606 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4609 # compilation failed
4610 lt_cv_dlopen_self=no
4618 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4620 if test "x$lt_cv_dlopen_self" = xyes; then
4621 LDFLAGS="$LDFLAGS $link_static_flag"
4622 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4623 echo "configure:4624: checking whether a statically linked program can dlopen itself" >&5
4624 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 if test "$cross_compiling" = yes; then :
4628 lt_cv_dlopen_self_static=cross
4630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4631 lt_status=$lt_dlunknown
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4643 # define LT_DLGLOBAL RTLD_GLOBAL
4646 # define LT_DLGLOBAL DL_GLOBAL
4648 # define LT_DLGLOBAL 0
4652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4653 find out it does not work in some platform. */
4654 #ifndef LT_DLLAZY_OR_NOW
4656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4659 # define LT_DLLAZY_OR_NOW DL_LAZY
4662 # define LT_DLLAZY_OR_NOW RTLD_NOW
4665 # define LT_DLLAZY_OR_NOW DL_NOW
4667 # define LT_DLLAZY_OR_NOW 0
4675 extern "C" void exit (int);
4678 void fnord() { int i=42;}
4681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4682 int status = $lt_dlunknown;
4686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4688 /* dlclose (self); */
4694 if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4695 (./conftest; exit; ) 2>/dev/null
4698 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4699 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4700 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4703 # compilation failed
4704 lt_cv_dlopen_self_static=no
4712 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4715 CPPFLAGS="$save_CPPFLAGS"
4716 LDFLAGS="$save_LDFLAGS"
4721 case $lt_cv_dlopen_self in
4722 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4723 *) enable_dlopen_self=unknown ;;
4726 case $lt_cv_dlopen_self_static in
4727 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4728 *) enable_dlopen_self_static=unknown ;;
4733 if test "$enable_shared" = yes && test "$GCC" = yes; then
4734 case $archive_cmds in
4736 # FIXME: we may have to deal with multi-command sequences.
4739 # Test whether the compiler implicitly links with -lc since on some
4740 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4741 # to ld, don't add -lc before -lgcc.
4742 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4743 echo "configure:4744: checking whether -lc should be explicitly linked in" >&5
4744 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4748 echo 'static int dummy;' > conftest.$ac_ext
4750 if { (eval echo configure:4751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4753 libobjs=conftest.$ac_objext
4755 wl=$lt_cv_prog_cc_wl
4761 save_allow_undefined_flag=$allow_undefined_flag
4762 allow_undefined_flag=
4763 if { (eval echo configure:4764: \"$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; }
4765 lt_cv_archive_cmds_need_lc=no
4767 lt_cv_archive_cmds_need_lc=yes
4769 allow_undefined_flag=$save_allow_undefined_flag
4771 cat conftest.err 1>&5
4775 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4779 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4781 # The second clause should only fire when bootstrapping the
4782 # libtool distribution, otherwise you forgot to ship ltmain.sh
4783 # with your package, and you will get complaints that there are
4784 # no rules to generate ltmain.sh.
4785 if test -f "$ltmain"; then
4788 # If there is no Makefile yet, we rely on a make rule to execute
4789 # `config.status --recheck' to rerun these tests and create the
4790 # libtool script then.
4791 test -f Makefile && make "$ltmain"
4794 if test -f "$ltmain"; then
4795 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4798 echo creating $ofile
4800 # Now quote all the things that may contain metacharacters while being
4801 # careful not to overquote the AC_SUBSTed values. We take copies of the
4802 # variables and quote the copies for generation of the libtool script.
4803 for var in echo old_CC old_CFLAGS \
4804 AR AR_FLAGS CC LD LN_S NM SHELL \
4805 reload_flag reload_cmds wl \
4806 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4807 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4808 library_names_spec soname_spec \
4809 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4810 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4811 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4812 old_striplib striplib file_magic_cmd export_symbols_cmds \
4813 deplibs_check_method allow_undefined_flag no_undefined_flag \
4814 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4815 global_symbol_to_c_name_address \
4816 hardcode_libdir_flag_spec hardcode_libdir_separator \
4817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4818 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4821 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4822 old_postinstall_cmds | old_postuninstall_cmds | \
4823 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4824 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4825 postinstall_cmds | postuninstall_cmds | \
4826 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4827 # Double-quote double-evaled strings.
4828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4836 cat <<__EOF__ > "${ofile}T"
4839 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4840 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4841 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4843 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4844 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4846 # This program is free software; you can redistribute it and/or modify
4847 # it under the terms of the GNU General Public License as published by
4848 # the Free Software Foundation; either version 2 of the License, or
4849 # (at your option) any later version.
4851 # This program is distributed in the hope that it will be useful, but
4852 # WITHOUT ANY WARRANTY; without even the implied warranty of
4853 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4854 # General Public License for more details.
4856 # You should have received a copy of the GNU General Public License
4857 # along with this program; if not, write to the Free Software
4858 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4860 # As a special exception to the GNU General Public License, if you
4861 # distribute this file as part of a program that contains a
4862 # configuration script generated by Autoconf, you may include it under
4863 # the same distribution terms that you use for the rest of that program.
4865 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4866 Xsed="sed -e s/^X//"
4868 # The HP-UX ksh and POSIX shell print the target directory to stdout
4870 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4872 # ### BEGIN LIBTOOL CONFIG
4874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4876 # Shell to use when invoking shell scripts.
4879 # Whether or not to build shared libraries.
4880 build_libtool_libs=$enable_shared
4882 # Whether or not to build static libraries.
4883 build_old_libs=$enable_static
4885 # Whether or not to add -lc for building shared libraries.
4886 build_libtool_need_lc=$need_lc
4888 # Whether or not to optimize for fast installation.
4889 fast_install=$enable_fast_install
4892 host_alias=$host_alias
4895 # An echo program that does not interpret backslashes.
4900 AR_FLAGS=$lt_AR_FLAGS
4902 # The default C compiler.
4905 # Is the compiler the GNU C compiler?
4908 # The linker used to build libraries.
4911 # Whether we need hard or soft links.
4914 # A BSD-compatible nm program.
4917 # A symbol stripping program
4920 # Used to examine libraries when file_magic_cmd begins "file"
4921 MAGIC_CMD=$MAGIC_CMD
4923 # Used on cygwin: DLL creation program.
4926 # Used on cygwin: object dumper.
4929 # Used on cygwin: assembler.
4932 # The name of the directory that contains temporary libtool files.
4935 # How to create reloadable object files.
4936 reload_flag=$lt_reload_flag
4937 reload_cmds=$lt_reload_cmds
4939 # How to pass a linker flag through the compiler.
4942 # Object file suffix (normally "o").
4945 # Old archive suffix (normally "a").
4948 # Executable file suffix (normally "").
4951 # Additional compiler flags for building library objects.
4952 pic_flag=$lt_pic_flag
4955 # Does compiler simultaneously support -c and -o options?
4956 compiler_c_o=$lt_compiler_c_o
4958 # Can we write directly to a .lo ?
4959 compiler_o_lo=$lt_compiler_o_lo
4961 # Must we lock files when doing compilation ?
4962 need_locks=$lt_need_locks
4964 # Do we need the lib prefix for modules?
4965 need_lib_prefix=$need_lib_prefix
4967 # Do we need a version for libraries?
4968 need_version=$need_version
4970 # Whether dlopen is supported.
4971 dlopen_support=$enable_dlopen
4973 # Whether dlopen of programs is supported.
4974 dlopen_self=$enable_dlopen_self
4976 # Whether dlopen of statically linked programs is supported.
4977 dlopen_self_static=$enable_dlopen_self_static
4979 # Compiler flag to prevent dynamic linking.
4980 link_static_flag=$lt_link_static_flag
4982 # Compiler flag to turn off builtin functions.
4983 no_builtin_flag=$lt_no_builtin_flag
4985 # Compiler flag to allow reflexive dlopens.
4986 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4988 # Compiler flag to generate shared objects directly from archives.
4989 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4991 # Compiler flag to generate thread-safe objects.
4992 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4994 # Library versioning type.
4995 version_type=$version_type
4997 # Format of library name prefix.
4998 libname_spec=$lt_libname_spec
5000 # List of archive names. First name is the real one, the rest are links.
5001 # The last name is the one that the linker finds with -lNAME.
5002 library_names_spec=$lt_library_names_spec
5004 # The coded name of the library, if different from the real name.
5005 soname_spec=$lt_soname_spec
5007 # Commands used to build and install an old-style archive.
5009 old_archive_cmds=$lt_old_archive_cmds
5010 old_postinstall_cmds=$lt_old_postinstall_cmds
5011 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5013 # Create an old-style archive from a shared archive.
5014 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5016 # Create a temporary old-style archive to link instead of a shared archive.
5017 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5019 # Commands used to build and install a shared archive.
5020 archive_cmds=$lt_archive_cmds
5021 archive_expsym_cmds=$lt_archive_expsym_cmds
5022 postinstall_cmds=$lt_postinstall_cmds
5023 postuninstall_cmds=$lt_postuninstall_cmds
5025 # Commands to strip libraries.
5026 old_striplib=$lt_old_striplib
5027 striplib=$lt_striplib
5029 # Method to check whether dependent libraries are shared objects.
5030 deplibs_check_method=$lt_deplibs_check_method
5032 # Command to use when deplibs_check_method == file_magic.
5033 file_magic_cmd=$lt_file_magic_cmd
5035 # Flag that allows shared libraries with undefined symbols to be built.
5036 allow_undefined_flag=$lt_allow_undefined_flag
5038 # Flag that forces no undefined symbols.
5039 no_undefined_flag=$lt_no_undefined_flag
5041 # Commands used to finish a libtool library installation in a directory.
5042 finish_cmds=$lt_finish_cmds
5044 # Same as above, but a single script fragment to be evaled but not shown.
5045 finish_eval=$lt_finish_eval
5047 # Take the output of nm and produce a listing of raw symbols and C names.
5048 global_symbol_pipe=$lt_global_symbol_pipe
5050 # Transform the output of nm in a proper C declaration
5051 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5053 # Transform the output of nm in a C name address pair
5054 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5056 # This is the shared library runtime path variable.
5057 runpath_var=$runpath_var
5059 # This is the shared library path variable.
5060 shlibpath_var=$shlibpath_var
5062 # Is shlibpath searched before the hard-coded library search path?
5063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5065 # How to hardcode a shared library path into an executable.
5066 hardcode_action=$hardcode_action
5068 # Whether we should hardcode library paths into libraries.
5069 hardcode_into_libs=$hardcode_into_libs
5071 # Flag to hardcode \$libdir into a binary during linking.
5072 # This must work even if \$libdir does not exist.
5073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5075 # Whether we need a single -rpath flag with a separated argument.
5076 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5078 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5080 hardcode_direct=$hardcode_direct
5082 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5084 hardcode_minus_L=$hardcode_minus_L
5086 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5087 # the resulting binary.
5088 hardcode_shlibpath_var=$hardcode_shlibpath_var
5090 # Variables whose values should be saved in libtool wrapper scripts and
5091 # restored at relink time.
5092 variables_saved_for_relink="$variables_saved_for_relink"
5094 # Whether libtool must link a program against all its dependency libraries.
5095 link_all_deplibs=$link_all_deplibs
5097 # Compile-time system search path for libraries
5098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5100 # Run-time system search path for libraries
5101 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5103 # Fix the shell variable \$srcfile for the compiler.
5104 fix_srcfile_path="$fix_srcfile_path"
5106 # Set to yes if exported symbols are required.
5107 always_export_symbols=$always_export_symbols
5109 # The commands to list exported symbols.
5110 export_symbols_cmds=$lt_export_symbols_cmds
5112 # The commands to extract the exported symbol list from a shared archive.
5113 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5115 # Symbols that should not be listed in the preloaded symbols.
5116 exclude_expsyms=$lt_exclude_expsyms
5118 # Symbols that must always be exported.
5119 include_expsyms=$lt_include_expsyms
5121 # ### END LIBTOOL CONFIG
5127 cat <<\EOF >> "${ofile}T"
5129 # AIX sometimes has problems with the GCC collect2 program. For some
5130 # reason, if we set the COLLECT_NAMES environment variable, the problems
5131 # vanish in a puff of smoke.
5132 if test "X${COLLECT_NAMES+set}" != Xset; then
5134 export COLLECT_NAMES
5141 cygwin* | mingw* | pw32* | os2*)
5142 cat <<'EOF' >> "${ofile}T"
5143 # This is a source program that is used to create dlls on Windows
5144 # Don't remove nor modify the starting and closing comments
5145 # /* ltdll.c starts here */
5146 # #define WIN32_LEAN_AND_MEAN
5147 # #include <windows.h>
5148 # #undef WIN32_LEAN_AND_MEAN
5149 # #include <stdio.h>
5151 # #ifndef __CYGWIN__
5152 # # ifdef __CYGWIN32__
5153 # # define __CYGWIN__ __CYGWIN32__
5157 # #ifdef __cplusplus
5160 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5161 # #ifdef __cplusplus
5166 # #include <cygwin/cygwin_dll.h>
5167 # DECLARE_CYGWIN_DLL( DllMain );
5169 # HINSTANCE __hDllInstance_base;
5172 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5174 # __hDllInstance_base = hInst;
5177 # /* ltdll.c ends here */
5178 # This is a source program that is used to create import libraries
5179 # on Windows for dlls which lack them. Don't remove nor modify the
5180 # starting and closing comments
5181 # /* impgen.c starts here */
5182 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5184 # This file is part of GNU libtool.
5186 # This program is free software; you can redistribute it and/or modify
5187 # it under the terms of the GNU General Public License as published by
5188 # the Free Software Foundation; either version 2 of the License, or
5189 # (at your option) any later version.
5191 # This program is distributed in the hope that it will be useful,
5192 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5193 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5194 # GNU General Public License for more details.
5196 # You should have received a copy of the GNU General Public License
5197 # along with this program; if not, write to the Free Software
5198 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5201 # #include <stdio.h> /* for printf() */
5202 # #include <unistd.h> /* for open(), lseek(), read() */
5203 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5204 # #include <string.h> /* for strdup() */
5206 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5208 # #define O_BINARY 0
5211 # static unsigned int
5212 # pe_get16 (fd, offset)
5216 # unsigned char b[2];
5217 # lseek (fd, offset, SEEK_SET);
5219 # return b[0] + (b[1]<<8);
5222 # static unsigned int
5223 # pe_get32 (fd, offset)
5227 # unsigned char b[4];
5228 # lseek (fd, offset, SEEK_SET);
5230 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5233 # static unsigned int
5237 # unsigned char *b = ptr;
5238 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5247 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5248 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5249 # unsigned long name_rvas, nexp;
5250 # unsigned char *expdata, *erva;
5251 # char *filename, *dll_name;
5253 # filename = argv[1];
5255 # dll = open(filename, O_RDONLY|O_BINARY);
5259 # dll_name = filename;
5261 # for (i=0; filename[i]; i++)
5262 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5263 # dll_name = filename + i +1;
5265 # pe_header_offset = pe_get32 (dll, 0x3c);
5266 # opthdr_ofs = pe_header_offset + 4 + 20;
5267 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5269 # if (num_entries < 1) /* no exports */
5272 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5273 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5274 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5275 # secptr = (pe_header_offset + 4 + 20 +
5276 # pe_get16 (dll, pe_header_offset + 4 + 16));
5279 # for (i = 0; i < nsections; i++)
5282 # unsigned long secptr1 = secptr + 40 * i;
5283 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5284 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5285 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5286 # lseek(dll, secptr1, SEEK_SET);
5287 # read(dll, sname, 8);
5288 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5290 # expptr = fptr + (export_rva - vaddr);
5291 # if (export_rva + export_size > vaddr + vsize)
5292 # export_size = vsize - (export_rva - vaddr);
5297 # expdata = (unsigned char*)malloc(export_size);
5298 # lseek (dll, expptr, SEEK_SET);
5299 # read (dll, expdata, export_size);
5300 # erva = expdata - export_rva;
5302 # nexp = pe_as32 (expdata+24);
5303 # name_rvas = pe_as32 (expdata+32);
5305 # printf ("EXPORTS\n");
5306 # for (i = 0; i<nexp; i++)
5308 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5309 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5314 # /* impgen.c ends here */
5320 # We use sed instead of cat because bash on DJGPP gets confused if
5321 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5322 # text mode, it properly converts lines to CR/LF. This bash problem
5323 # is reportedly fixed, but why not run on old versions too?
5324 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5326 mv -f "${ofile}T" "$ofile" || \
5327 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5335 # This can be used to rebuild libtool when needed
5336 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5338 # Always use our own libtool.
5339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5341 # Prevent multiple expansion
5344 for ac_prog in gzip uncompress compress
5346 # Extract the first word of "$ac_prog", so it can be a program name with args.
5347 set dummy $ac_prog; ac_word=$2
5348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_word" >&5
5350 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 if test -n "$UNCOMPRESS"; then
5354 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
5356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5358 for ac_dir in $ac_dummy; do
5359 test -z "$ac_dir" && ac_dir=.
5360 if test -f $ac_dir/$ac_word; then
5361 ac_cv_prog_UNCOMPRESS="$ac_prog"
5368 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
5369 if test -n "$UNCOMPRESS"; then
5370 echo "$ac_t""$UNCOMPRESS" 1>&6
5372 echo "$ac_t""no" 1>&6
5375 test -n "$UNCOMPRESS" && break
5381 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5382 echo "configure:5383: checking for executable suffix" >&5
5383 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5386 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5390 echo 'int main () { return 0; }' > conftest.$ac_ext
5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5393 for file in conftest.*; do
5395 *.c | *.o | *.obj) ;;
5396 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5400 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5403 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5408 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5409 echo "$ac_t""${ac_cv_exeext}" 1>&6
5414 echo $ac_n "checking for target system""... $ac_c" 1>&6
5415 echo "configure:5416: checking for target system" >&5
5417 # Make sure we can run config.sub.
5418 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5419 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5422 echo $ac_n "checking host system type""... $ac_c" 1>&6
5423 echo "configure:5424: checking host system type" >&5
5426 case "$host_alias" in
5430 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5431 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5433 *) host_alias=$nonopt ;;
5437 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5438 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5439 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5440 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5441 echo "$ac_t""$host" 1>&6
5446 *cygwin* ) CYGWIN=yes;;
5447 *mingw* ) MINGW=yes;;
5451 if test "x$CXX" == "xi586-mingw32msvc-g++"; then
5452 #fix for the debian distribution of mingw
5453 if test -x "/usr/i586-mingw32msvc/bin/ar";then
5454 AR="/usr/i586-mingw32msvc/bin/ar"
5456 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
5457 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
5464 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5465 echo "configure:5466: checking for executable suffix" >&5
5466 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5469 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5473 echo 'int main () { return 0; }' > conftest.$ac_ext
5475 if { (eval echo configure:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5476 for file in conftest.*; do
5478 *.c | *.o | *.obj) ;;
5479 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5483 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5486 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5491 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5492 echo "$ac_t""${ac_cv_exeext}" 1>&6
5496 if test "x${CYGWIN}" = "xyes"; then
5497 cat >> confdefs.h <<EOF
5501 echo "$ac_t""cygwin" 1>&6
5503 if test "x${MINGW}" = "xyes"; then
5504 cat >> confdefs.h <<EOF
5509 cat >> confdefs.h <<EOF
5513 LIBS="$LIBS -lws2_32"
5514 echo "$ac_t""mingw" 1>&6
5518 cat >> confdefs.h <<EOF
5527 # The following tries to make use of includes and libraries in
5528 # /usr/local, too. Notice: A -I/usr/local/include might break
5529 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
5530 # especially on systems which link /usr/local to /usr, so it has yet
5531 # to be seen how useful this is.
5532 if test -d /usr/local/lib; then
5533 LDFLAGS="$LDFLAGS -L/usr/local/lib"
5535 if test -d /usr/local/include; then
5536 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
5537 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
5541 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5542 echo "configure:5543: checking for sin in -lm" >&5
5543 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5547 ac_save_LIBS="$LIBS"
5549 cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5552 /* Override any gcc2 internal prototype to avoid an error. */
5553 /* We use char because int might match the return type of a gcc2
5554 builtin and then its argument prototype would still apply. */
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5563 eval "ac_cv_lib_$ac_lib_var=yes"
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5568 eval "ac_cv_lib_$ac_lib_var=no"
5571 LIBS="$ac_save_LIBS"
5574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5575 echo "$ac_t""yes" 1>&6
5576 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5577 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5578 cat >> confdefs.h <<EOF
5579 #define $ac_tr_lib 1
5585 echo "$ac_t""no" 1>&6
5586 echo "Error: Math library not found.";
5591 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5592 echo "configure:5593: checking for deflate in -lz" >&5
5593 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 ac_save_LIBS="$LIBS"
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5613 eval "ac_cv_lib_$ac_lib_var=yes"
5615 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5618 eval "ac_cv_lib_$ac_lib_var=no"
5621 LIBS="$ac_save_LIBS"
5624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5628 cat >> confdefs.h <<EOF
5629 #define $ac_tr_lib 1
5635 echo "$ac_t""no" 1>&6
5636 DISABLEPNG2SWF=true;
5637 MISSINGLIBS="${MISSINGLIBS} zlib"
5642 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
5643 echo "configure:5644: checking for jpeg_write_raw_data in -ljpeg" >&5
5644 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
5645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5648 ac_save_LIBS="$LIBS"
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656 char jpeg_write_raw_data();
5659 jpeg_write_raw_data()
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5664 eval "ac_cv_lib_$ac_lib_var=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 eval "ac_cv_lib_$ac_lib_var=no"
5672 LIBS="$ac_save_LIBS"
5675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5676 echo "$ac_t""yes" 1>&6
5677 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5678 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5679 cat >> confdefs.h <<EOF
5680 #define $ac_tr_lib 1
5686 echo "$ac_t""no" 1>&6
5687 DISABLEPDF2SWF=true;
5688 DISABLEJPEG2SWF=true;
5689 MISSINGLIBS="${MISSINGLIBS} jpeglib"
5693 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
5694 echo "configure:5695: checking for T1_LoadFont in -lt1" >&5
5695 ac_lib_var=`echo t11'_'T1_LoadFont | sed 'y%./+-%__p_%'`
5696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 ac_save_LIBS="$LIBS"
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5704 /* Override any gcc2 internal prototype to avoid an error. */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5713 if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 eval "ac_cv_lib_$ac_lib_var=yes"
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 eval "ac_cv_lib_$ac_lib_var=no"
5723 LIBS="$ac_save_LIBS"
5726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5727 echo "$ac_t""yes" 1>&6
5728 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5729 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5730 cat >> confdefs.h <<EOF
5731 #define $ac_tr_lib 1
5737 echo "$ac_t""no" 1>&6
5738 DISABLEPDF2SWF=true;
5739 MISSINGLIBS="${MISSINGLIBS} t1lib"
5745 echo $ac_n "checking for byte order""... $ac_c" 1>&6
5746 echo "configure:5747: checking for byte order" >&5
5747 if test "$cross_compiling" = yes; then
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5754 int main (int argc, char *argv[])
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5775 if test "x${CROSSCOMPILE}" = "x1"; then
5776 echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
5778 # Do some error checking and defaulting for the host and target type.
5780 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
5783 # 1. You are not allowed to specify --host, --target, and nonopt at the
5785 # 2. Host defaults to nonopt.
5786 # 3. If nonopt is not specified, then host defaults to the current host,
5787 # as determined by config.guess.
5788 # 4. Target and build default to nonopt.
5789 # 5. If nonopt is not specified, then target and build default to host.
5791 # The aliases save the names the user supplied, while $host etc.
5792 # will get canonicalized.
5793 case $host---$target---$nonopt in
5794 NONE---*---* | *---NONE---* | *---*---NONE) ;;
5795 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
5799 # Make sure we can run config.sub.
5800 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5801 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5804 echo $ac_n "checking host system type""... $ac_c" 1>&6
5805 echo "configure:5806: checking host system type" >&5
5808 case "$host_alias" in
5812 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5813 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5815 *) host_alias=$nonopt ;;
5819 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5820 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5821 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5822 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5823 echo "$ac_t""$host" 1>&6
5825 echo $ac_n "checking target system type""... $ac_c" 1>&6
5826 echo "configure:5827: checking target system type" >&5
5828 target_alias=$target
5829 case "$target_alias" in
5832 NONE) target_alias=$host_alias ;;
5833 *) target_alias=$nonopt ;;
5837 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
5838 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5839 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5840 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5841 echo "$ac_t""$target" 1>&6
5843 echo $ac_n "checking build system type""... $ac_c" 1>&6
5844 echo "configure:5845: checking build system type" >&5
5847 case "$build_alias" in
5850 NONE) build_alias=$host_alias ;;
5851 *) build_alias=$nonopt ;;
5855 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
5856 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5857 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5858 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5859 echo "$ac_t""$build" 1>&6
5861 test "$host_alias" != "$target_alias" &&
5862 test "$program_prefix$program_suffix$program_transform_name" = \
5864 program_prefix=${target_alias}-
5866 echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
5867 echo "configure:5868: checking for byte order, try 2" >&5
5872 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
5879 if test "x${LITTLEENDIAN}" = "x1"; then
5880 echo "$ac_t""little endian" 1>&6
5884 if test "x${BIGENDIAN}" = "x1"; then
5885 echo "$ac_t""big endian" 1>&6
5888 export WORDS_BIGENDIAN
5889 cat >> confdefs.h <<EOF
5890 #define WORDS_BIGENDIAN 1
5894 if test "x${BYTEORDERCHECKOK}" != "x1"; then
5895 echo "$ac_t""unknown" 1>&6
5896 echo Byte order could not determined.
5902 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
5903 echo "configure:5904: checking whether system() can handle command substitution" >&5
5904 if test "$cross_compiling" = yes; then
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5912 int main (int argc, char*argv[])
5914 return system("test `touch config.tmp2`");
5918 if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5929 if test "x${OK}" = "xOK";then
5930 test -f config.tmp2 || OK=
5933 if test "x${CROSSCOMPILE}" = "x1";then
5936 if test "x${OK}" = "xOK";then
5938 echo "$ac_t""yes" 1>&6
5940 export SYSTEM_BACKTICKS
5941 cat >> confdefs.h <<EOF
5942 #define SYSTEM_BACKTICKS 1
5946 echo "$ac_t""no" 1>&6
5951 if test "$program_transform_name" = s,x,x,; then
5952 program_transform_name=
5954 # Double any \ or $. echo might interpret backslashes.
5955 cat <<\EOF_SED > conftestsed
5956 s,\\,\\\\,g; s,\$,$$,g
5958 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
5961 test "$program_prefix" != NONE &&
5962 program_transform_name="s,^,${program_prefix},; $program_transform_name"
5963 # Use a double $ so make ignores it.
5964 test "$program_suffix" != NONE &&
5965 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
5967 # sed with no file args requires a program.
5968 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
5973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5976 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5977 echo "configure:5978: checking for $ac_hdr that defines DIR" >&5
5978 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5979 echo $ac_n "(cached) $ac_c" 1>&6
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 #include <sys/types.h>
5990 if { (eval echo configure:5991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5992 eval "ac_cv_header_dirent_$ac_safe=yes"
5994 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5997 eval "ac_cv_header_dirent_$ac_safe=no"
6001 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6002 echo "$ac_t""yes" 1>&6
6003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6004 cat >> confdefs.h <<EOF
6005 #define $ac_tr_hdr 1
6007 ac_header_dirent=$ac_hdr; break
6009 echo "$ac_t""no" 1>&6
6012 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6013 if test $ac_header_dirent = dirent.h; then
6014 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6015 echo "configure:6016: checking for opendir in -ldir" >&5
6016 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6018 echo $ac_n "(cached) $ac_c" 1>&6
6020 ac_save_LIBS="$LIBS"
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6025 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036 eval "ac_cv_lib_$ac_lib_var=yes"
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 eval "ac_cv_lib_$ac_lib_var=no"
6044 LIBS="$ac_save_LIBS"
6047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6048 echo "$ac_t""yes" 1>&6
6051 echo "$ac_t""no" 1>&6
6055 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6056 echo "configure:6057: checking for opendir in -lx" >&5
6057 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 ac_save_LIBS="$LIBS"
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6066 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6077 eval "ac_cv_lib_$ac_lib_var=yes"
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6082 eval "ac_cv_lib_$ac_lib_var=no"
6085 LIBS="$ac_save_LIBS"
6088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6089 echo "$ac_t""yes" 1>&6
6092 echo "$ac_t""no" 1>&6
6097 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6098 echo "configure:6099: checking for ANSI C header files" >&5
6099 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6100 echo $ac_n "(cached) $ac_c" 1>&6
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6111 { (eval echo configure:6112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6113 if test -z "$ac_err"; then
6115 ac_cv_header_stdc=yes
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6121 ac_cv_header_stdc=no
6125 if test $ac_cv_header_stdc = yes; then
6126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6127 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 egrep "memchr" >/dev/null 2>&1; then
6137 ac_cv_header_stdc=no
6143 if test $ac_cv_header_stdc = yes; then
6144 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev/null 2>&1; then
6155 ac_cv_header_stdc=no
6161 if test $ac_cv_header_stdc = yes; then
6162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163 if test "$cross_compiling" = yes; then
6166 cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6170 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6171 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6172 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6173 int main () { int i; for (i = 0; i < 256; i++)
6174 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6178 if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6182 echo "configure: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6185 ac_cv_header_stdc=no
6193 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6194 if test $ac_cv_header_stdc = yes; then
6195 cat >> confdefs.h <<\EOF
6196 #define STDC_HEADERS 1
6201 for ac_hdr in zlib.h jpeglib.h t11lib.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h
6203 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6205 echo "configure:6206: checking for $ac_hdr" >&5
6206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6209 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6215 { (eval echo configure:6216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6217 if test -z "$ac_err"; then
6219 eval "ac_cv_header_$ac_safe=yes"
6222 echo "configure: failed program was:" >&5
6223 cat conftest.$ac_ext >&5
6225 eval "ac_cv_header_$ac_safe=no"
6229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6230 echo "$ac_t""yes" 1>&6
6231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6232 cat >> confdefs.h <<EOF
6233 #define $ac_tr_hdr 1
6237 echo "$ac_t""no" 1>&6
6242 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
6243 DISABLEPDF2SWF=true;
6244 DISABLEJPEG2SWF=true;
6245 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6247 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
6248 DISABLEPDF2SWF=true;
6249 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6251 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
6252 DISABLEPNG2SWF=true;
6253 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6257 cat >> confdefs.h <<EOF
6258 #define PACKAGE "$PACKAGE"
6261 cat >> confdefs.h <<EOF
6262 #define VERSION "$VERSION"
6271 echo $ac_n "checking for working const""... $ac_c" 1>&6
6272 echo "configure:6273: checking for working const" >&5
6273 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6276 cat > conftest.$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6282 /* Ultrix mips cc rejects this. */
6283 typedef int charset[2]; const charset x;
6284 /* SunOS 4.1.1 cc rejects this. */
6285 char const *const *ccp;
6287 /* NEC SVR4.0.2 mips cc rejects this. */
6288 struct point {int x, y;};
6289 static struct point const zero = {0,0};
6290 /* AIX XL C 1.02.0.0 rejects this.
6291 It does not let you subtract one const X* pointer from another in an arm
6292 of an if-expression whose if-part is not a constant expression */
6293 const char *g = "string";
6294 ccp = &g + (g ? g-g : 0);
6295 /* HPUX 7.0 cc rejects these. */
6298 ccp = (char const *const *) p;
6299 { /* SCO 3.2v4 cc rejects this. */
6301 char const *s = 0 ? (char *) 0 : (char const *) 0;
6305 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6307 const int *foo = &x[0];
6310 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6311 typedef const int *iptr;
6315 { /* AIX XL C 1.02.0.0 rejects this saying
6316 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6317 struct s { int j; const int *ap[3]; };
6318 struct s *b; b->j = 5;
6320 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6326 if { (eval echo configure:6327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6338 echo "$ac_t""$ac_cv_c_const" 1>&6
6339 if test $ac_cv_c_const = no; then
6340 cat >> confdefs.h <<\EOF
6346 echo $ac_n "checking for inline""... $ac_c" 1>&6
6347 echo "configure:6348: checking for inline" >&5
6348 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6352 for ac_kw in inline __inline__ __inline; do
6353 cat > conftest.$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6361 if { (eval echo configure:6362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6363 ac_cv_c_inline=$ac_kw; break
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6373 echo "$ac_t""$ac_cv_c_inline" 1>&6
6374 case "$ac_cv_c_inline" in
6376 no) cat >> confdefs.h <<\EOF
6380 *) cat >> confdefs.h <<EOF
6381 #define inline $ac_cv_c_inline
6386 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6387 echo "configure:6388: checking for off_t" >&5
6388 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6389 echo $ac_n "(cached) $ac_c" 1>&6
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6394 #include <sys/types.h>
6400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6401 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6403 ac_cv_type_off_t=yes
6411 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6412 if test $ac_cv_type_off_t = no; then
6413 cat >> confdefs.h <<\EOF
6419 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6420 echo "configure:6421: checking for size_t" >&5
6421 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 #include <sys/types.h>
6433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6434 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6436 ac_cv_type_size_t=yes
6439 ac_cv_type_size_t=no
6444 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6445 if test $ac_cv_type_size_t = no; then
6446 cat >> confdefs.h <<\EOF
6447 #define size_t unsigned
6452 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6453 echo "configure:6454: checking whether struct tm is in sys/time.h or time.h" >&5
6454 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6460 #include <sys/types.h>
6463 struct tm *tp; tp->tm_sec;
6466 if { (eval echo configure:6467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6468 ac_cv_struct_tm=time.h
6470 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 ac_cv_struct_tm=sys/time.h
6478 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6479 if test $ac_cv_struct_tm = sys/time.h; then
6480 cat >> confdefs.h <<\EOF
6481 #define TM_IN_SYS_TIME 1
6486 echo $ac_n "checking for boolean""... $ac_c" 1>&6
6487 echo "configure:6488: checking for boolean" >&5
6488 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 #include <sys/types.h>
6500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6501 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6503 ac_cv_type_boolean=yes
6506 ac_cv_type_boolean=no
6511 echo "$ac_t""$ac_cv_type_boolean" 1>&6
6512 if test $ac_cv_type_boolean = no; then
6513 cat >> confdefs.h <<\EOF
6519 echo $ac_n "checking for bool""... $ac_c" 1>&6
6520 echo "configure:6521: checking for bool" >&5
6521 if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6524 cat > conftest.$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6527 #include <sys/types.h>
6533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6534 egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6544 echo "$ac_t""$ac_cv_type_bool" 1>&6
6545 if test $ac_cv_type_bool = no; then
6546 cat >> confdefs.h <<\EOF
6553 for ac_func in popen mkstemp stat lrand48 rand srand48 srand
6555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_func" >&5
6557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6563 /* System header to define __stub macros and hopefully few prototypes,
6564 which can conflict with char $ac_func(); below. */
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6573 /* The GNU C library defines this for functions which it implements
6574 to always fail with ENOSYS. Some functions are actually named
6575 something starting with __ and the normal name is an alias. */
6576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6586 eval "ac_cv_func_$ac_func=yes"
6588 echo "configure: failed program was:" >&5
6589 cat conftest.$ac_ext >&5
6591 eval "ac_cv_func_$ac_func=no"
6596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6597 echo "$ac_t""yes" 1>&6
6598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6599 cat >> confdefs.h <<EOF
6600 #define $ac_tr_func 1
6604 echo "$ac_t""no" 1>&6
6609 echo $ac_n "checking whether we can compile the avifile test program""... $ac_c" 1>&6
6610 echo "configure:6611: checking whether we can compile the avifile test program" >&5
6612 cat > conftest.cpp << EOF
6613 #include <avifile/version.h>
6614 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6615 #include <avifile.h>
6616 #include <aviplay.h>
6618 #include <creators.h>
6619 #include <StreamInfo.h>
6622 #include <avifile.h>
6623 #include <aviplay.h>
6624 #include <aviutil.h>
6626 #define Height height
6631 int main (int argc, char*argv)
6633 IAviReadFile* player;
6634 IAviReadStream* astream;
6635 IAviReadStream* vstream;
6636 player = CreateIAviReadFile(0);
6637 astream = player->GetStream(0, AviStream::Audio);
6638 vstream = player->GetStream(0, AviStream::Video);
6639 vstream -> StartStreaming();
6640 astream -> StartStreaming();
6643 player->GetFileHeader(&head);
6644 head.dwMicroSecPerFrame;
6649 head.dwMicroSecPerFrame;
6650 astream->GetEndPos(),
6651 astream->GetEndTime());
6652 player->StreamCount();
6654 StreamInfo*audioinfo;
6655 StreamInfo*videoinfo;
6656 audioinfo = astream->GetStreamInfo();
6657 videoinfo = vstream->GetStreamInfo();
6658 videoinfo->GetVideoWidth();
6659 videoinfo->GetVideoHeight();
6660 audioinfo->GetAudioSamplesPerSec();
6661 videoinfo->GetFps();
6663 CImage*img = vstream->GetFrame();
6670 astream->GetAudioFormatInfo(&wave,0);
6672 astream->ReadFrames(0,0,0,a,b);
6676 ac_link='$CXX $CPPFLAGS $CXXFLAGS `avifile-config --cflags` `avifile-config --libs` conftest.cpp -o conftest${ac_exeext}'
6677 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6678 echo "$ac_t""yes" 1>&6
6681 cat >> confdefs.h <<EOF
6682 #define AVIFILE true
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6688 echo "$ac_t""no" 1>&6
6693 avi2swf="avi2swf/Makefile"
6694 if test "x${AVIFILE}" != "xtrue"; then
6695 echo "* Couldn't compile the avifile test program."
6696 echo "* Disabling avi2swf tool..."
6697 echo all install uninstall clean: > avi2swf/Makefile
6701 if test "x${UNCOMPRESS}" = "xgzip"; then
6702 cat >> confdefs.h <<EOF
6709 JPEG2SWF='jpeg2swf' #$(EXEEXT)
6711 PNG2SWF='png2swf' #$(EXEEXT)
6713 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6714 echo "***************************************************"
6715 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
6716 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6717 echo "Disabling pdf2swf tool..."
6718 rm -f pdf2swf/Makefile
6719 echo all install uninstall clean: > pdf2swf/Makefile
6721 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6722 echo "Disabling jpeg2swf tool..."
6726 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
6727 echo "Disabling png2swf tool..."
6731 if test "x${ZLIBMISSING}" = "xtrue"; then
6733 echo "Warning! Without zlib, you will not be able to read"
6734 echo "or write compressed Flash MX files!"
6736 echo "***************************************************"
6737 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
6739 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
6745 cat > confcache <<\EOF
6746 # This file is a shell script that caches the results of configure
6747 # tests run on this system so they can be shared between configure
6748 # scripts and configure runs. It is not useful on other systems.
6749 # If it contains results you don't want to keep, you may remove or edit it.
6751 # By default, configure uses ./config.cache as the cache file,
6752 # creating it if it does not exist already. You can give configure
6753 # the --cache-file=FILE option to use a different cache file; that is
6754 # what configure does when it calls configure scripts in
6755 # subdirectories, so they share the cache.
6756 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6757 # config.status only pays attention to the cache file if you give it the
6758 # --recheck option to rerun configure.
6761 # The following way of writing the cache mishandles newlines in values,
6762 # but we know of no workaround that is simple, portable, and efficient.
6763 # So, don't put newlines in cache variables' values.
6764 # Ultrix sh set writes to stderr and can't be redirected directly,
6765 # and sets the high bit in the cache file unless we assign to the vars.
6767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6769 # `set' does not quote correctly, so add quotes (double-quote substitution
6770 # turns \\\\ into \\, and sed turns \\ into \).
6772 -e "s/'/'\\\\''/g" \
6773 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6776 # `set' quotes correctly as required by POSIX, so do not add quotes.
6777 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6780 if cmp -s $cache_file confcache; then
6783 if test -w $cache_file; then
6784 echo "updating cache $cache_file"
6785 cat confcache > $cache_file
6787 echo "not updating unwritable cache $cache_file"
6792 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6794 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6795 # Let make expand exec_prefix.
6796 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6798 # Any assignment to VPATH causes Sun make to only execute
6799 # the first set of double-colon rules, so remove it if not needed.
6800 # If there is a colon in the path, we need to keep it.
6801 if test "x$srcdir" = x.; then
6802 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6805 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6807 DEFS=-DHAVE_CONFIG_H
6809 # Without the "./", some shells look in PATH for config.status.
6810 : ${CONFIG_STATUS=./config.status}
6812 echo creating $CONFIG_STATUS
6813 rm -f $CONFIG_STATUS
6814 cat > $CONFIG_STATUS <<EOF
6816 # Generated automatically by configure.
6817 # Run this file to recreate the current configuration.
6818 # This directory was configured as follows,
6819 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6821 # $0 $ac_configure_args
6823 # Compiler output produced by configure, useful for debugging
6824 # configure, is in ./config.log if it exists.
6826 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6829 case "\$ac_option" in
6830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6831 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6832 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6833 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6834 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6836 -help | --help | --hel | --he | --h)
6837 echo "\$ac_cs_usage"; exit 0 ;;
6838 *) echo "\$ac_cs_usage"; exit 1 ;;
6842 ac_given_srcdir=$srcdir
6843 ac_given_INSTALL="$INSTALL"
6845 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6847 cat >> $CONFIG_STATUS <<EOF
6849 # Protect against being on the right side of a sed subst in config.status.
6850 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6851 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6855 s%@CFLAGS@%$CFLAGS%g
6856 s%@CPPFLAGS@%$CPPFLAGS%g
6857 s%@CXXFLAGS@%$CXXFLAGS%g
6858 s%@FFLAGS@%$FFLAGS%g
6860 s%@LDFLAGS@%$LDFLAGS%g
6862 s%@exec_prefix@%$exec_prefix%g
6863 s%@prefix@%$prefix%g
6864 s%@program_transform_name@%$program_transform_name%g
6865 s%@bindir@%$bindir%g
6866 s%@sbindir@%$sbindir%g
6867 s%@libexecdir@%$libexecdir%g
6868 s%@datadir@%$datadir%g
6869 s%@sysconfdir@%$sysconfdir%g
6870 s%@sharedstatedir@%$sharedstatedir%g
6871 s%@localstatedir@%$localstatedir%g
6872 s%@libdir@%$libdir%g
6873 s%@includedir@%$includedir%g
6874 s%@oldincludedir@%$oldincludedir%g
6875 s%@infodir@%$infodir%g
6876 s%@mandir@%$mandir%g
6878 s%@host_alias@%$host_alias%g
6879 s%@host_cpu@%$host_cpu%g
6880 s%@host_vendor@%$host_vendor%g
6881 s%@host_os@%$host_os%g
6885 s%@RANLIB@%$RANLIB%g
6886 s%@SET_MAKE@%$SET_MAKE%g
6887 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6888 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6889 s%@INSTALL_DATA@%$INSTALL_DATA%g
6892 s%@build_alias@%$build_alias%g
6893 s%@build_cpu@%$build_cpu%g
6894 s%@build_vendor@%$build_vendor%g
6895 s%@build_os@%$build_os%g
6896 s%@OBJEXT@%$OBJEXT%g
6897 s%@EXEEXT@%$EXEEXT%g
6900 s%@LIBTOOL@%$LIBTOOL%g
6901 s%@UNCOMPRESS@%$UNCOMPRESS%g
6903 s%@target@%$target%g
6904 s%@target_alias@%$target_alias%g
6905 s%@target_cpu@%$target_cpu%g
6906 s%@target_vendor@%$target_vendor%g
6907 s%@target_os@%$target_os%g
6908 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
6909 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
6910 s%@PACKAGE@%$PACKAGE%g
6911 s%@VERSION@%$VERSION%g
6912 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
6913 s%@USE_GZIP@%$USE_GZIP%g
6914 s%@JPEG2SWF@%$JPEG2SWF%g
6915 s%@PNG2SWF@%$PNG2SWF%g
6920 cat >> $CONFIG_STATUS <<\EOF
6922 # Split the substitutions into bite-sized pieces for seds with
6923 # small command number limits, like on Digital OSF/1 and HP-UX.
6924 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6925 ac_file=1 # Number of current file.
6926 ac_beg=1 # First line for current file.
6927 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6930 while $ac_more_lines; do
6931 if test $ac_beg -gt 1; then
6932 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6934 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6936 if test ! -s conftest.s$ac_file; then
6938 rm -f conftest.s$ac_file
6940 if test -z "$ac_sed_cmds"; then
6941 ac_sed_cmds="sed -f conftest.s$ac_file"
6943 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6945 ac_file=`expr $ac_file + 1`
6947 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6950 if test -z "$ac_sed_cmds"; then
6955 cat >> $CONFIG_STATUS <<EOF
6957 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
6959 cat >> $CONFIG_STATUS <<\EOF
6960 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6961 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6963 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6964 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6965 *) ac_file_in="${ac_file}.in" ;;
6968 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6970 # Remove last slash and all that follows it. Not all systems have dirname.
6971 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6973 # The file is in a subdirectory.
6974 test ! -d "$ac_dir" && mkdir "$ac_dir"
6975 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6976 # A "../" for each directory in $ac_dir_suffix.
6977 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6979 ac_dir_suffix= ac_dots=
6982 case "$ac_given_srcdir" in
6984 if test -z "$ac_dots"; then top_srcdir=.
6985 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6986 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6988 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6989 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6992 case "$ac_given_INSTALL" in
6993 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6994 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6997 echo creating "$ac_file"
6999 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7001 *Makefile*) ac_comsub="1i\\
7002 # $configure_input" ;;
7006 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7008 s%@configure_input@%$configure_input%g
7009 s%@srcdir@%$srcdir%g
7010 s%@top_srcdir@%$top_srcdir%g
7011 s%@INSTALL@%$INSTALL%g
7012 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7016 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7017 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7019 # ac_d sets the value in "#define NAME VALUE" lines.
7020 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7021 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7024 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7025 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7026 ac_uB='\([ ]\)%\1#\2define\3'
7029 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7030 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7031 ac_eB='$%\1#\2define\3'
7035 if test "${CONFIG_HEADERS+set}" != set; then
7037 cat >> $CONFIG_STATUS <<EOF
7038 CONFIG_HEADERS="config.h"
7040 cat >> $CONFIG_STATUS <<\EOF
7042 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7045 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7046 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7047 *) ac_file_in="${ac_file}.in" ;;
7050 echo creating $ac_file
7052 rm -f conftest.frag conftest.in conftest.out
7053 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7054 cat $ac_file_inputs > conftest.in
7058 # Transform confdefs.h into a sed script conftest.vals that substitutes
7059 # the proper values into config.h.in to produce config.h. And first:
7060 # Protect against being on the right side of a sed subst in config.status.
7061 # Protect against being in an unquoted here document in config.status.
7063 cat > conftest.hdr <<\EOF
7066 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7070 sed -n -f conftest.hdr confdefs.h > conftest.vals
7073 # This sed command replaces #undef with comments. This is necessary, for
7074 # example, in the case of _POSIX_SOURCE, which is predefined and required
7075 # on some systems where configure will not decide to define it.
7076 cat >> conftest.vals <<\EOF
7077 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7080 # Break up conftest.vals because some shells have a limit on
7081 # the size of here documents, and old seds have small limits too.
7086 ac_lines=`grep -c . conftest.vals`
7087 # grep -c gives empty output for an empty file on some AIX systems.
7088 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7089 # Write a limited-size here document to conftest.frag.
7090 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7091 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7093 sed -f conftest.frag conftest.in > conftest.out
7095 mv conftest.out conftest.in
7097 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7099 mv conftest.tail conftest.vals
7103 cat >> $CONFIG_STATUS <<\EOF
7104 rm -f conftest.frag conftest.h
7105 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7106 cat conftest.in >> conftest.h
7108 if cmp -s $ac_file conftest.h 2>/dev/null; then
7109 echo "$ac_file is unchanged"
7112 # Remove last slash and all that follows it. Not all systems have dirname.
7113 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7114 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7115 # The file is in a subdirectory.
7116 test ! -d "$ac_dir" && mkdir "$ac_dir"
7119 mv conftest.h $ac_file
7124 cat >> $CONFIG_STATUS <<EOF
7127 cat >> $CONFIG_STATUS <<\EOF
7131 chmod +x $CONFIG_STATUS
7132 rm -fr confdefs* $ac_clean_files
7133 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7136 if test "x${srcdir}" != "x."; then
7137 echo "Warning: --srcdir is not supported"