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-optimizations turn on compiler optimizations (recommended for avi2swf)"
21 --disable-mp3 don't compile any mp3 code in"
23 --enable-shared[=PKGS] build shared libraries [default=yes]"
25 --enable-static[=PKGS] build static libraries [default=yes]"
27 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31 # Find the correct PATH separator. Usually this is `:', but
32 # DJGPP uses `;' like DOS.
33 if test "X${PATH_SEPARATOR+set}" != Xset; then
34 UNAME=${UNAME-`uname 2>/dev/null`}
36 *-DOS) lt_cv_sys_path_separator=';' ;;
37 *) lt_cv_sys_path_separator=':' ;;
39 PATH_SEPARATOR=$lt_cv_sys_path_separator
43 # Check that we are running under the correct shell.
44 SHELL=${CONFIG_SHELL-/bin/sh}
48 # Remove one level of quotation (which was required for Make).
49 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
54 if test "X$1" = X--no-reexec; then
55 # Discard the --no-reexec flag, and continue.
57 elif test "X$1" = X--fallback-echo; then
58 # Avoid inline document here, it may be left over
60 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
61 # Yippee, $echo works!
64 # Restart under the correct shell.
65 exec $SHELL "$0" --no-reexec ${1+"$@"}
68 if test "X$1" = X--fallback-echo; then
69 # used as fallback echo
77 # The HP-UX ksh and POSIX shell print the target directory to stdout
79 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
81 if test -z "$ECHO"; then
82 if test "X${echo_test_string+set}" != Xset; then
83 # find a string as large as possible, as long as the shell can cope with it
84 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
85 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
86 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
87 echo_test_string="`eval $cmd`" &&
88 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
95 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
96 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
97 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # The Solaris, AIX, and Digital Unix default echo programs unquote
101 # backslashes. This makes it impossible to quote backslashes using
102 # echo "$something" | sed 's/\\/\\\\/g'
104 # So, first we look for a working echo in the user's PATH.
106 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
107 for dir in $PATH /usr/ucb; do
108 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
109 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
110 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
111 test "X$echo_testing_string" = "X$echo_test_string"; then
118 if test "X$echo" = Xecho; then
119 # We didn't find a better echo, so look for alternatives.
120 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
121 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 # This shell has a builtin print -r that does the trick.
125 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
126 test "X$CONFIG_SHELL" != X/bin/ksh; then
127 # If we have ksh, try running configure again with it.
128 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
129 export ORIGINAL_CONFIG_SHELL
130 CONFIG_SHELL=/bin/ksh
132 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
136 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
137 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
138 test "X$echo_testing_string" = "X$echo_test_string"; then
141 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142 test "X$echo_testing_string" = 'X\t' &&
143 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144 test "X$echo_testing_string" = "X$echo_test_string"; then
145 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
147 SHELL="$CONFIG_SHELL"
149 echo="$CONFIG_SHELL $0 --fallback-echo"
150 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
151 test "X$echo_testing_string" = 'X\t' &&
152 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
153 test "X$echo_testing_string" = "X$echo_test_string"; then
154 echo="$CONFIG_SHELL $0 --fallback-echo"
156 # maybe with a smaller string...
159 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
160 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
167 if test "$prev" != 'sed 50q "$0"'; then
168 echo_test_string=`eval $prev`
169 export echo_test_string
170 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
172 # Oops. We lost completely, so just stick with echo.
181 # Copy echo and quote the copy suitably for passing to libtool from
182 # the Makefile, instead of quoting the original, which is used later.
184 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
185 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
190 --disable-libtool-lock avoid locking (might break parallel builds)"
192 --with-pic try to use only PIC/non-PIC objects [default=use both]"
194 # Initialize some variables set by options.
195 # The variables have the same names as the options, with
196 # dashes changed to underlines.
198 cache_file=./config.cache
207 program_transform_name=s,x,x,
215 bindir='${exec_prefix}/bin'
216 sbindir='${exec_prefix}/sbin'
217 libexecdir='${exec_prefix}/libexec'
218 datadir='${prefix}/share'
219 sysconfdir='${prefix}/etc'
220 sharedstatedir='${prefix}/com'
221 localstatedir='${prefix}/var'
222 libdir='${exec_prefix}/lib'
223 includedir='${prefix}/include'
224 oldincludedir='/usr/include'
225 infodir='${prefix}/info'
226 mandir='${prefix}/man'
228 # Initialize some other variables.
231 SHELL=${CONFIG_SHELL-/bin/sh}
232 # Maximum number of lines to put in a shell here document.
239 # If the previous option needs an argument, assign it.
240 if test -n "$ac_prev"; then
241 eval "$ac_prev=\$ac_option"
247 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
251 # Accept the important Cygnus configure options, so we can diagnose typos.
255 -bindir | --bindir | --bindi | --bind | --bin | --bi)
257 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
258 bindir="$ac_optarg" ;;
260 -build | --build | --buil | --bui | --bu)
262 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
263 build="$ac_optarg" ;;
265 -cache-file | --cache-file | --cache-fil | --cache-fi \
266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
267 ac_prev=cache_file ;;
268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
270 cache_file="$ac_optarg" ;;
272 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
274 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
276 datadir="$ac_optarg" ;;
278 -disable-* | --disable-*)
279 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
280 # Reject names that are not valid shell variable names.
281 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
282 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
284 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
285 eval "enable_${ac_feature}=no" ;;
287 -enable-* | --enable-*)
288 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
289 # Reject names that are not valid shell variable names.
290 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
291 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
293 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
298 eval "enable_${ac_feature}='$ac_optarg'" ;;
300 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
301 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
302 | --exec | --exe | --ex)
303 ac_prev=exec_prefix ;;
304 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
305 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
306 | --exec=* | --exe=* | --ex=*)
307 exec_prefix="$ac_optarg" ;;
309 -gas | --gas | --ga | --g)
310 # Obsolete; use --with-gas.
313 -help | --help | --hel | --he)
314 # Omit some internal or obsolete options to make the list less imposing.
315 # This message is too long to be a string in the A/UX 3.1 sh.
317 Usage: configure [options] [host]
318 Options: [defaults in brackets after descriptions]
320 --cache-file=FILE cache test results in FILE
321 --help print this message
322 --no-create do not create output files
323 --quiet, --silent do not print \`checking...' messages
324 --version print the version of autoconf that created configure
325 Directory and file names:
326 --prefix=PREFIX install architecture-independent files in PREFIX
328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
330 --bindir=DIR user executables in DIR [EPREFIX/bin]
331 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
332 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
333 --datadir=DIR read-only architecture-independent data in DIR
335 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
336 --sharedstatedir=DIR modifiable architecture-independent data in DIR
338 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
339 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
340 --includedir=DIR C header files in DIR [PREFIX/include]
341 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
342 --infodir=DIR info documentation in DIR [PREFIX/info]
343 --mandir=DIR man documentation in DIR [PREFIX/man]
344 --srcdir=DIR find the sources in DIR [configure dir or ..]
345 --program-prefix=PREFIX prepend PREFIX to installed program names
346 --program-suffix=SUFFIX append SUFFIX to installed program names
347 --program-transform-name=PROGRAM
348 run sed PROGRAM on installed program names
352 --build=BUILD configure for building on BUILD [BUILD=HOST]
353 --host=HOST configure for HOST [guessed]
354 --target=TARGET configure for TARGET [TARGET=HOST]
355 Features and packages:
356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
358 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
360 --x-includes=DIR X include files are in DIR
361 --x-libraries=DIR X library files are in DIR
363 if test -n "$ac_help"; then
364 echo "--enable and --with options recognized:$ac_help"
368 -host | --host | --hos | --ho)
370 -host=* | --host=* | --hos=* | --ho=*)
373 -includedir | --includedir | --includedi | --included | --include \
374 | --includ | --inclu | --incl | --inc)
375 ac_prev=includedir ;;
376 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
377 | --includ=* | --inclu=* | --incl=* | --inc=*)
378 includedir="$ac_optarg" ;;
380 -infodir | --infodir | --infodi | --infod | --info | --inf)
382 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
383 infodir="$ac_optarg" ;;
385 -libdir | --libdir | --libdi | --libd)
387 -libdir=* | --libdir=* | --libdi=* | --libd=*)
388 libdir="$ac_optarg" ;;
390 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
391 | --libexe | --libex | --libe)
392 ac_prev=libexecdir ;;
393 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
394 | --libexe=* | --libex=* | --libe=*)
395 libexecdir="$ac_optarg" ;;
397 -localstatedir | --localstatedir | --localstatedi | --localstated \
398 | --localstate | --localstat | --localsta | --localst \
399 | --locals | --local | --loca | --loc | --lo)
400 ac_prev=localstatedir ;;
401 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
402 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
403 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
404 localstatedir="$ac_optarg" ;;
406 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
408 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
409 mandir="$ac_optarg" ;;
412 # Obsolete; use --without-fp.
415 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
419 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
420 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
423 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
424 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
425 | --oldin | --oldi | --old | --ol | --o)
426 ac_prev=oldincludedir ;;
427 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
428 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
429 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
430 oldincludedir="$ac_optarg" ;;
432 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
434 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
435 prefix="$ac_optarg" ;;
437 -program-prefix | --program-prefix | --program-prefi | --program-pref \
438 | --program-pre | --program-pr | --program-p)
439 ac_prev=program_prefix ;;
440 -program-prefix=* | --program-prefix=* | --program-prefi=* \
441 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
442 program_prefix="$ac_optarg" ;;
444 -program-suffix | --program-suffix | --program-suffi | --program-suff \
445 | --program-suf | --program-su | --program-s)
446 ac_prev=program_suffix ;;
447 -program-suffix=* | --program-suffix=* | --program-suffi=* \
448 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
449 program_suffix="$ac_optarg" ;;
451 -program-transform-name | --program-transform-name \
452 | --program-transform-nam | --program-transform-na \
453 | --program-transform-n | --program-transform- \
454 | --program-transform | --program-transfor \
455 | --program-transfo | --program-transf \
456 | --program-trans | --program-tran \
457 | --progr-tra | --program-tr | --program-t)
458 ac_prev=program_transform_name ;;
459 -program-transform-name=* | --program-transform-name=* \
460 | --program-transform-nam=* | --program-transform-na=* \
461 | --program-transform-n=* | --program-transform-=* \
462 | --program-transform=* | --program-transfor=* \
463 | --program-transfo=* | --program-transf=* \
464 | --program-trans=* | --program-tran=* \
465 | --progr-tra=* | --program-tr=* | --program-t=*)
466 program_transform_name="$ac_optarg" ;;
468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
469 | -silent | --silent | --silen | --sile | --sil)
472 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
474 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
476 sbindir="$ac_optarg" ;;
478 -sharedstatedir | --sharedstatedir | --sharedstatedi \
479 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
480 | --sharedst | --shareds | --shared | --share | --shar \
482 ac_prev=sharedstatedir ;;
483 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
484 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
485 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
487 sharedstatedir="$ac_optarg" ;;
489 -site | --site | --sit)
491 -site=* | --site=* | --sit=*)
494 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
496 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
497 srcdir="$ac_optarg" ;;
499 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
500 | --syscon | --sysco | --sysc | --sys | --sy)
501 ac_prev=sysconfdir ;;
502 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
503 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
504 sysconfdir="$ac_optarg" ;;
506 -target | --target | --targe | --targ | --tar | --ta | --t)
508 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
509 target="$ac_optarg" ;;
511 -v | -verbose | --verbose | --verbos | --verbo | --verb)
514 -version | --version | --versio | --versi | --vers)
515 echo "configure generated by autoconf version 2.13"
519 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
520 # Reject names that are not valid shell variable names.
521 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
522 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
524 ac_package=`echo $ac_package| sed 's/-/_/g'`
529 eval "with_${ac_package}='$ac_optarg'" ;;
531 -without-* | --without-*)
532 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
533 # Reject names that are not valid shell variable names.
534 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
535 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
537 ac_package=`echo $ac_package| sed 's/-/_/g'`
538 eval "with_${ac_package}=no" ;;
541 # Obsolete; use --with-x.
544 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
545 | --x-incl | --x-inc | --x-in | --x-i)
546 ac_prev=x_includes ;;
547 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
548 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
549 x_includes="$ac_optarg" ;;
551 -x-libraries | --x-libraries | --x-librarie | --x-librari \
552 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
553 ac_prev=x_libraries ;;
554 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
555 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
556 x_libraries="$ac_optarg" ;;
558 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
562 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
563 echo "configure: warning: $ac_option: invalid host type" 1>&2
565 if test "x$nonopt" != xNONE; then
566 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
574 if test -n "$ac_prev"; then
575 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
578 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
580 # File descriptor usage:
583 # 2 errors and warnings
584 # 3 some systems may open it to /dev/tty
585 # 4 used on the Kubota Titan
586 # 6 checking for... messages and results
587 # 5 compiler messages saved in config.log
588 if test "$silent" = yes; then
596 This file contains any messages produced by compilers while
597 running configure, to aid debugging if configure makes a mistake.
600 # Strip out --no-create and --no-recursion so they do not pile up.
601 # Also quote any args containing shell metacharacters.
606 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
607 | --no-cr | --no-c) ;;
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
610 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
611 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
612 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
617 # Only set these to C if already set. These must not be set unconditionally
618 # because not all systems understand e.g. LANG=C (notably SCO).
619 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
620 # Non-C LC_CTYPE values break the ctype check.
621 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
622 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
623 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
624 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
627 rm -rf conftest* confdefs.h
628 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
631 # A filename unique to this package, relative to the directory that
632 # configure is in, which we can look for to find out if srcdir is correct.
635 # Find the source files, if location was not specified.
636 if test -z "$srcdir"; then
637 ac_srcdir_defaulted=yes
638 # Try the directory containing this script, then its parent.
640 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
641 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
643 if test ! -r $srcdir/$ac_unique_file; then
647 ac_srcdir_defaulted=no
649 if test ! -r $srcdir/$ac_unique_file; then
650 if test "$ac_srcdir_defaulted" = yes; then
651 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
653 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
656 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
658 # Prefer explicitly selected file to automatically selected ones.
659 if test -z "$CONFIG_SITE"; then
660 if test "x$prefix" != xNONE; then
661 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
663 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
666 for ac_site_file in $CONFIG_SITE; do
667 if test -r "$ac_site_file"; then
668 echo "loading site script $ac_site_file"
673 if test -r "$cache_file"; then
674 echo "loading cache $cache_file"
677 echo "creating cache $cache_file"
682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
683 ac_cpp='$CPP $CPPFLAGS'
684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
686 cross_compiling=$ac_cv_prog_cc_cross
690 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
691 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
692 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
699 ac_n= ac_c='\c' ac_t=
704 # Check whether --enable-checkmem or --disable-checkmem was given.
705 if test "${enable_checkmem+set}" = set; then
706 enableval="$enable_checkmem"
710 # Check whether --enable-debug or --disable-debug was given.
711 if test "${enable_debug+set}" = set; then
712 enableval="$enable_debug"
716 # Check whether --enable-optimizations or --disable-optimizations was given.
717 if test "${enable_optimizations+set}" = set; then
718 enableval="$enable_optimizations"
722 # Check whether --enable-mp3 or --disable-mp3 was given.
723 if test "${enable_mp3+set}" = set; then
724 enableval="$enable_mp3"
730 VERSION=2003-08-02-1416
736 if test "x$CHECKMEM" '!=' "x";then
739 if test "x$DEBUG" '!=' "x";then
740 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CFLAGS"
741 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CXXFLAGS"
742 STRIP="@echo debug enabled, not stripping "
745 else if test "x$OPTIMIZE" '!=' "x"; then
746 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -Winline -O3 -fomit-frame-pointer $CFLAGS"
747 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -Winline -O3 -fomit-frame-pointer $CXXFLAGS"
749 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CFLAGS"
750 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CXXFLAGS"
754 export PACKAGE VERSION CFLAGS CXXFLAGS
757 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
758 if test -f $ac_dir/install-sh; then
760 ac_install_sh="$ac_aux_dir/install-sh -c"
762 elif test -f $ac_dir/install.sh; then
764 ac_install_sh="$ac_aux_dir/install.sh -c"
768 if test -z "$ac_aux_dir"; then
769 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
771 ac_config_guess=$ac_aux_dir/config.guess
772 ac_config_sub=$ac_aux_dir/config.sub
773 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
776 # Make sure we can run config.sub.
777 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
778 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
781 echo $ac_n "checking host system type""... $ac_c" 1>&6
782 echo "configure:783: checking host system type" >&5
785 case "$host_alias" in
789 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
790 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
792 *) host_alias=$nonopt ;;
796 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
797 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
798 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
799 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
800 echo "$ac_t""$host" 1>&6
806 CFLAGS="$CFLAGS -fno-rtti"
807 CXXFLAGS="$CXXFLAGS -fno-rtti"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc; ac_word=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 if test -n "$CC"; then
848 ac_cv_prog_CC="$CC" # Let the user override the test.
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
853 for ac_dir in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy $ac_cv_prog_CC
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
874 set dummy "$ac_dir/$ac_word" "$@"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CC"; then
899 ac_cv_prog_CC="$CC" # Let the user override the test.
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 cat > conftest.$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943 ac_cv_prog_cc_works=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (./conftest; exit) 2>/dev/null; then
946 ac_cv_prog_cc_cross=no
948 ac_cv_prog_cc_cross=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 ac_cv_prog_cc_works=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.c <<EOF
982 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
997 ac_test_CFLAGS="${CFLAGS+set}"
998 ac_save_CFLAGS="$CFLAGS"
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1025 if test "$GCC" = yes; then
1032 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1034 # Extract the first word of "$ac_prog", so it can be a program name with args.
1035 set dummy $ac_prog; ac_word=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$CXX"; then
1042 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1046 for ac_dir in $ac_dummy; do
1047 test -z "$ac_dir" && ac_dir=.
1048 if test -f $ac_dir/$ac_word; then
1049 ac_cv_prog_CXX="$ac_prog"
1056 CXX="$ac_cv_prog_CXX"
1057 if test -n "$CXX"; then
1058 echo "$ac_t""$CXX" 1>&6
1060 echo "$ac_t""no" 1>&6
1063 test -n "$CXX" && break
1065 test -n "$CXX" || CXX="gcc"
1068 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1073 ac_cpp='$CXXCPP $CPPFLAGS'
1074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1076 cross_compiling=$ac_cv_prog_cxx_cross
1078 cat > conftest.$ac_ext << EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1083 int main(){return(0);}
1085 if { (eval echo configure:1086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1086 ac_cv_prog_cxx_works=yes
1087 # If we can't run a trivial program, we are probably using a cross compiler.
1088 if (./conftest; exit) 2>/dev/null; then
1089 ac_cv_prog_cxx_cross=no
1091 ac_cv_prog_cxx_cross=yes
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1096 ac_cv_prog_cxx_works=no
1100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1101 ac_cpp='$CPP $CPPFLAGS'
1102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1104 cross_compiling=$ac_cv_prog_cc_cross
1106 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1107 if test $ac_cv_prog_cxx_works = no; then
1108 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1110 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1112 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1113 cross_compiling=$ac_cv_prog_cxx_cross
1115 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether we are using GNU C++" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 cat > conftest.C <<EOF
1125 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1132 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1134 if test $ac_cv_prog_gxx = yes; then
1140 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141 ac_save_CXXFLAGS="$CXXFLAGS"
1143 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150 ac_cv_prog_cxx_g=yes
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159 if test "$ac_test_CXXFLAGS" = set; then
1160 CXXFLAGS="$ac_save_CXXFLAGS"
1161 elif test $ac_cv_prog_cxx_g = yes; then
1162 if test "$GXX" = yes; then
1168 if test "$GXX" = yes; then
1176 if test "x$CHECKMEM" '!=' "x";then
1180 #unset ac_cv_prog_CC
1181 #unset ac_cv_prog_CXX
1185 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1186 echo "configure:1187: checking how to run the C preprocessor" >&5
1187 # On Suns, sometimes $CPP names a directory.
1188 if test -n "$CPP" && test -d "$CPP"; then
1191 if test -z "$CPP"; then
1192 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 # This must be in double quotes, not single quotes, because CPP may get
1196 # substituted into the Makefile and "${CC-cc}" will confuse make.
1198 # On the NeXT, cc -E runs the code through the compiler's parser,
1199 # not just through cpp.
1200 cat > conftest.$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1207 { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1209 if test -z "$ac_err"; then
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1216 CPP="${CC-cc} -E -traditional-cpp"
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1224 { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1226 if test -z "$ac_err"; then
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1233 CPP="${CC-cc} -nologo -E"
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1241 { (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1243 if test -z "$ac_err"; then
1247 echo "configure: failed program was:" >&5
1248 cat conftest.$ac_ext >&5
1257 ac_cv_prog_CPP="$CPP"
1259 CPP="$ac_cv_prog_CPP"
1261 ac_cv_prog_CPP="$CPP"
1263 echo "$ac_t""$CPP" 1>&6
1266 # Extract the first word of "ranlib", so it can be a program name with args.
1267 set dummy ranlib; ac_word=$2
1268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269 echo "configure:1270: checking for $ac_word" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 if test -n "$RANLIB"; then
1274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1278 for ac_dir in $ac_dummy; do
1279 test -z "$ac_dir" && ac_dir=.
1280 if test -f $ac_dir/$ac_word; then
1281 ac_cv_prog_RANLIB="ranlib"
1286 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1289 RANLIB="$ac_cv_prog_RANLIB"
1290 if test -n "$RANLIB"; then
1291 echo "$ac_t""$RANLIB" 1>&6
1293 echo "$ac_t""no" 1>&6
1296 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1297 echo "configure:1298: checking whether ${MAKE-make} sets \${MAKE}" >&5
1298 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1299 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 cat > conftestmake <<\EOF
1304 @echo 'ac_maketemp="${MAKE}"'
1306 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1307 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1308 if test -n "$ac_maketemp"; then
1309 eval ac_cv_prog_make_${ac_make}_set=yes
1311 eval ac_cv_prog_make_${ac_make}_set=no
1315 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1316 echo "$ac_t""yes" 1>&6
1319 echo "$ac_t""no" 1>&6
1320 SET_MAKE="MAKE=${MAKE-make}"
1323 # Find a good install program. We prefer a C program (faster),
1324 # so one script is as good as another. But avoid the broken or
1325 # incompatible versions:
1326 # SysV /etc/install, /usr/sbin/install
1327 # SunOS /usr/etc/install
1328 # IRIX /sbin/install
1330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1333 # ./install, which can be erroneously created by make from ./install.sh.
1334 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1335 echo "configure:1336: checking for a BSD compatible install" >&5
1336 if test -z "$INSTALL"; then
1337 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1341 for ac_dir in $PATH; do
1342 # Account for people who put trailing slashes in PATH elements.
1344 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1346 # OSF1 and SCO ODT 3.0 have their own names for install.
1347 # Don't use installbsd from OSF since it installs stuff as root
1349 for ac_prog in ginstall scoinst install; do
1350 if test -f $ac_dir/$ac_prog; then
1351 if test $ac_prog = install &&
1352 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1353 # AIX install. It has an incompatible calling convention.
1356 ac_cv_path_install="$ac_dir/$ac_prog -c"
1367 if test "${ac_cv_path_install+set}" = set; then
1368 INSTALL="$ac_cv_path_install"
1370 # As a last resort, use the slow shell script. We don't cache a
1371 # path for INSTALL within a source directory, because that will
1372 # break other packages using the cache if that directory is
1373 # removed, or if the path is relative.
1374 INSTALL="$ac_install_sh"
1377 echo "$ac_t""$INSTALL" 1>&6
1379 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1380 # It thinks the first close brace ends the variable substitution.
1381 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1383 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1385 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1387 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1388 echo "configure:1389: checking whether ln -s works" >&5
1389 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1393 if ln -s X conftestdata 2>/dev/null
1396 ac_cv_prog_LN_S="ln -s"
1401 LN_S="$ac_cv_prog_LN_S"
1402 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1403 echo "$ac_t""yes" 1>&6
1405 echo "$ac_t""no" 1>&6
1408 # Find the correct PATH separator. Usually this is `:', but
1409 # DJGPP uses `;' like DOS.
1410 if test "X${PATH_SEPARATOR+set}" != Xset; then
1411 UNAME=${UNAME-`uname 2>/dev/null`}
1413 *-DOS) lt_cv_sys_path_separator=';' ;;
1414 *) lt_cv_sys_path_separator=':' ;;
1416 PATH_SEPARATOR=$lt_cv_sys_path_separator
1419 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1420 echo "configure:1421: checking for Cygwin environment" >&5
1421 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1431 #define __CYGWIN__ __CYGWIN32__
1436 if { (eval echo configure:1437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1449 echo "$ac_t""$ac_cv_cygwin" 1>&6
1451 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1452 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1453 echo "configure:1454: checking for mingw32 environment" >&5
1454 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1465 if { (eval echo configure:1466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1478 echo "$ac_t""$ac_cv_mingw32" 1>&6
1480 test "$ac_cv_mingw32" = yes && MINGW32=yes
1481 # Check whether --enable-shared or --disable-shared was given.
1482 if test "${enable_shared+set}" = set; then
1483 enableval="$enable_shared"
1484 p=${PACKAGE-default}
1486 yes) enable_shared=yes ;;
1487 no) enable_shared=no ;;
1490 # Look at the argument we got. We use all the common list separators.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1492 for pkg in $enableval; do
1493 if test "X$pkg" = "X$p"; then
1504 # Check whether --enable-static or --disable-static was given.
1505 if test "${enable_static+set}" = set; then
1506 enableval="$enable_static"
1507 p=${PACKAGE-default}
1509 yes) enable_static=yes ;;
1510 no) enable_static=no ;;
1513 # Look at the argument we got. We use all the common list separators.
1514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1515 for pkg in $enableval; do
1516 if test "X$pkg" = "X$p"; then
1527 # Check whether --enable-fast-install or --disable-fast-install was given.
1528 if test "${enable_fast_install+set}" = set; then
1529 enableval="$enable_fast_install"
1530 p=${PACKAGE-default}
1532 yes) enable_fast_install=yes ;;
1533 no) enable_fast_install=no ;;
1535 enable_fast_install=no
1536 # Look at the argument we got. We use all the common list separators.
1537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1538 for pkg in $enableval; do
1539 if test "X$pkg" = "X$p"; then
1540 enable_fast_install=yes
1547 enable_fast_install=yes
1550 echo $ac_n "checking build system type""... $ac_c" 1>&6
1551 echo "configure:1552: checking build system type" >&5
1554 case "$build_alias" in
1557 NONE) build_alias=$host_alias ;;
1558 *) build_alias=$nonopt ;;
1562 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1563 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566 echo "$ac_t""$build" 1>&6
1568 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1569 if test "${with_gnu_ld+set}" = set; then
1570 withval="$with_gnu_ld"
1571 test "$withval" = no || with_gnu_ld=yes
1577 if test "$GCC" = yes; then
1578 # Check if gcc -print-prog-name=ld gives a path.
1579 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1580 echo "configure:1581: checking for ld used by GCC" >&5
1583 # gcc leaves a trailing carriage return which upsets mingw
1584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1589 # Accept absolute paths.
1590 [\\/]* | [A-Za-z]:[\\/]*)
1591 re_direlt='/[^/][^/]*/\.\./'
1592 # Canonicalize the path of ld
1593 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1594 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1595 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1597 test -z "$LD" && LD="$ac_prog"
1600 # If it fails, then pretend we aren't using GCC.
1604 # If it is relative, then search for the first ld in PATH.
1608 elif test "$with_gnu_ld" = yes; then
1609 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1610 echo "configure:1611: checking for GNU ld" >&5
1612 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1613 echo "configure:1614: checking for non-GNU ld" >&5
1615 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 if test -z "$LD"; then
1619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1620 for ac_dir in $PATH; do
1621 test -z "$ac_dir" && ac_dir=.
1622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1623 lt_cv_path_LD="$ac_dir/$ac_prog"
1624 # Check to see if the program is GNU ld. I'd rather use --version,
1625 # but apparently some GNU ld's only accept -v.
1626 # Break only if it was the GNU/non-GNU ld that we prefer.
1627 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1628 test "$with_gnu_ld" != no && break
1630 test "$with_gnu_ld" != yes && break
1636 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1641 if test -n "$LD"; then
1642 echo "$ac_t""$LD" 1>&6
1644 echo "$ac_t""no" 1>&6
1646 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1647 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1648 echo "configure:1649: checking if the linker ($LD) is GNU ld" >&5
1649 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1653 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1654 lt_cv_prog_gnu_ld=yes
1656 lt_cv_prog_gnu_ld=no
1660 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1661 with_gnu_ld=$lt_cv_prog_gnu_ld
1664 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1665 echo "configure:1666: checking for $LD option to reload object files" >&5
1666 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 lt_cv_ld_reload_flag='-r'
1672 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1673 reload_flag=$lt_cv_ld_reload_flag
1674 test -n "$reload_flag" && reload_flag=" $reload_flag"
1676 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1677 echo "configure:1678: checking for BSD-compatible nm" >&5
1678 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 if test -n "$NM"; then
1682 # Let the user override the test.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1686 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1687 test -z "$ac_dir" && ac_dir=.
1688 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1689 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1690 # Check to see if the nm accepts a BSD-compat flag.
1691 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1692 # nm: unknown option "B" ignored
1693 # Tru64's nm complains that /dev/null is an invalid object file
1694 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1695 lt_cv_path_NM="$tmp_nm -B"
1697 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1698 lt_cv_path_NM="$tmp_nm -p"
1701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1702 continue # so that we can try to find one that supports BSD flags
1707 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1712 echo "$ac_t""$NM" 1>&6
1714 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1715 echo "configure:1716: checking how to recognise dependant libraries" >&5
1716 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 lt_cv_file_magic_cmd='$MAGIC_CMD'
1720 lt_cv_file_magic_test_file=
1721 lt_cv_deplibs_check_method='unknown'
1722 # Need to set the preceding variable on all platforms that support
1723 # interlibrary dependencies.
1724 # 'none' -- dependencies not supported.
1725 # `unknown' -- same as none, but documents that we really don't know.
1726 # 'pass_all' -- all dependencies passed with no checks.
1727 # 'test_compile' -- check by making test program.
1728 # 'file_magic [[regex]]' -- check by looking for files in library path
1729 # which responds to the $file_magic_cmd with a given egrep regex.
1730 # If you have `file' or equivalent on your system and you're not sure
1731 # whether `pass_all' will *always* work, you probably want this one.
1735 lt_cv_deplibs_check_method=pass_all
1739 lt_cv_deplibs_check_method=pass_all
1743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1744 lt_cv_file_magic_cmd='/usr/bin/file -L'
1745 lt_cv_file_magic_test_file=/shlib/libc.so
1748 cygwin* | mingw* | pw32*)
1749 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1750 lt_cv_file_magic_cmd='$OBJDUMP -f'
1753 darwin* | rhapsody*)
1754 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1755 lt_cv_file_magic_cmd='/usr/bin/file -L'
1757 rhapsody* | darwin1.[012])
1758 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1761 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1767 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1770 # Not sure whether the presence of OpenBSD here was a mistake.
1771 # Let's accept both of them until this is cleared up.
1772 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1773 lt_cv_file_magic_cmd=/usr/bin/file
1774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1778 lt_cv_deplibs_check_method=pass_all
1783 lt_cv_deplibs_check_method=pass_all
1787 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1788 lt_cv_file_magic_cmd=/usr/bin/file
1789 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1792 irix5* | irix6* | nonstopux*)
1794 irix5* | nonstopux*)
1795 # this will be overridden with pass_all, but let us keep it just in case
1796 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1800 *-32|*"-32 ") libmagic=32-bit;;
1801 *-n32|*"-n32 ") libmagic=N32;;
1802 *-64|*"-64 ") libmagic=64-bit;;
1803 *) libmagic=never-match;;
1805 # this will be overridden with pass_all, but let us keep it just in case
1806 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1809 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1810 lt_cv_deplibs_check_method=pass_all
1813 # This must be Linux ELF.
1816 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1817 lt_cv_deplibs_check_method=pass_all ;;
1819 # glibc up to 2.1.1 does not perform some relocations on ARM
1820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1822 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1826 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1827 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1829 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1835 lt_cv_file_magic_cmd=/usr/bin/file
1836 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1840 lt_cv_file_magic_cmd=/usr/bin/file
1841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1845 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1849 osf3* | osf4* | osf5*)
1850 # this will be overridden with pass_all, but let us keep it just in case
1851 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1852 lt_cv_file_magic_test_file=/shlib/libc.so
1853 lt_cv_deplibs_check_method=pass_all
1857 lt_cv_deplibs_check_method=pass_all
1861 lt_cv_deplibs_check_method=pass_all
1862 lt_cv_file_magic_test_file=/lib/libc.so
1865 sysv5uw[78]* | sysv4*uw2*)
1866 lt_cv_deplibs_check_method=pass_all
1869 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1870 case $host_vendor in
1872 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]'
1873 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1876 lt_cv_deplibs_check_method=pass_all
1879 lt_cv_file_magic_cmd='/bin/file'
1880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1883 lt_cv_file_magic_cmd='/bin/file'
1884 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1885 lt_cv_file_magic_test_file=/lib/libc.so
1893 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1894 file_magic_cmd=$lt_cv_file_magic_cmd
1895 deplibs_check_method=$lt_cv_deplibs_check_method
1897 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1898 echo "configure:1899: checking for object suffix" >&5
1899 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1903 echo 'int i = 1;' > conftest.$ac_ext
1904 if { (eval echo configure:1905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1905 for ac_file in conftest.*; do
1908 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1912 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1917 echo "$ac_t""$ac_cv_objext" 1>&6
1918 OBJEXT=$ac_cv_objext
1919 ac_objext=$ac_cv_objext
1923 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1924 echo "configure:1925: checking for executable suffix" >&5
1925 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1932 echo 'int main () { return 0; }' > conftest.$ac_ext
1934 if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1935 for file in conftest.*; do
1937 *.c | *.o | *.obj) ;;
1938 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1942 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1945 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1950 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1951 echo "$ac_t""${ac_cv_exeext}" 1>&6
1954 if test $host != $build; then
1955 ac_tool_prefix=${host_alias}-
1963 # Check for command to grab the raw symbol name followed by C symbol from nm.
1964 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1965 echo "configure:1966: checking command to parse $NM output" >&5
1966 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1970 # These are sane defaults that work on at least a few old systems.
1971 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1973 # Character class describing NM global symbol codes.
1974 symcode='[BCDEGRST]'
1976 # Regexp to match symbols that can be accessed directly from C.
1977 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1979 # Transform the above into a raw symbol and a C symbol.
1980 symxfrm='\1 \2\3 \3'
1982 # Transform an extracted symbol line into a proper C declaration
1983 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1985 # Transform an extracted symbol line into symbol name and symbol address
1986 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'"
1988 # Define system-specific variables.
1993 cygwin* | mingw* | pw32*)
1994 symcode='[ABCDGISTW]'
1996 hpux*) # Its linker distinguishes data from code symbols
1997 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1998 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'"
2001 symcode='[BCDEGRST]'
2011 # Handle CRLF in mingw tool chain
2015 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2019 # If we're using GNU nm, then use its standard symbol codes.
2020 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2021 symcode='[ABCDGISTW]'
2024 # Try without a prefix undercore, then with it.
2025 for ac_symprfx in "" "_"; do
2027 # Write the raw and C identifiers.
2028 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2030 # Check to see that the pipe works correctly.
2033 cat > conftest.$ac_ext <<EOF
2038 void nm_test_func(){}
2042 int main(){nm_test_var='a';nm_test_func();return(0);}
2045 if { (eval echo configure:2046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2046 # Now try to grab the symbols.
2048 if { (eval echo configure:2049: \"$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
2049 # Try sorting and uniquifying the output.
2050 if sort "$nlist" | uniq > "$nlist"T; then
2051 mv -f "$nlist"T "$nlist"
2056 # Make sure that we snagged all the symbols we need.
2057 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2058 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2059 cat <<EOF > conftest.$ac_ext
2065 # Now generate the symbol file.
2066 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2068 cat <<EOF >> conftest.$ac_ext
2069 #if defined (__STDC__) && __STDC__
2070 # define lt_ptr void *
2072 # define lt_ptr char *
2076 /* The mapping between symbol names and symbols. */
2081 lt_preloaded_symbols[] =
2084 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2085 cat <<\EOF >> conftest.$ac_ext
2093 # Now try linking the two files.
2094 mv conftest.$ac_objext conftstm.$ac_objext
2096 save_CFLAGS="$CFLAGS"
2097 LIBS="conftstm.$ac_objext"
2098 CFLAGS="$CFLAGS$no_builtin_flag"
2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2103 CFLAGS="$save_CFLAGS"
2105 echo "cannot find nm_test_func in $nlist" >&5
2108 echo "cannot find nm_test_var in $nlist" >&5
2111 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2114 echo "$progname: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 rm -f conftest* conftst*
2119 # Do not use the global_symbol_pipe unless it works.
2120 if test "$pipe_works" = yes; then
2123 lt_cv_sys_global_symbol_pipe=
2129 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2130 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2131 global_symbol_to_cdecl=
2132 global_symbol_to_c_name_address=
2134 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2135 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2137 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2139 echo "$ac_t""failed" 1>&6
2141 echo "$ac_t""ok" 1>&6
2144 for ac_hdr in dlfcn.h
2146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2148 echo "configure:2149: checking for $ac_hdr" >&5
2149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 cat > conftest.$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2158 { (eval echo configure:2159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2160 if test -z "$ac_err"; then
2162 eval "ac_cv_header_$ac_safe=yes"
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 eval "ac_cv_header_$ac_safe=no"
2172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2175 cat >> confdefs.h <<EOF
2176 #define $ac_tr_hdr 1
2180 echo "$ac_t""no" 1>&6
2188 # Only perform the check for file, if the check method requires it
2189 case $deplibs_check_method in
2191 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2192 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2193 echo "configure:2194: checking for ${ac_tool_prefix}file" >&5
2194 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2199 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2202 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2205 ac_save_MAGIC_CMD="$MAGIC_CMD"
2206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2207 ac_dummy="/usr/bin:$PATH"
2208 for ac_dir in $ac_dummy; do
2209 test -z "$ac_dir" && ac_dir=.
2210 if test -f $ac_dir/${ac_tool_prefix}file; then
2211 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2212 if test -n "$file_magic_test_file"; then
2213 case $deplibs_check_method in
2215 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2218 egrep "$file_magic_regex" > /dev/null; then
2223 *** Warning: the command libtool uses to detect shared libraries,
2224 *** $file_magic_cmd, produces output that libtool cannot recognize.
2225 *** The result is that libtool may fail to recognize shared libraries
2226 *** as such. This will affect the creation of libtool libraries that
2227 *** depend on shared libraries, but programs linked with such libtool
2228 *** libraries will work regardless of this problem. Nevertheless, you
2229 *** may want to report the problem to your system manager and/or to
2230 *** bug-libtool@gnu.org
2240 MAGIC_CMD="$ac_save_MAGIC_CMD"
2245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2246 if test -n "$MAGIC_CMD"; then
2247 echo "$ac_t""$MAGIC_CMD" 1>&6
2249 echo "$ac_t""no" 1>&6
2252 if test -z "$lt_cv_path_MAGIC_CMD"; then
2253 if test -n "$ac_tool_prefix"; then
2254 echo $ac_n "checking for file""... $ac_c" 1>&6
2255 echo "configure:2256: checking for file" >&5
2256 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2261 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2264 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2267 ac_save_MAGIC_CMD="$MAGIC_CMD"
2268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2269 ac_dummy="/usr/bin:$PATH"
2270 for ac_dir in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir=.
2272 if test -f $ac_dir/file; then
2273 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2274 if test -n "$file_magic_test_file"; then
2275 case $deplibs_check_method in
2277 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2279 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2280 egrep "$file_magic_regex" > /dev/null; then
2285 *** Warning: the command libtool uses to detect shared libraries,
2286 *** $file_magic_cmd, produces output that libtool cannot recognize.
2287 *** The result is that libtool may fail to recognize shared libraries
2288 *** as such. This will affect the creation of libtool libraries that
2289 *** depend on shared libraries, but programs linked with such libtool
2290 *** libraries will work regardless of this problem. Nevertheless, you
2291 *** may want to report the problem to your system manager and/or to
2292 *** bug-libtool@gnu.org
2302 MAGIC_CMD="$ac_save_MAGIC_CMD"
2307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2308 if test -n "$MAGIC_CMD"; then
2309 echo "$ac_t""$MAGIC_CMD" 1>&6
2311 echo "$ac_t""no" 1>&6
2323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 if test -n "$RANLIB"; then
2331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2335 for ac_dir in $ac_dummy; do
2336 test -z "$ac_dir" && ac_dir=.
2337 if test -f $ac_dir/$ac_word; then
2338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2345 RANLIB="$ac_cv_prog_RANLIB"
2346 if test -n "$RANLIB"; then
2347 echo "$ac_t""$RANLIB" 1>&6
2349 echo "$ac_t""no" 1>&6
2353 if test -z "$ac_cv_prog_RANLIB"; then
2354 if test -n "$ac_tool_prefix"; then
2355 # Extract the first word of "ranlib", so it can be a program name with args.
2356 set dummy ranlib; ac_word=$2
2357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_word" >&5
2359 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 if test -n "$RANLIB"; then
2363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2367 for ac_dir in $ac_dummy; do
2368 test -z "$ac_dir" && ac_dir=.
2369 if test -f $ac_dir/$ac_word; then
2370 ac_cv_prog_RANLIB="ranlib"
2375 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2378 RANLIB="$ac_cv_prog_RANLIB"
2379 if test -n "$RANLIB"; then
2380 echo "$ac_t""$RANLIB" 1>&6
2382 echo "$ac_t""no" 1>&6
2390 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}strip; ac_word=$2
2392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2393 echo "configure:2394: checking for $ac_word" >&5
2394 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 if test -n "$STRIP"; then
2398 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2402 for ac_dir in $ac_dummy; do
2403 test -z "$ac_dir" && ac_dir=.
2404 if test -f $ac_dir/$ac_word; then
2405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2412 STRIP="$ac_cv_prog_STRIP"
2413 if test -n "$STRIP"; then
2414 echo "$ac_t""$STRIP" 1>&6
2416 echo "$ac_t""no" 1>&6
2420 if test -z "$ac_cv_prog_STRIP"; then
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "strip", so it can be a program name with args.
2423 set dummy strip; ac_word=$2
2424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_word" >&5
2426 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 if test -n "$STRIP"; then
2430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2434 for ac_dir in $ac_dummy; do
2435 test -z "$ac_dir" && ac_dir=.
2436 if test -f $ac_dir/$ac_word; then
2437 ac_cv_prog_STRIP="strip"
2442 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2445 STRIP="$ac_cv_prog_STRIP"
2446 if test -n "$STRIP"; then
2447 echo "$ac_t""$STRIP" 1>&6
2449 echo "$ac_t""no" 1>&6
2461 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2462 if test "${enable_libtool_lock+set}" = set; then
2463 enableval="$enable_libtool_lock"
2467 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2469 # Some flags need to be propagated to the compiler or linker for good
2473 # Find out which ABI we are using.
2474 echo '#line 2475 "configure"' > conftest.$ac_ext
2475 if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 case `/usr/bin/file conftest.$ac_objext` in
2492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2493 SAVE_CFLAGS="$CFLAGS"
2494 CFLAGS="$CFLAGS -belf"
2495 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2496 echo "configure:2497: checking whether the C compiler needs -belf" >&5
2497 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2506 cross_compiling=$ac_cv_prog_cc_cross
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2516 if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2518 lt_cv_cc_needs_belf=yes
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 lt_cv_cc_needs_belf=no
2527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cc_cross
2535 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2536 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2537 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2538 CFLAGS="$SAVE_CFLAGS"
2545 # Sed substitution that helps us do robust quoting. It backslashifies
2546 # metacharacters that are still active within double-quoted strings.
2547 Xsed='sed -e s/^X//'
2548 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2550 # Same as above, but do not quote variable references.
2551 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2553 # Sed substitution to delay expansion of an escaped shell variable in a
2554 # double_quote_subst'ed string.
2555 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2561 default_ofile=libtool
2562 can_build_shared=yes
2564 # All known linkers require a `.a' archive for static linking (except M$VC,
2565 # which needs '.lib').
2567 ltmain="$ac_aux_dir/ltmain.sh"
2568 ofile="$default_ofile"
2569 with_gnu_ld="$lt_cv_prog_gnu_ld"
2570 need_locks="$enable_libtool_lock"
2573 old_CFLAGS="$CFLAGS"
2575 # Set sane defaults for various variables
2576 test -z "$AR" && AR=ar
2577 test -z "$AR_FLAGS" && AR_FLAGS=cru
2578 test -z "$AS" && AS=as
2579 test -z "$CC" && CC=cc
2580 test -z "$DLLTOOL" && DLLTOOL=dlltool
2581 test -z "$LD" && LD=ld
2582 test -z "$LN_S" && LN_S="ln -s"
2583 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2584 test -z "$NM" && NM=nm
2585 test -z "$OBJDUMP" && OBJDUMP=objdump
2586 test -z "$RANLIB" && RANLIB=:
2587 test -z "$STRIP" && STRIP=:
2588 test -z "$ac_objext" && ac_objext=o
2590 if test x"$host" != x"$build"; then
2591 ac_tool_prefix=${host_alias}-
2596 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2599 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2604 # AIX sometimes has problems with the GCC collect2 program. For some
2605 # reason, if we set the COLLECT_NAMES environment variable, the problems
2606 # vanish in a puff of smoke.
2607 if test "X${COLLECT_NAMES+set}" != Xset; then
2609 export COLLECT_NAMES
2614 # Determine commands to create old-style static archives.
2615 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2616 old_postinstall_cmds='chmod 644 $oldlib'
2617 old_postuninstall_cmds=
2619 if test -n "$RANLIB"; then
2622 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2625 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2631 # Allow CC to be a program name with arguments.
2635 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2636 echo "configure:2637: checking for objdir" >&5
2637 rm -f .libs 2>/dev/null
2638 mkdir .libs 2>/dev/null
2639 if test -d .libs; then
2642 # MS-DOS does not allow filenames that begin with a dot.
2645 rmdir .libs 2>/dev/null
2646 echo "$ac_t""$objdir" 1>&6
2649 # Check whether --with-pic or --without-pic was given.
2650 if test "${with_pic+set}" = set; then
2657 test -z "$pic_mode" && pic_mode=default
2659 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2660 # in isolation, and that seeing it set (from the cache) indicates that
2661 # the associated values are set (in the cache) correctly too.
2662 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2663 echo "configure:2664: checking for $compiler option to produce PIC" >&5
2664 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2668 lt_cv_prog_cc_shlib=
2670 lt_cv_prog_cc_static=
2671 lt_cv_prog_cc_no_builtin=
2672 lt_cv_prog_cc_can_build_shared=$can_build_shared
2674 if test "$GCC" = yes; then
2675 lt_cv_prog_cc_wl='-Wl,'
2676 lt_cv_prog_cc_static='-static'
2680 # Below there is a dirty hack to force normal static linking with -ldl
2681 # The problem is because libdl dynamically linked with both libc and
2682 # libC (AIX C++ library), which obviously doesn't included in libraries
2683 # list by gcc. This cause undefined symbols with -static flags.
2684 # This hack allows C programs to be linked with "-static -ldl", but
2685 # not sure about C++ programs.
2686 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2689 # FIXME: we need at least 68020 code to build shared libraries, but
2690 # adding the `-m68020' flag to GCC prevents building anything better,
2692 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2694 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2695 # PIC is the default for these OSes.
2697 darwin* | rhapsody*)
2698 # PIC is the default on this platform
2699 # Common symbols not allowed in MH_DYLIB files
2700 lt_cv_prog_cc_pic='-fno-common'
2702 cygwin* | mingw* | pw32* | os2*)
2703 # This hack is so that the source file can tell whether it is being
2704 # built for inclusion in a dll (and should export symbols for example).
2705 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2708 if test -d /usr/nec; then
2709 lt_cv_prog_cc_pic=-Kconform_pic
2713 lt_cv_prog_cc_pic='-fPIC'
2717 # PORTME Check for PIC flags for the system compiler.
2719 aix3* | aix4* | aix5*)
2720 lt_cv_prog_cc_wl='-Wl,'
2721 # All AIX code is PIC.
2722 if test "$host_cpu" = ia64; then
2723 # AIX 5 now supports IA64 processor
2724 lt_cv_prog_cc_static='-Bstatic'
2726 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2730 hpux9* | hpux10* | hpux11*)
2731 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2732 lt_cv_prog_cc_wl='-Wl,'
2733 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2734 lt_cv_prog_cc_pic='+Z'
2737 irix5* | irix6* | nonstopux*)
2738 lt_cv_prog_cc_wl='-Wl,'
2739 lt_cv_prog_cc_static='-non_shared'
2740 # PIC (with -KPIC) is the default.
2743 cygwin* | mingw* | pw32* | os2*)
2744 # This hack is so that the source file can tell whether it is being
2745 # built for inclusion in a dll (and should export symbols for example).
2746 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2750 lt_cv_prog_cc_pic='-KPIC'
2751 lt_cv_prog_cc_static='-Bstatic'
2754 osf3* | osf4* | osf5*)
2755 # All OSF/1 code is PIC.
2756 lt_cv_prog_cc_wl='-Wl,'
2757 lt_cv_prog_cc_static='-non_shared'
2761 lt_cv_prog_cc_pic='-Kpic'
2762 lt_cv_prog_cc_static='-dn'
2763 lt_cv_prog_cc_shlib='-belf'
2767 lt_cv_prog_cc_pic='-KPIC'
2768 lt_cv_prog_cc_static='-Bstatic'
2769 lt_cv_prog_cc_wl='-Wl,'
2773 lt_cv_prog_cc_pic='-PIC'
2774 lt_cv_prog_cc_static='-Bstatic'
2775 lt_cv_prog_cc_wl='-Qoption ld '
2778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2779 lt_cv_prog_cc_pic='-KPIC'
2780 lt_cv_prog_cc_static='-Bstatic'
2781 if test "x$host_vendor" = xsni; then
2782 lt_cv_prog_cc_wl='-LD'
2784 lt_cv_prog_cc_wl='-Wl,'
2789 lt_cv_prog_cc_pic='-pic'
2790 lt_cv_prog_cc_static='-Bstatic'
2794 if test -d /usr/nec ;then
2795 lt_cv_prog_cc_pic='-Kconform_pic'
2796 lt_cv_prog_cc_static='-Bstatic'
2801 lt_cv_prog_cc_can_build_shared=no
2808 if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2813 # Check to make sure the pic_flag actually works.
2814 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2815 echo "configure:2816: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2816 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2834 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported.
2836 if test -s conftest.err; then
2837 lt_cv_prog_cc_pic_works=no
2839 lt_cv_prog_cc_pic_works=yes
2843 lt_cv_prog_cc_pic_works=yes
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 lt_cv_prog_cc_pic_works=no
2855 CFLAGS="$save_CFLAGS"
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2862 lt_cv_prog_cc_can_build_shared=no
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2870 # Check for any special shared library compilation flags.
2871 if test -n "$lt_cv_prog_cc_shlib"; then
2872 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2873 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2875 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2876 lt_cv_prog_cc_can_build_shared=no
2880 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2881 echo "configure:2882: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2882 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 lt_cv_prog_cc_static_works=no
2886 save_LDFLAGS="$LDFLAGS"
2887 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2896 if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2898 lt_cv_prog_cc_static_works=yes
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2904 LDFLAGS="$save_LDFLAGS"
2909 # Belt *and* braces to stop my trousers falling down:
2910 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2911 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2913 pic_flag="$lt_cv_prog_cc_pic"
2914 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2915 wl="$lt_cv_prog_cc_wl"
2916 link_static_flag="$lt_cv_prog_cc_static"
2917 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2918 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2921 # Check to see if options -o and -c are simultaneously supported by compiler
2922 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2923 echo "configure:2924: checking if $compiler supports -c -o file.$ac_objext" >&5
2924 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2928 $rm -r conftest 2>/dev/null
2931 echo "int some_variable = 0;" > conftest.$ac_ext
2933 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2934 # that will create temporary files in the current directory regardless of
2935 # the output directory. Thus, making CWD read-only will cause this test
2936 # to fail, enabling locking or at least warning the user not to do parallel
2939 save_CFLAGS="$CFLAGS"
2940 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2942 if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2943 # The compiler can only warn and ignore the option if not recognized
2944 # So say no if there are warnings
2945 if test -s out/conftest.err; then
2946 lt_cv_compiler_c_o=no
2948 lt_cv_compiler_c_o=yes
2951 # Append any errors to the config.log.
2952 cat out/conftest.err 1>&5
2953 lt_cv_compiler_c_o=no
2955 CFLAGS="$save_CFLAGS"
2961 $rm -r conftest 2>/dev/null
2965 compiler_c_o=$lt_cv_compiler_c_o
2966 echo "$ac_t""$compiler_c_o" 1>&6
2968 if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo
2970 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2971 echo "configure:2972: checking if $compiler supports -c -o file.lo" >&5
2972 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2976 lt_cv_compiler_o_lo=no
2977 save_CFLAGS="$CFLAGS"
2978 CFLAGS="$CFLAGS -c -o conftest.lo"
2979 save_objext="$ac_objext"
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2986 int some_variable = 0;
2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2991 # The compiler can only warn and ignore the option if not recognized
2992 # So say no if there are warnings
2993 if test -s conftest.err; then
2994 lt_cv_compiler_o_lo=no
2996 lt_cv_compiler_o_lo=yes
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3004 ac_objext="$save_objext"
3005 CFLAGS="$save_CFLAGS"
3009 compiler_o_lo=$lt_cv_compiler_o_lo
3010 echo "$ac_t""$compiler_o_lo" 1>&6
3015 # Check to see if we can do hard links to lock some files if needed
3016 hard_links="nottested"
3017 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3018 # do not overwrite the value of need_locks provided by the user
3019 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3020 echo "configure:3021: checking if we can lock with hard links" >&5
3023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3025 ln conftest.a conftest.b 2>&5 || hard_links=no
3026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3027 echo "$ac_t""$hard_links" 1>&6
3028 if test "$hard_links" = no; then
3029 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3036 if test "$GCC" = yes; then
3037 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3038 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3039 echo "configure:3040: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3040 echo "int some_variable = 0;" > conftest.$ac_ext
3041 save_CFLAGS="$CFLAGS"
3042 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3043 compiler_rtti_exceptions=no
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3049 int some_variable = 0;
3052 if { (eval echo configure:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3054 # The compiler can only warn and ignore the option if not recognized
3055 # So say no if there are warnings
3056 if test -s conftest.err; then
3057 compiler_rtti_exceptions=no
3059 compiler_rtti_exceptions=yes
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3067 CFLAGS="$save_CFLAGS"
3068 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3070 if test "$compiler_rtti_exceptions" = "yes"; then
3071 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3073 no_builtin_flag=' -fno-builtin'
3077 # See if the linker supports building shared libraries.
3078 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3079 echo "configure:3080: checking whether the linker ($LD) supports shared libraries" >&5
3081 allow_undefined_flag=
3083 need_lib_prefix=unknown
3084 need_version=unknown
3085 # when you set need_version to no, make sure it does not cause -set_version
3086 # flags to be left without arguments
3088 archive_expsym_cmds=
3089 old_archive_from_new_cmds=
3090 old_archive_from_expsyms_cmds=
3091 export_dynamic_flag_spec=
3092 whole_archive_flag_spec=
3093 thread_safe_flag_spec=
3094 hardcode_into_libs=no
3095 hardcode_libdir_flag_spec=
3096 hardcode_libdir_separator=
3099 hardcode_shlibpath_var=unsupported
3101 link_all_deplibs=unknown
3102 always_export_symbols=no
3103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3104 # include_expsyms should be a list of space-separated symbols to be *always*
3105 # included in the symbol list
3107 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3110 # as well as any symbol that contains `d'.
3111 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3113 # platforms (ab)use it in PIC code, but their linkers get confused if
3114 # the symbol is explicitly referenced. Since portable code cannot
3115 # rely on this symbol name, it's probably fine to never include it in
3116 # preloaded symbol tables.
3117 extract_expsyms_cmds=
3120 cygwin* | mingw* | pw32*)
3121 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3122 # When not using gcc, we currently assume that we are using
3123 # Microsoft Visual C++.
3124 if test "$GCC" != yes; then
3134 if test "$with_gnu_ld" = yes; then
3135 # If archive_cmds runs LD, not CC, wlarc should be empty
3138 # See if GNU ld supports shared libraries.
3140 aix3* | aix4* | aix5*)
3141 # On AIX, the GNU linker is very broken
3142 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3146 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3147 *** to be unable to reliably create shared libraries on AIX.
3148 *** Therefore, libtool is disabling shared libraries support. If you
3149 *** really care for shared libraries, you may want to modify your PATH
3150 *** so that a non-GNU linker is found, and then restart.
3156 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)'
3157 hardcode_libdir_flag_spec='-L$libdir'
3158 hardcode_minus_L=yes
3160 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3161 # that the semantics of dynamic libraries on AmigaOS, at least up
3162 # to version 4, is to share data among multiple programs linked
3163 # with the same dynamic library. Since this doesn't match the
3164 # behavior of shared libraries on other platforms, we can use
3170 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3171 allow_undefined_flag=unsupported
3172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3173 # support --undefined. This deserves some investigation. FIXME
3174 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3180 cygwin* | mingw* | pw32*)
3181 # hardcode_libdir_flag_spec is actually meaningless, as there is
3182 # no search path for DLLs.
3183 hardcode_libdir_flag_spec='-L$libdir'
3184 allow_undefined_flag=unsupported
3185 always_export_symbols=yes
3187 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3188 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3189 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3190 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3191 else $CC -o impgen impgen.c ; fi)~
3192 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3194 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3196 # cygwin and mingw dlls have different entry points and sets of symbols
3198 # FIXME: what about values for MSVC?
3199 dll_entry=__cygwin_dll_entry@12
3200 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3204 dll_entry=_DllMainCRTStartup@12
3205 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3209 # mingw and cygwin differ, and it's simplest to just exclude the union
3210 # of the two symbol sets.
3211 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3213 # recent cygwin and mingw systems supply a stub DllMain which the user
3214 # can override, but on older systems we have to supply one (in ltdll.c)
3215 if test "x$lt_cv_need_dllmain" = "xyes"; then
3216 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3217 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~
3218 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3224 # Extract the symbol export list from an `--export-all' def file,
3225 # then regenerate the def file from the symbol export list, so that
3226 # the compiled dll only exports the symbol export list.
3227 # Be careful not to strip the DATA tag left be newer dlltools.
3228 export_symbols_cmds="$ltdll_cmds"'
3229 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3230 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3232 # If the export-symbols file already is a .def file (1st line
3233 # is EXPORTS), use it as is.
3234 # If DATA tags from a recent dlltool are present, honour them!
3235 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3236 cp $export_symbols $output_objdir/$soname-def;
3238 echo EXPORTS > $output_objdir/$soname-def;
3240 cat $export_symbols | while read symbol; do
3243 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3244 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3246 _lt_hint=`expr 1 + \$_lt_hint`;
3250 $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~
3251 $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~
3252 $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~
3253 $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~
3254 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3259 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3262 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3263 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3268 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3272 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3273 *** create shared libraries on Solaris systems. Therefore, libtool
3274 *** is disabling shared libraries support. We urge you to upgrade GNU
3275 *** binutils to release 2.9.1 or newer. Another option is to modify
3276 *** your PATH or compiler configuration so that the native linker is
3277 *** used, and then restart.
3280 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3289 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3292 hardcode_shlibpath_var=no
3296 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3305 if test "$ld_shlibs" = yes; then
3306 runpath_var=LD_RUN_PATH
3307 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3308 export_dynamic_flag_spec='${wl}--export-dynamic'
3310 cygwin* | mingw* | pw32*)
3311 # dlltool doesn't understand --whole-archive et. al.
3312 whole_archive_flag_spec=
3315 # ancient GNU ld didn't support --whole-archive et. al.
3316 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3317 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3319 whole_archive_flag_spec=
3325 # PORTME fill in a description of your system's linker (not GNU ld)
3328 allow_undefined_flag=unsupported
3329 always_export_symbols=yes
3330 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'
3331 # Note: this linker hardcodes the directories in LIBPATH if there
3332 # are no directories specified by -L.
3333 hardcode_minus_L=yes
3334 if test "$GCC" = yes && test -z "$link_static_flag"; then
3335 # Neither direct hardcoding nor static linking is supported with a
3337 hardcode_direct=unsupported
3342 if test "$host_cpu" = ia64; then
3343 # On IA64, the linker does run time linking by default, so we don't
3344 # have to do anything special.
3345 aix_use_runtimelinking=no
3346 exp_sym_flag='-Bexport'
3349 aix_use_runtimelinking=no
3351 # Test if we are trying to use run time linking or normal
3352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3353 # need to do runtime linking.
3354 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3355 for ld_flag in $LDFLAGS; do
3356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3357 aix_use_runtimelinking=yes
3363 exp_sym_flag='-bexport'
3364 no_entry_flag='-bnoentry'
3367 # When large executables or shared objects are built, AIX ld can
3368 # have problems creating the table of contents. If linking a library
3369 # or program results in "error TOC overflow" add -mminimal-toc to
3370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3375 hardcode_libdir_separator=':'
3376 if test "$GCC" = yes; then
3377 case $host_os in aix4.[012]|aix4.[012].*)
3378 collect2name=`${CC} -print-prog-name=collect2`
3379 if test -f "$collect2name" && \
3380 strings "$collect2name" | grep resolve_lib_name >/dev/null
3382 # We have reworked collect2
3385 # We have old collect2
3386 hardcode_direct=unsupported
3387 # It fails to find uninstalled libraries when the uninstalled
3388 # path is not listed in the libpath. Setting hardcode_minus_L
3389 # to unsupported forces relinking
3390 hardcode_minus_L=yes
3391 hardcode_libdir_flag_spec='-L$libdir'
3392 hardcode_libdir_separator=
3396 shared_flag='-shared'
3399 if test "$host_cpu" = ia64; then
3400 shared_flag='${wl}-G'
3402 if test "$aix_use_runtimelinking" = yes; then
3403 shared_flag='${wl}-G'
3405 shared_flag='${wl}-bM:SRE'
3410 # It seems that -bexpall can do strange things, so it is better to
3411 # generate a list of symbols to export.
3412 always_export_symbols=yes
3413 if test "$aix_use_runtimelinking" = yes; then
3414 # Warning - without using the other runtime loading flags (-brtl),
3415 # -berok will link without error, but may produce a broken library.
3416 allow_undefined_flag='-berok'
3417 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3418 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"
3420 if test "$host_cpu" = ia64; then
3421 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3422 allow_undefined_flag="-z nodefs"
3423 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"
3425 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3426 # Warning - without using the other run time loading flags,
3427 # -berok will link without error, but may produce a broken library.
3428 allow_undefined_flag='${wl}-berok'
3429 # This is a bit strange, but is similar to how AIX traditionally builds
3430 # it's shared libraries.
3431 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'
3437 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)'
3438 hardcode_libdir_flag_spec='-L$libdir'
3439 hardcode_minus_L=yes
3440 # see comment about different semantics on the GNU ld section
3444 cygwin* | mingw* | pw32*)
3445 # When not using gcc, we currently assume that we are using
3446 # Microsoft Visual C++.
3447 # hardcode_libdir_flag_spec is actually meaningless, as there is
3448 # no search path for DLLs.
3449 hardcode_libdir_flag_spec=' '
3450 allow_undefined_flag=unsupported
3451 # Tell ltmain to make .lib files, not .a files.
3453 # FIXME: Setting linknames here is a bad hack.
3454 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3455 # The linker will automatically build a .lib file if we build a DLL.
3456 old_archive_from_new_cmds='true'
3457 # FIXME: Should let the user specify the lib program.
3458 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3459 fix_srcfile_path='`cygpath -w "$srcfile"`'
3462 darwin* | rhapsody*)
3464 rhapsody* | darwin1.[012])
3465 allow_undefined_flag='-undefined suppress'
3468 allow_undefined_flag='-flat_namespace -undefined suppress'
3471 # FIXME: Relying on posixy $() will cause problems for
3472 # cross-compilation, but unfortunately the echo tests do not
3473 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3474 # `"' quotes if we put them in here... so don't!
3475 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3476 # We need to add '_' to the symbols in $export_symbols first
3477 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3479 hardcode_shlibpath_var=no
3480 whole_archive_flag_spec='-all_load $convenience'
3487 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3488 # support. Future versions do this automatically, but an explicit c++rt0.o
3489 # does not break anything, and helps significantly (at the cost of a little
3492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3493 hardcode_libdir_flag_spec='-R$libdir'
3495 hardcode_shlibpath_var=no
3498 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3502 hardcode_minus_L=yes
3503 hardcode_shlibpath_var=no
3506 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3508 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3509 hardcode_libdir_flag_spec='-R$libdir'
3511 hardcode_shlibpath_var=no
3514 hpux9* | hpux10* | hpux11*)
3516 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' ;;
3517 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3519 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3520 hardcode_libdir_separator=:
3522 hardcode_minus_L=yes # Not in the search PATH, but as the default
3523 # location of the library.
3524 export_dynamic_flag_spec='${wl}-E'
3527 irix5* | irix6* | nonstopux*)
3528 if test "$GCC" = yes; then
3529 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'
3531 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'
3533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3534 hardcode_libdir_separator=:
3535 link_all_deplibs=yes
3539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3542 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3544 hardcode_libdir_flag_spec='-R$libdir'
3546 hardcode_shlibpath_var=no
3550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3553 hardcode_libdir_separator=:
3554 hardcode_shlibpath_var=no
3559 hardcode_shlibpath_var=no
3560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3563 export_dynamic_flag_spec='${wl}-E'
3566 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3568 hardcode_libdir_flag_spec='-R$libdir'
3571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3579 hardcode_libdir_flag_spec='-L$libdir'
3580 hardcode_minus_L=yes
3581 allow_undefined_flag=unsupported
3582 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'
3583 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3587 if test "$GCC" = yes; then
3588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3589 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'
3591 allow_undefined_flag=' -expect_unresolved \*'
3592 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'
3594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3595 hardcode_libdir_separator=:
3598 osf4* | osf5*) # as osf3* with the addition of -msym flag
3599 if test "$GCC" = yes; then
3600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3601 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'
3602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3604 allow_undefined_flag=' -expect_unresolved \*'
3605 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'
3606 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3607 $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'
3609 #Both c and cxx compiler support -rpath directly
3610 hardcode_libdir_flag_spec='-rpath $libdir'
3612 hardcode_libdir_separator=:
3616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3617 hardcode_shlibpath_var=no
3618 runpath_var=LD_RUN_PATH
3619 hardcode_runpath_var=yes
3620 export_dynamic_flag_spec='${wl}-Bexport'
3624 # gcc --version < 3.0 without binutils cannot create self contained
3625 # shared libraries reliably, requiring libgcc.a to resolve some of
3626 # the object symbols generated in some cases. Libraries that use
3627 # assert need libgcc.a to resolve __eprintf, for example. Linking
3628 # a copy of libgcc.a into every shared library to guarantee resolving
3629 # such symbols causes other problems: According to Tim Van Holder
3630 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3631 # (to the application) exception stack for one thing.
3632 no_undefined_flag=' -z defs'
3633 if test "$GCC" = yes; then
3634 case `$CC --version 2>/dev/null` in
3638 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3639 *** create self contained shared libraries on Solaris systems, without
3640 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3641 *** -no-undefined support, which will at least allow you to build shared
3642 *** libraries. However, you may find that when you link such libraries
3643 *** into an application without using GCC, you have to manually add
3644 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3645 *** upgrade to a newer version of GCC. Another option is to rebuild your
3646 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3653 # $CC -shared without GNU ld will not create a library from C++
3654 # object files and a static libstdc++, better avoid it by now
3655 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3656 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3657 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3658 hardcode_libdir_flag_spec='-R$libdir'
3659 hardcode_shlibpath_var=no
3661 solaris2.[0-5] | solaris2.[0-5].*) ;;
3662 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3663 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3665 link_all_deplibs=yes
3669 if test "x$host_vendor" = xsequent; then
3670 # Use $CC to link under sequent, because it throws in some extra .o
3671 # files that make .init and .fini sections work.
3672 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3674 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3676 hardcode_libdir_flag_spec='-L$libdir'
3678 hardcode_minus_L=yes
3679 hardcode_shlibpath_var=no
3683 if test "x$host_vendor" = xsno; then
3684 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3685 hardcode_direct=yes # is this really true???
3687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3688 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3690 runpath_var='LD_RUN_PATH'
3691 hardcode_shlibpath_var=no
3695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3696 hardcode_shlibpath_var=no
3697 export_dynamic_flag_spec='-Bexport'
3701 no_undefined_flag=' -z text'
3702 # $CC -shared without GNU ld will not create a library from C++
3703 # object files and a static libstdc++, better avoid it by now
3704 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3705 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3706 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3707 hardcode_libdir_flag_spec=
3708 hardcode_shlibpath_var=no
3709 runpath_var='LD_RUN_PATH'
3713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3714 hardcode_libdir_flag_spec='-L$libdir'
3715 hardcode_shlibpath_var=no
3719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3720 hardcode_libdir_flag_spec='-L$libdir'
3721 hardcode_shlibpath_var=no
3725 if test -d /usr/nec; then
3726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3727 hardcode_shlibpath_var=no
3728 runpath_var=LD_RUN_PATH
3729 hardcode_runpath_var=yes
3735 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3738 hardcode_shlibpath_var=no
3739 hardcode_runpath_var=yes
3740 runpath_var=LD_RUN_PATH
3743 sysv5uw7* | unixware7*)
3744 no_undefined_flag='${wl}-z ${wl}text'
3745 if test "$GCC" = yes; then
3746 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3748 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3750 runpath_var='LD_RUN_PATH'
3751 hardcode_shlibpath_var=no
3759 echo "$ac_t""$ld_shlibs" 1>&6
3760 test "$ld_shlibs" = no && can_build_shared=no
3762 # Check hardcoding attributes.
3763 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3764 echo "configure:3765: checking how to hardcode library paths into programs" >&5
3766 if test -n "$hardcode_libdir_flag_spec" || \
3767 test -n "$runpath_var"; then
3769 # We can hardcode non-existant directories.
3770 if test "$hardcode_direct" != no &&
3771 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3772 # have to relink, otherwise we might link with an installed library
3773 # when we should be linking with a yet-to-be-installed one
3774 ## test "$hardcode_shlibpath_var" != no &&
3775 test "$hardcode_minus_L" != no; then
3776 # Linking always hardcodes the temporary library directory.
3777 hardcode_action=relink
3779 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3780 hardcode_action=immediate
3783 # We cannot hardcode anything, or else we can only hardcode existing
3785 hardcode_action=unsupported
3787 echo "$ac_t""$hardcode_action" 1>&6
3791 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3792 echo "configure:3793: checking whether stripping libraries is possible" >&5
3793 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3795 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3796 echo "$ac_t""yes" 1>&6
3798 echo "$ac_t""no" 1>&6
3801 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3802 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3804 # PORTME Fill in your ld.so characteristics
3805 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3806 echo "configure:3807: checking dynamic linker characteristics" >&5
3808 libname_spec='lib$name'
3815 shlibpath_overrides_runpath=unknown
3817 dynamic_linker="$host_os ld.so"
3818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3824 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3825 shlibpath_var=LIBPATH
3827 # AIX has no versioning support, so we append a major version to the name.
3828 soname_spec='${libname}${release}.so$major'
3833 if test "$host_cpu" = ia64; then
3834 # AIX 5 supports IA64
3835 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3836 shlibpath_var=LD_LIBRARY_PATH
3838 # With GCC up to 2.95.x, collect2 would create an import file
3839 # for dependence libraries. The import file would start with
3840 # the line `#! .'. This would cause the generated library to
3841 # depend on `.', always an invalid library. This was fixed in
3842 # development snapshots of GCC prior to 3.0.
3844 aix4 | aix4.[01] | aix4.[01].*)
3845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3847 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3854 # AIX (on Power*) has no versioning support, so currently we can
3855 # not hardcode correct soname into executable. Probably we can
3856 # add versioning support to collect2, so additional links can
3857 # be useful in future.
3858 if test "$aix_use_runtimelinking" = yes; then
3859 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3860 # instead of lib<name>.a to let people know that these are not
3861 # typical AIX shared libraries.
3862 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3864 # We preserve .a as extension for shared libraries through AIX4.2
3865 # and later when we are not doing run time linking.
3866 library_names_spec='${libname}${release}.a $libname.a'
3867 soname_spec='${libname}${release}.so$major'
3869 shlibpath_var=LIBPATH
3874 library_names_spec='$libname.ixlibrary $libname.a'
3875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3876 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'
3880 library_names_spec='${libname}.so'
3881 dynamic_linker="$host_os ld.so"
3882 shlibpath_var=LIBRARY_PATH
3888 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3889 soname_spec='${libname}${release}.so$major'
3890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3891 shlibpath_var=LD_LIBRARY_PATH
3892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3894 export_dynamic_flag_spec=-rdynamic
3895 # the default ld.so.conf also contains /usr/contrib/lib and
3896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3897 # libtool to hard-code these into programs
3900 cygwin* | mingw* | pw32*)
3901 version_type=windows
3904 case $GCC,$host_os in
3906 library_names_spec='$libname.dll.a'
3907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3908 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3909 dldir=$destdir/`dirname \$dlpath`~
3910 test -d \$dldir || mkdir -p \$dldir~
3911 $install_prog .libs/$dlname \$dldir/$dlname'
3912 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3913 dlpath=$dir/\$dldll~
3917 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3924 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3927 dynamic_linker='Win32 ld.exe'
3928 # FIXME: first we should search . and the directory the executable is in
3932 darwin* | rhapsody*)
3933 dynamic_linker="$host_os dyld"
3937 # FIXME: Relying on posixy $() will cause problems for
3938 # cross-compilation, but unfortunately the echo tests do not
3939 # yet detect zsh echo's removal of \ escapes.
3940 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)'
3941 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3942 shlibpath_overrides_runpath=yes
3943 shlibpath_var=DYLD_LIBRARY_PATH
3951 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3952 version_type=freebsd-$objformat
3953 case $version_type in
3955 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3960 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3964 shlibpath_var=LD_LIBRARY_PATH
3967 shlibpath_overrides_runpath=yes
3970 shlibpath_overrides_runpath=no
3971 hardcode_into_libs=yes
3980 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3981 soname_spec='${libname}${release}.so$major'
3982 shlibpath_var=LD_LIBRARY_PATH
3983 hardcode_into_libs=yes
3986 hpux9* | hpux10* | hpux11*)
3987 # Give a soname corresponding to the major version so that dld.sl refuses to
3988 # link against other versions.
3989 dynamic_linker="$host_os dld.sl"
3993 shlibpath_var=SHLIB_PATH
3994 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3995 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3996 soname_spec='${libname}${release}.sl$major'
3997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3998 postinstall_cmds='chmod 555 $lib'
4001 irix5* | irix6* | nonstopux*)
4003 nonstopux*) version_type=nonstopux ;;
4004 *) version_type=irix ;;
4008 soname_spec='${libname}${release}.so$major'
4009 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4011 irix5* | nonstopux*)
4015 case $LD in # libtool.m4 will add one of these switches to LD
4016 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4017 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4018 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4019 *) libsuff= shlibsuff= libmagic=never-match;;
4023 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4024 shlibpath_overrides_runpath=no
4025 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4026 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4029 # No shared lib support for Linux oldld, aout, or coff.
4030 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4034 # This must be Linux ELF.
4039 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4040 soname_spec='${libname}${release}.so$major'
4041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4042 shlibpath_var=LD_LIBRARY_PATH
4043 shlibpath_overrides_runpath=no
4044 # This implies no fast_install, which is unacceptable.
4045 # Some rework will be needed to allow for fast_install
4046 # before this can be enabled.
4047 hardcode_into_libs=yes
4049 # We used to test for /lib/ld.so.1 and disable shared libraries on
4050 # powerpc, because MkLinux only supported shared libraries with the
4051 # GNU dynamic linker. Since this was broken with cross compilers,
4052 # most powerpc-linux boxes support dynamic linking these days and
4053 # people can always --disable-shared, the test was removed, and we
4054 # assume the GNU/Linux dynamic linker is in use.
4055 dynamic_linker='GNU/Linux ld.so'
4062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4063 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4065 dynamic_linker='NetBSD (a.out) ld.so'
4067 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4068 soname_spec='${libname}${release}.so$major'
4069 dynamic_linker='NetBSD ld.elf_so'
4071 shlibpath_var=LD_LIBRARY_PATH
4072 shlibpath_overrides_runpath=yes
4073 hardcode_into_libs=yes
4078 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4079 shlibpath_var=LD_LIBRARY_PATH
4080 shlibpath_overrides_runpath=yes
4087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4089 openbsd2.[89] | openbsd2.[89].*)
4090 shlibpath_overrides_runpath=no
4093 shlibpath_overrides_runpath=yes
4097 shlibpath_overrides_runpath=yes
4099 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4101 shlibpath_var=LD_LIBRARY_PATH
4105 libname_spec='$name'
4107 library_names_spec='$libname.dll $libname.a'
4108 dynamic_linker='OS/2 ld.exe'
4109 shlibpath_var=LIBPATH
4112 osf3* | osf4* | osf5*)
4115 soname_spec='${libname}${release}.so'
4116 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4117 shlibpath_var=LD_LIBRARY_PATH
4118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4124 soname_spec='${libname}${release}.so$major'
4125 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4126 shlibpath_var=LD_LIBRARY_PATH
4133 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4134 soname_spec='${libname}${release}.so$major'
4135 shlibpath_var=LD_LIBRARY_PATH
4136 shlibpath_overrides_runpath=yes
4137 hardcode_into_libs=yes
4138 # ldd complains unless libraries are executable
4139 postinstall_cmds='chmod +x $lib'
4144 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4146 shlibpath_var=LD_LIBRARY_PATH
4147 shlibpath_overrides_runpath=yes
4148 if test "$with_gnu_ld" = yes; then
4154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4156 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4157 soname_spec='${libname}${release}.so$major'
4158 shlibpath_var=LD_LIBRARY_PATH
4159 case $host_vendor in
4161 shlibpath_overrides_runpath=no
4166 shlibpath_overrides_runpath=no
4167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4174 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4175 soname_spec='${libname}${release}.so$major'
4176 shlibpath_var=LD_LIBRARY_PATH
4183 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4184 soname_spec='${libname}${release}.so$major'
4185 shlibpath_var=LD_LIBRARY_PATH
4189 if test -d /usr/nec ;then
4191 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4192 soname_spec='$libname.so.$major'
4193 shlibpath_var=LD_LIBRARY_PATH
4201 echo "$ac_t""$dynamic_linker" 1>&6
4202 test "$dynamic_linker" = no && can_build_shared=no
4204 # Report the final consequences.
4205 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4206 echo "configure:4207: checking if libtool supports shared libraries" >&5
4207 echo "$ac_t""$can_build_shared" 1>&6
4209 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4210 echo "configure:4211: checking whether to build shared libraries" >&5
4211 test "$can_build_shared" = "no" && enable_shared=no
4213 # On AIX, shared libraries and static libraries use the same namespace, and
4214 # are all built from PIC.
4217 test "$enable_shared" = yes && enable_static=no
4218 if test -n "$RANLIB"; then
4219 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4220 postinstall_cmds='$RANLIB $lib'
4225 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4226 test "$enable_shared" = yes && enable_static=no
4230 echo "$ac_t""$enable_shared" 1>&6
4232 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4233 echo "configure:4234: checking whether to build static libraries" >&5
4234 # Make sure either enable_shared or enable_static is yes.
4235 test "$enable_shared" = yes || enable_static=yes
4236 echo "$ac_t""$enable_static" 1>&6
4238 if test "$hardcode_action" = relink; then
4239 # Fast installation is not supported
4240 enable_fast_install=no
4241 elif test "$shlibpath_overrides_runpath" = yes ||
4242 test "$enable_shared" = no; then
4243 # Fast installation is not necessary
4244 enable_fast_install=needless
4247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4248 if test "$GCC" = yes; then
4249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4252 if test "x$enable_dlopen" != xyes; then
4253 enable_dlopen=unknown
4254 enable_dlopen_self=unknown
4255 enable_dlopen_self_static=unknown
4262 lt_cv_dlopen="load_add_on"
4264 lt_cv_dlopen_self=yes
4267 cygwin* | mingw* | pw32*)
4268 lt_cv_dlopen="LoadLibrary"
4273 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4274 echo "configure:4275: checking for shl_load" >&5
4275 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* System header to define __stub macros and hopefully few prototypes,
4282 which can conflict with char shl_load(); below. */
4284 /* Override any gcc2 internal prototype to avoid an error. */
4285 /* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4291 /* The GNU C library defines this for functions which it implements
4292 to always fail with ENOSYS. Some functions are actually named
4293 something starting with __ and the normal name is an alias. */
4294 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4302 if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4304 eval "ac_cv_func_shl_load=yes"
4306 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4309 eval "ac_cv_func_shl_load=no"
4314 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4315 echo "$ac_t""yes" 1>&6
4316 lt_cv_dlopen="shl_load"
4318 echo "$ac_t""no" 1>&6
4319 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4320 echo "configure:4321: checking for shl_load in -ldld" >&5
4321 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 ac_save_LIBS="$LIBS"
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 /* Override any gcc2 internal prototype to avoid an error. */
4331 /* We use char because int might match the return type of a gcc2
4332 builtin and then its argument prototype would still apply. */
4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4341 eval "ac_cv_lib_$ac_lib_var=yes"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 eval "ac_cv_lib_$ac_lib_var=no"
4349 LIBS="$ac_save_LIBS"
4352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4356 echo "$ac_t""no" 1>&6
4357 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4358 echo "configure:4359: checking for dlopen" >&5
4359 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 /* System header to define __stub macros and hopefully few prototypes,
4366 which can conflict with char dlopen(); below. */
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4375 /* The GNU C library defines this for functions which it implements
4376 to always fail with ENOSYS. Some functions are actually named
4377 something starting with __ and the normal name is an alias. */
4378 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 eval "ac_cv_func_dlopen=yes"
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 eval "ac_cv_func_dlopen=no"
4398 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 lt_cv_dlopen="dlopen"
4402 echo "$ac_t""no" 1>&6
4403 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4404 echo "configure:4405: checking for dlopen in -ldl" >&5
4405 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 ac_save_LIBS="$LIBS"
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4423 if { (eval echo configure:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425 eval "ac_cv_lib_$ac_lib_var=yes"
4427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4430 eval "ac_cv_lib_$ac_lib_var=no"
4433 LIBS="$ac_save_LIBS"
4436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4440 echo "$ac_t""no" 1>&6
4441 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4442 echo "configure:4443: checking for dlopen in -lsvld" >&5
4443 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 ac_save_LIBS="$LIBS"
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4452 /* Override any gcc2 internal prototype to avoid an error. */
4453 /* We use char because int might match the return type of a gcc2
4454 builtin and then its argument prototype would still apply. */
4461 if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4463 eval "ac_cv_lib_$ac_lib_var=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4468 eval "ac_cv_lib_$ac_lib_var=no"
4471 LIBS="$ac_save_LIBS"
4474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4475 echo "$ac_t""yes" 1>&6
4476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4478 echo "$ac_t""no" 1>&6
4479 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4480 echo "configure:4481: checking for dld_link in -ldld" >&5
4481 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_save_LIBS="$LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_lib_$ac_lib_var=no"
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4516 echo "$ac_t""no" 1>&6
4537 if test "x$lt_cv_dlopen" != xno; then
4543 case $lt_cv_dlopen in
4545 save_CPPFLAGS="$CPPFLAGS"
4546 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4548 save_LDFLAGS="$LDFLAGS"
4549 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4552 LIBS="$lt_cv_dlopen_libs $LIBS"
4554 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4555 echo "configure:4556: checking whether a program can dlopen itself" >&5
4556 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 if test "$cross_compiling" = yes; then :
4560 lt_cv_dlopen_self=cross
4562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4563 lt_status=$lt_dlunknown
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4575 # define LT_DLGLOBAL RTLD_GLOBAL
4578 # define LT_DLGLOBAL DL_GLOBAL
4580 # define LT_DLGLOBAL 0
4584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4585 find out it does not work in some platform. */
4586 #ifndef LT_DLLAZY_OR_NOW
4588 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4591 # define LT_DLLAZY_OR_NOW DL_LAZY
4594 # define LT_DLLAZY_OR_NOW RTLD_NOW
4597 # define LT_DLLAZY_OR_NOW DL_NOW
4599 # define LT_DLLAZY_OR_NOW 0
4607 extern "C" void exit (int);
4610 void fnord() { int i=42;}
4613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4614 int status = $lt_dlunknown;
4618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4619 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4620 /* dlclose (self); */
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4627 (./conftest; exit; ) 2>/dev/null
4630 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4631 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4632 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4635 # compilation failed
4636 lt_cv_dlopen_self=no
4644 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4646 if test "x$lt_cv_dlopen_self" = xyes; then
4647 LDFLAGS="$LDFLAGS $link_static_flag"
4648 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4649 echo "configure:4650: checking whether a statically linked program can dlopen itself" >&5
4650 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 if test "$cross_compiling" = yes; then :
4654 lt_cv_dlopen_self_static=cross
4656 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4657 lt_status=$lt_dlunknown
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4669 # define LT_DLGLOBAL RTLD_GLOBAL
4672 # define LT_DLGLOBAL DL_GLOBAL
4674 # define LT_DLGLOBAL 0
4678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4679 find out it does not work in some platform. */
4680 #ifndef LT_DLLAZY_OR_NOW
4682 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4685 # define LT_DLLAZY_OR_NOW DL_LAZY
4688 # define LT_DLLAZY_OR_NOW RTLD_NOW
4691 # define LT_DLLAZY_OR_NOW DL_NOW
4693 # define LT_DLLAZY_OR_NOW 0
4701 extern "C" void exit (int);
4704 void fnord() { int i=42;}
4707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4708 int status = $lt_dlunknown;
4712 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4713 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4714 /* dlclose (self); */
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4721 (./conftest; exit; ) 2>/dev/null
4724 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4725 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4726 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4729 # compilation failed
4730 lt_cv_dlopen_self_static=no
4738 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4741 CPPFLAGS="$save_CPPFLAGS"
4742 LDFLAGS="$save_LDFLAGS"
4747 case $lt_cv_dlopen_self in
4748 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4749 *) enable_dlopen_self=unknown ;;
4752 case $lt_cv_dlopen_self_static in
4753 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4754 *) enable_dlopen_self_static=unknown ;;
4759 if test "$enable_shared" = yes && test "$GCC" = yes; then
4760 case $archive_cmds in
4762 # FIXME: we may have to deal with multi-command sequences.
4765 # Test whether the compiler implicitly links with -lc since on some
4766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4767 # to ld, don't add -lc before -lgcc.
4768 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4769 echo "configure:4770: checking whether -lc should be explicitly linked in" >&5
4770 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4774 echo 'static int dummy;' > conftest.$ac_ext
4776 if { (eval echo configure:4777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4779 libobjs=conftest.$ac_objext
4781 wl=$lt_cv_prog_cc_wl
4787 save_allow_undefined_flag=$allow_undefined_flag
4788 allow_undefined_flag=
4789 if { (eval echo configure:4790: \"$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; }
4791 lt_cv_archive_cmds_need_lc=no
4793 lt_cv_archive_cmds_need_lc=yes
4795 allow_undefined_flag=$save_allow_undefined_flag
4797 cat conftest.err 1>&5
4801 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4805 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4807 # The second clause should only fire when bootstrapping the
4808 # libtool distribution, otherwise you forgot to ship ltmain.sh
4809 # with your package, and you will get complaints that there are
4810 # no rules to generate ltmain.sh.
4811 if test -f "$ltmain"; then
4814 # If there is no Makefile yet, we rely on a make rule to execute
4815 # `config.status --recheck' to rerun these tests and create the
4816 # libtool script then.
4817 test -f Makefile && make "$ltmain"
4820 if test -f "$ltmain"; then
4821 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4824 echo creating $ofile
4826 # Now quote all the things that may contain metacharacters while being
4827 # careful not to overquote the AC_SUBSTed values. We take copies of the
4828 # variables and quote the copies for generation of the libtool script.
4829 for var in echo old_CC old_CFLAGS \
4830 AR AR_FLAGS CC LD LN_S NM SHELL \
4831 reload_flag reload_cmds wl \
4832 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4833 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4834 library_names_spec soname_spec \
4835 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4836 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4837 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4838 old_striplib striplib file_magic_cmd export_symbols_cmds \
4839 deplibs_check_method allow_undefined_flag no_undefined_flag \
4840 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4841 global_symbol_to_c_name_address \
4842 hardcode_libdir_flag_spec hardcode_libdir_separator \
4843 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4844 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4847 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4848 old_postinstall_cmds | old_postuninstall_cmds | \
4849 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4850 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4851 postinstall_cmds | postuninstall_cmds | \
4852 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4853 # Double-quote double-evaled strings.
4854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4862 cat <<__EOF__ > "${ofile}T"
4865 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4866 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4867 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4869 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4870 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4872 # This program is free software; you can redistribute it and/or modify
4873 # it under the terms of the GNU General Public License as published by
4874 # the Free Software Foundation; either version 2 of the License, or
4875 # (at your option) any later version.
4877 # This program is distributed in the hope that it will be useful, but
4878 # WITHOUT ANY WARRANTY; without even the implied warranty of
4879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4880 # General Public License for more details.
4882 # You should have received a copy of the GNU General Public License
4883 # along with this program; if not, write to the Free Software
4884 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4886 # As a special exception to the GNU General Public License, if you
4887 # distribute this file as part of a program that contains a
4888 # configuration script generated by Autoconf, you may include it under
4889 # the same distribution terms that you use for the rest of that program.
4891 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4892 Xsed="sed -e s/^X//"
4894 # The HP-UX ksh and POSIX shell print the target directory to stdout
4896 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4898 # ### BEGIN LIBTOOL CONFIG
4900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4902 # Shell to use when invoking shell scripts.
4905 # Whether or not to build shared libraries.
4906 build_libtool_libs=$enable_shared
4908 # Whether or not to build static libraries.
4909 build_old_libs=$enable_static
4911 # Whether or not to add -lc for building shared libraries.
4912 build_libtool_need_lc=$need_lc
4914 # Whether or not to optimize for fast installation.
4915 fast_install=$enable_fast_install
4918 host_alias=$host_alias
4921 # An echo program that does not interpret backslashes.
4926 AR_FLAGS=$lt_AR_FLAGS
4928 # The default C compiler.
4931 # Is the compiler the GNU C compiler?
4934 # The linker used to build libraries.
4937 # Whether we need hard or soft links.
4940 # A BSD-compatible nm program.
4943 # A symbol stripping program
4946 # Used to examine libraries when file_magic_cmd begins "file"
4947 MAGIC_CMD=$MAGIC_CMD
4949 # Used on cygwin: DLL creation program.
4952 # Used on cygwin: object dumper.
4955 # Used on cygwin: assembler.
4958 # The name of the directory that contains temporary libtool files.
4961 # How to create reloadable object files.
4962 reload_flag=$lt_reload_flag
4963 reload_cmds=$lt_reload_cmds
4965 # How to pass a linker flag through the compiler.
4968 # Object file suffix (normally "o").
4971 # Old archive suffix (normally "a").
4974 # Executable file suffix (normally "").
4977 # Additional compiler flags for building library objects.
4978 pic_flag=$lt_pic_flag
4981 # Does compiler simultaneously support -c and -o options?
4982 compiler_c_o=$lt_compiler_c_o
4984 # Can we write directly to a .lo ?
4985 compiler_o_lo=$lt_compiler_o_lo
4987 # Must we lock files when doing compilation ?
4988 need_locks=$lt_need_locks
4990 # Do we need the lib prefix for modules?
4991 need_lib_prefix=$need_lib_prefix
4993 # Do we need a version for libraries?
4994 need_version=$need_version
4996 # Whether dlopen is supported.
4997 dlopen_support=$enable_dlopen
4999 # Whether dlopen of programs is supported.
5000 dlopen_self=$enable_dlopen_self
5002 # Whether dlopen of statically linked programs is supported.
5003 dlopen_self_static=$enable_dlopen_self_static
5005 # Compiler flag to prevent dynamic linking.
5006 link_static_flag=$lt_link_static_flag
5008 # Compiler flag to turn off builtin functions.
5009 no_builtin_flag=$lt_no_builtin_flag
5011 # Compiler flag to allow reflexive dlopens.
5012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5014 # Compiler flag to generate shared objects directly from archives.
5015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5017 # Compiler flag to generate thread-safe objects.
5018 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5020 # Library versioning type.
5021 version_type=$version_type
5023 # Format of library name prefix.
5024 libname_spec=$lt_libname_spec
5026 # List of archive names. First name is the real one, the rest are links.
5027 # The last name is the one that the linker finds with -lNAME.
5028 library_names_spec=$lt_library_names_spec
5030 # The coded name of the library, if different from the real name.
5031 soname_spec=$lt_soname_spec
5033 # Commands used to build and install an old-style archive.
5035 old_archive_cmds=$lt_old_archive_cmds
5036 old_postinstall_cmds=$lt_old_postinstall_cmds
5037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5039 # Create an old-style archive from a shared archive.
5040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5042 # Create a temporary old-style archive to link instead of a shared archive.
5043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5045 # Commands used to build and install a shared archive.
5046 archive_cmds=$lt_archive_cmds
5047 archive_expsym_cmds=$lt_archive_expsym_cmds
5048 postinstall_cmds=$lt_postinstall_cmds
5049 postuninstall_cmds=$lt_postuninstall_cmds
5051 # Commands to strip libraries.
5052 old_striplib=$lt_old_striplib
5053 striplib=$lt_striplib
5055 # Method to check whether dependent libraries are shared objects.
5056 deplibs_check_method=$lt_deplibs_check_method
5058 # Command to use when deplibs_check_method == file_magic.
5059 file_magic_cmd=$lt_file_magic_cmd
5061 # Flag that allows shared libraries with undefined symbols to be built.
5062 allow_undefined_flag=$lt_allow_undefined_flag
5064 # Flag that forces no undefined symbols.
5065 no_undefined_flag=$lt_no_undefined_flag
5067 # Commands used to finish a libtool library installation in a directory.
5068 finish_cmds=$lt_finish_cmds
5070 # Same as above, but a single script fragment to be evaled but not shown.
5071 finish_eval=$lt_finish_eval
5073 # Take the output of nm and produce a listing of raw symbols and C names.
5074 global_symbol_pipe=$lt_global_symbol_pipe
5076 # Transform the output of nm in a proper C declaration
5077 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5079 # Transform the output of nm in a C name address pair
5080 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5082 # This is the shared library runtime path variable.
5083 runpath_var=$runpath_var
5085 # This is the shared library path variable.
5086 shlibpath_var=$shlibpath_var
5088 # Is shlibpath searched before the hard-coded library search path?
5089 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5091 # How to hardcode a shared library path into an executable.
5092 hardcode_action=$hardcode_action
5094 # Whether we should hardcode library paths into libraries.
5095 hardcode_into_libs=$hardcode_into_libs
5097 # Flag to hardcode \$libdir into a binary during linking.
5098 # This must work even if \$libdir does not exist.
5099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5101 # Whether we need a single -rpath flag with a separated argument.
5102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5104 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5106 hardcode_direct=$hardcode_direct
5108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5110 hardcode_minus_L=$hardcode_minus_L
5112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5113 # the resulting binary.
5114 hardcode_shlibpath_var=$hardcode_shlibpath_var
5116 # Variables whose values should be saved in libtool wrapper scripts and
5117 # restored at relink time.
5118 variables_saved_for_relink="$variables_saved_for_relink"
5120 # Whether libtool must link a program against all its dependency libraries.
5121 link_all_deplibs=$link_all_deplibs
5123 # Compile-time system search path for libraries
5124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5126 # Run-time system search path for libraries
5127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5129 # Fix the shell variable \$srcfile for the compiler.
5130 fix_srcfile_path="$fix_srcfile_path"
5132 # Set to yes if exported symbols are required.
5133 always_export_symbols=$always_export_symbols
5135 # The commands to list exported symbols.
5136 export_symbols_cmds=$lt_export_symbols_cmds
5138 # The commands to extract the exported symbol list from a shared archive.
5139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5141 # Symbols that should not be listed in the preloaded symbols.
5142 exclude_expsyms=$lt_exclude_expsyms
5144 # Symbols that must always be exported.
5145 include_expsyms=$lt_include_expsyms
5147 # ### END LIBTOOL CONFIG
5153 cat <<\EOF >> "${ofile}T"
5155 # AIX sometimes has problems with the GCC collect2 program. For some
5156 # reason, if we set the COLLECT_NAMES environment variable, the problems
5157 # vanish in a puff of smoke.
5158 if test "X${COLLECT_NAMES+set}" != Xset; then
5160 export COLLECT_NAMES
5167 cygwin* | mingw* | pw32* | os2*)
5168 cat <<'EOF' >> "${ofile}T"
5169 # This is a source program that is used to create dlls on Windows
5170 # Don't remove nor modify the starting and closing comments
5171 # /* ltdll.c starts here */
5172 # #define WIN32_LEAN_AND_MEAN
5173 # #include <windows.h>
5174 # #undef WIN32_LEAN_AND_MEAN
5175 # #include <stdio.h>
5177 # #ifndef __CYGWIN__
5178 # # ifdef __CYGWIN32__
5179 # # define __CYGWIN__ __CYGWIN32__
5183 # #ifdef __cplusplus
5186 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5187 # #ifdef __cplusplus
5192 # #include <cygwin/cygwin_dll.h>
5193 # DECLARE_CYGWIN_DLL( DllMain );
5195 # HINSTANCE __hDllInstance_base;
5198 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5200 # __hDllInstance_base = hInst;
5203 # /* ltdll.c ends here */
5204 # This is a source program that is used to create import libraries
5205 # on Windows for dlls which lack them. Don't remove nor modify the
5206 # starting and closing comments
5207 # /* impgen.c starts here */
5208 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5210 # This file is part of GNU libtool.
5212 # This program is free software; you can redistribute it and/or modify
5213 # it under the terms of the GNU General Public License as published by
5214 # the Free Software Foundation; either version 2 of the License, or
5215 # (at your option) any later version.
5217 # This program is distributed in the hope that it will be useful,
5218 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5219 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5220 # GNU General Public License for more details.
5222 # You should have received a copy of the GNU General Public License
5223 # along with this program; if not, write to the Free Software
5224 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5227 # #include <stdio.h> /* for printf() */
5228 # #include <unistd.h> /* for open(), lseek(), read() */
5229 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5230 # #include <string.h> /* for strdup() */
5232 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5234 # #define O_BINARY 0
5237 # static unsigned int
5238 # pe_get16 (fd, offset)
5242 # unsigned char b[2];
5243 # lseek (fd, offset, SEEK_SET);
5245 # return b[0] + (b[1]<<8);
5248 # static unsigned int
5249 # pe_get32 (fd, offset)
5253 # unsigned char b[4];
5254 # lseek (fd, offset, SEEK_SET);
5256 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5259 # static unsigned int
5263 # unsigned char *b = ptr;
5264 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5273 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5274 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5275 # unsigned long name_rvas, nexp;
5276 # unsigned char *expdata, *erva;
5277 # char *filename, *dll_name;
5279 # filename = argv[1];
5281 # dll = open(filename, O_RDONLY|O_BINARY);
5285 # dll_name = filename;
5287 # for (i=0; filename[i]; i++)
5288 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5289 # dll_name = filename + i +1;
5291 # pe_header_offset = pe_get32 (dll, 0x3c);
5292 # opthdr_ofs = pe_header_offset + 4 + 20;
5293 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5295 # if (num_entries < 1) /* no exports */
5298 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5299 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5300 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5301 # secptr = (pe_header_offset + 4 + 20 +
5302 # pe_get16 (dll, pe_header_offset + 4 + 16));
5305 # for (i = 0; i < nsections; i++)
5308 # unsigned long secptr1 = secptr + 40 * i;
5309 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5310 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5311 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5312 # lseek(dll, secptr1, SEEK_SET);
5313 # read(dll, sname, 8);
5314 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5316 # expptr = fptr + (export_rva - vaddr);
5317 # if (export_rva + export_size > vaddr + vsize)
5318 # export_size = vsize - (export_rva - vaddr);
5323 # expdata = (unsigned char*)malloc(export_size);
5324 # lseek (dll, expptr, SEEK_SET);
5325 # read (dll, expdata, export_size);
5326 # erva = expdata - export_rva;
5328 # nexp = pe_as32 (expdata+24);
5329 # name_rvas = pe_as32 (expdata+32);
5331 # printf ("EXPORTS\n");
5332 # for (i = 0; i<nexp; i++)
5334 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5335 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5340 # /* impgen.c ends here */
5346 # We use sed instead of cat because bash on DJGPP gets confused if
5347 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5348 # text mode, it properly converts lines to CR/LF. This bash problem
5349 # is reportedly fixed, but why not run on old versions too?
5350 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5352 mv -f "${ofile}T" "$ofile" || \
5353 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5361 # This can be used to rebuild libtool when needed
5362 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5364 # Always use our own libtool.
5365 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5367 # Prevent multiple expansion
5370 for ac_prog in gzip uncompress compress
5372 # Extract the first word of "$ac_prog", so it can be a program name with args.
5373 set dummy $ac_prog; ac_word=$2
5374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5375 echo "configure:5376: checking for $ac_word" >&5
5376 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 if test -n "$UNCOMPRESS"; then
5380 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
5382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5384 for ac_dir in $ac_dummy; do
5385 test -z "$ac_dir" && ac_dir=.
5386 if test -f $ac_dir/$ac_word; then
5387 ac_cv_prog_UNCOMPRESS="$ac_prog"
5394 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
5395 if test -n "$UNCOMPRESS"; then
5396 echo "$ac_t""$UNCOMPRESS" 1>&6
5398 echo "$ac_t""no" 1>&6
5401 test -n "$UNCOMPRESS" && break
5404 for ac_prog in freetype-config
5406 # Extract the first word of "$ac_prog", so it can be a program name with args.
5407 set dummy $ac_prog; ac_word=$2
5408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5409 echo "configure:5410: checking for $ac_word" >&5
5410 if eval "test \"`echo '$''{'ac_cv_prog_FREETYPE_CONFIG'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 if test -n "$FREETYPE_CONFIG"; then
5414 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
5416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5418 for ac_dir in $ac_dummy; do
5419 test -z "$ac_dir" && ac_dir=.
5420 if test -f $ac_dir/$ac_word; then
5421 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
5428 FREETYPE_CONFIG="$ac_cv_prog_FREETYPE_CONFIG"
5429 if test -n "$FREETYPE_CONFIG"; then
5430 echo "$ac_t""$FREETYPE_CONFIG" 1>&6
5432 echo "$ac_t""no" 1>&6
5435 test -n "$FREETYPE_CONFIG" && break
5441 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5442 echo "configure:5443: checking for executable suffix" >&5
5443 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5450 echo 'int main () { return 0; }' > conftest.$ac_ext
5452 if { (eval echo configure:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5453 for file in conftest.*; do
5455 *.c | *.o | *.obj) ;;
5456 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5460 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5463 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5468 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5469 echo "$ac_t""${ac_cv_exeext}" 1>&6
5475 # Make sure we can run config.sub.
5476 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5477 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5480 echo $ac_n "checking host system type""... $ac_c" 1>&6
5481 echo "configure:5482: checking host system type" >&5
5484 case "$host_alias" in
5488 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5489 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5491 *) host_alias=$nonopt ;;
5495 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5496 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5497 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5498 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5499 echo "$ac_t""$host" 1>&6
5503 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5504 echo "configure:5505: checking for executable suffix" >&5
5505 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5508 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5512 echo 'int main () { return 0; }' > conftest.$ac_ext
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5515 for file in conftest.*; do
5517 *.c | *.o | *.obj) ;;
5518 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5522 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5525 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5530 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5531 echo "$ac_t""${ac_cv_exeext}" 1>&6
5535 echo $ac_n "checking for target system""... $ac_c" 1>&6
5536 echo "configure:5537: checking for target system" >&5
5540 *cygwin* ) CYGWIN=yes;;
5541 *mingw* ) MINGW=yes;;
5545 if test "x$CXX" == "xi586-mingw32msvc-g++"; then
5546 #fix for the debian distribution of mingw
5547 if test -x "/usr/i586-mingw32msvc/bin/ar";then
5548 AR="/usr/i586-mingw32msvc/bin/ar"
5550 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
5551 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
5557 if test "x${CYGWIN}" = "xyes"; then
5558 cat >> confdefs.h <<EOF
5562 echo "$ac_t""cygwin" 1>&6
5564 if test "x${MINGW}" = "xyes"; then
5565 cat >> confdefs.h <<EOF
5570 cat >> confdefs.h <<EOF
5574 LIBS="$LIBS -lws2_32"
5575 echo "$ac_t""mingw" 1>&6
5579 cat >> confdefs.h <<EOF
5588 if test "x${MINGW}" != "xyes"; then
5589 cat >> confdefs.h <<EOF
5594 # The following tries to make use of includes and libraries in
5595 # /usr/local, too. Notice: A -I/usr/local/include might break
5596 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
5597 # especially on systems which link /usr/local to /usr, so it has yet
5598 # to be seen how useful this is.
5599 if test -d /usr/local/lib; then
5600 LDFLAGS="$LDFLAGS -L/usr/local/lib"
5602 if test -d /usr/local/include; then
5603 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
5604 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
5607 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
5608 # if the user has a special prefix (like /opt), there might also be $prefix/lib
5609 # and $prefix/include, which should be included in our search paths for libraries
5611 LDFLAGS="$LDFLAGS -L${libdir}"
5612 CPPFLAGS="$CPPFLAGS -I${includedir}"
5613 # TODO- test whether gcc still works after this
5616 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5617 echo "configure:5618: checking for sin in -lm" >&5
5618 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6
5622 ac_save_LIBS="$LIBS"
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627 /* Override any gcc2 internal prototype to avoid an error. */
5628 /* We use char because int might match the return type of a gcc2
5629 builtin and then its argument prototype would still apply. */
5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5638 eval "ac_cv_lib_$ac_lib_var=yes"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 eval "ac_cv_lib_$ac_lib_var=no"
5646 LIBS="$ac_save_LIBS"
5649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5650 echo "$ac_t""yes" 1>&6
5651 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5652 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5653 cat >> confdefs.h <<EOF
5654 #define $ac_tr_lib 1
5660 echo "$ac_t""no" 1>&6
5661 echo "Error: Math library not found.";
5666 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5667 echo "configure:5668: checking for deflate in -lz" >&5
5668 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5672 ac_save_LIBS="$LIBS"
5674 cat > conftest.$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5677 /* Override any gcc2 internal prototype to avoid an error. */
5678 /* We use char because int might match the return type of a gcc2
5679 builtin and then its argument prototype would still apply. */
5686 if { (eval echo configure:5687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5688 eval "ac_cv_lib_$ac_lib_var=yes"
5690 echo "configure: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5693 eval "ac_cv_lib_$ac_lib_var=no"
5696 LIBS="$ac_save_LIBS"
5699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5700 echo "$ac_t""yes" 1>&6
5701 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5703 cat >> confdefs.h <<EOF
5704 #define $ac_tr_lib 1
5710 echo "$ac_t""no" 1>&6
5711 DISABLEPNG2SWF=true;
5712 MISSINGLIBS="${MISSINGLIBS} zlib"
5717 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
5718 echo "configure:5719: checking for jpeg_write_raw_data in -ljpeg" >&5
5719 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
5720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5723 ac_save_LIBS="$LIBS"
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 /* Override any gcc2 internal prototype to avoid an error. */
5729 /* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5731 char jpeg_write_raw_data();
5734 jpeg_write_raw_data()
5737 if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5739 eval "ac_cv_lib_$ac_lib_var=yes"
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5744 eval "ac_cv_lib_$ac_lib_var=no"
5747 LIBS="$ac_save_LIBS"
5750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5751 echo "$ac_t""yes" 1>&6
5752 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5753 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5754 cat >> confdefs.h <<EOF
5755 #define $ac_tr_lib 1
5761 echo "$ac_t""no" 1>&6
5762 DISABLEPDF2SWF=true;
5763 DISABLEJPEG2SWF=true;
5764 MISSINGLIBS="${MISSINGLIBS} jpeglib"
5768 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
5769 echo "configure:5770: checking for T1_LoadFont in -lt1" >&5
5770 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
5771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5774 ac_save_LIBS="$LIBS"
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790 eval "ac_cv_lib_$ac_lib_var=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5795 eval "ac_cv_lib_$ac_lib_var=no"
5798 LIBS="$ac_save_LIBS"
5801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5802 echo "$ac_t""yes" 1>&6
5803 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5805 cat >> confdefs.h <<EOF
5806 #define $ac_tr_lib 1
5812 echo "$ac_t""no" 1>&6
5813 DISABLEPDF2SWF=true;
5814 MISSINGLIBS="${MISSINGLIBS} t1lib"
5818 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
5819 echo "configure:5820: checking for FT_Init_FreeType in -lfreetype" >&5
5820 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
5821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 ac_save_LIBS="$LIBS"
5825 LIBS="-lfreetype $LIBS"
5826 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure"
5828 #include "confdefs.h"
5829 /* Override any gcc2 internal prototype to avoid an error. */
5830 /* We use char because int might match the return type of a gcc2
5831 builtin and then its argument prototype would still apply. */
5832 char FT_Init_FreeType();
5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5840 eval "ac_cv_lib_$ac_lib_var=yes"
5842 echo "configure: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5845 eval "ac_cv_lib_$ac_lib_var=no"
5848 LIBS="$ac_save_LIBS"
5851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5852 echo "$ac_t""yes" 1>&6
5855 echo "$ac_t""no" 1>&6
5860 echo $ac_n "checking for byte order""... $ac_c" 1>&6
5861 echo "configure:5862: checking for byte order" >&5
5862 if test "$cross_compiling" = yes; then
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5869 int main (int argc, char *argv[])
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5890 if test "x${CROSSCOMPILE}" = "x1"; then
5891 echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
5893 # Do some error checking and defaulting for the host and target type.
5895 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
5898 # 1. You are not allowed to specify --host, --target, and nonopt at the
5900 # 2. Host defaults to nonopt.
5901 # 3. If nonopt is not specified, then host defaults to the current host,
5902 # as determined by config.guess.
5903 # 4. Target and build default to nonopt.
5904 # 5. If nonopt is not specified, then target and build default to host.
5906 # The aliases save the names the user supplied, while $host etc.
5907 # will get canonicalized.
5908 case $host---$target---$nonopt in
5909 NONE---*---* | *---NONE---* | *---*---NONE) ;;
5910 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
5914 # Make sure we can run config.sub.
5915 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5916 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5919 echo $ac_n "checking host system type""... $ac_c" 1>&6
5920 echo "configure:5921: checking host system type" >&5
5923 case "$host_alias" in
5927 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5928 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5930 *) host_alias=$nonopt ;;
5934 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5935 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5936 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5937 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5938 echo "$ac_t""$host" 1>&6
5940 echo $ac_n "checking target system type""... $ac_c" 1>&6
5941 echo "configure:5942: checking target system type" >&5
5943 target_alias=$target
5944 case "$target_alias" in
5947 NONE) target_alias=$host_alias ;;
5948 *) target_alias=$nonopt ;;
5952 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
5953 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5954 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5955 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5956 echo "$ac_t""$target" 1>&6
5958 echo $ac_n "checking build system type""... $ac_c" 1>&6
5959 echo "configure:5960: checking build system type" >&5
5962 case "$build_alias" in
5965 NONE) build_alias=$host_alias ;;
5966 *) build_alias=$nonopt ;;
5970 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
5971 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5972 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5973 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5974 echo "$ac_t""$build" 1>&6
5976 test "$host_alias" != "$target_alias" &&
5977 test "$program_prefix$program_suffix$program_transform_name" = \
5979 program_prefix=${target_alias}-
5981 echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
5982 echo "configure:5983: checking for byte order, try 2" >&5
5987 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
5994 if test "x${LITTLEENDIAN}" = "x1"; then
5995 echo "$ac_t""little endian" 1>&6
5999 if test "x${BIGENDIAN}" = "x1"; then
6000 echo "$ac_t""big endian" 1>&6
6003 export WORDS_BIGENDIAN
6004 cat >> confdefs.h <<EOF
6005 #define WORDS_BIGENDIAN 1
6009 if test "x${BYTEORDERCHECKOK}" != "x1"; then
6010 echo "$ac_t""unknown" 1>&6
6011 echo Byte order could not determined.
6017 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
6018 echo "configure:6019: checking whether system() can handle command substitution" >&5
6019 if test "$cross_compiling" = yes; then
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6027 int main (int argc, char*argv[])
6029 return system("test `touch config.tmp2`");
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6037 echo "configure: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6044 if test "x${OK}" = "xOK";then
6045 test -f config.tmp2 || OK=
6048 if test "x${CROSSCOMPILE}" = "x1";then
6051 if test "x${OK}" = "xOK";then
6053 echo "$ac_t""yes" 1>&6
6055 export SYSTEM_BACKTICKS
6056 cat >> confdefs.h <<EOF
6057 #define SYSTEM_BACKTICKS 1
6061 echo "$ac_t""no" 1>&6
6066 if test "$program_transform_name" = s,x,x,; then
6067 program_transform_name=
6069 # Double any \ or $. echo might interpret backslashes.
6070 cat <<\EOF_SED > conftestsed
6071 s,\\,\\\\,g; s,\$,$$,g
6073 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
6076 test "$program_prefix" != NONE &&
6077 program_transform_name="s,^,${program_prefix},; $program_transform_name"
6078 # Use a double $ so make ignores it.
6079 test "$program_suffix" != NONE &&
6080 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
6082 # sed with no file args requires a program.
6083 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
6088 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6091 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6092 echo "configure:6093: checking for $ac_hdr that defines DIR" >&5
6093 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6094 echo $ac_n "(cached) $ac_c" 1>&6
6096 cat > conftest.$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6099 #include <sys/types.h>
6105 if { (eval echo configure:6106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6107 eval "ac_cv_header_dirent_$ac_safe=yes"
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6112 eval "ac_cv_header_dirent_$ac_safe=no"
6116 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6117 echo "$ac_t""yes" 1>&6
6118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6119 cat >> confdefs.h <<EOF
6120 #define $ac_tr_hdr 1
6122 ac_header_dirent=$ac_hdr; break
6124 echo "$ac_t""no" 1>&6
6127 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6128 if test $ac_header_dirent = dirent.h; then
6129 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6130 echo "configure:6131: checking for opendir in -ldir" >&5
6131 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6135 ac_save_LIBS="$LIBS"
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6151 eval "ac_cv_lib_$ac_lib_var=yes"
6153 echo "configure: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6156 eval "ac_cv_lib_$ac_lib_var=no"
6159 LIBS="$ac_save_LIBS"
6162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6163 echo "$ac_t""yes" 1>&6
6166 echo "$ac_t""no" 1>&6
6170 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6171 echo "configure:6172: checking for opendir in -lx" >&5
6172 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 ac_save_LIBS="$LIBS"
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 /* Override any gcc2 internal prototype to avoid an error. */
6182 /* We use char because int might match the return type of a gcc2
6183 builtin and then its argument prototype would still apply. */
6190 if { (eval echo configure:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6192 eval "ac_cv_lib_$ac_lib_var=yes"
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6197 eval "ac_cv_lib_$ac_lib_var=no"
6200 LIBS="$ac_save_LIBS"
6203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6204 echo "$ac_t""yes" 1>&6
6207 echo "$ac_t""no" 1>&6
6212 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6213 echo "configure:6214: checking for ANSI C header files" >&5
6214 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6215 echo $ac_n "(cached) $ac_c" 1>&6
6217 cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6226 { (eval echo configure:6227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6228 if test -z "$ac_err"; then
6230 ac_cv_header_stdc=yes
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 ac_cv_header_stdc=no
6240 if test $ac_cv_header_stdc = yes; then
6241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6242 cat > conftest.$ac_ext <<EOF
6243 #line 6244 "configure"
6244 #include "confdefs.h"
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 egrep "memchr" >/dev/null 2>&1; then
6252 ac_cv_header_stdc=no
6258 if test $ac_cv_header_stdc = yes; then
6259 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 egrep "free" >/dev/null 2>&1; then
6270 ac_cv_header_stdc=no
6276 if test $ac_cv_header_stdc = yes; then
6277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6278 if test "$cross_compiling" = yes; then
6281 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure"
6283 #include "confdefs.h"
6285 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6286 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6288 int main () { int i; for (i = 0; i < 256; i++)
6289 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6293 if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6300 ac_cv_header_stdc=no
6308 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6309 if test $ac_cv_header_stdc = yes; then
6310 cat >> confdefs.h <<\EOF
6311 #define STDC_HEADERS 1
6316 for ac_hdr in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h
6318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6320 echo "configure:6321: checking for $ac_hdr" >&5
6321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6330 { (eval echo configure:6331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6332 if test -z "$ac_err"; then
6334 eval "ac_cv_header_$ac_safe=yes"
6337 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6340 eval "ac_cv_header_$ac_safe=no"
6344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6345 echo "$ac_t""yes" 1>&6
6346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6347 cat >> confdefs.h <<EOF
6348 #define $ac_tr_hdr 1
6352 echo "$ac_t""no" 1>&6
6357 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
6358 DISABLEPDF2SWF=true;
6359 DISABLEJPEG2SWF=true;
6360 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6362 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
6363 DISABLEPDF2SWF=true;
6364 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6366 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
6367 DISABLEPNG2SWF=true;
6368 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6372 if test "x$USE_FREETYPE" != "x"; then
6373 cat >> confdefs.h <<EOF
6374 #define USE_FREETYPE "$USE_FREETYPE"
6378 cat >> confdefs.h <<EOF
6379 #define PACKAGE "$PACKAGE"
6382 cat >> confdefs.h <<EOF
6383 #define VERSION "$VERSION"
6392 echo $ac_n "checking for working const""... $ac_c" 1>&6
6393 echo "configure:6394: checking for working const" >&5
6394 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6403 /* Ultrix mips cc rejects this. */
6404 typedef int charset[2]; const charset x;
6405 /* SunOS 4.1.1 cc rejects this. */
6406 char const *const *ccp;
6408 /* NEC SVR4.0.2 mips cc rejects this. */
6409 struct point {int x, y;};
6410 static struct point const zero = {0,0};
6411 /* AIX XL C 1.02.0.0 rejects this.
6412 It does not let you subtract one const X* pointer from another in an arm
6413 of an if-expression whose if-part is not a constant expression */
6414 const char *g = "string";
6415 ccp = &g + (g ? g-g : 0);
6416 /* HPUX 7.0 cc rejects these. */
6419 ccp = (char const *const *) p;
6420 { /* SCO 3.2v4 cc rejects this. */
6422 char const *s = 0 ? (char *) 0 : (char const *) 0;
6426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6428 const int *foo = &x[0];
6431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6432 typedef const int *iptr;
6436 { /* AIX XL C 1.02.0.0 rejects this saying
6437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6438 struct s { int j; const int *ap[3]; };
6439 struct s *b; b->j = 5;
6441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6447 if { (eval echo configure:6448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6459 echo "$ac_t""$ac_cv_c_const" 1>&6
6460 if test $ac_cv_c_const = no; then
6461 cat >> confdefs.h <<\EOF
6467 echo $ac_n "checking for inline""... $ac_c" 1>&6
6468 echo "configure:6469: checking for inline" >&5
6469 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6473 for ac_kw in inline __inline__ __inline; do
6474 cat > conftest.$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6482 if { (eval echo configure:6483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6484 ac_cv_c_inline=$ac_kw; break
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6494 echo "$ac_t""$ac_cv_c_inline" 1>&6
6495 case "$ac_cv_c_inline" in
6497 no) cat >> confdefs.h <<\EOF
6501 *) cat >> confdefs.h <<EOF
6502 #define inline $ac_cv_c_inline
6507 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6508 echo "configure:6509: checking for off_t" >&5
6509 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6510 echo $ac_n "(cached) $ac_c" 1>&6
6512 cat > conftest.$ac_ext <<EOF
6513 #line 6514 "configure"
6514 #include "confdefs.h"
6515 #include <sys/types.h>
6521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6524 ac_cv_type_off_t=yes
6532 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6533 if test $ac_cv_type_off_t = no; then
6534 cat >> confdefs.h <<\EOF
6540 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6541 echo "configure:6542: checking for size_t" >&5
6542 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6543 echo $ac_n "(cached) $ac_c" 1>&6
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6548 #include <sys/types.h>
6554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6555 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6557 ac_cv_type_size_t=yes
6560 ac_cv_type_size_t=no
6565 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6566 if test $ac_cv_type_size_t = no; then
6567 cat >> confdefs.h <<\EOF
6568 #define size_t unsigned
6573 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6574 echo "configure:6575: checking whether struct tm is in sys/time.h or time.h" >&5
6575 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 #include <sys/types.h>
6584 struct tm *tp; tp->tm_sec;
6587 if { (eval echo configure:6588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6589 ac_cv_struct_tm=time.h
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6594 ac_cv_struct_tm=sys/time.h
6599 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6600 if test $ac_cv_struct_tm = sys/time.h; then
6601 cat >> confdefs.h <<\EOF
6602 #define TM_IN_SYS_TIME 1
6607 echo $ac_n "checking for boolean""... $ac_c" 1>&6
6608 echo "configure:6609: checking for boolean" >&5
6609 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 #include <sys/types.h>
6621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6622 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6624 ac_cv_type_boolean=yes
6627 ac_cv_type_boolean=no
6632 echo "$ac_t""$ac_cv_type_boolean" 1>&6
6633 if test $ac_cv_type_boolean = no; then
6634 cat >> confdefs.h <<\EOF
6640 echo $ac_n "checking for bool""... $ac_c" 1>&6
6641 echo "configure:6642: checking for bool" >&5
6642 if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 #include <sys/types.h>
6654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6655 egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6665 echo "$ac_t""$ac_cv_type_bool" 1>&6
6666 if test $ac_cv_type_bool = no; then
6667 cat >> confdefs.h <<\EOF
6674 for ac_func in popen mkstemp stat lrand48 rand srand48 srand
6676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6677 echo "configure:6678: checking for $ac_func" >&5
6678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6679 echo $ac_n "(cached) $ac_c" 1>&6
6681 cat > conftest.$ac_ext <<EOF
6682 #line 6683 "configure"
6683 #include "confdefs.h"
6684 /* System header to define __stub macros and hopefully few prototypes,
6685 which can conflict with char $ac_func(); below. */
6687 /* Override any gcc2 internal prototype to avoid an error. */
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6694 /* The GNU C library defines this for functions which it implements
6695 to always fail with ENOSYS. Some functions are actually named
6696 something starting with __ and the normal name is an alias. */
6697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6705 if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6707 eval "ac_cv_func_$ac_func=yes"
6709 echo "configure: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6712 eval "ac_cv_func_$ac_func=no"
6717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6718 echo "$ac_t""yes" 1>&6
6719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6720 cat >> confdefs.h <<EOF
6721 #define $ac_tr_func 1
6725 echo "$ac_t""no" 1>&6
6730 echo $ac_n "checking whether we can compile the avifile test program""... $ac_c" 1>&6
6731 echo "configure:6732: checking whether we can compile the avifile test program" >&5
6733 cat > conftest.cpp << EOF
6734 #include <avifile/version.h>
6735 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6736 #include <avifile.h>
6737 #include <aviplay.h>
6739 #include <creators.h>
6740 #include <StreamInfo.h>
6743 #include <avifile.h>
6744 #include <aviplay.h>
6745 #include <aviutil.h>
6747 #define Height height
6754 IAviReadFile* player;
6755 IAviReadStream* astream;
6756 IAviReadStream* vstream;
6757 player = CreateIAviReadFile(0);
6758 astream = player->GetStream(0, AviStream::Audio);
6759 vstream = player->GetStream(0, AviStream::Video);
6760 vstream -> StartStreaming();
6761 astream -> StartStreaming();
6764 player->GetFileHeader(&head);
6765 head.dwMicroSecPerFrame;
6770 head.dwMicroSecPerFrame;
6771 astream->GetEndPos(),
6772 astream->GetEndTime());
6773 player->StreamCount();
6775 StreamInfo*audioinfo;
6776 StreamInfo*videoinfo;
6777 audioinfo = astream->GetStreamInfo();
6778 videoinfo = vstream->GetStreamInfo();
6779 videoinfo->GetVideoWidth();
6780 videoinfo->GetVideoHeight();
6781 audioinfo->GetAudioSamplesPerSec();
6782 videoinfo->GetFps();
6784 CImage*img = vstream->GetFrame();
6791 astream->GetAudioFormatInfo(&wave,0);
6793 astream->ReadFrames(0,0,0,a,b);
6795 int main (int argc, char*argv)
6801 ac_link='$CXX $CPPFLAGS $CXXFLAGS `avifile-config --cflags` `avifile-config --libs` conftest.cpp -o conftest${ac_exeext}'
6802 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
6803 echo "$ac_t""yes" 1>&6
6806 cat >> confdefs.h <<EOF
6807 #define AVIFILE true
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6813 echo "$ac_t""no" 1>&6
6818 avi2swf="avi2swf/Makefile"
6819 if test "x${AVIFILE}" != "xtrue"; then
6820 echo "* Couldn't compile the avifile test program."
6821 echo "* Disabling avi2swf tool..."
6822 echo all install uninstall clean: > avi2swf/Makefile
6826 if test "x${NO_MP3}" == "x"; then
6827 cat >> confdefs.h <<EOF
6833 if test "x${USE_FREETYPE}" == "xtrue"; then
6834 if test "x{$FREETYPE_CONFIG}" != "x"; then
6835 ftinclude=`freetype-config --cflags`
6836 ftlibs=`freetype-config --libs`
6837 CXXFLAGS="$CXXFLAGS $ftinclude"
6838 CFLAGS="$CFLAGS $ftinclude"
6839 LIBS="$LIBS $ftlibs"
6840 else if test -d /usr/include/freetype2; then
6841 CXXFLAGS="$CXXFLAGS -I/usr/include/freetype2"
6842 CFLAGS="$CFLAGS -I/usr/include/freetype2"
6843 LIBS="$LIBS -lfreetype"
6844 else if test -d /usr/local/include/freetype2; then
6845 CXXFLAGS="$CXXFLAGS -I/usr/local/include/freetype2"
6846 CFLAGS="$CFLAGS -I/usr/local/include/freetype2"
6847 LIBS="$LIBS -L /usr/local/lib -lfreetype"
6853 if test "x${UNCOMPRESS}" = "xgzip"; then
6854 cat >> confdefs.h <<EOF
6861 JPEG2SWF='jpeg2swf$(E)'
6863 PNG2SWF='png2swf$(E)'
6865 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6866 echo "***************************************************"
6867 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
6868 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6869 echo "Disabling pdf2swf tool..."
6870 rm -f pdf2swf/Makefile
6871 echo all install uninstall clean: > pdf2swf/Makefile
6873 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6874 echo "Disabling jpeg2swf tool..."
6878 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
6879 echo "Disabling png2swf tool..."
6883 if test "x${ZLIBMISSING}" = "xtrue"; then
6885 echo "Warning! Without zlib, you will not be able to read"
6886 echo "or write compressed Flash MX files!"
6888 echo "***************************************************"
6889 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
6891 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
6897 cat > confcache <<\EOF
6898 # This file is a shell script that caches the results of configure
6899 # tests run on this system so they can be shared between configure
6900 # scripts and configure runs. It is not useful on other systems.
6901 # If it contains results you don't want to keep, you may remove or edit it.
6903 # By default, configure uses ./config.cache as the cache file,
6904 # creating it if it does not exist already. You can give configure
6905 # the --cache-file=FILE option to use a different cache file; that is
6906 # what configure does when it calls configure scripts in
6907 # subdirectories, so they share the cache.
6908 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6909 # config.status only pays attention to the cache file if you give it the
6910 # --recheck option to rerun configure.
6913 # The following way of writing the cache mishandles newlines in values,
6914 # but we know of no workaround that is simple, portable, and efficient.
6915 # So, don't put newlines in cache variables' values.
6916 # Ultrix sh set writes to stderr and can't be redirected directly,
6917 # and sets the high bit in the cache file unless we assign to the vars.
6919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6921 # `set' does not quote correctly, so add quotes (double-quote substitution
6922 # turns \\\\ into \\, and sed turns \\ into \).
6924 -e "s/'/'\\\\''/g" \
6925 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6928 # `set' quotes correctly as required by POSIX, so do not add quotes.
6929 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6932 if cmp -s $cache_file confcache; then
6935 if test -w $cache_file; then
6936 echo "updating cache $cache_file"
6937 cat confcache > $cache_file
6939 echo "not updating unwritable cache $cache_file"
6944 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6947 # Let make expand exec_prefix.
6948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6950 # Any assignment to VPATH causes Sun make to only execute
6951 # the first set of double-colon rules, so remove it if not needed.
6952 # If there is a colon in the path, we need to keep it.
6953 if test "x$srcdir" = x.; then
6954 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6957 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6959 DEFS=-DHAVE_CONFIG_H
6961 # Without the "./", some shells look in PATH for config.status.
6962 : ${CONFIG_STATUS=./config.status}
6964 echo creating $CONFIG_STATUS
6965 rm -f $CONFIG_STATUS
6966 cat > $CONFIG_STATUS <<EOF
6968 # Generated automatically by configure.
6969 # Run this file to recreate the current configuration.
6970 # This directory was configured as follows,
6971 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6973 # $0 $ac_configure_args
6975 # Compiler output produced by configure, useful for debugging
6976 # configure, is in ./config.log if it exists.
6978 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6981 case "\$ac_option" in
6982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6983 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6984 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6985 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6986 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6988 -help | --help | --hel | --he | --h)
6989 echo "\$ac_cs_usage"; exit 0 ;;
6990 *) echo "\$ac_cs_usage"; exit 1 ;;
6994 ac_given_srcdir=$srcdir
6995 ac_given_INSTALL="$INSTALL"
6997 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6999 cat >> $CONFIG_STATUS <<EOF
7001 # Protect against being on the right side of a sed subst in config.status.
7002 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7003 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7007 s%@CFLAGS@%$CFLAGS%g
7008 s%@CPPFLAGS@%$CPPFLAGS%g
7009 s%@CXXFLAGS@%$CXXFLAGS%g
7010 s%@FFLAGS@%$FFLAGS%g
7012 s%@LDFLAGS@%$LDFLAGS%g
7014 s%@exec_prefix@%$exec_prefix%g
7015 s%@prefix@%$prefix%g
7016 s%@program_transform_name@%$program_transform_name%g
7017 s%@bindir@%$bindir%g
7018 s%@sbindir@%$sbindir%g
7019 s%@libexecdir@%$libexecdir%g
7020 s%@datadir@%$datadir%g
7021 s%@sysconfdir@%$sysconfdir%g
7022 s%@sharedstatedir@%$sharedstatedir%g
7023 s%@localstatedir@%$localstatedir%g
7024 s%@libdir@%$libdir%g
7025 s%@includedir@%$includedir%g
7026 s%@oldincludedir@%$oldincludedir%g
7027 s%@infodir@%$infodir%g
7028 s%@mandir@%$mandir%g
7031 s%@host_alias@%$host_alias%g
7032 s%@host_cpu@%$host_cpu%g
7033 s%@host_vendor@%$host_vendor%g
7034 s%@host_os@%$host_os%g
7038 s%@RANLIB@%$RANLIB%g
7039 s%@SET_MAKE@%$SET_MAKE%g
7040 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7041 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7042 s%@INSTALL_DATA@%$INSTALL_DATA%g
7045 s%@build_alias@%$build_alias%g
7046 s%@build_cpu@%$build_cpu%g
7047 s%@build_vendor@%$build_vendor%g
7048 s%@build_os@%$build_os%g
7049 s%@OBJEXT@%$OBJEXT%g
7050 s%@EXEEXT@%$EXEEXT%g
7052 s%@LIBTOOL@%$LIBTOOL%g
7053 s%@UNCOMPRESS@%$UNCOMPRESS%g
7054 s%@FREETYPE_CONFIG@%$FREETYPE_CONFIG%g
7056 s%@target@%$target%g
7057 s%@target_alias@%$target_alias%g
7058 s%@target_cpu@%$target_cpu%g
7059 s%@target_vendor@%$target_vendor%g
7060 s%@target_os@%$target_os%g
7061 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
7062 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
7063 s%@PACKAGE@%$PACKAGE%g
7064 s%@VERSION@%$VERSION%g
7065 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
7066 s%@USE_GZIP@%$USE_GZIP%g
7067 s%@JPEG2SWF@%$JPEG2SWF%g
7068 s%@PNG2SWF@%$PNG2SWF%g
7073 cat >> $CONFIG_STATUS <<\EOF
7075 # Split the substitutions into bite-sized pieces for seds with
7076 # small command number limits, like on Digital OSF/1 and HP-UX.
7077 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7078 ac_file=1 # Number of current file.
7079 ac_beg=1 # First line for current file.
7080 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7083 while $ac_more_lines; do
7084 if test $ac_beg -gt 1; then
7085 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7087 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7089 if test ! -s conftest.s$ac_file; then
7091 rm -f conftest.s$ac_file
7093 if test -z "$ac_sed_cmds"; then
7094 ac_sed_cmds="sed -f conftest.s$ac_file"
7096 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7098 ac_file=`expr $ac_file + 1`
7100 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7103 if test -z "$ac_sed_cmds"; then
7108 cat >> $CONFIG_STATUS <<EOF
7110 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
7112 cat >> $CONFIG_STATUS <<\EOF
7113 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7116 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7117 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7118 *) ac_file_in="${ac_file}.in" ;;
7121 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7123 # Remove last slash and all that follows it. Not all systems have dirname.
7124 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7125 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7126 # The file is in a subdirectory.
7127 test ! -d "$ac_dir" && mkdir "$ac_dir"
7128 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7129 # A "../" for each directory in $ac_dir_suffix.
7130 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7132 ac_dir_suffix= ac_dots=
7135 case "$ac_given_srcdir" in
7137 if test -z "$ac_dots"; then top_srcdir=.
7138 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7139 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7141 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7142 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7145 case "$ac_given_INSTALL" in
7146 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7147 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7150 echo creating "$ac_file"
7152 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7154 *Makefile*) ac_comsub="1i\\
7155 # $configure_input" ;;
7159 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7161 s%@configure_input@%$configure_input%g
7162 s%@srcdir@%$srcdir%g
7163 s%@top_srcdir@%$top_srcdir%g
7164 s%@INSTALL@%$INSTALL%g
7165 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7169 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7170 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7172 # ac_d sets the value in "#define NAME VALUE" lines.
7173 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7174 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7177 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7178 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7179 ac_uB='\([ ]\)%\1#\2define\3'
7182 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7183 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7184 ac_eB='$%\1#\2define\3'
7188 if test "${CONFIG_HEADERS+set}" != set; then
7190 cat >> $CONFIG_STATUS <<EOF
7191 CONFIG_HEADERS="config.h"
7193 cat >> $CONFIG_STATUS <<\EOF
7195 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7196 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7198 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7199 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7200 *) ac_file_in="${ac_file}.in" ;;
7203 echo creating $ac_file
7205 rm -f conftest.frag conftest.in conftest.out
7206 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7207 cat $ac_file_inputs > conftest.in
7211 # Transform confdefs.h into a sed script conftest.vals that substitutes
7212 # the proper values into config.h.in to produce config.h. And first:
7213 # Protect against being on the right side of a sed subst in config.status.
7214 # Protect against being in an unquoted here document in config.status.
7216 cat > conftest.hdr <<\EOF
7219 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7223 sed -n -f conftest.hdr confdefs.h > conftest.vals
7226 # This sed command replaces #undef with comments. This is necessary, for
7227 # example, in the case of _POSIX_SOURCE, which is predefined and required
7228 # on some systems where configure will not decide to define it.
7229 cat >> conftest.vals <<\EOF
7230 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7233 # Break up conftest.vals because some shells have a limit on
7234 # the size of here documents, and old seds have small limits too.
7239 ac_lines=`grep -c . conftest.vals`
7240 # grep -c gives empty output for an empty file on some AIX systems.
7241 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7242 # Write a limited-size here document to conftest.frag.
7243 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7244 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7246 sed -f conftest.frag conftest.in > conftest.out
7248 mv conftest.out conftest.in
7250 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7252 mv conftest.tail conftest.vals
7256 cat >> $CONFIG_STATUS <<\EOF
7257 rm -f conftest.frag conftest.h
7258 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7259 cat conftest.in >> conftest.h
7261 if cmp -s $ac_file conftest.h 2>/dev/null; then
7262 echo "$ac_file is unchanged"
7265 # Remove last slash and all that follows it. Not all systems have dirname.
7266 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7267 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7268 # The file is in a subdirectory.
7269 test ! -d "$ac_dir" && mkdir "$ac_dir"
7272 mv conftest.h $ac_file
7277 cat >> $CONFIG_STATUS <<EOF
7280 cat >> $CONFIG_STATUS <<\EOF
7284 chmod +x $CONFIG_STATUS
7285 rm -fr confdefs* $ac_clean_files
7286 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7289 if test "x${srcdir}" != "x."; then
7290 echo "Warning: --srcdir is not supported"