3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 # Find the correct PATH separator. Usually this is `:', but
24 # DJGPP uses `;' like DOS.
25 if test "X${PATH_SEPARATOR+set}" != Xset
; then
26 UNAME
=${UNAME-`uname 2>/dev/null`}
28 *-DOS) lt_cv_sys_path_separator
=';' ;;
29 *) lt_cv_sys_path_separator
=':' ;;
34 # Check that we are running under the correct shell.
35 SHELL
=${CONFIG_SHELL-/bin/sh}
39 # Remove one level of quotation (which was required for Make).
40 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
45 if test "X$1" = X--no-reexec
; then
46 # Discard the --no-reexec flag, and continue.
48 elif test "X$1" = X--fallback-echo
; then
49 # Avoid inline document here, it may be left over
51 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
52 # Yippee, $echo works!
55 # Restart under the correct shell.
56 exec $SHELL "$0" --no-reexec ${1+"$@"}
59 if test "X$1" = X--fallback-echo
; then
60 # used as fallback echo
68 # The HP-UX ksh and POSIX shell print the target directory to stdout
70 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
72 if test -z "$ECHO"; then
73 if test "X${echo_test_string+set}" != Xset
; then
74 # find a string as large as possible, as long as the shell can cope with it
75 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
76 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
77 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
78 echo_test_string
="`eval $cmd`" &&
79 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
86 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
91 # The Solaris, AIX, and Digital Unix default echo programs unquote
92 # backslashes. This makes it impossible to quote backslashes using
93 # echo "$something" | sed 's/\\/\\\\/g'
95 # So, first we look for a working echo in the user's PATH.
97 IFS
="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
98 for dir
in $PATH /usr
/ucb
; do
99 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
100 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
101 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
102 test "X$echo_testing_string" = "X$echo_test_string"; then
109 if test "X$echo" = Xecho
; then
110 # We didn't find a better echo, so look for alternatives.
111 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
112 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
114 # This shell has a builtin print -r that does the trick.
116 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
117 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
118 # If we have ksh, try running configure again with it.
119 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
120 export ORIGINAL_CONFIG_SHELL
121 CONFIG_SHELL
=/bin
/ksh
123 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
127 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
128 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
129 test "X$echo_testing_string" = "X$echo_test_string"; then
132 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133 test "X$echo_testing_string" = 'X\t' &&
134 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135 test "X$echo_testing_string" = "X$echo_test_string"; then
136 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
138 SHELL
="$CONFIG_SHELL"
140 echo="$CONFIG_SHELL $0 --fallback-echo"
141 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142 test "X$echo_testing_string" = 'X\t' &&
143 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144 test "X$echo_testing_string" = "X$echo_test_string"; then
145 echo="$CONFIG_SHELL $0 --fallback-echo"
147 # maybe with a smaller string...
150 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
151 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
158 if test "$prev" != 'sed 50q "$0"'; then
159 echo_test_string
=`eval $prev`
160 export echo_test_string
161 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
163 # Oops. We lost completely, so just stick with echo.
172 # Copy echo and quote the copy suitably for passing to libtool from
173 # the Makefile, instead of quoting the original, which is used later.
175 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
181 --disable-libtool-lock avoid locking (might break parallel builds)"
183 --with-pic try to use only PIC/non-PIC objects [default=use both]"
185 # Initialize some variables set by options.
186 # The variables have the same names as the options, with
187 # dashes changed to underlines.
189 cache_file
=.
/config.cache
198 program_transform_name
=s
,x
,x
,
206 bindir
='${exec_prefix}/bin'
207 sbindir
='${exec_prefix}/sbin'
208 libexecdir
='${exec_prefix}/libexec'
209 datadir
='${prefix}/share'
210 sysconfdir
='${prefix}/etc'
211 sharedstatedir
='${prefix}/com'
212 localstatedir
='${prefix}/var'
213 libdir
='${exec_prefix}/lib'
214 includedir
='${prefix}/include'
215 oldincludedir
='/usr/include'
216 infodir
='${prefix}/info'
217 mandir
='${prefix}/man'
219 # Initialize some other variables.
222 SHELL
=${CONFIG_SHELL-/bin/sh}
223 # Maximum number of lines to put in a shell here document.
230 # If the previous option needs an argument, assign it.
231 if test -n "$ac_prev"; then
232 eval "$ac_prev=\$ac_option"
238 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
242 # Accept the important Cygnus configure options, so we can diagnose typos.
246 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
248 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
249 bindir
="$ac_optarg" ;;
251 -build |
--build |
--buil |
--bui |
--bu)
253 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
254 build
="$ac_optarg" ;;
256 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
257 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
258 ac_prev
=cache_file
;;
259 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
260 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
261 cache_file
="$ac_optarg" ;;
263 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
265 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
267 datadir
="$ac_optarg" ;;
269 -disable-* |
--disable-*)
270 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
271 # Reject names that are not valid shell variable names.
272 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
273 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
275 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
276 eval "enable_${ac_feature}=no" ;;
278 -enable-* |
--enable-*)
279 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
289 eval "enable_${ac_feature}='$ac_optarg'" ;;
291 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
292 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
293 |
--exec |
--exe |
--ex)
294 ac_prev
=exec_prefix
;;
295 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
296 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
297 |
--exec=* |
--exe=* |
--ex=*)
298 exec_prefix
="$ac_optarg" ;;
300 -gas |
--gas |
--ga |
--g)
301 # Obsolete; use --with-gas.
304 -help |
--help |
--hel |
--he)
305 # Omit some internal or obsolete options to make the list less imposing.
306 # This message is too long to be a string in the A/UX 3.1 sh.
308 Usage: configure [options] [host]
309 Options: [defaults in brackets after descriptions]
311 --cache-file=FILE cache test results in FILE
312 --help print this message
313 --no-create do not create output files
314 --quiet, --silent do not print \`checking...' messages
315 --version print the version of autoconf that created configure
316 Directory and file names:
317 --prefix=PREFIX install architecture-independent files in PREFIX
319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
321 --bindir=DIR user executables in DIR [EPREFIX/bin]
322 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
323 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
324 --datadir=DIR read-only architecture-independent data in DIR
326 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
327 --sharedstatedir=DIR modifiable architecture-independent data in DIR
329 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
330 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
331 --includedir=DIR C header files in DIR [PREFIX/include]
332 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
333 --infodir=DIR info documentation in DIR [PREFIX/info]
334 --mandir=DIR man documentation in DIR [PREFIX/man]
335 --srcdir=DIR find the sources in DIR [configure dir or ..]
336 --program-prefix=PREFIX prepend PREFIX to installed program names
337 --program-suffix=SUFFIX append SUFFIX to installed program names
338 --program-transform-name=PROGRAM
339 run sed PROGRAM on installed program names
343 --build=BUILD configure for building on BUILD [BUILD=HOST]
344 --host=HOST configure for HOST [guessed]
345 --target=TARGET configure for TARGET [TARGET=HOST]
346 Features and packages:
347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
351 --x-includes=DIR X include files are in DIR
352 --x-libraries=DIR X library files are in DIR
354 if test -n "$ac_help"; then
355 echo "--enable and --with options recognized:$ac_help"
359 -host |
--host |
--hos |
--ho)
361 -host=* |
--host=* |
--hos=* |
--ho=*)
364 -includedir |
--includedir |
--includedi |
--included |
--include \
365 |
--includ |
--inclu |
--incl |
--inc)
366 ac_prev
=includedir
;;
367 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
368 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
369 includedir
="$ac_optarg" ;;
371 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
373 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
374 infodir
="$ac_optarg" ;;
376 -libdir |
--libdir |
--libdi |
--libd)
378 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
379 libdir
="$ac_optarg" ;;
381 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
382 |
--libexe |
--libex |
--libe)
383 ac_prev
=libexecdir
;;
384 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
385 |
--libexe=* |
--libex=* |
--libe=*)
386 libexecdir
="$ac_optarg" ;;
388 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
389 |
--localstate |
--localstat |
--localsta |
--localst \
390 |
--locals |
--local |
--loca |
--loc |
--lo)
391 ac_prev
=localstatedir
;;
392 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
393 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
394 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
395 localstatedir
="$ac_optarg" ;;
397 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
399 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
400 mandir
="$ac_optarg" ;;
403 # Obsolete; use --without-fp.
406 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
410 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
411 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
414 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
415 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
416 |
--oldin |
--oldi |
--old |
--ol |
--o)
417 ac_prev
=oldincludedir
;;
418 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
419 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
420 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
421 oldincludedir
="$ac_optarg" ;;
423 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
425 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
426 prefix
="$ac_optarg" ;;
428 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
429 |
--program-pre |
--program-pr |
--program-p)
430 ac_prev
=program_prefix
;;
431 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
432 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
433 program_prefix
="$ac_optarg" ;;
435 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
436 |
--program-suf |
--program-su |
--program-s)
437 ac_prev
=program_suffix
;;
438 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
439 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
440 program_suffix
="$ac_optarg" ;;
442 -program-transform-name |
--program-transform-name \
443 |
--program-transform-nam |
--program-transform-na \
444 |
--program-transform-n |
--program-transform- \
445 |
--program-transform |
--program-transfor \
446 |
--program-transfo |
--program-transf \
447 |
--program-trans |
--program-tran \
448 |
--progr-tra |
--program-tr |
--program-t)
449 ac_prev
=program_transform_name
;;
450 -program-transform-name=* |
--program-transform-name=* \
451 |
--program-transform-nam=* |
--program-transform-na=* \
452 |
--program-transform-n=* |
--program-transform-=* \
453 |
--program-transform=* |
--program-transfor=* \
454 |
--program-transfo=* |
--program-transf=* \
455 |
--program-trans=* |
--program-tran=* \
456 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
457 program_transform_name
="$ac_optarg" ;;
459 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
460 |
-silent |
--silent |
--silen |
--sile |
--sil)
463 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
465 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
467 sbindir
="$ac_optarg" ;;
469 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
470 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
471 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
473 ac_prev
=sharedstatedir
;;
474 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
475 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
476 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
478 sharedstatedir
="$ac_optarg" ;;
480 -site |
--site |
--sit)
482 -site=* |
--site=* |
--sit=*)
485 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
487 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
488 srcdir
="$ac_optarg" ;;
490 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
491 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
492 ac_prev
=sysconfdir
;;
493 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
494 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
495 sysconfdir
="$ac_optarg" ;;
497 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
499 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
500 target
="$ac_optarg" ;;
502 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
505 -version |
--version |
--versio |
--versi |
--vers)
506 echo "configure generated by autoconf version 2.13"
510 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
511 # Reject names that are not valid shell variable names.
512 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
513 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
515 ac_package
=`echo $ac_package| sed 's/-/_/g'`
520 eval "with_${ac_package}='$ac_optarg'" ;;
522 -without-* |
--without-*)
523 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
524 # Reject names that are not valid shell variable names.
525 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
526 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
528 ac_package
=`echo $ac_package| sed 's/-/_/g'`
529 eval "with_${ac_package}=no" ;;
532 # Obsolete; use --with-x.
535 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
536 |
--x-incl |
--x-inc |
--x-in |
--x-i)
537 ac_prev
=x_includes
;;
538 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
539 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
540 x_includes
="$ac_optarg" ;;
542 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
543 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
544 ac_prev
=x_libraries
;;
545 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
546 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
547 x_libraries
="$ac_optarg" ;;
549 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
553 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
554 echo "configure: warning: $ac_option: invalid host type" 1>&2
556 if test "x$nonopt" != xNONE
; then
557 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
565 if test -n "$ac_prev"; then
566 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
569 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
571 # File descriptor usage:
574 # 2 errors and warnings
575 # 3 some systems may open it to /dev/tty
576 # 4 used on the Kubota Titan
577 # 6 checking for... messages and results
578 # 5 compiler messages saved in config.log
579 if test "$silent" = yes; then
587 This file contains any messages produced by compilers while
588 running configure, to aid debugging if configure makes a mistake.
591 # Strip out --no-create and --no-recursion so they do not pile up.
592 # Also quote any args containing shell metacharacters.
597 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
598 |
--no-cr |
--no-c) ;;
599 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
600 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
601 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
602 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
603 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
608 # Only set these to C if already set. These must not be set unconditionally
609 # because not all systems understand e.g. LANG=C (notably SCO).
610 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
611 # Non-C LC_CTYPE values break the ctype check.
612 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
613 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
614 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
615 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
617 # confdefs.h avoids OS command line length limits that DEFS can exceed.
618 rm -rf conftest
* confdefs.h
619 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
622 # A filename unique to this package, relative to the directory that
623 # configure is in, which we can look for to find out if srcdir is correct.
624 ac_unique_file
=lib
/localcharset.c
626 # Find the source files, if location was not specified.
627 if test -z "$srcdir"; then
628 ac_srcdir_defaulted
=yes
629 # Try the directory containing this script, then its parent.
631 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
632 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
634 if test ! -r $srcdir/$ac_unique_file; then
638 ac_srcdir_defaulted
=no
640 if test ! -r $srcdir/$ac_unique_file; then
641 if test "$ac_srcdir_defaulted" = yes; then
642 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
644 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
647 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
649 # Prefer explicitly selected file to automatically selected ones.
650 if test -z "$CONFIG_SITE"; then
651 if test "x$prefix" != xNONE
; then
652 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
654 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
657 for ac_site_file
in $CONFIG_SITE; do
658 if test -r "$ac_site_file"; then
659 echo "loading site script $ac_site_file"
664 if test -r "$cache_file"; then
665 echo "loading cache $cache_file"
668 echo "creating cache $cache_file"
673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
674 ac_cpp
='$CPP $CPPFLAGS'
675 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
676 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
677 cross_compiling
=$ac_cv_prog_cc_cross
681 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
682 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
683 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
690 ac_n
= ac_c
='\c' ac_t
=
695 for ac_dir
in autoconf
$srcdir/autoconf
; do
696 if test -f $ac_dir/install-sh
; then
698 ac_install_sh
="$ac_aux_dir/install-sh -c"
700 elif test -f $ac_dir/install.sh
; then
702 ac_install_sh
="$ac_aux_dir/install.sh -c"
706 if test -z "$ac_aux_dir"; then
707 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
709 ac_config_guess
=$ac_aux_dir/config.guess
710 ac_config_sub
=$ac_aux_dir/config.sub
711 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
714 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
715 echo "configure:716: checking whether ${MAKE-make} sets \${MAKE}" >&5
716 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
717 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 cat > conftestmake
<<\EOF
722 @
echo 'ac_maketemp="${MAKE}"'
724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
725 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
726 if test -n "$ac_maketemp"; then
727 eval ac_cv_prog_make_
${ac_make}_set
=yes
729 eval ac_cv_prog_make_
${ac_make}_set
=no
733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
734 echo "$ac_t""yes" 1>&6
737 echo "$ac_t""no" 1>&6
738 SET_MAKE
="MAKE=${MAKE-make}"
747 # Extract the first word of "gcc", so it can be a program name with args.
748 set dummy gcc
; ac_word
=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 if test -n "$CC"; then
755 ac_cv_prog_CC
="$CC" # Let the user override the test.
757 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
759 for ac_dir
in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir
=.
761 if test -f $ac_dir/$ac_word; then
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
773 echo "$ac_t""no" 1>&6
776 if test -z "$CC"; then
777 # Extract the first word of "cc", so it can be a program name with args.
778 set dummy cc
; ac_word
=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 if test -n "$CC"; then
785 ac_cv_prog_CC
="$CC" # Let the user override the test.
787 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
790 for ac_dir
in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir
=.
792 if test -f $ac_dir/$ac_word; then
793 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
802 if test $ac_prog_rejected = yes; then
803 # We found a bogon in the path, so make sure we never use it.
804 set dummy
$ac_cv_prog_CC
806 if test $# -gt 0; then
807 # We chose a different compiler from the bogus one.
808 # However, it has the same basename, so the bogon will be chosen
809 # first if we set CC to just the basename; use the full file name.
811 set dummy
"$ac_dir/$ac_word" "$@"
819 if test -n "$CC"; then
820 echo "$ac_t""$CC" 1>&6
822 echo "$ac_t""no" 1>&6
825 if test -z "$CC"; then
828 # Extract the first word of "cl", so it can be a program name with args.
829 set dummy cl
; ac_word
=$2
830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831 echo "configure:832: checking for $ac_word" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 if test -n "$CC"; then
836 ac_cv_prog_CC
="$CC" # Let the user override the test.
838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
840 for ac_dir
in $ac_dummy; do
841 test -z "$ac_dir" && ac_dir
=.
842 if test -f $ac_dir/$ac_word; then
851 if test -n "$CC"; then
852 echo "$ac_t""$CC" 1>&6
854 echo "$ac_t""no" 1>&6
859 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
863 echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
867 ac_cpp
='$CPP $CPPFLAGS'
868 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
869 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
870 cross_compiling
=$ac_cv_prog_cc_cross
872 cat > conftest.
$ac_ext << EOF
874 #line 875 "configure"
875 #include "confdefs.h"
879 if { (eval echo configure
:880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
880 ac_cv_prog_cc_works
=yes
881 # If we can't run a trivial program, we are probably using a cross compiler.
882 if (.
/conftest
; exit) 2>/dev
/null
; then
883 ac_cv_prog_cc_cross
=no
885 ac_cv_prog_cc_cross
=yes
888 echo "configure: failed program was:" >&5
889 cat conftest.
$ac_ext >&5
890 ac_cv_prog_cc_works
=no
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp
='$CPP $CPPFLAGS'
896 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling
=$ac_cv_prog_cc_cross
900 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
901 if test $ac_cv_prog_cc_works = no
; then
902 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
906 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
907 cross_compiling
=$ac_cv_prog_cc_cross
909 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
910 echo "configure:911: checking whether we are using GNU C" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 cat > conftest.c
<<EOF
919 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
926 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
928 if test $ac_cv_prog_gcc = yes; then
934 ac_test_CFLAGS
="${CFLAGS+set}"
935 ac_save_CFLAGS
="$CFLAGS"
937 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
938 echo "configure:939: checking whether ${CC-cc} accepts -g" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 echo 'void f(){}' > conftest.c
943 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
952 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
953 if test "$ac_test_CFLAGS" = set; then
954 CFLAGS
="$ac_save_CFLAGS"
955 elif test $ac_cv_prog_cc_g = yes; then
956 if test "$GCC" = yes; then
962 if test "$GCC" = yes; then
969 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
970 echo "configure:971: checking how to run the C preprocessor" >&5
971 # On Suns, sometimes $CPP names a directory.
972 if test -n "$CPP" && test -d "$CPP"; then
975 if test -z "$CPP"; then
976 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 # This must be in double quotes, not single quotes, because CPP may get
980 # substituted into the Makefile and "${CC-cc}" will confuse make.
982 # On the NeXT, cc -E runs the code through the compiler's parser,
983 # not just through cpp.
984 cat > conftest.
$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
990 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
991 { (eval echo configure
:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
992 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
993 if test -z "$ac_err"; then
997 echo "configure: failed program was:" >&5
998 cat conftest.
$ac_ext >&5
1000 CPP
="${CC-cc} -E -traditional-cpp"
1001 cat > conftest.
$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 { (eval echo configure
:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1010 if test -z "$ac_err"; then
1014 echo "configure: failed program was:" >&5
1015 cat conftest.
$ac_ext >&5
1017 CPP
="${CC-cc} -nologo -E"
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure
:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1027 if test -z "$ac_err"; then
1031 echo "configure: failed program was:" >&5
1032 cat conftest.
$ac_ext >&5
1041 ac_cv_prog_CPP
="$CPP"
1043 CPP
="$ac_cv_prog_CPP"
1045 ac_cv_prog_CPP
="$CPP"
1047 echo "$ac_t""$CPP" 1>&6
1049 if test $ac_cv_prog_gcc = yes; then
1050 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1051 echo "configure:1052: checking whether ${CC-cc} needs -traditional" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 ac_pattern
="Autoconf.*'x'"
1056 cat > conftest.
$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1063 egrep "$ac_pattern" >/dev
/null
2>&1; then
1065 ac_cv_prog_gcc_traditional
=yes
1068 ac_cv_prog_gcc_traditional
=no
1073 if test $ac_cv_prog_gcc_traditional = no
; then
1074 cat > conftest.
$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1081 egrep "$ac_pattern" >/dev
/null
2>&1; then
1083 ac_cv_prog_gcc_traditional
=yes
1090 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1091 if test $ac_cv_prog_gcc_traditional = yes; then
1092 CC
="$CC -traditional"
1096 # Find a good install program. We prefer a C program (faster),
1097 # so one script is as good as another. But avoid the broken or
1098 # incompatible versions:
1099 # SysV /etc/install, /usr/sbin/install
1100 # SunOS /usr/etc/install
1101 # IRIX /sbin/install
1103 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1104 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1105 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1106 # ./install, which can be erroneously created by make from ./install.sh.
1107 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1108 echo "configure:1109: checking for a BSD compatible install" >&5
1109 if test -z "$INSTALL"; then
1110 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1114 for ac_dir
in $PATH; do
1115 # Account for people who put trailing slashes in PATH elements.
1117 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1119 # OSF1 and SCO ODT 3.0 have their own names for install.
1120 # Don't use installbsd from OSF since it installs stuff as root
1122 for ac_prog
in ginstall scoinst
install; do
1123 if test -f $ac_dir/$ac_prog; then
1124 if test $ac_prog = install &&
1125 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1126 # AIX install. It has an incompatible calling convention.
1129 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1140 if test "${ac_cv_path_install+set}" = set; then
1141 INSTALL
="$ac_cv_path_install"
1143 # As a last resort, use the slow shell script. We don't cache a
1144 # path for INSTALL within a source directory, because that will
1145 # break other packages using the cache if that directory is
1146 # removed, or if the path is relative.
1147 INSTALL
="$ac_install_sh"
1150 echo "$ac_t""$INSTALL" 1>&6
1152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1153 # It thinks the first close brace ends the variable substitution.
1154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1158 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1163 # Make sure we can run config.sub.
1164 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1165 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1168 echo $ac_n "checking host system type""... $ac_c" 1>&6
1169 echo "configure:1170: checking host system type" >&5
1172 case "$host_alias" in
1176 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1177 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1179 *) host_alias
=$nonopt ;;
1183 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1184 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1185 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1186 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1187 echo "$ac_t""$host" 1>&6
1191 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1192 echo "configure:1193: checking for AIX" >&5
1193 cat > conftest.
$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1202 egrep "yes" >/dev
/null
2>&1; then
1204 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1205 #define _ALL_SOURCE 1
1210 echo "$ac_t""no" 1>&6
1215 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1216 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1217 echo "configure:1218: checking for minix/config.h" >&5
1218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftest.
$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 #include <minix/config.h>
1226 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1227 { (eval echo configure
:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1228 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1229 if test -z "$ac_err"; then
1231 eval "ac_cv_header_$ac_safe=yes"
1234 echo "configure: failed program was:" >&5
1235 cat conftest.
$ac_ext >&5
1237 eval "ac_cv_header_$ac_safe=no"
1241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1245 echo "$ac_t""no" 1>&6
1249 if test "$MINIX" = yes; then
1250 cat >> confdefs.h
<<\EOF
1251 #define _POSIX_SOURCE 1
1254 cat >> confdefs.h
<<\EOF
1255 #define _POSIX_1_SOURCE 2
1258 cat >> confdefs.h
<<\EOF
1264 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1265 echo "configure:1266: checking for POSIXized ISC" >&5
1266 if test -d /etc
/conf
/kconfig.d
&&
1267 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1269 echo "$ac_t""yes" 1>&6
1270 ISC
=yes # If later tests want to check for ISC.
1271 cat >> confdefs.h
<<\EOF
1272 #define _POSIX_SOURCE 1
1275 if test "$GCC" = yes; then
1281 echo "$ac_t""no" 1>&6
1287 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1288 echo "configure:1289: checking for object suffix" >&5
1289 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1293 echo 'int i = 1;' > conftest.
$ac_ext
1294 if { (eval echo configure
:1295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1295 for ac_file
in conftest.
*; do
1298 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1302 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1307 echo "$ac_t""$ac_cv_objext" 1>&6
1308 OBJEXT
=$ac_cv_objext
1309 ac_objext
=$ac_cv_objext
1311 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1312 echo "configure:1313: checking for Cygwin environment" >&5
1313 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1323 #define __CYGWIN__ __CYGWIN32__
1328 if { (eval echo configure
:1329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1332 echo "configure: failed program was:" >&5
1333 cat conftest.
$ac_ext >&5
1341 echo "$ac_t""$ac_cv_cygwin" 1>&6
1343 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1344 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1345 echo "configure:1346: checking for mingw32 environment" >&5
1346 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 cat > conftest.
$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1357 if { (eval echo configure
:1358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1361 echo "configure: failed program was:" >&5
1362 cat conftest.
$ac_ext >&5
1370 echo "$ac_t""$ac_cv_mingw32" 1>&6
1372 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1375 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1376 echo "configure:1377: checking for executable suffix" >&5
1377 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1384 echo 'int main () { return 0; }' > conftest.
$ac_ext
1386 if { (eval echo configure
:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1387 for file in conftest.
*; do
1389 *.c |
*.o |
*.obj
) ;;
1390 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1394 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1397 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1402 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1403 echo "$ac_t""${ac_cv_exeext}" 1>&6
1408 # Check whether --enable-shared or --disable-shared was given.
1409 if test "${enable_shared+set}" = set; then
1410 enableval
="$enable_shared"
1411 p
=${PACKAGE-default}
1413 yes) enable_shared
=yes ;;
1414 no
) enable_shared
=no
;;
1417 # Look at the argument we got. We use all the common list separators.
1418 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1419 for pkg
in $enableval; do
1420 if test "X$pkg" = "X$p"; then
1431 # Check whether --enable-static or --disable-static was given.
1432 if test "${enable_static+set}" = set; then
1433 enableval
="$enable_static"
1434 p
=${PACKAGE-default}
1436 yes) enable_static
=yes ;;
1437 no
) enable_static
=no
;;
1440 # Look at the argument we got. We use all the common list separators.
1441 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1442 for pkg
in $enableval; do
1443 if test "X$pkg" = "X$p"; then
1454 # Check whether --enable-fast-install or --disable-fast-install was given.
1455 if test "${enable_fast_install+set}" = set; then
1456 enableval
="$enable_fast_install"
1457 p
=${PACKAGE-default}
1459 yes) enable_fast_install
=yes ;;
1460 no
) enable_fast_install
=no
;;
1462 enable_fast_install
=no
1463 # Look at the argument we got. We use all the common list separators.
1464 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1465 for pkg
in $enableval; do
1466 if test "X$pkg" = "X$p"; then
1467 enable_fast_install
=yes
1474 enable_fast_install
=yes
1477 echo $ac_n "checking build system type""... $ac_c" 1>&6
1478 echo "configure:1479: checking build system type" >&5
1481 case "$build_alias" in
1484 NONE
) build_alias
=$host_alias ;;
1485 *) build_alias
=$nonopt ;;
1489 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1490 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1491 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1492 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1493 echo "$ac_t""$build" 1>&6
1495 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1496 if test "${with_gnu_ld+set}" = set; then
1497 withval
="$with_gnu_ld"
1498 test "$withval" = no || with_gnu_ld
=yes
1504 if test "$GCC" = yes; then
1505 # Check if gcc -print-prog-name=ld gives a path.
1506 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1507 echo "configure:1508: checking for ld used by GCC" >&5
1510 # gcc leaves a trailing carriage return which upsets mingw
1511 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1513 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1516 # Accept absolute paths.
1517 [\\/]* |
[A-Za-z
]:[\\/]*)
1518 re_direlt
='/[^/][^/]*/\.\./'
1519 # Canonicalize the path of ld
1520 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1521 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1522 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1524 test -z "$LD" && LD
="$ac_prog"
1527 # If it fails, then pretend we aren't using GCC.
1531 # If it is relative, then search for the first ld in PATH.
1535 elif test "$with_gnu_ld" = yes; then
1536 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1537 echo "configure:1538: checking for GNU ld" >&5
1539 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1540 echo "configure:1541: checking for non-GNU ld" >&5
1542 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 if test -z "$LD"; then
1546 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1547 for ac_dir
in $PATH; do
1548 test -z "$ac_dir" && ac_dir
=.
1549 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1550 lt_cv_path_LD
="$ac_dir/$ac_prog"
1551 # Check to see if the program is GNU ld. I'd rather use --version,
1552 # but apparently some GNU ld's only accept -v.
1553 # Break only if it was the GNU/non-GNU ld that we prefer.
1554 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1555 test "$with_gnu_ld" != no
&& break
1557 test "$with_gnu_ld" != yes && break
1563 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1568 if test -n "$LD"; then
1569 echo "$ac_t""$LD" 1>&6
1571 echo "$ac_t""no" 1>&6
1573 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1574 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1575 echo "configure:1576: checking if the linker ($LD) is GNU ld" >&5
1576 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1580 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1581 lt_cv_prog_gnu_ld
=yes
1583 lt_cv_prog_gnu_ld
=no
1587 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1588 with_gnu_ld
=$lt_cv_prog_gnu_ld
1591 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $LD option to reload object files" >&5
1593 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 lt_cv_ld_reload_flag
='-r'
1599 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1600 reload_flag
=$lt_cv_ld_reload_flag
1601 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1603 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1604 echo "configure:1605: checking for BSD-compatible nm" >&5
1605 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 if test -n "$NM"; then
1609 # Let the user override the test.
1612 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1613 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1614 test -z "$ac_dir" && ac_dir
=.
1615 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1616 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1617 # Check to see if the nm accepts a BSD-compat flag.
1618 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1619 # nm: unknown option "B" ignored
1620 # Tru64's nm complains that /dev/null is an invalid object file
1621 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1622 lt_cv_path_NM
="$tmp_nm -B"
1624 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1625 lt_cv_path_NM
="$tmp_nm -p"
1628 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1629 continue # so that we can try to find one that supports BSD flags
1634 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1639 echo "$ac_t""$NM" 1>&6
1641 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether ln -s works" >&5
1643 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1647 if ln -s X conftestdata
2>/dev
/null
1650 ac_cv_prog_LN_S
="ln -s"
1655 LN_S
="$ac_cv_prog_LN_S"
1656 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1657 echo "$ac_t""yes" 1>&6
1659 echo "$ac_t""no" 1>&6
1662 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1663 echo "configure:1664: checking how to recognise dependant libraries" >&5
1664 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1668 lt_cv_file_magic_test_file
=
1669 lt_cv_deplibs_check_method
='unknown'
1670 # Need to set the preceding variable on all platforms that support
1671 # interlibrary dependencies.
1672 # 'none' -- dependencies not supported.
1673 # `unknown' -- same as none, but documents that we really don't know.
1674 # 'pass_all' -- all dependencies passed with no checks.
1675 # 'test_compile' -- check by making test program.
1676 # ['file_magic [regex]'] -- check by looking for files in library path
1677 # which responds to the $file_magic_cmd with a given egrep regex.
1678 # If you have `file' or equivalent on your system and you're not sure
1679 # whether `pass_all' will *always* work, you probably want this one.
1683 lt_cv_deplibs_check_method
=pass_all
1687 lt_cv_deplibs_check_method
=pass_all
1691 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1692 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1693 lt_cv_file_magic_test_file
=/shlib
/libc.so
1696 cygwin
* | mingw
* | pw32
*)
1697 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1698 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1701 darwin
* | rhapsody
*)
1702 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1703 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1705 rhapsody
* | darwin1.012
)
1706 lt_cv_file_magic_test_file
=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1709 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1715 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1718 # Not sure whether the presence of OpenBSD here was a mistake.
1719 # Let's accept both of them until this is cleared up.
1720 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1721 lt_cv_file_magic_cmd
=/usr
/bin
/file
1722 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1726 lt_cv_deplibs_check_method
=pass_all
1731 lt_cv_deplibs_check_method
=pass_all
1735 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1736 lt_cv_file_magic_cmd
=/usr
/bin
/file
1737 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1743 # this will be overridden with pass_all, but let us keep it just in case
1744 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1748 *-32|
*"-32 ") libmagic
=32-bit;;
1749 *-n32|
*"-n32 ") libmagic
=N32
;;
1750 *-64|
*"-64 ") libmagic
=64-bit;;
1751 *) libmagic
=never-match
;;
1753 # this will be overridden with pass_all, but let us keep it just in case
1754 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1757 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1758 lt_cv_deplibs_check_method
=pass_all
1761 # This must be Linux ELF.
1764 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1765 lt_cv_deplibs_check_method
=pass_all
;;
1767 # glibc up to 2.1.1 does not perform some relocations on ARM
1768 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1770 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1774 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1775 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1777 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1782 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1783 lt_cv_file_magic_cmd
=/usr
/bin
/file
1784 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1787 osf3
* | osf4
* | osf5
*)
1788 # this will be overridden with pass_all, but let us keep it just in case
1789 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1790 lt_cv_file_magic_test_file
=/shlib
/libc.so
1791 lt_cv_deplibs_check_method
=pass_all
1795 lt_cv_deplibs_check_method
=pass_all
1799 lt_cv_deplibs_check_method
=pass_all
1800 lt_cv_file_magic_test_file
=/lib
/libc.so
1803 sysv5uw
[78]* | sysv4
*uw2
*)
1804 lt_cv_deplibs_check_method
=pass_all
1807 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1808 case $host_vendor in
1810 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]'
1811 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1814 lt_cv_deplibs_check_method
=pass_all
1817 lt_cv_file_magic_cmd
='/bin/file'
1818 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1821 lt_cv_file_magic_cmd
='/bin/file'
1822 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1823 lt_cv_file_magic_test_file
=/lib
/libc.so
1831 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1832 file_magic_cmd
=$lt_cv_file_magic_cmd
1833 deplibs_check_method
=$lt_cv_deplibs_check_method
1835 if test $host != $build; then
1836 ac_tool_prefix
=${host_alias}-
1844 # Check for command to grab the raw symbol name followed by C symbol from nm.
1845 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1846 echo "configure:1847: checking command to parse $NM output" >&5
1847 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1851 # These are sane defaults that work on at least a few old systems.
1852 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1854 # Character class describing NM global symbol codes.
1855 symcode
='[BCDEGRST]'
1857 # Regexp to match symbols that can be accessed directly from C.
1858 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1860 # Transform the above into a raw symbol and a C symbol.
1861 symxfrm
='\1 \2\3 \3'
1863 # Transform an extracted symbol line into a proper C declaration
1864 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1866 # Define system-specific variables.
1871 cygwin
* | mingw
* | pw32
*)
1872 symcode
='[ABCDGISTW]'
1874 hpux
*) # Its linker distinguishes data from code symbols
1875 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1878 symcode
='[BCDEGRST]'
1888 # Handle CRLF in mingw tool chain
1892 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1896 # If we're using GNU nm, then use its standard symbol codes.
1897 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1898 symcode
='[ABCDGISTW]'
1901 # Try without a prefix undercore, then with it.
1902 for ac_symprfx
in "" "_"; do
1904 # Write the raw and C identifiers.
1905 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1907 # Check to see that the pipe works correctly.
1910 cat > conftest.
$ac_ext <<EOF
1915 void nm_test_func(){}
1919 int main(){nm_test_var='a';nm_test_func();return(0);}
1922 if { (eval echo configure
:1923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1923 # Now try to grab the symbols.
1925 if { (eval echo configure
:1926: \"$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
1926 # Try sorting and uniquifying the output.
1927 if sort "$nlist" |
uniq > "$nlist"T
; then
1928 mv -f "$nlist"T
"$nlist"
1933 # Make sure that we snagged all the symbols we need.
1934 if egrep ' nm_test_var$' "$nlist" >/dev
/null
; then
1935 if egrep ' nm_test_func$' "$nlist" >/dev
/null
; then
1936 cat <<EOF > conftest.$ac_ext
1942 # Now generate the symbol file.
1943 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1945 cat <<EOF >> conftest.$ac_ext
1946 #if defined (__STDC__) && __STDC__
1947 # define lt_ptr_t void *
1949 # define lt_ptr_t char *
1953 /* The mapping between symbol names and symbols. */
1958 lt_preloaded_symbols[] =
1961 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.
$ac_ext
1962 cat <<\EOF
>> conftest.
$ac_ext
1970 # Now try linking the two files.
1971 mv conftest.
$ac_objext conftstm.
$ac_objext
1973 save_CFLAGS
="$CFLAGS"
1974 LIBS
="conftstm.$ac_objext"
1975 CFLAGS
="$CFLAGS$no_builtin_flag"
1976 if { (eval echo configure
:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1980 CFLAGS
="$save_CFLAGS"
1982 echo "cannot find nm_test_func in $nlist" >&5
1985 echo "cannot find nm_test_var in $nlist" >&5
1988 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
1991 echo "$progname: failed program was:" >&5
1992 cat conftest.
$ac_ext >&5
1994 rm -f conftest
* conftst
*
1996 # Do not use the global_symbol_pipe unless it works.
1997 if test "$pipe_works" = yes; then
2000 lt_cv_sys_global_symbol_pipe
=
2006 global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe"
2007 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2008 global_symbol_to_cdecl
=
2010 global_symbol_to_cdecl
="$lt_cv_global_symbol_to_cdecl"
2012 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2013 echo "$ac_t""failed" 1>&6
2015 echo "$ac_t""ok" 1>&6
2018 for ac_hdr
in dlfcn.h
2020 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2022 echo "configure:2023: checking for $ac_hdr" >&5
2023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2031 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2032 { (eval echo configure
:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2033 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2034 if test -z "$ac_err"; then
2036 eval "ac_cv_header_$ac_safe=yes"
2039 echo "configure: failed program was:" >&5
2040 cat conftest.
$ac_ext >&5
2042 eval "ac_cv_header_$ac_safe=no"
2046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2048 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2049 cat >> confdefs.h
<<EOF
2050 #define $ac_tr_hdr 1
2054 echo "$ac_t""no" 1>&6
2062 # Only perform the check for file, if the check method requires it
2063 case $deplibs_check_method in
2065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2066 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2067 echo "configure:2068: checking for ${ac_tool_prefix}file" >&5
2068 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2073 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2076 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2079 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2080 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2081 ac_dummy
="/usr/bin:$PATH"
2082 for ac_dir
in $ac_dummy; do
2083 test -z "$ac_dir" && ac_dir
=.
2084 if test -f $ac_dir/${ac_tool_prefix}file; then
2085 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2086 if test -n "$file_magic_test_file"; then
2087 case $deplibs_check_method in
2089 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2090 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2091 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2092 egrep "$file_magic_regex" > /dev
/null
; then
2097 *** Warning: the command libtool uses to detect shared libraries,
2098 *** $file_magic_cmd, produces output that libtool cannot recognize.
2099 *** The result is that libtool may fail to recognize shared libraries
2100 *** as such. This will affect the creation of libtool libraries that
2101 *** depend on shared libraries, but programs linked with such libtool
2102 *** libraries will work regardless of this problem. Nevertheless, you
2103 *** may want to report the problem to your system manager and/or to
2104 *** bug-libtool@gnu.org
2114 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2119 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2120 if test -n "$MAGIC_CMD"; then
2121 echo "$ac_t""$MAGIC_CMD" 1>&6
2123 echo "$ac_t""no" 1>&6
2126 if test -z "$lt_cv_path_MAGIC_CMD"; then
2127 if test -n "$ac_tool_prefix"; then
2128 echo $ac_n "checking for file""... $ac_c" 1>&6
2129 echo "configure:2130: checking for file" >&5
2130 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2135 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2138 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2141 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2142 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2143 ac_dummy
="/usr/bin:$PATH"
2144 for ac_dir
in $ac_dummy; do
2145 test -z "$ac_dir" && ac_dir
=.
2146 if test -f $ac_dir/file; then
2147 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2148 if test -n "$file_magic_test_file"; then
2149 case $deplibs_check_method in
2151 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2152 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2153 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2154 egrep "$file_magic_regex" > /dev
/null
; then
2159 *** Warning: the command libtool uses to detect shared libraries,
2160 *** $file_magic_cmd, produces output that libtool cannot recognize.
2161 *** The result is that libtool may fail to recognize shared libraries
2162 *** as such. This will affect the creation of libtool libraries that
2163 *** depend on shared libraries, but programs linked with such libtool
2164 *** libraries will work regardless of this problem. Nevertheless, you
2165 *** may want to report the problem to your system manager and/or to
2166 *** bug-libtool@gnu.org
2176 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2181 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2182 if test -n "$MAGIC_CMD"; then
2183 echo "$ac_t""$MAGIC_CMD" 1>&6
2185 echo "$ac_t""no" 1>&6
2197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2198 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 if test -n "$RANLIB"; then
2205 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2209 for ac_dir
in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir
=.
2211 if test -f $ac_dir/$ac_word; then
2212 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2219 RANLIB
="$ac_cv_prog_RANLIB"
2220 if test -n "$RANLIB"; then
2221 echo "$ac_t""$RANLIB" 1>&6
2223 echo "$ac_t""no" 1>&6
2227 if test -z "$ac_cv_prog_RANLIB"; then
2228 if test -n "$ac_tool_prefix"; then
2229 # Extract the first word of "ranlib", so it can be a program name with args.
2230 set dummy ranlib
; ac_word
=$2
2231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_word" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 if test -n "$RANLIB"; then
2237 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2239 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2241 for ac_dir
in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir
=.
2243 if test -f $ac_dir/$ac_word; then
2244 ac_cv_prog_RANLIB
="ranlib"
2249 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2252 RANLIB
="$ac_cv_prog_RANLIB"
2253 if test -n "$RANLIB"; then
2254 echo "$ac_t""$RANLIB" 1>&6
2256 echo "$ac_t""no" 1>&6
2264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2265 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 if test -n "$STRIP"; then
2272 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2274 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2276 for ac_dir
in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir
=.
2278 if test -f $ac_dir/$ac_word; then
2279 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2286 STRIP
="$ac_cv_prog_STRIP"
2287 if test -n "$STRIP"; then
2288 echo "$ac_t""$STRIP" 1>&6
2290 echo "$ac_t""no" 1>&6
2294 if test -z "$ac_cv_prog_STRIP"; then
2295 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "strip", so it can be a program name with args.
2297 set dummy strip
; ac_word
=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 if test -n "$STRIP"; then
2304 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2306 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2308 for ac_dir
in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir
=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_prog_STRIP
="strip"
2316 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2319 STRIP
="$ac_cv_prog_STRIP"
2320 if test -n "$STRIP"; then
2321 echo "$ac_t""$STRIP" 1>&6
2323 echo "$ac_t""no" 1>&6
2335 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2336 if test "${enable_libtool_lock+set}" = set; then
2337 enableval
="$enable_libtool_lock"
2341 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
2343 # Some flags need to be propagated to the compiler or linker for good
2347 # Find out which ABI we are using.
2348 echo '#line 2349 "configure"' > conftest.
$ac_ext
2349 if { (eval echo configure
:2350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2350 case `/usr/bin/file conftest.$ac_objext` in
2366 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2367 SAVE_CFLAGS
="$CFLAGS"
2368 CFLAGS
="$CFLAGS -belf"
2369 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2370 echo "configure:2371: checking whether the C compiler needs -belf" >&5
2371 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2377 ac_cpp
='$CPP $CPPFLAGS'
2378 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2379 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2380 cross_compiling
=$ac_cv_prog_cc_cross
2382 cat > conftest.
$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2390 if { (eval echo configure
:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2392 lt_cv_cc_needs_belf
=yes
2394 echo "configure: failed program was:" >&5
2395 cat conftest.
$ac_ext >&5
2397 lt_cv_cc_needs_belf
=no
2401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2402 ac_cpp
='$CPP $CPPFLAGS'
2403 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2404 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2405 cross_compiling
=$ac_cv_prog_cc_cross
2409 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2410 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2411 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2412 CFLAGS
="$SAVE_CFLAGS"
2419 # Sed substitution that helps us do robust quoting. It backslashifies
2420 # metacharacters that are still active within double-quoted strings.
2421 Xsed
='sed -e s/^X//'
2422 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
2424 # Same as above, but do not quote variable references.
2425 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
2427 # Sed substitution to delay expansion of an escaped shell variable in a
2428 # double_quote_subst'ed string.
2429 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
2435 default_ofile
=libtool
2436 can_build_shared
=yes
2438 # All known linkers require a `.a' archive for static linking (except M$VC,
2439 # which needs '.lib').
2441 ltmain
="$ac_aux_dir/ltmain.sh"
2442 ofile
="$default_ofile"
2443 with_gnu_ld
="$lt_cv_prog_gnu_ld"
2444 need_locks
="$enable_libtool_lock"
2447 old_CFLAGS
="$CFLAGS"
2449 # Set sane defaults for various variables
2450 test -z "$AR" && AR
=ar
2451 test -z "$AR_FLAGS" && AR_FLAGS
=cru
2452 test -z "$AS" && AS
=as
2453 test -z "$CC" && CC
=cc
2454 test -z "$DLLTOOL" && DLLTOOL
=dlltool
2455 test -z "$LD" && LD
=ld
2456 test -z "$LN_S" && LN_S
="ln -s"
2457 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
2458 test -z "$NM" && NM
=nm
2459 test -z "$OBJDUMP" && OBJDUMP
=objdump
2460 test -z "$RANLIB" && RANLIB
=:
2461 test -z "$STRIP" && STRIP
=:
2462 test -z "$ac_objext" && ac_objext
=o
2464 if test x
"$host" != x
"$build"; then
2465 ac_tool_prefix
=${host_alias}-
2470 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2473 linux
*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2478 # AIX sometimes has problems with the GCC collect2 program. For some
2479 # reason, if we set the COLLECT_NAMES environment variable, the problems
2480 # vanish in a puff of smoke.
2481 if test "X${COLLECT_NAMES+set}" != Xset
; then
2483 export COLLECT_NAMES
2488 # Determine commands to create old-style static archives.
2489 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2490 old_postinstall_cmds
='chmod 644 $oldlib'
2491 old_postuninstall_cmds
=
2493 if test -n "$RANLIB"; then
2494 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
2495 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
2498 # Allow CC to be a program name with arguments.
2502 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2503 echo "configure:2504: checking for objdir" >&5
2504 rm -f .libs
2>/dev
/null
2505 mkdir .libs
2>/dev
/null
2506 if test -d .libs
; then
2509 # MS-DOS does not allow filenames that begin with a dot.
2512 rmdir .libs
2>/dev
/null
2513 echo "$ac_t""$objdir" 1>&6
2516 # Check whether --with-pic or --without-pic was given.
2517 if test "${with_pic+set}" = set; then
2524 test -z "$pic_mode" && pic_mode
=default
2526 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2527 # in isolation, and that seeing it set (from the cache) indicates that
2528 # the associated values are set (in the cache) correctly too.
2529 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $compiler option to produce PIC" >&5
2531 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2535 lt_cv_prog_cc_shlib
=
2537 lt_cv_prog_cc_static
=
2538 lt_cv_prog_cc_no_builtin
=
2539 lt_cv_prog_cc_can_build_shared
=$can_build_shared
2541 if test "$GCC" = yes; then
2542 lt_cv_prog_cc_wl
='-Wl,'
2543 lt_cv_prog_cc_static
='-static'
2547 # Below there is a dirty hack to force normal static linking with -ldl
2548 # The problem is because libdl dynamically linked with both libc and
2549 # libC (AIX C++ library), which obviously doesn't included in libraries
2550 # list by gcc. This cause undefined symbols with -static flags.
2551 # This hack allows C programs to be linked with "-static -ldl", but
2552 # we not sure about C++ programs.
2553 lt_cv_prog_cc_static
="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2556 # FIXME: we need at least 68020 code to build shared libraries, but
2557 # adding the `-m68020' flag to GCC prevents building anything better,
2559 lt_cv_prog_cc_pic
='-m68020 -resident32 -malways-restore-a4'
2561 beos
* | irix5
* | irix6
* | osf3
* | osf4
* | osf5
*)
2562 # PIC is the default for these OSes.
2564 darwin
* | rhapsody
*)
2565 # PIC is the default on this platform
2566 # Common symbols not allowed in MH_DYLIB files
2567 lt_cv_prog_cc_pic
='-fno-common'
2569 cygwin
* | mingw
* | pw32
* | os2
*)
2570 # This hack is so that the source file can tell whether it is being
2571 # built for inclusion in a dll (and should export symbols for example).
2572 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
2575 if test -d /usr
/nec
; then
2576 lt_cv_prog_cc_pic
=-Kconform_pic
2580 lt_cv_prog_cc_pic
='-fPIC'
2584 # PORTME Check for PIC flags for the system compiler.
2586 aix3
* | aix4
* | aix5
*)
2587 # All AIX code is PIC.
2588 if test "$host_cpu" = ia64
; then
2589 # AIX 5 now supports IA64 processor
2590 lt_cv_prog_cc_static
='-Bstatic'
2591 lt_cv_prog_cc_wl
='-Wl,'
2593 lt_cv_prog_cc_static
='-bnso -bI:/lib/syscalls.exp'
2597 hpux9
* | hpux10
* | hpux11
*)
2598 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2599 lt_cv_prog_cc_wl
='-Wl,'
2600 lt_cv_prog_cc_static
="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2601 lt_cv_prog_cc_pic
='+Z'
2605 lt_cv_prog_cc_wl
='-Wl,'
2606 lt_cv_prog_cc_static
='-non_shared'
2607 # PIC (with -KPIC) is the default.
2610 cygwin
* | mingw
* | pw32
* | os2
*)
2611 # This hack is so that the source file can tell whether it is being
2612 # built for inclusion in a dll (and should export symbols for example).
2613 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
2617 lt_cv_prog_cc_pic
='-KPIC'
2618 lt_cv_prog_cc_static
='-Bstatic'
2621 osf3
* | osf4
* | osf5
*)
2622 # All OSF/1 code is PIC.
2623 lt_cv_prog_cc_wl
='-Wl,'
2624 lt_cv_prog_cc_static
='-non_shared'
2628 lt_cv_prog_cc_pic
='-Kpic'
2629 lt_cv_prog_cc_static
='-dn'
2630 lt_cv_prog_cc_shlib
='-belf'
2634 lt_cv_prog_cc_pic
='-KPIC'
2635 lt_cv_prog_cc_static
='-Bstatic'
2636 lt_cv_prog_cc_wl
='-Wl,'
2640 lt_cv_prog_cc_pic
='-PIC'
2641 lt_cv_prog_cc_static
='-Bstatic'
2642 lt_cv_prog_cc_wl
='-Qoption ld '
2645 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2646 lt_cv_prog_cc_pic
='-KPIC'
2647 lt_cv_prog_cc_static
='-Bstatic'
2648 if test "x$host_vendor" = xsni
; then
2649 lt_cv_prog_cc_wl
='-LD'
2651 lt_cv_prog_cc_wl
='-Wl,'
2656 lt_cv_prog_cc_pic
='-pic'
2657 lt_cv_prog_cc_static
='-Bstatic'
2661 if test -d /usr
/nec
;then
2662 lt_cv_prog_cc_pic
='-Kconform_pic'
2663 lt_cv_prog_cc_static
='-Bstatic'
2668 lt_cv_prog_cc_can_build_shared
=no
2675 if test -z "$lt_cv_prog_cc_pic"; then
2676 echo "$ac_t""none" 1>&6
2678 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2680 # Check to make sure the pic_flag actually works.
2681 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2682 echo "configure:2683: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2683 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 save_CFLAGS
="$CFLAGS"
2687 CFLAGS
="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2688 cat > conftest.
$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2696 if { (eval echo configure
:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2699 hpux9
* | hpux10
* | hpux11
*)
2700 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2701 # they create non-PIC objects. So, if there were any warnings, we
2702 # assume that PIC is not supported.
2703 if test -s conftest.err
; then
2704 lt_cv_prog_cc_pic_works
=no
2706 lt_cv_prog_cc_pic_works
=yes
2710 lt_cv_prog_cc_pic_works
=yes
2715 echo "configure: failed program was:" >&5
2716 cat conftest.
$ac_ext >&5
2718 lt_cv_prog_cc_pic_works
=no
2722 CFLAGS
="$save_CFLAGS"
2727 if test "X$lt_cv_prog_cc_pic_works" = Xno
; then
2729 lt_cv_prog_cc_can_build_shared
=no
2731 lt_cv_prog_cc_pic
=" $lt_cv_prog_cc_pic"
2734 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2737 # Check for any special shared library compilation flags.
2738 if test -n "$lt_cv_prog_cc_shlib"; then
2739 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2740 if echo "$old_CC $old_CFLAGS " |
egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev
/null
; then :
2742 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2743 lt_cv_prog_cc_can_build_shared
=no
2747 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2748 echo "configure:2749: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2749 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 lt_cv_prog_cc_static_works
=no
2753 save_LDFLAGS
="$LDFLAGS"
2754 LDFLAGS
="$LDFLAGS $lt_cv_prog_cc_static"
2755 cat > conftest.
$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2763 if { (eval echo configure
:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2765 lt_cv_prog_cc_static_works
=yes
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2771 LDFLAGS
="$save_LDFLAGS"
2776 # Belt *and* braces to stop my trousers falling down:
2777 test "X$lt_cv_prog_cc_static_works" = Xno
&& lt_cv_prog_cc_static
=
2778 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2780 pic_flag
="$lt_cv_prog_cc_pic"
2781 special_shlib_compile_flags
="$lt_cv_prog_cc_shlib"
2782 wl
="$lt_cv_prog_cc_wl"
2783 link_static_flag
="$lt_cv_prog_cc_static"
2784 no_builtin_flag
="$lt_cv_prog_cc_no_builtin"
2785 can_build_shared
="$lt_cv_prog_cc_can_build_shared"
2788 # Check to see if options -o and -c are simultaneously supported by compiler
2789 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2790 echo "configure:2791: checking if $compiler supports -c -o file.$ac_objext" >&5
2791 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2795 $rm -r conftest
2>/dev
/null
2798 echo "int some_variable = 0;" > conftest.
$ac_ext
2800 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2801 # that will create temporary files in the current directory regardless of
2802 # the output directory. Thus, making CWD read-only will cause this test
2803 # to fail, enabling locking or at least warning the user not to do parallel
2806 save_CFLAGS
="$CFLAGS"
2807 CFLAGS
="$CFLAGS -o out/conftest2.$ac_objext"
2809 if { (eval echo configure
:2810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out
/conftest.err
; } && test -s out
/conftest2.
$ac_objext; then
2810 # The compiler can only warn and ignore the option if not recognized
2811 # So say no if there are warnings
2812 if test -s out
/conftest.err
; then
2813 lt_cv_compiler_c_o
=no
2815 lt_cv_compiler_c_o
=yes
2818 # Append any errors to the config.log.
2819 cat out
/conftest.err
1>&5
2820 lt_cv_compiler_c_o
=no
2822 CFLAGS
="$save_CFLAGS"
2828 $rm -r conftest
2>/dev
/null
2832 compiler_c_o
=$lt_cv_compiler_c_o
2833 echo "$ac_t""$compiler_c_o" 1>&6
2835 if test x
"$compiler_c_o" = x
"yes"; then
2836 # Check to see if we can write to a .lo
2837 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2838 echo "configure:2839: checking if $compiler supports -c -o file.lo" >&5
2839 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2843 lt_cv_compiler_o_lo
=no
2844 save_CFLAGS
="$CFLAGS"
2845 CFLAGS
="$CFLAGS -c -o conftest.lo"
2846 cat > conftest.
$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2851 int some_variable = 0;
2854 if { (eval echo configure
:2855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2856 # The compiler can only warn and ignore the option if not recognized
2857 # So say no if there are warnings
2858 if test -s conftest.err
; then
2859 lt_cv_compiler_o_lo
=no
2861 lt_cv_compiler_o_lo
=yes
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2869 CFLAGS
="$save_CFLAGS"
2873 compiler_o_lo
=$lt_cv_compiler_o_lo
2874 echo "$ac_t""$compiler_c_lo" 1>&6
2879 # Check to see if we can do hard links to lock some files if needed
2880 hard_links
="nottested"
2881 if test "$compiler_c_o" = no
&& test "$need_locks" != no
; then
2882 # do not overwrite the value of need_locks provided by the user
2883 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2884 echo "configure:2885: checking if we can lock with hard links" >&5
2887 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
2889 ln conftest.a conftest.b
2>&5 || hard_links
=no
2890 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
2891 echo "$ac_t""$hard_links" 1>&6
2892 if test "$hard_links" = no
; then
2893 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
2900 if test "$GCC" = yes; then
2901 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2902 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
2903 echo "configure:2904: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
2904 echo "int some_variable = 0;" > conftest.
$ac_ext
2905 save_CFLAGS
="$CFLAGS"
2906 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2907 compiler_rtti_exceptions
=no
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2913 int some_variable = 0;
2916 if { (eval echo configure
:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2918 # The compiler can only warn and ignore the option if not recognized
2919 # So say no if there are warnings
2920 if test -s conftest.err
; then
2921 compiler_rtti_exceptions
=no
2923 compiler_rtti_exceptions
=yes
2927 echo "configure: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2931 CFLAGS
="$save_CFLAGS"
2932 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
2934 if test "$compiler_rtti_exceptions" = "yes"; then
2935 no_builtin_flag
=' -fno-builtin -fno-rtti -fno-exceptions'
2937 no_builtin_flag
=' -fno-builtin'
2941 # See if the linker supports building shared libraries.
2942 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
2943 echo "configure:2944: checking whether the linker ($LD) supports shared libraries" >&5
2945 allow_undefined_flag
=
2947 need_lib_prefix
=unknown
2948 need_version
=unknown
2949 # when you set need_version to no, make sure it does not cause -set_version
2950 # flags to be left without arguments
2952 archive_expsym_cmds
=
2953 old_archive_from_new_cmds
=
2954 old_archive_from_expsyms_cmds
=
2955 export_dynamic_flag_spec
=
2956 whole_archive_flag_spec
=
2957 thread_safe_flag_spec
=
2958 hardcode_into_libs
=no
2959 hardcode_libdir_flag_spec
=
2960 hardcode_libdir_separator
=
2963 hardcode_shlibpath_var
=unsupported
2965 link_all_deplibs
=unknown
2966 always_export_symbols
=no
2967 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2968 # include_expsyms should be a list of space-separated symbols to be *always*
2969 # included in the symbol list
2971 # exclude_expsyms can be an egrep regular expression of symbols to exclude
2972 # it will be wrapped by ` (' and `)$', so one must not match beginning or
2973 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2974 # as well as any symbol that contains `d'.
2975 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
2976 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2977 # platforms (ab)use it in PIC code, but their linkers get confused if
2978 # the symbol is explicitly referenced. Since portable code cannot
2979 # rely on this symbol name, it's probably fine to never include it in
2980 # preloaded symbol tables.
2981 extract_expsyms_cmds
=
2984 cygwin
* | mingw
* | pw32
* )
2985 # FIXME: the MSVC++ port hasn't been tested in a loooong time
2986 # When not using gcc, we currently assume that we are using
2987 # Microsoft Visual C++.
2988 if test "$GCC" != yes; then
2996 if test "$with_gnu_ld" = yes; then
2997 # If archive_cmds runs LD, not CC, wlarc should be empty
3000 # See if GNU ld supports shared libraries.
3002 aix3
* | aix4
* | aix5
*)
3003 # On AIX, the GNU linker is very broken
3004 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3008 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3009 *** to be unable to reliably create shared libraries on AIX.
3010 *** Therefore, libtool is disabling shared libraries support. If you
3011 *** really care for shared libraries, you may want to modify your PATH
3012 *** so that a non-GNU linker is found, and then restart.
3018 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)'
3019 hardcode_libdir_flag_spec
='-L$libdir'
3020 hardcode_minus_L
=yes
3022 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3023 # that the semantics of dynamic libraries on AmigaOS, at least up
3024 # to version 4, is to share data among multiple programs linked
3025 # with the same dynamic library. Since this doesn't match the
3026 # behavior of shared libraries on other platforms, we can use
3032 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
3033 allow_undefined_flag
=unsupported
3034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3035 # support --undefined. This deserves some investigation. FIXME
3036 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3042 cygwin
* | mingw
* | pw32
*)
3043 # hardcode_libdir_flag_spec is actually meaningless, as there is
3044 # no search path for DLLs.
3045 hardcode_libdir_flag_spec
='-L$libdir'
3046 allow_undefined_flag
=unsupported
3047 always_export_symbols
=yes
3049 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
3050 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3051 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3052 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3053 else $CC -o impgen impgen.c ; fi)~
3054 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3056 old_archive_from_expsyms_cmds
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3058 # cygwin and mingw dlls have different entry points and sets of symbols
3060 # FIXME: what about values for MSVC?
3061 dll_entry
=__cygwin_dll_entry@
12
3062 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12~
3066 dll_entry
=_DllMainCRTStartup@
12
3067 dll_exclude_symbols
=DllMain@
12,DllMainCRTStartup@
12,DllEntryPoint@
12~
3071 # mingw and cygwin differ, and it's simplest to just exclude the union
3072 # of the two symbol sets.
3073 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
3075 # recent cygwin and mingw systems supply a stub DllMain which the user
3076 # can override, but on older systems we have to supply one (in ltdll.c)
3077 if test "x$lt_cv_need_dllmain" = "xyes"; then
3078 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
3079 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~
3080 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3086 # Extract the symbol export list from an `--export-all' def file,
3087 # then regenerate the def file from the symbol export list, so that
3088 # the compiled dll only exports the symbol export list.
3089 # Be careful not to strip the DATA tag left be newer dlltools.
3090 export_symbols_cmds
="$ltdll_cmds"'
3091 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3092 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3094 # If the export-symbols file already is a .def file (1st line
3095 # is EXPORTS), use it as is.
3096 # If DATA tags from a recent dlltool are present, honour them!
3097 archive_expsym_cmds
='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3098 cp $export_symbols $output_objdir/$soname-def;
3100 echo EXPORTS > $output_objdir/$soname-def;
3102 cat $export_symbols | while read symbol; do
3105 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3106 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3108 _lt_hint=`expr 1 + \$_lt_hint`;
3112 $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~
3113 $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~
3114 $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~
3115 $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~
3116 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3120 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
3121 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3124 archive_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3125 archive_expsym_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3130 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
3134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3135 *** create shared libraries on Solaris systems. Therefore, libtool
3136 *** is disabling shared libraries support. We urge you to upgrade GNU
3137 *** binutils to release 2.9.1 or newer. Another option is to modify
3138 *** your PATH or compiler configuration so that the native linker is
3139 *** used, and then restart.
3142 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
3143 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3144 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3151 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3154 hardcode_shlibpath_var
=no
3158 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
3159 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3160 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3167 if test "$ld_shlibs" = yes; then
3168 runpath_var
=LD_RUN_PATH
3169 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
3170 export_dynamic_flag_spec
='${wl}--export-dynamic'
3172 cygwin
* | mingw
* | pw32
*)
3173 # dlltool doesn't understand --whole-archive et. al.
3174 whole_archive_flag_spec
=
3177 # ancient GNU ld didn't support --whole-archive et. al.
3178 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
3179 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3181 whole_archive_flag_spec
=
3187 # PORTME fill in a description of your system's linker (not GNU ld)
3190 allow_undefined_flag
=unsupported
3191 always_export_symbols
=yes
3192 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'
3193 # Note: this linker hardcodes the directories in LIBPATH if there
3194 # are no directories specified by -L.
3195 hardcode_minus_L
=yes
3196 if test "$GCC" = yes && test -z "$link_static_flag"; then
3197 # Neither direct hardcoding nor static linking is supported with a
3199 hardcode_direct
=unsupported
3204 # When large executables or shared objects are built, AIX ld can
3205 # have problems creating the table of contents. If linking a library
3206 # or program results in "error TOC overflow" add -mminimal-toc to
3207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3211 hardcode_libdir_separator
=':'
3212 if test "$GCC" = yes; then
3213 collect2name
=`${CC} -print-prog-name=collect2`
3214 if test -f "$collect2name" && \
3215 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
3217 # We have reworked collect2
3220 # We have old collect2
3221 hardcode_direct
=unsupported
3222 # It fails to find uninstalled libraries when the uninstalled
3223 # path is not listed in the libpath. Setting hardcode_minus_L
3224 # to unsupported forces relinking
3225 hardcode_minus_L
=yes
3226 hardcode_libdir_flag_spec
='-L$libdir'
3227 hardcode_libdir_separator
=
3229 shared_flag
='-shared'
3231 if test "$host_cpu" = ia64
; then
3234 shared_flag
='${wl}-bM:SRE'
3239 if test "$host_cpu" = ia64
; then
3240 # On IA64, the linker does run time linking by default, so we don't
3241 # have to do anything special.
3242 aix_use_runtimelinking
=no
3243 exp_sym_flag
='-Bexport'
3246 # Test if we are trying to use run time linking, or normal AIX style linking.
3247 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
3248 aix_use_runtimelinking
=no
3249 for ld_flag
in $LDFLAGS; do
3250 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl" ); then
3251 aix_use_runtimelinking
=yes
3255 exp_sym_flag
='-bexport'
3256 no_entry_flag
='-bnoentry'
3258 # It seems that -bexpall can do strange things, so it is better to
3259 # generate a list of symbols to export.
3260 always_export_symbols
=yes
3261 if test "$aix_use_runtimelinking" = yes; then
3262 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:/usr/lib:/lib'
3263 allow_undefined_flag
=' -Wl,-G'
3264 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"
3266 if test "$host_cpu" = ia64; then
3267 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
3268 allow_undefined_flag="-znodefs"
3269 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"
3271 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3272 # Warning - without using the other run time loading flags, -berok will
3273 # link without error, but may produce a broken library.
3274 allow_undefined_flag='${wl}-berok"
3275 # This is a bit strange, but is similar to how AIX traditionally builds
3276 # it's shared libraries.
3277 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'
3283 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)'
3284 hardcode_libdir_flag_spec='-L$libdir'
3285 hardcode_minus_L=yes
3286 # see comment about different semantics on the GNU ld section
3290 cygwin* | mingw* | pw32*)
3291 # When not using gcc, we currently assume that we are using
3292 # Microsoft Visual C++.
3293 # hardcode_libdir_flag_spec is actually meaningless, as there is
3294 # no search path for DLLs.
3295 hardcode_libdir_flag_spec=' '
3296 allow_undefined_flag=unsupported
3297 # Tell ltmain to make .lib files, not .a files.
3299 # FIXME: Setting linknames here is a bad hack.
3300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames
='
3301 # The linker will automatically build a .lib file if we build a DLL.
3302 old_archive_from_new_cmds='true
'
3303 # FIXME: Should let the user specify the lib program.
3304 old_archive_cmds='lib
/OUT
:$oldlib$oldobjs$old_deplibs'
3305 fix_srcfile_path='`cygpath -w "$srcfile"`'
3308 darwin* | rhapsody*)
3309 allow_undefined_flag='-undefined suppress
'
3310 # FIXME: Relying on posixy $() will cause problems for
3311 # cross-compilation, but unfortunately the echo tests do not
3312 # yet detect zsh echo's removal of \ escapes.
3313 archive_cmds
='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
3314 # We need to add '_' to the symbols in $export_symbols first
3315 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3317 hardcode_shlibpath_var
=no
3318 whole_archive_flag_spec
='-all_load $convenience'
3325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3326 # support. Future versions do this automatically, but an explicit c++rt0.o
3327 # does not break anything, and helps significantly (at the cost of a little
3330 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3331 hardcode_libdir_flag_spec
='-R$libdir'
3333 hardcode_shlibpath_var
=no
3336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3338 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3340 hardcode_minus_L
=yes
3341 hardcode_shlibpath_var
=no
3344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3346 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3347 hardcode_libdir_flag_spec
='-R$libdir'
3349 hardcode_shlibpath_var
=no
3352 hpux9
* | hpux10
* | hpux11
*)
3354 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' ;;
3355 *) archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3357 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
3358 hardcode_libdir_separator
=:
3360 hardcode_minus_L
=yes # Not in the search PATH, but as the default
3361 # location of the library.
3362 export_dynamic_flag_spec
='${wl}-E'
3366 if test "$GCC" = yes; then
3367 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'
3369 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'
3371 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
3372 hardcode_libdir_separator
=:
3373 link_all_deplibs
=yes
3377 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
3378 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3380 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3382 hardcode_libdir_flag_spec
='-R$libdir'
3384 hardcode_shlibpath_var
=no
3388 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3390 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
3391 hardcode_libdir_separator
=:
3392 hardcode_shlibpath_var
=no
3396 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3397 hardcode_libdir_flag_spec
='-R$libdir'
3399 hardcode_shlibpath_var
=no
3403 hardcode_libdir_flag_spec
='-L$libdir'
3404 hardcode_minus_L
=yes
3405 allow_undefined_flag
=unsupported
3406 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'
3407 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3411 if test "$GCC" = yes; then
3412 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
3413 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'
3415 allow_undefined_flag
=' -expect_unresolved \*'
3416 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'
3418 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
3419 hardcode_libdir_separator
=:
3422 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
3423 if test "$GCC" = yes; then
3424 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
3425 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'
3426 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
3428 allow_undefined_flag
=' -expect_unresolved \*'
3429 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'
3430 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3431 $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'
3433 #Both c and cxx compiler support -rpath directly
3434 hardcode_libdir_flag_spec
='-rpath $libdir'
3436 hardcode_libdir_separator
=:
3440 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3441 hardcode_shlibpath_var
=no
3442 runpath_var
=LD_RUN_PATH
3443 hardcode_runpath_var
=yes
3447 no_undefined_flag
=' -z defs'
3448 # $CC -shared without GNU ld will not create a library from C++
3449 # object files and a static libstdc++, better avoid it by now
3450 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3451 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3453 hardcode_libdir_flag_spec
='-R$libdir'
3454 hardcode_shlibpath_var
=no
3456 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
3457 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3458 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
3460 link_all_deplibs
=yes
3464 if test "x$host_vendor" = xsequent
; then
3465 # Use $CC to link under sequent, because it throws in some extra .o
3466 # files that make .init and .fini sections work.
3467 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3469 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3471 hardcode_libdir_flag_spec
='-L$libdir'
3473 hardcode_minus_L
=yes
3474 hardcode_shlibpath_var
=no
3478 if test "x$host_vendor" = xsno
; then
3479 archive_cmds
='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3480 hardcode_direct
=yes # is this really true???
3482 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3483 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
3485 runpath_var
='LD_RUN_PATH'
3486 hardcode_shlibpath_var
=no
3490 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3491 hardcode_shlibpath_var
=no
3492 export_dynamic_flag_spec
='-Bexport'
3496 no_undefined_flag
=' -z text'
3497 # $CC -shared without GNU ld will not create a library from C++
3498 # object files and a static libstdc++, better avoid it by now
3499 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3500 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3502 hardcode_libdir_flag_spec
=
3503 hardcode_shlibpath_var
=no
3504 runpath_var
='LD_RUN_PATH'
3508 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3509 hardcode_libdir_flag_spec
='-L$libdir'
3510 hardcode_shlibpath_var
=no
3514 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3515 hardcode_libdir_flag_spec
='-L$libdir'
3516 hardcode_shlibpath_var
=no
3520 if test -d /usr
/nec
; then
3521 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3522 hardcode_shlibpath_var
=no
3523 runpath_var
=LD_RUN_PATH
3524 hardcode_runpath_var
=yes
3530 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3533 hardcode_shlibpath_var
=no
3534 hardcode_runpath_var
=yes
3535 runpath_var
=LD_RUN_PATH
3538 sysv5uw7
* | unixware7
*)
3539 no_undefined_flag
='${wl}-z ${wl}text'
3540 if test "$GCC" = yes; then
3541 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3543 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3545 runpath_var
='LD_RUN_PATH'
3546 hardcode_shlibpath_var
=no
3554 echo "$ac_t""$ld_shlibs" 1>&6
3555 test "$ld_shlibs" = no
&& can_build_shared
=no
3557 # Check hardcoding attributes.
3558 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3559 echo "configure:3560: checking how to hardcode library paths into programs" >&5
3561 if test -n "$hardcode_libdir_flag_spec" || \
3562 test -n "$runpath_var"; then
3564 # We can hardcode non-existant directories.
3565 if test "$hardcode_direct" != no
&&
3566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3567 # have to relink, otherwise we might link with an installed library
3568 # when we should be linking with a yet-to-be-installed one
3569 ## test "$hardcode_shlibpath_var" != no &&
3570 test "$hardcode_minus_L" != no
; then
3571 # Linking always hardcodes the temporary library directory.
3572 hardcode_action
=relink
3574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3575 hardcode_action
=immediate
3578 # We cannot hardcode anything, or else we can only hardcode existing
3580 hardcode_action
=unsupported
3582 echo "$ac_t""$hardcode_action" 1>&6
3586 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3587 echo "configure:3588: checking whether stripping libraries is possible" >&5
3588 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
3589 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
3590 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
3591 echo "$ac_t""yes" 1>&6
3593 echo "$ac_t""no" 1>&6
3596 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3597 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
3599 # PORTME Fill in your ld.so characteristics
3600 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3601 echo "configure:3602: checking dynamic linker characteristics" >&5
3603 libname_spec
='lib$name'
3610 shlibpath_overrides_runpath
=unknown
3612 dynamic_linker
="$host_os ld.so"
3613 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
3614 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
3619 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
3620 shlibpath_var
=LIBPATH
3622 # AIX has no versioning support, so we append a major version to the name.
3623 soname_spec
='${libname}${release}.so$major'
3628 if test "$host_cpu" = ia64
; then
3629 # AIX 5 supports IA64
3630 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3631 shlibpath_var
=LD_LIBRARY_PATH
3633 # With GCC up to 2.95.x, collect2 would create an import file
3634 # for dependence libraries. The import file would start with
3635 # the line `#! .'. This would cause the generated library to
3636 # depend on `.', always an invalid library. This was fixed in
3637 # development snapshots of GCC prior to 3.0.
3639 aix4 | aix4.
[01] | aix4.
[01].
*)
3640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3642 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
3649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3650 # soname into executable. Probably we can add versioning support to
3651 # collect2, so additional links can be useful in future.
3652 if test "$aix_use_runtimelinking" = yes; then
3653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
3654 # lib<name>.a to let people know that these are not typical AIX shared libraries.
3655 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3657 # We preserve .a as extension for shared libraries through AIX4.2
3658 # and later when we are not doing run time linking.
3659 library_names_spec
='${libname}${release}.a $libname.a'
3660 soname_spec
='${libname}${release}.so$major'
3662 shlibpath_var
=LIBPATH
3663 deplibs_check_method
=pass_all
3668 library_names_spec
='$libname.ixlibrary $libname.a'
3669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3670 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'
3674 library_names_spec
='${libname}.so'
3675 dynamic_linker
="$host_os ld.so"
3676 shlibpath_var
=LIBRARY_PATH
3682 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3683 soname_spec
='${libname}${release}.so$major'
3684 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
3685 shlibpath_var
=LD_LIBRARY_PATH
3686 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3687 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
3688 export_dynamic_flag_spec
=-rdynamic
3689 # the default ld.so.conf also contains /usr/contrib/lib and
3690 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3691 # libtool to hard-code these into programs
3694 cygwin
* | mingw
* | pw32
*)
3695 version_type
=windows
3698 case $GCC,$host_os in
3700 library_names_spec
='$libname.dll.a'
3701 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3702 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3703 dldir=$destdir/`dirname \$dlpath`~
3704 test -d \$dldir || mkdir -p \$dldir~
3705 $install_prog .libs/$dlname \$dldir/$dlname'
3706 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3707 dlpath=$dir/\$dldll~
3711 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3712 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3715 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3718 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3721 dynamic_linker
='Win32 ld.exe'
3722 # FIXME: first we should search . and the directory the executable is in
3726 darwin
* | rhapsody
*)
3727 dynamic_linker
="$host_os dyld"
3731 # FIXME: Relying on posixy $() will cause problems for
3732 # cross-compilation, but unfortunately the echo tests do not
3733 # yet detect zsh echo's removal of \ escapes.
3734 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)'
3735 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3736 shlibpath_overrides_runpath
=yes
3737 shlibpath_var
=DYLD_LIBRARY_PATH
3745 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3746 version_type
=freebsd-
$objformat
3747 case $version_type in
3749 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3754 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
3758 shlibpath_var
=LD_LIBRARY_PATH
3761 shlibpath_overrides_runpath
=yes
3764 shlibpath_overrides_runpath
=no
3765 hardcode_into_libs
=yes
3774 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3775 soname_spec
='${libname}${release}.so$major'
3776 shlibpath_var
=LD_LIBRARY_PATH
3777 hardcode_into_libs
=yes
3780 hpux9
* | hpux10
* | hpux11
*)
3781 # Give a soname corresponding to the major version so that dld.sl refuses to
3782 # link against other versions.
3783 dynamic_linker
="$host_os dld.sl"
3787 shlibpath_var
=SHLIB_PATH
3788 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
3789 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3790 soname_spec
='${libname}${release}.sl$major'
3791 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3792 postinstall_cmds
='chmod 555 $lib'
3799 soname_spec
='${libname}${release}.so$major'
3800 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3806 case $LD in # libtool.m4 will add one of these switches to LD
3807 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
3808 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
3809 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
3810 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
3814 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
3815 shlibpath_overrides_runpath
=no
3816 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3817 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
3820 # No shared lib support for Linux oldld, aout, or coff.
3821 linux-gnuoldld
* | linux-gnuaout
* | linux-gnucoff
*)
3825 # This must be Linux ELF.
3830 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3831 soname_spec
='${libname}${release}.so$major'
3832 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3833 shlibpath_var
=LD_LIBRARY_PATH
3834 shlibpath_overrides_runpath
=no
3835 # This implies no fast_install, which is unacceptable.
3836 # Some rework will be needed to allow for fast_install
3837 # before this can be enabled.
3838 hardcode_into_libs
=yes
3840 # We used to test for /lib/ld.so.1 and disable shared libraries on
3841 # powerpc, because MkLinux only supported shared libraries with the
3842 # GNU dynamic linker. Since this was broken with cross compilers,
3843 # most powerpc-linux boxes support dynamic linking these days and
3844 # people can always --disable-shared, the test was removed, and we
3845 # assume the GNU/Linux dynamic linker is in use.
3846 dynamic_linker
='GNU/Linux ld.so'
3853 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
3854 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3855 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3856 dynamic_linker
='NetBSD (a.out) ld.so'
3858 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
3859 soname_spec
='${libname}${release}.so$major'
3860 dynamic_linker
='NetBSD ld.elf_so'
3862 shlibpath_var
=LD_LIBRARY_PATH
3863 shlibpath_overrides_runpath
=yes
3864 hardcode_into_libs
=yes
3869 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3870 shlibpath_var
=LD_LIBRARY_PATH
3871 shlibpath_overrides_runpath
=yes
3876 if test "$with_gnu_ld" = yes; then
3880 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3881 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3882 shlibpath_var
=LD_LIBRARY_PATH
3886 libname_spec
='$name'
3888 library_names_spec
='$libname.dll $libname.a'
3889 dynamic_linker
='OS/2 ld.exe'
3890 shlibpath_var
=LIBPATH
3893 osf3
* | osf4
* | osf5
*)
3896 soname_spec
='${libname}${release}.so'
3897 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3898 shlibpath_var
=LD_LIBRARY_PATH
3899 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3900 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
3905 soname_spec
='${libname}${release}.so$major'
3906 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3907 shlibpath_var
=LD_LIBRARY_PATH
3914 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3915 soname_spec
='${libname}${release}.so$major'
3916 shlibpath_var
=LD_LIBRARY_PATH
3917 shlibpath_overrides_runpath
=yes
3918 hardcode_into_libs
=yes
3919 # ldd complains unless libraries are executable
3920 postinstall_cmds
='chmod +x $lib'
3925 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3926 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3927 shlibpath_var
=LD_LIBRARY_PATH
3928 shlibpath_overrides_runpath
=yes
3929 if test "$with_gnu_ld" = yes; then
3935 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3937 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3938 soname_spec
='${libname}${release}.so$major'
3939 shlibpath_var
=LD_LIBRARY_PATH
3940 case $host_vendor in
3942 shlibpath_overrides_runpath
=no
3947 shlibpath_overrides_runpath
=no
3948 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
3955 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3956 soname_spec
='${libname}${release}.so$major'
3957 shlibpath_var
=LD_LIBRARY_PATH
3964 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3965 soname_spec
='${libname}${release}.so$major'
3966 shlibpath_var
=LD_LIBRARY_PATH
3970 if test -d /usr
/nec
;then
3972 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
3973 soname_spec
='$libname.so.$major'
3974 shlibpath_var
=LD_LIBRARY_PATH
3982 echo "$ac_t""$dynamic_linker" 1>&6
3983 test "$dynamic_linker" = no
&& can_build_shared
=no
3985 # Report the final consequences.
3986 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
3987 echo "configure:3988: checking if libtool supports shared libraries" >&5
3988 echo "$ac_t""$can_build_shared" 1>&6
3990 if test "$hardcode_action" = relink
; then
3991 # Fast installation is not supported
3992 enable_fast_install
=no
3993 elif test "$shlibpath_overrides_runpath" = yes ||
3994 test "$enable_shared" = no
; then
3995 # Fast installation is not necessary
3996 enable_fast_install
=needless
3999 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
4000 if test "$GCC" = yes; then
4001 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4004 if test "x$enable_dlopen" != xyes
; then
4005 enable_dlopen
=unknown
4006 enable_dlopen_self
=unknown
4007 enable_dlopen_self_static
=unknown
4014 lt_cv_dlopen
="load_add_on"
4016 lt_cv_dlopen_self
=yes
4019 cygwin
* | mingw
* | pw32
*)
4020 lt_cv_dlopen
="LoadLibrary"
4025 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4026 echo "configure:4027: checking for dlopen in -ldl" >&5
4027 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 ac_save_LIBS
="$LIBS"
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4045 if { (eval echo configure
:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4049 echo "configure: failed program was:" >&5
4050 cat conftest.
$ac_ext >&5
4052 eval "ac_cv_lib_$ac_lib_var=no"
4055 LIBS
="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
4062 echo "$ac_t""no" 1>&6
4063 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4064 echo "configure:4065: checking for dlopen" >&5
4065 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.
$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char dlopen(); below. */
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4081 /* The GNU C library defines this for functions which it implements
4082 to always fail with ENOSYS. Some functions are actually named
4083 something starting with __ and the normal name is an alias. */
4084 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4092 if { (eval echo configure
:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4094 eval "ac_cv_func_dlopen=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.
$ac_ext >&5
4099 eval "ac_cv_func_dlopen=no"
4104 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 lt_cv_dlopen
="dlopen"
4108 echo "$ac_t""no" 1>&6
4109 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4110 echo "configure:4111: checking for shl_load" >&5
4111 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 cat > conftest.
$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char shl_load(); below. */
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4138 if { (eval echo configure
:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4140 eval "ac_cv_func_shl_load=yes"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.
$ac_ext >&5
4145 eval "ac_cv_func_shl_load=no"
4150 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen
="shl_load"
4154 echo "$ac_t""no" 1>&6
4155 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4156 echo "configure:4157: checking for dlopen in -lsvld" >&5
4157 ac_lib_var
=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 ac_save_LIBS
="$LIBS"
4163 cat > conftest.
$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4175 if { (eval echo configure
:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4177 eval "ac_cv_lib_$ac_lib_var=yes"
4179 echo "configure: failed program was:" >&5
4180 cat conftest.
$ac_ext >&5
4182 eval "ac_cv_lib_$ac_lib_var=no"
4185 LIBS
="$ac_save_LIBS"
4188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
4192 echo "$ac_t""no" 1>&6
4193 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4194 echo "configure:4195: checking for shl_load in -ldld" >&5
4195 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4199 ac_save_LIBS
="$LIBS"
4201 cat > conftest.
$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4213 if { (eval echo configure
:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4215 eval "ac_cv_lib_$ac_lib_var=yes"
4217 echo "configure: failed program was:" >&5
4218 cat conftest.
$ac_ext >&5
4220 eval "ac_cv_lib_$ac_lib_var=no"
4223 LIBS
="$ac_save_LIBS"
4226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
4230 echo "$ac_t""no" 1>&6
4248 if test "x$lt_cv_dlopen" != xno
; then
4254 case $lt_cv_dlopen in
4256 save_CPPFLAGS
="$CPPFLAGS"
4257 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
4259 save_LDFLAGS
="$LDFLAGS"
4260 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
4263 LIBS
="$lt_cv_dlopen_libs $LIBS"
4265 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4266 echo "configure:4267: checking whether a program can dlopen itself" >&5
4267 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 if test "$cross_compiling" = yes; then :
4271 lt_cv_dlopen_self
=cross
4273 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
4274 lt_status
=$lt_dlunknown
4275 cat > conftest.
$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4286 # define LT_DLGLOBAL RTLD_GLOBAL
4289 # define LT_DLGLOBAL DL_GLOBAL
4291 # define LT_DLGLOBAL 0
4295 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4296 find out it does not work in some platform. */
4297 #ifndef LT_DLLAZY_OR_NOW
4299 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4302 # define LT_DLLAZY_OR_NOW DL_LAZY
4305 # define LT_DLLAZY_OR_NOW RTLD_NOW
4308 # define LT_DLLAZY_OR_NOW DL_NOW
4310 # define LT_DLLAZY_OR_NOW 0
4318 extern "C" void exit (int);
4321 void fnord() { int i=42;}
4324 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4325 int status = $lt_dlunknown;
4329 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4330 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4331 /* dlclose (self); */
4337 if { (eval echo configure
:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
4338 (.
/conftest
; exit; ) 2>/dev
/null
4341 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
4342 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
4343 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
4346 # compilation failed
4347 lt_cv_dlopen_self
=no
4355 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4357 if test "x$lt_cv_dlopen_self" = xyes
; then
4358 LDFLAGS
="$LDFLAGS $link_static_flag"
4359 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4360 echo "configure:4361: checking whether a statically linked program can dlopen itself" >&5
4361 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4364 if test "$cross_compiling" = yes; then :
4365 lt_cv_dlopen_self_static
=cross
4367 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
4368 lt_status
=$lt_dlunknown
4369 cat > conftest.
$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4380 # define LT_DLGLOBAL RTLD_GLOBAL
4383 # define LT_DLGLOBAL DL_GLOBAL
4385 # define LT_DLGLOBAL 0
4389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4390 find out it does not work in some platform. */
4391 #ifndef LT_DLLAZY_OR_NOW
4393 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4396 # define LT_DLLAZY_OR_NOW DL_LAZY
4399 # define LT_DLLAZY_OR_NOW RTLD_NOW
4402 # define LT_DLLAZY_OR_NOW DL_NOW
4404 # define LT_DLLAZY_OR_NOW 0
4412 extern "C" void exit (int);
4415 void fnord() { int i=42;}
4418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4419 int status = $lt_dlunknown;
4423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4425 /* dlclose (self); */
4431 if { (eval echo configure
:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
4432 (.
/conftest
; exit; ) 2>/dev
/null
4435 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
4436 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
4437 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
4440 # compilation failed
4441 lt_cv_dlopen_self_static
=no
4449 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4452 CPPFLAGS
="$save_CPPFLAGS"
4453 LDFLAGS
="$save_LDFLAGS"
4458 case $lt_cv_dlopen_self in
4459 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
4460 *) enable_dlopen_self
=unknown
;;
4463 case $lt_cv_dlopen_self_static in
4464 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
4465 *) enable_dlopen_self_static
=unknown
;;
4470 if test "$enable_shared" = yes && test "$GCC" = yes; then
4471 case $archive_cmds in
4473 # FIXME: we may have to deal with multi-command sequences.
4476 # Test whether the compiler implicitly links with -lc since on some
4477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4478 # to ld, don't add -lc before -lgcc.
4479 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4480 echo "configure:4481: checking whether -lc should be explicitly linked in" >&5
4481 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4485 echo 'static int dummy;' > conftest.
$ac_ext
4487 if { (eval echo configure
:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4490 libobjs
=conftest.
$ac_objext
4492 wl
=$lt_cv_prog_cc_wl
4498 save_allow_undefined_flag
=$allow_undefined_flag
4499 allow_undefined_flag
=
4500 if { (eval echo configure
:4501: \"$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; }
4502 lt_cv_archive_cmds_need_lc
=no
4504 lt_cv_archive_cmds_need_lc
=yes
4506 allow_undefined_flag
=$save_allow_undefined_flag
4508 cat conftest.err
1>&5
4512 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4516 need_lc
=${lt_cv_archive_cmds_need_lc-yes}
4518 # The second clause should only fire when bootstrapping the
4519 # libtool distribution, otherwise you forgot to ship ltmain.sh
4520 # with your package, and you will get complaints that there are
4521 # no rules to generate ltmain.sh.
4522 if test -f "$ltmain"; then
4525 # If there is no Makefile yet, we rely on a make rule to execute
4526 # `config.status --recheck' to rerun these tests and create the
4527 # libtool script then.
4528 test -f Makefile
&& make "$ltmain"
4531 if test -f "$ltmain"; then
4532 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4535 echo creating
$ofile
4537 # Now quote all the things that may contain metacharacters while being
4538 # careful not to overquote the AC_SUBSTed values. We take copies of the
4539 # variables and quote the copies for generation of the libtool script.
4540 for var
in echo old_CC old_CFLAGS \
4541 AR AR_FLAGS CC LD LN_S NM SHELL \
4542 reload_flag reload_cmds wl \
4543 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4544 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4545 library_names_spec soname_spec \
4546 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4547 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4548 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4549 old_striplib striplib file_magic_cmd export_symbols_cmds \
4550 deplibs_check_method allow_undefined_flag no_undefined_flag \
4551 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4552 hardcode_libdir_flag_spec hardcode_libdir_separator \
4553 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4554 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms
; do
4557 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4558 old_postinstall_cmds | old_postuninstall_cmds | \
4559 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4560 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4561 postinstall_cmds | postuninstall_cmds | \
4562 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
4563 # Double-quote double-evaled strings.
4564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4572 cat <<__EOF__ > "${ofile}T"
4575 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4579 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4580 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4582 # This program is free software; you can redistribute it and/or modify
4583 # it under the terms of the GNU General Public License as published by
4584 # the Free Software Foundation; either version 2 of the License, or
4585 # (at your option) any later version.
4587 # This program is distributed in the hope that it will be useful, but
4588 # WITHOUT ANY WARRANTY; without even the implied warranty of
4589 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4590 # General Public License for more details.
4592 # You should have received a copy of the GNU General Public License
4593 # along with this program; if not, write to the Free Software
4594 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4596 # As a special exception to the GNU General Public License, if you
4597 # distribute this file as part of a program that contains a
4598 # configuration script generated by Autoconf, you may include it under
4599 # the same distribution terms that you use for the rest of that program.
4601 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4602 Xsed="sed -e s/^X//"
4604 # The HP-UX ksh and POSIX shell print the target directory to stdout
4606 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4608 # ### BEGIN LIBTOOL CONFIG
4610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4612 # Shell to use when invoking shell scripts.
4615 # Whether or not to build shared libraries.
4616 build_libtool_libs=$enable_shared
4618 # Whether or not to add -lc for building shared libraries.
4619 build_libtool_need_lc=$need_lc
4621 # Whether or not to build static libraries.
4622 build_old_libs=$enable_static
4624 # Whether or not to optimize for fast installation.
4625 fast_install=$enable_fast_install
4628 host_alias=$host_alias
4631 # An echo program that does not interpret backslashes.
4636 AR_FLAGS=$lt_AR_FLAGS
4638 # The default C compiler.
4641 # Is the compiler the GNU C compiler?
4644 # The linker used to build libraries.
4647 # Whether we need hard or soft links.
4650 # A BSD-compatible nm program.
4653 # A symbol stripping program
4656 # Used to examine libraries when file_magic_cmd begins "file"
4657 MAGIC_CMD=$MAGIC_CMD
4659 # Used on cygwin: DLL creation program.
4662 # Used on cygwin: object dumper.
4665 # Used on cygwin: assembler.
4668 # The name of the directory that contains temporary libtool files.
4671 # How to create reloadable object files.
4672 reload_flag=$lt_reload_flag
4673 reload_cmds=$lt_reload_cmds
4675 # How to pass a linker flag through the compiler.
4678 # Object file suffix (normally "o").
4681 # Old archive suffix (normally "a").
4684 # Executable file suffix (normally "").
4687 # Additional compiler flags for building library objects.
4688 pic_flag=$lt_pic_flag
4691 # Does compiler simultaneously support -c and -o options?
4692 compiler_c_o=$lt_compiler_c_o
4694 # Can we write directly to a .lo ?
4695 compiler_o_lo=$lt_compiler_o_lo
4697 # Must we lock files when doing compilation ?
4698 need_locks=$lt_need_locks
4700 # Do we need the lib prefix for modules?
4701 need_lib_prefix=$need_lib_prefix
4703 # Do we need a version for libraries?
4704 need_version=$need_version
4706 # Whether dlopen is supported.
4707 dlopen_support=$enable_dlopen
4709 # Whether dlopen of programs is supported.
4710 dlopen_self=$enable_dlopen_self
4712 # Whether dlopen of statically linked programs is supported.
4713 dlopen_self_static=$enable_dlopen_self_static
4715 # Compiler flag to prevent dynamic linking.
4716 link_static_flag=$lt_link_static_flag
4718 # Compiler flag to turn off builtin functions.
4719 no_builtin_flag=$lt_no_builtin_flag
4721 # Compiler flag to allow reflexive dlopens.
4722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4724 # Compiler flag to generate shared objects directly from archives.
4725 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4727 # Compiler flag to generate thread-safe objects.
4728 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4730 # Library versioning type.
4731 version_type=$version_type
4733 # Format of library name prefix.
4734 libname_spec=$lt_libname_spec
4736 # List of archive names. First name is the real one, the rest are links.
4737 # The last name is the one that the linker finds with -lNAME.
4738 library_names_spec=$lt_library_names_spec
4740 # The coded name of the library, if different from the real name.
4741 soname_spec=$lt_soname_spec
4743 # Commands used to build and install an old-style archive.
4745 old_archive_cmds=$lt_old_archive_cmds
4746 old_postinstall_cmds=$lt_old_postinstall_cmds
4747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4749 # Create an old-style archive from a shared archive.
4750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
4752 # Create a temporary old-style archive to link instead of a shared archive.
4753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
4755 # Commands used to build and install a shared archive.
4756 archive_cmds=$lt_archive_cmds
4757 archive_expsym_cmds=$lt_archive_expsym_cmds
4758 postinstall_cmds=$lt_postinstall_cmds
4759 postuninstall_cmds=$lt_postuninstall_cmds
4761 # Commands to strip libraries.
4762 old_striplib=$lt_old_striplib
4763 striplib=$lt_striplib
4765 # Method to check whether dependent libraries are shared objects.
4766 deplibs_check_method=$lt_deplibs_check_method
4768 # Command to use when deplibs_check_method == file_magic.
4769 file_magic_cmd=$lt_file_magic_cmd
4771 # Flag that allows shared libraries with undefined symbols to be built.
4772 allow_undefined_flag=$lt_allow_undefined_flag
4774 # Flag that forces no undefined symbols.
4775 no_undefined_flag=$lt_no_undefined_flag
4777 # Commands used to finish a libtool library installation in a directory.
4778 finish_cmds=$lt_finish_cmds
4780 # Same as above, but a single script fragment to be evaled but not shown.
4781 finish_eval=$lt_finish_eval
4783 # Take the output of nm and produce a listing of raw symbols and C names.
4784 global_symbol_pipe=$lt_global_symbol_pipe
4786 # Transform the output of nm in a proper C declaration
4787 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
4789 # This is the shared library runtime path variable.
4790 runpath_var=$runpath_var
4792 # This is the shared library path variable.
4793 shlibpath_var=$shlibpath_var
4795 # Is shlibpath searched before the hard-coded library search path?
4796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4798 # How to hardcode a shared library path into an executable.
4799 hardcode_action=$hardcode_action
4801 # Whether we should hardcode library paths into libraries.
4802 hardcode_into_libs=$hardcode_into_libs
4804 # Flag to hardcode \$libdir into a binary during linking.
4805 # This must work even if \$libdir does not exist.
4806 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
4808 # Whether we need a single -rpath flag with a separated argument.
4809 hardcode_libdir_separator=$lt_hardcode_libdir_separator
4811 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
4813 hardcode_direct=$hardcode_direct
4815 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4817 hardcode_minus_L=$hardcode_minus_L
4819 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4820 # the resulting binary.
4821 hardcode_shlibpath_var=$hardcode_shlibpath_var
4823 # Variables whose values should be saved in libtool wrapper scripts and
4824 # restored at relink time.
4825 variables_saved_for_relink="$variables_saved_for_relink"
4827 # Whether libtool must link a program against all its dependency libraries.
4828 link_all_deplibs=$link_all_deplibs
4830 # Compile-time system search path for libraries
4831 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4833 # Run-time system search path for libraries
4834 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4836 # Fix the shell variable \$srcfile for the compiler.
4837 fix_srcfile_path="$fix_srcfile_path"
4839 # Set to yes if exported symbols are required.
4840 always_export_symbols=$always_export_symbols
4842 # The commands to list exported symbols.
4843 export_symbols_cmds=$lt_export_symbols_cmds
4845 # The commands to extract the exported symbol list from a shared archive.
4846 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4848 # Symbols that should not be listed in the preloaded symbols.
4849 exclude_expsyms=$lt_exclude_expsyms
4851 # Symbols that must always be exported.
4852 include_expsyms=$lt_include_expsyms
4854 # ### END LIBTOOL CONFIG
4860 cat <<\EOF
>> "${ofile}T"
4862 # AIX sometimes has problems with the GCC collect2 program. For some
4863 # reason, if we set the COLLECT_NAMES environment variable, the problems
4864 # vanish in a puff of smoke.
4865 if test "X${COLLECT_NAMES+set}" != Xset
; then
4867 export COLLECT_NAMES
4874 cygwin
* | mingw
* | pw32
* | os2
*)
4875 cat <<'EOF' >> "${ofile}T"
4876 # This is a source program that is used to create dlls on Windows
4877 # Don't remove nor modify the starting and closing comments
4878 # /* ltdll.c starts here */
4879 # #define WIN32_LEAN_AND_MEAN
4880 # #include <windows.h>
4881 # #undef WIN32_LEAN_AND_MEAN
4882 # #include <stdio.h>
4884 # #ifndef __CYGWIN__
4885 # # ifdef __CYGWIN32__
4886 # # define __CYGWIN__ __CYGWIN32__
4890 # #ifdef __cplusplus
4893 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
4894 # #ifdef __cplusplus
4899 # #include <cygwin/cygwin_dll.h>
4900 # DECLARE_CYGWIN_DLL( DllMain );
4902 # HINSTANCE __hDllInstance_base;
4905 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
4907 # __hDllInstance_base = hInst;
4910 # /* ltdll.c ends here */
4911 # This is a source program that is used to create import libraries
4912 # on Windows for dlls which lack them. Don't remove nor modify the
4913 # starting and closing comments
4914 # /* impgen.c starts here */
4915 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
4917 # This file is part of GNU libtool.
4919 # This program is free software; you can redistribute it and/or modify
4920 # it under the terms of the GNU General Public License as published by
4921 # the Free Software Foundation; either version 2 of the License, or
4922 # (at your option) any later version.
4924 # This program is distributed in the hope that it will be useful,
4925 # but WITHOUT ANY WARRANTY; without even the implied warranty of
4926 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4927 # GNU General Public License for more details.
4929 # You should have received a copy of the GNU General Public License
4930 # along with this program; if not, write to the Free Software
4931 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4934 # #include <stdio.h> /* for printf() */
4935 # #include <unistd.h> /* for open(), lseek(), read() */
4936 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
4937 # #include <string.h> /* for strdup() */
4939 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
4941 # #define O_BINARY 0
4944 # static unsigned int
4945 # pe_get16 (fd, offset)
4949 # unsigned char b[2];
4950 # lseek (fd, offset, SEEK_SET);
4952 # return b[0] + (b[1]<<8);
4955 # static unsigned int
4956 # pe_get32 (fd, offset)
4960 # unsigned char b[4];
4961 # lseek (fd, offset, SEEK_SET);
4963 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
4966 # static unsigned int
4970 # unsigned char *b = ptr;
4971 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
4980 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
4981 # unsigned long export_rva, export_size, nsections, secptr, expptr;
4982 # unsigned long name_rvas, nexp;
4983 # unsigned char *expdata, *erva;
4984 # char *filename, *dll_name;
4986 # filename = argv[1];
4988 # dll = open(filename, O_RDONLY|O_BINARY);
4992 # dll_name = filename;
4994 # for (i=0; filename[i]; i++)
4995 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
4996 # dll_name = filename + i +1;
4998 # pe_header_offset = pe_get32 (dll, 0x3c);
4999 # opthdr_ofs = pe_header_offset + 4 + 20;
5000 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5002 # if (num_entries < 1) /* no exports */
5005 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5006 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5007 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5008 # secptr = (pe_header_offset + 4 + 20 +
5009 # pe_get16 (dll, pe_header_offset + 4 + 16));
5012 # for (i = 0; i < nsections; i++)
5015 # unsigned long secptr1 = secptr + 40 * i;
5016 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5017 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5018 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5019 # lseek(dll, secptr1, SEEK_SET);
5020 # read(dll, sname, 8);
5021 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5023 # expptr = fptr + (export_rva - vaddr);
5024 # if (export_rva + export_size > vaddr + vsize)
5025 # export_size = vsize - (export_rva - vaddr);
5030 # expdata = (unsigned char*)malloc(export_size);
5031 # lseek (dll, expptr, SEEK_SET);
5032 # read (dll, expdata, export_size);
5033 # erva = expdata - export_rva;
5035 # nexp = pe_as32 (expdata+24);
5036 # name_rvas = pe_as32 (expdata+32);
5038 # printf ("EXPORTS\n");
5039 # for (i = 0; i<nexp; i++)
5041 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5042 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5047 # /* impgen.c ends here */
5053 # We use sed instead of cat because bash on DJGPP gets confused if
5054 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5055 # text mode, it properly converts lines to CR/LF. This bash problem
5056 # is reportedly fixed, but why not run on old versions too?
5057 sed '$q' "$ltmain" >> "${ofile}T" ||
(rm -f "${ofile}T"; exit 1)
5059 mv -f "${ofile}T" "$ofile" || \
5060 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5068 # This can be used to rebuild libtool when needed
5069 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
5071 # Always use our own libtool.
5072 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
5074 # Prevent multiple expansion
5080 for ac_hdr
in langinfo.h
5082 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5084 echo "configure:5085: checking for $ac_hdr" >&5
5085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 cat > conftest.
$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5093 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5094 { (eval echo configure
:5095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5095 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5096 if test -z "$ac_err"; then
5098 eval "ac_cv_header_$ac_safe=yes"
5101 echo "configure: failed program was:" >&5
5102 cat conftest.
$ac_ext >&5
5104 eval "ac_cv_header_$ac_safe=no"
5108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5111 cat >> confdefs.h
<<EOF
5112 #define $ac_tr_hdr 1
5116 echo "$ac_t""no" 1>&6
5120 for ac_func
in nl_langinfo
5122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5123 echo "configure:5124: checking for $ac_func" >&5
5124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5127 cat > conftest.
$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5130 /* System header to define __stub macros and hopefully few prototypes,
5131 which can conflict with char $ac_func(); below. */
5133 /* Override any gcc2 internal prototype to avoid an error. */
5134 /* We use char because int might match the return type of a gcc2
5135 builtin and then its argument prototype would still apply. */
5140 /* The GNU C library defines this for functions which it implements
5141 to always fail with ENOSYS. Some functions are actually named
5142 something starting with __ and the normal name is an alias. */
5143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5151 if { (eval echo configure
:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5153 eval "ac_cv_func_$ac_func=yes"
5155 echo "configure: failed program was:" >&5
5156 cat conftest.
$ac_ext >&5
5158 eval "ac_cv_func_$ac_func=no"
5163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5164 echo "$ac_t""yes" 1>&6
5165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5166 cat >> confdefs.h
<<EOF
5167 #define $ac_tr_func 1
5171 echo "$ac_t""no" 1>&6
5176 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5177 echo "configure:5178: checking for nl_langinfo and CODESET" >&5
5178 if eval "test \"`echo '$''{'jm_cv_langinfo_codeset'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 cat > conftest.
$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 #include <langinfo.h>
5186 char* cs = nl_langinfo(CODESET);
5189 if { (eval echo configure
:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5191 jm_cv_langinfo_codeset
=yes
5193 echo "configure: failed program was:" >&5
5194 cat conftest.
$ac_ext >&5
5196 jm_cv_langinfo_codeset
=no
5202 echo "$ac_t""$jm_cv_langinfo_codeset" 1>&6
5203 if test $jm_cv_langinfo_codeset = yes; then
5204 cat >> confdefs.h
<<\EOF
5205 #define HAVE_LANGINFO_CODESET 1
5211 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5212 echo "configure:5213: checking whether we are using the GNU C Library 2.1 or newer" >&5
5213 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 cat > conftest.
$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5220 #include <features.h>
5221 #ifdef __GNU_LIBRARY__
5222 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5231 ac_cv_gnu_library_2_1
=yes
5234 ac_cv_gnu_library_2_1
=no
5242 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5244 GLIBC21
="$ac_cv_gnu_library_2_1"
5247 for ac_hdr
in stddef.h stdlib.h string.h
5249 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5251 echo "configure:5252: checking for $ac_hdr" >&5
5252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5255 cat > conftest.
$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5260 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5261 { (eval echo configure
:5262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5262 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5263 if test -z "$ac_err"; then
5265 eval "ac_cv_header_$ac_safe=yes"
5268 echo "configure: failed program was:" >&5
5269 cat conftest.
$ac_ext >&5
5271 eval "ac_cv_header_$ac_safe=no"
5275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5276 echo "$ac_t""yes" 1>&6
5277 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5278 cat >> confdefs.h
<<EOF
5279 #define $ac_tr_hdr 1
5283 echo "$ac_t""no" 1>&6
5287 for ac_func
in setlocale
5289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5290 echo "configure:5291: checking for $ac_func" >&5
5291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 cat > conftest.
$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297 /* System header to define __stub macros and hopefully few prototypes,
5298 which can conflict with char $ac_func(); below. */
5300 /* Override any gcc2 internal prototype to avoid an error. */
5301 /* We use char because int might match the return type of a gcc2
5302 builtin and then its argument prototype would still apply. */
5307 /* The GNU C library defines this for functions which it implements
5308 to always fail with ENOSYS. Some functions are actually named
5309 something starting with __ and the normal name is an alias. */
5310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5318 if { (eval echo configure
:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5320 eval "ac_cv_func_$ac_func=yes"
5322 echo "configure: failed program was:" >&5
5323 cat conftest.
$ac_ext >&5
5325 eval "ac_cv_func_$ac_func=no"
5330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5332 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5333 cat >> confdefs.h
<<EOF
5334 #define $ac_tr_func 1
5338 echo "$ac_t""no" 1>&6
5344 cat > confcache
<<\EOF
5345 # This file is a shell script that caches the results of configure
5346 # tests run on this system so they can be shared between configure
5347 # scripts and configure runs. It is not useful on other systems.
5348 # If it contains results you don't want to keep, you may remove or edit it.
5350 # By default, configure uses ./config.cache as the cache file,
5351 # creating it if it does not exist already. You can give configure
5352 # the --cache-file=FILE option to use a different cache file; that is
5353 # what configure does when it calls configure scripts in
5354 # subdirectories, so they share the cache.
5355 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5356 # config.status only pays attention to the cache file if you give it the
5357 # --recheck option to rerun configure.
5360 # The following way of writing the cache mishandles newlines in values,
5361 # but we know of no workaround that is simple, portable, and efficient.
5362 # So, don't put newlines in cache variables' values.
5363 # Ultrix sh set writes to stderr and can't be redirected directly,
5364 # and sets the high bit in the cache file unless we assign to the vars.
5366 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5368 # `set' does not quote correctly, so add quotes (double-quote substitution
5369 # turns \\\\ into \\, and sed turns \\ into \).
5371 -e "s/'/'\\\\''/g" \
5372 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5375 # `set' quotes correctly as required by POSIX, so do not add quotes.
5376 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5379 if cmp -s $cache_file confcache
; then
5382 if test -w $cache_file; then
5383 echo "updating cache $cache_file"
5384 cat confcache
> $cache_file
5386 echo "not updating unwritable cache $cache_file"
5391 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5393 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5394 # Let make expand exec_prefix.
5395 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5397 # Any assignment to VPATH causes Sun make to only execute
5398 # the first set of double-colon rules, so remove it if not needed.
5399 # If there is a colon in the path, we need to keep it.
5400 if test "x$srcdir" = x.
; then
5401 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5404 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5406 DEFS
=-DHAVE_CONFIG_H
5408 # Without the "./", some shells look in PATH for config.status.
5409 : ${CONFIG_STATUS=./config.status}
5411 echo creating
$CONFIG_STATUS
5412 rm -f $CONFIG_STATUS
5413 cat > $CONFIG_STATUS <<EOF
5415 # Generated automatically by configure.
5416 # Run this file to recreate the current configuration.
5417 # This directory was configured as follows,
5418 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5420 # $0 $ac_configure_args
5422 # Compiler output produced by configure, useful for debugging
5423 # configure, is in ./config.log if it exists.
5425 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5428 case "\$ac_option" in
5429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5430 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5431 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5432 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5433 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5435 -help | --help | --hel | --he | --h)
5436 echo "\$ac_cs_usage"; exit 0 ;;
5437 *) echo "\$ac_cs_usage"; exit 1 ;;
5441 ac_given_srcdir=$srcdir
5442 ac_given_INSTALL="$INSTALL"
5444 trap 'rm -fr `echo "Makefile lib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5446 cat >> $CONFIG_STATUS <<EOF
5448 # Protect against being on the right side of a sed subst in config.status.
5449 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5450 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5454 s%@CFLAGS@%$CFLAGS%g
5455 s%@CPPFLAGS@%$CPPFLAGS%g
5456 s%@CXXFLAGS@%$CXXFLAGS%g
5457 s%@FFLAGS@%$FFLAGS%g
5459 s%@LDFLAGS@%$LDFLAGS%g
5461 s%@exec_prefix@%$exec_prefix%g
5462 s%@prefix@%$prefix%g
5463 s%@program_transform_name@%$program_transform_name%g
5464 s%@bindir@%$bindir%g
5465 s%@sbindir@%$sbindir%g
5466 s%@libexecdir@%$libexecdir%g
5467 s%@datadir@%$datadir%g
5468 s%@sysconfdir@%$sysconfdir%g
5469 s%@sharedstatedir@%$sharedstatedir%g
5470 s%@localstatedir@%$localstatedir%g
5471 s%@libdir@%$libdir%g
5472 s%@includedir@%$includedir%g
5473 s%@oldincludedir@%$oldincludedir%g
5474 s%@infodir@%$infodir%g
5475 s%@mandir@%$mandir%g
5476 s%@SET_MAKE@%$SET_MAKE%g
5477 s%@PACKAGE@%$PACKAGE%g
5478 s%@VERSION@%$VERSION%g
5481 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5482 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5483 s%@INSTALL_DATA@%$INSTALL_DATA%g
5485 s%@host_alias@%$host_alias%g
5486 s%@host_cpu@%$host_cpu%g
5487 s%@host_vendor@%$host_vendor%g
5488 s%@host_os@%$host_os%g
5489 s%@OBJEXT@%$OBJEXT%g
5490 s%@EXEEXT@%$EXEEXT%g
5492 s%@build_alias@%$build_alias%g
5493 s%@build_cpu@%$build_cpu%g
5494 s%@build_vendor@%$build_vendor%g
5495 s%@build_os@%$build_os%g
5498 s%@RANLIB@%$RANLIB%g
5500 s%@LIBTOOL@%$LIBTOOL%g
5501 s%@GLIBC21@%$GLIBC21%g
5506 cat >> $CONFIG_STATUS <<\EOF
5508 # Split the substitutions into bite-sized pieces for seds with
5509 # small command number limits, like on Digital OSF/1 and HP-UX.
5510 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5511 ac_file
=1 # Number of current file.
5512 ac_beg
=1 # First line for current file.
5513 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5516 while $ac_more_lines; do
5517 if test $ac_beg -gt 1; then
5518 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5520 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5522 if test ! -s conftest.s
$ac_file; then
5524 rm -f conftest.s
$ac_file
5526 if test -z "$ac_sed_cmds"; then
5527 ac_sed_cmds
="sed -f conftest.s$ac_file"
5529 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5531 ac_file
=`expr $ac_file + 1`
5533 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5536 if test -z "$ac_sed_cmds"; then
5541 cat >> $CONFIG_STATUS <<EOF
5543 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile"}
5545 cat >> $CONFIG_STATUS <<\EOF
5546 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5549 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5550 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5551 *) ac_file_in
="${ac_file}.in" ;;
5554 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5556 # Remove last slash and all that follows it. Not all systems have dirname.
5557 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5559 # The file is in a subdirectory.
5560 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5561 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5562 # A "../" for each directory in $ac_dir_suffix.
5563 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5565 ac_dir_suffix
= ac_dots
=
5568 case "$ac_given_srcdir" in
5570 if test -z "$ac_dots"; then top_srcdir
=.
5571 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5572 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5574 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5575 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5578 case "$ac_given_INSTALL" in
5579 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5580 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5583 echo creating
"$ac_file"
5585 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5587 *Makefile
*) ac_comsub
="1i\\
5588 # $configure_input" ;;
5592 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5594 s%@configure_input@%$configure_input%g
5595 s%@srcdir@%$srcdir%g
5596 s%@top_srcdir@%$top_srcdir%g
5597 s%@INSTALL@%$INSTALL%g
5598 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5602 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5603 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5605 # ac_d sets the value in "#define NAME VALUE" lines.
5606 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5607 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5610 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5611 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5612 ac_uB
='\([ ]\)%\1#\2define\3'
5615 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5616 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5617 ac_eB
='$%\1#\2define\3'
5621 if test "${CONFIG_HEADERS+set}" != set; then
5623 cat >> $CONFIG_STATUS <<EOF
5624 CONFIG_HEADERS="config.h"
5626 cat >> $CONFIG_STATUS <<\EOF
5628 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5631 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5632 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5633 *) ac_file_in
="${ac_file}.in" ;;
5636 echo creating
$ac_file
5638 rm -f conftest.frag conftest.
in conftest.out
5639 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5640 cat $ac_file_inputs > conftest.
in
5644 # Transform confdefs.h into a sed script conftest.vals that substitutes
5645 # the proper values into config.h.in to produce config.h. And first:
5646 # Protect against being on the right side of a sed subst in config.status.
5647 # Protect against being in an unquoted here document in config.status.
5649 cat > conftest.hdr
<<\EOF
5652 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5656 sed -n -f conftest.hdr confdefs.h > conftest.vals
5659 # This sed command replaces #undef with comments. This is necessary, for
5660 # example, in the case of _POSIX_SOURCE, which is predefined and required
5661 # on some systems where configure will not decide to define it.
5662 cat >> conftest.vals <<\EOF
5663 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5666 # Break up conftest.vals because some shells have a limit on
5667 # the size of here documents, and old seds have small limits too.
5672 ac_lines=`grep -c . conftest.vals
`
5673 # grep -c gives empty output for an empty file on some AIX systems.
5674 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5675 # Write a limited-size here document to conftest.frag.
5676 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5677 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5679 sed -f conftest.frag conftest.in > conftest.out
5681 mv conftest.out conftest.in
5683 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5685 mv conftest.tail conftest.vals
5689 cat >> $CONFIG_STATUS <<\EOF
5690 rm -f conftest.frag conftest.h
5691 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5692 cat conftest.in >> conftest.h
5694 if cmp -s $ac_file conftest.h 2>/dev/null; then
5695 echo "$ac_file is unchanged"
5698 # Remove last slash and all that follows it. Not all systems have dirname.
5699 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5700 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5701 # The file is in a subdirectory.
5702 test ! -d "$ac_dir" && mkdir "$ac_dir"
5705 mv conftest.h $ac_file
5710 cat >> $CONFIG_STATUS <<EOF
5713 cat >> $CONFIG_STATUS <<\EOF
5717 chmod +x $CONFIG_STATUS
5718 rm -fr confdefs* $ac_clean_files
5719 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1