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-11-17-2016
747 if test "x$CHECKMEM" '!=' "x";then
750 if test "x$DEBUG" '!=' "x";then
751 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -pg -g $CFLAGS"
752 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -pg -g $CXXFLAGS"
753 STRIP="@echo debug enabled, not stripping "
756 else if test "x$OPTIMIZE" '!=' "x"; then
757 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -Winline -O3 -fomit-frame-pointer $CFLAGS"
758 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -Winline -O3 -fomit-frame-pointer $CXXFLAGS"
760 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CFLAGS"
761 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CXXFLAGS"
765 export PACKAGE VERSION CFLAGS CXXFLAGS
768 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
769 if test -f $ac_dir/install-sh; then
771 ac_install_sh="$ac_aux_dir/install-sh -c"
773 elif test -f $ac_dir/install.sh; then
775 ac_install_sh="$ac_aux_dir/install.sh -c"
779 if test -z "$ac_aux_dir"; then
780 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
782 ac_config_guess=$ac_aux_dir/config.guess
783 ac_config_sub=$ac_aux_dir/config.sub
784 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
787 # Make sure we can run config.sub.
788 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
789 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
792 echo $ac_n "checking host system type""... $ac_c" 1>&6
793 echo "configure:794: checking host system type" >&5
796 case "$host_alias" in
800 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
801 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
803 *) host_alias=$nonopt ;;
807 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
808 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
809 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
810 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
811 echo "$ac_t""$host" 1>&6
817 CFLAGS="$CFLAGS -fno-rtti"
818 CXXFLAGS="$CXXFLAGS -fno-rtti"
821 # Extract the first word of "gcc", so it can be a program name with args.
822 set dummy gcc; ac_word=$2
823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
824 echo "configure:825: checking for $ac_word" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test.
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
833 for ac_dir in $ac_dummy; do
834 test -z "$ac_dir" && ac_dir=.
835 if test -f $ac_dir/$ac_word; then
844 if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6
847 echo "$ac_t""no" 1>&6
850 if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args.
852 set dummy cc; ac_word=$2
853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
854 echo "configure:855: checking for $ac_word" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test.
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
864 for ac_dir in $ac_dummy; do
865 test -z "$ac_dir" && ac_dir=.
866 if test -f $ac_dir/$ac_word; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
876 if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC
880 if test $# -gt 0; then
881 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen
883 # first if we set CC to just the basename; use the full file name.
885 set dummy "$ac_dir/$ac_word" "$@"
893 if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6
896 echo "$ac_t""no" 1>&6
899 if test -z "$CC"; then
902 # Extract the first word of "cl", so it can be a program name with args.
903 set dummy cl; ac_word=$2
904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
905 echo "configure:906: checking for $ac_word" >&5
906 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test.
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
914 for ac_dir in $ac_dummy; do
915 test -z "$ac_dir" && ac_dir=.
916 if test -f $ac_dir/$ac_word; then
925 if test -n "$CC"; then
926 echo "$ac_t""$CC" 1>&6
928 echo "$ac_t""no" 1>&6
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
936 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
937 echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling=$ac_cv_prog_cc_cross
946 cat > conftest.$ac_ext << EOF
948 #line 949 "configure"
949 #include "confdefs.h"
953 if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
954 ac_cv_prog_cc_works=yes
955 # If we can't run a trivial program, we are probably using a cross compiler.
956 if (./conftest; exit) 2>/dev/null; then
957 ac_cv_prog_cc_cross=no
959 ac_cv_prog_cc_cross=yes
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 ac_cv_prog_cc_works=no
968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
969 ac_cpp='$CPP $CPPFLAGS'
970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
972 cross_compiling=$ac_cv_prog_cc_cross
974 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
975 if test $ac_cv_prog_cc_works = no; then
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
978 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
979 echo "configure:980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
980 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
981 cross_compiling=$ac_cv_prog_cc_cross
983 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
984 echo "configure:985: checking whether we are using GNU C" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 cat > conftest.c <<EOF
993 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1000 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1002 if test $ac_cv_prog_gcc = yes; then
1008 ac_test_CFLAGS="${CFLAGS+set}"
1009 ac_save_CFLAGS="$CFLAGS"
1011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1012 echo "configure:1013: checking whether ${CC-cc} accepts -g" >&5
1013 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 echo 'void f(){}' > conftest.c
1017 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1026 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1027 if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS"
1029 elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then
1036 if test "$GCC" = yes; then
1043 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1045 # Extract the first word of "$ac_prog", so it can be a program name with args.
1046 set dummy $ac_prog; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1057 for ac_dir in $ac_dummy; do
1058 test -z "$ac_dir" && ac_dir=.
1059 if test -f $ac_dir/$ac_word; then
1060 ac_cv_prog_CXX="$ac_prog"
1067 CXX="$ac_cv_prog_CXX"
1068 if test -n "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6
1071 echo "$ac_t""no" 1>&6
1074 test -n "$CXX" && break
1076 test -n "$CXX" || CXX="gcc"
1079 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1084 ac_cpp='$CXXCPP $CPPFLAGS'
1085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1087 cross_compiling=$ac_cv_prog_cxx_cross
1089 cat > conftest.$ac_ext << EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1094 int main(){return(0);}
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 ac_cv_prog_cxx_works=yes
1098 # If we can't run a trivial program, we are probably using a cross compiler.
1099 if (./conftest; exit) 2>/dev/null; then
1100 ac_cv_prog_cxx_cross=no
1102 ac_cv_prog_cxx_cross=yes
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1107 ac_cv_prog_cxx_works=no
1111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112 ac_cpp='$CPP $CPPFLAGS'
1113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115 cross_compiling=$ac_cv_prog_cc_cross
1117 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1118 if test $ac_cv_prog_cxx_works = no; then
1119 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1121 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1123 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1124 cross_compiling=$ac_cv_prog_cxx_cross
1126 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether we are using GNU C++" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 cat > conftest.C <<EOF
1136 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1143 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1145 if test $ac_cv_prog_gxx = yes; then
1151 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1152 ac_save_CXXFLAGS="$CXXFLAGS"
1154 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether ${CXX-g++} accepts -g" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 echo 'void f(){}' > conftest.cc
1160 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1161 ac_cv_prog_cxx_g=yes
1169 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1170 if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS"
1172 elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then
1179 if test "$GXX" = yes; then
1187 if test "x$CHECKMEM" '!=' "x";then
1191 #unset ac_cv_prog_CC
1192 #unset ac_cv_prog_CXX
1196 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1197 echo "configure:1198: checking how to run the C preprocessor" >&5
1198 # On Suns, sometimes $CPP names a directory.
1199 if test -n "$CPP" && test -d "$CPP"; then
1202 if test -z "$CPP"; then
1203 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 # This must be in double quotes, not single quotes, because CPP may get
1207 # substituted into the Makefile and "${CC-cc}" will confuse make.
1209 # On the NeXT, cc -E runs the code through the compiler's parser,
1210 # not just through cpp.
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1227 CPP="${CC-cc} -E -traditional-cpp"
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237 if test -z "$ac_err"; then
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 CPP="${CC-cc} -nologo -E"
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254 if test -z "$ac_err"; then
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1268 ac_cv_prog_CPP="$CPP"
1270 CPP="$ac_cv_prog_CPP"
1272 ac_cv_prog_CPP="$CPP"
1274 echo "$ac_t""$CPP" 1>&6
1277 # Extract the first word of "ranlib", so it can be a program name with args.
1278 set dummy ranlib; ac_word=$2
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_word" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 if test -n "$RANLIB"; then
1285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1289 for ac_dir in $ac_dummy; do
1290 test -z "$ac_dir" && ac_dir=.
1291 if test -f $ac_dir/$ac_word; then
1292 ac_cv_prog_RANLIB="ranlib"
1297 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1300 RANLIB="$ac_cv_prog_RANLIB"
1301 if test -n "$RANLIB"; then
1302 echo "$ac_t""$RANLIB" 1>&6
1304 echo "$ac_t""no" 1>&6
1307 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether ${MAKE-make} sets \${MAKE}" >&5
1309 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 cat > conftestmake <<\EOF
1315 @echo 'ac_maketemp="${MAKE}"'
1317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1318 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1319 if test -n "$ac_maketemp"; then
1320 eval ac_cv_prog_make_${ac_make}_set=yes
1322 eval ac_cv_prog_make_${ac_make}_set=no
1326 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1330 echo "$ac_t""no" 1>&6
1331 SET_MAKE="MAKE=${MAKE-make}"
1334 # Find a good install program. We prefer a C program (faster),
1335 # so one script is as good as another. But avoid the broken or
1336 # incompatible versions:
1337 # SysV /etc/install, /usr/sbin/install
1338 # SunOS /usr/etc/install
1339 # IRIX /sbin/install
1341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1344 # ./install, which can be erroneously created by make from ./install.sh.
1345 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1346 echo "configure:1347: checking for a BSD compatible install" >&5
1347 if test -z "$INSTALL"; then
1348 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1352 for ac_dir in $PATH; do
1353 # Account for people who put trailing slashes in PATH elements.
1355 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1357 # OSF1 and SCO ODT 3.0 have their own names for install.
1358 # Don't use installbsd from OSF since it installs stuff as root
1360 for ac_prog in ginstall scoinst install; do
1361 if test -f $ac_dir/$ac_prog; then
1362 if test $ac_prog = install &&
1363 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1364 # AIX install. It has an incompatible calling convention.
1367 ac_cv_path_install="$ac_dir/$ac_prog -c"
1378 if test "${ac_cv_path_install+set}" = set; then
1379 INSTALL="$ac_cv_path_install"
1381 # As a last resort, use the slow shell script. We don't cache a
1382 # path for INSTALL within a source directory, because that will
1383 # break other packages using the cache if that directory is
1384 # removed, or if the path is relative.
1385 INSTALL="$ac_install_sh"
1388 echo "$ac_t""$INSTALL" 1>&6
1390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1391 # It thinks the first close brace ends the variable substitution.
1392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1398 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether ln -s works" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1404 if ln -s X conftestdata 2>/dev/null
1407 ac_cv_prog_LN_S="ln -s"
1412 LN_S="$ac_cv_prog_LN_S"
1413 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1414 echo "$ac_t""yes" 1>&6
1416 echo "$ac_t""no" 1>&6
1419 # Find the correct PATH separator. Usually this is `:', but
1420 # DJGPP uses `;' like DOS.
1421 if test "X${PATH_SEPARATOR+set}" != Xset; then
1422 UNAME=${UNAME-`uname 2>/dev/null`}
1424 *-DOS) lt_cv_sys_path_separator=';' ;;
1425 *) lt_cv_sys_path_separator=':' ;;
1427 PATH_SEPARATOR=$lt_cv_sys_path_separator
1430 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1431 echo "configure:1432: checking for Cygwin environment" >&5
1432 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1442 #define __CYGWIN__ __CYGWIN32__
1447 if { (eval echo configure:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1460 echo "$ac_t""$ac_cv_cygwin" 1>&6
1462 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1463 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1464 echo "configure:1465: checking for mingw32 environment" >&5
1465 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1476 if { (eval echo configure:1477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1489 echo "$ac_t""$ac_cv_mingw32" 1>&6
1491 test "$ac_cv_mingw32" = yes && MINGW32=yes
1492 # Check whether --enable-shared or --disable-shared was given.
1493 if test "${enable_shared+set}" = set; then
1494 enableval="$enable_shared"
1495 p=${PACKAGE-default}
1497 yes) enable_shared=yes ;;
1498 no) enable_shared=no ;;
1501 # Look at the argument we got. We use all the common list separators.
1502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1503 for pkg in $enableval; do
1504 if test "X$pkg" = "X$p"; then
1515 # Check whether --enable-static or --disable-static was given.
1516 if test "${enable_static+set}" = set; then
1517 enableval="$enable_static"
1518 p=${PACKAGE-default}
1520 yes) enable_static=yes ;;
1521 no) enable_static=no ;;
1524 # Look at the argument we got. We use all the common list separators.
1525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1526 for pkg in $enableval; do
1527 if test "X$pkg" = "X$p"; then
1538 # Check whether --enable-fast-install or --disable-fast-install was given.
1539 if test "${enable_fast_install+set}" = set; then
1540 enableval="$enable_fast_install"
1541 p=${PACKAGE-default}
1543 yes) enable_fast_install=yes ;;
1544 no) enable_fast_install=no ;;
1546 enable_fast_install=no
1547 # Look at the argument we got. We use all the common list separators.
1548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1549 for pkg in $enableval; do
1550 if test "X$pkg" = "X$p"; then
1551 enable_fast_install=yes
1558 enable_fast_install=yes
1561 echo $ac_n "checking build system type""... $ac_c" 1>&6
1562 echo "configure:1563: checking build system type" >&5
1565 case "$build_alias" in
1568 NONE) build_alias=$host_alias ;;
1569 *) build_alias=$nonopt ;;
1573 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1574 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577 echo "$ac_t""$build" 1>&6
1579 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1580 if test "${with_gnu_ld+set}" = set; then
1581 withval="$with_gnu_ld"
1582 test "$withval" = no || with_gnu_ld=yes
1588 if test "$GCC" = yes; then
1589 # Check if gcc -print-prog-name=ld gives a path.
1590 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1591 echo "configure:1592: checking for ld used by GCC" >&5
1594 # gcc leaves a trailing carriage return which upsets mingw
1595 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1597 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1600 # Accept absolute paths.
1601 [\\/]* | [A-Za-z]:[\\/]*)
1602 re_direlt='/[^/][^/]*/\.\./'
1603 # Canonicalize the path of ld
1604 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1605 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1606 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1608 test -z "$LD" && LD="$ac_prog"
1611 # If it fails, then pretend we aren't using GCC.
1615 # If it is relative, then search for the first ld in PATH.
1619 elif test "$with_gnu_ld" = yes; then
1620 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1621 echo "configure:1622: checking for GNU ld" >&5
1623 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1624 echo "configure:1625: checking for non-GNU ld" >&5
1626 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 if test -z "$LD"; then
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1631 for ac_dir in $PATH; do
1632 test -z "$ac_dir" && ac_dir=.
1633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1634 lt_cv_path_LD="$ac_dir/$ac_prog"
1635 # Check to see if the program is GNU ld. I'd rather use --version,
1636 # but apparently some GNU ld's only accept -v.
1637 # Break only if it was the GNU/non-GNU ld that we prefer.
1638 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1639 test "$with_gnu_ld" != no && break
1641 test "$with_gnu_ld" != yes && break
1647 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1652 if test -n "$LD"; then
1653 echo "$ac_t""$LD" 1>&6
1655 echo "$ac_t""no" 1>&6
1657 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1658 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1659 echo "configure:1660: checking if the linker ($LD) is GNU ld" >&5
1660 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1664 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1665 lt_cv_prog_gnu_ld=yes
1667 lt_cv_prog_gnu_ld=no
1671 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1672 with_gnu_ld=$lt_cv_prog_gnu_ld
1675 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $LD option to reload object files" >&5
1677 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 lt_cv_ld_reload_flag='-r'
1683 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1684 reload_flag=$lt_cv_ld_reload_flag
1685 test -n "$reload_flag" && reload_flag=" $reload_flag"
1687 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1688 echo "configure:1689: checking for BSD-compatible nm" >&5
1689 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 if test -n "$NM"; then
1693 # Let the user override the test.
1696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1697 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1698 test -z "$ac_dir" && ac_dir=.
1699 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1700 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1701 # Check to see if the nm accepts a BSD-compat flag.
1702 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1703 # nm: unknown option "B" ignored
1704 # Tru64's nm complains that /dev/null is an invalid object file
1705 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1706 lt_cv_path_NM="$tmp_nm -B"
1708 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1709 lt_cv_path_NM="$tmp_nm -p"
1712 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1713 continue # so that we can try to find one that supports BSD flags
1718 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1723 echo "$ac_t""$NM" 1>&6
1725 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1726 echo "configure:1727: checking how to recognise dependant libraries" >&5
1727 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 lt_cv_file_magic_cmd='$MAGIC_CMD'
1731 lt_cv_file_magic_test_file=
1732 lt_cv_deplibs_check_method='unknown'
1733 # Need to set the preceding variable on all platforms that support
1734 # interlibrary dependencies.
1735 # 'none' -- dependencies not supported.
1736 # `unknown' -- same as none, but documents that we really don't know.
1737 # 'pass_all' -- all dependencies passed with no checks.
1738 # 'test_compile' -- check by making test program.
1739 # 'file_magic [[regex]]' -- check by looking for files in library path
1740 # which responds to the $file_magic_cmd with a given egrep regex.
1741 # If you have `file' or equivalent on your system and you're not sure
1742 # whether `pass_all' will *always* work, you probably want this one.
1746 lt_cv_deplibs_check_method=pass_all
1750 lt_cv_deplibs_check_method=pass_all
1754 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1755 lt_cv_file_magic_cmd='/usr/bin/file -L'
1756 lt_cv_file_magic_test_file=/shlib/libc.so
1759 cygwin* | mingw* | pw32*)
1760 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1761 lt_cv_file_magic_cmd='$OBJDUMP -f'
1764 darwin* | rhapsody*)
1765 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1766 lt_cv_file_magic_cmd='/usr/bin/file -L'
1768 rhapsody* | darwin1.[012])
1769 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1772 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1778 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1781 # Not sure whether the presence of OpenBSD here was a mistake.
1782 # Let's accept both of them until this is cleared up.
1783 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1784 lt_cv_file_magic_cmd=/usr/bin/file
1785 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1789 lt_cv_deplibs_check_method=pass_all
1794 lt_cv_deplibs_check_method=pass_all
1798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1799 lt_cv_file_magic_cmd=/usr/bin/file
1800 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1803 irix5* | irix6* | nonstopux*)
1805 irix5* | nonstopux*)
1806 # this will be overridden with pass_all, but let us keep it just in case
1807 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1811 *-32|*"-32 ") libmagic=32-bit;;
1812 *-n32|*"-n32 ") libmagic=N32;;
1813 *-64|*"-64 ") libmagic=64-bit;;
1814 *) libmagic=never-match;;
1816 # this will be overridden with pass_all, but let us keep it just in case
1817 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1820 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1821 lt_cv_deplibs_check_method=pass_all
1824 # This must be Linux ELF.
1827 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1828 lt_cv_deplibs_check_method=pass_all ;;
1830 # glibc up to 2.1.1 does not perform some relocations on ARM
1831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1833 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1837 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1838 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1840 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1846 lt_cv_file_magic_cmd=/usr/bin/file
1847 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1851 lt_cv_file_magic_cmd=/usr/bin/file
1852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1853 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1856 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1860 osf3* | osf4* | osf5*)
1861 # this will be overridden with pass_all, but let us keep it just in case
1862 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1863 lt_cv_file_magic_test_file=/shlib/libc.so
1864 lt_cv_deplibs_check_method=pass_all
1868 lt_cv_deplibs_check_method=pass_all
1872 lt_cv_deplibs_check_method=pass_all
1873 lt_cv_file_magic_test_file=/lib/libc.so
1876 sysv5uw[78]* | sysv4*uw2*)
1877 lt_cv_deplibs_check_method=pass_all
1880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1881 case $host_vendor in
1883 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]'
1884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1887 lt_cv_deplibs_check_method=pass_all
1890 lt_cv_file_magic_cmd='/bin/file'
1891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1894 lt_cv_file_magic_cmd='/bin/file'
1895 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1896 lt_cv_file_magic_test_file=/lib/libc.so
1904 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1905 file_magic_cmd=$lt_cv_file_magic_cmd
1906 deplibs_check_method=$lt_cv_deplibs_check_method
1908 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1909 echo "configure:1910: checking for object suffix" >&5
1910 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1914 echo 'int i = 1;' > conftest.$ac_ext
1915 if { (eval echo configure:1916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1916 for ac_file in conftest.*; do
1919 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1923 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1928 echo "$ac_t""$ac_cv_objext" 1>&6
1929 OBJEXT=$ac_cv_objext
1930 ac_objext=$ac_cv_objext
1934 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1935 echo "configure:1936: checking for executable suffix" >&5
1936 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1943 echo 'int main () { return 0; }' > conftest.$ac_ext
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1946 for file in conftest.*; do
1948 *.c | *.o | *.obj) ;;
1949 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1953 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1956 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1961 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1962 echo "$ac_t""${ac_cv_exeext}" 1>&6
1965 if test $host != $build; then
1966 ac_tool_prefix=${host_alias}-
1974 # Check for command to grab the raw symbol name followed by C symbol from nm.
1975 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1976 echo "configure:1977: checking command to parse $NM output" >&5
1977 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1981 # These are sane defaults that work on at least a few old systems.
1982 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1984 # Character class describing NM global symbol codes.
1985 symcode='[BCDEGRST]'
1987 # Regexp to match symbols that can be accessed directly from C.
1988 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1990 # Transform the above into a raw symbol and a C symbol.
1991 symxfrm='\1 \2\3 \3'
1993 # Transform an extracted symbol line into a proper C declaration
1994 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1996 # Transform an extracted symbol line into symbol name and symbol address
1997 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'"
1999 # Define system-specific variables.
2004 cygwin* | mingw* | pw32*)
2005 symcode='[ABCDGISTW]'
2007 hpux*) # Its linker distinguishes data from code symbols
2008 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2009 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'"
2012 symcode='[BCDEGRST]'
2022 # Handle CRLF in mingw tool chain
2026 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2030 # If we're using GNU nm, then use its standard symbol codes.
2031 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2032 symcode='[ABCDGISTW]'
2035 # Try without a prefix undercore, then with it.
2036 for ac_symprfx in "" "_"; do
2038 # Write the raw and C identifiers.
2039 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2041 # Check to see that the pipe works correctly.
2044 cat > conftest.$ac_ext <<EOF
2049 void nm_test_func(){}
2053 int main(){nm_test_var='a';nm_test_func();return(0);}
2056 if { (eval echo configure:2057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2057 # Now try to grab the symbols.
2059 if { (eval echo configure:2060: \"$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
2060 # Try sorting and uniquifying the output.
2061 if sort "$nlist" | uniq > "$nlist"T; then
2062 mv -f "$nlist"T "$nlist"
2067 # Make sure that we snagged all the symbols we need.
2068 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2069 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2070 cat <<EOF > conftest.$ac_ext
2076 # Now generate the symbol file.
2077 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2079 cat <<EOF >> conftest.$ac_ext
2080 #if defined (__STDC__) && __STDC__
2081 # define lt_ptr void *
2083 # define lt_ptr char *
2087 /* The mapping between symbol names and symbols. */
2092 lt_preloaded_symbols[] =
2095 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2096 cat <<\EOF >> conftest.$ac_ext
2104 # Now try linking the two files.
2105 mv conftest.$ac_objext conftstm.$ac_objext
2107 save_CFLAGS="$CFLAGS"
2108 LIBS="conftstm.$ac_objext"
2109 CFLAGS="$CFLAGS$no_builtin_flag"
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2114 CFLAGS="$save_CFLAGS"
2116 echo "cannot find nm_test_func in $nlist" >&5
2119 echo "cannot find nm_test_var in $nlist" >&5
2122 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2125 echo "$progname: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 rm -f conftest* conftst*
2130 # Do not use the global_symbol_pipe unless it works.
2131 if test "$pipe_works" = yes; then
2134 lt_cv_sys_global_symbol_pipe=
2140 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2141 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2142 global_symbol_to_cdecl=
2143 global_symbol_to_c_name_address=
2145 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2146 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2148 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2150 echo "$ac_t""failed" 1>&6
2152 echo "$ac_t""ok" 1>&6
2155 for ac_hdr in dlfcn.h
2157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_hdr" >&5
2160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2169 { (eval echo configure:2170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2171 if test -z "$ac_err"; then
2173 eval "ac_cv_header_$ac_safe=yes"
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 eval "ac_cv_header_$ac_safe=no"
2183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2184 echo "$ac_t""yes" 1>&6
2185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2186 cat >> confdefs.h <<EOF
2187 #define $ac_tr_hdr 1
2191 echo "$ac_t""no" 1>&6
2199 # Only perform the check for file, if the check method requires it
2200 case $deplibs_check_method in
2202 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2203 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2204 echo "configure:2205: checking for ${ac_tool_prefix}file" >&5
2205 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2216 ac_save_MAGIC_CMD="$MAGIC_CMD"
2217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2218 ac_dummy="/usr/bin:$PATH"
2219 for ac_dir in $ac_dummy; do
2220 test -z "$ac_dir" && ac_dir=.
2221 if test -f $ac_dir/${ac_tool_prefix}file; then
2222 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2223 if test -n "$file_magic_test_file"; then
2224 case $deplibs_check_method in
2226 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2228 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2229 egrep "$file_magic_regex" > /dev/null; then
2234 *** Warning: the command libtool uses to detect shared libraries,
2235 *** $file_magic_cmd, produces output that libtool cannot recognize.
2236 *** The result is that libtool may fail to recognize shared libraries
2237 *** as such. This will affect the creation of libtool libraries that
2238 *** depend on shared libraries, but programs linked with such libtool
2239 *** libraries will work regardless of this problem. Nevertheless, you
2240 *** may want to report the problem to your system manager and/or to
2241 *** bug-libtool@gnu.org
2251 MAGIC_CMD="$ac_save_MAGIC_CMD"
2256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2257 if test -n "$MAGIC_CMD"; then
2258 echo "$ac_t""$MAGIC_CMD" 1>&6
2260 echo "$ac_t""no" 1>&6
2263 if test -z "$lt_cv_path_MAGIC_CMD"; then
2264 if test -n "$ac_tool_prefix"; then
2265 echo $ac_n "checking for file""... $ac_c" 1>&6
2266 echo "configure:2267: checking for file" >&5
2267 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2278 ac_save_MAGIC_CMD="$MAGIC_CMD"
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2280 ac_dummy="/usr/bin:$PATH"
2281 for ac_dir in $ac_dummy; do
2282 test -z "$ac_dir" && ac_dir=.
2283 if test -f $ac_dir/file; then
2284 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2285 if test -n "$file_magic_test_file"; then
2286 case $deplibs_check_method in
2288 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2291 egrep "$file_magic_regex" > /dev/null; then
2296 *** Warning: the command libtool uses to detect shared libraries,
2297 *** $file_magic_cmd, produces output that libtool cannot recognize.
2298 *** The result is that libtool may fail to recognize shared libraries
2299 *** as such. This will affect the creation of libtool libraries that
2300 *** depend on shared libraries, but programs linked with such libtool
2301 *** libraries will work regardless of this problem. Nevertheless, you
2302 *** may want to report the problem to your system manager and/or to
2303 *** bug-libtool@gnu.org
2313 MAGIC_CMD="$ac_save_MAGIC_CMD"
2318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2319 if test -n "$MAGIC_CMD"; then
2320 echo "$ac_t""$MAGIC_CMD" 1>&6
2322 echo "$ac_t""no" 1>&6
2334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2337 echo "configure:2338: checking for $ac_word" >&5
2338 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 if test -n "$RANLIB"; then
2342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2346 for ac_dir in $ac_dummy; do
2347 test -z "$ac_dir" && ac_dir=.
2348 if test -f $ac_dir/$ac_word; then
2349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2356 RANLIB="$ac_cv_prog_RANLIB"
2357 if test -n "$RANLIB"; then
2358 echo "$ac_t""$RANLIB" 1>&6
2360 echo "$ac_t""no" 1>&6
2364 if test -z "$ac_cv_prog_RANLIB"; then
2365 if test -n "$ac_tool_prefix"; then
2366 # Extract the first word of "ranlib", so it can be a program name with args.
2367 set dummy ranlib; ac_word=$2
2368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2369 echo "configure:2370: checking for $ac_word" >&5
2370 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 if test -n "$RANLIB"; then
2374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2378 for ac_dir in $ac_dummy; do
2379 test -z "$ac_dir" && ac_dir=.
2380 if test -f $ac_dir/$ac_word; then
2381 ac_cv_prog_RANLIB="ranlib"
2386 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2389 RANLIB="$ac_cv_prog_RANLIB"
2390 if test -n "$RANLIB"; then
2391 echo "$ac_t""$RANLIB" 1>&6
2393 echo "$ac_t""no" 1>&6
2401 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2402 set dummy ${ac_tool_prefix}strip; ac_word=$2
2403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_word" >&5
2405 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 if test -n "$STRIP"; then
2409 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2413 for ac_dir in $ac_dummy; do
2414 test -z "$ac_dir" && ac_dir=.
2415 if test -f $ac_dir/$ac_word; then
2416 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2423 STRIP="$ac_cv_prog_STRIP"
2424 if test -n "$STRIP"; then
2425 echo "$ac_t""$STRIP" 1>&6
2427 echo "$ac_t""no" 1>&6
2431 if test -z "$ac_cv_prog_STRIP"; then
2432 if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "strip", so it can be a program name with args.
2434 set dummy strip; ac_word=$2
2435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_word" >&5
2437 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 if test -n "$STRIP"; then
2441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2445 for ac_dir in $ac_dummy; do
2446 test -z "$ac_dir" && ac_dir=.
2447 if test -f $ac_dir/$ac_word; then
2448 ac_cv_prog_STRIP="strip"
2453 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2456 STRIP="$ac_cv_prog_STRIP"
2457 if test -n "$STRIP"; then
2458 echo "$ac_t""$STRIP" 1>&6
2460 echo "$ac_t""no" 1>&6
2472 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2473 if test "${enable_libtool_lock+set}" = set; then
2474 enableval="$enable_libtool_lock"
2478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 # Some flags need to be propagated to the compiler or linker for good
2484 # Find out which ABI we are using.
2485 echo '#line 2486 "configure"' > conftest.$ac_ext
2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487 case `/usr/bin/file conftest.$ac_objext` in
2503 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2504 SAVE_CFLAGS="$CFLAGS"
2505 CFLAGS="$CFLAGS -belf"
2506 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2507 echo "configure:2508: checking whether the C compiler needs -belf" >&5
2508 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2517 cross_compiling=$ac_cv_prog_cc_cross
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529 lt_cv_cc_needs_belf=yes
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 lt_cv_cc_needs_belf=no
2538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2542 cross_compiling=$ac_cv_prog_cc_cross
2546 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2547 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2549 CFLAGS="$SAVE_CFLAGS"
2556 # Sed substitution that helps us do robust quoting. It backslashifies
2557 # metacharacters that are still active within double-quoted strings.
2558 Xsed='sed -e s/^X//'
2559 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2561 # Same as above, but do not quote variable references.
2562 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2564 # Sed substitution to delay expansion of an escaped shell variable in a
2565 # double_quote_subst'ed string.
2566 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2572 default_ofile=libtool
2573 can_build_shared=yes
2575 # All known linkers require a `.a' archive for static linking (except M$VC,
2576 # which needs '.lib').
2578 ltmain="$ac_aux_dir/ltmain.sh"
2579 ofile="$default_ofile"
2580 with_gnu_ld="$lt_cv_prog_gnu_ld"
2581 need_locks="$enable_libtool_lock"
2584 old_CFLAGS="$CFLAGS"
2586 # Set sane defaults for various variables
2587 test -z "$AR" && AR=ar
2588 test -z "$AR_FLAGS" && AR_FLAGS=cru
2589 test -z "$AS" && AS=as
2590 test -z "$CC" && CC=cc
2591 test -z "$DLLTOOL" && DLLTOOL=dlltool
2592 test -z "$LD" && LD=ld
2593 test -z "$LN_S" && LN_S="ln -s"
2594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2595 test -z "$NM" && NM=nm
2596 test -z "$OBJDUMP" && OBJDUMP=objdump
2597 test -z "$RANLIB" && RANLIB=:
2598 test -z "$STRIP" && STRIP=:
2599 test -z "$ac_objext" && ac_objext=o
2601 if test x"$host" != x"$build"; then
2602 ac_tool_prefix=${host_alias}-
2607 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2610 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2615 # AIX sometimes has problems with the GCC collect2 program. For some
2616 # reason, if we set the COLLECT_NAMES environment variable, the problems
2617 # vanish in a puff of smoke.
2618 if test "X${COLLECT_NAMES+set}" != Xset; then
2620 export COLLECT_NAMES
2625 # Determine commands to create old-style static archives.
2626 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2627 old_postinstall_cmds='chmod 644 $oldlib'
2628 old_postuninstall_cmds=
2630 if test -n "$RANLIB"; then
2633 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2636 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2639 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2642 # Allow CC to be a program name with arguments.
2646 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2647 echo "configure:2648: checking for objdir" >&5
2648 rm -f .libs 2>/dev/null
2649 mkdir .libs 2>/dev/null
2650 if test -d .libs; then
2653 # MS-DOS does not allow filenames that begin with a dot.
2656 rmdir .libs 2>/dev/null
2657 echo "$ac_t""$objdir" 1>&6
2660 # Check whether --with-pic or --without-pic was given.
2661 if test "${with_pic+set}" = set; then
2668 test -z "$pic_mode" && pic_mode=default
2670 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671 # in isolation, and that seeing it set (from the cache) indicates that
2672 # the associated values are set (in the cache) correctly too.
2673 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2679 lt_cv_prog_cc_shlib=
2681 lt_cv_prog_cc_static=
2682 lt_cv_prog_cc_no_builtin=
2683 lt_cv_prog_cc_can_build_shared=$can_build_shared
2685 if test "$GCC" = yes; then
2686 lt_cv_prog_cc_wl='-Wl,'
2687 lt_cv_prog_cc_static='-static'
2691 # Below there is a dirty hack to force normal static linking with -ldl
2692 # The problem is because libdl dynamically linked with both libc and
2693 # libC (AIX C++ library), which obviously doesn't included in libraries
2694 # list by gcc. This cause undefined symbols with -static flags.
2695 # This hack allows C programs to be linked with "-static -ldl", but
2696 # not sure about C++ programs.
2697 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2700 # FIXME: we need at least 68020 code to build shared libraries, but
2701 # adding the `-m68020' flag to GCC prevents building anything better,
2703 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2705 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2706 # PIC is the default for these OSes.
2708 darwin* | rhapsody*)
2709 # PIC is the default on this platform
2710 # Common symbols not allowed in MH_DYLIB files
2711 lt_cv_prog_cc_pic='-fno-common'
2713 cygwin* | mingw* | pw32* | os2*)
2714 # This hack is so that the source file can tell whether it is being
2715 # built for inclusion in a dll (and should export symbols for example).
2716 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2719 if test -d /usr/nec; then
2720 lt_cv_prog_cc_pic=-Kconform_pic
2724 lt_cv_prog_cc_pic='-fPIC'
2728 # PORTME Check for PIC flags for the system compiler.
2730 aix3* | aix4* | aix5*)
2731 lt_cv_prog_cc_wl='-Wl,'
2732 # All AIX code is PIC.
2733 if test "$host_cpu" = ia64; then
2734 # AIX 5 now supports IA64 processor
2735 lt_cv_prog_cc_static='-Bstatic'
2737 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2741 hpux9* | hpux10* | hpux11*)
2742 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2743 lt_cv_prog_cc_wl='-Wl,'
2744 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2745 lt_cv_prog_cc_pic='+Z'
2748 irix5* | irix6* | nonstopux*)
2749 lt_cv_prog_cc_wl='-Wl,'
2750 lt_cv_prog_cc_static='-non_shared'
2751 # PIC (with -KPIC) is the default.
2754 cygwin* | mingw* | pw32* | os2*)
2755 # This hack is so that the source file can tell whether it is being
2756 # built for inclusion in a dll (and should export symbols for example).
2757 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2761 lt_cv_prog_cc_pic='-KPIC'
2762 lt_cv_prog_cc_static='-Bstatic'
2765 osf3* | osf4* | osf5*)
2766 # All OSF/1 code is PIC.
2767 lt_cv_prog_cc_wl='-Wl,'
2768 lt_cv_prog_cc_static='-non_shared'
2772 lt_cv_prog_cc_pic='-Kpic'
2773 lt_cv_prog_cc_static='-dn'
2774 lt_cv_prog_cc_shlib='-belf'
2778 lt_cv_prog_cc_pic='-KPIC'
2779 lt_cv_prog_cc_static='-Bstatic'
2780 lt_cv_prog_cc_wl='-Wl,'
2784 lt_cv_prog_cc_pic='-PIC'
2785 lt_cv_prog_cc_static='-Bstatic'
2786 lt_cv_prog_cc_wl='-Qoption ld '
2789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2790 lt_cv_prog_cc_pic='-KPIC'
2791 lt_cv_prog_cc_static='-Bstatic'
2792 if test "x$host_vendor" = xsni; then
2793 lt_cv_prog_cc_wl='-LD'
2795 lt_cv_prog_cc_wl='-Wl,'
2800 lt_cv_prog_cc_pic='-pic'
2801 lt_cv_prog_cc_static='-Bstatic'
2805 if test -d /usr/nec ;then
2806 lt_cv_prog_cc_pic='-Kconform_pic'
2807 lt_cv_prog_cc_static='-Bstatic'
2812 lt_cv_prog_cc_can_build_shared=no
2819 if test -z "$lt_cv_prog_cc_pic"; then
2820 echo "$ac_t""none" 1>&6
2822 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2824 # Check to make sure the pic_flag actually works.
2825 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2826 echo "configure:2827: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2827 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 save_CFLAGS="$CFLAGS"
2831 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2840 if { (eval echo configure:2841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2843 hpux9* | hpux10* | hpux11*)
2844 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2845 # they create non-PIC objects. So, if there were any warnings, we
2846 # assume that PIC is not supported.
2847 if test -s conftest.err; then
2848 lt_cv_prog_cc_pic_works=no
2850 lt_cv_prog_cc_pic_works=yes
2854 lt_cv_prog_cc_pic_works=yes
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 lt_cv_prog_cc_pic_works=no
2866 CFLAGS="$save_CFLAGS"
2871 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2873 lt_cv_prog_cc_can_build_shared=no
2875 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2878 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2881 # Check for any special shared library compilation flags.
2882 if test -n "$lt_cv_prog_cc_shlib"; then
2883 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2884 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2886 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2887 lt_cv_prog_cc_can_build_shared=no
2891 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2892 echo "configure:2893: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2893 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 lt_cv_prog_cc_static_works=no
2897 save_LDFLAGS="$LDFLAGS"
2898 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2907 if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2909 lt_cv_prog_cc_static_works=yes
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2915 LDFLAGS="$save_LDFLAGS"
2920 # Belt *and* braces to stop my trousers falling down:
2921 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2922 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2924 pic_flag="$lt_cv_prog_cc_pic"
2925 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2926 wl="$lt_cv_prog_cc_wl"
2927 link_static_flag="$lt_cv_prog_cc_static"
2928 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2929 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2932 # Check to see if options -o and -c are simultaneously supported by compiler
2933 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2934 echo "configure:2935: checking if $compiler supports -c -o file.$ac_objext" >&5
2935 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2939 $rm -r conftest 2>/dev/null
2942 echo "int some_variable = 0;" > conftest.$ac_ext
2944 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2945 # that will create temporary files in the current directory regardless of
2946 # the output directory. Thus, making CWD read-only will cause this test
2947 # to fail, enabling locking or at least warning the user not to do parallel
2950 save_CFLAGS="$CFLAGS"
2951 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2953 if { (eval echo configure:2954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2954 # The compiler can only warn and ignore the option if not recognized
2955 # So say no if there are warnings
2956 if test -s out/conftest.err; then
2957 lt_cv_compiler_c_o=no
2959 lt_cv_compiler_c_o=yes
2962 # Append any errors to the config.log.
2963 cat out/conftest.err 1>&5
2964 lt_cv_compiler_c_o=no
2966 CFLAGS="$save_CFLAGS"
2972 $rm -r conftest 2>/dev/null
2976 compiler_c_o=$lt_cv_compiler_c_o
2977 echo "$ac_t""$compiler_c_o" 1>&6
2979 if test x"$compiler_c_o" = x"yes"; then
2980 # Check to see if we can write to a .lo
2981 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2982 echo "configure:2983: checking if $compiler supports -c -o file.lo" >&5
2983 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2987 lt_cv_compiler_o_lo=no
2988 save_CFLAGS="$CFLAGS"
2989 CFLAGS="$CFLAGS -c -o conftest.lo"
2990 save_objext="$ac_objext"
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2997 int some_variable = 0;
3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002 # The compiler can only warn and ignore the option if not recognized
3003 # So say no if there are warnings
3004 if test -s conftest.err; then
3005 lt_cv_compiler_o_lo=no
3007 lt_cv_compiler_o_lo=yes
3011 echo "configure: failed program was:" >&5
3012 cat conftest.$ac_ext >&5
3015 ac_objext="$save_objext"
3016 CFLAGS="$save_CFLAGS"
3020 compiler_o_lo=$lt_cv_compiler_o_lo
3021 echo "$ac_t""$compiler_o_lo" 1>&6
3026 # Check to see if we can do hard links to lock some files if needed
3027 hard_links="nottested"
3028 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3029 # do not overwrite the value of need_locks provided by the user
3030 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3031 echo "configure:3032: checking if we can lock with hard links" >&5
3034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3036 ln conftest.a conftest.b 2>&5 || hard_links=no
3037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3038 echo "$ac_t""$hard_links" 1>&6
3039 if test "$hard_links" = no; then
3040 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3047 if test "$GCC" = yes; then
3048 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3049 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3050 echo "configure:3051: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3051 echo "int some_variable = 0;" > conftest.$ac_ext
3052 save_CFLAGS="$CFLAGS"
3053 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3054 compiler_rtti_exceptions=no
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3060 int some_variable = 0;
3063 if { (eval echo configure:3064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3065 # The compiler can only warn and ignore the option if not recognized
3066 # So say no if there are warnings
3067 if test -s conftest.err; then
3068 compiler_rtti_exceptions=no
3070 compiler_rtti_exceptions=yes
3074 echo "configure: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3078 CFLAGS="$save_CFLAGS"
3079 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3081 if test "$compiler_rtti_exceptions" = "yes"; then
3082 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3084 no_builtin_flag=' -fno-builtin'
3088 # See if the linker supports building shared libraries.
3089 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3090 echo "configure:3091: checking whether the linker ($LD) supports shared libraries" >&5
3092 allow_undefined_flag=
3094 need_lib_prefix=unknown
3095 need_version=unknown
3096 # when you set need_version to no, make sure it does not cause -set_version
3097 # flags to be left without arguments
3099 archive_expsym_cmds=
3100 old_archive_from_new_cmds=
3101 old_archive_from_expsyms_cmds=
3102 export_dynamic_flag_spec=
3103 whole_archive_flag_spec=
3104 thread_safe_flag_spec=
3105 hardcode_into_libs=no
3106 hardcode_libdir_flag_spec=
3107 hardcode_libdir_separator=
3110 hardcode_shlibpath_var=unsupported
3112 link_all_deplibs=unknown
3113 always_export_symbols=no
3114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3115 # include_expsyms should be a list of space-separated symbols to be *always*
3116 # included in the symbol list
3118 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3119 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3120 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3121 # as well as any symbol that contains `d'.
3122 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3123 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3124 # platforms (ab)use it in PIC code, but their linkers get confused if
3125 # the symbol is explicitly referenced. Since portable code cannot
3126 # rely on this symbol name, it's probably fine to never include it in
3127 # preloaded symbol tables.
3128 extract_expsyms_cmds=
3131 cygwin* | mingw* | pw32*)
3132 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3133 # When not using gcc, we currently assume that we are using
3134 # Microsoft Visual C++.
3135 if test "$GCC" != yes; then
3145 if test "$with_gnu_ld" = yes; then
3146 # If archive_cmds runs LD, not CC, wlarc should be empty
3149 # See if GNU ld supports shared libraries.
3151 aix3* | aix4* | aix5*)
3152 # On AIX, the GNU linker is very broken
3153 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3157 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3158 *** to be unable to reliably create shared libraries on AIX.
3159 *** Therefore, libtool is disabling shared libraries support. If you
3160 *** really care for shared libraries, you may want to modify your PATH
3161 *** so that a non-GNU linker is found, and then restart.
3167 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)'
3168 hardcode_libdir_flag_spec='-L$libdir'
3169 hardcode_minus_L=yes
3171 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3172 # that the semantics of dynamic libraries on AmigaOS, at least up
3173 # to version 4, is to share data among multiple programs linked
3174 # with the same dynamic library. Since this doesn't match the
3175 # behavior of shared libraries on other platforms, we can use
3181 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3182 allow_undefined_flag=unsupported
3183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3184 # support --undefined. This deserves some investigation. FIXME
3185 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3191 cygwin* | mingw* | pw32*)
3192 # hardcode_libdir_flag_spec is actually meaningless, as there is
3193 # no search path for DLLs.
3194 hardcode_libdir_flag_spec='-L$libdir'
3195 allow_undefined_flag=unsupported
3196 always_export_symbols=yes
3198 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3199 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3200 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3201 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3202 else $CC -o impgen impgen.c ; fi)~
3203 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3205 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3207 # cygwin and mingw dlls have different entry points and sets of symbols
3209 # FIXME: what about values for MSVC?
3210 dll_entry=__cygwin_dll_entry@12
3211 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3215 dll_entry=_DllMainCRTStartup@12
3216 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3220 # mingw and cygwin differ, and it's simplest to just exclude the union
3221 # of the two symbol sets.
3222 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3224 # recent cygwin and mingw systems supply a stub DllMain which the user
3225 # can override, but on older systems we have to supply one (in ltdll.c)
3226 if test "x$lt_cv_need_dllmain" = "xyes"; then
3227 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3228 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~
3229 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3235 # Extract the symbol export list from an `--export-all' def file,
3236 # then regenerate the def file from the symbol export list, so that
3237 # the compiled dll only exports the symbol export list.
3238 # Be careful not to strip the DATA tag left be newer dlltools.
3239 export_symbols_cmds="$ltdll_cmds"'
3240 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3241 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3243 # If the export-symbols file already is a .def file (1st line
3244 # is EXPORTS), use it as is.
3245 # If DATA tags from a recent dlltool are present, honour them!
3246 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3247 cp $export_symbols $output_objdir/$soname-def;
3249 echo EXPORTS > $output_objdir/$soname-def;
3251 cat $export_symbols | while read symbol; do
3254 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3255 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3257 _lt_hint=`expr 1 + \$_lt_hint`;
3261 $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~
3262 $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~
3263 $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~
3264 $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~
3265 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3270 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3273 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3274 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3279 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3284 *** create shared libraries on Solaris systems. Therefore, libtool
3285 *** is disabling shared libraries support. We urge you to upgrade GNU
3286 *** binutils to release 2.9.1 or newer. Another option is to modify
3287 *** your PATH or compiler configuration so that the native linker is
3288 *** used, and then restart.
3291 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3300 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3303 hardcode_shlibpath_var=no
3307 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3316 if test "$ld_shlibs" = yes; then
3317 runpath_var=LD_RUN_PATH
3318 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3319 export_dynamic_flag_spec='${wl}--export-dynamic'
3321 cygwin* | mingw* | pw32*)
3322 # dlltool doesn't understand --whole-archive et. al.
3323 whole_archive_flag_spec=
3326 # ancient GNU ld didn't support --whole-archive et. al.
3327 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3328 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3330 whole_archive_flag_spec=
3336 # PORTME fill in a description of your system's linker (not GNU ld)
3339 allow_undefined_flag=unsupported
3340 always_export_symbols=yes
3341 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'
3342 # Note: this linker hardcodes the directories in LIBPATH if there
3343 # are no directories specified by -L.
3344 hardcode_minus_L=yes
3345 if test "$GCC" = yes && test -z "$link_static_flag"; then
3346 # Neither direct hardcoding nor static linking is supported with a
3348 hardcode_direct=unsupported
3353 if test "$host_cpu" = ia64; then
3354 # On IA64, the linker does run time linking by default, so we don't
3355 # have to do anything special.
3356 aix_use_runtimelinking=no
3357 exp_sym_flag='-Bexport'
3360 aix_use_runtimelinking=no
3362 # Test if we are trying to use run time linking or normal
3363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3364 # need to do runtime linking.
3365 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3366 for ld_flag in $LDFLAGS; do
3367 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3368 aix_use_runtimelinking=yes
3374 exp_sym_flag='-bexport'
3375 no_entry_flag='-bnoentry'
3378 # When large executables or shared objects are built, AIX ld can
3379 # have problems creating the table of contents. If linking a library
3380 # or program results in "error TOC overflow" add -mminimal-toc to
3381 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3382 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3386 hardcode_libdir_separator=':'
3387 if test "$GCC" = yes; then
3388 case $host_os in aix4.[012]|aix4.[012].*)
3389 collect2name=`${CC} -print-prog-name=collect2`
3390 if test -f "$collect2name" && \
3391 strings "$collect2name" | grep resolve_lib_name >/dev/null
3393 # We have reworked collect2
3396 # We have old collect2
3397 hardcode_direct=unsupported
3398 # It fails to find uninstalled libraries when the uninstalled
3399 # path is not listed in the libpath. Setting hardcode_minus_L
3400 # to unsupported forces relinking
3401 hardcode_minus_L=yes
3402 hardcode_libdir_flag_spec='-L$libdir'
3403 hardcode_libdir_separator=
3407 shared_flag='-shared'
3410 if test "$host_cpu" = ia64; then
3411 shared_flag='${wl}-G'
3413 if test "$aix_use_runtimelinking" = yes; then
3414 shared_flag='${wl}-G'
3416 shared_flag='${wl}-bM:SRE'
3421 # It seems that -bexpall can do strange things, so it is better to
3422 # generate a list of symbols to export.
3423 always_export_symbols=yes
3424 if test "$aix_use_runtimelinking" = yes; then
3425 # Warning - without using the other runtime loading flags (-brtl),
3426 # -berok will link without error, but may produce a broken library.
3427 allow_undefined_flag='-berok'
3428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3429 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"
3431 if test "$host_cpu" = ia64; then
3432 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3433 allow_undefined_flag="-z nodefs"
3434 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"
3436 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3437 # Warning - without using the other run time loading flags,
3438 # -berok will link without error, but may produce a broken library.
3439 allow_undefined_flag='${wl}-berok'
3440 # This is a bit strange, but is similar to how AIX traditionally builds
3441 # it's shared libraries.
3442 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'
3448 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)'
3449 hardcode_libdir_flag_spec='-L$libdir'
3450 hardcode_minus_L=yes
3451 # see comment about different semantics on the GNU ld section
3455 cygwin* | mingw* | pw32*)
3456 # When not using gcc, we currently assume that we are using
3457 # Microsoft Visual C++.
3458 # hardcode_libdir_flag_spec is actually meaningless, as there is
3459 # no search path for DLLs.
3460 hardcode_libdir_flag_spec=' '
3461 allow_undefined_flag=unsupported
3462 # Tell ltmain to make .lib files, not .a files.
3464 # FIXME: Setting linknames here is a bad hack.
3465 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3466 # The linker will automatically build a .lib file if we build a DLL.
3467 old_archive_from_new_cmds='true'
3468 # FIXME: Should let the user specify the lib program.
3469 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3470 fix_srcfile_path='`cygpath -w "$srcfile"`'
3473 darwin* | rhapsody*)
3475 rhapsody* | darwin1.[012])
3476 allow_undefined_flag='-undefined suppress'
3479 allow_undefined_flag='-flat_namespace -undefined suppress'
3482 # FIXME: Relying on posixy $() will cause problems for
3483 # cross-compilation, but unfortunately the echo tests do not
3484 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3485 # `"' quotes if we put them in here... so don't!
3486 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3487 # We need to add '_' to the symbols in $export_symbols first
3488 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3490 hardcode_shlibpath_var=no
3491 whole_archive_flag_spec='-all_load $convenience'
3498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3499 # support. Future versions do this automatically, but an explicit c++rt0.o
3500 # does not break anything, and helps significantly (at the cost of a little
3503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3504 hardcode_libdir_flag_spec='-R$libdir'
3506 hardcode_shlibpath_var=no
3509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3513 hardcode_minus_L=yes
3514 hardcode_shlibpath_var=no
3517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3519 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3520 hardcode_libdir_flag_spec='-R$libdir'
3522 hardcode_shlibpath_var=no
3525 hpux9* | hpux10* | hpux11*)
3527 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' ;;
3528 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3531 hardcode_libdir_separator=:
3533 hardcode_minus_L=yes # Not in the search PATH, but as the default
3534 # location of the library.
3535 export_dynamic_flag_spec='${wl}-E'
3538 irix5* | irix6* | nonstopux*)
3539 if test "$GCC" = yes; then
3540 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'
3542 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'
3544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3545 hardcode_libdir_separator=:
3546 link_all_deplibs=yes
3550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3553 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3555 hardcode_libdir_flag_spec='-R$libdir'
3557 hardcode_shlibpath_var=no
3561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3564 hardcode_libdir_separator=:
3565 hardcode_shlibpath_var=no
3570 hardcode_shlibpath_var=no
3571 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3574 export_dynamic_flag_spec='${wl}-E'
3577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3579 hardcode_libdir_flag_spec='-R$libdir'
3582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3590 hardcode_libdir_flag_spec='-L$libdir'
3591 hardcode_minus_L=yes
3592 allow_undefined_flag=unsupported
3593 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'
3594 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3598 if test "$GCC" = yes; then
3599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3600 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'
3602 allow_undefined_flag=' -expect_unresolved \*'
3603 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'
3605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3606 hardcode_libdir_separator=:
3609 osf4* | osf5*) # as osf3* with the addition of -msym flag
3610 if test "$GCC" = yes; then
3611 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3612 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'
3613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3615 allow_undefined_flag=' -expect_unresolved \*'
3616 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'
3617 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3618 $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'
3620 #Both c and cxx compiler support -rpath directly
3621 hardcode_libdir_flag_spec='-rpath $libdir'
3623 hardcode_libdir_separator=:
3627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3628 hardcode_shlibpath_var=no
3629 runpath_var=LD_RUN_PATH
3630 hardcode_runpath_var=yes
3631 export_dynamic_flag_spec='${wl}-Bexport'
3635 # gcc --version < 3.0 without binutils cannot create self contained
3636 # shared libraries reliably, requiring libgcc.a to resolve some of
3637 # the object symbols generated in some cases. Libraries that use
3638 # assert need libgcc.a to resolve __eprintf, for example. Linking
3639 # a copy of libgcc.a into every shared library to guarantee resolving
3640 # such symbols causes other problems: According to Tim Van Holder
3641 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3642 # (to the application) exception stack for one thing.
3643 no_undefined_flag=' -z defs'
3644 if test "$GCC" = yes; then
3645 case `$CC --version 2>/dev/null` in
3649 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3650 *** create self contained shared libraries on Solaris systems, without
3651 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3652 *** -no-undefined support, which will at least allow you to build shared
3653 *** libraries. However, you may find that when you link such libraries
3654 *** into an application without using GCC, you have to manually add
3655 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3656 *** upgrade to a newer version of GCC. Another option is to rebuild your
3657 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3664 # $CC -shared without GNU ld will not create a library from C++
3665 # object files and a static libstdc++, better avoid it by now
3666 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3667 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3669 hardcode_libdir_flag_spec='-R$libdir'
3670 hardcode_shlibpath_var=no
3672 solaris2.[0-5] | solaris2.[0-5].*) ;;
3673 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3674 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3676 link_all_deplibs=yes
3680 if test "x$host_vendor" = xsequent; then
3681 # Use $CC to link under sequent, because it throws in some extra .o
3682 # files that make .init and .fini sections work.
3683 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3685 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3687 hardcode_libdir_flag_spec='-L$libdir'
3689 hardcode_minus_L=yes
3690 hardcode_shlibpath_var=no
3694 if test "x$host_vendor" = xsno; then
3695 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3696 hardcode_direct=yes # is this really true???
3698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3699 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3701 runpath_var='LD_RUN_PATH'
3702 hardcode_shlibpath_var=no
3706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3707 hardcode_shlibpath_var=no
3708 export_dynamic_flag_spec='-Bexport'
3712 no_undefined_flag=' -z text'
3713 # $CC -shared without GNU ld will not create a library from C++
3714 # object files and a static libstdc++, better avoid it by now
3715 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3716 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3717 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3718 hardcode_libdir_flag_spec=
3719 hardcode_shlibpath_var=no
3720 runpath_var='LD_RUN_PATH'
3724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3725 hardcode_libdir_flag_spec='-L$libdir'
3726 hardcode_shlibpath_var=no
3730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3731 hardcode_libdir_flag_spec='-L$libdir'
3732 hardcode_shlibpath_var=no
3736 if test -d /usr/nec; then
3737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3738 hardcode_shlibpath_var=no
3739 runpath_var=LD_RUN_PATH
3740 hardcode_runpath_var=yes
3746 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3749 hardcode_shlibpath_var=no
3750 hardcode_runpath_var=yes
3751 runpath_var=LD_RUN_PATH
3754 sysv5uw7* | unixware7*)
3755 no_undefined_flag='${wl}-z ${wl}text'
3756 if test "$GCC" = yes; then
3757 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3759 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3761 runpath_var='LD_RUN_PATH'
3762 hardcode_shlibpath_var=no
3770 echo "$ac_t""$ld_shlibs" 1>&6
3771 test "$ld_shlibs" = no && can_build_shared=no
3773 # Check hardcoding attributes.
3774 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3775 echo "configure:3776: checking how to hardcode library paths into programs" >&5
3777 if test -n "$hardcode_libdir_flag_spec" || \
3778 test -n "$runpath_var"; then
3780 # We can hardcode non-existant directories.
3781 if test "$hardcode_direct" != no &&
3782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3783 # have to relink, otherwise we might link with an installed library
3784 # when we should be linking with a yet-to-be-installed one
3785 ## test "$hardcode_shlibpath_var" != no &&
3786 test "$hardcode_minus_L" != no; then
3787 # Linking always hardcodes the temporary library directory.
3788 hardcode_action=relink
3790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3791 hardcode_action=immediate
3794 # We cannot hardcode anything, or else we can only hardcode existing
3796 hardcode_action=unsupported
3798 echo "$ac_t""$hardcode_action" 1>&6
3802 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3803 echo "configure:3804: checking whether stripping libraries is possible" >&5
3804 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3805 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3806 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3807 echo "$ac_t""yes" 1>&6
3809 echo "$ac_t""no" 1>&6
3812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3815 # PORTME Fill in your ld.so characteristics
3816 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3817 echo "configure:3818: checking dynamic linker characteristics" >&5
3819 libname_spec='lib$name'
3826 shlibpath_overrides_runpath=unknown
3828 dynamic_linker="$host_os ld.so"
3829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3835 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3836 shlibpath_var=LIBPATH
3838 # AIX has no versioning support, so we append a major version to the name.
3839 soname_spec='${libname}${release}.so$major'
3844 if test "$host_cpu" = ia64; then
3845 # AIX 5 supports IA64
3846 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3847 shlibpath_var=LD_LIBRARY_PATH
3849 # With GCC up to 2.95.x, collect2 would create an import file
3850 # for dependence libraries. The import file would start with
3851 # the line `#! .'. This would cause the generated library to
3852 # depend on `.', always an invalid library. This was fixed in
3853 # development snapshots of GCC prior to 3.0.
3855 aix4 | aix4.[01] | aix4.[01].*)
3856 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3858 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3865 # AIX (on Power*) has no versioning support, so currently we can
3866 # not hardcode correct soname into executable. Probably we can
3867 # add versioning support to collect2, so additional links can
3868 # be useful in future.
3869 if test "$aix_use_runtimelinking" = yes; then
3870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3871 # instead of lib<name>.a to let people know that these are not
3872 # typical AIX shared libraries.
3873 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3875 # We preserve .a as extension for shared libraries through AIX4.2
3876 # and later when we are not doing run time linking.
3877 library_names_spec='${libname}${release}.a $libname.a'
3878 soname_spec='${libname}${release}.so$major'
3880 shlibpath_var=LIBPATH
3885 library_names_spec='$libname.ixlibrary $libname.a'
3886 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3887 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'
3891 library_names_spec='${libname}.so'
3892 dynamic_linker="$host_os ld.so"
3893 shlibpath_var=LIBRARY_PATH
3899 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3900 soname_spec='${libname}${release}.so$major'
3901 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3902 shlibpath_var=LD_LIBRARY_PATH
3903 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3904 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3905 export_dynamic_flag_spec=-rdynamic
3906 # the default ld.so.conf also contains /usr/contrib/lib and
3907 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3908 # libtool to hard-code these into programs
3911 cygwin* | mingw* | pw32*)
3912 version_type=windows
3915 case $GCC,$host_os in
3917 library_names_spec='$libname.dll.a'
3918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3919 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3920 dldir=$destdir/`dirname \$dlpath`~
3921 test -d \$dldir || mkdir -p \$dldir~
3922 $install_prog .libs/$dlname \$dldir/$dlname'
3923 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3924 dlpath=$dir/\$dldll~
3928 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3935 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3938 dynamic_linker='Win32 ld.exe'
3939 # FIXME: first we should search . and the directory the executable is in
3943 darwin* | rhapsody*)
3944 dynamic_linker="$host_os dyld"
3948 # FIXME: Relying on posixy $() will cause problems for
3949 # cross-compilation, but unfortunately the echo tests do not
3950 # yet detect zsh echo's removal of \ escapes.
3951 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)'
3952 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3953 shlibpath_overrides_runpath=yes
3954 shlibpath_var=DYLD_LIBRARY_PATH
3962 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3963 version_type=freebsd-$objformat
3964 case $version_type in
3966 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3971 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3975 shlibpath_var=LD_LIBRARY_PATH
3978 shlibpath_overrides_runpath=yes
3981 shlibpath_overrides_runpath=no
3982 hardcode_into_libs=yes
3991 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3992 soname_spec='${libname}${release}.so$major'
3993 shlibpath_var=LD_LIBRARY_PATH
3994 hardcode_into_libs=yes
3997 hpux9* | hpux10* | hpux11*)
3998 # Give a soname corresponding to the major version so that dld.sl refuses to
3999 # link against other versions.
4000 dynamic_linker="$host_os dld.sl"
4004 shlibpath_var=SHLIB_PATH
4005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4006 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4007 soname_spec='${libname}${release}.sl$major'
4008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4009 postinstall_cmds='chmod 555 $lib'
4012 irix5* | irix6* | nonstopux*)
4014 nonstopux*) version_type=nonstopux ;;
4015 *) version_type=irix ;;
4019 soname_spec='${libname}${release}.so$major'
4020 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4022 irix5* | nonstopux*)
4026 case $LD in # libtool.m4 will add one of these switches to LD
4027 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4028 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4029 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4030 *) libsuff= shlibsuff= libmagic=never-match;;
4034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4035 shlibpath_overrides_runpath=no
4036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4040 # No shared lib support for Linux oldld, aout, or coff.
4041 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4045 # This must be Linux ELF.
4050 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4051 soname_spec='${libname}${release}.so$major'
4052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4053 shlibpath_var=LD_LIBRARY_PATH
4054 shlibpath_overrides_runpath=no
4055 # This implies no fast_install, which is unacceptable.
4056 # Some rework will be needed to allow for fast_install
4057 # before this can be enabled.
4058 hardcode_into_libs=yes
4060 # We used to test for /lib/ld.so.1 and disable shared libraries on
4061 # powerpc, because MkLinux only supported shared libraries with the
4062 # GNU dynamic linker. Since this was broken with cross compilers,
4063 # most powerpc-linux boxes support dynamic linking these days and
4064 # people can always --disable-shared, the test was removed, and we
4065 # assume the GNU/Linux dynamic linker is in use.
4066 dynamic_linker='GNU/Linux ld.so'
4073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4074 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4076 dynamic_linker='NetBSD (a.out) ld.so'
4078 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4079 soname_spec='${libname}${release}.so$major'
4080 dynamic_linker='NetBSD ld.elf_so'
4082 shlibpath_var=LD_LIBRARY_PATH
4083 shlibpath_overrides_runpath=yes
4084 hardcode_into_libs=yes
4089 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4090 shlibpath_var=LD_LIBRARY_PATH
4091 shlibpath_overrides_runpath=yes
4098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4100 openbsd2.[89] | openbsd2.[89].*)
4101 shlibpath_overrides_runpath=no
4104 shlibpath_overrides_runpath=yes
4108 shlibpath_overrides_runpath=yes
4110 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4112 shlibpath_var=LD_LIBRARY_PATH
4116 libname_spec='$name'
4118 library_names_spec='$libname.dll $libname.a'
4119 dynamic_linker='OS/2 ld.exe'
4120 shlibpath_var=LIBPATH
4123 osf3* | osf4* | osf5*)
4126 soname_spec='${libname}${release}.so'
4127 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4128 shlibpath_var=LD_LIBRARY_PATH
4129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4130 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4135 soname_spec='${libname}${release}.so$major'
4136 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4137 shlibpath_var=LD_LIBRARY_PATH
4144 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4145 soname_spec='${libname}${release}.so$major'
4146 shlibpath_var=LD_LIBRARY_PATH
4147 shlibpath_overrides_runpath=yes
4148 hardcode_into_libs=yes
4149 # ldd complains unless libraries are executable
4150 postinstall_cmds='chmod +x $lib'
4155 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4156 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4157 shlibpath_var=LD_LIBRARY_PATH
4158 shlibpath_overrides_runpath=yes
4159 if test "$with_gnu_ld" = yes; then
4165 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4167 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4168 soname_spec='${libname}${release}.so$major'
4169 shlibpath_var=LD_LIBRARY_PATH
4170 case $host_vendor in
4172 shlibpath_overrides_runpath=no
4177 shlibpath_overrides_runpath=no
4178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4185 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4186 soname_spec='${libname}${release}.so$major'
4187 shlibpath_var=LD_LIBRARY_PATH
4194 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4195 soname_spec='${libname}${release}.so$major'
4196 shlibpath_var=LD_LIBRARY_PATH
4200 if test -d /usr/nec ;then
4202 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4203 soname_spec='$libname.so.$major'
4204 shlibpath_var=LD_LIBRARY_PATH
4212 echo "$ac_t""$dynamic_linker" 1>&6
4213 test "$dynamic_linker" = no && can_build_shared=no
4215 # Report the final consequences.
4216 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4217 echo "configure:4218: checking if libtool supports shared libraries" >&5
4218 echo "$ac_t""$can_build_shared" 1>&6
4220 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4221 echo "configure:4222: checking whether to build shared libraries" >&5
4222 test "$can_build_shared" = "no" && enable_shared=no
4224 # On AIX, shared libraries and static libraries use the same namespace, and
4225 # are all built from PIC.
4228 test "$enable_shared" = yes && enable_static=no
4229 if test -n "$RANLIB"; then
4230 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4231 postinstall_cmds='$RANLIB $lib'
4236 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4237 test "$enable_shared" = yes && enable_static=no
4241 echo "$ac_t""$enable_shared" 1>&6
4243 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4244 echo "configure:4245: checking whether to build static libraries" >&5
4245 # Make sure either enable_shared or enable_static is yes.
4246 test "$enable_shared" = yes || enable_static=yes
4247 echo "$ac_t""$enable_static" 1>&6
4249 if test "$hardcode_action" = relink; then
4250 # Fast installation is not supported
4251 enable_fast_install=no
4252 elif test "$shlibpath_overrides_runpath" = yes ||
4253 test "$enable_shared" = no; then
4254 # Fast installation is not necessary
4255 enable_fast_install=needless
4258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4259 if test "$GCC" = yes; then
4260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4263 if test "x$enable_dlopen" != xyes; then
4264 enable_dlopen=unknown
4265 enable_dlopen_self=unknown
4266 enable_dlopen_self_static=unknown
4273 lt_cv_dlopen="load_add_on"
4275 lt_cv_dlopen_self=yes
4278 cygwin* | mingw* | pw32*)
4279 lt_cv_dlopen="LoadLibrary"
4284 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4285 echo "configure:4286: checking for shl_load" >&5
4286 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* System header to define __stub macros and hopefully few prototypes,
4293 which can conflict with char shl_load(); below. */
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4302 /* The GNU C library defines this for functions which it implements
4303 to always fail with ENOSYS. Some functions are actually named
4304 something starting with __ and the normal name is an alias. */
4305 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4315 eval "ac_cv_func_shl_load=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 eval "ac_cv_func_shl_load=no"
4325 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4326 echo "$ac_t""yes" 1>&6
4327 lt_cv_dlopen="shl_load"
4329 echo "$ac_t""no" 1>&6
4330 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4331 echo "configure:4332: checking for shl_load in -ldld" >&5
4332 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 ac_save_LIBS="$LIBS"
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 /* Override any gcc2 internal prototype to avoid an error. */
4342 /* We use char because int might match the return type of a gcc2
4343 builtin and then its argument prototype would still apply. */
4350 if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 eval "ac_cv_lib_$ac_lib_var=yes"
4354 echo "configure: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4357 eval "ac_cv_lib_$ac_lib_var=no"
4360 LIBS="$ac_save_LIBS"
4363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4364 echo "$ac_t""yes" 1>&6
4365 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4367 echo "$ac_t""no" 1>&6
4368 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4369 echo "configure:4370: checking for dlopen" >&5
4370 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 /* System header to define __stub macros and hopefully few prototypes,
4377 which can conflict with char dlopen(); below. */
4379 /* Override any gcc2 internal prototype to avoid an error. */
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4386 /* The GNU C library defines this for functions which it implements
4387 to always fail with ENOSYS. Some functions are actually named
4388 something starting with __ and the normal name is an alias. */
4389 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4397 if { (eval echo configure:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399 eval "ac_cv_func_dlopen=yes"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4404 eval "ac_cv_func_dlopen=no"
4409 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 lt_cv_dlopen="dlopen"
4413 echo "$ac_t""no" 1>&6
4414 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4415 echo "configure:4416: checking for dlopen in -ldl" >&5
4416 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 ac_save_LIBS="$LIBS"
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4436 eval "ac_cv_lib_$ac_lib_var=yes"
4438 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4441 eval "ac_cv_lib_$ac_lib_var=no"
4444 LIBS="$ac_save_LIBS"
4447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4451 echo "$ac_t""no" 1>&6
4452 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4453 echo "configure:4454: checking for dlopen in -lsvld" >&5
4454 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 ac_save_LIBS="$LIBS"
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4472 if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4474 eval "ac_cv_lib_$ac_lib_var=yes"
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4479 eval "ac_cv_lib_$ac_lib_var=no"
4482 LIBS="$ac_save_LIBS"
4485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4489 echo "$ac_t""no" 1>&6
4490 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4491 echo "configure:4492: checking for dld_link in -ldld" >&5
4492 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 ac_save_LIBS="$LIBS"
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501 /* Override any gcc2 internal prototype to avoid an error. */
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4510 if { (eval echo configure:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512 eval "ac_cv_lib_$ac_lib_var=yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 eval "ac_cv_lib_$ac_lib_var=no"
4520 LIBS="$ac_save_LIBS"
4523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4524 echo "$ac_t""yes" 1>&6
4525 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4527 echo "$ac_t""no" 1>&6
4548 if test "x$lt_cv_dlopen" != xno; then
4554 case $lt_cv_dlopen in
4556 save_CPPFLAGS="$CPPFLAGS"
4557 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4559 save_LDFLAGS="$LDFLAGS"
4560 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4563 LIBS="$lt_cv_dlopen_libs $LIBS"
4565 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4566 echo "configure:4567: checking whether a program can dlopen itself" >&5
4567 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 if test "$cross_compiling" = yes; then :
4571 lt_cv_dlopen_self=cross
4573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4574 lt_status=$lt_dlunknown
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4586 # define LT_DLGLOBAL RTLD_GLOBAL
4589 # define LT_DLGLOBAL DL_GLOBAL
4591 # define LT_DLGLOBAL 0
4595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4596 find out it does not work in some platform. */
4597 #ifndef LT_DLLAZY_OR_NOW
4599 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4602 # define LT_DLLAZY_OR_NOW DL_LAZY
4605 # define LT_DLLAZY_OR_NOW RTLD_NOW
4608 # define LT_DLLAZY_OR_NOW DL_NOW
4610 # define LT_DLLAZY_OR_NOW 0
4618 extern "C" void exit (int);
4621 void fnord() { int i=42;}
4624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4625 int status = $lt_dlunknown;
4629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4630 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4631 /* dlclose (self); */
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4638 (./conftest; exit; ) 2>/dev/null
4641 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4642 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4643 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4646 # compilation failed
4647 lt_cv_dlopen_self=no
4655 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4657 if test "x$lt_cv_dlopen_self" = xyes; then
4658 LDFLAGS="$LDFLAGS $link_static_flag"
4659 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4660 echo "configure:4661: checking whether a statically linked program can dlopen itself" >&5
4661 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 if test "$cross_compiling" = yes; then :
4665 lt_cv_dlopen_self_static=cross
4667 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4668 lt_status=$lt_dlunknown
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4680 # define LT_DLGLOBAL RTLD_GLOBAL
4683 # define LT_DLGLOBAL DL_GLOBAL
4685 # define LT_DLGLOBAL 0
4689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4690 find out it does not work in some platform. */
4691 #ifndef LT_DLLAZY_OR_NOW
4693 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4696 # define LT_DLLAZY_OR_NOW DL_LAZY
4699 # define LT_DLLAZY_OR_NOW RTLD_NOW
4702 # define LT_DLLAZY_OR_NOW DL_NOW
4704 # define LT_DLLAZY_OR_NOW 0
4712 extern "C" void exit (int);
4715 void fnord() { int i=42;}
4718 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4719 int status = $lt_dlunknown;
4723 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4724 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4725 /* dlclose (self); */
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4732 (./conftest; exit; ) 2>/dev/null
4735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4740 # compilation failed
4741 lt_cv_dlopen_self_static=no
4749 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4752 CPPFLAGS="$save_CPPFLAGS"
4753 LDFLAGS="$save_LDFLAGS"
4758 case $lt_cv_dlopen_self in
4759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4760 *) enable_dlopen_self=unknown ;;
4763 case $lt_cv_dlopen_self_static in
4764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4765 *) enable_dlopen_self_static=unknown ;;
4770 if test "$enable_shared" = yes && test "$GCC" = yes; then
4771 case $archive_cmds in
4773 # FIXME: we may have to deal with multi-command sequences.
4776 # Test whether the compiler implicitly links with -lc since on some
4777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4778 # to ld, don't add -lc before -lgcc.
4779 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4780 echo "configure:4781: checking whether -lc should be explicitly linked in" >&5
4781 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4785 echo 'static int dummy;' > conftest.$ac_ext
4787 if { (eval echo configure:4788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4790 libobjs=conftest.$ac_objext
4792 wl=$lt_cv_prog_cc_wl
4798 save_allow_undefined_flag=$allow_undefined_flag
4799 allow_undefined_flag=
4800 if { (eval echo configure:4801: \"$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; }
4802 lt_cv_archive_cmds_need_lc=no
4804 lt_cv_archive_cmds_need_lc=yes
4806 allow_undefined_flag=$save_allow_undefined_flag
4808 cat conftest.err 1>&5
4812 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4816 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4818 # The second clause should only fire when bootstrapping the
4819 # libtool distribution, otherwise you forgot to ship ltmain.sh
4820 # with your package, and you will get complaints that there are
4821 # no rules to generate ltmain.sh.
4822 if test -f "$ltmain"; then
4825 # If there is no Makefile yet, we rely on a make rule to execute
4826 # `config.status --recheck' to rerun these tests and create the
4827 # libtool script then.
4828 test -f Makefile && make "$ltmain"
4831 if test -f "$ltmain"; then
4832 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4835 echo creating $ofile
4837 # Now quote all the things that may contain metacharacters while being
4838 # careful not to overquote the AC_SUBSTed values. We take copies of the
4839 # variables and quote the copies for generation of the libtool script.
4840 for var in echo old_CC old_CFLAGS \
4841 AR AR_FLAGS CC LD LN_S NM SHELL \
4842 reload_flag reload_cmds wl \
4843 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4844 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4845 library_names_spec soname_spec \
4846 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4847 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4848 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4849 old_striplib striplib file_magic_cmd export_symbols_cmds \
4850 deplibs_check_method allow_undefined_flag no_undefined_flag \
4851 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4852 global_symbol_to_c_name_address \
4853 hardcode_libdir_flag_spec hardcode_libdir_separator \
4854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4855 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4858 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4859 old_postinstall_cmds | old_postuninstall_cmds | \
4860 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4861 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4862 postinstall_cmds | postuninstall_cmds | \
4863 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4864 # Double-quote double-evaled strings.
4865 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4873 cat <<__EOF__ > "${ofile}T"
4876 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4877 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4878 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4880 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4881 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4883 # This program is free software; you can redistribute it and/or modify
4884 # it under the terms of the GNU General Public License as published by
4885 # the Free Software Foundation; either version 2 of the License, or
4886 # (at your option) any later version.
4888 # This program is distributed in the hope that it will be useful, but
4889 # WITHOUT ANY WARRANTY; without even the implied warranty of
4890 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4891 # General Public License for more details.
4893 # You should have received a copy of the GNU General Public License
4894 # along with this program; if not, write to the Free Software
4895 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4897 # As a special exception to the GNU General Public License, if you
4898 # distribute this file as part of a program that contains a
4899 # configuration script generated by Autoconf, you may include it under
4900 # the same distribution terms that you use for the rest of that program.
4902 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4903 Xsed="sed -e s/^X//"
4905 # The HP-UX ksh and POSIX shell print the target directory to stdout
4907 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4909 # ### BEGIN LIBTOOL CONFIG
4911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4913 # Shell to use when invoking shell scripts.
4916 # Whether or not to build shared libraries.
4917 build_libtool_libs=$enable_shared
4919 # Whether or not to build static libraries.
4920 build_old_libs=$enable_static
4922 # Whether or not to add -lc for building shared libraries.
4923 build_libtool_need_lc=$need_lc
4925 # Whether or not to optimize for fast installation.
4926 fast_install=$enable_fast_install
4929 host_alias=$host_alias
4932 # An echo program that does not interpret backslashes.
4937 AR_FLAGS=$lt_AR_FLAGS
4939 # The default C compiler.
4942 # Is the compiler the GNU C compiler?
4945 # The linker used to build libraries.
4948 # Whether we need hard or soft links.
4951 # A BSD-compatible nm program.
4954 # A symbol stripping program
4957 # Used to examine libraries when file_magic_cmd begins "file"
4958 MAGIC_CMD=$MAGIC_CMD
4960 # Used on cygwin: DLL creation program.
4963 # Used on cygwin: object dumper.
4966 # Used on cygwin: assembler.
4969 # The name of the directory that contains temporary libtool files.
4972 # How to create reloadable object files.
4973 reload_flag=$lt_reload_flag
4974 reload_cmds=$lt_reload_cmds
4976 # How to pass a linker flag through the compiler.
4979 # Object file suffix (normally "o").
4982 # Old archive suffix (normally "a").
4985 # Executable file suffix (normally "").
4988 # Additional compiler flags for building library objects.
4989 pic_flag=$lt_pic_flag
4992 # Does compiler simultaneously support -c and -o options?
4993 compiler_c_o=$lt_compiler_c_o
4995 # Can we write directly to a .lo ?
4996 compiler_o_lo=$lt_compiler_o_lo
4998 # Must we lock files when doing compilation ?
4999 need_locks=$lt_need_locks
5001 # Do we need the lib prefix for modules?
5002 need_lib_prefix=$need_lib_prefix
5004 # Do we need a version for libraries?
5005 need_version=$need_version
5007 # Whether dlopen is supported.
5008 dlopen_support=$enable_dlopen
5010 # Whether dlopen of programs is supported.
5011 dlopen_self=$enable_dlopen_self
5013 # Whether dlopen of statically linked programs is supported.
5014 dlopen_self_static=$enable_dlopen_self_static
5016 # Compiler flag to prevent dynamic linking.
5017 link_static_flag=$lt_link_static_flag
5019 # Compiler flag to turn off builtin functions.
5020 no_builtin_flag=$lt_no_builtin_flag
5022 # Compiler flag to allow reflexive dlopens.
5023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5025 # Compiler flag to generate shared objects directly from archives.
5026 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5028 # Compiler flag to generate thread-safe objects.
5029 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5031 # Library versioning type.
5032 version_type=$version_type
5034 # Format of library name prefix.
5035 libname_spec=$lt_libname_spec
5037 # List of archive names. First name is the real one, the rest are links.
5038 # The last name is the one that the linker finds with -lNAME.
5039 library_names_spec=$lt_library_names_spec
5041 # The coded name of the library, if different from the real name.
5042 soname_spec=$lt_soname_spec
5044 # Commands used to build and install an old-style archive.
5046 old_archive_cmds=$lt_old_archive_cmds
5047 old_postinstall_cmds=$lt_old_postinstall_cmds
5048 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5050 # Create an old-style archive from a shared archive.
5051 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5053 # Create a temporary old-style archive to link instead of a shared archive.
5054 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5056 # Commands used to build and install a shared archive.
5057 archive_cmds=$lt_archive_cmds
5058 archive_expsym_cmds=$lt_archive_expsym_cmds
5059 postinstall_cmds=$lt_postinstall_cmds
5060 postuninstall_cmds=$lt_postuninstall_cmds
5062 # Commands to strip libraries.
5063 old_striplib=$lt_old_striplib
5064 striplib=$lt_striplib
5066 # Method to check whether dependent libraries are shared objects.
5067 deplibs_check_method=$lt_deplibs_check_method
5069 # Command to use when deplibs_check_method == file_magic.
5070 file_magic_cmd=$lt_file_magic_cmd
5072 # Flag that allows shared libraries with undefined symbols to be built.
5073 allow_undefined_flag=$lt_allow_undefined_flag
5075 # Flag that forces no undefined symbols.
5076 no_undefined_flag=$lt_no_undefined_flag
5078 # Commands used to finish a libtool library installation in a directory.
5079 finish_cmds=$lt_finish_cmds
5081 # Same as above, but a single script fragment to be evaled but not shown.
5082 finish_eval=$lt_finish_eval
5084 # Take the output of nm and produce a listing of raw symbols and C names.
5085 global_symbol_pipe=$lt_global_symbol_pipe
5087 # Transform the output of nm in a proper C declaration
5088 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5090 # Transform the output of nm in a C name address pair
5091 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5093 # This is the shared library runtime path variable.
5094 runpath_var=$runpath_var
5096 # This is the shared library path variable.
5097 shlibpath_var=$shlibpath_var
5099 # Is shlibpath searched before the hard-coded library search path?
5100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5102 # How to hardcode a shared library path into an executable.
5103 hardcode_action=$hardcode_action
5105 # Whether we should hardcode library paths into libraries.
5106 hardcode_into_libs=$hardcode_into_libs
5108 # Flag to hardcode \$libdir into a binary during linking.
5109 # This must work even if \$libdir does not exist.
5110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5112 # Whether we need a single -rpath flag with a separated argument.
5113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5115 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5117 hardcode_direct=$hardcode_direct
5119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5121 hardcode_minus_L=$hardcode_minus_L
5123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5124 # the resulting binary.
5125 hardcode_shlibpath_var=$hardcode_shlibpath_var
5127 # Variables whose values should be saved in libtool wrapper scripts and
5128 # restored at relink time.
5129 variables_saved_for_relink="$variables_saved_for_relink"
5131 # Whether libtool must link a program against all its dependency libraries.
5132 link_all_deplibs=$link_all_deplibs
5134 # Compile-time system search path for libraries
5135 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5137 # Run-time system search path for libraries
5138 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5140 # Fix the shell variable \$srcfile for the compiler.
5141 fix_srcfile_path="$fix_srcfile_path"
5143 # Set to yes if exported symbols are required.
5144 always_export_symbols=$always_export_symbols
5146 # The commands to list exported symbols.
5147 export_symbols_cmds=$lt_export_symbols_cmds
5149 # The commands to extract the exported symbol list from a shared archive.
5150 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5152 # Symbols that should not be listed in the preloaded symbols.
5153 exclude_expsyms=$lt_exclude_expsyms
5155 # Symbols that must always be exported.
5156 include_expsyms=$lt_include_expsyms
5158 # ### END LIBTOOL CONFIG
5164 cat <<\EOF >> "${ofile}T"
5166 # AIX sometimes has problems with the GCC collect2 program. For some
5167 # reason, if we set the COLLECT_NAMES environment variable, the problems
5168 # vanish in a puff of smoke.
5169 if test "X${COLLECT_NAMES+set}" != Xset; then
5171 export COLLECT_NAMES
5178 cygwin* | mingw* | pw32* | os2*)
5179 cat <<'EOF' >> "${ofile}T"
5180 # This is a source program that is used to create dlls on Windows
5181 # Don't remove nor modify the starting and closing comments
5182 # /* ltdll.c starts here */
5183 # #define WIN32_LEAN_AND_MEAN
5184 # #include <windows.h>
5185 # #undef WIN32_LEAN_AND_MEAN
5186 # #include <stdio.h>
5188 # #ifndef __CYGWIN__
5189 # # ifdef __CYGWIN32__
5190 # # define __CYGWIN__ __CYGWIN32__
5194 # #ifdef __cplusplus
5197 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5198 # #ifdef __cplusplus
5203 # #include <cygwin/cygwin_dll.h>
5204 # DECLARE_CYGWIN_DLL( DllMain );
5206 # HINSTANCE __hDllInstance_base;
5209 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5211 # __hDllInstance_base = hInst;
5214 # /* ltdll.c ends here */
5215 # This is a source program that is used to create import libraries
5216 # on Windows for dlls which lack them. Don't remove nor modify the
5217 # starting and closing comments
5218 # /* impgen.c starts here */
5219 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5221 # This file is part of GNU libtool.
5223 # This program is free software; you can redistribute it and/or modify
5224 # it under the terms of the GNU General Public License as published by
5225 # the Free Software Foundation; either version 2 of the License, or
5226 # (at your option) any later version.
5228 # This program is distributed in the hope that it will be useful,
5229 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5230 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5231 # GNU General Public License for more details.
5233 # You should have received a copy of the GNU General Public License
5234 # along with this program; if not, write to the Free Software
5235 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5238 # #include <stdio.h> /* for printf() */
5239 # #include <unistd.h> /* for open(), lseek(), read() */
5240 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5241 # #include <string.h> /* for strdup() */
5243 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5245 # #define O_BINARY 0
5248 # static unsigned int
5249 # pe_get16 (fd, offset)
5253 # unsigned char b[2];
5254 # lseek (fd, offset, SEEK_SET);
5256 # return b[0] + (b[1]<<8);
5259 # static unsigned int
5260 # pe_get32 (fd, offset)
5264 # unsigned char b[4];
5265 # lseek (fd, offset, SEEK_SET);
5267 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5270 # static unsigned int
5274 # unsigned char *b = ptr;
5275 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5284 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5285 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5286 # unsigned long name_rvas, nexp;
5287 # unsigned char *expdata, *erva;
5288 # char *filename, *dll_name;
5290 # filename = argv[1];
5292 # dll = open(filename, O_RDONLY|O_BINARY);
5296 # dll_name = filename;
5298 # for (i=0; filename[i]; i++)
5299 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5300 # dll_name = filename + i +1;
5302 # pe_header_offset = pe_get32 (dll, 0x3c);
5303 # opthdr_ofs = pe_header_offset + 4 + 20;
5304 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5306 # if (num_entries < 1) /* no exports */
5309 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5310 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5311 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5312 # secptr = (pe_header_offset + 4 + 20 +
5313 # pe_get16 (dll, pe_header_offset + 4 + 16));
5316 # for (i = 0; i < nsections; i++)
5319 # unsigned long secptr1 = secptr + 40 * i;
5320 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5321 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5322 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5323 # lseek(dll, secptr1, SEEK_SET);
5324 # read(dll, sname, 8);
5325 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5327 # expptr = fptr + (export_rva - vaddr);
5328 # if (export_rva + export_size > vaddr + vsize)
5329 # export_size = vsize - (export_rva - vaddr);
5334 # expdata = (unsigned char*)malloc(export_size);
5335 # lseek (dll, expptr, SEEK_SET);
5336 # read (dll, expdata, export_size);
5337 # erva = expdata - export_rva;
5339 # nexp = pe_as32 (expdata+24);
5340 # name_rvas = pe_as32 (expdata+32);
5342 # printf ("EXPORTS\n");
5343 # for (i = 0; i<nexp; i++)
5345 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5346 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5351 # /* impgen.c ends here */
5357 # We use sed instead of cat because bash on DJGPP gets confused if
5358 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5359 # text mode, it properly converts lines to CR/LF. This bash problem
5360 # is reportedly fixed, but why not run on old versions too?
5361 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5363 mv -f "${ofile}T" "$ofile" || \
5364 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5372 # This can be used to rebuild libtool when needed
5373 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5375 # Always use our own libtool.
5376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5378 # Prevent multiple expansion
5381 for ac_prog in gzip uncompress compress
5383 # Extract the first word of "$ac_prog", so it can be a program name with args.
5384 set dummy $ac_prog; ac_word=$2
5385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5386 echo "configure:5387: checking for $ac_word" >&5
5387 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 if test -n "$UNCOMPRESS"; then
5391 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
5393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5395 for ac_dir in $ac_dummy; do
5396 test -z "$ac_dir" && ac_dir=.
5397 if test -f $ac_dir/$ac_word; then
5398 ac_cv_prog_UNCOMPRESS="$ac_prog"
5405 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
5406 if test -n "$UNCOMPRESS"; then
5407 echo "$ac_t""$UNCOMPRESS" 1>&6
5409 echo "$ac_t""no" 1>&6
5412 test -n "$UNCOMPRESS" && break
5415 for ac_prog in freetype-config
5417 # Extract the first word of "$ac_prog", so it can be a program name with args.
5418 set dummy $ac_prog; ac_word=$2
5419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5420 echo "configure:5421: checking for $ac_word" >&5
5421 if eval "test \"`echo '$''{'ac_cv_prog_FREETYPE_CONFIG'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 if test -n "$FREETYPE_CONFIG"; then
5425 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
5427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5429 for ac_dir in $ac_dummy; do
5430 test -z "$ac_dir" && ac_dir=.
5431 if test -f $ac_dir/$ac_word; then
5432 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
5439 FREETYPE_CONFIG="$ac_cv_prog_FREETYPE_CONFIG"
5440 if test -n "$FREETYPE_CONFIG"; then
5441 echo "$ac_t""$FREETYPE_CONFIG" 1>&6
5443 echo "$ac_t""no" 1>&6
5446 test -n "$FREETYPE_CONFIG" && break
5452 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5453 echo "configure:5454: checking for executable suffix" >&5
5454 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5457 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5461 echo 'int main () { return 0; }' > conftest.$ac_ext
5463 if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5464 for file in conftest.*; do
5466 *.c | *.o | *.obj) ;;
5467 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5471 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5474 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5479 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5480 echo "$ac_t""${ac_cv_exeext}" 1>&6
5486 # Make sure we can run config.sub.
5487 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5488 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5491 echo $ac_n "checking host system type""... $ac_c" 1>&6
5492 echo "configure:5493: checking host system type" >&5
5495 case "$host_alias" in
5499 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5500 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5502 *) host_alias=$nonopt ;;
5506 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5507 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5508 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5509 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5510 echo "$ac_t""$host" 1>&6
5514 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5515 echo "configure:5516: checking for executable suffix" >&5
5516 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5519 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5523 echo 'int main () { return 0; }' > conftest.$ac_ext
5525 if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5526 for file in conftest.*; do
5528 *.c | *.o | *.obj) ;;
5529 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5533 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5536 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5541 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5542 echo "$ac_t""${ac_cv_exeext}" 1>&6
5546 echo $ac_n "checking for target system""... $ac_c" 1>&6
5547 echo "configure:5548: checking for target system" >&5
5551 *cygwin* ) CYGWIN=yes;;
5552 *mingw* ) MINGW=yes;;
5556 if test "x$CXX" == "xi586-mingw32msvc-g++"; then
5557 #fix for the debian distribution of mingw
5558 if test -x "/usr/i586-mingw32msvc/bin/ar";then
5559 AR="/usr/i586-mingw32msvc/bin/ar"
5561 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
5562 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
5568 if test "x${CYGWIN}" = "xyes"; then
5569 cat >> confdefs.h <<EOF
5573 echo "$ac_t""cygwin" 1>&6
5575 if test "x${MINGW}" = "xyes"; then
5576 cat >> confdefs.h <<EOF
5581 cat >> confdefs.h <<EOF
5585 LIBS="$LIBS -lws2_32"
5586 echo "$ac_t""mingw" 1>&6
5590 cat >> confdefs.h <<EOF
5599 if test "x${MINGW}" != "xyes"; then
5600 cat >> confdefs.h <<EOF
5605 # The following tries to make use of includes and libraries in
5606 # /usr/local, too. Notice: A -I/usr/local/include might break
5607 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
5608 # especially on systems which link /usr/local to /usr, so it has yet
5609 # to be seen how useful this is.
5610 if test -d /usr/local/lib; then
5611 LDFLAGS="$LDFLAGS -L/usr/local/lib"
5613 if test -d /usr/local/include; then
5614 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
5615 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
5618 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
5619 # if the user has a special prefix (like /opt), there might also be $prefix/lib
5620 # and $prefix/include, which should be included in our search paths for libraries
5622 LDFLAGS="$LDFLAGS -L${libdir}"
5623 CPPFLAGS="$CPPFLAGS -I${includedir}"
5624 # TODO- test whether gcc still works after this
5627 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5628 echo "configure:5629: checking for sin in -lm" >&5
5629 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 ac_save_LIBS="$LIBS"
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5638 /* Override any gcc2 internal prototype to avoid an error. */
5639 /* We use char because int might match the return type of a gcc2
5640 builtin and then its argument prototype would still apply. */
5647 if { (eval echo configure:5648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5649 eval "ac_cv_lib_$ac_lib_var=yes"
5651 echo "configure: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5654 eval "ac_cv_lib_$ac_lib_var=no"
5657 LIBS="$ac_save_LIBS"
5660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5661 echo "$ac_t""yes" 1>&6
5662 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5663 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5664 cat >> confdefs.h <<EOF
5665 #define $ac_tr_lib 1
5671 echo "$ac_t""no" 1>&6
5672 echo "Error: Math library not found.";
5677 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5678 echo "configure:5679: checking for deflate in -lz" >&5
5679 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 ac_save_LIBS="$LIBS"
5685 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688 /* Override any gcc2 internal prototype to avoid an error. */
5689 /* We use char because int might match the return type of a gcc2
5690 builtin and then its argument prototype would still apply. */
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5699 eval "ac_cv_lib_$ac_lib_var=yes"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 eval "ac_cv_lib_$ac_lib_var=no"
5707 LIBS="$ac_save_LIBS"
5710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5711 echo "$ac_t""yes" 1>&6
5712 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5714 cat >> confdefs.h <<EOF
5715 #define $ac_tr_lib 1
5721 echo "$ac_t""no" 1>&6
5722 DISABLEPNG2SWF=true;
5723 MISSINGLIBS="${MISSINGLIBS} zlib"
5728 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
5729 echo "configure:5730: checking for jpeg_write_raw_data in -ljpeg" >&5
5730 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
5731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5734 ac_save_LIBS="$LIBS"
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* Override any gcc2 internal prototype to avoid an error. */
5740 /* We use char because int might match the return type of a gcc2
5741 builtin and then its argument prototype would still apply. */
5742 char jpeg_write_raw_data();
5745 jpeg_write_raw_data()
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 eval "ac_cv_lib_$ac_lib_var=yes"
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 eval "ac_cv_lib_$ac_lib_var=no"
5758 LIBS="$ac_save_LIBS"
5761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5765 cat >> confdefs.h <<EOF
5766 #define $ac_tr_lib 1
5772 echo "$ac_t""no" 1>&6
5773 DISABLEPDF2SWF=true;
5774 DISABLEJPEG2SWF=true;
5775 MISSINGLIBS="${MISSINGLIBS} jpeglib"
5779 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
5780 echo "configure:5781: checking for T1_LoadFont in -lt1" >&5
5781 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
5782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5785 ac_save_LIBS="$LIBS"
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5790 /* Override any gcc2 internal prototype to avoid an error. */
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5801 eval "ac_cv_lib_$ac_lib_var=yes"
5803 echo "configure: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5806 eval "ac_cv_lib_$ac_lib_var=no"
5809 LIBS="$ac_save_LIBS"
5812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5816 cat >> confdefs.h <<EOF
5817 #define $ac_tr_lib 1
5823 echo "$ac_t""no" 1>&6
5824 DISABLEPDF2SWF=true;
5825 MISSINGLIBS="${MISSINGLIBS} t1lib"
5829 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
5830 echo "configure:5831: checking for FT_Init_FreeType in -lfreetype" >&5
5831 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
5832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 ac_save_LIBS="$LIBS"
5836 LIBS="-lfreetype $LIBS"
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5843 char FT_Init_FreeType();
5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5851 eval "ac_cv_lib_$ac_lib_var=yes"
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5856 eval "ac_cv_lib_$ac_lib_var=no"
5859 LIBS="$ac_save_LIBS"
5862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5863 echo "$ac_t""yes" 1>&6
5866 echo "$ac_t""no" 1>&6
5871 echo $ac_n "checking for byte order""... $ac_c" 1>&6
5872 echo "configure:5873: checking for byte order" >&5
5873 if test "$cross_compiling" = yes; then
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5880 int main (int argc, char *argv[])
5887 if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5901 if test "x${CROSSCOMPILE}" = "x1"; then
5902 echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
5904 # Do some error checking and defaulting for the host and target type.
5906 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
5909 # 1. You are not allowed to specify --host, --target, and nonopt at the
5911 # 2. Host defaults to nonopt.
5912 # 3. If nonopt is not specified, then host defaults to the current host,
5913 # as determined by config.guess.
5914 # 4. Target and build default to nonopt.
5915 # 5. If nonopt is not specified, then target and build default to host.
5917 # The aliases save the names the user supplied, while $host etc.
5918 # will get canonicalized.
5919 case $host---$target---$nonopt in
5920 NONE---*---* | *---NONE---* | *---*---NONE) ;;
5921 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
5925 # Make sure we can run config.sub.
5926 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5927 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5930 echo $ac_n "checking host system type""... $ac_c" 1>&6
5931 echo "configure:5932: checking host system type" >&5
5934 case "$host_alias" in
5938 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5939 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5941 *) host_alias=$nonopt ;;
5945 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5946 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5947 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5948 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5949 echo "$ac_t""$host" 1>&6
5951 echo $ac_n "checking target system type""... $ac_c" 1>&6
5952 echo "configure:5953: checking target system type" >&5
5954 target_alias=$target
5955 case "$target_alias" in
5958 NONE) target_alias=$host_alias ;;
5959 *) target_alias=$nonopt ;;
5963 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
5964 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5965 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5966 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5967 echo "$ac_t""$target" 1>&6
5969 echo $ac_n "checking build system type""... $ac_c" 1>&6
5970 echo "configure:5971: checking build system type" >&5
5973 case "$build_alias" in
5976 NONE) build_alias=$host_alias ;;
5977 *) build_alias=$nonopt ;;
5981 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
5982 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5983 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5984 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5985 echo "$ac_t""$build" 1>&6
5987 test "$host_alias" != "$target_alias" &&
5988 test "$program_prefix$program_suffix$program_transform_name" = \
5990 program_prefix=${target_alias}-
5992 echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
5993 echo "configure:5994: checking for byte order, try 2" >&5
5998 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
6005 if test "x${LITTLEENDIAN}" = "x1"; then
6006 echo "$ac_t""little endian" 1>&6
6010 if test "x${BIGENDIAN}" = "x1"; then
6011 echo "$ac_t""big endian" 1>&6
6014 export WORDS_BIGENDIAN
6015 cat >> confdefs.h <<EOF
6016 #define WORDS_BIGENDIAN 1
6020 if test "x${BYTEORDERCHECKOK}" != "x1"; then
6021 echo "$ac_t""unknown" 1>&6
6022 echo Byte order could not determined.
6028 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
6029 echo "configure:6030: checking whether system() can handle command substitution" >&5
6030 if test "$cross_compiling" = yes; then
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6038 int main (int argc, char*argv[])
6040 return system("test `touch config.tmp2`");
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6055 if test "x${OK}" = "xOK";then
6056 test -f config.tmp2 || OK=
6059 if test "x${CROSSCOMPILE}" = "x1";then
6062 if test "x${OK}" = "xOK";then
6064 echo "$ac_t""yes" 1>&6
6066 export SYSTEM_BACKTICKS
6067 cat >> confdefs.h <<EOF
6068 #define SYSTEM_BACKTICKS 1
6072 echo "$ac_t""no" 1>&6
6077 if test "$program_transform_name" = s,x,x,; then
6078 program_transform_name=
6080 # Double any \ or $. echo might interpret backslashes.
6081 cat <<\EOF_SED > conftestsed
6082 s,\\,\\\\,g; s,\$,$$,g
6084 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
6087 test "$program_prefix" != NONE &&
6088 program_transform_name="s,^,${program_prefix},; $program_transform_name"
6089 # Use a double $ so make ignores it.
6090 test "$program_suffix" != NONE &&
6091 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
6093 # sed with no file args requires a program.
6094 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
6099 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6102 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6103 echo "configure:6104: checking for $ac_hdr that defines DIR" >&5
6104 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6107 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6110 #include <sys/types.h>
6116 if { (eval echo configure:6117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6118 eval "ac_cv_header_dirent_$ac_safe=yes"
6120 echo "configure: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6123 eval "ac_cv_header_dirent_$ac_safe=no"
6127 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6130 cat >> confdefs.h <<EOF
6131 #define $ac_tr_hdr 1
6133 ac_header_dirent=$ac_hdr; break
6135 echo "$ac_t""no" 1>&6
6138 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6139 if test $ac_header_dirent = dirent.h; then
6140 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6141 echo "configure:6142: checking for opendir in -ldir" >&5
6142 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6144 echo $ac_n "(cached) $ac_c" 1>&6
6146 ac_save_LIBS="$LIBS"
6148 cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6160 if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6162 eval "ac_cv_lib_$ac_lib_var=yes"
6164 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6167 eval "ac_cv_lib_$ac_lib_var=no"
6170 LIBS="$ac_save_LIBS"
6173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6174 echo "$ac_t""yes" 1>&6
6177 echo "$ac_t""no" 1>&6
6181 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6182 echo "configure:6183: checking for opendir in -lx" >&5
6183 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6185 echo $ac_n "(cached) $ac_c" 1>&6
6187 ac_save_LIBS="$LIBS"
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6203 eval "ac_cv_lib_$ac_lib_var=yes"
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6208 eval "ac_cv_lib_$ac_lib_var=no"
6211 LIBS="$ac_save_LIBS"
6214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6218 echo "$ac_t""no" 1>&6
6223 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6224 echo "configure:6225: checking for ANSI C header files" >&5
6225 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6226 echo $ac_n "(cached) $ac_c" 1>&6
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6237 { (eval echo configure:6238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6239 if test -z "$ac_err"; then
6241 ac_cv_header_stdc=yes
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 ac_cv_header_stdc=no
6251 if test $ac_cv_header_stdc = yes; then
6252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6259 egrep "memchr" >/dev/null 2>&1; then
6263 ac_cv_header_stdc=no
6269 if test $ac_cv_header_stdc = yes; then
6270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 egrep "free" >/dev/null 2>&1; then
6281 ac_cv_header_stdc=no
6287 if test $ac_cv_header_stdc = yes; then
6288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6289 if test "$cross_compiling" = yes; then
6292 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6296 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6297 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6299 int main () { int i; for (i = 0; i < 256; i++)
6300 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 ac_cv_header_stdc=no
6319 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6320 if test $ac_cv_header_stdc = yes; then
6321 cat >> confdefs.h <<\EOF
6322 #define STDC_HEADERS 1
6327 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
6329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6331 echo "configure:6332: checking for $ac_hdr" >&5
6332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6333 echo $ac_n "(cached) $ac_c" 1>&6
6335 cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6341 { (eval echo configure:6342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6343 if test -z "$ac_err"; then
6345 eval "ac_cv_header_$ac_safe=yes"
6348 echo "configure: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6351 eval "ac_cv_header_$ac_safe=no"
6355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6356 echo "$ac_t""yes" 1>&6
6357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6358 cat >> confdefs.h <<EOF
6359 #define $ac_tr_hdr 1
6363 echo "$ac_t""no" 1>&6
6368 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
6369 DISABLEPDF2SWF=true;
6370 DISABLEJPEG2SWF=true;
6371 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6373 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
6374 DISABLEPDF2SWF=true;
6375 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6377 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
6378 DISABLEPNG2SWF=true;
6379 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6383 if test "x$USE_FREETYPE" != "x"; then
6384 cat >> confdefs.h <<EOF
6385 #define USE_FREETYPE "$USE_FREETYPE"
6389 cat >> confdefs.h <<EOF
6390 #define PACKAGE "$PACKAGE"
6393 cat >> confdefs.h <<EOF
6394 #define VERSION "$VERSION"
6403 echo $ac_n "checking for working const""... $ac_c" 1>&6
6404 echo "configure:6405: checking for working const" >&5
6405 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure"
6410 #include "confdefs.h"
6414 /* Ultrix mips cc rejects this. */
6415 typedef int charset[2]; const charset x;
6416 /* SunOS 4.1.1 cc rejects this. */
6417 char const *const *ccp;
6419 /* NEC SVR4.0.2 mips cc rejects this. */
6420 struct point {int x, y;};
6421 static struct point const zero = {0,0};
6422 /* AIX XL C 1.02.0.0 rejects this.
6423 It does not let you subtract one const X* pointer from another in an arm
6424 of an if-expression whose if-part is not a constant expression */
6425 const char *g = "string";
6426 ccp = &g + (g ? g-g : 0);
6427 /* HPUX 7.0 cc rejects these. */
6430 ccp = (char const *const *) p;
6431 { /* SCO 3.2v4 cc rejects this. */
6433 char const *s = 0 ? (char *) 0 : (char const *) 0;
6437 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6439 const int *foo = &x[0];
6442 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6443 typedef const int *iptr;
6447 { /* AIX XL C 1.02.0.0 rejects this saying
6448 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6449 struct s { int j; const int *ap[3]; };
6450 struct s *b; b->j = 5;
6452 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6458 if { (eval echo configure:6459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6470 echo "$ac_t""$ac_cv_c_const" 1>&6
6471 if test $ac_cv_c_const = no; then
6472 cat >> confdefs.h <<\EOF
6478 echo $ac_n "checking for inline""... $ac_c" 1>&6
6479 echo "configure:6480: checking for inline" >&5
6480 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6484 for ac_kw in inline __inline__ __inline; do
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6493 if { (eval echo configure:6494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6495 ac_cv_c_inline=$ac_kw; break
6497 echo "configure: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6505 echo "$ac_t""$ac_cv_c_inline" 1>&6
6506 case "$ac_cv_c_inline" in
6508 no) cat >> confdefs.h <<\EOF
6512 *) cat >> confdefs.h <<EOF
6513 #define inline $ac_cv_c_inline
6518 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6519 echo "configure:6520: checking for off_t" >&5
6520 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 #include <sys/types.h>
6532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6535 ac_cv_type_off_t=yes
6543 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6544 if test $ac_cv_type_off_t = no; then
6545 cat >> confdefs.h <<\EOF
6551 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6552 echo "configure:6553: checking for size_t" >&5
6553 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 #include <sys/types.h>
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6568 ac_cv_type_size_t=yes
6571 ac_cv_type_size_t=no
6576 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6577 if test $ac_cv_type_size_t = no; then
6578 cat >> confdefs.h <<\EOF
6579 #define size_t unsigned
6584 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6585 echo "configure:6586: checking whether struct tm is in sys/time.h or time.h" >&5
6586 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 #include <sys/types.h>
6595 struct tm *tp; tp->tm_sec;
6598 if { (eval echo configure:6599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6600 ac_cv_struct_tm=time.h
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 ac_cv_struct_tm=sys/time.h
6610 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6611 if test $ac_cv_struct_tm = sys/time.h; then
6612 cat >> confdefs.h <<\EOF
6613 #define TM_IN_SYS_TIME 1
6618 echo $ac_n "checking for boolean""... $ac_c" 1>&6
6619 echo "configure:6620: checking for boolean" >&5
6620 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 #include <sys/types.h>
6632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6635 ac_cv_type_boolean=yes
6638 ac_cv_type_boolean=no
6643 echo "$ac_t""$ac_cv_type_boolean" 1>&6
6644 if test $ac_cv_type_boolean = no; then
6645 cat >> confdefs.h <<\EOF
6651 echo $ac_n "checking for bool""... $ac_c" 1>&6
6652 echo "configure:6653: checking for bool" >&5
6653 if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 #include <sys/types.h>
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6676 echo "$ac_t""$ac_cv_type_bool" 1>&6
6677 if test $ac_cv_type_bool = no; then
6678 cat >> confdefs.h <<\EOF
6685 for ac_func in popen mkstemp stat lrand48 rand srand48 srand
6687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6688 echo "configure:6689: checking for $ac_func" >&5
6689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 /* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char $ac_func(); below. */
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6705 /* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6718 eval "ac_cv_func_$ac_func=yes"
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6723 eval "ac_cv_func_$ac_func=no"
6728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6731 cat >> confdefs.h <<EOF
6732 #define $ac_tr_func 1
6736 echo "$ac_t""no" 1>&6
6741 echo $ac_n "checking whether we can compile the avifile test program""... $ac_c" 1>&6
6742 echo "configure:6743: checking whether we can compile the avifile test program" >&5
6744 cat > conftest.cpp << EOF
6745 #include <avifile/version.h>
6746 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6747 #include <avifile.h>
6748 #include <aviplay.h>
6750 #include <creators.h>
6751 #include <StreamInfo.h>
6754 #include <avifile.h>
6755 #include <aviplay.h>
6756 #include <aviutil.h>
6758 #define Height height
6765 IAviReadFile* player;
6766 IAviReadStream* astream;
6767 IAviReadStream* vstream;
6768 player = CreateIAviReadFile(0);
6769 astream = player->GetStream(0, AviStream::Audio);
6770 vstream = player->GetStream(0, AviStream::Video);
6771 vstream -> StartStreaming();
6772 astream -> StartStreaming();
6775 player->GetFileHeader(&head);
6776 head.dwMicroSecPerFrame;
6781 head.dwMicroSecPerFrame;
6782 astream->GetEndPos(),
6783 astream->GetEndTime());
6784 player->StreamCount();
6786 StreamInfo*audioinfo;
6787 StreamInfo*videoinfo;
6788 audioinfo = astream->GetStreamInfo();
6789 videoinfo = vstream->GetStreamInfo();
6790 videoinfo->GetVideoWidth();
6791 videoinfo->GetVideoHeight();
6792 audioinfo->GetAudioSamplesPerSec();
6793 videoinfo->GetFps();
6795 CImage*img = vstream->GetFrame();
6802 astream->GetAudioFormatInfo(&wave,0);
6804 astream->ReadFrames(0,0,0,a,b);
6806 int main (int argc, char*argv)
6812 ac_link='$CXX $CPPFLAGS $CXXFLAGS `avifile-config --cflags` `avifile-config --libs` conftest.cpp -o conftest${ac_exeext}'
6813 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
6814 echo "$ac_t""yes" 1>&6
6817 cat >> confdefs.h <<EOF
6818 #define AVIFILE true
6822 echo "configure: failed program was:" >&5
6823 cat conftest.$ac_ext >&5
6824 echo "$ac_t""no" 1>&6
6829 avi2swf="avi2swf/Makefile"
6830 if test "x${AVIFILE}" != "xtrue"; then
6831 echo "* Couldn't compile the avifile test program."
6832 echo "* Disabling avi2swf tool..."
6833 echo all install uninstall clean: > avi2swf/Makefile
6837 if test "x${NO_MP3}" == "x"; then
6838 cat >> confdefs.h <<EOF
6844 if test "x${USE_FREETYPE}" == "xtrue"; then
6845 if test "x{$FREETYPE_CONFIG}" != "x"; then
6846 ftinclude=`freetype-config --cflags`
6847 ftlibs=`freetype-config --libs`
6848 CXXFLAGS="$CXXFLAGS $ftinclude"
6849 CFLAGS="$CFLAGS $ftinclude"
6850 LIBS="$LIBS $ftlibs"
6851 else if test -d /usr/include/freetype2; then
6852 CXXFLAGS="$CXXFLAGS -I/usr/include/freetype2"
6853 CFLAGS="$CFLAGS -I/usr/include/freetype2"
6854 LIBS="$LIBS -lfreetype"
6855 else if test -d /usr/local/include/freetype2; then
6856 CXXFLAGS="$CXXFLAGS -I/usr/local/include/freetype2"
6857 CFLAGS="$CFLAGS -I/usr/local/include/freetype2"
6858 LIBS="$LIBS -L /usr/local/lib -lfreetype"
6864 if test "x${UNCOMPRESS}" = "xgzip"; then
6865 cat >> confdefs.h <<EOF
6872 JPEG2SWF='jpeg2swf$(E)'
6874 PNG2SWF='png2swf$(E)'
6876 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6877 echo "***************************************************"
6878 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
6879 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6880 echo "Disabling pdf2swf tool..."
6881 rm -f pdf2swf/Makefile
6882 echo all install uninstall clean: > pdf2swf/Makefile
6884 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6885 echo "Disabling jpeg2swf tool..."
6889 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
6890 echo "Disabling png2swf tool..."
6894 if test "x${ZLIBMISSING}" = "xtrue"; then
6896 echo "Warning! Without zlib, you will not be able to read"
6897 echo "or write compressed Flash MX files!"
6899 echo "***************************************************"
6900 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
6902 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
6908 cat > confcache <<\EOF
6909 # This file is a shell script that caches the results of configure
6910 # tests run on this system so they can be shared between configure
6911 # scripts and configure runs. It is not useful on other systems.
6912 # If it contains results you don't want to keep, you may remove or edit it.
6914 # By default, configure uses ./config.cache as the cache file,
6915 # creating it if it does not exist already. You can give configure
6916 # the --cache-file=FILE option to use a different cache file; that is
6917 # what configure does when it calls configure scripts in
6918 # subdirectories, so they share the cache.
6919 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6920 # config.status only pays attention to the cache file if you give it the
6921 # --recheck option to rerun configure.
6924 # The following way of writing the cache mishandles newlines in values,
6925 # but we know of no workaround that is simple, portable, and efficient.
6926 # So, don't put newlines in cache variables' values.
6927 # Ultrix sh set writes to stderr and can't be redirected directly,
6928 # and sets the high bit in the cache file unless we assign to the vars.
6930 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6932 # `set' does not quote correctly, so add quotes (double-quote substitution
6933 # turns \\\\ into \\, and sed turns \\ into \).
6935 -e "s/'/'\\\\''/g" \
6936 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6939 # `set' quotes correctly as required by POSIX, so do not add quotes.
6940 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6943 if cmp -s $cache_file confcache; then
6946 if test -w $cache_file; then
6947 echo "updating cache $cache_file"
6948 cat confcache > $cache_file
6950 echo "not updating unwritable cache $cache_file"
6955 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6958 # Let make expand exec_prefix.
6959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6961 # Any assignment to VPATH causes Sun make to only execute
6962 # the first set of double-colon rules, so remove it if not needed.
6963 # If there is a colon in the path, we need to keep it.
6964 if test "x$srcdir" = x.; then
6965 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6968 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6970 DEFS=-DHAVE_CONFIG_H
6972 # Without the "./", some shells look in PATH for config.status.
6973 : ${CONFIG_STATUS=./config.status}
6975 echo creating $CONFIG_STATUS
6976 rm -f $CONFIG_STATUS
6977 cat > $CONFIG_STATUS <<EOF
6979 # Generated automatically by configure.
6980 # Run this file to recreate the current configuration.
6981 # This directory was configured as follows,
6982 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6984 # $0 $ac_configure_args
6986 # Compiler output produced by configure, useful for debugging
6987 # configure, is in ./config.log if it exists.
6989 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6992 case "\$ac_option" in
6993 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6994 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6995 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6996 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6997 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6999 -help | --help | --hel | --he | --h)
7000 echo "\$ac_cs_usage"; exit 0 ;;
7001 *) echo "\$ac_cs_usage"; exit 1 ;;
7005 ac_given_srcdir=$srcdir
7006 ac_given_INSTALL="$INSTALL"
7008 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7010 cat >> $CONFIG_STATUS <<EOF
7012 # Protect against being on the right side of a sed subst in config.status.
7013 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7014 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7018 s%@CFLAGS@%$CFLAGS%g
7019 s%@CPPFLAGS@%$CPPFLAGS%g
7020 s%@CXXFLAGS@%$CXXFLAGS%g
7021 s%@FFLAGS@%$FFLAGS%g
7023 s%@LDFLAGS@%$LDFLAGS%g
7025 s%@exec_prefix@%$exec_prefix%g
7026 s%@prefix@%$prefix%g
7027 s%@program_transform_name@%$program_transform_name%g
7028 s%@bindir@%$bindir%g
7029 s%@sbindir@%$sbindir%g
7030 s%@libexecdir@%$libexecdir%g
7031 s%@datadir@%$datadir%g
7032 s%@sysconfdir@%$sysconfdir%g
7033 s%@sharedstatedir@%$sharedstatedir%g
7034 s%@localstatedir@%$localstatedir%g
7035 s%@libdir@%$libdir%g
7036 s%@includedir@%$includedir%g
7037 s%@oldincludedir@%$oldincludedir%g
7038 s%@infodir@%$infodir%g
7039 s%@mandir@%$mandir%g
7042 s%@host_alias@%$host_alias%g
7043 s%@host_cpu@%$host_cpu%g
7044 s%@host_vendor@%$host_vendor%g
7045 s%@host_os@%$host_os%g
7049 s%@RANLIB@%$RANLIB%g
7050 s%@SET_MAKE@%$SET_MAKE%g
7051 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7052 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7053 s%@INSTALL_DATA@%$INSTALL_DATA%g
7056 s%@build_alias@%$build_alias%g
7057 s%@build_cpu@%$build_cpu%g
7058 s%@build_vendor@%$build_vendor%g
7059 s%@build_os@%$build_os%g
7060 s%@OBJEXT@%$OBJEXT%g
7061 s%@EXEEXT@%$EXEEXT%g
7063 s%@LIBTOOL@%$LIBTOOL%g
7064 s%@UNCOMPRESS@%$UNCOMPRESS%g
7065 s%@FREETYPE_CONFIG@%$FREETYPE_CONFIG%g
7067 s%@target@%$target%g
7068 s%@target_alias@%$target_alias%g
7069 s%@target_cpu@%$target_cpu%g
7070 s%@target_vendor@%$target_vendor%g
7071 s%@target_os@%$target_os%g
7072 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
7073 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
7074 s%@PACKAGE@%$PACKAGE%g
7075 s%@VERSION@%$VERSION%g
7076 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
7077 s%@USE_GZIP@%$USE_GZIP%g
7078 s%@JPEG2SWF@%$JPEG2SWF%g
7079 s%@PNG2SWF@%$PNG2SWF%g
7084 cat >> $CONFIG_STATUS <<\EOF
7086 # Split the substitutions into bite-sized pieces for seds with
7087 # small command number limits, like on Digital OSF/1 and HP-UX.
7088 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7089 ac_file=1 # Number of current file.
7090 ac_beg=1 # First line for current file.
7091 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7094 while $ac_more_lines; do
7095 if test $ac_beg -gt 1; then
7096 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7098 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7100 if test ! -s conftest.s$ac_file; then
7102 rm -f conftest.s$ac_file
7104 if test -z "$ac_sed_cmds"; then
7105 ac_sed_cmds="sed -f conftest.s$ac_file"
7107 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7109 ac_file=`expr $ac_file + 1`
7111 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7114 if test -z "$ac_sed_cmds"; then
7119 cat >> $CONFIG_STATUS <<EOF
7121 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
7123 cat >> $CONFIG_STATUS <<\EOF
7124 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7127 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7128 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7129 *) ac_file_in="${ac_file}.in" ;;
7132 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7134 # Remove last slash and all that follows it. Not all systems have dirname.
7135 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7136 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7137 # The file is in a subdirectory.
7138 test ! -d "$ac_dir" && mkdir "$ac_dir"
7139 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7140 # A "../" for each directory in $ac_dir_suffix.
7141 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7143 ac_dir_suffix= ac_dots=
7146 case "$ac_given_srcdir" in
7148 if test -z "$ac_dots"; then top_srcdir=.
7149 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7150 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7152 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7153 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7156 case "$ac_given_INSTALL" in
7157 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7158 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7161 echo creating "$ac_file"
7163 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7165 *Makefile*) ac_comsub="1i\\
7166 # $configure_input" ;;
7170 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7172 s%@configure_input@%$configure_input%g
7173 s%@srcdir@%$srcdir%g
7174 s%@top_srcdir@%$top_srcdir%g
7175 s%@INSTALL@%$INSTALL%g
7176 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7180 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7181 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7183 # ac_d sets the value in "#define NAME VALUE" lines.
7184 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7185 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7188 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7189 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7190 ac_uB='\([ ]\)%\1#\2define\3'
7193 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7194 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7195 ac_eB='$%\1#\2define\3'
7199 if test "${CONFIG_HEADERS+set}" != set; then
7201 cat >> $CONFIG_STATUS <<EOF
7202 CONFIG_HEADERS="config.h"
7204 cat >> $CONFIG_STATUS <<\EOF
7206 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7207 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7209 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7210 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7211 *) ac_file_in="${ac_file}.in" ;;
7214 echo creating $ac_file
7216 rm -f conftest.frag conftest.in conftest.out
7217 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7218 cat $ac_file_inputs > conftest.in
7222 # Transform confdefs.h into a sed script conftest.vals that substitutes
7223 # the proper values into config.h.in to produce config.h. And first:
7224 # Protect against being on the right side of a sed subst in config.status.
7225 # Protect against being in an unquoted here document in config.status.
7227 cat > conftest.hdr <<\EOF
7230 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7234 sed -n -f conftest.hdr confdefs.h > conftest.vals
7237 # This sed command replaces #undef with comments. This is necessary, for
7238 # example, in the case of _POSIX_SOURCE, which is predefined and required
7239 # on some systems where configure will not decide to define it.
7240 cat >> conftest.vals <<\EOF
7241 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7244 # Break up conftest.vals because some shells have a limit on
7245 # the size of here documents, and old seds have small limits too.
7250 ac_lines=`grep -c . conftest.vals`
7251 # grep -c gives empty output for an empty file on some AIX systems.
7252 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7253 # Write a limited-size here document to conftest.frag.
7254 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7255 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7257 sed -f conftest.frag conftest.in > conftest.out
7259 mv conftest.out conftest.in
7261 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7263 mv conftest.tail conftest.vals
7267 cat >> $CONFIG_STATUS <<\EOF
7268 rm -f conftest.frag conftest.h
7269 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7270 cat conftest.in >> conftest.h
7272 if cmp -s $ac_file conftest.h 2>/dev/null; then
7273 echo "$ac_file is unchanged"
7276 # Remove last slash and all that follows it. Not all systems have dirname.
7277 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7278 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7279 # The file is in a subdirectory.
7280 test ! -d "$ac_dir" && mkdir "$ac_dir"
7283 mv conftest.h $ac_file
7288 cat >> $CONFIG_STATUS <<EOF
7291 cat >> $CONFIG_STATUS <<\EOF
7295 chmod +x $CONFIG_STATUS
7296 rm -fr confdefs* $ac_clean_files
7297 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7300 if test "x${srcdir}" != "x."; then
7301 echo "Warning: --srcdir is not supported"