2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
21 # Check that we are running under the correct shell.
22 SHELL=${CONFIG_SHELL-/bin/sh}
26 # Remove one level of quotation (which was required for Make).
27 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32 if test "X$1" = X--no-reexec; then
33 # Discard the --no-reexec flag, and continue.
35 elif test "X$1" = X--fallback-echo; then
36 # Avoid inline document here, it may be left over
38 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39 # Yippee, $echo works!
42 # Restart under the correct shell.
43 exec $SHELL "$0" --no-reexec ${1+"$@"}
46 if test "X$1" = X--fallback-echo; then
47 # used as fallback echo
55 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59 if test -z "$ECHO"; then
60 if test "X${echo_test_string+set}" != Xset; then
61 # find a string as large as possible, as long as the shell can cope with it
62 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65 echo_test_string="`eval $cmd`" &&
66 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
73 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75 test "X$echo_testing_string" = "X$echo_test_string"; then
78 # The Solaris, AIX, and Digital Unix default echo programs unquote
79 # backslashes. This makes it impossible to quote backslashes using
80 # echo "$something" | sed 's/\\/\\\\/g'
82 # So, first we look for a working echo in the user's PATH.
84 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85 for dir in $PATH /usr/ucb; do
86 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
96 if test "X$echo" = Xecho; then
97 # We didn't find a better echo, so look for alternatives.
98 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100 test "X$echo_testing_string" = "X$echo_test_string"; then
101 # This shell has a builtin print -r that does the trick.
103 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104 test "X$CONFIG_SHELL" != X/bin/ksh; then
105 # If we have ksh, try running configure again with it.
106 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107 export ORIGINAL_CONFIG_SHELL
108 CONFIG_SHELL=/bin/ksh
110 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116 test "X$echo_testing_string" = "X$echo_test_string"; then
119 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 SHELL="$CONFIG_SHELL"
127 echo="$CONFIG_SHELL $0 --fallback-echo"
128 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129 test "X$echo_testing_string" = 'X\t' &&
130 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131 test "X$echo_testing_string" = "X$echo_test_string"; then
132 echo="$CONFIG_SHELL $0 --fallback-echo"
134 # maybe with a smaller string...
137 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
145 if test "$prev" != 'sed 50q "$0"'; then
146 echo_test_string=`eval $prev`
147 export echo_test_string
148 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 # Oops. We lost completely, so just stick with echo.
159 # Copy echo and quote the copy suitably for passing to libtool from
160 # the Makefile, instead of quoting the original, which is used later.
162 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
166 # Avoid depending upon Character Ranges.
167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170 as_cr_digits='0123456789'
171 as_cr_alnum=$as_cr_Letters$as_cr_digits
173 # Sed expression to map a string onto a valid variable name.
174 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
176 # Sed expression to map a string onto a valid CPP name.
177 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
179 # Be Bourne compatible
180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187 # Name of the executable.
188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Support unset when possible.
217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
234 # We need space, tab and new line, in precisely that order.
240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 ac_default_prefix=/usr/local
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 ac_unique_file="configure.in"
265 # Initialize some variables set by options.
267 ac_init_version=false
268 # The variables have the same names as the options, with
269 # dashes changed to underlines.
277 program_transform_name=s,x,x,
285 # Installation directory options.
286 # These are left unexpanded so users can "make install exec_prefix=/foo"
287 # and all the variables that are supposed to be based on exec_prefix
288 # by default will actually change.
289 # Use braces instead of parens because sh, perl, etc. also accept them.
290 bindir='${exec_prefix}/bin'
291 sbindir='${exec_prefix}/sbin'
292 libexecdir='${exec_prefix}/libexec'
293 datadir='${prefix}/share'
294 sysconfdir='${prefix}/etc'
295 sharedstatedir='${prefix}/com'
296 localstatedir='${prefix}/var'
297 libdir='${exec_prefix}/lib'
298 includedir='${prefix}/include'
299 oldincludedir='/usr/include'
300 infodir='${prefix}/info'
301 mandir='${prefix}/man'
303 # Identity of this package.
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
320 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
322 # Accept the important Cygnus configure options, so we can diagnose typos.
326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
331 -build | --build | --buil | --bui | --bu)
332 ac_prev=build_alias ;;
333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
334 build_alias=$ac_optarg ;;
336 -cache-file | --cache-file | --cache-fil | --cache-fi \
337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
338 ac_prev=cache_file ;;
339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
341 cache_file=$ac_optarg ;;
344 cache_file=config.cache ;;
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
350 datadir=$ac_optarg ;;
352 -disable-* | --disable-*)
353 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
354 # Reject names that are not valid shell variable names.
355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
359 eval "enable_$ac_feature=no" ;;
361 -enable-* | --enable-*)
362 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
363 # Reject names that are not valid shell variable names.
364 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
365 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366 { (exit 1); exit 1; }; }
367 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
369 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
372 eval "enable_$ac_feature='$ac_optarg'" ;;
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix=$ac_optarg ;;
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
387 -help | --help | --hel | --he | -h)
389 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
390 ac_init_help=recursive ;;
391 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
392 ac_init_help=short ;;
394 -host | --host | --hos | --ho)
395 ac_prev=host_alias ;;
396 -host=* | --host=* | --hos=* | --ho=*)
397 host_alias=$ac_optarg ;;
399 -includedir | --includedir | --includedi | --included | --include \
400 | --includ | --inclu | --incl | --inc)
401 ac_prev=includedir ;;
402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
403 | --includ=* | --inclu=* | --incl=* | --inc=*)
404 includedir=$ac_optarg ;;
406 -infodir | --infodir | --infodi | --infod | --info | --inf)
408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
409 infodir=$ac_optarg ;;
411 -libdir | --libdir | --libdi | --libd)
413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
417 | --libexe | --libex | --libe)
418 ac_prev=libexecdir ;;
419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
420 | --libexe=* | --libex=* | --libe=*)
421 libexecdir=$ac_optarg ;;
423 -localstatedir | --localstatedir | --localstatedi | --localstated \
424 | --localstate | --localstat | --localsta | --localst \
425 | --locals | --local | --loca | --loc | --lo)
426 ac_prev=localstatedir ;;
427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
428 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
429 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
430 localstatedir=$ac_optarg ;;
432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
438 # Obsolete; use --without-fp.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
451 | --oldin | --oldi | --old | --ol | --o)
452 ac_prev=oldincludedir ;;
453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
456 oldincludedir=$ac_optarg ;;
458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
464 | --program-pre | --program-pr | --program-p)
465 ac_prev=program_prefix ;;
466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
468 program_prefix=$ac_optarg ;;
470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
471 | --program-suf | --program-su | --program-s)
472 ac_prev=program_suffix ;;
473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
475 program_suffix=$ac_optarg ;;
477 -program-transform-name | --program-transform-name \
478 | --program-transform-nam | --program-transform-na \
479 | --program-transform-n | --program-transform- \
480 | --program-transform | --program-transfor \
481 | --program-transfo | --program-transf \
482 | --program-trans | --program-tran \
483 | --progr-tra | --program-tr | --program-t)
484 ac_prev=program_transform_name ;;
485 -program-transform-name=* | --program-transform-name=* \
486 | --program-transform-nam=* | --program-transform-na=* \
487 | --program-transform-n=* | --program-transform-=* \
488 | --program-transform=* | --program-transfor=* \
489 | --program-transfo=* | --program-transf=* \
490 | --program-trans=* | --program-tran=* \
491 | --progr-tra=* | --program-tr=* | --program-t=*)
492 program_transform_name=$ac_optarg ;;
494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495 | -silent | --silent | --silen | --sile | --sil)
498 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
500 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
502 sbindir=$ac_optarg ;;
504 -sharedstatedir | --sharedstatedir | --sharedstatedi \
505 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
506 | --sharedst | --shareds | --shared | --share | --shar \
508 ac_prev=sharedstatedir ;;
509 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
510 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
511 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
513 sharedstatedir=$ac_optarg ;;
515 -site | --site | --sit)
517 -site=* | --site=* | --sit=*)
520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
525 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
526 | --syscon | --sysco | --sysc | --sys | --sy)
527 ac_prev=sysconfdir ;;
528 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
529 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
530 sysconfdir=$ac_optarg ;;
532 -target | --target | --targe | --targ | --tar | --ta | --t)
533 ac_prev=target_alias ;;
534 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
535 target_alias=$ac_optarg ;;
537 -v | -verbose | --verbose | --verbos | --verbo | --verb)
540 -version | --version | --versio | --versi | --vers | -V)
544 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid package name: $ac_package" >&2
548 { (exit 1); exit 1; }; }
549 ac_package=`echo $ac_package| sed 's/-/_/g'`
551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554 eval "with_$ac_package='$ac_optarg'" ;;
556 -without-* | --without-*)
557 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid package name: $ac_package" >&2
561 { (exit 1); exit 1; }; }
562 ac_package=`echo $ac_package | sed 's/-/_/g'`
563 eval "with_$ac_package=no" ;;
566 # Obsolete; use --with-x.
569 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
570 | --x-incl | --x-inc | --x-in | --x-i)
571 ac_prev=x_includes ;;
572 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
573 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
574 x_includes=$ac_optarg ;;
576 -x-libraries | --x-libraries | --x-librarie | --x-librari \
577 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
578 ac_prev=x_libraries ;;
579 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
580 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
581 x_libraries=$ac_optarg ;;
583 -*) { echo "$as_me: error: unrecognized option: $ac_option
584 Try \`$0 --help' for more information." >&2
585 { (exit 1); exit 1; }; }
589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593 { (exit 1); exit 1; }; }
594 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595 eval "$ac_envvar='$ac_optarg'"
599 # FIXME: should be removed in autoconf 3.0.
600 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
602 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 if test -n "$ac_prev"; then
610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
611 { echo "$as_me: error: missing argument to $ac_option" >&2
612 { (exit 1); exit 1; }; }
615 # Be sure to have absolute paths.
616 for ac_var in exec_prefix prefix
618 eval ac_val=$`echo $ac_var`
620 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
621 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622 { (exit 1); exit 1; }; };;
626 # Be sure to have absolute paths.
627 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628 localstatedir libdir includedir oldincludedir infodir mandir
630 eval ac_val=$`echo $ac_var`
632 [\\/$]* | ?:[\\/]* ) ;;
633 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634 { (exit 1); exit 1; }; };;
638 # There might be people who depend on the old broken behavior: `$host'
639 # used to hold the argument of --host etc.
644 # FIXME: should be removed in autoconf 3.0.
645 if test "x$host_alias" != x; then
646 if test "x$build_alias" = x; then
647 cross_compiling=maybe
648 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649 If a cross compiler is detected then cross compile mode will be used." >&2
650 elif test "x$build_alias" != "x$host_alias"; then
656 test -n "$host_alias" && ac_tool_prefix=$host_alias-
658 test "$silent" = yes && exec 6>/dev/null
660 # Find the source files, if location was not specified.
661 if test -z "$srcdir"; then
662 ac_srcdir_defaulted=yes
663 # Try the directory containing this script, then its parent.
665 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
666 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
668 if test ! -r $srcdir/$ac_unique_file; then
672 ac_srcdir_defaulted=no
674 if test ! -r $srcdir/$ac_unique_file; then
675 if test "$ac_srcdir_defaulted" = yes; then
676 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
677 { (exit 1); exit 1; }; }
679 { echo "$as_me: error: cannot find sources in $srcdir" >&2
680 { (exit 1); exit 1; }; }
683 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
684 ac_env_build_alias_set=${build_alias+set}
685 ac_env_build_alias_value=$build_alias
686 ac_cv_env_build_alias_set=${build_alias+set}
687 ac_cv_env_build_alias_value=$build_alias
688 ac_env_host_alias_set=${host_alias+set}
689 ac_env_host_alias_value=$host_alias
690 ac_cv_env_host_alias_set=${host_alias+set}
691 ac_cv_env_host_alias_value=$host_alias
692 ac_env_target_alias_set=${target_alias+set}
693 ac_env_target_alias_value=$target_alias
694 ac_cv_env_target_alias_set=${target_alias+set}
695 ac_cv_env_target_alias_value=$target_alias
696 ac_env_CC_set=${CC+set}
698 ac_cv_env_CC_set=${CC+set}
699 ac_cv_env_CC_value=$CC
700 ac_env_CFLAGS_set=${CFLAGS+set}
701 ac_env_CFLAGS_value=$CFLAGS
702 ac_cv_env_CFLAGS_set=${CFLAGS+set}
703 ac_cv_env_CFLAGS_value=$CFLAGS
704 ac_env_LDFLAGS_set=${LDFLAGS+set}
705 ac_env_LDFLAGS_value=$LDFLAGS
706 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
707 ac_cv_env_LDFLAGS_value=$LDFLAGS
708 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
709 ac_env_CPPFLAGS_value=$CPPFLAGS
710 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
711 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
712 ac_env_CPP_set=${CPP+set}
713 ac_env_CPP_value=$CPP
714 ac_cv_env_CPP_set=${CPP+set}
715 ac_cv_env_CPP_value=$CPP
718 # Report the --help message.
720 if test "$ac_init_help" = "long"; then
721 # Omit some internal or obsolete options to make the list less imposing.
722 # This message is too long to be a string in the A/UX 3.1 sh.
724 \`configure' configures this package to adapt to many kinds of systems.
726 Usage: $0 [OPTION]... [VAR=VALUE]...
728 To assign environment variables (e.g., CC, CFLAGS...), specify them as
729 VAR=VALUE. See below for descriptions of some of the useful variables.
731 Defaults for the options are specified in brackets.
734 -h, --help display this help and exit
735 --help=short display options specific to this package
736 --help=recursive display the short help of all the included packages
737 -V, --version display version information and exit
738 -q, --quiet, --silent do not print \`checking...' messages
739 --cache-file=FILE cache test results in FILE [disabled]
740 -C, --config-cache alias for \`--cache-file=config.cache'
741 -n, --no-create do not create output files
742 --srcdir=DIR find the sources in DIR [configure dir or \`..']
747 Installation directories:
748 --prefix=PREFIX install architecture-independent files in PREFIX
750 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
753 By default, \`make install' will install all the files in
754 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
755 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
756 for instance \`--prefix=\$HOME'.
758 For better control, use the options below.
760 Fine tuning of the installation directories:
761 --bindir=DIR user executables [EPREFIX/bin]
762 --sbindir=DIR system admin executables [EPREFIX/sbin]
763 --libexecdir=DIR program executables [EPREFIX/libexec]
764 --datadir=DIR read-only architecture-independent data [PREFIX/share]
765 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
766 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
767 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
768 --libdir=DIR object code libraries [EPREFIX/lib]
769 --includedir=DIR C header files [PREFIX/include]
770 --oldincludedir=DIR C header files for non-gcc [/usr/include]
771 --infodir=DIR info documentation [PREFIX/info]
772 --mandir=DIR man documentation [PREFIX/man]
778 --program-prefix=PREFIX prepend PREFIX to installed program names
779 --program-suffix=SUFFIX append SUFFIX to installed program names
780 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
783 --build=BUILD configure for building on BUILD [guessed]
784 --host=HOST build programs to run on HOST [BUILD]
788 if test -n "$ac_init_help"; then
793 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
794 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
795 --enable-shared=PKGS build shared libraries default=yes
796 --enable-static=PKGS build static libraries default=yes
797 --enable-fast-install=PKGS optimize for fast installation default=yes
798 --disable-libtool-lock avoid locking (might break parallel builds)
801 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
802 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
803 --with-gnu-ld assume the C compiler uses GNU ld default=no
804 --with-pic try to use only PIC/non-PIC objects default=use both
806 Some influential environment variables:
807 CC C compiler command
808 CFLAGS C compiler flags
809 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
810 nonstandard directory <lib dir>
811 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
812 headers in a nonstandard directory <include dir>
815 Use these variables to override the choices made by `configure' or to help
816 it to find libraries and programs with nonstandard names/locations.
821 if test "$ac_init_help" = "recursive"; then
822 # If there are subdirs, report their specific --help.
824 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
826 # A "../" for each directory in /$ac_subdir.
827 ac_dots=`echo $ac_subdir |
828 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
831 .) # No --srcdir option. We are building in place.
832 ac_sub_srcdir=$srcdir ;;
833 [\\/]* | ?:[\\/]* ) # Absolute path.
834 ac_sub_srcdir=$srcdir/$ac_subdir ;;
836 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
839 # Check for guested configure; otherwise get Cygnus style configure.
840 if test -f $ac_sub_srcdir/configure.gnu; then
842 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
843 elif test -f $ac_sub_srcdir/configure; then
845 $SHELL $ac_sub_srcdir/configure --help=recursive
846 elif test -f $ac_sub_srcdir/configure.ac ||
847 test -f $ac_sub_srcdir/configure.in; then
851 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
857 test -n "$ac_init_help" && exit 0
858 if $ac_init_version; then
861 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
862 Free Software Foundation, Inc.
863 This configure script is free software; the Free Software Foundation
864 gives unlimited permission to copy, distribute and modify it.
870 This file contains any messages produced by compilers while
871 running configure, to aid debugging if configure makes a mistake.
873 It was created by $as_me, which was
874 generated by GNU Autoconf 2.52. Invocation command line was
885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
897 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
914 # Keep a trace of the command line.
915 # Strip out --no-create and --no-recursion so they do not pile up.
916 # Also quote any args containing shell meta-characters.
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c) ;;
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
926 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
927 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
928 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
930 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
933 # Get rid of the leading space.
936 # When interrupted or exit'd, cleanup temporary files, and complete
937 # config.log. We remove comments because anyway the quotes in there
938 # would cause problems or look ugly.
940 # Save into config.log some information that might help in debugging.
942 echo "## ----------------- ##" >&5
943 echo "## Cache variables. ##" >&5
944 echo "## ----------------- ##" >&5
946 # The following way of writing the cache mishandles newlines in values,
949 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
952 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
957 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
961 sed "/^$/d" confdefs.h >conftest.log
962 if test -s conftest.log; then
964 echo "## ------------ ##" >&5
965 echo "## confdefs.h. ##" >&5
966 echo "## ------------ ##" >&5
971 test "$ac_signal" != 0 &&
972 echo "$as_me: caught signal $ac_signal" >&5
973 echo "$as_me: exit $exit_status" >&5
974 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
977 for ac_signal in 1 2 13 15; do
978 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
983 rm -rf conftest* confdefs.h
984 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
987 # Let the site file select an alternate cache file if it wants to.
988 # Prefer explicitly selected file to automatically selected ones.
989 if test -z "$CONFIG_SITE"; then
990 if test "x$prefix" != xNONE; then
991 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
993 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
996 for ac_site_file in $CONFIG_SITE; do
997 if test -r "$ac_site_file"; then
998 { echo "$as_me:998: loading site script $ac_site_file" >&5
999 echo "$as_me: loading site script $ac_site_file" >&6;}
1000 cat "$ac_site_file" >&5
1005 if test -r "$cache_file"; then
1006 # Some versions of bash will fail to source /dev/null (special
1007 # files actually), so we avoid doing that.
1008 if test -f "$cache_file"; then
1009 { echo "$as_me:1009: loading cache $cache_file" >&5
1010 echo "$as_me: loading cache $cache_file" >&6;}
1012 [\\/]* | ?:[\\/]* ) . $cache_file;;
1013 *) . ./$cache_file;;
1017 { echo "$as_me:1017: creating cache $cache_file" >&5
1018 echo "$as_me: creating cache $cache_file" >&6;}
1022 # Check that the precious variables saved in the cache have kept the same
1024 ac_cache_corrupted=false
1025 for ac_var in `(set) 2>&1 |
1026 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1028 eval ac_new_set=\$ac_env_${ac_var}_set
1029 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1030 eval ac_new_val="\$ac_env_${ac_var}_value"
1031 case $ac_old_set,$ac_new_set in
1033 { echo "$as_me:1033: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1034 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1035 ac_cache_corrupted=: ;;
1037 { echo "$as_me:1037: error: \`$ac_var' was not set in the previous run" >&5
1038 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1039 ac_cache_corrupted=: ;;
1042 if test "x$ac_old_val" != "x$ac_new_val"; then
1043 { echo "$as_me:1043: error: \`$ac_var' has changed since the previous run:" >&5
1044 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1045 { echo "$as_me:1045: former value: $ac_old_val" >&5
1046 echo "$as_me: former value: $ac_old_val" >&2;}
1047 { echo "$as_me:1047: current value: $ac_new_val" >&5
1048 echo "$as_me: current value: $ac_new_val" >&2;}
1049 ac_cache_corrupted=:
1052 # Pass precious variables to config.status. It doesn't matter if
1053 # we pass some twice (in addition to the command line arguments).
1054 if test "$ac_new_set" = set; then
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1058 ac_configure_args="$ac_configure_args '$ac_arg'"
1060 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1065 if $ac_cache_corrupted; then
1066 { echo "$as_me:1066: error: changes in the environment can compromise the build" >&5
1067 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1068 { { echo "$as_me:1068: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1069 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1070 { (exit 1); exit 1; }; }
1074 ac_cpp='$CPP $CPPFLAGS'
1075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1079 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1080 *c*,-n*) ECHO_N= ECHO_C='
1082 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1083 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1085 echo "#! $SHELL" >conftest.sh
1086 echo "exit 0" >>conftest.sh
1087 chmod +x conftest.sh
1088 if { (echo "$as_me:1088: PATH=\".;.\"; conftest.sh") >&5
1089 (PATH=".;."; conftest.sh) 2>&5
1091 echo "$as_me:1091: \$? = $ac_status" >&5
1092 (exit $ac_status); }; then
1093 ac_path_separator=';'
1097 PATH_SEPARATOR="$ac_path_separator"
1100 ac_config_headers="$ac_config_headers config.h"
1102 ac_config_commands="$ac_config_commands default-1"
1105 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1106 if test -f $ac_dir/install-sh; then
1108 ac_install_sh="$ac_aux_dir/install-sh -c"
1110 elif test -f $ac_dir/install.sh; then
1112 ac_install_sh="$ac_aux_dir/install.sh -c"
1114 elif test -f $ac_dir/shtool; then
1116 ac_install_sh="$ac_aux_dir/shtool install -c"
1120 if test -z "$ac_aux_dir"; then
1121 { { echo "$as_me:1121: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1122 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1123 { (exit 1); exit 1; }; }
1125 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1126 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1127 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1129 # Find a good install program. We prefer a C program (faster),
1130 # so one script is as good as another. But avoid the broken or
1131 # incompatible versions:
1132 # SysV /etc/install, /usr/sbin/install
1133 # SunOS /usr/etc/install
1134 # IRIX /sbin/install
1136 # AmigaOS /C/install, which installs bootblocks on floppy discs
1137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1140 # ./install, which can be erroneously created by make from ./install.sh.
1141 echo "$as_me:1141: checking for a BSD compatible install" >&5
1142 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1143 if test -z "$INSTALL"; then
1144 if test "${ac_cv_path_install+set}" = set; then
1145 echo $ECHO_N "(cached) $ECHO_C" >&6
1147 ac_save_IFS=$IFS; IFS=$ac_path_separator
1148 for ac_dir in $PATH; do
1150 # Account for people who put trailing slashes in PATH elements.
1152 / | ./ | .// | /cC/* \
1153 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1156 # OSF1 and SCO ODT 3.0 have their own names for install.
1157 # Don't use installbsd from OSF since it installs stuff as root
1159 for ac_prog in ginstall scoinst install; do
1160 if $as_executable_p "$ac_dir/$ac_prog"; then
1161 if test $ac_prog = install &&
1162 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1163 # AIX install. It has an incompatible calling convention.
1165 elif test $ac_prog = install &&
1166 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1167 # program-specific install script used by HP pwplus--don't use.
1170 ac_cv_path_install="$ac_dir/$ac_prog -c"
1180 if test "${ac_cv_path_install+set}" = set; then
1181 INSTALL=$ac_cv_path_install
1183 # As a last resort, use the slow shell script. We don't cache a
1184 # path for INSTALL within a source directory, because that will
1185 # break other packages using the cache if that directory is
1186 # removed, or if the path is relative.
1187 INSTALL=$ac_install_sh
1190 echo "$as_me:1190: result: $INSTALL" >&5
1191 echo "${ECHO_T}$INSTALL" >&6
1193 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1194 # It thinks the first close brace ends the variable substitution.
1195 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1197 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1199 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1201 echo "$as_me:1201: checking whether build environment is sane" >&5
1202 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1205 echo timestamp > conftestfile
1206 # Do `set' in a subshell so we don't clobber the current shell's
1207 # arguments. Must try -L first in case configure is actually a
1208 # symlink; some systems play weird games with the mod time of symlinks
1209 # (eg FreeBSD returns the mod time of the symlink's containing
1212 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1213 if test "$*" = "X"; then
1215 set X `ls -t $srcdir/configure conftestfile`
1217 if test "$*" != "X $srcdir/configure conftestfile" \
1218 && test "$*" != "X conftestfile $srcdir/configure"; then
1220 # If neither matched, then we have a broken ls. This can happen
1221 # if, for instance, CONFIG_SHELL is bash and it inherits a
1222 # broken ls alias from the environment. This has actually
1223 # happened. Such a system could not be considered "sane".
1224 { { echo "$as_me:1224: error: ls -t appears to fail. Make sure there is not a broken
1225 alias in your environment" >&5
1226 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1227 alias in your environment" >&2;}
1228 { (exit 1); exit 1; }; }
1231 test "$2" = conftestfile
1237 { { echo "$as_me:1237: error: newly created file is older than distributed files!
1238 Check your system clock" >&5
1239 echo "$as_me: error: newly created file is older than distributed files!
1240 Check your system clock" >&2;}
1241 { (exit 1); exit 1; }; }
1244 echo "$as_me:1244: result: yes" >&5
1245 echo "${ECHO_T}yes" >&6
1246 test "$program_prefix" != NONE &&
1247 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1248 # Use a double $ so make ignores it.
1249 test "$program_suffix" != NONE &&
1250 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1251 # Double any \ or $. echo might interpret backslashes.
1252 # By default was `s,x,x', remove it if useless.
1253 cat <<\_ACEOF >conftest.sed
1254 s/[\\$]/&&/g;s/;s,x,x,$//
1256 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1259 echo "$as_me:1259: checking whether ${MAKE-make} sets \${MAKE}" >&5
1260 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1261 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1262 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1265 cat >conftest.make <<\EOF
1267 @echo 'ac_maketemp="${MAKE}"'
1269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1270 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1271 if test -n "$ac_maketemp"; then
1272 eval ac_cv_prog_make_${ac_make}_set=yes
1274 eval ac_cv_prog_make_${ac_make}_set=no
1278 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1279 echo "$as_me:1279: result: yes" >&5
1280 echo "${ECHO_T}yes" >&6
1283 echo "$as_me:1283: result: no" >&5
1284 echo "${ECHO_T}no" >&6
1285 SET_MAKE="MAKE=${MAKE-make}"
1292 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1293 { { echo "$as_me:1293: error: source directory already configured; run \"make distclean\" there first" >&5
1294 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1295 { (exit 1); exit 1; }; }
1298 cat >>confdefs.h <<EOF
1299 #define PACKAGE "$PACKAGE"
1302 cat >>confdefs.h <<EOF
1303 #define VERSION "$VERSION"
1306 missing_dir=`cd $ac_aux_dir && pwd`
1307 echo "$as_me:1307: checking for working aclocal" >&5
1308 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1309 # Run test in a subshell; some versions of sh will print an error if
1310 # an executable is not found, even if stderr is redirected.
1311 # Redirect stdin to placate older versions of autoconf. Sigh.
1312 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1314 echo "$as_me:1314: result: found" >&5
1315 echo "${ECHO_T}found" >&6
1317 ACLOCAL="$missing_dir/missing aclocal"
1318 echo "$as_me:1318: result: missing" >&5
1319 echo "${ECHO_T}missing" >&6
1322 echo "$as_me:1322: checking for working autoconf" >&5
1323 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1324 # Run test in a subshell; some versions of sh will print an error if
1325 # an executable is not found, even if stderr is redirected.
1326 # Redirect stdin to placate older versions of autoconf. Sigh.
1327 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1329 echo "$as_me:1329: result: found" >&5
1330 echo "${ECHO_T}found" >&6
1332 AUTOCONF="$missing_dir/missing autoconf"
1333 echo "$as_me:1333: result: missing" >&5
1334 echo "${ECHO_T}missing" >&6
1337 echo "$as_me:1337: checking for working automake" >&5
1338 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1339 # Run test in a subshell; some versions of sh will print an error if
1340 # an executable is not found, even if stderr is redirected.
1341 # Redirect stdin to placate older versions of autoconf. Sigh.
1342 if (automake --version) < /dev/null > /dev/null 2>&1; then
1344 echo "$as_me:1344: result: found" >&5
1345 echo "${ECHO_T}found" >&6
1347 AUTOMAKE="$missing_dir/missing automake"
1348 echo "$as_me:1348: result: missing" >&5
1349 echo "${ECHO_T}missing" >&6
1352 echo "$as_me:1352: checking for working autoheader" >&5
1353 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1354 # Run test in a subshell; some versions of sh will print an error if
1355 # an executable is not found, even if stderr is redirected.
1356 # Redirect stdin to placate older versions of autoconf. Sigh.
1357 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1358 AUTOHEADER=autoheader
1359 echo "$as_me:1359: result: found" >&5
1360 echo "${ECHO_T}found" >&6
1362 AUTOHEADER="$missing_dir/missing autoheader"
1363 echo "$as_me:1363: result: missing" >&5
1364 echo "${ECHO_T}missing" >&6
1367 echo "$as_me:1367: checking for working makeinfo" >&5
1368 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1369 # Run test in a subshell; some versions of sh will print an error if
1370 # an executable is not found, even if stderr is redirected.
1371 # Redirect stdin to placate older versions of autoconf. Sigh.
1372 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1374 echo "$as_me:1374: result: found" >&5
1375 echo "${ECHO_T}found" >&6
1377 MAKEINFO="$missing_dir/missing makeinfo"
1378 echo "$as_me:1378: result: missing" >&5
1379 echo "${ECHO_T}missing" >&6
1383 ac_cpp='$CPP $CPPFLAGS'
1384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1389 ac_cpp='$CPP $CPPFLAGS'
1390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1393 if test -n "$ac_tool_prefix"; then
1394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1396 echo "$as_me:1396: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_CC+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 if test -n "$CC"; then
1402 ac_cv_prog_CC="$CC" # Let the user override the test.
1404 ac_save_IFS=$IFS; IFS=$ac_path_separator
1406 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 $as_executable_p "$ac_dir/$ac_word" || continue
1410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1418 if test -n "$CC"; then
1419 echo "$as_me:1419: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1422 echo "$as_me:1422: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1427 if test -z "$ac_cv_prog_CC"; then
1429 # Extract the first word of "gcc", so it can be a program name with args.
1430 set dummy gcc; ac_word=$2
1431 echo "$as_me:1431: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$ac_ct_CC"; then
1437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1439 ac_save_IFS=$IFS; IFS=$ac_path_separator
1441 for ac_dir in $ac_dummy; do
1443 test -z "$ac_dir" && ac_dir=.
1444 $as_executable_p "$ac_dir/$ac_word" || continue
1445 ac_cv_prog_ac_ct_CC="gcc"
1446 echo "$as_me:1446: found $ac_dir/$ac_word" >&5
1452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1453 if test -n "$ac_ct_CC"; then
1454 echo "$as_me:1454: result: $ac_ct_CC" >&5
1455 echo "${ECHO_T}$ac_ct_CC" >&6
1457 echo "$as_me:1457: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1466 if test -z "$CC"; then
1467 if test -n "$ac_tool_prefix"; then
1468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1469 set dummy ${ac_tool_prefix}cc; ac_word=$2
1470 echo "$as_me:1470: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1478 ac_save_IFS=$IFS; IFS=$ac_path_separator
1480 for ac_dir in $ac_dummy; do
1482 test -z "$ac_dir" && ac_dir=.
1483 $as_executable_p "$ac_dir/$ac_word" || continue
1484 ac_cv_prog_CC="${ac_tool_prefix}cc"
1485 echo "$as_me:1485: found $ac_dir/$ac_word" >&5
1492 if test -n "$CC"; then
1493 echo "$as_me:1493: result: $CC" >&5
1494 echo "${ECHO_T}$CC" >&6
1496 echo "$as_me:1496: result: no" >&5
1497 echo "${ECHO_T}no" >&6
1501 if test -z "$ac_cv_prog_CC"; then
1503 # Extract the first word of "cc", so it can be a program name with args.
1504 set dummy cc; ac_word=$2
1505 echo "$as_me:1505: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 if test -n "$ac_ct_CC"; then
1511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513 ac_save_IFS=$IFS; IFS=$ac_path_separator
1515 for ac_dir in $ac_dummy; do
1517 test -z "$ac_dir" && ac_dir=.
1518 $as_executable_p "$ac_dir/$ac_word" || continue
1519 ac_cv_prog_ac_ct_CC="cc"
1520 echo "$as_me:1520: found $ac_dir/$ac_word" >&5
1526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528 echo "$as_me:1528: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1531 echo "$as_me:1531: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1541 if test -z "$CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:1544: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 ac_save_IFS=$IFS; IFS=$ac_path_separator
1555 for ac_dir in $ac_dummy; do
1557 test -z "$ac_dir" && ac_dir=.
1558 $as_executable_p "$ac_dir/$ac_word" || continue
1559 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1560 ac_prog_rejected=yes
1564 echo "$as_me:1564: found $ac_dir/$ac_word" >&5
1568 if test $ac_prog_rejected = yes; then
1569 # We found a bogon in the path, so make sure we never use it.
1570 set dummy $ac_cv_prog_CC
1572 if test $# != 0; then
1573 # We chose a different compiler from the bogus one.
1574 # However, it has the same basename, so the bogon will be chosen
1575 # first if we set CC to just the basename; use the full file name.
1577 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1585 if test -n "$CC"; then
1586 echo "$as_me:1586: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1589 echo "$as_me:1589: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1594 if test -z "$CC"; then
1595 if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1600 echo "$as_me:1600: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 ac_save_IFS=$IFS; IFS=$ac_path_separator
1610 for ac_dir in $ac_dummy; do
1612 test -z "$ac_dir" && ac_dir=.
1613 $as_executable_p "$ac_dir/$ac_word" || continue
1614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1615 echo "$as_me:1615: found $ac_dir/$ac_word" >&5
1622 if test -n "$CC"; then
1623 echo "$as_me:1623: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1626 echo "$as_me:1626: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 test -n "$CC" && break
1633 if test -z "$CC"; then
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:1639: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647 ac_save_IFS=$IFS; IFS=$ac_path_separator
1649 for ac_dir in $ac_dummy; do
1651 test -z "$ac_dir" && ac_dir=.
1652 $as_executable_p "$ac_dir/$ac_word" || continue
1653 ac_cv_prog_ac_ct_CC="$ac_prog"
1654 echo "$as_me:1654: found $ac_dir/$ac_word" >&5
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:1662: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1665 echo "$as_me:1665: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 test -n "$ac_ct_CC" && break
1677 test -z "$CC" && { { echo "$as_me:1677: error: no acceptable cc found in \$PATH" >&5
1678 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1679 { (exit 1); exit 1; }; }
1681 # Provide some information about the compiler.
1682 echo "$as_me:1682:" \
1683 "checking for C compiler version" >&5
1684 ac_compiler=`set X $ac_compile; echo $2`
1685 { (eval echo "$as_me:1685: \"$ac_compiler --version </dev/null >&5\"") >&5
1686 (eval $ac_compiler --version </dev/null >&5) 2>&5
1688 echo "$as_me:1688: \$? = $ac_status" >&5
1689 (exit $ac_status); }
1690 { (eval echo "$as_me:1690: \"$ac_compiler -v </dev/null >&5\"") >&5
1691 (eval $ac_compiler -v </dev/null >&5) 2>&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }
1695 { (eval echo "$as_me:1695: \"$ac_compiler -V </dev/null >&5\"") >&5
1696 (eval $ac_compiler -V </dev/null >&5) 2>&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1701 cat >conftest.$ac_ext <<_ACEOF
1702 #line 1702 "configure"
1703 #include "confdefs.h"
1713 ac_clean_files_save=$ac_clean_files
1714 ac_clean_files="$ac_clean_files a.out a.exe"
1715 # Try to create an executable without -o first, disregard a.out.
1716 # It will help us diagnose broken compilers, and finding out an intuition
1718 echo "$as_me:1718: checking for C compiler default output" >&5
1719 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1720 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1721 if { (eval echo "$as_me:1721: \"$ac_link_default\"") >&5
1722 (eval $ac_link_default) 2>&5
1724 echo "$as_me:1724: \$? = $ac_status" >&5
1725 (exit $ac_status); }; then
1726 # Find the output, starting from the most likely. This scheme is
1727 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1729 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1730 ls a.out conftest 2>/dev/null;
1731 ls a.* conftest.* 2>/dev/null`; do
1733 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1734 a.out ) # We found the default executable, but exeext='' is most
1737 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1738 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1745 echo "$as_me: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1747 { { echo "$as_me:1747: error: C compiler cannot create executables" >&5
1748 echo "$as_me: error: C compiler cannot create executables" >&2;}
1749 { (exit 77); exit 77; }; }
1752 ac_exeext=$ac_cv_exeext
1753 echo "$as_me:1753: result: $ac_file" >&5
1754 echo "${ECHO_T}$ac_file" >&6
1756 # Check the compiler produces executables we can run. If not, either
1757 # the compiler is broken, or we cross compile.
1758 echo "$as_me:1758: checking whether the C compiler works" >&5
1759 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1760 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1761 # If not cross compiling, check that we can run a simple program.
1762 if test "$cross_compiling" != yes; then
1763 if { ac_try='./$ac_file'
1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }; }; then
1771 if test "$cross_compiling" = maybe; then
1774 { { echo "$as_me:1774: error: cannot run C compiled programs.
1775 If you meant to cross compile, use \`--host'." >&5
1776 echo "$as_me: error: cannot run C compiled programs.
1777 If you meant to cross compile, use \`--host'." >&2;}
1778 { (exit 1); exit 1; }; }
1782 echo "$as_me:1782: result: yes" >&5
1783 echo "${ECHO_T}yes" >&6
1785 rm -f a.out a.exe conftest$ac_cv_exeext
1786 ac_clean_files=$ac_clean_files_save
1787 # Check the compiler produces executables we can run. If not, either
1788 # the compiler is broken, or we cross compile.
1789 echo "$as_me:1789: checking whether we are cross compiling" >&5
1790 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1791 echo "$as_me:1791: result: $cross_compiling" >&5
1792 echo "${ECHO_T}$cross_compiling" >&6
1794 echo "$as_me:1794: checking for executable suffix" >&5
1795 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1796 if { (eval echo "$as_me:1796: \"$ac_link\"") >&5
1797 (eval $ac_link) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); }; then
1801 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1802 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1803 # work properly (i.e., refer to `conftest.exe'), while it won't with
1805 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1807 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 { { echo "$as_me:1815: error: cannot compute EXEEXT: cannot compile and link" >&5
1816 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1817 { (exit 1); exit 1; }; }
1820 rm -f conftest$ac_cv_exeext
1821 echo "$as_me:1821: result: $ac_cv_exeext" >&5
1822 echo "${ECHO_T}$ac_cv_exeext" >&6
1824 rm -f conftest.$ac_ext
1825 EXEEXT=$ac_cv_exeext
1827 echo "$as_me:1827: checking for object suffix" >&5
1828 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1829 if test "${ac_cv_objext+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 cat >conftest.$ac_ext <<_ACEOF
1833 #line 1833 "configure"
1834 #include "confdefs.h"
1844 rm -f conftest.o conftest.obj
1845 if { (eval echo "$as_me:1845: \"$ac_compile\"") >&5
1846 (eval $ac_compile) 2>&5
1848 echo "$as_me:1848: \$? = $ac_status" >&5
1849 (exit $ac_status); }; then
1850 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1858 echo "$as_me: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 { { echo "$as_me:1860: error: cannot compute OBJEXT: cannot compile" >&5
1861 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1862 { (exit 1); exit 1; }; }
1865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1867 echo "$as_me:1867: result: $ac_cv_objext" >&5
1868 echo "${ECHO_T}$ac_cv_objext" >&6
1869 OBJEXT=$ac_cv_objext
1871 echo "$as_me:1871: checking whether we are using the GNU C compiler" >&5
1872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1891 rm -f conftest.$ac_objext
1892 if { (eval echo "$as_me:1892: \"$ac_compile\"") >&5
1893 (eval $ac_compile) 2>&5
1895 echo "$as_me:1895: \$? = $ac_status" >&5
1896 (exit $ac_status); } &&
1897 { ac_try='test -s conftest.$ac_objext'
1898 { (eval echo "$as_me:1898: \"$ac_try\"") >&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); }; }; then
1905 echo "$as_me: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1909 rm -f conftest.$ac_objext conftest.$ac_ext
1910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1913 echo "$as_me:1913: result: $ac_cv_c_compiler_gnu" >&5
1914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1915 GCC=`test $ac_compiler_gnu = yes && echo yes`
1916 ac_test_CFLAGS=${CFLAGS+set}
1917 ac_save_CFLAGS=$CFLAGS
1919 echo "$as_me:1919: checking whether $CC accepts -g" >&5
1920 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1921 if test "${ac_cv_prog_cc_g+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 cat >conftest.$ac_ext <<_ACEOF
1925 #line 1925 "configure"
1926 #include "confdefs.h"
1936 rm -f conftest.$ac_objext
1937 if { (eval echo "$as_me:1937: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1940 echo "$as_me:1940: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:1943: \"$ac_try\"") >&5
1946 echo "$as_me:1946: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1950 echo "$as_me: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1954 rm -f conftest.$ac_objext conftest.$ac_ext
1956 echo "$as_me:1956: result: $ac_cv_prog_cc_g" >&5
1957 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1958 if test "$ac_test_CFLAGS" = set; then
1959 CFLAGS=$ac_save_CFLAGS
1960 elif test $ac_cv_prog_cc_g = yes; then
1961 if test "$GCC" = yes; then
1967 if test "$GCC" = yes; then
1973 # Some people use a C++ compiler to compile C. Since we use `exit',
1974 # in C++ we need to declare it. In case someone uses the same compiler
1975 # for both compiling C and C++ we need to have the C++ compiler decide
1976 # the declaration of exit, since it's the most demanding environment.
1977 cat >conftest.$ac_ext <<_ACEOF
1982 rm -f conftest.$ac_objext
1983 if { (eval echo "$as_me:1983: \"$ac_compile\"") >&5
1984 (eval $ac_compile) 2>&5
1986 echo "$as_me:1986: \$? = $ac_status" >&5
1987 (exit $ac_status); } &&
1988 { ac_try='test -s conftest.$ac_objext'
1989 { (eval echo "$as_me:1989: \"$ac_try\"") >&5
1992 echo "$as_me:1992: \$? = $ac_status" >&5
1993 (exit $ac_status); }; }; then
1994 for ac_declaration in \
1996 '#include <stdlib.h>' \
1997 'extern "C" void std::exit (int) throw (); using std::exit;' \
1998 'extern "C" void std::exit (int); using std::exit;' \
1999 'extern "C" void exit (int) throw ();' \
2000 'extern "C" void exit (int);' \
2003 cat >conftest.$ac_ext <<_ACEOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2016 rm -f conftest.$ac_objext
2017 if { (eval echo "$as_me:2017: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2020 echo "$as_me:2020: \$? = $ac_status" >&5
2021 (exit $ac_status); } &&
2022 { ac_try='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:2023: \"$ac_try\"") >&5
2026 echo "$as_me:2026: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2030 echo "$as_me: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2034 rm -f conftest.$ac_objext conftest.$ac_ext
2035 cat >conftest.$ac_ext <<_ACEOF
2036 #line 2036 "configure"
2037 #include "confdefs.h"
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:2048: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>&5
2051 echo "$as_me:2051: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -s conftest.$ac_objext'
2054 { (eval echo "$as_me:2054: \"$ac_try\"") >&5
2057 echo "$as_me:2057: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2061 echo "$as_me: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2064 rm -f conftest.$ac_objext conftest.$ac_ext
2067 if test -n "$ac_declaration"; then
2068 echo '#ifdef __cplusplus' >>confdefs.h
2069 echo $ac_declaration >>confdefs.h
2070 echo '#endif' >>confdefs.h
2074 echo "$as_me: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2077 rm -f conftest.$ac_objext conftest.$ac_ext
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084 # Check whether --enable-shared or --disable-shared was given.
2085 if test "${enable_shared+set}" = set; then
2086 enableval="$enable_shared"
2087 p=${PACKAGE-default}
2089 yes) enable_shared=yes ;;
2090 no) enable_shared=no ;;
2093 # Look at the argument we got. We use all the common list separators.
2094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2095 for pkg in $enableval; do
2096 if test "X$pkg" = "X$p"; then
2106 # Check whether --enable-static or --disable-static was given.
2107 if test "${enable_static+set}" = set; then
2108 enableval="$enable_static"
2109 p=${PACKAGE-default}
2111 yes) enable_static=yes ;;
2112 no) enable_static=no ;;
2115 # Look at the argument we got. We use all the common list separators.
2116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2117 for pkg in $enableval; do
2118 if test "X$pkg" = "X$p"; then
2128 # Check whether --enable-fast-install or --disable-fast-install was given.
2129 if test "${enable_fast_install+set}" = set; then
2130 enableval="$enable_fast_install"
2131 p=${PACKAGE-default}
2133 yes) enable_fast_install=yes ;;
2134 no) enable_fast_install=no ;;
2136 enable_fast_install=no
2137 # Look at the argument we got. We use all the common list separators.
2138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2139 for pkg in $enableval; do
2140 if test "X$pkg" = "X$p"; then
2141 enable_fast_install=yes
2148 enable_fast_install=yes
2150 # Make sure we can run config.sub.
2151 $ac_config_sub sun4 >/dev/null 2>&1 ||
2152 { { echo "$as_me:2152: error: cannot run $ac_config_sub" >&5
2153 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2154 { (exit 1); exit 1; }; }
2156 echo "$as_me:2156: checking build system type" >&5
2157 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2158 if test "${ac_cv_build+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 ac_cv_build_alias=$build_alias
2162 test -z "$ac_cv_build_alias" &&
2163 ac_cv_build_alias=`$ac_config_guess`
2164 test -z "$ac_cv_build_alias" &&
2165 { { echo "$as_me:2165: error: cannot guess build type; you must specify one" >&5
2166 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2167 { (exit 1); exit 1; }; }
2168 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2169 { { echo "$as_me:2169: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2170 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2171 { (exit 1); exit 1; }; }
2174 echo "$as_me:2174: result: $ac_cv_build" >&5
2175 echo "${ECHO_T}$ac_cv_build" >&6
2177 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2178 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2179 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2181 echo "$as_me:2181: checking host system type" >&5
2182 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2183 if test "${ac_cv_host+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 ac_cv_host_alias=$host_alias
2187 test -z "$ac_cv_host_alias" &&
2188 ac_cv_host_alias=$ac_cv_build_alias
2189 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2190 { { echo "$as_me:2190: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2191 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2192 { (exit 1); exit 1; }; }
2195 echo "$as_me:2195: result: $ac_cv_host" >&5
2196 echo "${ECHO_T}$ac_cv_host" >&6
2198 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2199 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2200 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2202 # Find the correct PATH separator. Usually this is `:', but
2203 # DJGPP uses `;' like DOS.
2204 if test "X${PATH_SEPARATOR+set}" != Xset; then
2205 UNAME=${UNAME-`uname 2>/dev/null`}
2207 *-DOS) lt_cv_sys_path_separator=';' ;;
2208 *) lt_cv_sys_path_separator=':' ;;
2210 PATH_SEPARATOR=$lt_cv_sys_path_separator
2213 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2214 if test "${with_gnu_ld+set}" = set; then
2215 withval="$with_gnu_ld"
2216 test "$withval" = no || with_gnu_ld=yes
2221 if test "$GCC" = yes; then
2222 # Check if gcc -print-prog-name=ld gives a path.
2223 echo "$as_me:2223: checking for ld used by GCC" >&5
2224 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2227 # gcc leaves a trailing carriage return which upsets mingw
2228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2233 # Accept absolute paths.
2234 [\\/]* | [A-Za-z]:[\\/]*)
2235 re_direlt='/[^/][^/]*/\.\./'
2236 # Canonicalize the path of ld
2237 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2238 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2239 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2241 test -z "$LD" && LD="$ac_prog"
2244 # If it fails, then pretend we aren't using GCC.
2248 # If it is relative, then search for the first ld in PATH.
2252 elif test "$with_gnu_ld" = yes; then
2253 echo "$as_me:2253: checking for GNU ld" >&5
2254 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2256 echo "$as_me:2256: checking for non-GNU ld" >&5
2257 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2259 if test "${lt_cv_path_LD+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 if test -z "$LD"; then
2263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2264 for ac_dir in $PATH; do
2265 test -z "$ac_dir" && ac_dir=.
2266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2267 lt_cv_path_LD="$ac_dir/$ac_prog"
2268 # Check to see if the program is GNU ld. I'd rather use --version,
2269 # but apparently some GNU ld's only accept -v.
2270 # Break only if it was the GNU/non-GNU ld that we prefer.
2271 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2272 test "$with_gnu_ld" != no && break
2274 test "$with_gnu_ld" != yes && break
2280 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2285 if test -n "$LD"; then
2286 echo "$as_me:2286: result: $LD" >&5
2287 echo "${ECHO_T}$LD" >&6
2289 echo "$as_me:2289: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2292 test -z "$LD" && { { echo "$as_me:2292: error: no acceptable ld found in \$PATH" >&5
2293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2294 { (exit 1); exit 1; }; }
2295 echo "$as_me:2295: checking if the linker ($LD) is GNU ld" >&5
2296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2297 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2301 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2302 lt_cv_prog_gnu_ld=yes
2304 lt_cv_prog_gnu_ld=no
2307 echo "$as_me:2307: result: $lt_cv_prog_gnu_ld" >&5
2308 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2309 with_gnu_ld=$lt_cv_prog_gnu_ld
2311 echo "$as_me:2311: checking for $LD option to reload object files" >&5
2312 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2313 if test "${lt_cv_ld_reload_flag+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 lt_cv_ld_reload_flag='-r'
2318 echo "$as_me:2318: result: $lt_cv_ld_reload_flag" >&5
2319 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2320 reload_flag=$lt_cv_ld_reload_flag
2321 test -n "$reload_flag" && reload_flag=" $reload_flag"
2323 echo "$as_me:2323: checking for BSD-compatible nm" >&5
2324 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2325 if test "${lt_cv_path_NM+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$NM"; then
2329 # Let the user override the test.
2332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2333 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2334 test -z "$ac_dir" && ac_dir=.
2335 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2336 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2337 # Check to see if the nm accepts a BSD-compat flag.
2338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2339 # nm: unknown option "B" ignored
2340 # Tru64's nm complains that /dev/null is an invalid object file
2341 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2342 lt_cv_path_NM="$tmp_nm -B"
2344 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2345 lt_cv_path_NM="$tmp_nm -p"
2348 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2349 continue # so that we can try to find one that supports BSD flags
2354 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2359 echo "$as_me:2359: result: $NM" >&5
2360 echo "${ECHO_T}$NM" >&6
2362 echo "$as_me:2362: checking whether ln -s works" >&5
2363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2365 if test "$LN_S" = "ln -s"; then
2366 echo "$as_me:2366: result: yes" >&5
2367 echo "${ECHO_T}yes" >&6
2369 echo "$as_me:2369: result: no, using $LN_S" >&5
2370 echo "${ECHO_T}no, using $LN_S" >&6
2373 echo "$as_me:2373: checking how to recognise dependant libraries" >&5
2374 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2375 if test "${lt_cv_deplibs_check_method+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 lt_cv_file_magic_cmd='$MAGIC_CMD'
2379 lt_cv_file_magic_test_file=
2380 lt_cv_deplibs_check_method='unknown'
2381 # Need to set the preceding variable on all platforms that support
2382 # interlibrary dependencies.
2383 # 'none' -- dependencies not supported.
2384 # `unknown' -- same as none, but documents that we really don't know.
2385 # 'pass_all' -- all dependencies passed with no checks.
2386 # 'test_compile' -- check by making test program.
2387 # 'file_magic [[regex]]' -- check by looking for files in library path
2388 # which responds to the $file_magic_cmd with a given egrep regex.
2389 # If you have `file' or equivalent on your system and you're not sure
2390 # whether `pass_all' will *always* work, you probably want this one.
2394 lt_cv_deplibs_check_method=pass_all
2398 lt_cv_deplibs_check_method=pass_all
2402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2403 lt_cv_file_magic_cmd='/usr/bin/file -L'
2404 lt_cv_file_magic_test_file=/shlib/libc.so
2407 cygwin* | mingw* | pw32*)
2408 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2409 lt_cv_file_magic_cmd='$OBJDUMP -f'
2412 darwin* | rhapsody*)
2413 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2414 lt_cv_file_magic_cmd='/usr/bin/file -L'
2416 rhapsody* | darwin1.[012])
2417 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2420 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2426 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2429 # Not sure whether the presence of OpenBSD here was a mistake.
2430 # Let's accept both of them until this is cleared up.
2431 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2432 lt_cv_file_magic_cmd=/usr/bin/file
2433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2437 lt_cv_deplibs_check_method=pass_all
2442 lt_cv_deplibs_check_method=pass_all
2446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2447 lt_cv_file_magic_cmd=/usr/bin/file
2448 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2454 # this will be overridden with pass_all, but let us keep it just in case
2455 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2459 *-32|*"-32 ") libmagic=32-bit;;
2460 *-n32|*"-n32 ") libmagic=N32;;
2461 *-64|*"-64 ") libmagic=64-bit;;
2462 *) libmagic=never-match;;
2464 # this will be overridden with pass_all, but let us keep it just in case
2465 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2468 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2469 lt_cv_deplibs_check_method=pass_all
2472 # This must be Linux ELF.
2475 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2476 lt_cv_deplibs_check_method=pass_all ;;
2478 # glibc up to 2.1.1 does not perform some relocations on ARM
2479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2481 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2485 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2486 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2488 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2493 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2494 lt_cv_file_magic_cmd=/usr/bin/file
2495 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2499 lt_cv_file_magic_cmd=/usr/bin/file
2500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2504 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2508 osf3* | osf4* | osf5*)
2509 # this will be overridden with pass_all, but let us keep it just in case
2510 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2511 lt_cv_file_magic_test_file=/shlib/libc.so
2512 lt_cv_deplibs_check_method=pass_all
2516 lt_cv_deplibs_check_method=pass_all
2520 lt_cv_deplibs_check_method=pass_all
2521 lt_cv_file_magic_test_file=/lib/libc.so
2524 sysv5uw[78]* | sysv4*uw2*)
2525 lt_cv_deplibs_check_method=pass_all
2528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2529 case $host_vendor in
2531 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]'
2532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2535 lt_cv_deplibs_check_method=pass_all
2538 lt_cv_file_magic_cmd='/bin/file'
2539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2542 lt_cv_file_magic_cmd='/bin/file'
2543 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2544 lt_cv_file_magic_test_file=/lib/libc.so
2551 echo "$as_me:2551: result: $lt_cv_deplibs_check_method" >&5
2552 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2553 file_magic_cmd=$lt_cv_file_magic_cmd
2554 deplibs_check_method=$lt_cv_deplibs_check_method
2556 # Check for command to grab the raw symbol name followed by C symbol from nm.
2557 echo "$as_me:2557: checking command to parse $NM output" >&5
2558 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 # These are sane defaults that work on at least a few old systems.
2564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2566 # Character class describing NM global symbol codes.
2567 symcode='[BCDEGRST]'
2569 # Regexp to match symbols that can be accessed directly from C.
2570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2572 # Transform the above into a raw symbol and a C symbol.
2573 symxfrm='\1 \2\3 \3'
2575 # Transform an extracted symbol line into a proper C declaration
2576 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2578 # Transform an extracted symbol line into symbol name and symbol address
2579 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2581 # Define system-specific variables.
2586 cygwin* | mingw* | pw32*)
2587 symcode='[ABCDGISTW]'
2589 hpux*) # Its linker distinguishes data from code symbols
2590 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2591 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2594 symcode='[BCDEGRST]'
2604 # Handle CRLF in mingw tool chain
2608 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2612 # If we're using GNU nm, then use its standard symbol codes.
2613 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2614 symcode='[ABCDGISTW]'
2617 # Try without a prefix undercore, then with it.
2618 for ac_symprfx in "" "_"; do
2620 # Write the raw and C identifiers.
2621 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2623 # Check to see that the pipe works correctly.
2626 cat > conftest.$ac_ext <<EOF
2631 void nm_test_func(){}
2635 int main(){nm_test_var='a';nm_test_func();return(0);}
2638 if { (eval echo "$as_me:2638: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2641 echo "$as_me:2641: \$? = $ac_status" >&5
2642 (exit $ac_status); }; then
2643 # Now try to grab the symbols.
2645 if { (eval echo "$as_me:2645: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2646 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2648 echo "$as_me:2648: \$? = $ac_status" >&5
2649 (exit $ac_status); } && test -s "$nlist"; then
2650 # Try sorting and uniquifying the output.
2651 if sort "$nlist" | uniq > "$nlist"T; then
2652 mv -f "$nlist"T "$nlist"
2657 # Make sure that we snagged all the symbols we need.
2658 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2659 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2660 cat <<EOF > conftest.$ac_ext
2666 # Now generate the symbol file.
2667 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2669 cat <<EOF >> conftest.$ac_ext
2670 #if defined (__STDC__) && __STDC__
2671 # define lt_ptr void *
2673 # define lt_ptr char *
2677 /* The mapping between symbol names and symbols. */
2682 lt_preloaded_symbols[] =
2685 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2686 cat <<\EOF >> conftest.$ac_ext
2694 # Now try linking the two files.
2695 mv conftest.$ac_objext conftstm.$ac_objext
2697 save_CFLAGS="$CFLAGS"
2698 LIBS="conftstm.$ac_objext"
2699 CFLAGS="$CFLAGS$no_builtin_flag"
2700 if { (eval echo "$as_me:2700: \"$ac_link\"") >&5
2701 (eval $ac_link) 2>&5
2703 echo "$as_me:2703: \$? = $ac_status" >&5
2704 (exit $ac_status); } && test -s conftest; then
2708 CFLAGS="$save_CFLAGS"
2710 echo "cannot find nm_test_func in $nlist" >&5
2713 echo "cannot find nm_test_var in $nlist" >&5
2716 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2719 echo "$progname: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 rm -f conftest* conftst*
2724 # Do not use the global_symbol_pipe unless it works.
2725 if test "$pipe_works" = yes; then
2728 lt_cv_sys_global_symbol_pipe=
2734 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2735 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2736 global_symbol_to_cdecl=
2737 global_symbol_to_c_name_address=
2739 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2740 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2742 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2744 echo "$as_me:2744: result: failed" >&5
2745 echo "${ECHO_T}failed" >&6
2747 echo "$as_me:2747: result: ok" >&5
2748 echo "${ECHO_T}ok" >&6
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:2756: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2762 if test -z "$CPP"; then
2763 if test "${ac_cv_prog_CPP+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 # Double quotes because CPP needs to be expanded
2767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2770 for ac_c_preproc_warn_flag in '' yes
2772 # Use a header file that comes with gcc, so configuring glibc
2773 # with a fresh cross-compiler works.
2774 # On the NeXT, cc -E runs the code through the compiler's parser,
2775 # not just through cpp. "Syntax error" is here to catch this case.
2776 cat >conftest.$ac_ext <<_ACEOF
2777 #line 2777 "configure"
2778 #include "confdefs.h"
2782 if { (eval echo "$as_me:2782: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785 egrep -v '^ *\+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:2788: \$? = $ac_status" >&5
2789 (exit $ac_status); } >/dev/null; then
2790 if test -s conftest.err; then
2791 ac_cpp_err=$ac_c_preproc_warn_flag
2798 if test -z "$ac_cpp_err"; then
2801 echo "$as_me: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 # Broken: fails on valid input.
2806 rm -f conftest.err conftest.$ac_ext
2808 # OK, works on sane cases. Now check whether non-existent headers
2809 # can be detected and how.
2810 cat >conftest.$ac_ext <<_ACEOF
2811 #line 2811 "configure"
2812 #include "confdefs.h"
2813 #include <ac_nonexistent.h>
2815 if { (eval echo "$as_me:2815: \"$ac_cpp conftest.$ac_ext\"") >&5
2816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2818 egrep -v '^ *\+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:2821: \$? = $ac_status" >&5
2822 (exit $ac_status); } >/dev/null; then
2823 if test -s conftest.err; then
2824 ac_cpp_err=$ac_c_preproc_warn_flag
2831 if test -z "$ac_cpp_err"; then
2832 # Broken: success on invalid input.
2835 echo "$as_me: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 # Passes both tests.
2841 rm -f conftest.err conftest.$ac_ext
2844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2845 rm -f conftest.err conftest.$ac_ext
2846 if $ac_preproc_ok; then
2858 echo "$as_me:2858: result: $CPP" >&5
2859 echo "${ECHO_T}$CPP" >&6
2861 for ac_c_preproc_warn_flag in '' yes
2863 # Use a header file that comes with gcc, so configuring glibc
2864 # with a fresh cross-compiler works.
2865 # On the NeXT, cc -E runs the code through the compiler's parser,
2866 # not just through cpp. "Syntax error" is here to catch this case.
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #line 2868 "configure"
2869 #include "confdefs.h"
2873 if { (eval echo "$as_me:2873: \"$ac_cpp conftest.$ac_ext\"") >&5
2874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876 egrep -v '^ *\+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); } >/dev/null; then
2881 if test -s conftest.err; then
2882 ac_cpp_err=$ac_c_preproc_warn_flag
2889 if test -z "$ac_cpp_err"; then
2892 echo "$as_me: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 # Broken: fails on valid input.
2897 rm -f conftest.err conftest.$ac_ext
2899 # OK, works on sane cases. Now check whether non-existent headers
2900 # can be detected and how.
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line 2902 "configure"
2903 #include "confdefs.h"
2904 #include <ac_nonexistent.h>
2906 if { (eval echo "$as_me:2906: \"$ac_cpp conftest.$ac_ext\"") >&5
2907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2909 egrep -v '^ *\+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:2912: \$? = $ac_status" >&5
2913 (exit $ac_status); } >/dev/null; then
2914 if test -s conftest.err; then
2915 ac_cpp_err=$ac_c_preproc_warn_flag
2922 if test -z "$ac_cpp_err"; then
2923 # Broken: success on invalid input.
2926 echo "$as_me: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2928 # Passes both tests.
2932 rm -f conftest.err conftest.$ac_ext
2935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2936 rm -f conftest.err conftest.$ac_ext
2937 if $ac_preproc_ok; then
2940 { { echo "$as_me:2940: error: C preprocessor \"$CPP\" fails sanity check" >&5
2941 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2942 { (exit 1); exit 1; }; }
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 for ac_header in dlfcn.h
2953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2954 echo "$as_me:2954: checking for $ac_header" >&5
2955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line 2960 "configure"
2961 #include "confdefs.h"
2962 #include <$ac_header>
2964 if { (eval echo "$as_me:2964: \"$ac_cpp conftest.$ac_ext\"") >&5
2965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967 egrep -v '^ *\+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 echo "$as_me:2970: \$? = $ac_status" >&5
2971 (exit $ac_status); } >/dev/null; then
2972 if test -s conftest.err; then
2973 ac_cpp_err=$ac_c_preproc_warn_flag
2980 if test -z "$ac_cpp_err"; then
2981 eval "$as_ac_Header=yes"
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 eval "$as_ac_Header=no"
2987 rm -f conftest.err conftest.$ac_ext
2989 echo "$as_me:2989: result: `eval echo '${'$as_ac_Header'}'`" >&5
2990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2992 cat >>confdefs.h <<EOF
2993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2999 # Only perform the check for file, if the check method requires it
3000 case $deplibs_check_method in
3002 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3003 echo "$as_me:3003: checking for ${ac_tool_prefix}file" >&5
3004 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3005 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3016 ac_save_MAGIC_CMD="$MAGIC_CMD"
3017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3018 ac_dummy="/usr/bin:$PATH"
3019 for ac_dir in $ac_dummy; do
3020 test -z "$ac_dir" && ac_dir=.
3021 if test -f $ac_dir/${ac_tool_prefix}file; then
3022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3023 if test -n "$file_magic_test_file"; then
3024 case $deplibs_check_method in
3026 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3029 egrep "$file_magic_regex" > /dev/null; then
3034 *** Warning: the command libtool uses to detect shared libraries,
3035 *** $file_magic_cmd, produces output that libtool cannot recognize.
3036 *** The result is that libtool may fail to recognize shared libraries
3037 *** as such. This will affect the creation of libtool libraries that
3038 *** depend on shared libraries, but programs linked with such libtool
3039 *** libraries will work regardless of this problem. Nevertheless, you
3040 *** may want to report the problem to your system manager and/or to
3041 *** bug-libtool@gnu.org
3051 MAGIC_CMD="$ac_save_MAGIC_CMD"
3056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3057 if test -n "$MAGIC_CMD"; then
3058 echo "$as_me:3058: result: $MAGIC_CMD" >&5
3059 echo "${ECHO_T}$MAGIC_CMD" >&6
3061 echo "$as_me:3061: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3065 if test -z "$lt_cv_path_MAGIC_CMD"; then
3066 if test -n "$ac_tool_prefix"; then
3067 echo "$as_me:3067: checking for file" >&5
3068 echo $ECHO_N "checking for file... $ECHO_C" >&6
3069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3080 ac_save_MAGIC_CMD="$MAGIC_CMD"
3081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3082 ac_dummy="/usr/bin:$PATH"
3083 for ac_dir in $ac_dummy; do
3084 test -z "$ac_dir" && ac_dir=.
3085 if test -f $ac_dir/file; then
3086 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3087 if test -n "$file_magic_test_file"; then
3088 case $deplibs_check_method in
3090 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3092 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3093 egrep "$file_magic_regex" > /dev/null; then
3098 *** Warning: the command libtool uses to detect shared libraries,
3099 *** $file_magic_cmd, produces output that libtool cannot recognize.
3100 *** The result is that libtool may fail to recognize shared libraries
3101 *** as such. This will affect the creation of libtool libraries that
3102 *** depend on shared libraries, but programs linked with such libtool
3103 *** libraries will work regardless of this problem. Nevertheless, you
3104 *** may want to report the problem to your system manager and/or to
3105 *** bug-libtool@gnu.org
3115 MAGIC_CMD="$ac_save_MAGIC_CMD"
3120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3121 if test -n "$MAGIC_CMD"; then
3122 echo "$as_me:3122: result: $MAGIC_CMD" >&5
3123 echo "${ECHO_T}$MAGIC_CMD" >&6
3125 echo "$as_me:3125: result: no" >&5
3126 echo "${ECHO_T}no" >&6
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:3141: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -n "$RANLIB"; then
3147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3149 ac_save_IFS=$IFS; IFS=$ac_path_separator
3151 for ac_dir in $ac_dummy; do
3153 test -z "$ac_dir" && ac_dir=.
3154 $as_executable_p "$ac_dir/$ac_word" || continue
3155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3156 echo "$as_me:3156: found $ac_dir/$ac_word" >&5
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164 echo "$as_me:3164: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6
3167 echo "$as_me:3167: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3172 if test -z "$ac_cv_prog_RANLIB"; then
3173 ac_ct_RANLIB=$RANLIB
3174 # Extract the first word of "ranlib", so it can be a program name with args.
3175 set dummy ranlib; ac_word=$2
3176 echo "$as_me:3176: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$ac_ct_RANLIB"; then
3182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3184 ac_save_IFS=$IFS; IFS=$ac_path_separator
3186 for ac_dir in $ac_dummy; do
3188 test -z "$ac_dir" && ac_dir=.
3189 $as_executable_p "$ac_dir/$ac_word" || continue
3190 ac_cv_prog_ac_ct_RANLIB="ranlib"
3191 echo "$as_me:3191: found $ac_dir/$ac_word" >&5
3195 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3199 if test -n "$ac_ct_RANLIB"; then
3200 echo "$as_me:3200: result: $ac_ct_RANLIB" >&5
3201 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3203 echo "$as_me:3203: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3207 RANLIB=$ac_ct_RANLIB
3209 RANLIB="$ac_cv_prog_RANLIB"
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}strip; ac_word=$2
3215 echo "$as_me:3215: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_STRIP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 if test -n "$STRIP"; then
3221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3223 ac_save_IFS=$IFS; IFS=$ac_path_separator
3225 for ac_dir in $ac_dummy; do
3227 test -z "$ac_dir" && ac_dir=.
3228 $as_executable_p "$ac_dir/$ac_word" || continue
3229 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3230 echo "$as_me:3230: found $ac_dir/$ac_word" >&5
3236 STRIP=$ac_cv_prog_STRIP
3237 if test -n "$STRIP"; then
3238 echo "$as_me:3238: result: $STRIP" >&5
3239 echo "${ECHO_T}$STRIP" >&6
3241 echo "$as_me:3241: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3246 if test -z "$ac_cv_prog_STRIP"; then
3248 # Extract the first word of "strip", so it can be a program name with args.
3249 set dummy strip; ac_word=$2
3250 echo "$as_me:3250: checking for $ac_word" >&5
3251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3252 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 if test -n "$ac_ct_STRIP"; then
3256 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3258 ac_save_IFS=$IFS; IFS=$ac_path_separator
3260 for ac_dir in $ac_dummy; do
3262 test -z "$ac_dir" && ac_dir=.
3263 $as_executable_p "$ac_dir/$ac_word" || continue
3264 ac_cv_prog_ac_ct_STRIP="strip"
3265 echo "$as_me:3265: found $ac_dir/$ac_word" >&5
3269 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3273 if test -n "$ac_ct_STRIP"; then
3274 echo "$as_me:3274: result: $ac_ct_STRIP" >&5
3275 echo "${ECHO_T}$ac_ct_STRIP" >&6
3277 echo "$as_me:3277: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3283 STRIP="$ac_cv_prog_STRIP"
3289 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3290 if test "${enable_libtool_lock+set}" = set; then
3291 enableval="$enable_libtool_lock"
3294 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3296 # Some flags need to be propagated to the compiler or linker for good
3300 # Find out which ABI we are using.
3301 echo '#line 3301 "configure"' > conftest.$ac_ext
3302 if { (eval echo "$as_me:3302: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>&5
3305 echo "$as_me:3305: \$? = $ac_status" >&5
3306 (exit $ac_status); }; then
3307 case `/usr/bin/file conftest.$ac_objext` in
3323 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3324 SAVE_CFLAGS="$CFLAGS"
3325 CFLAGS="$CFLAGS -belf"
3326 echo "$as_me:3326: checking whether the C compiler needs -belf" >&5
3327 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3328 if test "${lt_cv_cc_needs_belf+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 ac_cpp='$CPP $CPPFLAGS'
3334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 cat >conftest.$ac_ext <<_ACEOF
3339 #line 3339 "configure"
3340 #include "confdefs.h"
3350 rm -f conftest.$ac_objext conftest$ac_exeext
3351 if { (eval echo "$as_me:3351: \"$ac_link\"") >&5
3352 (eval $ac_link) 2>&5
3354 echo "$as_me:3354: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -s conftest$ac_exeext'
3357 { (eval echo "$as_me:3357: \"$ac_try\"") >&5
3360 echo "$as_me:3360: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 lt_cv_cc_needs_belf=yes
3364 echo "$as_me: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3366 lt_cv_cc_needs_belf=no
3368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 echo "$as_me:3376: result: $lt_cv_cc_needs_belf" >&5
3377 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3378 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3379 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3380 CFLAGS="$SAVE_CFLAGS"
3386 # Sed substitution that helps us do robust quoting. It backslashifies
3387 # metacharacters that are still active within double-quoted strings.
3388 Xsed='sed -e s/^X//'
3389 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3391 # Same as above, but do not quote variable references.
3392 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3394 # Sed substitution to delay expansion of an escaped shell variable in a
3395 # double_quote_subst'ed string.
3396 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3402 default_ofile=libtool
3403 can_build_shared=yes
3405 # All known linkers require a `.a' archive for static linking (except M$VC,
3406 # which needs '.lib').
3408 ltmain="$ac_aux_dir/ltmain.sh"
3409 ofile="$default_ofile"
3410 with_gnu_ld="$lt_cv_prog_gnu_ld"
3411 need_locks="$enable_libtool_lock"
3414 old_CFLAGS="$CFLAGS"
3416 # Set sane defaults for various variables
3417 test -z "$AR" && AR=ar
3418 test -z "$AR_FLAGS" && AR_FLAGS=cru
3419 test -z "$AS" && AS=as
3420 test -z "$CC" && CC=cc
3421 test -z "$DLLTOOL" && DLLTOOL=dlltool
3422 test -z "$LD" && LD=ld
3423 test -z "$LN_S" && LN_S="ln -s"
3424 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3425 test -z "$NM" && NM=nm
3426 test -z "$OBJDUMP" && OBJDUMP=objdump
3427 test -z "$RANLIB" && RANLIB=:
3428 test -z "$STRIP" && STRIP=:
3429 test -z "$ac_objext" && ac_objext=o
3431 if test x"$host" != x"$build"; then
3432 ac_tool_prefix=${host_alias}-
3437 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3440 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3445 # AIX sometimes has problems with the GCC collect2 program. For some
3446 # reason, if we set the COLLECT_NAMES environment variable, the problems
3447 # vanish in a puff of smoke.
3448 if test "X${COLLECT_NAMES+set}" != Xset; then
3450 export COLLECT_NAMES
3455 # Determine commands to create old-style static archives.
3456 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3457 old_postinstall_cmds='chmod 644 $oldlib'
3458 old_postuninstall_cmds=
3460 if test -n "$RANLIB"; then
3463 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3466 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3469 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3472 # Allow CC to be a program name with arguments.
3476 echo "$as_me:3476: checking for objdir" >&5
3477 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3478 rm -f .libs 2>/dev/null
3479 mkdir .libs 2>/dev/null
3480 if test -d .libs; then
3483 # MS-DOS does not allow filenames that begin with a dot.
3486 rmdir .libs 2>/dev/null
3487 echo "$as_me:3487: result: $objdir" >&5
3488 echo "${ECHO_T}$objdir" >&6
3490 # Check whether --with-pic or --without-pic was given.
3491 if test "${with_pic+set}" = set; then
3497 test -z "$pic_mode" && pic_mode=default
3499 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3500 # in isolation, and that seeing it set (from the cache) indicates that
3501 # the associated values are set (in the cache) correctly too.
3502 echo "$as_me:3502: checking for $compiler option to produce PIC" >&5
3503 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3504 if test "${lt_cv_prog_cc_pic+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 lt_cv_prog_cc_shlib=
3510 lt_cv_prog_cc_static=
3511 lt_cv_prog_cc_no_builtin=
3512 lt_cv_prog_cc_can_build_shared=$can_build_shared
3514 if test "$GCC" = yes; then
3515 lt_cv_prog_cc_wl='-Wl,'
3516 lt_cv_prog_cc_static='-static'
3520 # Below there is a dirty hack to force normal static linking with -ldl
3521 # The problem is because libdl dynamically linked with both libc and
3522 # libC (AIX C++ library), which obviously doesn't included in libraries
3523 # list by gcc. This cause undefined symbols with -static flags.
3524 # This hack allows C programs to be linked with "-static -ldl", but
3525 # not sure about C++ programs.
3526 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3529 # FIXME: we need at least 68020 code to build shared libraries, but
3530 # adding the `-m68020' flag to GCC prevents building anything better,
3532 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3534 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3535 # PIC is the default for these OSes.
3537 darwin* | rhapsody*)
3538 # PIC is the default on this platform
3539 # Common symbols not allowed in MH_DYLIB files
3540 lt_cv_prog_cc_pic='-fno-common'
3542 cygwin* | mingw* | pw32* | os2*)
3543 # This hack is so that the source file can tell whether it is being
3544 # built for inclusion in a dll (and should export symbols for example).
3545 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3548 if test -d /usr/nec; then
3549 lt_cv_prog_cc_pic=-Kconform_pic
3553 lt_cv_prog_cc_pic='-fPIC'
3557 # PORTME Check for PIC flags for the system compiler.
3559 aix3* | aix4* | aix5*)
3560 lt_cv_prog_cc_wl='-Wl,'
3561 # All AIX code is PIC.
3562 if test "$host_cpu" = ia64; then
3563 # AIX 5 now supports IA64 processor
3564 lt_cv_prog_cc_static='-Bstatic'
3566 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3570 hpux9* | hpux10* | hpux11*)
3571 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3572 lt_cv_prog_cc_wl='-Wl,'
3573 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3574 lt_cv_prog_cc_pic='+Z'
3578 lt_cv_prog_cc_wl='-Wl,'
3579 lt_cv_prog_cc_static='-non_shared'
3580 # PIC (with -KPIC) is the default.
3583 cygwin* | mingw* | pw32* | os2*)
3584 # This hack is so that the source file can tell whether it is being
3585 # built for inclusion in a dll (and should export symbols for example).
3586 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3590 lt_cv_prog_cc_pic='-KPIC'
3591 lt_cv_prog_cc_static='-Bstatic'
3594 osf3* | osf4* | osf5*)
3595 # All OSF/1 code is PIC.
3596 lt_cv_prog_cc_wl='-Wl,'
3597 lt_cv_prog_cc_static='-non_shared'
3601 lt_cv_prog_cc_pic='-Kpic'
3602 lt_cv_prog_cc_static='-dn'
3603 lt_cv_prog_cc_shlib='-belf'
3607 lt_cv_prog_cc_pic='-KPIC'
3608 lt_cv_prog_cc_static='-Bstatic'
3609 lt_cv_prog_cc_wl='-Wl,'
3613 lt_cv_prog_cc_pic='-PIC'
3614 lt_cv_prog_cc_static='-Bstatic'
3615 lt_cv_prog_cc_wl='-Qoption ld '
3618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3619 lt_cv_prog_cc_pic='-KPIC'
3620 lt_cv_prog_cc_static='-Bstatic'
3621 if test "x$host_vendor" = xsni; then
3622 lt_cv_prog_cc_wl='-LD'
3624 lt_cv_prog_cc_wl='-Wl,'
3629 lt_cv_prog_cc_pic='-pic'
3630 lt_cv_prog_cc_static='-Bstatic'
3634 if test -d /usr/nec ;then
3635 lt_cv_prog_cc_pic='-Kconform_pic'
3636 lt_cv_prog_cc_static='-Bstatic'
3641 lt_cv_prog_cc_can_build_shared=no
3648 if test -z "$lt_cv_prog_cc_pic"; then
3649 echo "$as_me:3649: result: none" >&5
3650 echo "${ECHO_T}none" >&6
3652 echo "$as_me:3652: result: $lt_cv_prog_cc_pic" >&5
3653 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3655 # Check to make sure the pic_flag actually works.
3656 echo "$as_me:3656: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3657 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3658 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 save_CFLAGS="$CFLAGS"
3662 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3663 cat >conftest.$ac_ext <<_ACEOF
3664 #line 3664 "configure"
3665 #include "confdefs.h"
3675 rm -f conftest.$ac_objext
3676 if { (eval echo "$as_me:3676: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>&5
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:3682: \"$ac_try\"") >&5
3685 echo "$as_me:3685: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3688 hpux9* | hpux10* | hpux11*)
3689 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3690 # they create non-PIC objects. So, if there were any warnings, we
3691 # assume that PIC is not supported.
3692 if test -s conftest.err; then
3693 lt_cv_prog_cc_pic_works=no
3695 lt_cv_prog_cc_pic_works=yes
3699 lt_cv_prog_cc_pic_works=yes
3704 echo "$as_me: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3706 lt_cv_prog_cc_pic_works=no
3709 rm -f conftest.$ac_objext conftest.$ac_ext
3710 CFLAGS="$save_CFLAGS"
3714 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3716 lt_cv_prog_cc_can_build_shared=no
3718 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3721 echo "$as_me:3721: result: $lt_cv_prog_cc_pic_works" >&5
3722 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3725 # Check for any special shared library compilation flags.
3726 if test -n "$lt_cv_prog_cc_shlib"; then
3727 { echo "$as_me:3727: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3728 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3729 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3731 { echo "$as_me:3731: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3732 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3733 lt_cv_prog_cc_can_build_shared=no
3737 echo "$as_me:3737: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3738 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3739 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 lt_cv_prog_cc_static_works=no
3743 save_LDFLAGS="$LDFLAGS"
3744 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line 3746 "configure"
3747 #include "confdefs.h"
3757 rm -f conftest.$ac_objext conftest$ac_exeext
3758 if { (eval echo "$as_me:3758: \"$ac_link\"") >&5
3759 (eval $ac_link) 2>&5
3761 echo "$as_me:3761: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -s conftest$ac_exeext'
3764 { (eval echo "$as_me:3764: \"$ac_try\"") >&5
3767 echo "$as_me:3767: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 lt_cv_prog_cc_static_works=yes
3771 echo "$as_me: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3775 LDFLAGS="$save_LDFLAGS"
3779 # Belt *and* braces to stop my trousers falling down:
3780 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3781 echo "$as_me:3781: result: $lt_cv_prog_cc_static_works" >&5
3782 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3784 pic_flag="$lt_cv_prog_cc_pic"
3785 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3786 wl="$lt_cv_prog_cc_wl"
3787 link_static_flag="$lt_cv_prog_cc_static"
3788 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3789 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3791 # Check to see if options -o and -c are simultaneously supported by compiler
3792 echo "$as_me:3792: checking if $compiler supports -c -o file.$ac_objext" >&5
3793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
3794 if test "${lt_cv_compiler_c_o+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 $rm -r conftest 2>/dev/null
3801 echo "int some_variable = 0;" > conftest.$ac_ext
3803 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3804 # that will create temporary files in the current directory regardless of
3805 # the output directory. Thus, making CWD read-only will cause this test
3806 # to fail, enabling locking or at least warning the user not to do parallel
3809 save_CFLAGS="$CFLAGS"
3810 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3812 if { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3813 # The compiler can only warn and ignore the option if not recognized
3814 # So say no if there are warnings
3815 if test -s out/conftest.err; then
3816 lt_cv_compiler_c_o=no
3818 lt_cv_compiler_c_o=yes
3821 # Append any errors to the config.log.
3822 cat out/conftest.err 1>&5
3823 lt_cv_compiler_c_o=no
3825 CFLAGS="$save_CFLAGS"
3831 $rm -r conftest 2>/dev/null
3835 compiler_c_o=$lt_cv_compiler_c_o
3836 echo "$as_me:3836: result: $compiler_c_o" >&5
3837 echo "${ECHO_T}$compiler_c_o" >&6
3839 if test x"$compiler_c_o" = x"yes"; then
3840 # Check to see if we can write to a .lo
3841 echo "$as_me:3841: checking if $compiler supports -c -o file.lo" >&5
3842 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
3843 if test "${lt_cv_compiler_o_lo+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 lt_cv_compiler_o_lo=no
3848 save_CFLAGS="$CFLAGS"
3849 CFLAGS="$CFLAGS -c -o conftest.lo"
3850 save_objext="$ac_objext"
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #line 3853 "configure"
3854 #include "confdefs.h"
3859 int some_variable = 0;
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:3865: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>&5
3868 echo "$as_me:3868: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -s conftest.$ac_objext'
3871 { (eval echo "$as_me:3871: \"$ac_try\"") >&5
3874 echo "$as_me:3874: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3876 # The compiler can only warn and ignore the option if not recognized
3877 # So say no if there are warnings
3878 if test -s conftest.err; then
3879 lt_cv_compiler_o_lo=no
3881 lt_cv_compiler_o_lo=yes
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 rm -f conftest.$ac_objext conftest.$ac_ext
3889 ac_objext="$save_objext"
3890 CFLAGS="$save_CFLAGS"
3894 compiler_o_lo=$lt_cv_compiler_o_lo
3895 echo "$as_me:3895: result: $compiler_o_lo" >&5
3896 echo "${ECHO_T}$compiler_o_lo" >&6
3901 # Check to see if we can do hard links to lock some files if needed
3902 hard_links="nottested"
3903 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3904 # do not overwrite the value of need_locks provided by the user
3905 echo "$as_me:3905: checking if we can lock with hard links" >&5
3906 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3911 ln conftest.a conftest.b 2>&5 || hard_links=no
3912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3913 echo "$as_me:3913: result: $hard_links" >&5
3914 echo "${ECHO_T}$hard_links" >&6
3915 if test "$hard_links" = no; then
3916 { echo "$as_me:3916: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
3917 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3924 if test "$GCC" = yes; then
3925 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3926 echo "$as_me:3926: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3927 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3928 echo "int some_variable = 0;" > conftest.$ac_ext
3929 save_CFLAGS="$CFLAGS"
3930 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3931 compiler_rtti_exceptions=no
3932 cat >conftest.$ac_ext <<_ACEOF
3933 #line 3933 "configure"
3934 #include "confdefs.h"
3939 int some_variable = 0;
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:3945: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>&5
3948 echo "$as_me:3948: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:3951: \"$ac_try\"") >&5
3954 echo "$as_me:3954: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 # The compiler can only warn and ignore the option if not recognized
3957 # So say no if there are warnings
3958 if test -s conftest.err; then
3959 compiler_rtti_exceptions=no
3961 compiler_rtti_exceptions=yes
3965 echo "$as_me: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3968 rm -f conftest.$ac_objext conftest.$ac_ext
3969 CFLAGS="$save_CFLAGS"
3970 echo "$as_me:3970: result: $compiler_rtti_exceptions" >&5
3971 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3973 if test "$compiler_rtti_exceptions" = "yes"; then
3974 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3976 no_builtin_flag=' -fno-builtin'
3980 # See if the linker supports building shared libraries.
3981 echo "$as_me:3981: checking whether the linker ($LD) supports shared libraries" >&5
3982 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
3984 allow_undefined_flag=
3986 need_lib_prefix=unknown
3987 need_version=unknown
3988 # when you set need_version to no, make sure it does not cause -set_version
3989 # flags to be left without arguments
3991 archive_expsym_cmds=
3992 old_archive_from_new_cmds=
3993 old_archive_from_expsyms_cmds=
3994 export_dynamic_flag_spec=
3995 whole_archive_flag_spec=
3996 thread_safe_flag_spec=
3997 hardcode_into_libs=no
3998 hardcode_libdir_flag_spec=
3999 hardcode_libdir_separator=
4002 hardcode_shlibpath_var=unsupported
4004 link_all_deplibs=unknown
4005 always_export_symbols=no
4006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4007 # include_expsyms should be a list of space-separated symbols to be *always*
4008 # included in the symbol list
4010 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4011 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4012 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4013 # as well as any symbol that contains `d'.
4014 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4015 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4016 # platforms (ab)use it in PIC code, but their linkers get confused if
4017 # the symbol is explicitly referenced. Since portable code cannot
4018 # rely on this symbol name, it's probably fine to never include it in
4019 # preloaded symbol tables.
4020 extract_expsyms_cmds=
4023 cygwin* | mingw* | pw32*)
4024 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4025 # When not using gcc, we currently assume that we are using
4026 # Microsoft Visual C++.
4027 if test "$GCC" != yes; then
4037 if test "$with_gnu_ld" = yes; then
4038 # If archive_cmds runs LD, not CC, wlarc should be empty
4041 # See if GNU ld supports shared libraries.
4043 aix3* | aix4* | aix5*)
4044 # On AIX, the GNU linker is very broken
4045 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4049 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4050 *** to be unable to reliably create shared libraries on AIX.
4051 *** Therefore, libtool is disabling shared libraries support. If you
4052 *** really care for shared libraries, you may want to modify your PATH
4053 *** so that a non-GNU linker is found, and then restart.
4059 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)'
4060 hardcode_libdir_flag_spec='-L$libdir'
4061 hardcode_minus_L=yes
4063 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4064 # that the semantics of dynamic libraries on AmigaOS, at least up
4065 # to version 4, is to share data among multiple programs linked
4066 # with the same dynamic library. Since this doesn't match the
4067 # behavior of shared libraries on other platforms, we can use
4073 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4074 allow_undefined_flag=unsupported
4075 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4076 # support --undefined. This deserves some investigation. FIXME
4077 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4083 cygwin* | mingw* | pw32*)
4084 # hardcode_libdir_flag_spec is actually meaningless, as there is
4085 # no search path for DLLs.
4086 hardcode_libdir_flag_spec='-L$libdir'
4087 allow_undefined_flag=unsupported
4088 always_export_symbols=yes
4090 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4091 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4092 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4093 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4094 else $CC -o impgen impgen.c ; fi)~
4095 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4097 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4099 # cygwin and mingw dlls have different entry points and sets of symbols
4101 # FIXME: what about values for MSVC?
4102 dll_entry=__cygwin_dll_entry@12
4103 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4107 dll_entry=_DllMainCRTStartup@12
4108 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4112 # mingw and cygwin differ, and it's simplest to just exclude the union
4113 # of the two symbol sets.
4114 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4116 # recent cygwin and mingw systems supply a stub DllMain which the user
4117 # can override, but on older systems we have to supply one (in ltdll.c)
4118 if test "x$lt_cv_need_dllmain" = "xyes"; then
4119 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4120 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~
4121 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4127 # Extract the symbol export list from an `--export-all' def file,
4128 # then regenerate the def file from the symbol export list, so that
4129 # the compiled dll only exports the symbol export list.
4130 # Be careful not to strip the DATA tag left be newer dlltools.
4131 export_symbols_cmds="$ltdll_cmds"'
4132 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4133 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4135 # If the export-symbols file already is a .def file (1st line
4136 # is EXPORTS), use it as is.
4137 # If DATA tags from a recent dlltool are present, honour them!
4138 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4139 cp $export_symbols $output_objdir/$soname-def;
4141 echo EXPORTS > $output_objdir/$soname-def;
4143 cat $export_symbols | while read symbol; do
4146 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4147 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4149 _lt_hint=`expr 1 + \$_lt_hint`;
4153 $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~
4154 $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~
4155 $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~
4156 $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~
4157 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4165 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4166 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4171 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4176 *** create shared libraries on Solaris systems. Therefore, libtool
4177 *** is disabling shared libraries support. We urge you to upgrade GNU
4178 *** binutils to release 2.9.1 or newer. Another option is to modify
4179 *** your PATH or compiler configuration so that the native linker is
4180 *** used, and then restart.
4183 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4192 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4195 hardcode_shlibpath_var=no
4199 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4208 if test "$ld_shlibs" = yes; then
4209 runpath_var=LD_RUN_PATH
4210 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4211 export_dynamic_flag_spec='${wl}--export-dynamic'
4213 cygwin* | mingw* | pw32*)
4214 # dlltool doesn't understand --whole-archive et. al.
4215 whole_archive_flag_spec=
4218 # ancient GNU ld didn't support --whole-archive et. al.
4219 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4220 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4222 whole_archive_flag_spec=
4228 # PORTME fill in a description of your system's linker (not GNU ld)
4231 allow_undefined_flag=unsupported
4232 always_export_symbols=yes
4233 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'
4234 # Note: this linker hardcodes the directories in LIBPATH if there
4235 # are no directories specified by -L.
4236 hardcode_minus_L=yes
4237 if test "$GCC" = yes && test -z "$link_static_flag"; then
4238 # Neither direct hardcoding nor static linking is supported with a
4240 hardcode_direct=unsupported
4245 if test "$host_cpu" = ia64; then
4246 # On IA64, the linker does run time linking by default, so we don't
4247 # have to do anything special.
4248 aix_use_runtimelinking=no
4249 exp_sym_flag='-Bexport'
4252 aix_use_runtimelinking=no
4254 # Test if we are trying to use run time linking or normal
4255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4256 # need to do runtime linking.
4257 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4258 for ld_flag in $LDFLAGS; do
4259 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4260 aix_use_runtimelinking=yes
4266 exp_sym_flag='-bexport'
4267 no_entry_flag='-bnoentry'
4270 # When large executables or shared objects are built, AIX ld can
4271 # have problems creating the table of contents. If linking a library
4272 # or program results in "error TOC overflow" add -mminimal-toc to
4273 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4274 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4278 hardcode_libdir_separator=':'
4279 if test "$GCC" = yes; then
4280 case $host_os in aix4.[012]|aix4.[012].*)
4281 collect2name=`${CC} -print-prog-name=collect2`
4282 if test -f "$collect2name" && \
4283 strings "$collect2name" | grep resolve_lib_name >/dev/null
4285 # We have reworked collect2
4288 # We have old collect2
4289 hardcode_direct=unsupported
4290 # It fails to find uninstalled libraries when the uninstalled
4291 # path is not listed in the libpath. Setting hardcode_minus_L
4292 # to unsupported forces relinking
4293 hardcode_minus_L=yes
4294 hardcode_libdir_flag_spec='-L$libdir'
4295 hardcode_libdir_separator=
4299 shared_flag='-shared'
4302 if test "$host_cpu" = ia64; then
4303 shared_flag='${wl}-G'
4305 if test "$aix_use_runtimelinking" = yes; then
4306 shared_flag='${wl}-G'
4308 shared_flag='${wl}-bM:SRE'
4313 # It seems that -bexpall can do strange things, so it is better to
4314 # generate a list of symbols to export.
4315 always_export_symbols=yes
4316 if test "$aix_use_runtimelinking" = yes; then
4317 # Warning - without using the other runtime loading flags (-brtl),
4318 # -berok will link without error, but may produce a broken library.
4319 allow_undefined_flag='-berok'
4320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4321 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4323 if test "$host_cpu" = ia64; then
4324 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4325 allow_undefined_flag="-z nodefs"
4326 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"
4328 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4329 # Warning - without using the other run time loading flags,
4330 # -berok will link without error, but may produce a broken library.
4331 allow_undefined_flag='${wl}-berok'
4332 # This is a bit strange, but is similar to how AIX traditionally builds
4333 # it's shared libraries.
4334 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'
4340 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)'
4341 hardcode_libdir_flag_spec='-L$libdir'
4342 hardcode_minus_L=yes
4343 # see comment about different semantics on the GNU ld section
4347 cygwin* | mingw* | pw32*)
4348 # When not using gcc, we currently assume that we are using
4349 # Microsoft Visual C++.
4350 # hardcode_libdir_flag_spec is actually meaningless, as there is
4351 # no search path for DLLs.
4352 hardcode_libdir_flag_spec=' '
4353 allow_undefined_flag=unsupported
4354 # Tell ltmain to make .lib files, not .a files.
4356 # FIXME: Setting linknames here is a bad hack.
4357 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4358 # The linker will automatically build a .lib file if we build a DLL.
4359 old_archive_from_new_cmds='true'
4360 # FIXME: Should let the user specify the lib program.
4361 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4362 fix_srcfile_path='`cygpath -w "$srcfile"`'
4365 darwin* | rhapsody*)
4367 rhapsody* | darwin1.[012])
4368 allow_undefined_flag='-undefined suppress'
4371 allow_undefined_flag='-flat_namespace -undefined suppress'
4374 # FIXME: Relying on posixy $() will cause problems for
4375 # cross-compilation, but unfortunately the echo tests do not
4376 # yet detect zsh echo's removal of \ escapes.
4377 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4378 # We need to add '_' to the symbols in $export_symbols first
4379 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4381 hardcode_shlibpath_var=no
4382 whole_archive_flag_spec='-all_load $convenience'
4389 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4390 # support. Future versions do this automatically, but an explicit c++rt0.o
4391 # does not break anything, and helps significantly (at the cost of a little
4394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4395 hardcode_libdir_flag_spec='-R$libdir'
4397 hardcode_shlibpath_var=no
4400 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4402 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4404 hardcode_minus_L=yes
4405 hardcode_shlibpath_var=no
4408 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4410 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4411 hardcode_libdir_flag_spec='-R$libdir'
4413 hardcode_shlibpath_var=no
4416 hpux9* | hpux10* | hpux11*)
4418 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' ;;
4419 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4422 hardcode_libdir_separator=:
4424 hardcode_minus_L=yes # Not in the search PATH, but as the default
4425 # location of the library.
4426 export_dynamic_flag_spec='${wl}-E'
4430 if test "$GCC" = yes; then
4431 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'
4433 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'
4435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4436 hardcode_libdir_separator=:
4437 link_all_deplibs=yes
4441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4446 hardcode_libdir_flag_spec='-R$libdir'
4448 hardcode_shlibpath_var=no
4452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4455 hardcode_libdir_separator=:
4456 hardcode_shlibpath_var=no
4461 hardcode_shlibpath_var=no
4462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4465 export_dynamic_flag_spec='${wl}-E'
4468 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4470 hardcode_libdir_flag_spec='-R$libdir'
4473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4474 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4481 hardcode_libdir_flag_spec='-L$libdir'
4482 hardcode_minus_L=yes
4483 allow_undefined_flag=unsupported
4484 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'
4485 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4489 if test "$GCC" = yes; then
4490 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4491 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'
4493 allow_undefined_flag=' -expect_unresolved \*'
4494 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'
4496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4497 hardcode_libdir_separator=:
4500 osf4* | osf5*) # as osf3* with the addition of -msym flag
4501 if test "$GCC" = yes; then
4502 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4503 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'
4504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4506 allow_undefined_flag=' -expect_unresolved \*'
4507 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'
4508 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4509 $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'
4511 #Both c and cxx compiler support -rpath directly
4512 hardcode_libdir_flag_spec='-rpath $libdir'
4514 hardcode_libdir_separator=:
4518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4519 hardcode_shlibpath_var=no
4520 runpath_var=LD_RUN_PATH
4521 hardcode_runpath_var=yes
4522 export_dynamic_flag_spec='${wl}-Bexport'
4526 # gcc --version < 3.0 without binutils cannot create self contained
4527 # shared libraries reliably, requiring libgcc.a to resolve some of
4528 # the object symbols generated in some cases. Libraries that use
4529 # assert need libgcc.a to resolve __eprintf, for example. Linking
4530 # a copy of libgcc.a into every shared library to guarantee resolving
4531 # such symbols causes other problems: According to Tim Van Holder
4532 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4533 # (to the application) exception stack for one thing.
4534 no_undefined_flag=' -z defs'
4535 if test "$GCC" = yes; then
4536 case `$CC --version 2>/dev/null` in
4540 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4541 *** create self contained shared libraries on Solaris systems, without
4542 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4543 *** -no-undefined support, which will at least allow you to build shared
4544 *** libraries. However, you may find that when you link such libraries
4545 *** into an application without using GCC, you have to manually add
4546 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4547 *** upgrade to a newer version of GCC. Another option is to rebuild your
4548 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4555 # $CC -shared without GNU ld will not create a library from C++
4556 # object files and a static libstdc++, better avoid it by now
4557 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4558 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4559 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4560 hardcode_libdir_flag_spec='-R$libdir'
4561 hardcode_shlibpath_var=no
4563 solaris2.[0-5] | solaris2.[0-5].*) ;;
4564 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4567 link_all_deplibs=yes
4571 if test "x$host_vendor" = xsequent; then
4572 # Use $CC to link under sequent, because it throws in some extra .o
4573 # files that make .init and .fini sections work.
4574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4578 hardcode_libdir_flag_spec='-L$libdir'
4580 hardcode_minus_L=yes
4581 hardcode_shlibpath_var=no
4585 if test "x$host_vendor" = xsno; then
4586 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4587 hardcode_direct=yes # is this really true???
4589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4590 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4592 runpath_var='LD_RUN_PATH'
4593 hardcode_shlibpath_var=no
4597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4598 hardcode_shlibpath_var=no
4599 export_dynamic_flag_spec='-Bexport'
4603 no_undefined_flag=' -z text'
4604 # $CC -shared without GNU ld will not create a library from C++
4605 # object files and a static libstdc++, better avoid it by now
4606 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4607 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4608 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4609 hardcode_libdir_flag_spec=
4610 hardcode_shlibpath_var=no
4611 runpath_var='LD_RUN_PATH'
4615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4616 hardcode_libdir_flag_spec='-L$libdir'
4617 hardcode_shlibpath_var=no
4621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4622 hardcode_libdir_flag_spec='-L$libdir'
4623 hardcode_shlibpath_var=no
4627 if test -d /usr/nec; then
4628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4629 hardcode_shlibpath_var=no
4630 runpath_var=LD_RUN_PATH
4631 hardcode_runpath_var=yes
4637 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4640 hardcode_shlibpath_var=no
4641 hardcode_runpath_var=yes
4642 runpath_var=LD_RUN_PATH
4645 sysv5uw7* | unixware7*)
4646 no_undefined_flag='${wl}-z ${wl}text'
4647 if test "$GCC" = yes; then
4648 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4650 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4652 runpath_var='LD_RUN_PATH'
4653 hardcode_shlibpath_var=no
4661 echo "$as_me:4661: result: $ld_shlibs" >&5
4662 echo "${ECHO_T}$ld_shlibs" >&6
4663 test "$ld_shlibs" = no && can_build_shared=no
4665 # Check hardcoding attributes.
4666 echo "$as_me:4666: checking how to hardcode library paths into programs" >&5
4667 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4669 if test -n "$hardcode_libdir_flag_spec" || \
4670 test -n "$runpath_var"; then
4672 # We can hardcode non-existant directories.
4673 if test "$hardcode_direct" != no &&
4674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4675 # have to relink, otherwise we might link with an installed library
4676 # when we should be linking with a yet-to-be-installed one
4677 ## test "$hardcode_shlibpath_var" != no &&
4678 test "$hardcode_minus_L" != no; then
4679 # Linking always hardcodes the temporary library directory.
4680 hardcode_action=relink
4682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4683 hardcode_action=immediate
4686 # We cannot hardcode anything, or else we can only hardcode existing
4688 hardcode_action=unsupported
4690 echo "$as_me:4690: result: $hardcode_action" >&5
4691 echo "${ECHO_T}$hardcode_action" >&6
4695 echo "$as_me:4695: checking whether stripping libraries is possible" >&5
4696 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4697 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4698 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4699 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4700 echo "$as_me:4700: result: yes" >&5
4701 echo "${ECHO_T}yes" >&6
4703 echo "$as_me:4703: result: no" >&5
4704 echo "${ECHO_T}no" >&6
4707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4708 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4710 # PORTME Fill in your ld.so characteristics
4711 echo "$as_me:4711: checking dynamic linker characteristics" >&5
4712 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4714 libname_spec='lib$name'
4721 shlibpath_overrides_runpath=unknown
4723 dynamic_linker="$host_os ld.so"
4724 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4725 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4730 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4731 shlibpath_var=LIBPATH
4733 # AIX has no versioning support, so we append a major version to the name.
4734 soname_spec='${libname}${release}.so$major'
4739 if test "$host_cpu" = ia64; then
4740 # AIX 5 supports IA64
4741 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4742 shlibpath_var=LD_LIBRARY_PATH
4744 # With GCC up to 2.95.x, collect2 would create an import file
4745 # for dependence libraries. The import file would start with
4746 # the line `#! .'. This would cause the generated library to
4747 # depend on `.', always an invalid library. This was fixed in
4748 # development snapshots of GCC prior to 3.0.
4750 aix4 | aix4.[01] | aix4.[01].*)
4751 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4753 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4760 # AIX (on Power*) has no versioning support, so currently we can
4761 # not hardcode correct soname into executable. Probably we can
4762 # add versioning support to collect2, so additional links can
4763 # be useful in future.
4764 if test "$aix_use_runtimelinking" = yes; then
4765 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4766 # instead of lib<name>.a to let people know that these are not
4767 # typical AIX shared libraries.
4768 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4770 # We preserve .a as extension for shared libraries through AIX4.2
4771 # and later when we are not doing run time linking.
4772 library_names_spec='${libname}${release}.a $libname.a'
4773 soname_spec='${libname}${release}.so$major'
4775 shlibpath_var=LIBPATH
4780 library_names_spec='$libname.ixlibrary $libname.a'
4781 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4782 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'
4786 library_names_spec='${libname}.so'
4787 dynamic_linker="$host_os ld.so"
4788 shlibpath_var=LIBRARY_PATH
4794 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4795 soname_spec='${libname}${release}.so$major'
4796 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4797 shlibpath_var=LD_LIBRARY_PATH
4798 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4799 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4800 export_dynamic_flag_spec=-rdynamic
4801 # the default ld.so.conf also contains /usr/contrib/lib and
4802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4803 # libtool to hard-code these into programs
4806 cygwin* | mingw* | pw32*)
4807 version_type=windows
4810 case $GCC,$host_os in
4812 library_names_spec='$libname.dll.a'
4813 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4814 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4815 dldir=$destdir/`dirname \$dlpath`~
4816 test -d \$dldir || mkdir -p \$dldir~
4817 $install_prog .libs/$dlname \$dldir/$dlname'
4818 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4819 dlpath=$dir/\$dldll~
4823 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4830 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4833 dynamic_linker='Win32 ld.exe'
4834 # FIXME: first we should search . and the directory the executable is in
4838 darwin* | rhapsody*)
4839 dynamic_linker="$host_os dyld"
4843 # FIXME: Relying on posixy $() will cause problems for
4844 # cross-compilation, but unfortunately the echo tests do not
4845 # yet detect zsh echo's removal of \ escapes.
4846 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)'
4847 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4848 shlibpath_overrides_runpath=yes
4849 shlibpath_var=DYLD_LIBRARY_PATH
4857 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4858 version_type=freebsd-$objformat
4859 case $version_type in
4861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4866 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4870 shlibpath_var=LD_LIBRARY_PATH
4873 shlibpath_overrides_runpath=yes
4876 shlibpath_overrides_runpath=no
4877 hardcode_into_libs=yes
4886 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4887 soname_spec='${libname}${release}.so$major'
4888 shlibpath_var=LD_LIBRARY_PATH
4889 hardcode_into_libs=yes
4892 hpux9* | hpux10* | hpux11*)
4893 # Give a soname corresponding to the major version so that dld.sl refuses to
4894 # link against other versions.
4895 dynamic_linker="$host_os dld.sl"
4899 shlibpath_var=SHLIB_PATH
4900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4901 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4902 soname_spec='${libname}${release}.sl$major'
4903 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4904 postinstall_cmds='chmod 555 $lib'
4911 soname_spec='${libname}${release}.so$major'
4912 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4918 case $LD in # libtool.m4 will add one of these switches to LD
4919 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4920 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4921 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4922 *) libsuff= shlibsuff= libmagic=never-match;;
4926 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4927 shlibpath_overrides_runpath=no
4928 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4929 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4932 # No shared lib support for Linux oldld, aout, or coff.
4933 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4937 # This must be Linux ELF.
4942 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4943 soname_spec='${libname}${release}.so$major'
4944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4945 shlibpath_var=LD_LIBRARY_PATH
4946 shlibpath_overrides_runpath=no
4947 # This implies no fast_install, which is unacceptable.
4948 # Some rework will be needed to allow for fast_install
4949 # before this can be enabled.
4950 hardcode_into_libs=yes
4952 # We used to test for /lib/ld.so.1 and disable shared libraries on
4953 # powerpc, because MkLinux only supported shared libraries with the
4954 # GNU dynamic linker. Since this was broken with cross compilers,
4955 # most powerpc-linux boxes support dynamic linking these days and
4956 # people can always --disable-shared, the test was removed, and we
4957 # assume the GNU/Linux dynamic linker is in use.
4958 dynamic_linker='GNU/Linux ld.so'
4965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4966 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4968 dynamic_linker='NetBSD (a.out) ld.so'
4970 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4971 soname_spec='${libname}${release}.so$major'
4972 dynamic_linker='NetBSD ld.elf_so'
4974 shlibpath_var=LD_LIBRARY_PATH
4975 shlibpath_overrides_runpath=yes
4976 hardcode_into_libs=yes
4981 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4982 shlibpath_var=LD_LIBRARY_PATH
4983 shlibpath_overrides_runpath=yes
4990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4992 openbsd2.[89] | openbsd2.[89].*)
4993 shlibpath_overrides_runpath=no
4996 shlibpath_overrides_runpath=yes
5000 shlibpath_overrides_runpath=yes
5002 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5004 shlibpath_var=LD_LIBRARY_PATH
5008 libname_spec='$name'
5010 library_names_spec='$libname.dll $libname.a'
5011 dynamic_linker='OS/2 ld.exe'
5012 shlibpath_var=LIBPATH
5015 osf3* | osf4* | osf5*)
5018 soname_spec='${libname}${release}.so'
5019 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5020 shlibpath_var=LD_LIBRARY_PATH
5021 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5022 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5027 soname_spec='${libname}${release}.so$major'
5028 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5029 shlibpath_var=LD_LIBRARY_PATH
5036 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5037 soname_spec='${libname}${release}.so$major'
5038 shlibpath_var=LD_LIBRARY_PATH
5039 shlibpath_overrides_runpath=yes
5040 hardcode_into_libs=yes
5041 # ldd complains unless libraries are executable
5042 postinstall_cmds='chmod +x $lib'
5047 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5049 shlibpath_var=LD_LIBRARY_PATH
5050 shlibpath_overrides_runpath=yes
5051 if test "$with_gnu_ld" = yes; then
5057 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5059 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5060 soname_spec='${libname}${release}.so$major'
5061 shlibpath_var=LD_LIBRARY_PATH
5062 case $host_vendor in
5064 shlibpath_overrides_runpath=no
5069 shlibpath_overrides_runpath=no
5070 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5077 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5078 soname_spec='${libname}${release}.so$major'
5079 shlibpath_var=LD_LIBRARY_PATH
5086 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5087 soname_spec='${libname}${release}.so$major'
5088 shlibpath_var=LD_LIBRARY_PATH
5092 if test -d /usr/nec ;then
5094 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5095 soname_spec='$libname.so.$major'
5096 shlibpath_var=LD_LIBRARY_PATH
5104 echo "$as_me:5104: result: $dynamic_linker" >&5
5105 echo "${ECHO_T}$dynamic_linker" >&6
5106 test "$dynamic_linker" = no && can_build_shared=no
5108 # Report the final consequences.
5109 echo "$as_me:5109: checking if libtool supports shared libraries" >&5
5110 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5111 echo "$as_me:5111: result: $can_build_shared" >&5
5112 echo "${ECHO_T}$can_build_shared" >&6
5114 echo "$as_me:5114: checking whether to build shared libraries" >&5
5115 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5116 test "$can_build_shared" = "no" && enable_shared=no
5118 # On AIX, shared libraries and static libraries use the same namespace, and
5119 # are all built from PIC.
5122 test "$enable_shared" = yes && enable_static=no
5123 if test -n "$RANLIB"; then
5124 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5125 postinstall_cmds='$RANLIB $lib'
5130 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5131 test "$enable_shared" = yes && enable_static=no
5135 echo "$as_me:5135: result: $enable_shared" >&5
5136 echo "${ECHO_T}$enable_shared" >&6
5138 echo "$as_me:5138: checking whether to build static libraries" >&5
5139 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5140 # Make sure either enable_shared or enable_static is yes.
5141 test "$enable_shared" = yes || enable_static=yes
5142 echo "$as_me:5142: result: $enable_static" >&5
5143 echo "${ECHO_T}$enable_static" >&6
5145 if test "$hardcode_action" = relink; then
5146 # Fast installation is not supported
5147 enable_fast_install=no
5148 elif test "$shlibpath_overrides_runpath" = yes ||
5149 test "$enable_shared" = no; then
5150 # Fast installation is not necessary
5151 enable_fast_install=needless
5154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5155 if test "$GCC" = yes; then
5156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5159 if test "x$enable_dlopen" != xyes; then
5160 enable_dlopen=unknown
5161 enable_dlopen_self=unknown
5162 enable_dlopen_self_static=unknown
5169 lt_cv_dlopen="load_add_on"
5171 lt_cv_dlopen_self=yes
5174 cygwin* | mingw* | pw32*)
5175 lt_cv_dlopen="LoadLibrary"
5180 echo "$as_me:5180: checking for shl_load" >&5
5181 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5182 if test "${ac_cv_func_shl_load+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 cat >conftest.$ac_ext <<_ACEOF
5186 #line 5186 "configure"
5187 #include "confdefs.h"
5188 /* System header to define __stub macros and hopefully few prototypes,
5189 which can conflict with char shl_load (); below. */
5191 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5203 /* The GNU C library defines this for functions which it implements
5204 to always fail with ENOSYS. Some functions are actually named
5205 something starting with __ and the normal name is an alias. */
5206 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5216 rm -f conftest.$ac_objext conftest$ac_exeext
5217 if { (eval echo "$as_me:5217: \"$ac_link\"") >&5
5218 (eval $ac_link) 2>&5
5220 echo "$as_me:5220: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -s conftest$ac_exeext'
5223 { (eval echo "$as_me:5223: \"$ac_try\"") >&5
5226 echo "$as_me:5226: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_cv_func_shl_load=yes
5230 echo "$as_me: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 ac_cv_func_shl_load=no
5234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5236 echo "$as_me:5236: result: $ac_cv_func_shl_load" >&5
5237 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5238 if test $ac_cv_func_shl_load = yes; then
5239 lt_cv_dlopen="shl_load"
5241 echo "$as_me:5241: checking for shl_load in -ldld" >&5
5242 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5243 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 ac_check_lib_save_LIBS=$LIBS
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line 5249 "configure"
5250 #include "confdefs.h"
5252 /* Override any gcc2 internal prototype to avoid an error. */
5256 /* We use char because int might match the return type of a gcc2
5257 builtin and then its argument prototype would still apply. */
5267 rm -f conftest.$ac_objext conftest$ac_exeext
5268 if { (eval echo "$as_me:5268: \"$ac_link\"") >&5
5269 (eval $ac_link) 2>&5
5271 echo "$as_me:5271: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -s conftest$ac_exeext'
5274 { (eval echo "$as_me:5274: \"$ac_try\"") >&5
5277 echo "$as_me:5277: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_lib_dld_shl_load=yes
5281 echo "$as_me: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5283 ac_cv_lib_dld_shl_load=no
5285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_check_lib_save_LIBS
5288 echo "$as_me:5288: result: $ac_cv_lib_dld_shl_load" >&5
5289 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5290 if test $ac_cv_lib_dld_shl_load = yes; then
5291 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5293 echo "$as_me:5293: checking for dlopen" >&5
5294 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5295 if test "${ac_cv_func_dlopen+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 cat >conftest.$ac_ext <<_ACEOF
5299 #line 5299 "configure"
5300 #include "confdefs.h"
5301 /* System header to define __stub macros and hopefully few prototypes,
5302 which can conflict with char dlopen (); below. */
5304 /* Override any gcc2 internal prototype to avoid an error. */
5308 /* We use char because int might match the return type of a gcc2
5309 builtin and then its argument prototype would still apply. */
5316 /* The GNU C library defines this for functions which it implements
5317 to always fail with ENOSYS. Some functions are actually named
5318 something starting with __ and the normal name is an alias. */
5319 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5329 rm -f conftest.$ac_objext conftest$ac_exeext
5330 if { (eval echo "$as_me:5330: \"$ac_link\"") >&5
5331 (eval $ac_link) 2>&5
5333 echo "$as_me:5333: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -s conftest$ac_exeext'
5336 { (eval echo "$as_me:5336: \"$ac_try\"") >&5
5339 echo "$as_me:5339: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_cv_func_dlopen=yes
5343 echo "$as_me: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5345 ac_cv_func_dlopen=no
5347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5349 echo "$as_me:5349: result: $ac_cv_func_dlopen" >&5
5350 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5351 if test $ac_cv_func_dlopen = yes; then
5352 lt_cv_dlopen="dlopen"
5354 echo "$as_me:5354: checking for dlopen in -ldl" >&5
5355 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 ac_check_lib_save_LIBS=$LIBS
5361 cat >conftest.$ac_ext <<_ACEOF
5362 #line 5362 "configure"
5363 #include "confdefs.h"
5365 /* Override any gcc2 internal prototype to avoid an error. */
5369 /* We use char because int might match the return type of a gcc2
5370 builtin and then its argument prototype would still apply. */
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (eval echo "$as_me:5381: \"$ac_link\"") >&5
5382 (eval $ac_link) 2>&5
5384 echo "$as_me:5384: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -s conftest$ac_exeext'
5387 { (eval echo "$as_me:5387: \"$ac_try\"") >&5
5390 echo "$as_me:5390: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_cv_lib_dl_dlopen=yes
5394 echo "$as_me: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 ac_cv_lib_dl_dlopen=no
5398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5399 LIBS=$ac_check_lib_save_LIBS
5401 echo "$as_me:5401: result: $ac_cv_lib_dl_dlopen" >&5
5402 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5403 if test $ac_cv_lib_dl_dlopen = yes; then
5404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5406 echo "$as_me:5406: checking for dlopen in -lsvld" >&5
5407 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5408 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 ac_check_lib_save_LIBS=$LIBS
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line 5414 "configure"
5415 #include "confdefs.h"
5417 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */
5432 rm -f conftest.$ac_objext conftest$ac_exeext
5433 if { (eval echo "$as_me:5433: \"$ac_link\"") >&5
5434 (eval $ac_link) 2>&5
5436 echo "$as_me:5436: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -s conftest$ac_exeext'
5439 { (eval echo "$as_me:5439: \"$ac_try\"") >&5
5442 echo "$as_me:5442: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_lib_svld_dlopen=yes
5446 echo "$as_me: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5448 ac_cv_lib_svld_dlopen=no
5450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5451 LIBS=$ac_check_lib_save_LIBS
5453 echo "$as_me:5453: result: $ac_cv_lib_svld_dlopen" >&5
5454 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5455 if test $ac_cv_lib_svld_dlopen = yes; then
5456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5458 echo "$as_me:5458: checking for dld_link in -ldld" >&5
5459 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5460 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_check_lib_save_LIBS=$LIBS
5465 cat >conftest.$ac_ext <<_ACEOF
5466 #line 5466 "configure"
5467 #include "confdefs.h"
5469 /* Override any gcc2 internal prototype to avoid an error. */
5473 /* We use char because int might match the return type of a gcc2
5474 builtin and then its argument prototype would still apply. */
5484 rm -f conftest.$ac_objext conftest$ac_exeext
5485 if { (eval echo "$as_me:5485: \"$ac_link\"") >&5
5486 (eval $ac_link) 2>&5
5488 echo "$as_me:5488: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -s conftest$ac_exeext'
5491 { (eval echo "$as_me:5491: \"$ac_try\"") >&5
5494 echo "$as_me:5494: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_cv_lib_dld_dld_link=yes
5498 echo "$as_me: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5500 ac_cv_lib_dld_dld_link=no
5502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_check_lib_save_LIBS
5505 echo "$as_me:5505: result: $ac_cv_lib_dld_dld_link" >&5
5506 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5507 if test $ac_cv_lib_dld_dld_link = yes; then
5508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5524 if test "x$lt_cv_dlopen" != xno; then
5530 case $lt_cv_dlopen in
5532 save_CPPFLAGS="$CPPFLAGS"
5533 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5535 save_LDFLAGS="$LDFLAGS"
5536 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5539 LIBS="$lt_cv_dlopen_libs $LIBS"
5541 echo "$as_me:5541: checking whether a program can dlopen itself" >&5
5542 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5543 if test "${lt_cv_dlopen_self+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 if test "$cross_compiling" = yes; then :
5547 lt_cv_dlopen_self=cross
5549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5550 lt_status=$lt_dlunknown
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5552 "configure"
5553 #include "confdefs.h"
5562 # define LT_DLGLOBAL RTLD_GLOBAL
5565 # define LT_DLGLOBAL DL_GLOBAL
5567 # define LT_DLGLOBAL 0
5571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5572 find out it does not work in some platform. */
5573 #ifndef LT_DLLAZY_OR_NOW
5575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5578 # define LT_DLLAZY_OR_NOW DL_LAZY
5581 # define LT_DLLAZY_OR_NOW RTLD_NOW
5584 # define LT_DLLAZY_OR_NOW DL_NOW
5586 # define LT_DLLAZY_OR_NOW 0
5594 extern "C" void exit (int);
5597 void fnord() { int i=42;}
5600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5601 int status = $lt_dlunknown;
5605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5607 /* dlclose (self); */
5613 if { (eval echo "$as_me:5613: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>&5
5616 echo "$as_me:5616: \$? = $ac_status" >&5
5617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5618 (./conftest; exit; ) 2>/dev/null
5621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5623 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5626 # compilation failed
5627 lt_cv_dlopen_self=no
5633 echo "$as_me:5633: result: $lt_cv_dlopen_self" >&5
5634 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5636 if test "x$lt_cv_dlopen_self" = xyes; then
5637 LDFLAGS="$LDFLAGS $link_static_flag"
5638 echo "$as_me:5638: checking whether a statically linked program can dlopen itself" >&5
5639 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5640 if test "${lt_cv_dlopen_self_static+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 if test "$cross_compiling" = yes; then :
5644 lt_cv_dlopen_self_static=cross
5646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5647 lt_status=$lt_dlunknown
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5649 "configure"
5650 #include "confdefs.h"
5659 # define LT_DLGLOBAL RTLD_GLOBAL
5662 # define LT_DLGLOBAL DL_GLOBAL
5664 # define LT_DLGLOBAL 0
5668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5669 find out it does not work in some platform. */
5670 #ifndef LT_DLLAZY_OR_NOW
5672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5675 # define LT_DLLAZY_OR_NOW DL_LAZY
5678 # define LT_DLLAZY_OR_NOW RTLD_NOW
5681 # define LT_DLLAZY_OR_NOW DL_NOW
5683 # define LT_DLLAZY_OR_NOW 0
5691 extern "C" void exit (int);
5694 void fnord() { int i=42;}
5697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5698 int status = $lt_dlunknown;
5702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5704 /* dlclose (self); */
5710 if { (eval echo "$as_me:5710: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>&5
5713 echo "$as_me:5713: \$? = $ac_status" >&5
5714 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5715 (./conftest; exit; ) 2>/dev/null
5718 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5719 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5720 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5723 # compilation failed
5724 lt_cv_dlopen_self_static=no
5730 echo "$as_me:5730: result: $lt_cv_dlopen_self_static" >&5
5731 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5734 CPPFLAGS="$save_CPPFLAGS"
5735 LDFLAGS="$save_LDFLAGS"
5740 case $lt_cv_dlopen_self in
5741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5742 *) enable_dlopen_self=unknown ;;
5745 case $lt_cv_dlopen_self_static in
5746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5747 *) enable_dlopen_self_static=unknown ;;
5751 if test "$enable_shared" = yes && test "$GCC" = yes; then
5752 case $archive_cmds in
5754 # FIXME: we may have to deal with multi-command sequences.
5757 # Test whether the compiler implicitly links with -lc since on some
5758 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5759 # to ld, don't add -lc before -lgcc.
5760 echo "$as_me:5760: checking whether -lc should be explicitly linked in" >&5
5761 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5762 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 echo 'static int dummy;' > conftest.$ac_ext
5768 if { (eval echo "$as_me:5768: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5771 echo "$as_me:5771: \$? = $ac_status" >&5
5772 (exit $ac_status); }; then
5775 libobjs=conftest.$ac_objext
5777 wl=$lt_cv_prog_cc_wl
5783 save_allow_undefined_flag=$allow_undefined_flag
5784 allow_undefined_flag=
5785 if { (eval echo "$as_me:5785: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5786 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5788 echo "$as_me:5788: \$? = $ac_status" >&5
5789 (exit $ac_status); }
5791 lt_cv_archive_cmds_need_lc=no
5793 lt_cv_archive_cmds_need_lc=yes
5795 allow_undefined_flag=$save_allow_undefined_flag
5797 cat conftest.err 1>&5
5801 echo "$as_me:5801: result: $lt_cv_archive_cmds_need_lc" >&5
5802 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5806 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5808 # The second clause should only fire when bootstrapping the
5809 # libtool distribution, otherwise you forgot to ship ltmain.sh
5810 # with your package, and you will get complaints that there are
5811 # no rules to generate ltmain.sh.
5812 if test -f "$ltmain"; then
5815 # If there is no Makefile yet, we rely on a make rule to execute
5816 # `config.status --recheck' to rerun these tests and create the
5817 # libtool script then.
5818 test -f Makefile && make "$ltmain"
5821 if test -f "$ltmain"; then
5822 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5825 echo creating $ofile
5827 # Now quote all the things that may contain metacharacters while being
5828 # careful not to overquote the AC_SUBSTed values. We take copies of the
5829 # variables and quote the copies for generation of the libtool script.
5830 for var in echo old_CC old_CFLAGS \
5831 AR AR_FLAGS CC LD LN_S NM SHELL \
5832 reload_flag reload_cmds wl \
5833 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5834 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5835 library_names_spec soname_spec \
5836 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5837 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5838 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5839 old_striplib striplib file_magic_cmd export_symbols_cmds \
5840 deplibs_check_method allow_undefined_flag no_undefined_flag \
5841 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5842 global_symbol_to_c_name_address \
5843 hardcode_libdir_flag_spec hardcode_libdir_separator \
5844 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5845 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5848 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5849 old_postinstall_cmds | old_postuninstall_cmds | \
5850 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5851 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5852 postinstall_cmds | postuninstall_cmds | \
5853 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5854 # Double-quote double-evaled strings.
5855 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5863 cat <<__EOF__ > "${ofile}T"
5866 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5867 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5868 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5870 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5871 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5873 # This program is free software; you can redistribute it and/or modify
5874 # it under the terms of the GNU General Public License as published by
5875 # the Free Software Foundation; either version 2 of the License, or
5876 # (at your option) any later version.
5878 # This program is distributed in the hope that it will be useful, but
5879 # WITHOUT ANY WARRANTY; without even the implied warranty of
5880 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5881 # General Public License for more details.
5883 # You should have received a copy of the GNU General Public License
5884 # along with this program; if not, write to the Free Software
5885 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5887 # As a special exception to the GNU General Public License, if you
5888 # distribute this file as part of a program that contains a
5889 # configuration script generated by Autoconf, you may include it under
5890 # the same distribution terms that you use for the rest of that program.
5892 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5893 Xsed="sed -e s/^X//"
5895 # The HP-UX ksh and POSIX shell print the target directory to stdout
5897 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5899 # ### BEGIN LIBTOOL CONFIG
5901 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5903 # Shell to use when invoking shell scripts.
5906 # Whether or not to build shared libraries.
5907 build_libtool_libs=$enable_shared
5909 # Whether or not to build static libraries.
5910 build_old_libs=$enable_static
5912 # Whether or not to add -lc for building shared libraries.
5913 build_libtool_need_lc=$need_lc
5915 # Whether or not to optimize for fast installation.
5916 fast_install=$enable_fast_install
5919 host_alias=$host_alias
5922 # An echo program that does not interpret backslashes.
5927 AR_FLAGS=$lt_AR_FLAGS
5929 # The default C compiler.
5932 # Is the compiler the GNU C compiler?
5935 # The linker used to build libraries.
5938 # Whether we need hard or soft links.
5941 # A BSD-compatible nm program.
5944 # A symbol stripping program
5947 # Used to examine libraries when file_magic_cmd begins "file"
5948 MAGIC_CMD=$MAGIC_CMD
5950 # Used on cygwin: DLL creation program.
5953 # Used on cygwin: object dumper.
5956 # Used on cygwin: assembler.
5959 # The name of the directory that contains temporary libtool files.
5962 # How to create reloadable object files.
5963 reload_flag=$lt_reload_flag
5964 reload_cmds=$lt_reload_cmds
5966 # How to pass a linker flag through the compiler.
5969 # Object file suffix (normally "o").
5972 # Old archive suffix (normally "a").
5975 # Executable file suffix (normally "").
5978 # Additional compiler flags for building library objects.
5979 pic_flag=$lt_pic_flag
5982 # Does compiler simultaneously support -c and -o options?
5983 compiler_c_o=$lt_compiler_c_o
5985 # Can we write directly to a .lo ?
5986 compiler_o_lo=$lt_compiler_o_lo
5988 # Must we lock files when doing compilation ?
5989 need_locks=$lt_need_locks
5991 # Do we need the lib prefix for modules?
5992 need_lib_prefix=$need_lib_prefix
5994 # Do we need a version for libraries?
5995 need_version=$need_version
5997 # Whether dlopen is supported.
5998 dlopen_support=$enable_dlopen
6000 # Whether dlopen of programs is supported.
6001 dlopen_self=$enable_dlopen_self
6003 # Whether dlopen of statically linked programs is supported.
6004 dlopen_self_static=$enable_dlopen_self_static
6006 # Compiler flag to prevent dynamic linking.
6007 link_static_flag=$lt_link_static_flag
6009 # Compiler flag to turn off builtin functions.
6010 no_builtin_flag=$lt_no_builtin_flag
6012 # Compiler flag to allow reflexive dlopens.
6013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6015 # Compiler flag to generate shared objects directly from archives.
6016 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6018 # Compiler flag to generate thread-safe objects.
6019 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6021 # Library versioning type.
6022 version_type=$version_type
6024 # Format of library name prefix.
6025 libname_spec=$lt_libname_spec
6027 # List of archive names. First name is the real one, the rest are links.
6028 # The last name is the one that the linker finds with -lNAME.
6029 library_names_spec=$lt_library_names_spec
6031 # The coded name of the library, if different from the real name.
6032 soname_spec=$lt_soname_spec
6034 # Commands used to build and install an old-style archive.
6036 old_archive_cmds=$lt_old_archive_cmds
6037 old_postinstall_cmds=$lt_old_postinstall_cmds
6038 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6040 # Create an old-style archive from a shared archive.
6041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6043 # Create a temporary old-style archive to link instead of a shared archive.
6044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6046 # Commands used to build and install a shared archive.
6047 archive_cmds=$lt_archive_cmds
6048 archive_expsym_cmds=$lt_archive_expsym_cmds
6049 postinstall_cmds=$lt_postinstall_cmds
6050 postuninstall_cmds=$lt_postuninstall_cmds
6052 # Commands to strip libraries.
6053 old_striplib=$lt_old_striplib
6054 striplib=$lt_striplib
6056 # Method to check whether dependent libraries are shared objects.
6057 deplibs_check_method=$lt_deplibs_check_method
6059 # Command to use when deplibs_check_method == file_magic.
6060 file_magic_cmd=$lt_file_magic_cmd
6062 # Flag that allows shared libraries with undefined symbols to be built.
6063 allow_undefined_flag=$lt_allow_undefined_flag
6065 # Flag that forces no undefined symbols.
6066 no_undefined_flag=$lt_no_undefined_flag
6068 # Commands used to finish a libtool library installation in a directory.
6069 finish_cmds=$lt_finish_cmds
6071 # Same as above, but a single script fragment to be evaled but not shown.
6072 finish_eval=$lt_finish_eval
6074 # Take the output of nm and produce a listing of raw symbols and C names.
6075 global_symbol_pipe=$lt_global_symbol_pipe
6077 # Transform the output of nm in a proper C declaration
6078 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6080 # Transform the output of nm in a C name address pair
6081 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6083 # This is the shared library runtime path variable.
6084 runpath_var=$runpath_var
6086 # This is the shared library path variable.
6087 shlibpath_var=$shlibpath_var
6089 # Is shlibpath searched before the hard-coded library search path?
6090 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6092 # How to hardcode a shared library path into an executable.
6093 hardcode_action=$hardcode_action
6095 # Whether we should hardcode library paths into libraries.
6096 hardcode_into_libs=$hardcode_into_libs
6098 # Flag to hardcode \$libdir into a binary during linking.
6099 # This must work even if \$libdir does not exist.
6100 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6102 # Whether we need a single -rpath flag with a separated argument.
6103 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6105 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6107 hardcode_direct=$hardcode_direct
6109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6111 hardcode_minus_L=$hardcode_minus_L
6113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6114 # the resulting binary.
6115 hardcode_shlibpath_var=$hardcode_shlibpath_var
6117 # Variables whose values should be saved in libtool wrapper scripts and
6118 # restored at relink time.
6119 variables_saved_for_relink="$variables_saved_for_relink"
6121 # Whether libtool must link a program against all its dependency libraries.
6122 link_all_deplibs=$link_all_deplibs
6124 # Compile-time system search path for libraries
6125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6127 # Run-time system search path for libraries
6128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6130 # Fix the shell variable \$srcfile for the compiler.
6131 fix_srcfile_path="$fix_srcfile_path"
6133 # Set to yes if exported symbols are required.
6134 always_export_symbols=$always_export_symbols
6136 # The commands to list exported symbols.
6137 export_symbols_cmds=$lt_export_symbols_cmds
6139 # The commands to extract the exported symbol list from a shared archive.
6140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6142 # Symbols that should not be listed in the preloaded symbols.
6143 exclude_expsyms=$lt_exclude_expsyms
6145 # Symbols that must always be exported.
6146 include_expsyms=$lt_include_expsyms
6148 # ### END LIBTOOL CONFIG
6154 cat <<\EOF >> "${ofile}T"
6156 # AIX sometimes has problems with the GCC collect2 program. For some
6157 # reason, if we set the COLLECT_NAMES environment variable, the problems
6158 # vanish in a puff of smoke.
6159 if test "X${COLLECT_NAMES+set}" != Xset; then
6161 export COLLECT_NAMES
6168 cygwin* | mingw* | pw32* | os2*)
6169 cat <<'EOF' >> "${ofile}T"
6170 # This is a source program that is used to create dlls on Windows
6171 # Don't remove nor modify the starting and closing comments
6172 # /* ltdll.c starts here */
6173 # #define WIN32_LEAN_AND_MEAN
6174 # #include <windows.h>
6175 # #undef WIN32_LEAN_AND_MEAN
6176 # #include <stdio.h>
6178 # #ifndef __CYGWIN__
6179 # # ifdef __CYGWIN32__
6180 # # define __CYGWIN__ __CYGWIN32__
6184 # #ifdef __cplusplus
6187 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6188 # #ifdef __cplusplus
6193 # #include <cygwin/cygwin_dll.h>
6194 # DECLARE_CYGWIN_DLL( DllMain );
6196 # HINSTANCE __hDllInstance_base;
6199 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6201 # __hDllInstance_base = hInst;
6204 # /* ltdll.c ends here */
6205 # This is a source program that is used to create import libraries
6206 # on Windows for dlls which lack them. Don't remove nor modify the
6207 # starting and closing comments
6208 # /* impgen.c starts here */
6209 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6211 # This file is part of GNU libtool.
6213 # This program is free software; you can redistribute it and/or modify
6214 # it under the terms of the GNU General Public License as published by
6215 # the Free Software Foundation; either version 2 of the License, or
6216 # (at your option) any later version.
6218 # This program is distributed in the hope that it will be useful,
6219 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6221 # GNU General Public License for more details.
6223 # You should have received a copy of the GNU General Public License
6224 # along with this program; if not, write to the Free Software
6225 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6228 # #include <stdio.h> /* for printf() */
6229 # #include <unistd.h> /* for open(), lseek(), read() */
6230 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6231 # #include <string.h> /* for strdup() */
6233 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6235 # #define O_BINARY 0
6238 # static unsigned int
6239 # pe_get16 (fd, offset)
6243 # unsigned char b[2];
6244 # lseek (fd, offset, SEEK_SET);
6246 # return b[0] + (b[1]<<8);
6249 # static unsigned int
6250 # pe_get32 (fd, offset)
6254 # unsigned char b[4];
6255 # lseek (fd, offset, SEEK_SET);
6257 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6260 # static unsigned int
6264 # unsigned char *b = ptr;
6265 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6274 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6275 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6276 # unsigned long name_rvas, nexp;
6277 # unsigned char *expdata, *erva;
6278 # char *filename, *dll_name;
6280 # filename = argv[1];
6282 # dll = open(filename, O_RDONLY|O_BINARY);
6286 # dll_name = filename;
6288 # for (i=0; filename[i]; i++)
6289 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6290 # dll_name = filename + i +1;
6292 # pe_header_offset = pe_get32 (dll, 0x3c);
6293 # opthdr_ofs = pe_header_offset + 4 + 20;
6294 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6296 # if (num_entries < 1) /* no exports */
6299 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6300 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6301 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6302 # secptr = (pe_header_offset + 4 + 20 +
6303 # pe_get16 (dll, pe_header_offset + 4 + 16));
6306 # for (i = 0; i < nsections; i++)
6309 # unsigned long secptr1 = secptr + 40 * i;
6310 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6311 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6312 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6313 # lseek(dll, secptr1, SEEK_SET);
6314 # read(dll, sname, 8);
6315 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6317 # expptr = fptr + (export_rva - vaddr);
6318 # if (export_rva + export_size > vaddr + vsize)
6319 # export_size = vsize - (export_rva - vaddr);
6324 # expdata = (unsigned char*)malloc(export_size);
6325 # lseek (dll, expptr, SEEK_SET);
6326 # read (dll, expdata, export_size);
6327 # erva = expdata - export_rva;
6329 # nexp = pe_as32 (expdata+24);
6330 # name_rvas = pe_as32 (expdata+32);
6332 # printf ("EXPORTS\n");
6333 # for (i = 0; i<nexp; i++)
6335 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6336 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6341 # /* impgen.c ends here */
6347 # We use sed instead of cat because bash on DJGPP gets confused if
6348 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6349 # text mode, it properly converts lines to CR/LF. This bash problem
6350 # is reportedly fixed, but why not run on old versions too?
6351 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6353 mv -f "${ofile}T" "$ofile" || \
6354 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6358 # This can be used to rebuild libtool when needed
6359 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6361 # Always use our own libtool.
6362 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6364 # Prevent multiple expansion
6366 # Extract the first word of "libusb-config", so it can be a program name with args.
6367 set dummy libusb-config; ac_word=$2
6368 echo "$as_me:6368: checking for $ac_word" >&5
6369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6370 if test "${ac_cv_path_HAVELIBUSB+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 ac_cv_path_HAVELIBUSB="$HAVELIBUSB" # Let the user override the test with a path.
6378 ac_save_IFS=$IFS; IFS=$ac_path_separator
6380 for ac_dir in $ac_dummy; do
6382 test -z "$ac_dir" && ac_dir=.
6383 if $as_executable_p "$ac_dir/$ac_word"; then
6384 ac_cv_path_HAVELIBUSB="$ac_dir/$ac_word"
6385 echo "$as_me:6385: found $ac_dir/$ac_word" >&5
6390 test -z "$ac_cv_path_HAVELIBUSB" && ac_cv_path_HAVELIBUSB="$PATH"
6394 HAVELIBUSB=$ac_cv_path_HAVELIBUSB
6396 if test -n "$HAVELIBUSB"; then
6397 echo "$as_me:6397: result: $HAVELIBUSB" >&5
6398 echo "${ECHO_T}$HAVELIBUSB" >&6
6400 echo "$as_me:6400: result: no" >&5
6401 echo "${ECHO_T}no" >&6
6404 if test ! -z "$HAVELIBUSB"; then
6405 LIBUSB_LIBS=`$HAVELIBUSB --libs`
6407 CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
6408 LIBS="$LIBS $LIBUSB_LIBS"
6410 { { echo "$as_me:6410: error: *** libusb-config not found. You need a working libusb installation." >&5
6411 echo "$as_me: error: *** libusb-config not found. You need a working libusb installation." >&2;}
6412 { (exit 1); exit 1; }; }
6415 echo "$as_me:6415: checking if libusb version is >= 0.1.7" >&5
6416 echo $ECHO_N "checking if libusb version is >= 0.1.7... $ECHO_C" >&6
6417 libusb_version_needed="1007"
6418 libusb_version=`$HAVELIBUSB --version | sed -e "s/libusb //" | awk 'BEGIN { FS = "."; } { printf "%d", ($''1 * 1000 + $''2) * 1000 + $''3;}'`
6420 if test $libusb_version -lt $libusb_version_needed; then
6421 echo "$as_me:6421: result: no" >&5
6422 echo "${ECHO_T}no" >&6
6423 { { echo "$as_me:6423: error: *** libusb is too old ($libusb_version). You need a libusb installation newer or equal to 0.1.7." >&5
6424 echo "$as_me: error: *** libusb is too old ($libusb_version). You need a libusb installation newer or equal to 0.1.7." >&2;}
6425 { (exit 1); exit 1; }; }
6427 echo "$as_me:6427: result: yes" >&5
6428 echo "${ECHO_T}yes" >&6
6431 ac_config_files="$ac_config_files Makefile src/Makefile libftdi.pc"
6432 cat >confcache <<\_ACEOF
6433 # This file is a shell script that caches the results of configure
6434 # tests run on this system so they can be shared between configure
6435 # scripts and configure runs, see configure's option --config-cache.
6436 # It is not useful on other systems. If it contains results you don't
6437 # want to keep, you may remove or edit it.
6439 # config.status only pays attention to the cache file if you give it
6440 # the --recheck option to rerun configure.
6442 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6448 # The following way of writing the cache mishandles newlines in values,
6449 # but we know of no workaround that is simple, portable, and efficient.
6450 # So, don't put newlines in cache variables' values.
6451 # Ultrix sh set writes to stderr and can't be redirected directly,
6452 # and sets the high bit in the cache file unless we assign to the vars.
6455 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6457 # `set' does not quote correctly, so add quotes (double-quote
6458 # substitution turns \\\\ into \\, and sed turns \\ into \).
6461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6464 # `set' quotes correctly as required by POSIX, so do not add quotes.
6466 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6475 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6477 if cmp -s $cache_file confcache; then :; else
6478 if test -w $cache_file; then
6479 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6480 cat confcache >$cache_file
6482 echo "not updating unwritable cache $cache_file"
6487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6488 # Let make expand exec_prefix.
6489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6493 # trailing colons and then remove the whole line if VPATH becomes empty
6494 # (actually we leave an empty line to preserve line numbers).
6495 if test "x$srcdir" = x.; then
6496 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6497 s/:*\$(srcdir):*/:/;
6498 s/:*\${srcdir}:*/:/;
6500 s/^\([^=]*=[ ]*\):*/\1/;
6506 DEFS=-DHAVE_CONFIG_H
6508 : ${CONFIG_STATUS=./config.status}
6509 ac_clean_files_save=$ac_clean_files
6510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6511 { echo "$as_me:6511: creating $CONFIG_STATUS" >&5
6512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6513 cat >$CONFIG_STATUS <<_ACEOF
6515 # Generated automatically by configure.
6516 # Run this file to recreate the current configuration.
6517 # Compiler output produced by configure, useful for debugging
6518 # configure, is in config.log if it exists.
6521 SHELL=\${CONFIG_SHELL-$SHELL}
6522 ac_cs_invocation="\$0 \$@"
6526 cat >>$CONFIG_STATUS <<\_ACEOF
6527 # Be Bourne compatible
6528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6531 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6535 # Name of the executable.
6536 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6538 if expr a : '\(a\)' >/dev/null 2>&1; then
6544 rm -f conf$$ conf$$.exe conf$$.file
6546 if ln -s conf$$.file conf$$ 2>/dev/null; then
6547 # We could just check for DJGPP; but this test a) works b) is more generic
6548 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6549 if test -f conf$$.exe; then
6550 # Don't use ln at all; we don't have any links
6555 elif ln conf$$.file conf$$ 2>/dev/null; then
6560 rm -f conf$$ conf$$.exe conf$$.file
6562 as_executable_p="test -f"
6564 # Support unset when possible.
6565 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6572 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6573 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6574 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6575 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6576 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6577 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6578 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6579 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6582 # We need space, tab and new line, in precisely that order.
6588 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6594 # Files that config.status was made for.
6595 if test -n "$ac_config_files"; then
6596 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6599 if test -n "$ac_config_headers"; then
6600 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6603 if test -n "$ac_config_links"; then
6604 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6607 if test -n "$ac_config_commands"; then
6608 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6611 cat >>$CONFIG_STATUS <<\EOF
6614 \`$as_me' instantiates files from templates according to the
6615 current configuration.
6617 Usage: $0 [OPTIONS] [FILE]...
6619 -h, --help print this help, then exit
6620 -V, --version print version number, then exit
6621 -d, --debug don't remove temporary files
6622 --recheck update $as_me by reconfiguring in the same conditions
6623 --file=FILE[:TEMPLATE]
6624 instantiate the configuration file FILE
6625 --header=FILE[:TEMPLATE]
6626 instantiate the configuration header FILE
6628 Configuration files:
6631 Configuration headers:
6634 Configuration commands:
6637 Report bugs to <bug-autoconf@gnu.org>."
6640 cat >>$CONFIG_STATUS <<EOF
6643 configured by $0, generated by GNU Autoconf 2.52,
6644 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6646 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6647 Free Software Foundation, Inc.
6648 This config.status script is free software; the Free Software Foundation
6649 gives unlimited permission to copy, distribute and modify it."
6654 cat >>$CONFIG_STATUS <<\EOF
6655 # If no file are specified by the user, then we need to provide default
6656 # value. By we need to know if files were specified by the user.
6662 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6663 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6665 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6669 *) # This is not an option, so the user has probably given explicit
6671 ac_need_defaults=false;;
6675 # Handling of the options.
6677 cat >>$CONFIG_STATUS <<EOF
6678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6679 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6680 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6682 cat >>$CONFIG_STATUS <<\EOF
6683 --version | --vers* | -V )
6684 echo "$ac_cs_version"; exit 0 ;;
6686 # Conflict between --help and --header
6687 { { echo "$as_me:6687: error: ambiguous option: $1
6688 Try \`$0 --help' for more information." >&5
6689 echo "$as_me: error: ambiguous option: $1
6690 Try \`$0 --help' for more information." >&2;}
6691 { (exit 1); exit 1; }; };;
6692 --help | --hel | -h )
6693 echo "$ac_cs_usage"; exit 0 ;;
6694 --debug | --d* | -d )
6696 --file | --fil | --fi | --f )
6698 CONFIG_FILES="$CONFIG_FILES $1"
6699 ac_need_defaults=false;;
6700 --header | --heade | --head | --hea )
6702 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6703 ac_need_defaults=false;;
6706 -*) { { echo "$as_me:6706: error: unrecognized option: $1
6707 Try \`$0 --help' for more information." >&5
6708 echo "$as_me: error: unrecognized option: $1
6709 Try \`$0 --help' for more information." >&2;}
6710 { (exit 1); exit 1; }; } ;;
6712 *) ac_config_targets="$ac_config_targets $1" ;;
6721 ## ----------------------- ##
6722 ## Running config.status. ##
6723 ## ----------------------- ##
6725 This file was extended by $as_me 2.52, executed with
6726 CONFIG_FILES = $CONFIG_FILES
6727 CONFIG_HEADERS = $CONFIG_HEADERS
6728 CONFIG_LINKS = $CONFIG_LINKS
6729 CONFIG_COMMANDS = $CONFIG_COMMANDS
6731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6736 cat >>$CONFIG_STATUS <<EOF
6738 # INIT-COMMANDS section.
6743 cat >>$CONFIG_STATUS <<\EOF
6744 for ac_config_target in $ac_config_targets
6746 case "$ac_config_target" in
6747 # Handling of arguments.
6748 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6749 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6750 "libftdi.pc" ) CONFIG_FILES="$CONFIG_FILES libftdi.pc" ;;
6751 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6752 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6753 *) { { echo "$as_me:6753: error: invalid argument: $ac_config_target" >&5
6754 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6755 { (exit 1); exit 1; }; };;
6759 # If the user did not use the arguments to specify the items to instantiate,
6760 # then the envvar interface is used. Set only those that are not.
6761 # We use the long form for the default assignment because of an extremely
6762 # bizarre bug on SunOS 4.1.3.
6763 if $ac_need_defaults; then
6764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6769 # Create a temporary directory, and hook for its removal unless debugging.
6772 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6773 trap '{ (exit 1); exit 1; }' 1 2 13 15
6776 # Create a (secure) tmp directory for tmp files.
6779 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6780 test -n "$tmp" && test -d "$tmp"
6783 tmp=$TMPDIR/cs$$-$RANDOM
6784 (umask 077 && mkdir $tmp)
6787 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6788 { (exit 1); exit 1; }
6793 cat >>$CONFIG_STATUS <<EOF
6796 # CONFIG_FILES section.
6799 # No need to generate the scripts if there are no CONFIG_FILES.
6800 # This happens for instance when ./config.status config.h
6801 if test -n "\$CONFIG_FILES"; then
6802 # Protect against being on the right side of a sed subst in config.status.
6803 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6804 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6805 s,@SHELL@,$SHELL,;t t
6806 s,@exec_prefix@,$exec_prefix,;t t
6807 s,@prefix@,$prefix,;t t
6808 s,@program_transform_name@,$program_transform_name,;t t
6809 s,@bindir@,$bindir,;t t
6810 s,@sbindir@,$sbindir,;t t
6811 s,@libexecdir@,$libexecdir,;t t
6812 s,@datadir@,$datadir,;t t
6813 s,@sysconfdir@,$sysconfdir,;t t
6814 s,@sharedstatedir@,$sharedstatedir,;t t
6815 s,@localstatedir@,$localstatedir,;t t
6816 s,@libdir@,$libdir,;t t
6817 s,@includedir@,$includedir,;t t
6818 s,@oldincludedir@,$oldincludedir,;t t
6819 s,@infodir@,$infodir,;t t
6820 s,@mandir@,$mandir,;t t
6821 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6822 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6823 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6824 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6825 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6826 s,@build_alias@,$build_alias,;t t
6827 s,@host_alias@,$host_alias,;t t
6828 s,@target_alias@,$target_alias,;t t
6829 s,@ECHO_C@,$ECHO_C,;t t
6830 s,@ECHO_N@,$ECHO_N,;t t
6831 s,@ECHO_T@,$ECHO_T,;t t
6832 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6835 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6836 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6837 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6838 s,@PACKAGE@,$PACKAGE,;t t
6839 s,@VERSION@,$VERSION,;t t
6840 s,@ACLOCAL@,$ACLOCAL,;t t
6841 s,@AUTOCONF@,$AUTOCONF,;t t
6842 s,@AUTOMAKE@,$AUTOMAKE,;t t
6843 s,@AUTOHEADER@,$AUTOHEADER,;t t
6844 s,@MAKEINFO@,$MAKEINFO,;t t
6845 s,@SET_MAKE@,$SET_MAKE,;t t
6847 s,@CFLAGS@,$CFLAGS,;t t
6848 s,@LDFLAGS@,$LDFLAGS,;t t
6849 s,@CPPFLAGS@,$CPPFLAGS,;t t
6850 s,@ac_ct_CC@,$ac_ct_CC,;t t
6851 s,@EXEEXT@,$EXEEXT,;t t
6852 s,@OBJEXT@,$OBJEXT,;t t
6853 s,@build@,$build,;t t
6854 s,@build_cpu@,$build_cpu,;t t
6855 s,@build_vendor@,$build_vendor,;t t
6856 s,@build_os@,$build_os,;t t
6858 s,@host_cpu@,$host_cpu,;t t
6859 s,@host_vendor@,$host_vendor,;t t
6860 s,@host_os@,$host_os,;t t
6863 s,@RANLIB@,$RANLIB,;t t
6864 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6865 s,@STRIP@,$STRIP,;t t
6866 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6868 s,@LIBTOOL@,$LIBTOOL,;t t
6869 s,@HAVELIBUSB@,$HAVELIBUSB,;t t
6874 cat >>$CONFIG_STATUS <<\EOF
6875 # Split the substitutions into bite-sized pieces for seds with
6876 # small command number limits, like on Digital OSF/1 and HP-UX.
6878 ac_sed_frag=1 # Number of current file.
6879 ac_beg=1 # First line for current file.
6880 ac_end=$ac_max_sed_lines # Line after last line for current file.
6883 while $ac_more_lines; do
6884 if test $ac_beg -gt 1; then
6885 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6887 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6889 if test ! -s $tmp/subs.frag; then
6892 # The purpose of the label and of the branching condition is to
6893 # speed up the sed processing (if there are no `@' at all, there
6894 # is no need to browse any of the substitutions).
6895 # These are the two extra sed commands mentioned above.
6897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6898 if test -z "$ac_sed_cmds"; then
6899 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6901 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6903 ac_sed_frag=`expr $ac_sed_frag + 1`
6905 ac_end=`expr $ac_end + $ac_max_sed_lines`
6908 if test -z "$ac_sed_cmds"; then
6911 fi # test -n "$CONFIG_FILES"
6914 cat >>$CONFIG_STATUS <<\EOF
6915 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6918 - | *:- | *:-:* ) # input from stdin
6920 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6921 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6922 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6923 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6924 * ) ac_file_in=$ac_file.in ;;
6927 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6928 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6929 X"$ac_file" : 'X\(//\)[^/]' \| \
6930 X"$ac_file" : 'X\(//\)$' \| \
6931 X"$ac_file" : 'X\(/\)' \| \
6932 . : '\(.\)' 2>/dev/null ||
6934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6936 /^X\(\/\/\)$/{ s//\1/; q; }
6937 /^X\(\/\).*/{ s//\1/; q; }
6939 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6941 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6945 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6946 case $as_mkdir_dir in
6947 # Skip DOS drivespec
6948 ?:) as_incr_dir=$as_mkdir_dir ;;
6950 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6951 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6956 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6957 # A "../" for each directory in $ac_dir_suffix.
6958 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6960 ac_dir_suffix= ac_dots=
6965 if test -z "$ac_dots"; then
6968 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6971 ac_srcdir=$srcdir$ac_dir_suffix;
6972 ac_top_srcdir=$srcdir ;;
6974 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6975 ac_top_srcdir=$ac_dots$srcdir ;;
6979 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6980 *) ac_INSTALL=$ac_dots$INSTALL ;;
6983 if test x"$ac_file" != x-; then
6984 { echo "$as_me:6984: creating $ac_file" >&5
6985 echo "$as_me: creating $ac_file" >&6;}
6988 # Let's still pretend it is `configure' which instantiates (i.e., don't
6989 # use $as_me), people would be surprised to read:
6990 # /* config.h. Generated automatically by config.status. */
6991 configure_input="Generated automatically from `echo $ac_file_in |
6992 sed 's,.*/,,'` by configure."
6994 # First look for the input files in the build tree, otherwise in the
6996 ac_file_inputs=`IFS=:
6997 for f in $ac_file_in; do
6999 -) echo $tmp/stdin ;;
7001 # Absolute (can't be DOS-style, as IFS=:)
7002 test -f "$f" || { { echo "$as_me:7002: error: cannot find input file: $f" >&5
7003 echo "$as_me: error: cannot find input file: $f" >&2;}
7004 { (exit 1); exit 1; }; }
7007 if test -f "$f"; then
7010 elif test -f "$srcdir/$f"; then
7015 { { echo "$as_me:7015: error: cannot find input file: $f" >&5
7016 echo "$as_me: error: cannot find input file: $f" >&2;}
7017 { (exit 1); exit 1; }; }
7020 done` || { (exit 1); exit 1; }
7022 cat >>$CONFIG_STATUS <<EOF
7026 cat >>$CONFIG_STATUS <<\EOF
7028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7029 s,@configure_input@,$configure_input,;t t
7030 s,@srcdir@,$ac_srcdir,;t t
7031 s,@top_srcdir@,$ac_top_srcdir,;t t
7032 s,@INSTALL@,$ac_INSTALL,;t t
7033 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7035 if test x"$ac_file" != x-; then
7036 mv $tmp/out $ac_file
7044 cat >>$CONFIG_STATUS <<\EOF
7047 # CONFIG_HEADER section.
7050 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7051 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7053 # ac_d sets the value in "#define NAME VALUE" lines.
7054 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7055 ac_dB='[ ].*$,\1#\2'
7058 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7059 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7060 ac_uB='$,\1#\2define\3'
7064 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7065 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7067 - | *:- | *:-:* ) # input from stdin
7069 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7070 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7071 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7072 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7073 * ) ac_file_in=$ac_file.in ;;
7076 test x"$ac_file" != x- && { echo "$as_me:7076: creating $ac_file" >&5
7077 echo "$as_me: creating $ac_file" >&6;}
7079 # First look for the input files in the build tree, otherwise in the
7081 ac_file_inputs=`IFS=:
7082 for f in $ac_file_in; do
7084 -) echo $tmp/stdin ;;
7086 # Absolute (can't be DOS-style, as IFS=:)
7087 test -f "$f" || { { echo "$as_me:7087: error: cannot find input file: $f" >&5
7088 echo "$as_me: error: cannot find input file: $f" >&2;}
7089 { (exit 1); exit 1; }; }
7092 if test -f "$f"; then
7095 elif test -f "$srcdir/$f"; then
7100 { { echo "$as_me:7100: error: cannot find input file: $f" >&5
7101 echo "$as_me: error: cannot find input file: $f" >&2;}
7102 { (exit 1); exit 1; }; }
7105 done` || { (exit 1); exit 1; }
7106 # Remove the trailing spaces.
7107 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7111 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7112 # `conftest.undefs', that substitutes the proper values into
7113 # config.h.in to produce config.h. The first handles `#define'
7114 # templates, and the second `#undef' templates.
7115 # And first: Protect against being on the right side of a sed subst in
7116 # config.status. Protect against being in an unquoted here document
7118 rm -f conftest.defines conftest.undefs
7119 # Using a here document instead of a string reduces the quoting nightmare.
7120 # Putting comments in sed scripts is not portable.
7122 # `end' is used to avoid that the second main sed command (meant for
7123 # 0-ary CPP macros) applies to n-ary macro definitions.
7124 # See the Autoconf documentation for `clear'.
7125 cat >confdef2sed.sed <<\EOF
7130 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7132 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7135 # If some macros were called several times there might be several times
7136 # the same #defines, which is useless. Nevertheless, we may not want to
7137 # sort them, since we want the *last* AC-DEFINE to be honored.
7138 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7139 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7140 rm -f confdef2sed.sed
7142 # This sed command replaces #undef with comments. This is necessary, for
7143 # example, in the case of _POSIX_SOURCE, which is predefined and required
7144 # on some systems where configure will not decide to define it.
7145 cat >>conftest.undefs <<\EOF
7146 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7149 # Break up conftest.defines because some shells have a limit on the size
7150 # of here documents, and old seds have small limits too (100 cmds).
7151 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7152 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7153 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7154 echo ' :' >>$CONFIG_STATUS
7156 while grep . conftest.defines >/dev/null
7158 # Write a limited-size here document to $tmp/defines.sed.
7159 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7160 # Speed up: don't consider the non `#define' lines.
7161 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7162 # Work around the forget-to-reset-the-flag bug.
7163 echo 't clr' >>$CONFIG_STATUS
7164 echo ': clr' >>$CONFIG_STATUS
7165 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7167 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7171 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7172 rm -f conftest.defines
7173 mv conftest.tail conftest.defines
7175 rm -f conftest.defines
7176 echo ' fi # egrep' >>$CONFIG_STATUS
7177 echo >>$CONFIG_STATUS
7179 # Break up conftest.undefs because some shells have a limit on the size
7180 # of here documents, and old seds have small limits too (100 cmds).
7181 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7183 while grep . conftest.undefs >/dev/null
7185 # Write a limited-size here document to $tmp/undefs.sed.
7186 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7187 # Speed up: don't consider the non `#undef'
7188 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7189 # Work around the forget-to-reset-the-flag bug.
7190 echo 't clr' >>$CONFIG_STATUS
7191 echo ': clr' >>$CONFIG_STATUS
7192 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7194 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7198 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7199 rm -f conftest.undefs
7200 mv conftest.tail conftest.undefs
7202 rm -f conftest.undefs
7204 cat >>$CONFIG_STATUS <<\EOF
7205 # Let's still pretend it is `configure' which instantiates (i.e., don't
7206 # use $as_me), people would be surprised to read:
7207 # /* config.h. Generated automatically by config.status. */
7208 if test x"$ac_file" = x-; then
7209 echo "/* Generated automatically by configure. */" >$tmp/config.h
7211 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7213 cat $tmp/in >>$tmp/config.h
7215 if test x"$ac_file" != x-; then
7216 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7217 { echo "$as_me:7217: $ac_file is unchanged" >&5
7218 echo "$as_me: $ac_file is unchanged" >&6;}
7220 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7221 X"$ac_file" : 'X\(//\)[^/]' \| \
7222 X"$ac_file" : 'X\(//\)$' \| \
7223 X"$ac_file" : 'X\(/\)' \| \
7224 . : '\(.\)' 2>/dev/null ||
7226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7228 /^X\(\/\/\)$/{ s//\1/; q; }
7229 /^X\(\/\).*/{ s//\1/; q; }
7231 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7233 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7237 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7238 case $as_mkdir_dir in
7239 # Skip DOS drivespec
7240 ?:) as_incr_dir=$as_mkdir_dir ;;
7242 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7243 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7250 mv $tmp/config.h $ac_file
7258 cat >>$CONFIG_STATUS <<\EOF
7261 # CONFIG_COMMANDS section.
7263 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7264 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7265 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7268 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
7273 cat >>$CONFIG_STATUS <<\EOF
7275 { (exit 0); exit 0; }
7277 chmod +x $CONFIG_STATUS
7278 ac_clean_files=$ac_clean_files_save
7280 # configure is writing to config.log, and then calls config.status.
7281 # config.status does its own redirection, appending to config.log.
7282 # Unfortunately, on DOS this fails, as config.log is still kept open
7283 # by configure, so config.status won't be able to write to it; its
7284 # output is simply discarded. So we exec the FD to /dev/null,
7285 # effectively closing config.log, so it can be properly (re)opened and
7286 # appended to by config.status. When coming back to configure, we
7287 # need to make the FD available again.
7288 if test "$no_create" != yes; then
7291 $SHELL $CONFIG_STATUS || ac_cs_success=false
7293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7294 # would make configure fail if this is the last instruction.
7295 $ac_cs_success || { (exit 1); exit 1; }