daily update
[binutils.git] / gprof / configure
blob498b46ec437410d79503f1db7f95b7d0eedf786b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="gprof.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --disable-nls do not use Native Language Support
1013 --enable-maintainer-mode enable make rules and dependencies not useful
1014 (and sometimes confusing) to the casual installer
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1018 Optional Packages:
1019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1021 --with-pic try to use only PIC/non-PIC objects [default=use
1022 both]
1023 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1025 Some influential environment variables:
1026 CC C compiler command
1027 CFLAGS C compiler flags
1028 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1029 nonstandard directory <lib dir>
1030 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1031 headers in a nonstandard directory <include dir>
1032 CPP C preprocessor
1034 Use these variables to override the choices made by `configure' or to help
1035 it to find libraries and programs with nonstandard names/locations.
1037 _ACEOF
1040 if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1042 ac_popdir=`pwd`
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1045 ac_builddir=.
1047 if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1051 else
1052 ac_dir_suffix= ac_top_builddir=
1055 case $srcdir in
1056 .) # No --srcdir option. We are building in place.
1057 ac_srcdir=.
1058 if test -z "$ac_top_builddir"; then
1059 ac_top_srcdir=.
1060 else
1061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1062 fi ;;
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1066 *) # Relative path.
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1069 esac
1071 # Do not use `cd foo && pwd` to compute absolute paths, because
1072 # the directories may not exist.
1073 case `pwd` in
1074 .) ac_abs_builddir="$ac_dir";;
1076 case "$ac_dir" in
1077 .) ac_abs_builddir=`pwd`;;
1078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1080 esac;;
1081 esac
1082 case $ac_abs_builddir in
1083 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 case ${ac_top_builddir}. in
1086 .) ac_abs_top_builddir=$ac_abs_builddir;;
1087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1089 esac;;
1090 esac
1091 case $ac_abs_builddir in
1092 .) ac_abs_srcdir=$ac_srcdir;;
1094 case $ac_srcdir in
1095 .) ac_abs_srcdir=$ac_abs_builddir;;
1096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1098 esac;;
1099 esac
1100 case $ac_abs_builddir in
1101 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 case $ac_top_srcdir in
1104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1107 esac;;
1108 esac
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 cd $ac_popdir
1126 done
1129 test -n "$ac_init_help" && exit 0
1130 if $ac_init_version; then
1131 cat <<\_ACEOF
1133 Copyright (C) 2003 Free Software Foundation, Inc.
1134 This configure script is free software; the Free Software Foundation
1135 gives unlimited permission to copy, distribute and modify it.
1136 _ACEOF
1137 exit 0
1139 exec 5>config.log
1140 cat >&5 <<_ACEOF
1141 This file contains any messages produced by compilers while
1142 running configure, to aid debugging if configure makes a mistake.
1144 It was created by $as_me, which was
1145 generated by GNU Autoconf 2.59. Invocation command line was
1147 $ $0 $@
1149 _ACEOF
1151 cat <<_ASUNAME
1152 ## --------- ##
1153 ## Platform. ##
1154 ## --------- ##
1156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173 _ASUNAME
1175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176 for as_dir in $PATH
1178 IFS=$as_save_IFS
1179 test -z "$as_dir" && as_dir=.
1180 echo "PATH: $as_dir"
1181 done
1183 } >&5
1185 cat >&5 <<_ACEOF
1188 ## ----------- ##
1189 ## Core tests. ##
1190 ## ----------- ##
1192 _ACEOF
1195 # Keep a trace of the command line.
1196 # Strip out --no-create and --no-recursion so they do not pile up.
1197 # Strip out --silent because we don't want to record it for future runs.
1198 # Also quote any args containing shell meta-characters.
1199 # Make two passes to allow for proper duplicate-argument suppression.
1200 ac_configure_args=
1201 ac_configure_args0=
1202 ac_configure_args1=
1203 ac_sep=
1204 ac_must_keep_next=false
1205 for ac_pass in 1 2
1207 for ac_arg
1209 case $ac_arg in
1210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 continue ;;
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 esac
1217 case $ac_pass in
1218 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1221 if test $ac_must_keep_next = true; then
1222 ac_must_keep_next=false # Got value, back to normal.
1223 else
1224 case $ac_arg in
1225 *=* | --config-cache | -C | -disable-* | --disable-* \
1226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1228 | -with-* | --with-* | -without-* | --without-* | --x)
1229 case "$ac_configure_args0 " in
1230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1231 esac
1233 -* ) ac_must_keep_next=true ;;
1234 esac
1236 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1237 # Get rid of the leading space.
1238 ac_sep=" "
1240 esac
1241 done
1242 done
1243 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1244 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246 # When interrupted or exit'd, cleanup temporary files, and complete
1247 # config.log. We remove comments because anyway the quotes in there
1248 # would cause problems or look ugly.
1249 # WARNING: Be sure not to use single quotes in there, as some shells,
1250 # such as our DU 5.0 friend, will then `close' the trap.
1251 trap 'exit_status=$?
1252 # Save into config.log some information that might help in debugging.
1254 echo
1256 cat <<\_ASBOX
1257 ## ---------------- ##
1258 ## Cache variables. ##
1259 ## ---------------- ##
1260 _ASBOX
1261 echo
1262 # The following way of writing the cache mishandles newlines in values,
1264 (set) 2>&1 |
1265 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1266 *ac_space=\ *)
1267 sed -n \
1268 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1272 sed -n \
1273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 esac;
1277 echo
1279 cat <<\_ASBOX
1280 ## ----------------- ##
1281 ## Output variables. ##
1282 ## ----------------- ##
1283 _ASBOX
1284 echo
1285 for ac_var in $ac_subst_vars
1287 eval ac_val=$`echo $ac_var`
1288 echo "$ac_var='"'"'$ac_val'"'"'"
1289 done | sort
1290 echo
1292 if test -n "$ac_subst_files"; then
1293 cat <<\_ASBOX
1294 ## ------------- ##
1295 ## Output files. ##
1296 ## ------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_files
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1307 if test -s confdefs.h; then
1308 cat <<\_ASBOX
1309 ## ----------- ##
1310 ## confdefs.h. ##
1311 ## ----------- ##
1312 _ASBOX
1313 echo
1314 sed "/^$/d" confdefs.h | sort
1315 echo
1317 test "$ac_signal" != 0 &&
1318 echo "$as_me: caught signal $ac_signal"
1319 echo "$as_me: exit $exit_status"
1320 } >&5
1321 rm -f core *.core &&
1322 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1323 exit $exit_status
1325 for ac_signal in 1 2 13 15; do
1326 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1327 done
1328 ac_signal=0
1330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1331 rm -rf conftest* confdefs.h
1332 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1333 echo >confdefs.h
1335 # Predefined preprocessor variables.
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_NAME "$PACKAGE_NAME"
1339 _ACEOF
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1344 _ACEOF
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1349 _ACEOF
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_STRING "$PACKAGE_STRING"
1354 _ACEOF
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1359 _ACEOF
1362 # Let the site file select an alternate cache file if it wants to.
1363 # Prefer explicitly selected file to automatically selected ones.
1364 if test -z "$CONFIG_SITE"; then
1365 if test "x$prefix" != xNONE; then
1366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1367 else
1368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1371 for ac_site_file in $CONFIG_SITE; do
1372 if test -r "$ac_site_file"; then
1373 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1374 echo "$as_me: loading site script $ac_site_file" >&6;}
1375 sed 's/^/| /' "$ac_site_file" >&5
1376 . "$ac_site_file"
1378 done
1380 if test -r "$cache_file"; then
1381 # Some versions of bash will fail to source /dev/null (special
1382 # files actually), so we avoid doing that.
1383 if test -f "$cache_file"; then
1384 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1385 echo "$as_me: loading cache $cache_file" >&6;}
1386 case $cache_file in
1387 [\\/]* | ?:[\\/]* ) . $cache_file;;
1388 *) . ./$cache_file;;
1389 esac
1391 else
1392 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1393 echo "$as_me: creating cache $cache_file" >&6;}
1394 >$cache_file
1397 # Check that the precious variables saved in the cache have kept the same
1398 # value.
1399 ac_cache_corrupted=false
1400 for ac_var in `(set) 2>&1 |
1401 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1403 eval ac_new_set=\$ac_env_${ac_var}_set
1404 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1405 eval ac_new_val="\$ac_env_${ac_var}_value"
1406 case $ac_old_set,$ac_new_set in
1407 set,)
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1411 ,set)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1413 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,);;
1417 if test "x$ac_old_val" != "x$ac_new_val"; then
1418 # differences in whitespace do not lead to failure.
1419 ac_old_val_w=`echo x $ac_old_val`
1420 ac_new_val_w=`echo x $ac_new_val`
1421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1422 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424 ac_cache_corrupted=:
1425 else
1426 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1427 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1428 eval $ac_var=\$ac_old_val
1430 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1431 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1432 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1433 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1434 fi;;
1435 esac
1436 # Pass precious variables to config.status.
1437 if test "$ac_new_set" = set; then
1438 case $ac_new_val in
1439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1440 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1441 *) ac_arg=$ac_var=$ac_new_val ;;
1442 esac
1443 case " $ac_configure_args " in
1444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1445 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1446 esac
1448 done
1449 if $ac_cache_corrupted; then
1450 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1451 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1452 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456 { (exit 1); exit 1; }; }
1459 ac_ext=c
1460 ac_cpp='$CPP $CPPFLAGS'
1461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488 ac_aux_dir=
1489 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1503 done
1504 if test -z "$ac_aux_dir"; then
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507 { (exit 1); exit 1; }; }
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513 # Make sure we can run config.sub.
1514 $ac_config_sub sun4 >/dev/null 2>&1 ||
1515 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1517 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: checking build system type" >&5
1520 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1521 if test "${ac_cv_build+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 ac_cv_build_alias=$build_alias
1525 test -z "$ac_cv_build_alias" &&
1526 ac_cv_build_alias=`$ac_config_guess`
1527 test -z "$ac_cv_build_alias" &&
1528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530 { (exit 1); exit 1; }; }
1531 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1537 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538 echo "${ECHO_T}$ac_cv_build" >&6
1539 build=$ac_cv_build
1540 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545 echo "$as_me:$LINENO: checking host system type" >&5
1546 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1547 if test "${ac_cv_host+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550 ac_cv_host_alias=$host_alias
1551 test -z "$ac_cv_host_alias" &&
1552 ac_cv_host_alias=$ac_cv_build_alias
1553 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1560 echo "${ECHO_T}$ac_cv_host" >&6
1561 host=$ac_cv_host
1562 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 echo "$as_me:$LINENO: checking target system type" >&5
1568 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1569 if test "${ac_cv_target+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 ac_cv_target_alias=$target_alias
1573 test "x$ac_cv_target_alias" = "x" &&
1574 ac_cv_target_alias=$ac_cv_host_alias
1575 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1582 echo "${ECHO_T}$ac_cv_target" >&6
1583 target=$ac_cv_target
1584 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 # The aliases save the names the user supplied, while $host etc.
1590 # will get canonicalized.
1591 test -n "$target_alias" &&
1592 test "$program_prefix$program_suffix$program_transform_name" = \
1593 NONENONEs,x,x, &&
1594 program_prefix=${target_alias}-
1595 ac_ext=c
1596 ac_cpp='$CPP $CPPFLAGS'
1597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600 if test -n "$ac_tool_prefix"; then
1601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1637 if test -z "$ac_cv_prog_CC"; then
1638 ac_ct_CC=$CC
1639 # Extract the first word of "gcc", so it can be a program name with args.
1640 set dummy gcc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 if test -n "$ac_ct_CC"; then
1647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_ac_ct_CC="gcc"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1660 done
1661 done
1665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666 if test -n "$ac_ct_CC"; then
1667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668 echo "${ECHO_T}$ac_ct_CC" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 CC=$ac_ct_CC
1675 else
1676 CC="$ac_cv_prog_CC"
1679 if test -z "$CC"; then
1680 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1682 set dummy ${ac_tool_prefix}cc; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="${ac_tool_prefix}cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1702 done
1703 done
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1711 else
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1717 if test -z "$ac_cv_prog_CC"; then
1718 ac_ct_CC=$CC
1719 # Extract the first word of "cc", so it can be a program name with args.
1720 set dummy cc; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726 if test -n "$ac_ct_CC"; then
1727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_ac_ct_CC="cc"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1740 done
1741 done
1745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1746 if test -n "$ac_ct_CC"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1748 echo "${ECHO_T}$ac_ct_CC" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 CC=$ac_ct_CC
1755 else
1756 CC="$ac_cv_prog_CC"
1760 if test -z "$CC"; then
1761 # Extract the first word of "cc", so it can be a program name with args.
1762 set dummy cc; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_CC+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 if test -n "$CC"; then
1769 ac_cv_prog_CC="$CC" # Let the user override the test.
1770 else
1771 ac_prog_rejected=no
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1780 ac_prog_rejected=yes
1781 continue
1783 ac_cv_prog_CC="cc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 break 2
1787 done
1788 done
1790 if test $ac_prog_rejected = yes; then
1791 # We found a bogon in the path, so make sure we never use it.
1792 set dummy $ac_cv_prog_CC
1793 shift
1794 if test $# != 0; then
1795 # We chose a different compiler from the bogus one.
1796 # However, it has the same basename, so the bogon will be chosen
1797 # first if we set CC to just the basename; use the full file name.
1798 shift
1799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1804 CC=$ac_cv_prog_CC
1805 if test -n "$CC"; then
1806 echo "$as_me:$LINENO: result: $CC" >&5
1807 echo "${ECHO_T}$CC" >&6
1808 else
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1814 if test -z "$CC"; then
1815 if test -n "$ac_tool_prefix"; then
1816 for ac_prog in cl
1818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 break 2
1839 done
1840 done
1844 CC=$ac_cv_prog_CC
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1848 else
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1853 test -n "$CC" && break
1854 done
1856 if test -z "$CC"; then
1857 ac_ct_CC=$CC
1858 for ac_prog in cl
1860 # Extract the first word of "$ac_prog", so it can be a program name with args.
1861 set dummy $ac_prog; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_ac_ct_CC="$ac_prog"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1881 done
1882 done
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1890 else
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1895 test -n "$ac_ct_CC" && break
1896 done
1898 CC=$ac_ct_CC
1904 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1905 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1906 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1907 See \`config.log' for more details." >&5
1908 echo "$as_me: error: no acceptable C compiler found in \$PATH
1909 See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }; }
1912 # Provide some information about the compiler.
1913 echo "$as_me:$LINENO:" \
1914 "checking for C compiler version" >&5
1915 ac_compiler=`set X $ac_compile; echo $2`
1916 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1917 (eval $ac_compiler --version </dev/null >&5) 2>&5
1918 ac_status=$?
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1922 (eval $ac_compiler -v </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1927 (eval $ac_compiler -V </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1932 cat >conftest.$ac_ext <<_ACEOF
1933 /* confdefs.h. */
1934 _ACEOF
1935 cat confdefs.h >>conftest.$ac_ext
1936 cat >>conftest.$ac_ext <<_ACEOF
1937 /* end confdefs.h. */
1940 main ()
1944 return 0;
1946 _ACEOF
1947 ac_clean_files_save=$ac_clean_files
1948 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1949 # Try to create an executable without -o first, disregard a.out.
1950 # It will help us diagnose broken compilers, and finding out an intuition
1951 # of exeext.
1952 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1953 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1954 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1955 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1956 (eval $ac_link_default) 2>&5
1957 ac_status=$?
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }; then
1960 # Find the output, starting from the most likely. This scheme is
1961 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1962 # resort.
1964 # Be careful to initialize this variable, since it used to be cached.
1965 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1966 ac_cv_exeext=
1967 # b.out is created by i960 compilers.
1968 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1970 test -f "$ac_file" || continue
1971 case $ac_file in
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1974 conftest.$ac_ext )
1975 # This is the source file.
1977 [ab].out )
1978 # We found the default executable, but exeext='' is most
1979 # certainly right.
1980 break;;
1981 *.* )
1982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1983 # FIXME: I believe we export ac_cv_exeext for Libtool,
1984 # but it would be cool to find out if it's true. Does anybody
1985 # maintain Libtool? --akim.
1986 export ac_cv_exeext
1987 break;;
1989 break;;
1990 esac
1991 done
1992 else
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1997 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1999 See \`config.log' for more details." >&5
2000 echo "$as_me: error: C compiler cannot create executables
2001 See \`config.log' for more details." >&2;}
2002 { (exit 77); exit 77; }; }; }
2005 ac_exeext=$ac_cv_exeext
2006 echo "$as_me:$LINENO: result: $ac_file" >&5
2007 echo "${ECHO_T}$ac_file" >&6
2009 # Check the compiler produces executables we can run. If not, either
2010 # the compiler is broken, or we cross compile.
2011 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2012 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2013 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2014 # If not cross compiling, check that we can run a simple program.
2015 if test "$cross_compiling" != yes; then
2016 if { ac_try='./$ac_file'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 (eval $ac_try) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; }; then
2022 cross_compiling=no
2023 else
2024 if test "$cross_compiling" = maybe; then
2025 cross_compiling=yes
2026 else
2027 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2028 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2029 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2030 If you meant to cross compile, use \`--host'.
2031 See \`config.log' for more details." >&5
2032 echo "$as_me: error: cannot run C compiled programs.
2033 If you meant to cross compile, use \`--host'.
2034 See \`config.log' for more details." >&2;}
2035 { (exit 1); exit 1; }; }; }
2039 echo "$as_me:$LINENO: result: yes" >&5
2040 echo "${ECHO_T}yes" >&6
2042 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2043 ac_clean_files=$ac_clean_files_save
2044 # Check the compiler produces executables we can run. If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2047 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2048 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2049 echo "${ECHO_T}$cross_compiling" >&6
2051 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2052 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054 (eval $ac_link) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; then
2058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2059 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2060 # work properly (i.e., refer to `conftest.exe'), while it won't with
2061 # `rm'.
2062 for ac_file in conftest.exe conftest conftest.*; do
2063 test -f "$ac_file" || continue
2064 case $ac_file in
2065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2067 export ac_cv_exeext
2068 break;;
2069 * ) break;;
2070 esac
2071 done
2072 else
2073 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2074 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }; }
2082 rm -f conftest$ac_cv_exeext
2083 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2084 echo "${ECHO_T}$ac_cv_exeext" >&6
2086 rm -f conftest.$ac_ext
2087 EXEEXT=$ac_cv_exeext
2088 ac_exeext=$EXEEXT
2089 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2090 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2091 if test "${ac_cv_objext+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 cat >conftest.$ac_ext <<_ACEOF
2095 /* confdefs.h. */
2096 _ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2102 main ()
2106 return 0;
2108 _ACEOF
2109 rm -f conftest.o conftest.obj
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2116 case $ac_file in
2117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2119 break;;
2120 esac
2121 done
2122 else
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2126 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2127 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2131 See \`config.log' for more details." >&2;}
2132 { (exit 1); exit 1; }; }; }
2135 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2137 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2138 echo "${ECHO_T}$ac_cv_objext" >&6
2139 OBJEXT=$ac_cv_objext
2140 ac_objext=$OBJEXT
2141 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h. */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2154 main ()
2156 #ifndef __GNUC__
2157 choke me
2158 #endif
2161 return 0;
2163 _ACEOF
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_compiler_gnu=yes
2187 else
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2191 ac_compiler_gnu=no
2193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2199 GCC=`test $ac_compiler_gnu = yes && echo yes`
2200 ac_test_CFLAGS=${CFLAGS+set}
2201 ac_save_CFLAGS=$CFLAGS
2202 CFLAGS="-g"
2203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2205 if test "${ac_cv_prog_cc_g+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h. */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2216 main ()
2220 return 0;
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 ac_cv_prog_cc_g=yes
2246 else
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 ac_cv_prog_cc_g=no
2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2256 if test "$ac_test_CFLAGS" = set; then
2257 CFLAGS=$ac_save_CFLAGS
2258 elif test $ac_cv_prog_cc_g = yes; then
2259 if test "$GCC" = yes; then
2260 CFLAGS="-g -O2"
2261 else
2262 CFLAGS="-g"
2264 else
2265 if test "$GCC" = yes; then
2266 CFLAGS="-O2"
2267 else
2268 CFLAGS=
2271 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2272 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2273 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 ac_cv_prog_cc_stdc=no
2277 ac_save_CC=$CC
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2284 #include <stdarg.h>
2285 #include <stdio.h>
2286 #include <sys/types.h>
2287 #include <sys/stat.h>
2288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2289 struct buf { int x; };
2290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2291 static char *e (p, i)
2292 char **p;
2293 int i;
2295 return p[i];
2297 static char *f (char * (*g) (char **, int), char **p, ...)
2299 char *s;
2300 va_list v;
2301 va_start (v,p);
2302 s = g (p, va_arg (v,int));
2303 va_end (v);
2304 return s;
2307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2308 function prototypes and stuff, but not '\xHH' hex character constants.
2309 These don't provoke an error unfortunately, instead are silently treated
2310 as 'x'. The following induces an error, until -std1 is added to get
2311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2312 array size at least. It's necessary to write '\x00'==0 to get something
2313 that's true only with -std1. */
2314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2316 int test (int i, double x);
2317 struct s1 {int (*f) (int a);};
2318 struct s2 {int (*f) (double a);};
2319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2320 int argc;
2321 char **argv;
2323 main ()
2325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2327 return 0;
2329 _ACEOF
2330 # Don't try gcc -ansi; that turns off useful extensions and
2331 # breaks some systems' header files.
2332 # AIX -qlanglvl=ansi
2333 # Ultrix and OSF/1 -std1
2334 # HP-UX 10.20 and later -Ae
2335 # HP-UX older versions -Aa -D_HPUX_SOURCE
2336 # SVR4 -Xc -D__EXTENSIONS__
2337 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2339 CC="$ac_save_CC $ac_arg"
2340 rm -f conftest.$ac_objext
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>conftest.er1
2343 ac_status=$?
2344 grep -v '^ *+' conftest.er1 >conftest.err
2345 rm -f conftest.er1
2346 cat conftest.err >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -z "$ac_c_werror_flag"
2350 || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 ac_cv_prog_cc_stdc=$ac_arg
2363 break
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2369 rm -f conftest.err conftest.$ac_objext
2370 done
2371 rm -f conftest.$ac_ext conftest.$ac_objext
2372 CC=$ac_save_CC
2376 case "x$ac_cv_prog_cc_stdc" in
2377 x|xno)
2378 echo "$as_me:$LINENO: result: none needed" >&5
2379 echo "${ECHO_T}none needed" >&6 ;;
2381 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2382 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2383 CC="$CC $ac_cv_prog_cc_stdc" ;;
2384 esac
2386 # Some people use a C++ compiler to compile C. Since we use `exit',
2387 # in C++ we need to declare it. In case someone uses the same compiler
2388 # for both compiling C and C++ we need to have the C++ compiler decide
2389 # the declaration of exit, since it's the most demanding environment.
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #ifndef __cplusplus
2392 choke me
2393 #endif
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 for ac_declaration in \
2418 '' \
2419 'extern "C" void std::exit (int) throw (); using std::exit;' \
2420 'extern "C" void std::exit (int); using std::exit;' \
2421 'extern "C" void exit (int) throw ();' \
2422 'extern "C" void exit (int);' \
2423 'void exit (int);'
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2431 $ac_declaration
2432 #include <stdlib.h>
2434 main ()
2436 exit (42);
2438 return 0;
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>conftest.er1
2444 ac_status=$?
2445 grep -v '^ *+' conftest.er1 >conftest.err
2446 rm -f conftest.er1
2447 cat conftest.err >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -z "$ac_c_werror_flag"
2451 || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2464 else
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 continue
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h. */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2477 $ac_declaration
2479 main ()
2481 exit (42);
2483 return 0;
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 break
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515 done
2516 rm -f conftest*
2517 if test -n "$ac_declaration"; then
2518 echo '#ifdef __cplusplus' >>confdefs.h
2519 echo $ac_declaration >>confdefs.h
2520 echo '#endif' >>confdefs.h
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 ac_ext=c
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2537 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2538 if test "${ac_cv_search_strerror+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 ac_func_search_save_LIBS=$LIBS
2542 ac_cv_search_strerror=no
2543 cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h. */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 #ifdef __cplusplus
2552 extern "C"
2553 #endif
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2556 char strerror ();
2558 main ()
2560 strerror ();
2562 return 0;
2564 _ACEOF
2565 rm -f conftest.$ac_objext conftest$ac_exeext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2567 (eval $ac_link) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest$ac_exeext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_search_strerror="none required"
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f conftest.err conftest.$ac_objext \
2594 conftest$ac_exeext conftest.$ac_ext
2595 if test "$ac_cv_search_strerror" = no; then
2596 for ac_lib in cposix; do
2597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2598 cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h. */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2605 /* Override any gcc2 internal prototype to avoid an error. */
2606 #ifdef __cplusplus
2607 extern "C"
2608 #endif
2609 /* We use char because int might match the return type of a gcc2
2610 builtin and then its argument prototype would still apply. */
2611 char strerror ();
2613 main ()
2615 strerror ();
2617 return 0;
2619 _ACEOF
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2622 (eval $ac_link) 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag"
2630 || test ! -s conftest.err'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; } &&
2636 { ac_try='test -s conftest$ac_exeext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 ac_cv_search_strerror="-l$ac_lib"
2643 break
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2649 rm -f conftest.err conftest.$ac_objext \
2650 conftest$ac_exeext conftest.$ac_ext
2651 done
2653 LIBS=$ac_func_search_save_LIBS
2655 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2656 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2657 if test "$ac_cv_search_strerror" != no; then
2658 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2663 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2664 am__api_version="1.9"
2665 # Find a good install program. We prefer a C program (faster),
2666 # so one script is as good as another. But avoid the broken or
2667 # incompatible versions:
2668 # SysV /etc/install, /usr/sbin/install
2669 # SunOS /usr/etc/install
2670 # IRIX /sbin/install
2671 # AIX /bin/install
2672 # AmigaOS /C/install, which installs bootblocks on floppy discs
2673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2676 # OS/2's system install, which has a completely different semantic
2677 # ./install, which can be erroneously created by make from ./install.sh.
2678 # Reject install programs that cannot install multiple files.
2679 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2680 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2681 if test -z "$INSTALL"; then
2682 if test "${ac_cv_path_install+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 # Account for people who put trailing slashes in PATH elements.
2691 case $as_dir/ in
2692 ./ | .// | /cC/* | \
2693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2694 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2695 /usr/ucb/* ) ;;
2697 # OSF1 and SCO ODT 3.0 have their own names for install.
2698 # Don't use installbsd from OSF since it installs stuff as root
2699 # by default.
2700 for ac_prog in ginstall scoinst install; do
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2703 if test $ac_prog = install &&
2704 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705 # AIX install. It has an incompatible calling convention.
2707 elif test $ac_prog = install &&
2708 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709 # program-specific install script used by HP pwplus--don't use.
2711 else
2712 rm -rf conftest.one conftest.two conftest.dir
2713 echo one > conftest.one
2714 echo two > conftest.two
2715 mkdir conftest.dir
2716 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2717 test -s conftest.one && test -s conftest.two &&
2718 test -s conftest.dir/conftest.one &&
2719 test -s conftest.dir/conftest.two
2720 then
2721 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2722 break 3
2726 done
2727 done
2729 esac
2730 done
2732 rm -rf conftest.one conftest.two conftest.dir
2735 if test "${ac_cv_path_install+set}" = set; then
2736 INSTALL=$ac_cv_path_install
2737 else
2738 # As a last resort, use the slow shell script. Don't cache a
2739 # value for INSTALL within a source directory, because that will
2740 # break other packages using the cache if that directory is
2741 # removed, or if the value is a relative name.
2742 INSTALL=$ac_install_sh
2745 echo "$as_me:$LINENO: result: $INSTALL" >&5
2746 echo "${ECHO_T}$INSTALL" >&6
2748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2749 # It thinks the first close brace ends the variable substitution.
2750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2756 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2757 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2758 # Just in case
2759 sleep 1
2760 echo timestamp > conftest.file
2761 # Do `set' in a subshell so we don't clobber the current shell's
2762 # arguments. Must try -L first in case configure is actually a
2763 # symlink; some systems play weird games with the mod time of symlinks
2764 # (eg FreeBSD returns the mod time of the symlink's containing
2765 # directory).
2766 if (
2767 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2768 if test "$*" = "X"; then
2769 # -L didn't work.
2770 set X `ls -t $srcdir/configure conftest.file`
2772 rm -f conftest.file
2773 if test "$*" != "X $srcdir/configure conftest.file" \
2774 && test "$*" != "X conftest.file $srcdir/configure"; then
2776 # If neither matched, then we have a broken ls. This can happen
2777 # if, for instance, CONFIG_SHELL is bash and it inherits a
2778 # broken ls alias from the environment. This has actually
2779 # happened. Such a system could not be considered "sane".
2780 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2781 alias in your environment" >&5
2782 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2783 alias in your environment" >&2;}
2784 { (exit 1); exit 1; }; }
2787 test "$2" = conftest.file
2789 then
2790 # Ok.
2792 else
2793 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2794 Check your system clock" >&5
2795 echo "$as_me: error: newly created file is older than distributed files!
2796 Check your system clock" >&2;}
2797 { (exit 1); exit 1; }; }
2799 echo "$as_me:$LINENO: result: yes" >&5
2800 echo "${ECHO_T}yes" >&6
2801 test "$program_prefix" != NONE &&
2802 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2803 # Use a double $ so make ignores it.
2804 test "$program_suffix" != NONE &&
2805 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2806 # Double any \ or $. echo might interpret backslashes.
2807 # By default was `s,x,x', remove it if useless.
2808 cat <<\_ACEOF >conftest.sed
2809 s/[\\$]/&&/g;s/;s,x,x,$//
2810 _ACEOF
2811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2812 rm conftest.sed
2814 # expand $ac_aux_dir to an absolute path
2815 am_aux_dir=`cd $ac_aux_dir && pwd`
2817 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2818 # Use eval to expand $SHELL
2819 if eval "$MISSING --run true"; then
2820 am_missing_run="$MISSING --run "
2821 else
2822 am_missing_run=
2823 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2824 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2827 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2828 # We used to keeping the `.' as first argument, in order to
2829 # allow $(mkdir_p) to be used without argument. As in
2830 # $(mkdir_p) $(somedir)
2831 # where $(somedir) is conditionally defined. However this is wrong
2832 # for two reasons:
2833 # 1. if the package is installed by a user who cannot write `.'
2834 # make install will fail,
2835 # 2. the above comment should most certainly read
2836 # $(mkdir_p) $(DESTDIR)$(somedir)
2837 # so it does not work when $(somedir) is undefined and
2838 # $(DESTDIR) is not.
2839 # To support the latter case, we have to write
2840 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2841 # so the `.' trick is pointless.
2842 mkdir_p='mkdir -p --'
2843 else
2844 # On NextStep and OpenStep, the `mkdir' command does not
2845 # recognize any option. It will interpret all options as
2846 # directories to create, and then abort because `.' already
2847 # exists.
2848 for d in ./-p ./--version;
2850 test -d $d && rmdir $d
2851 done
2852 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2853 if test -f "$ac_aux_dir/mkinstalldirs"; then
2854 mkdir_p='$(mkinstalldirs)'
2855 else
2856 mkdir_p='$(install_sh) -d'
2860 for ac_prog in gawk mawk nawk awk
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2866 if test "${ac_cv_prog_AWK+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_AWK="$ac_prog"
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2888 AWK=$ac_cv_prog_AWK
2889 if test -n "$AWK"; then
2890 echo "$as_me:$LINENO: result: $AWK" >&5
2891 echo "${ECHO_T}$AWK" >&6
2892 else
2893 echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6
2897 test -n "$AWK" && break
2898 done
2900 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2901 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2902 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2903 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 cat >conftest.make <<\_ACEOF
2907 all:
2908 @echo 'ac_maketemp="$(MAKE)"'
2909 _ACEOF
2910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2911 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2912 if test -n "$ac_maketemp"; then
2913 eval ac_cv_prog_make_${ac_make}_set=yes
2914 else
2915 eval ac_cv_prog_make_${ac_make}_set=no
2917 rm -f conftest.make
2919 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921 echo "${ECHO_T}yes" >&6
2922 SET_MAKE=
2923 else
2924 echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2926 SET_MAKE="MAKE=${MAKE-make}"
2929 rm -rf .tst 2>/dev/null
2930 mkdir .tst 2>/dev/null
2931 if test -d .tst; then
2932 am__leading_dot=.
2933 else
2934 am__leading_dot=_
2936 rmdir .tst 2>/dev/null
2938 DEPDIR="${am__leading_dot}deps"
2940 ac_config_commands="$ac_config_commands depfiles"
2943 am_make=${MAKE-make}
2944 cat > confinc << 'END'
2945 am__doit:
2946 @echo done
2947 .PHONY: am__doit
2949 # If we don't find an include directive, just comment out the code.
2950 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2951 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2952 am__include="#"
2953 am__quote=
2954 _am_result=none
2955 # First try GNU make style include.
2956 echo "include confinc" > confmf
2957 # We grep out `Entering directory' and `Leaving directory'
2958 # messages which can occur if `w' ends up in MAKEFLAGS.
2959 # In particular we don't look at `^make:' because GNU make might
2960 # be invoked under some other name (usually "gmake"), in which
2961 # case it prints its new name instead of `make'.
2962 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2963 am__include=include
2964 am__quote=
2965 _am_result=GNU
2967 # Now try BSD make style include.
2968 if test "$am__include" = "#"; then
2969 echo '.include "confinc"' > confmf
2970 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2971 am__include=.include
2972 am__quote="\""
2973 _am_result=BSD
2978 echo "$as_me:$LINENO: result: $_am_result" >&5
2979 echo "${ECHO_T}$_am_result" >&6
2980 rm -f confinc confmf
2982 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2983 if test "${enable_dependency_tracking+set}" = set; then
2984 enableval="$enable_dependency_tracking"
2987 if test "x$enable_dependency_tracking" != xno; then
2988 am_depcomp="$ac_aux_dir/depcomp"
2989 AMDEPBACKSLASH='\'
2993 if test "x$enable_dependency_tracking" != xno; then
2994 AMDEP_TRUE=
2995 AMDEP_FALSE='#'
2996 else
2997 AMDEP_TRUE='#'
2998 AMDEP_FALSE=
3003 # test to see if srcdir already configured
3004 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3005 test -f $srcdir/config.status; then
3006 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3007 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3008 { (exit 1); exit 1; }; }
3011 # test whether we have cygpath
3012 if test -z "$CYGPATH_W"; then
3013 if (cygpath --version) >/dev/null 2>/dev/null; then
3014 CYGPATH_W='cygpath -w'
3015 else
3016 CYGPATH_W=echo
3021 # Define the identity of the package.
3022 PACKAGE=gprof
3023 VERSION=${BFD_VERSION}
3026 cat >>confdefs.h <<_ACEOF
3027 #define PACKAGE "$PACKAGE"
3028 _ACEOF
3031 cat >>confdefs.h <<_ACEOF
3032 #define VERSION "$VERSION"
3033 _ACEOF
3035 # Some tools Automake needs.
3037 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3040 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3043 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3046 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3049 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3051 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3053 # Installed binaries are usually stripped using `strip' when the user
3054 # run `make install-strip'. However `strip' might not be the right
3055 # tool to use in cross-compilation environments, therefore Automake
3056 # will honor the `STRIP' environment variable to overrule this program.
3057 if test "$cross_compiling" != no; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}strip; ac_word=$2
3061 echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063 if test "${ac_cv_prog_STRIP+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 if test -n "$STRIP"; then
3067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3085 STRIP=$ac_cv_prog_STRIP
3086 if test -n "$STRIP"; then
3087 echo "$as_me:$LINENO: result: $STRIP" >&5
3088 echo "${ECHO_T}$STRIP" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$ac_cv_prog_STRIP"; then
3096 ac_ct_STRIP=$STRIP
3097 # Extract the first word of "strip", so it can be a program name with args.
3098 set dummy strip; ac_word=$2
3099 echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 if test -n "$ac_ct_STRIP"; then
3105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_STRIP="strip"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3118 done
3119 done
3121 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3124 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3125 if test -n "$ac_ct_STRIP"; then
3126 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3127 echo "${ECHO_T}$ac_ct_STRIP" >&6
3128 else
3129 echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3133 STRIP=$ac_ct_STRIP
3134 else
3135 STRIP="$ac_cv_prog_STRIP"
3139 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3141 # We need awk for the "check" target. The system "awk" is bad on
3142 # some platforms.
3143 # Always define AMTAR for backward compatibility.
3145 AMTAR=${AMTAR-"${am_missing_run}tar"}
3147 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3152 depcc="$CC" am_compiler_list=
3154 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3155 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3156 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3160 # We make a subdir and do the tests there. Otherwise we can end up
3161 # making bogus files that we don't know about and never remove. For
3162 # instance it was reported that on HP-UX the gcc test will end up
3163 # making a dummy file named `D' -- because `-MD' means `put the output
3164 # in D'.
3165 mkdir conftest.dir
3166 # Copy depcomp to subdir because otherwise we won't find it if we're
3167 # using a relative directory.
3168 cp "$am_depcomp" conftest.dir
3169 cd conftest.dir
3170 # We will build objects and dependencies in a subdirectory because
3171 # it helps to detect inapplicable dependency modes. For instance
3172 # both Tru64's cc and ICC support -MD to output dependencies as a
3173 # side effect of compilation, but ICC will put the dependencies in
3174 # the current directory while Tru64 will put them in the object
3175 # directory.
3176 mkdir sub
3178 am_cv_CC_dependencies_compiler_type=none
3179 if test "$am_compiler_list" = ""; then
3180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3182 for depmode in $am_compiler_list; do
3183 # Setup a source with many dependencies, because some compilers
3184 # like to wrap large dependency lists on column 80 (with \), and
3185 # we should not choose a depcomp mode which is confused by this.
3187 # We need to recreate these files for each test, as the compiler may
3188 # overwrite some of them when testing with obscure command lines.
3189 # This happens at least with the AIX C compiler.
3190 : > sub/conftest.c
3191 for i in 1 2 3 4 5 6; do
3192 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3193 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3194 # Solaris 8's {/usr,}/bin/sh.
3195 touch sub/conftst$i.h
3196 done
3197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3199 case $depmode in
3200 nosideeffect)
3201 # after this tag, mechanisms are not by side-effect, so they'll
3202 # only be used when explicitly requested
3203 if test "x$enable_dependency_tracking" = xyes; then
3204 continue
3205 else
3206 break
3209 none) break ;;
3210 esac
3211 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3212 # mode. It turns out that the SunPro C++ compiler does not properly
3213 # handle `-M -o', and we need to detect this.
3214 if depmode=$depmode \
3215 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3217 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3218 >/dev/null 2>conftest.err &&
3219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3220 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3222 # icc doesn't choke on unknown options, it will just issue warnings
3223 # or remarks (even with -Werror). So we grep stderr for any message
3224 # that says an option was ignored or not supported.
3225 # When given -MP, icc 7.0 and 7.1 complain thusly:
3226 # icc: Command line warning: ignoring option '-M'; no argument required
3227 # The diagnosis changed in icc 8.0:
3228 # icc: Command line remark: option '-MP' not supported
3229 if (grep 'ignoring option' conftest.err ||
3230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3231 am_cv_CC_dependencies_compiler_type=$depmode
3232 break
3235 done
3237 cd ..
3238 rm -rf conftest.dir
3239 else
3240 am_cv_CC_dependencies_compiler_type=none
3244 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3245 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3251 test "x$enable_dependency_tracking" != xno \
3252 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3253 am__fastdepCC_TRUE=
3254 am__fastdepCC_FALSE='#'
3255 else
3256 am__fastdepCC_TRUE='#'
3257 am__fastdepCC_FALSE=
3263 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_prog_CC+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3293 done
3294 done
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6
3302 else
3303 echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339 echo "${ECHO_T}$ac_ct_CC" >&6
3340 else
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3345 CC=$ac_ct_CC
3346 else
3347 CC="$ac_cv_prog_CC"
3350 if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}cc; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 echo "$as_me:$LINENO: result: $CC" >&5
3381 echo "${ECHO_T}$CC" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_CC"; then
3389 ac_ct_CC=$CC
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="cc"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419 echo "${ECHO_T}$ac_ct_CC" >&6
3420 else
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 CC=$ac_ct_CC
3426 else
3427 CC="$ac_cv_prog_CC"
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3454 ac_cv_prog_CC="cc"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3461 if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3464 shift
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3469 shift
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 echo "$as_me:$LINENO: result: $CC" >&5
3478 echo "${ECHO_T}$CC" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_prog_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3510 done
3511 done
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 echo "$as_me:$LINENO: result: $CC" >&5
3518 echo "${ECHO_T}$CC" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 test -n "$CC" && break
3525 done
3527 if test -z "$CC"; then
3528 ac_ct_CC=$CC
3529 for ac_prog in cl
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558 if test -n "$ac_ct_CC"; then
3559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3560 echo "${ECHO_T}$ac_ct_CC" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3566 test -n "$ac_ct_CC" && break
3567 done
3569 CC=$ac_ct_CC
3575 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3576 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3578 See \`config.log' for more details." >&5
3579 echo "$as_me: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&2;}
3581 { (exit 1); exit 1; }; }; }
3583 # Provide some information about the compiler.
3584 echo "$as_me:$LINENO:" \
3585 "checking for C compiler version" >&5
3586 ac_compiler=`set X $ac_compile; echo $2`
3587 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3588 (eval $ac_compiler --version </dev/null >&5) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3593 (eval $ac_compiler -v </dev/null >&5) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3598 (eval $ac_compiler -V </dev/null >&5) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3603 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3604 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3605 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3616 main ()
3618 #ifndef __GNUC__
3619 choke me
3620 #endif
3623 return 0;
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_compiler_gnu=yes
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 ac_compiler_gnu=no
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3660 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3661 GCC=`test $ac_compiler_gnu = yes && echo yes`
3662 ac_test_CFLAGS=${CFLAGS+set}
3663 ac_save_CFLAGS=$CFLAGS
3664 CFLAGS="-g"
3665 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3666 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3667 if test "${ac_cv_prog_cc_g+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3678 main ()
3682 return 0;
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_cv_prog_cc_g=yes
3708 else
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 ac_cv_prog_cc_g=no
3714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3733 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3734 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3735 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 ac_cv_prog_cc_stdc=no
3739 ac_save_CC=$CC
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754 char **p;
3755 int i;
3757 return p[i];
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std1 is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std1. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3785 main ()
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 return 0;
3791 _ACEOF
3792 # Don't try gcc -ansi; that turns off useful extensions and
3793 # breaks some systems' header files.
3794 # AIX -qlanglvl=ansi
3795 # Ultrix and OSF/1 -std1
3796 # HP-UX 10.20 and later -Ae
3797 # HP-UX older versions -Aa -D_HPUX_SOURCE
3798 # SVR4 -Xc -D__EXTENSIONS__
3799 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801 CC="$ac_save_CC $ac_arg"
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_cv_prog_cc_stdc=$ac_arg
3825 break
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f conftest.err conftest.$ac_objext
3832 done
3833 rm -f conftest.$ac_ext conftest.$ac_objext
3834 CC=$ac_save_CC
3838 case "x$ac_cv_prog_cc_stdc" in
3839 x|xno)
3840 echo "$as_me:$LINENO: result: none needed" >&5
3841 echo "${ECHO_T}none needed" >&6 ;;
3843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3844 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3845 CC="$CC $ac_cv_prog_cc_stdc" ;;
3846 esac
3848 # Some people use a C++ compiler to compile C. Since we use `exit',
3849 # in C++ we need to declare it. In case someone uses the same compiler
3850 # for both compiling C and C++ we need to have the C++ compiler decide
3851 # the declaration of exit, since it's the most demanding environment.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #ifndef __cplusplus
3854 choke me
3855 #endif
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 for ac_declaration in \
3880 '' \
3881 'extern "C" void std::exit (int) throw (); using std::exit;' \
3882 'extern "C" void std::exit (int); using std::exit;' \
3883 'extern "C" void exit (int) throw ();' \
3884 'extern "C" void exit (int);' \
3885 'void exit (int);'
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_declaration
3894 #include <stdlib.h>
3896 main ()
3898 exit (42);
3900 return 0;
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 continue
3932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 $ac_declaration
3941 main ()
3943 exit (42);
3945 return 0;
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_c_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 break
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977 done
3978 rm -f conftest*
3979 if test -n "$ac_declaration"; then
3980 echo '#ifdef __cplusplus' >>confdefs.h
3981 echo $ac_declaration >>confdefs.h
3982 echo '#endif' >>confdefs.h
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 cat >>confdefs.h <<\_ACEOF
3999 #define _GNU_SOURCE 1
4000 _ACEOF
4003 # Find a good install program. We prefer a C program (faster),
4004 # so one script is as good as another. But avoid the broken or
4005 # incompatible versions:
4006 # SysV /etc/install, /usr/sbin/install
4007 # SunOS /usr/etc/install
4008 # IRIX /sbin/install
4009 # AIX /bin/install
4010 # AmigaOS /C/install, which installs bootblocks on floppy discs
4011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4014 # OS/2's system install, which has a completely different semantic
4015 # ./install, which can be erroneously created by make from ./install.sh.
4016 # Reject install programs that cannot install multiple files.
4017 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4019 if test -z "$INSTALL"; then
4020 if test "${ac_cv_path_install+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 # Account for people who put trailing slashes in PATH elements.
4029 case $as_dir/ in
4030 ./ | .// | /cC/* | \
4031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4033 /usr/ucb/* ) ;;
4035 # OSF1 and SCO ODT 3.0 have their own names for install.
4036 # Don't use installbsd from OSF since it installs stuff as root
4037 # by default.
4038 for ac_prog in ginstall scoinst install; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4041 if test $ac_prog = install &&
4042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4043 # AIX install. It has an incompatible calling convention.
4045 elif test $ac_prog = install &&
4046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047 # program-specific install script used by HP pwplus--don't use.
4049 else
4050 rm -rf conftest.one conftest.two conftest.dir
4051 echo one > conftest.one
4052 echo two > conftest.two
4053 mkdir conftest.dir
4054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4055 test -s conftest.one && test -s conftest.two &&
4056 test -s conftest.dir/conftest.one &&
4057 test -s conftest.dir/conftest.two
4058 then
4059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4060 break 3
4064 done
4065 done
4067 esac
4068 done
4070 rm -rf conftest.one conftest.two conftest.dir
4073 if test "${ac_cv_path_install+set}" = set; then
4074 INSTALL=$ac_cv_path_install
4075 else
4076 # As a last resort, use the slow shell script. Don't cache a
4077 # value for INSTALL within a source directory, because that will
4078 # break other packages using the cache if that directory is
4079 # removed, or if the value is a relative name.
4080 INSTALL=$ac_install_sh
4083 echo "$as_me:$LINENO: result: $INSTALL" >&5
4084 echo "${ECHO_T}$INSTALL" >&6
4086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4087 # It thinks the first close brace ends the variable substitution.
4088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4097 macro_version='2.1a'
4098 macro_revision='1.2435'
4111 ltmain="$ac_aux_dir/ltmain.sh"
4113 # Set options
4115 enable_dlopen=no
4118 enable_win32_dll=no
4121 # Check whether --enable-shared or --disable-shared was given.
4122 if test "${enable_shared+set}" = set; then
4123 enableval="$enable_shared"
4124 p=${PACKAGE-default}
4125 case $enableval in
4126 yes) enable_shared=yes ;;
4127 no) enable_shared=no ;;
4129 enable_shared=no
4130 # Look at the argument we got. We use all the common list separators.
4131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4132 for pkg in $enableval; do
4133 IFS="$lt_save_ifs"
4134 if test "X$pkg" = "X$p"; then
4135 enable_shared=yes
4137 done
4138 IFS="$lt_save_ifs"
4140 esac
4141 else
4142 enable_shared=yes
4152 # Check whether --enable-static or --disable-static was given.
4153 if test "${enable_static+set}" = set; then
4154 enableval="$enable_static"
4155 p=${PACKAGE-default}
4156 case $enableval in
4157 yes) enable_static=yes ;;
4158 no) enable_static=no ;;
4160 enable_static=no
4161 # Look at the argument we got. We use all the common list separators.
4162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4163 for pkg in $enableval; do
4164 IFS="$lt_save_ifs"
4165 if test "X$pkg" = "X$p"; then
4166 enable_static=yes
4168 done
4169 IFS="$lt_save_ifs"
4171 esac
4172 else
4173 enable_static=yes
4184 # Check whether --with-pic or --without-pic was given.
4185 if test "${with_pic+set}" = set; then
4186 withval="$with_pic"
4187 pic_mode="$withval"
4188 else
4189 pic_mode=default
4192 test -z "$pic_mode" && pic_mode=default
4200 # Check whether --enable-fast-install or --disable-fast-install was given.
4201 if test "${enable_fast_install+set}" = set; then
4202 enableval="$enable_fast_install"
4203 p=${PACKAGE-default}
4204 case $enableval in
4205 yes) enable_fast_install=yes ;;
4206 no) enable_fast_install=no ;;
4208 enable_fast_install=no
4209 # Look at the argument we got. We use all the common list separators.
4210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4211 for pkg in $enableval; do
4212 IFS="$lt_save_ifs"
4213 if test "X$pkg" = "X$p"; then
4214 enable_fast_install=yes
4216 done
4217 IFS="$lt_save_ifs"
4219 esac
4220 else
4221 enable_fast_install=yes
4231 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4232 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4233 if test "${lt_cv_path_SED+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236 # Loop through the user's path and test for sed and gsed.
4237 # Then use that list of sed's as ones to test for truncation.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for lt_ac_prog in sed gsed; do
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4246 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4248 done
4249 done
4250 done
4251 IFS=$as_save_IFS
4252 lt_ac_max=0
4253 lt_ac_count=0
4254 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4255 # along with /bin/sed that truncates output.
4256 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4257 test ! -f $lt_ac_sed && continue
4258 cat /dev/null > conftest.in
4259 lt_ac_count=0
4260 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4261 # Check for GNU sed and select it if it is found.
4262 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4263 lt_cv_path_SED=$lt_ac_sed
4264 break
4266 while true; do
4267 cat conftest.in conftest.in >conftest.tmp
4268 mv conftest.tmp conftest.in
4269 cp conftest.in conftest.nl
4270 echo >>conftest.nl
4271 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4272 cmp -s conftest.out conftest.nl || break
4273 # 10000 chars as input seems more than enough
4274 test $lt_ac_count -gt 10 && break
4275 lt_ac_count=`expr $lt_ac_count + 1`
4276 if test $lt_ac_count -gt $lt_ac_max; then
4277 lt_ac_max=$lt_ac_count
4278 lt_cv_path_SED=$lt_ac_sed
4280 done
4281 done
4285 SED=$lt_cv_path_SED
4287 echo "$as_me:$LINENO: result: $SED" >&5
4288 echo "${ECHO_T}$SED" >&6
4290 test -z "$SED" && SED=sed
4291 Xsed="$SED -e 1s/^X//"
4303 echo "$as_me:$LINENO: checking for egrep" >&5
4304 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4305 if test "${ac_cv_prog_egrep+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4309 then ac_cv_prog_egrep='grep -E'
4310 else ac_cv_prog_egrep='egrep'
4313 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4314 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4315 EGREP=$ac_cv_prog_egrep
4318 echo "$as_me:$LINENO: checking for fgrep" >&5
4319 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4320 if test "${ac_cv_prog_fgrep+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4324 then ac_cv_prog_fgrep='grep -F'
4325 else ac_cv_prog_fgrep='fgrep'
4328 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4329 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4330 FGREP=$ac_cv_prog_fgrep
4333 test -z "$GREP" && GREP=grep
4353 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4354 if test "${with_gnu_ld+set}" = set; then
4355 withval="$with_gnu_ld"
4356 test "$withval" = no || with_gnu_ld=yes
4357 else
4358 with_gnu_ld=no
4360 ac_prog=ld
4361 if test "$GCC" = yes; then
4362 # Check if gcc -print-prog-name=ld gives a path.
4363 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4364 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4365 case $host in
4366 *-*-mingw*)
4367 # gcc leaves a trailing carriage return which upsets mingw
4368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4371 esac
4372 case $ac_prog in
4373 # Accept absolute paths.
4374 [\\/]* | ?:[\\/]*)
4375 re_direlt='/[^/][^/]*/\.\./'
4376 # Canonicalize the pathname of ld
4377 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4378 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4379 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4380 done
4381 test -z "$LD" && LD="$ac_prog"
4384 # If it fails, then pretend we aren't using GCC.
4385 ac_prog=ld
4388 # If it is relative, then search for the first ld in PATH.
4389 with_gnu_ld=unknown
4391 esac
4392 elif test "$with_gnu_ld" = yes; then
4393 echo "$as_me:$LINENO: checking for GNU ld" >&5
4394 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4395 else
4396 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4397 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4399 if test "${lt_cv_path_LD+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 if test -z "$LD"; then
4403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4404 for ac_dir in $PATH; do
4405 IFS="$lt_save_ifs"
4406 test -z "$ac_dir" && ac_dir=.
4407 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4408 lt_cv_path_LD="$ac_dir/$ac_prog"
4409 # Check to see if the program is GNU ld. I'd rather use --version,
4410 # but apparently some variants of GNU ld only accept -v.
4411 # Break only if it was the GNU/non-GNU ld that we prefer.
4412 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4413 *GNU* | *'with BFD'*)
4414 test "$with_gnu_ld" != no && break
4417 test "$with_gnu_ld" != yes && break
4419 esac
4421 done
4422 IFS="$lt_save_ifs"
4423 else
4424 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4428 LD="$lt_cv_path_LD"
4429 if test -n "$LD"; then
4430 echo "$as_me:$LINENO: result: $LD" >&5
4431 echo "${ECHO_T}$LD" >&6
4432 else
4433 echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6
4436 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4437 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4438 { (exit 1); exit 1; }; }
4439 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4440 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4441 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4445 case `$LD -v 2>&1 </dev/null` in
4446 *GNU* | *'with BFD'*)
4447 lt_cv_prog_gnu_ld=yes
4450 lt_cv_prog_gnu_ld=no
4452 esac
4454 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4455 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4456 with_gnu_ld=$lt_cv_prog_gnu_ld
4467 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4468 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4469 if test "${lt_cv_path_NM+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$NM"; then
4473 # Let the user override the test.
4474 lt_cv_path_NM="$NM"
4475 else
4476 lt_nm_to_check="${ac_tool_prefix}nm"
4477 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4478 lt_nm_to_check="$lt_nm_to_check nm"
4480 for lt_tmp_nm in $lt_nm_to_check; do
4481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4482 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4483 IFS="$lt_save_ifs"
4484 test -z "$ac_dir" && ac_dir=.
4485 tmp_nm="$ac_dir/$lt_tmp_nm"
4486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4487 # Check to see if the nm accepts a BSD-compat flag.
4488 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4489 # nm: unknown option "B" ignored
4490 # Tru64's nm complains that /dev/null is an invalid object file
4491 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4492 */dev/null* | *'Invalid file or object type'*)
4493 lt_cv_path_NM="$tmp_nm -B"
4494 break
4497 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4498 */dev/null*)
4499 lt_cv_path_NM="$tmp_nm -p"
4500 break
4503 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4504 continue # so that we can try to find one that supports BSD flags
4506 esac
4508 esac
4510 done
4511 IFS="$lt_save_ifs"
4512 done
4513 : ${lt_cv_path_NM=no}
4516 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4517 echo "${ECHO_T}$lt_cv_path_NM" >&6
4518 if test "$lt_cv_path_NM" != "no"; then
4519 NM="$lt_cv_path_NM"
4520 else
4521 # Didn't find any BSD compatible name lister, look for dumpbin.
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 if test -n "$DUMPBIN"; then
4533 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4551 DUMPBIN=$ac_cv_prog_DUMPBIN
4552 if test -n "$DUMPBIN"; then
4553 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4554 echo "${ECHO_T}$DUMPBIN" >&6
4555 else
4556 echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6
4560 test -n "$DUMPBIN" && break
4561 done
4563 if test -z "$DUMPBIN"; then
4564 ac_ct_DUMPBIN=$DUMPBIN
4565 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4567 # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574 if test -n "$ac_ct_DUMPBIN"; then
4575 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4588 done
4589 done
4593 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4594 if test -n "$ac_ct_DUMPBIN"; then
4595 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4596 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4597 else
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4602 test -n "$ac_ct_DUMPBIN" && break
4603 done
4604 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4606 DUMPBIN=$ac_ct_DUMPBIN
4610 if test "$DUMPBIN" != ":"; then
4611 NM="$DUMPBIN"
4614 test -z "$NM" && NM=nm
4621 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4622 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4623 if test "${lt_cv_nm_interface+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 lt_cv_nm_interface="BSD nm"
4627 echo "int some_variable = 0;" > conftest.$ac_ext
4628 (eval echo "\"\$as_me:4628: $ac_compile\"" >&5)
4629 (eval "$ac_compile" 2>conftest.err)
4630 cat conftest.err >&5
4631 (eval echo "\"\$as_me:4631: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4632 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4633 cat conftest.err >&5
4634 (eval echo "\"\$as_me:4634: output\"" >&5)
4635 cat conftest.out >&5
4636 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4637 lt_cv_nm_interface="MS dumpbin"
4639 rm -f conftest*
4641 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4642 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4644 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4646 LN_S=$as_ln_s
4647 if test "$LN_S" = "ln -s"; then
4648 echo "$as_me:$LINENO: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6
4650 else
4651 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4652 echo "${ECHO_T}no, using $LN_S" >&6
4655 # find the maximum length of command line arguments
4656 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4657 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4658 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4662 teststring="ABCD"
4664 case $build_os in
4665 msdosdjgpp*)
4666 # On DJGPP, this test can blow up pretty badly due to problems in libc
4667 # (any single argument exceeding 2000 bytes causes a buffer overrun
4668 # during glob expansion). Even if it were fixed, the result of this
4669 # check would be larger than it should be.
4670 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4673 gnu*)
4674 # Under GNU Hurd, this test is not required because there is
4675 # no limit to the length of command line arguments.
4676 # Libtool will interpret -1 as no limit whatsoever
4677 lt_cv_sys_max_cmd_len=-1;
4680 cygwin* | mingw*)
4681 # On Win9x/ME, this test blows up -- it succeeds, but takes
4682 # about 5 minutes as the teststring grows exponentially.
4683 # Worse, since 9x/ME are not pre-emptively multitasking,
4684 # you end up with a "frozen" computer, even though with patience
4685 # the test eventually succeeds (with a max line length of 256k).
4686 # Instead, let's just punt: use the minimum linelength reported by
4687 # all of the supported platforms: 8192 (on NT/2K/XP).
4688 lt_cv_sys_max_cmd_len=8192;
4691 amigaos*)
4692 # On AmigaOS with pdksh, this test takes hours, literally.
4693 # So we just punt and use a minimum line length of 8192.
4694 lt_cv_sys_max_cmd_len=8192;
4697 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4698 # This has been around since 386BSD, at least. Likely further.
4699 if test -x /sbin/sysctl; then
4700 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4701 elif test -x /usr/sbin/sysctl; then
4702 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4703 else
4704 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4706 # And add a safety zone
4707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4711 interix*)
4712 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4713 lt_cv_sys_max_cmd_len=196608
4716 osf*)
4717 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4718 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4719 # nice to cause kernel panics so lets avoid the loop below.
4720 # First set a reasonable default.
4721 lt_cv_sys_max_cmd_len=16384
4723 if test -x /sbin/sysconfig; then
4724 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4725 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4726 esac
4729 sco3.2v5*)
4730 lt_cv_sys_max_cmd_len=102400
4732 sysv5* | sco5v6* | sysv4.2uw2*)
4733 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4734 if test -n "$kargmax"; then
4735 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4736 else
4737 lt_cv_sys_max_cmd_len=32768
4741 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4742 if test -n $lt_cv_sys_max_cmd_len; then
4743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4745 else
4746 # Make teststring a little bigger before we do anything with it.
4747 # a 1K string should be a reasonable start.
4748 for i in 1 2 3 4 5 6 7 8 ; do
4749 teststring=$teststring$teststring
4750 done
4751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4752 # If test is not a shell built-in, we'll probably end up computing a
4753 # maximum length that is only half of the actual maximum length, but
4754 # we can't tell.
4755 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4756 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4757 test $i != 17 # 1/2 MB should be enough
4759 i=`expr $i + 1`
4760 teststring=$teststring$teststring
4761 done
4762 # Only check the string length outside the loop.
4763 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4764 teststring=
4765 # Add a significant safety factor because C++ compilers can tack on
4766 # massive amounts of additional arguments before passing them to the
4767 # linker. It appears as though 1/2 is a usable value.
4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4771 esac
4775 if test -n $lt_cv_sys_max_cmd_len ; then
4776 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4777 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4778 else
4779 echo "$as_me:$LINENO: result: none" >&5
4780 echo "${ECHO_T}none" >&6
4782 max_cmd_len=$lt_cv_sys_max_cmd_len
4790 : ${CP="cp -f"}
4791 : ${MV="mv -f"}
4792 : ${RM="rm -f"}
4794 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4795 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4796 # Try some XSI features
4797 xsi_shell=no
4798 ( _lt_dummy="a/b/c"
4799 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4800 = c,a/b,, ) >/dev/null 2>&1 \
4801 && xsi_shell=yes
4802 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4803 echo "${ECHO_T}$xsi_shell" >&6
4806 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4807 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4808 lt_shell_append=no
4809 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4810 >/dev/null 2>&1 \
4811 && lt_shell_append=yes
4812 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4813 echo "${ECHO_T}$lt_shell_append" >&6
4816 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4817 lt_unset=unset
4818 else
4819 lt_unset=false
4826 # test EBCDIC or ASCII
4827 case `echo X|tr X '\101'` in
4828 A) # ASCII based system
4829 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4830 lt_SP2NL='tr \040 \012'
4831 lt_NL2SP='tr \015\012 \040\040'
4833 *) # EBCDIC based system
4834 lt_SP2NL='tr \100 \n'
4835 lt_NL2SP='tr \r\n \100\100'
4837 esac
4847 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4848 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4849 if test "${lt_cv_ld_reload_flag+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852 lt_cv_ld_reload_flag='-r'
4854 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4855 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4856 reload_flag=$lt_cv_ld_reload_flag
4857 case $reload_flag in
4858 "" | " "*) ;;
4859 *) reload_flag=" $reload_flag" ;;
4860 esac
4861 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4862 case $host_os in
4863 darwin*)
4864 if test "$GCC" = yes; then
4865 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4866 else
4867 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4870 esac
4881 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4882 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4883 if test "${lt_cv_deplibs_check_method+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 lt_cv_file_magic_cmd='$MAGIC_CMD'
4887 lt_cv_file_magic_test_file=
4888 lt_cv_deplibs_check_method='unknown'
4889 # Need to set the preceding variable on all platforms that support
4890 # interlibrary dependencies.
4891 # 'none' -- dependencies not supported.
4892 # `unknown' -- same as none, but documents that we really don't know.
4893 # 'pass_all' -- all dependencies passed with no checks.
4894 # 'test_compile' -- check by making test program.
4895 # 'file_magic [[regex]]' -- check by looking for files in library path
4896 # which responds to the $file_magic_cmd with a given extended regex.
4897 # If you have `file' or equivalent on your system and you're not sure
4898 # whether `pass_all' will *always* work, you probably want this one.
4900 case $host_os in
4901 aix[4-9]*)
4902 lt_cv_deplibs_check_method=pass_all
4905 beos*)
4906 lt_cv_deplibs_check_method=pass_all
4909 bsdi[45]*)
4910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4911 lt_cv_file_magic_cmd='/usr/bin/file -L'
4912 lt_cv_file_magic_test_file=/shlib/libc.so
4915 cygwin*)
4916 # func_win32_libid is a shell function defined in ltmain.sh
4917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4918 lt_cv_file_magic_cmd='func_win32_libid'
4921 mingw* | pw32*)
4922 # Base MSYS/MinGW do not provide the 'file' command needed by
4923 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4924 # unless we find 'file', for example because we are cross-compiling.
4925 if ( file / ) >/dev/null 2>&1; then
4926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4927 lt_cv_file_magic_cmd='func_win32_libid'
4928 else
4929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4930 lt_cv_file_magic_cmd='$OBJDUMP -f'
4934 darwin* | rhapsody*)
4935 lt_cv_deplibs_check_method=pass_all
4938 freebsd* | dragonfly*)
4939 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4940 case $host_cpu in
4941 i*86 )
4942 # Not sure whether the presence of OpenBSD here was a mistake.
4943 # Let's accept both of them until this is cleared up.
4944 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4945 lt_cv_file_magic_cmd=/usr/bin/file
4946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4948 esac
4949 else
4950 lt_cv_deplibs_check_method=pass_all
4954 gnu*)
4955 lt_cv_deplibs_check_method=pass_all
4958 hpux10.20* | hpux11*)
4959 lt_cv_file_magic_cmd=/usr/bin/file
4960 case $host_cpu in
4961 ia64*)
4962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4965 hppa*64*)
4966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4973 esac
4976 interix[3-9]*)
4977 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4981 irix5* | irix6* | nonstopux*)
4982 case $LD in
4983 *-32|*"-32 ") libmagic=32-bit;;
4984 *-n32|*"-n32 ") libmagic=N32;;
4985 *-64|*"-64 ") libmagic=64-bit;;
4986 *) libmagic=never-match;;
4987 esac
4988 lt_cv_deplibs_check_method=pass_all
4991 # This must be Linux ELF.
4992 linux* | k*bsd*-gnu)
4993 lt_cv_deplibs_check_method=pass_all
4996 netbsd*)
4997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4999 else
5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5004 newos6*)
5005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5006 lt_cv_file_magic_cmd=/usr/bin/file
5007 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5010 *nto* | *qnx*)
5011 lt_cv_deplibs_check_method=pass_all
5014 openbsd*)
5015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5017 else
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5022 osf3* | osf4* | osf5*)
5023 lt_cv_deplibs_check_method=pass_all
5026 rdos*)
5027 lt_cv_deplibs_check_method=pass_all
5030 solaris*)
5031 lt_cv_deplibs_check_method=pass_all
5034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5035 lt_cv_deplibs_check_method=pass_all
5038 sysv4 | sysv4.3*)
5039 case $host_vendor in
5040 motorola)
5041 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]'
5042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5044 ncr)
5045 lt_cv_deplibs_check_method=pass_all
5047 sequent)
5048 lt_cv_file_magic_cmd='/bin/file'
5049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5051 sni)
5052 lt_cv_file_magic_cmd='/bin/file'
5053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5054 lt_cv_file_magic_test_file=/lib/libc.so
5056 siemens)
5057 lt_cv_deplibs_check_method=pass_all
5060 lt_cv_deplibs_check_method=pass_all
5062 esac
5065 tpf*)
5066 lt_cv_deplibs_check_method=pass_all
5068 esac
5071 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5072 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5073 file_magic_cmd=$lt_cv_file_magic_cmd
5074 deplibs_check_method=$lt_cv_deplibs_check_method
5075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5088 if test -n "$ac_tool_prefix"; then
5089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5090 set dummy ${ac_tool_prefix}ar; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_prog_AR+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096 if test -n "$AR"; then
5097 ac_cv_prog_AR="$AR" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_AR="${ac_tool_prefix}ar"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5115 AR=$ac_cv_prog_AR
5116 if test -n "$AR"; then
5117 echo "$as_me:$LINENO: result: $AR" >&5
5118 echo "${ECHO_T}$AR" >&6
5119 else
5120 echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6
5125 if test -z "$ac_cv_prog_AR"; then
5126 ac_ct_AR=$AR
5127 # Extract the first word of "ar", so it can be a program name with args.
5128 set dummy ar; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 if test -n "$ac_ct_AR"; then
5135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_ac_ct_AR="ar"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5151 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5155 if test -n "$ac_ct_AR"; then
5156 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5157 echo "${ECHO_T}$ac_ct_AR" >&6
5158 else
5159 echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6
5163 AR=$ac_ct_AR
5164 else
5165 AR="$ac_cv_prog_AR"
5168 test -z "$AR" && AR=ar
5169 test -z "$AR_FLAGS" && AR_FLAGS=cru
5181 if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5183 set dummy ${ac_tool_prefix}strip; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_STRIP+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 if test -n "$STRIP"; then
5190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5203 done
5204 done
5208 STRIP=$ac_cv_prog_STRIP
5209 if test -n "$STRIP"; then
5210 echo "$as_me:$LINENO: result: $STRIP" >&5
5211 echo "${ECHO_T}$STRIP" >&6
5212 else
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5218 if test -z "$ac_cv_prog_STRIP"; then
5219 ac_ct_STRIP=$STRIP
5220 # Extract the first word of "strip", so it can be a program name with args.
5221 set dummy strip; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -n "$ac_ct_STRIP"; then
5228 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_ac_ct_STRIP="strip"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5244 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5247 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5248 if test -n "$ac_ct_STRIP"; then
5249 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5250 echo "${ECHO_T}$ac_ct_STRIP" >&6
5251 else
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5256 STRIP=$ac_ct_STRIP
5257 else
5258 STRIP="$ac_cv_prog_STRIP"
5261 test -z "$STRIP" && STRIP=:
5268 if test -n "$ac_tool_prefix"; then
5269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5271 echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273 if test "${ac_cv_prog_RANLIB+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 if test -n "$RANLIB"; then
5277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5290 done
5291 done
5295 RANLIB=$ac_cv_prog_RANLIB
5296 if test -n "$RANLIB"; then
5297 echo "$as_me:$LINENO: result: $RANLIB" >&5
5298 echo "${ECHO_T}$RANLIB" >&6
5299 else
5300 echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5305 if test -z "$ac_cv_prog_RANLIB"; then
5306 ac_ct_RANLIB=$RANLIB
5307 # Extract the first word of "ranlib", so it can be a program name with args.
5308 set dummy ranlib; ac_word=$2
5309 echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5311 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 if test -n "$ac_ct_RANLIB"; then
5315 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_ac_ct_RANLIB="ranlib"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5328 done
5329 done
5331 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5334 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5335 if test -n "$ac_ct_RANLIB"; then
5336 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5337 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5338 else
5339 echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5343 RANLIB=$ac_ct_RANLIB
5344 else
5345 RANLIB="$ac_cv_prog_RANLIB"
5348 test -z "$RANLIB" && RANLIB=:
5355 # Determine commands to create old-style static archives.
5356 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5357 old_postinstall_cmds='chmod 644 $oldlib'
5358 old_postuninstall_cmds=
5360 if test -n "$RANLIB"; then
5361 case $host_os in
5362 openbsd*)
5363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5366 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5368 esac
5369 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5405 # If no C compiler was specified, use CC.
5406 LTCC=${LTCC-"$CC"}
5408 # If no C compiler flags were specified, use CFLAGS.
5409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5411 # Allow CC to be a program name with arguments.
5412 compiler=$CC
5415 # Check for command to grab the raw symbol name followed by C symbol from nm.
5416 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5417 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5418 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5422 # These are sane defaults that work on at least a few old systems.
5423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5425 # Character class describing NM global symbol codes.
5426 symcode='[BCDEGRST]'
5428 # Regexp to match symbols that can be accessed directly from C.
5429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5431 # Define system-specific variables.
5432 case $host_os in
5433 aix*)
5434 symcode='[BCDT]'
5436 cygwin* | mingw* | pw32*)
5437 symcode='[ABCDGISTW]'
5439 hpux*)
5440 if test "$host_cpu" = ia64; then
5441 symcode='[ABCDEGRST]'
5444 irix* | nonstopux*)
5445 symcode='[BCDEGRST]'
5447 osf*)
5448 symcode='[BCDEGQRST]'
5450 solaris*)
5451 symcode='[BDRT]'
5453 sco3.2v5*)
5454 symcode='[DT]'
5456 sysv4.2uw2*)
5457 symcode='[DT]'
5459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5460 symcode='[ABDT]'
5462 sysv4)
5463 symcode='[DFNSTU]'
5465 esac
5467 # If we're using GNU nm, then use its standard symbol codes.
5468 case `$NM -V 2>&1` in
5469 *GNU* | *'with BFD'*)
5470 symcode='[ABCDGIRSTW]' ;;
5471 esac
5473 # Transform an extracted symbol line into a proper C declaration.
5474 # Some systems (esp. on ia64) link data and code symbols differently,
5475 # so use this general approach.
5476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5478 # Transform an extracted symbol line into symbol name and symbol address
5479 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5481 # Handle CRLF in mingw tool chain
5482 opt_cr=
5483 case $build_os in
5484 mingw*)
5485 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5487 esac
5489 # Try without a prefix underscore, then with it.
5490 for ac_symprfx in "" "_"; do
5492 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5493 symxfrm="\\1 $ac_symprfx\\2 \\2"
5495 # Write the raw and C identifiers.
5496 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5497 # Fake it for dumpbin and say T for any non-static function
5498 # and D for any global variable.
5499 # Also find C++ and __fastcall symbols from MSVC++,
5500 # which start with @ or ?.
5501 lt_cv_sys_global_symbol_pipe="$AWK '"\
5502 " {last_section=section; section=\$ 3};"\
5503 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5504 " \$ 0!~/External *\|/{next};"\
5505 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5506 " {if(hide[section]) next};"\
5507 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5508 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5509 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5510 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5511 " ' prfx=^$ac_symprfx"
5512 else
5513 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5516 # Check to see that the pipe works correctly.
5517 pipe_works=no
5519 rm -f conftest*
5520 cat > conftest.$ac_ext <<_LT_EOF
5521 #ifdef __cplusplus
5522 extern "C" {
5523 #endif
5524 char nm_test_var;
5525 void nm_test_func(void);
5526 void nm_test_func(void){}
5527 #ifdef __cplusplus
5529 #endif
5530 int main(){nm_test_var='a';nm_test_func();return(0);}
5531 _LT_EOF
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; then
5538 # Now try to grab the symbols.
5539 nlist=conftest.nm
5540 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5541 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && test -s "$nlist"; then
5545 # Try sorting and uniquifying the output.
5546 if sort "$nlist" | uniq > "$nlist"T; then
5547 mv -f "$nlist"T "$nlist"
5548 else
5549 rm -f "$nlist"T
5552 # Make sure that we snagged all the symbols we need.
5553 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5554 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5555 cat <<_LT_EOF > conftest.$ac_ext
5556 #ifdef __cplusplus
5557 extern "C" {
5558 #endif
5560 _LT_EOF
5561 # Now generate the symbol file.
5562 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5564 cat <<_LT_EOF >> conftest.$ac_ext
5566 /* The mapping between symbol names and symbols. */
5567 const struct {
5568 const char *name;
5569 void *address;
5571 lt__PROGRAM__LTX_preloaded_symbols[] =
5573 { "@PROGRAM@", (void *) 0 },
5574 _LT_EOF
5575 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5576 cat <<\_LT_EOF >> conftest.$ac_ext
5577 {0, (void *) 0}
5580 /* This works around a problem in FreeBSD linker */
5581 #ifdef FREEBSD_WORKAROUND
5582 static const void *lt_preloaded_setup() {
5583 return lt__PROGRAM__LTX_preloaded_symbols;
5585 #endif
5587 #ifdef __cplusplus
5589 #endif
5590 _LT_EOF
5591 # Now try linking the two files.
5592 mv conftest.$ac_objext conftstm.$ac_objext
5593 lt_save_LIBS="$LIBS"
5594 lt_save_CFLAGS="$CFLAGS"
5595 LIBS="conftstm.$ac_objext"
5596 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5602 pipe_works=yes
5604 LIBS="$lt_save_LIBS"
5605 CFLAGS="$lt_save_CFLAGS"
5606 else
5607 echo "cannot find nm_test_func in $nlist" >&5
5609 else
5610 echo "cannot find nm_test_var in $nlist" >&5
5612 else
5613 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5615 else
5616 echo "$progname: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5619 rm -f conftest* conftst*
5621 # Do not use the global_symbol_pipe unless it works.
5622 if test "$pipe_works" = yes; then
5623 break
5624 else
5625 lt_cv_sys_global_symbol_pipe=
5627 done
5631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5632 lt_cv_sys_global_symbol_to_cdecl=
5634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5635 echo "$as_me:$LINENO: result: failed" >&5
5636 echo "${ECHO_T}failed" >&6
5637 else
5638 echo "$as_me:$LINENO: result: ok" >&5
5639 echo "${ECHO_T}ok" >&6
5658 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5659 if test "${enable_libtool_lock+set}" = set; then
5660 enableval="$enable_libtool_lock"
5663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5665 # Some flags need to be propagated to the compiler or linker for good
5666 # libtool support.
5667 case $host in
5668 ia64-*-hpux*)
5669 # Find out which ABI we are using.
5670 echo 'int i;' > conftest.$ac_ext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; then
5676 case `/usr/bin/file conftest.$ac_objext` in
5677 *ELF-32*)
5678 HPUX_IA64_MODE="32"
5680 *ELF-64*)
5681 HPUX_IA64_MODE="64"
5683 esac
5685 rm -rf conftest*
5687 *-*-irix6*)
5688 # Find out which ABI we are using.
5689 echo '#line 5689 "configure"' > conftest.$ac_ext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; then
5695 if test "$lt_cv_prog_gnu_ld" = yes; then
5696 case `/usr/bin/file conftest.$ac_objext` in
5697 *32-bit*)
5698 LD="${LD-ld} -melf32bsmip"
5700 *N32*)
5701 LD="${LD-ld} -melf32bmipn32"
5703 *64-bit*)
5704 LD="${LD-ld} -melf64bmip"
5706 esac
5707 else
5708 case `/usr/bin/file conftest.$ac_objext` in
5709 *32-bit*)
5710 LD="${LD-ld} -32"
5712 *N32*)
5713 LD="${LD-ld} -n32"
5715 *64-bit*)
5716 LD="${LD-ld} -64"
5718 esac
5721 rm -rf conftest*
5724 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5725 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5726 # Find out which ABI we are using.
5727 echo 'int i;' > conftest.$ac_ext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; then
5733 case `/usr/bin/file conftest.o` in
5734 *32-bit*)
5735 case $host in
5736 x86_64-*kfreebsd*-gnu)
5737 LD="${LD-ld} -m elf_i386_fbsd"
5739 x86_64-*linux*)
5740 LD="${LD-ld} -m elf_i386"
5742 ppc64-*linux*|powerpc64-*linux*)
5743 LD="${LD-ld} -m elf32ppclinux"
5745 s390x-*linux*)
5746 LD="${LD-ld} -m elf_s390"
5748 sparc64-*linux*)
5749 LD="${LD-ld} -m elf32_sparc"
5751 esac
5753 *64-bit*)
5754 case $host in
5755 x86_64-*kfreebsd*-gnu)
5756 LD="${LD-ld} -m elf_x86_64_fbsd"
5758 x86_64-*linux*)
5759 LD="${LD-ld} -m elf_x86_64"
5761 ppc*-*linux*|powerpc*-*linux*)
5762 LD="${LD-ld} -m elf64ppc"
5764 s390*-*linux*|s390*-*tpf*)
5765 LD="${LD-ld} -m elf64_s390"
5767 sparc*-*linux*)
5768 LD="${LD-ld} -m elf64_sparc"
5770 esac
5772 esac
5774 rm -rf conftest*
5777 *-*-sco3.2v5*)
5778 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5779 SAVE_CFLAGS="$CFLAGS"
5780 CFLAGS="$CFLAGS -belf"
5781 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5782 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5783 if test "${lt_cv_cc_needs_belf+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 ac_ext=c
5787 ac_cpp='$CPP $CPPFLAGS'
5788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5800 main ()
5804 return 0;
5806 _ACEOF
5807 rm -f conftest.$ac_objext conftest$ac_exeext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag"
5817 || test ! -s conftest.err'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; } &&
5823 { ac_try='test -s conftest$ac_exeext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 lt_cv_cc_needs_belf=yes
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 lt_cv_cc_needs_belf=no
5836 rm -f conftest.err conftest.$ac_objext \
5837 conftest$ac_exeext conftest.$ac_ext
5838 ac_ext=c
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5845 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5846 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5847 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5848 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5849 CFLAGS="$SAVE_CFLAGS"
5852 sparc*-*solaris*)
5853 # Find out which ABI we are using.
5854 echo 'int i;' > conftest.$ac_ext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; then
5860 case `/usr/bin/file conftest.o` in
5861 *64-bit*)
5862 case $lt_cv_prog_gnu_ld in
5863 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5864 *) LD="${LD-ld} -64" ;;
5865 esac
5867 esac
5869 rm -rf conftest*
5871 esac
5873 need_locks="$enable_libtool_lock"
5875 ac_ext=c
5876 ac_cpp='$CPP $CPPFLAGS'
5877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5882 # On Suns, sometimes $CPP names a directory.
5883 if test -n "$CPP" && test -d "$CPP"; then
5884 CPP=
5886 if test -z "$CPP"; then
5887 if test "${ac_cv_prog_CPP+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 # Double quotes because CPP needs to be expanded
5891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5893 ac_preproc_ok=false
5894 for ac_c_preproc_warn_flag in '' yes
5896 # Use a header file that comes with gcc, so configuring glibc
5897 # with a fresh cross-compiler works.
5898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899 # <limits.h> exists even on freestanding compilers.
5900 # On the NeXT, cc -E runs the code through the compiler's parser,
5901 # not just through cpp. "Syntax error" is here to catch this case.
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #ifdef __STDC__
5909 # include <limits.h>
5910 #else
5911 # include <assert.h>
5912 #endif
5913 Syntax error
5914 _ACEOF
5915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } >/dev/null; then
5923 if test -s conftest.err; then
5924 ac_cpp_err=$ac_c_preproc_warn_flag
5925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5926 else
5927 ac_cpp_err=
5929 else
5930 ac_cpp_err=yes
5932 if test -z "$ac_cpp_err"; then
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 # Broken: fails on valid input.
5939 continue
5941 rm -f conftest.err conftest.$ac_ext
5943 # OK, works on sane cases. Now check whether non-existent headers
5944 # can be detected and how.
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #include <ac_nonexistent.h>
5952 _ACEOF
5953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } >/dev/null; then
5961 if test -s conftest.err; then
5962 ac_cpp_err=$ac_c_preproc_warn_flag
5963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5964 else
5965 ac_cpp_err=
5967 else
5968 ac_cpp_err=yes
5970 if test -z "$ac_cpp_err"; then
5971 # Broken: success on invalid input.
5972 continue
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 # Passes both tests.
5978 ac_preproc_ok=:
5979 break
5981 rm -f conftest.err conftest.$ac_ext
5983 done
5984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5985 rm -f conftest.err conftest.$ac_ext
5986 if $ac_preproc_ok; then
5987 break
5990 done
5991 ac_cv_prog_CPP=$CPP
5994 CPP=$ac_cv_prog_CPP
5995 else
5996 ac_cv_prog_CPP=$CPP
5998 echo "$as_me:$LINENO: result: $CPP" >&5
5999 echo "${ECHO_T}$CPP" >&6
6000 ac_preproc_ok=false
6001 for ac_c_preproc_warn_flag in '' yes
6003 # Use a header file that comes with gcc, so configuring glibc
6004 # with a fresh cross-compiler works.
6005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6006 # <limits.h> exists even on freestanding compilers.
6007 # On the NeXT, cc -E runs the code through the compiler's parser,
6008 # not just through cpp. "Syntax error" is here to catch this case.
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 #ifdef __STDC__
6016 # include <limits.h>
6017 #else
6018 # include <assert.h>
6019 #endif
6020 Syntax error
6021 _ACEOF
6022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } >/dev/null; then
6030 if test -s conftest.err; then
6031 ac_cpp_err=$ac_c_preproc_warn_flag
6032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033 else
6034 ac_cpp_err=
6036 else
6037 ac_cpp_err=yes
6039 if test -z "$ac_cpp_err"; then
6041 else
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 # Broken: fails on valid input.
6046 continue
6048 rm -f conftest.err conftest.$ac_ext
6050 # OK, works on sane cases. Now check whether non-existent headers
6051 # can be detected and how.
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <ac_nonexistent.h>
6059 _ACEOF
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null; then
6068 if test -s conftest.err; then
6069 ac_cpp_err=$ac_c_preproc_warn_flag
6070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6071 else
6072 ac_cpp_err=
6074 else
6075 ac_cpp_err=yes
6077 if test -z "$ac_cpp_err"; then
6078 # Broken: success on invalid input.
6079 continue
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 # Passes both tests.
6085 ac_preproc_ok=:
6086 break
6088 rm -f conftest.err conftest.$ac_ext
6090 done
6091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6092 rm -f conftest.err conftest.$ac_ext
6093 if $ac_preproc_ok; then
6095 else
6096 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6097 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6098 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6099 See \`config.log' for more details." >&5
6100 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6101 See \`config.log' for more details." >&2;}
6102 { (exit 1); exit 1; }; }; }
6105 ac_ext=c
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6112 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6114 if test "${ac_cv_header_stdc+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h. */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #include <stdlib.h>
6124 #include <stdarg.h>
6125 #include <string.h>
6126 #include <float.h>
6129 main ()
6133 return 0;
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_header_stdc=yes
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 ac_cv_header_stdc=no
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 if test $ac_cv_header_stdc = yes; then
6168 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <string.h>
6177 _ACEOF
6178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6179 $EGREP "memchr" >/dev/null 2>&1; then
6181 else
6182 ac_cv_header_stdc=no
6184 rm -f conftest*
6188 if test $ac_cv_header_stdc = yes; then
6189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 #include <stdlib.h>
6198 _ACEOF
6199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6200 $EGREP "free" >/dev/null 2>&1; then
6202 else
6203 ac_cv_header_stdc=no
6205 rm -f conftest*
6209 if test $ac_cv_header_stdc = yes; then
6210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6211 if test "$cross_compiling" = yes; then
6213 else
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h. */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 #include <ctype.h>
6221 #if ((' ' & 0x0FF) == 0x020)
6222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6224 #else
6225 # define ISLOWER(c) \
6226 (('a' <= (c) && (c) <= 'i') \
6227 || ('j' <= (c) && (c) <= 'r') \
6228 || ('s' <= (c) && (c) <= 'z'))
6229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6230 #endif
6232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6234 main ()
6236 int i;
6237 for (i = 0; i < 256; i++)
6238 if (XOR (islower (i), ISLOWER (i))
6239 || toupper (i) != TOUPPER (i))
6240 exit(2);
6241 exit (0);
6243 _ACEOF
6244 rm -f conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246 (eval $ac_link) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6256 else
6257 echo "$as_me: program exited with status $ac_status" >&5
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 ( exit $ac_status )
6262 ac_cv_header_stdc=no
6264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6268 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6269 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6270 if test $ac_cv_header_stdc = yes; then
6272 cat >>confdefs.h <<\_ACEOF
6273 #define STDC_HEADERS 1
6274 _ACEOF
6278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6288 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6289 inttypes.h stdint.h unistd.h
6291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6292 echo "$as_me:$LINENO: checking for $ac_header" >&5
6293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 $ac_includes_default
6305 #include <$ac_header>
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag"
6317 || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 eval "$as_ac_Header=yes"
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 eval "$as_ac_Header=no"
6336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6341 cat >>confdefs.h <<_ACEOF
6342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6343 _ACEOF
6347 done
6351 for ac_header in dlfcn.h
6353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 echo "$as_me:$LINENO: checking for $ac_header" >&5
6355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 $ac_includes_default
6367 #include <$ac_header>
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 eval "$as_ac_Header=yes"
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6396 eval "$as_ac_Header=no"
6398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6403 cat >>confdefs.h <<_ACEOF
6404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6405 _ACEOF
6409 done
6413 # This can be used to rebuild libtool when needed
6414 LIBTOOL_DEPS="$ltmain"
6416 # Always use our own libtool.
6417 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6443 test -z "$LN_S" && LN_S="ln -s"
6458 if test -n "${ZSH_VERSION+set}" ; then
6459 setopt NO_GLOB_SUBST
6462 echo "$as_me:$LINENO: checking for objdir" >&5
6463 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6464 if test "${lt_cv_objdir+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 rm -f .libs 2>/dev/null
6468 mkdir .libs 2>/dev/null
6469 if test -d .libs; then
6470 lt_cv_objdir=.libs
6471 else
6472 # MS-DOS does not allow filenames that begin with a dot.
6473 lt_cv_objdir=_libs
6475 rmdir .libs 2>/dev/null
6477 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6478 echo "${ECHO_T}$lt_cv_objdir" >&6
6479 objdir=$lt_cv_objdir
6485 cat >>confdefs.h <<_ACEOF
6486 #define LT_OBJDIR "$lt_cv_objdir/"
6487 _ACEOF
6505 case $host_os in
6506 aix3*)
6507 # AIX sometimes has problems with the GCC collect2 program. For some
6508 # reason, if we set the COLLECT_NAMES environment variable, the problems
6509 # vanish in a puff of smoke.
6510 if test "X${COLLECT_NAMES+set}" != Xset; then
6511 COLLECT_NAMES=
6512 export COLLECT_NAMES
6515 esac
6517 # Sed substitution that helps us do robust quoting. It backslashifies
6518 # metacharacters that are still active within double-quoted strings.
6519 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6521 # Same as above, but do not quote variable references.
6522 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6524 # Sed substitution to delay expansion of an escaped shell variable in a
6525 # double_quote_subst'ed string.
6526 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6528 # Sed substitution to delay expansion of an escaped single quote.
6529 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6531 # Sed substitution to avoid accidental globbing in evaled expressions
6532 no_glob_subst='s/\*/\\\*/g'
6534 # Global variables:
6535 ofile=libtool
6536 can_build_shared=yes
6538 # All known linkers require a `.a' archive for static linking (except MSVC,
6539 # which needs '.lib').
6540 libext=a
6542 with_gnu_ld="$lt_cv_prog_gnu_ld"
6544 old_CC="$CC"
6545 old_CFLAGS="$CFLAGS"
6547 # Set sane defaults for various variables
6548 test -z "$CC" && CC=cc
6549 test -z "$LTCC" && LTCC=$CC
6550 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6551 test -z "$LD" && LD=ld
6552 test -z "$ac_objext" && ac_objext=o
6554 for cc_temp in $compiler""; do
6555 case $cc_temp in
6556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6558 \-*) ;;
6559 *) break;;
6560 esac
6561 done
6562 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6565 # Only perform the check for file, if the check method requires it
6566 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6567 case $deplibs_check_method in
6568 file_magic*)
6569 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6570 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6571 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6572 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 case $MAGIC_CMD in
6576 [\\/*] | ?:[\\/]*)
6577 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6580 lt_save_MAGIC_CMD="$MAGIC_CMD"
6581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6582 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6583 for ac_dir in $ac_dummy; do
6584 IFS="$lt_save_ifs"
6585 test -z "$ac_dir" && ac_dir=.
6586 if test -f $ac_dir/${ac_tool_prefix}file; then
6587 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6588 if test -n "$file_magic_test_file"; then
6589 case $deplibs_check_method in
6590 "file_magic "*)
6591 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6594 $EGREP "$file_magic_regex" > /dev/null; then
6596 else
6597 cat <<_LT_EOF 1>&2
6599 *** Warning: the command libtool uses to detect shared libraries,
6600 *** $file_magic_cmd, produces output that libtool cannot recognize.
6601 *** The result is that libtool may fail to recognize shared libraries
6602 *** as such. This will affect the creation of libtool libraries that
6603 *** depend on shared libraries, but programs linked with such libtool
6604 *** libraries will work regardless of this problem. Nevertheless, you
6605 *** may want to report the problem to your system manager and/or to
6606 *** bug-libtool@gnu.org
6608 _LT_EOF
6609 fi ;;
6610 esac
6612 break
6614 done
6615 IFS="$lt_save_ifs"
6616 MAGIC_CMD="$lt_save_MAGIC_CMD"
6618 esac
6621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6622 if test -n "$MAGIC_CMD"; then
6623 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6624 echo "${ECHO_T}$MAGIC_CMD" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6
6634 if test -z "$lt_cv_path_MAGIC_CMD"; then
6635 if test -n "$ac_tool_prefix"; then
6636 echo "$as_me:$LINENO: checking for file" >&5
6637 echo $ECHO_N "checking for file... $ECHO_C" >&6
6638 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641 case $MAGIC_CMD in
6642 [\\/*] | ?:[\\/]*)
6643 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6646 lt_save_MAGIC_CMD="$MAGIC_CMD"
6647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6648 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6649 for ac_dir in $ac_dummy; do
6650 IFS="$lt_save_ifs"
6651 test -z "$ac_dir" && ac_dir=.
6652 if test -f $ac_dir/file; then
6653 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6654 if test -n "$file_magic_test_file"; then
6655 case $deplibs_check_method in
6656 "file_magic "*)
6657 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6659 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6660 $EGREP "$file_magic_regex" > /dev/null; then
6662 else
6663 cat <<_LT_EOF 1>&2
6665 *** Warning: the command libtool uses to detect shared libraries,
6666 *** $file_magic_cmd, produces output that libtool cannot recognize.
6667 *** The result is that libtool may fail to recognize shared libraries
6668 *** as such. This will affect the creation of libtool libraries that
6669 *** depend on shared libraries, but programs linked with such libtool
6670 *** libraries will work regardless of this problem. Nevertheless, you
6671 *** may want to report the problem to your system manager and/or to
6672 *** bug-libtool@gnu.org
6674 _LT_EOF
6675 fi ;;
6676 esac
6678 break
6680 done
6681 IFS="$lt_save_ifs"
6682 MAGIC_CMD="$lt_save_MAGIC_CMD"
6684 esac
6687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6688 if test -n "$MAGIC_CMD"; then
6689 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6690 echo "${ECHO_T}$MAGIC_CMD" >&6
6691 else
6692 echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6
6697 else
6698 MAGIC_CMD=:
6704 esac
6706 # Use C for the default configuration in the libtool script
6708 lt_save_CC="$CC"
6709 ac_ext=c
6710 ac_cpp='$CPP $CPPFLAGS'
6711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6716 # Source file extension for C test sources.
6717 ac_ext=c
6719 # Object file extension for compiled C test sources.
6720 objext=o
6721 objext=$objext
6723 # Code to be used in simple compile tests
6724 lt_simple_compile_test_code="int some_variable = 0;"
6726 # Code to be used in simple link tests
6727 lt_simple_link_test_code='int main(){return(0);}'
6735 # If no C compiler was specified, use CC.
6736 LTCC=${LTCC-"$CC"}
6738 # If no C compiler flags were specified, use CFLAGS.
6739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6741 # Allow CC to be a program name with arguments.
6742 compiler=$CC
6744 # Save the default compiler, since it gets overwritten when the other
6745 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6746 compiler_DEFAULT=$CC
6748 # save warnings/boilerplate of simple test code
6749 ac_outfile=conftest.$ac_objext
6750 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6752 _lt_compiler_boilerplate=`cat conftest.err`
6753 $RM conftest*
6755 ac_outfile=conftest.$ac_objext
6756 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6758 _lt_linker_boilerplate=`cat conftest.err`
6759 $RM conftest*
6762 ## CAVEAT EMPTOR:
6763 ## There is no encapsulation within the following macros, do not change
6764 ## the running order or otherwise move them around unless you know exactly
6765 ## what you are doing...
6766 if test -n "$compiler"; then
6768 lt_prog_compiler_no_builtin_flag=
6770 if test "$GCC" = yes; then
6771 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6773 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6774 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6775 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 lt_cv_prog_compiler_rtti_exceptions=no
6779 ac_outfile=conftest.$ac_objext
6780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6781 lt_compiler_flag="-fno-rtti -fno-exceptions"
6782 # Insert the option either (1) after the last *FLAGS variable, or
6783 # (2) before a word containing "conftest.", or (3) at the end.
6784 # Note that $ac_compile itself does not contain backslashes and begins
6785 # with a dollar sign (not a hyphen), so the echo should work correctly.
6786 # The option is referenced via a variable to avoid confusing sed.
6787 lt_compile=`echo "$ac_compile" | $SED \
6788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6790 -e 's:$: $lt_compiler_flag:'`
6791 (eval echo "\"\$as_me:6791: $lt_compile\"" >&5)
6792 (eval "$lt_compile" 2>conftest.err)
6793 ac_status=$?
6794 cat conftest.err >&5
6795 echo "$as_me:6795: \$? = $ac_status" >&5
6796 if (exit $ac_status) && test -s "$ac_outfile"; then
6797 # The compiler can only warn and ignore the option if not recognized
6798 # So say no if there are warnings other than the usual output.
6799 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6802 lt_cv_prog_compiler_rtti_exceptions=yes
6805 $RM conftest*
6808 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6809 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6811 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6812 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6813 else
6824 lt_prog_compiler_wl=
6825 lt_prog_compiler_pic=
6826 lt_prog_compiler_static=
6828 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6829 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6831 if test "$GCC" = yes; then
6832 lt_prog_compiler_wl='-Wl,'
6833 lt_prog_compiler_static='-static'
6835 case $host_os in
6836 aix*)
6837 # All AIX code is PIC.
6838 if test "$host_cpu" = ia64; then
6839 # AIX 5 now supports IA64 processor
6840 lt_prog_compiler_static='-Bstatic'
6844 amigaos*)
6845 if test "$host_cpu" = m68k; then
6846 # FIXME: we need at least 68020 code to build shared libraries, but
6847 # adding the `-m68020' flag to GCC prevents building anything better,
6848 # like `-m68040'.
6849 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6853 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6854 # PIC is the default for these OSes.
6857 mingw* | cygwin* | pw32* | os2*)
6858 # This hack is so that the source file can tell whether it is being
6859 # built for inclusion in a dll (and should export symbols for example).
6860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6861 # (--disable-auto-import) libraries
6862 lt_prog_compiler_pic='-DDLL_EXPORT'
6865 darwin* | rhapsody*)
6866 # PIC is the default on this platform
6867 # Common symbols not allowed in MH_DYLIB files
6868 lt_prog_compiler_pic='-fno-common'
6871 hpux*)
6872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6873 # not for PA HP-UX.
6874 case $host_cpu in
6875 hppa*64*|ia64*)
6876 # +Z the default
6879 lt_prog_compiler_pic='-fPIC'
6881 esac
6884 interix[3-9]*)
6885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6886 # Instead, we relocate shared libraries at runtime.
6889 msdosdjgpp*)
6890 # Just because we use GCC doesn't mean we suddenly get shared libraries
6891 # on systems that don't support them.
6892 lt_prog_compiler_can_build_shared=no
6893 enable_shared=no
6896 *nto* | *qnx*)
6897 # QNX uses GNU C++, but need to define -shared option too, otherwise
6898 # it will coredump.
6899 lt_prog_compiler_pic='-fPIC -shared'
6902 sysv4*MP*)
6903 if test -d /usr/nec; then
6904 lt_prog_compiler_pic=-Kconform_pic
6909 lt_prog_compiler_pic='-fPIC'
6911 esac
6912 else
6913 # PORTME Check for flag to pass linker flags through the system compiler.
6914 case $host_os in
6915 aix*)
6916 lt_prog_compiler_wl='-Wl,'
6917 if test "$host_cpu" = ia64; then
6918 # AIX 5 now supports IA64 processor
6919 lt_prog_compiler_static='-Bstatic'
6920 else
6921 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6924 darwin*)
6925 # PIC is the default on this platform
6926 # Common symbols not allowed in MH_DYLIB files
6927 case $cc_basename in
6928 xlc*)
6929 lt_prog_compiler_pic='-qnocommon'
6930 lt_prog_compiler_wl='-Wl,'
6932 esac
6935 mingw* | cygwin* | pw32* | os2*)
6936 # This hack is so that the source file can tell whether it is being
6937 # built for inclusion in a dll (and should export symbols for example).
6938 lt_prog_compiler_pic='-DDLL_EXPORT'
6941 hpux9* | hpux10* | hpux11*)
6942 lt_prog_compiler_wl='-Wl,'
6943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6944 # not for PA HP-UX.
6945 case $host_cpu in
6946 hppa*64*|ia64*)
6947 # +Z the default
6950 lt_prog_compiler_pic='+Z'
6952 esac
6953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6954 lt_prog_compiler_static='${wl}-a ${wl}archive'
6957 irix5* | irix6* | nonstopux*)
6958 lt_prog_compiler_wl='-Wl,'
6959 # PIC (with -KPIC) is the default.
6960 lt_prog_compiler_static='-non_shared'
6963 linux* | k*bsd*-gnu)
6964 case $cc_basename in
6965 icc* | ecc*)
6966 lt_prog_compiler_wl='-Wl,'
6967 lt_prog_compiler_pic='-KPIC'
6968 lt_prog_compiler_static='-static'
6970 pgcc* | pgf77* | pgf90* | pgf95*)
6971 # Portland Group compilers (*not* the Pentium gcc compiler,
6972 # which looks to be a dead project)
6973 lt_prog_compiler_wl='-Wl,'
6974 lt_prog_compiler_pic='-fpic'
6975 lt_prog_compiler_static='-Bstatic'
6977 ccc*)
6978 lt_prog_compiler_wl='-Wl,'
6979 # All Alpha code is PIC.
6980 lt_prog_compiler_static='-non_shared'
6983 case `$CC -V 2>&1 | sed 5q` in
6984 *Sun\ C*)
6985 # Sun C 5.9
6986 lt_prog_compiler_pic='-KPIC'
6987 lt_prog_compiler_static='-Bstatic'
6988 lt_prog_compiler_wl='-Wl,'
6990 *Sun\ F*)
6991 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6992 lt_prog_compiler_pic='-KPIC'
6993 lt_prog_compiler_static='-Bstatic'
6994 lt_prog_compiler_wl=''
6996 esac
6998 esac
7001 newsos6)
7002 lt_prog_compiler_pic='-KPIC'
7003 lt_prog_compiler_static='-Bstatic'
7006 *nto* | *qnx*)
7007 # QNX uses GNU C++, but need to define -shared option too, otherwise
7008 # it will coredump.
7009 lt_prog_compiler_pic='-fPIC -shared'
7012 osf3* | osf4* | osf5*)
7013 lt_prog_compiler_wl='-Wl,'
7014 # All OSF/1 code is PIC.
7015 lt_prog_compiler_static='-non_shared'
7018 rdos*)
7019 lt_prog_compiler_static='-non_shared'
7022 solaris*)
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-Bstatic'
7025 case $cc_basename in
7026 f77* | f90* | f95*)
7027 lt_prog_compiler_wl='-Qoption ld ';;
7029 lt_prog_compiler_wl='-Wl,';;
7030 esac
7033 sunos4*)
7034 lt_prog_compiler_wl='-Qoption ld '
7035 lt_prog_compiler_pic='-PIC'
7036 lt_prog_compiler_static='-Bstatic'
7039 sysv4 | sysv4.2uw2* | sysv4.3*)
7040 lt_prog_compiler_wl='-Wl,'
7041 lt_prog_compiler_pic='-KPIC'
7042 lt_prog_compiler_static='-Bstatic'
7045 sysv4*MP*)
7046 if test -d /usr/nec ;then
7047 lt_prog_compiler_pic='-Kconform_pic'
7048 lt_prog_compiler_static='-Bstatic'
7052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7053 lt_prog_compiler_wl='-Wl,'
7054 lt_prog_compiler_pic='-KPIC'
7055 lt_prog_compiler_static='-Bstatic'
7058 unicos*)
7059 lt_prog_compiler_wl='-Wl,'
7060 lt_prog_compiler_can_build_shared=no
7063 uts4*)
7064 lt_prog_compiler_pic='-pic'
7065 lt_prog_compiler_static='-Bstatic'
7069 lt_prog_compiler_can_build_shared=no
7071 esac
7074 case $host_os in
7075 # For platforms which do not support PIC, -DPIC is meaningless:
7076 *djgpp*)
7077 lt_prog_compiler_pic=
7080 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7082 esac
7083 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7084 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7092 # Check to make sure the PIC flag actually works.
7094 if test -n "$lt_prog_compiler_pic"; then
7095 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7096 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7097 if test "${lt_prog_compiler_pic_works+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 lt_prog_compiler_pic_works=no
7101 ac_outfile=conftest.$ac_objext
7102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7103 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7104 # Insert the option either (1) after the last *FLAGS variable, or
7105 # (2) before a word containing "conftest.", or (3) at the end.
7106 # Note that $ac_compile itself does not contain backslashes and begins
7107 # with a dollar sign (not a hyphen), so the echo should work correctly.
7108 # The option is referenced via a variable to avoid confusing sed.
7109 lt_compile=`echo "$ac_compile" | $SED \
7110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7112 -e 's:$: $lt_compiler_flag:'`
7113 (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
7114 (eval "$lt_compile" 2>conftest.err)
7115 ac_status=$?
7116 cat conftest.err >&5
7117 echo "$as_me:7117: \$? = $ac_status" >&5
7118 if (exit $ac_status) && test -s "$ac_outfile"; then
7119 # The compiler can only warn and ignore the option if not recognized
7120 # So say no if there are warnings other than the usual output.
7121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7124 lt_prog_compiler_pic_works=yes
7127 $RM conftest*
7130 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7131 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7133 if test x"$lt_prog_compiler_pic_works" = xyes; then
7134 case $lt_prog_compiler_pic in
7135 "" | " "*) ;;
7136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7137 esac
7138 else
7139 lt_prog_compiler_pic=
7140 lt_prog_compiler_can_build_shared=no
7151 # Check to make sure the static flag actually works.
7153 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7154 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7155 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7156 if test "${lt_prog_compiler_static_works+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 lt_prog_compiler_static_works=no
7160 save_LDFLAGS="$LDFLAGS"
7161 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7162 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7163 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7164 # The linker can only warn and ignore the option if not recognized
7165 # So say no if there are warnings
7166 if test -s conftest.err; then
7167 # Append any errors to the config.log.
7168 cat conftest.err 1>&5
7169 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7171 if diff conftest.exp conftest.er2 >/dev/null; then
7172 lt_prog_compiler_static_works=yes
7174 else
7175 lt_prog_compiler_static_works=yes
7178 $RM conftest*
7179 LDFLAGS="$save_LDFLAGS"
7182 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7183 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7185 if test x"$lt_prog_compiler_static_works" = xyes; then
7187 else
7188 lt_prog_compiler_static=
7197 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7198 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7199 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 lt_cv_prog_compiler_c_o=no
7203 $RM -r conftest 2>/dev/null
7204 mkdir conftest
7205 cd conftest
7206 mkdir out
7207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7209 lt_compiler_flag="-o out/conftest2.$ac_objext"
7210 # Insert the option either (1) after the last *FLAGS variable, or
7211 # (2) before a word containing "conftest.", or (3) at the end.
7212 # Note that $ac_compile itself does not contain backslashes and begins
7213 # with a dollar sign (not a hyphen), so the echo should work correctly.
7214 lt_compile=`echo "$ac_compile" | $SED \
7215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7217 -e 's:$: $lt_compiler_flag:'`
7218 (eval echo "\"\$as_me:7218: $lt_compile\"" >&5)
7219 (eval "$lt_compile" 2>out/conftest.err)
7220 ac_status=$?
7221 cat out/conftest.err >&5
7222 echo "$as_me:7222: \$? = $ac_status" >&5
7223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7224 then
7225 # The compiler can only warn and ignore the option if not recognized
7226 # So say no if there are warnings
7227 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7230 lt_cv_prog_compiler_c_o=yes
7233 chmod u+w . 2>&5
7234 $RM conftest*
7235 # SGI C++ compiler will create directory out/ii_files/ for
7236 # template instantiation
7237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7238 $RM out/* && rmdir out
7239 cd ..
7240 $RM -r conftest
7241 $RM conftest*
7244 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7245 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7252 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7253 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7254 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 lt_cv_prog_compiler_c_o=no
7258 $RM -r conftest 2>/dev/null
7259 mkdir conftest
7260 cd conftest
7261 mkdir out
7262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7264 lt_compiler_flag="-o out/conftest2.$ac_objext"
7265 # Insert the option either (1) after the last *FLAGS variable, or
7266 # (2) before a word containing "conftest.", or (3) at the end.
7267 # Note that $ac_compile itself does not contain backslashes and begins
7268 # with a dollar sign (not a hyphen), so the echo should work correctly.
7269 lt_compile=`echo "$ac_compile" | $SED \
7270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7272 -e 's:$: $lt_compiler_flag:'`
7273 (eval echo "\"\$as_me:7273: $lt_compile\"" >&5)
7274 (eval "$lt_compile" 2>out/conftest.err)
7275 ac_status=$?
7276 cat out/conftest.err >&5
7277 echo "$as_me:7277: \$? = $ac_status" >&5
7278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7279 then
7280 # The compiler can only warn and ignore the option if not recognized
7281 # So say no if there are warnings
7282 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7285 lt_cv_prog_compiler_c_o=yes
7288 chmod u+w . 2>&5
7289 $RM conftest*
7290 # SGI C++ compiler will create directory out/ii_files/ for
7291 # template instantiation
7292 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7293 $RM out/* && rmdir out
7294 cd ..
7295 $RM -r conftest
7296 $RM conftest*
7299 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7300 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7305 hard_links="nottested"
7306 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7307 # do not overwrite the value of need_locks provided by the user
7308 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7309 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7310 hard_links=yes
7311 $RM conftest*
7312 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7313 touch conftest.a
7314 ln conftest.a conftest.b 2>&5 || hard_links=no
7315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7316 echo "$as_me:$LINENO: result: $hard_links" >&5
7317 echo "${ECHO_T}$hard_links" >&6
7318 if test "$hard_links" = no; then
7319 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7320 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7321 need_locks=warn
7323 else
7324 need_locks=no
7332 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7335 runpath_var=
7336 allow_undefined_flag=
7337 always_export_symbols=no
7338 archive_cmds=
7339 archive_expsym_cmds=
7340 compiler_needs_object=no
7341 enable_shared_with_static_runtimes=no
7342 export_dynamic_flag_spec=
7343 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7344 hardcode_automatic=no
7345 hardcode_direct=no
7346 hardcode_direct_absolute=no
7347 hardcode_libdir_flag_spec=
7348 hardcode_libdir_flag_spec_ld=
7349 hardcode_libdir_separator=
7350 hardcode_minus_L=no
7351 hardcode_shlibpath_var=unsupported
7352 inherit_rpath=no
7353 link_all_deplibs=unknown
7354 module_cmds=
7355 module_expsym_cmds=
7356 old_archive_from_new_cmds=
7357 old_archive_from_expsyms_cmds=
7358 thread_safe_flag_spec=
7359 whole_archive_flag_spec=
7360 # include_expsyms should be a list of space-separated symbols to be *always*
7361 # included in the symbol list
7362 include_expsyms=
7363 # exclude_expsyms can be an extended regexp of symbols to exclude
7364 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7365 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7366 # as well as any symbol that contains `d'.
7367 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7369 # platforms (ab)use it in PIC code, but their linkers get confused if
7370 # the symbol is explicitly referenced. Since portable code cannot
7371 # rely on this symbol name, it's probably fine to never include it in
7372 # preloaded symbol tables.
7373 extract_expsyms_cmds=
7375 case $host_os in
7376 cygwin* | mingw* | pw32*)
7377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7378 # When not using gcc, we currently assume that we are using
7379 # Microsoft Visual C++.
7380 if test "$GCC" != yes; then
7381 with_gnu_ld=no
7384 interix*)
7385 # we just hope/assume this is gcc and not c89 (= MSVC++)
7386 with_gnu_ld=yes
7388 openbsd*)
7389 with_gnu_ld=no
7391 esac
7393 ld_shlibs=yes
7394 if test "$with_gnu_ld" = yes; then
7395 # If archive_cmds runs LD, not CC, wlarc should be empty
7396 wlarc='${wl}'
7398 # Set some defaults for GNU ld with shared library support. These
7399 # are reset later if shared libraries are not supported. Putting them
7400 # here allows them to be overridden if necessary.
7401 runpath_var=LD_RUN_PATH
7402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7403 export_dynamic_flag_spec='${wl}--export-dynamic'
7404 # ancient GNU ld didn't support --whole-archive et. al.
7405 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7406 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7407 else
7408 whole_archive_flag_spec=
7410 supports_anon_versioning=no
7411 case `$LD -v 2>&1` in
7412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7415 *\ 2.11.*) ;; # other 2.11 versions
7416 *) supports_anon_versioning=yes ;;
7417 esac
7419 # See if GNU ld supports shared libraries.
7420 case $host_os in
7421 aix[3-9]*)
7422 # On AIX/PPC, the GNU linker is very broken
7423 if test "$host_cpu" != ia64; then
7424 ld_shlibs=no
7425 cat <<_LT_EOF 1>&2
7427 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7428 *** to be unable to reliably create shared libraries on AIX.
7429 *** Therefore, libtool is disabling shared libraries support. If you
7430 *** really care for shared libraries, you may want to modify your PATH
7431 *** so that a non-GNU linker is found, and then restart.
7433 _LT_EOF
7437 amigaos*)
7438 if test "$host_cpu" = m68k; then
7439 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)'
7440 hardcode_libdir_flag_spec='-L$libdir'
7441 hardcode_minus_L=yes
7444 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7445 # that the semantics of dynamic libraries on AmigaOS, at least up
7446 # to version 4, is to share data among multiple programs linked
7447 # with the same dynamic library. Since this doesn't match the
7448 # behavior of shared libraries on other platforms, we can't use
7449 # them.
7450 ld_shlibs=no
7453 beos*)
7454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7455 allow_undefined_flag=unsupported
7456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7457 # support --undefined. This deserves some investigation. FIXME
7458 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7459 else
7460 ld_shlibs=no
7464 cygwin* | mingw* | pw32*)
7465 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7466 # as there is no search path for DLLs.
7467 hardcode_libdir_flag_spec='-L$libdir'
7468 allow_undefined_flag=unsupported
7469 always_export_symbols=no
7470 enable_shared_with_static_runtimes=yes
7471 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7475 # If the export-symbols file already is a .def file (1st line
7476 # is EXPORTS), use it as is; otherwise, prepend...
7477 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7478 cp $export_symbols $output_objdir/$soname.def;
7479 else
7480 echo EXPORTS > $output_objdir/$soname.def;
7481 cat $export_symbols >> $output_objdir/$soname.def;
7483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7484 else
7485 ld_shlibs=no
7489 interix[3-9]*)
7490 hardcode_direct=no
7491 hardcode_shlibpath_var=no
7492 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7493 export_dynamic_flag_spec='${wl}-E'
7494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7495 # Instead, shared libraries are loaded at an image base (0x10000000 by
7496 # default) and relocated if they conflict, which is a slow very memory
7497 # consuming and fragmenting process. To avoid this, we pick a random,
7498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7501 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7504 gnu* | linux* | tpf* | k*bsd*-gnu)
7505 tmp_diet=no
7506 if test "$host_os" = linux-dietlibc; then
7507 case $cc_basename in
7508 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7509 esac
7511 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7512 && test "$tmp_diet" = no
7513 then
7514 tmp_addflag=
7515 case $cc_basename,$host_cpu in
7516 pgcc*) # Portland Group C compiler
7517 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7518 tmp_addflag=' $pic_flag'
7520 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7521 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7522 tmp_addflag=' $pic_flag -Mnomain' ;;
7523 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7524 tmp_addflag=' -i_dynamic' ;;
7525 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7526 tmp_addflag=' -i_dynamic -nofor_main' ;;
7527 ifc* | ifort*) # Intel Fortran compiler
7528 tmp_addflag=' -nofor_main' ;;
7529 esac
7530 case `$CC -V 2>&1 | sed 5q` in
7531 *Sun\ C*) # Sun C 5.9
7532 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7533 compiler_needs_object=yes
7534 tmp_sharedflag='-G' ;;
7535 *Sun\ F*) # Sun Fortran 8.3
7536 tmp_sharedflag='-G' ;;
7538 tmp_sharedflag='-shared' ;;
7539 esac
7540 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7542 if test "x$supports_anon_versioning" = xyes; then
7543 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7545 echo "local: *; };" >> $output_objdir/$libname.ver~
7546 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7548 else
7549 ld_shlibs=no
7553 netbsd*)
7554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7555 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7556 wlarc=
7557 else
7558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7563 solaris*)
7564 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7565 ld_shlibs=no
7566 cat <<_LT_EOF 1>&2
7568 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7569 *** create shared libraries on Solaris systems. Therefore, libtool
7570 *** is disabling shared libraries support. We urge you to upgrade GNU
7571 *** binutils to release 2.9.1 or newer. Another option is to modify
7572 *** your PATH or compiler configuration so that the native linker is
7573 *** used, and then restart.
7575 _LT_EOF
7576 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7579 else
7580 ld_shlibs=no
7584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7585 case `$LD -v 2>&1` in
7586 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7587 ld_shlibs=no
7588 cat <<_LT_EOF 1>&2
7590 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7591 *** reliably create shared libraries on SCO systems. Therefore, libtool
7592 *** is disabling shared libraries support. We urge you to upgrade GNU
7593 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7594 *** your PATH or compiler configuration so that the native linker is
7595 *** used, and then restart.
7597 _LT_EOF
7600 # For security reasons, it is highly recommended that you always
7601 # use absolute paths for naming shared libraries, and exclude the
7602 # DT_RUNPATH tag from executables and libraries. But doing so
7603 # requires that you compile everything twice, which is a pain.
7604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7608 else
7609 ld_shlibs=no
7612 esac
7615 sunos4*)
7616 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7617 wlarc=
7618 hardcode_direct=yes
7619 hardcode_shlibpath_var=no
7623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7626 else
7627 ld_shlibs=no
7630 esac
7632 if test "$ld_shlibs" = no; then
7633 runpath_var=
7634 hardcode_libdir_flag_spec=
7635 export_dynamic_flag_spec=
7636 whole_archive_flag_spec=
7638 else
7639 # PORTME fill in a description of your system's linker (not GNU ld)
7640 case $host_os in
7641 aix3*)
7642 allow_undefined_flag=unsupported
7643 always_export_symbols=yes
7644 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'
7645 # Note: this linker hardcodes the directories in LIBPATH if there
7646 # are no directories specified by -L.
7647 hardcode_minus_L=yes
7648 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7649 # Neither direct hardcoding nor static linking is supported with a
7650 # broken collect2.
7651 hardcode_direct=unsupported
7655 aix[4-9]*)
7656 if test "$host_cpu" = ia64; then
7657 # On IA64, the linker does run time linking by default, so we don't
7658 # have to do anything special.
7659 aix_use_runtimelinking=no
7660 exp_sym_flag='-Bexport'
7661 no_entry_flag=""
7662 else
7663 # If we're using GNU nm, then we don't want the "-C" option.
7664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7666 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7667 else
7668 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7670 aix_use_runtimelinking=no
7672 # Test if we are trying to use run time linking or normal
7673 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7674 # need to do runtime linking.
7675 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7676 for ld_flag in $LDFLAGS; do
7677 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7678 aix_use_runtimelinking=yes
7679 break
7681 done
7683 esac
7685 exp_sym_flag='-bexport'
7686 no_entry_flag='-bnoentry'
7689 # When large executables or shared objects are built, AIX ld can
7690 # have problems creating the table of contents. If linking a library
7691 # or program results in "error TOC overflow" add -mminimal-toc to
7692 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7693 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7695 archive_cmds=''
7696 hardcode_direct=yes
7697 hardcode_direct_absolute=yes
7698 hardcode_libdir_separator=':'
7699 link_all_deplibs=yes
7700 file_list_spec='${wl}-f,'
7702 if test "$GCC" = yes; then
7703 case $host_os in aix4.[012]|aix4.[012].*)
7704 # We only want to do this on AIX 4.2 and lower, the check
7705 # below for broken collect2 doesn't work under 4.3+
7706 collect2name=`${CC} -print-prog-name=collect2`
7707 if test -f "$collect2name" &&
7708 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7709 then
7710 # We have reworked collect2
7712 else
7713 # We have old collect2
7714 hardcode_direct=unsupported
7715 # It fails to find uninstalled libraries when the uninstalled
7716 # path is not listed in the libpath. Setting hardcode_minus_L
7717 # to unsupported forces relinking
7718 hardcode_minus_L=yes
7719 hardcode_libdir_flag_spec='-L$libdir'
7720 hardcode_libdir_separator=
7723 esac
7724 shared_flag='-shared'
7725 if test "$aix_use_runtimelinking" = yes; then
7726 shared_flag="$shared_flag "'${wl}-G'
7728 else
7729 # not using gcc
7730 if test "$host_cpu" = ia64; then
7731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7732 # chokes on -Wl,-G. The following line is correct:
7733 shared_flag='-G'
7734 else
7735 if test "$aix_use_runtimelinking" = yes; then
7736 shared_flag='${wl}-G'
7737 else
7738 shared_flag='${wl}-bM:SRE'
7743 # It seems that -bexpall does not export symbols beginning with
7744 # underscore (_), so it is better to generate a list of symbols to export.
7745 always_export_symbols=yes
7746 if test "$aix_use_runtimelinking" = yes; then
7747 # Warning - without using the other runtime loading flags (-brtl),
7748 # -berok will link without error, but may produce a broken library.
7749 allow_undefined_flag='-berok'
7750 # Determine the default libpath from the value encoded in an
7751 # empty executable.
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7760 main ()
7764 return 0;
7766 _ACEOF
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -z "$ac_c_werror_flag"
7777 || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest$ac_exeext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7790 lt_aix_libpath_sed='
7791 /Import File Strings/,/^$/ {
7792 /^0/ {
7793 s/^0 *\(.*\)$/\1/
7797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7798 # Check for a 64-bit object if we didn't find anything.
7799 if test -z "$aix_libpath"; then
7800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7802 else
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7807 rm -f conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7812 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7813 else
7814 if test "$host_cpu" = ia64; then
7815 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7816 allow_undefined_flag="-z nodefs"
7817 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7818 else
7819 # Determine the default libpath from the value encoded in an
7820 # empty executable.
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7829 main ()
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag"
7846 || test ! -s conftest.err'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; } &&
7852 { ac_try='test -s conftest$ac_exeext'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 (eval $ac_try) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7859 lt_aix_libpath_sed='
7860 /Import File Strings/,/^$/ {
7861 /^0/ {
7862 s/^0 *\(.*\)$/\1/
7866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7867 # Check for a 64-bit object if we didn't find anything.
7868 if test -z "$aix_libpath"; then
7869 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7876 rm -f conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7881 # Warning - without using the other run time loading flags,
7882 # -berok will link without error, but may produce a broken library.
7883 no_undefined_flag=' ${wl}-bernotok'
7884 allow_undefined_flag=' ${wl}-berok'
7885 # Exported symbols can be pulled into shared objects from archives
7886 whole_archive_flag_spec='$convenience'
7887 archive_cmds_need_lc=yes
7888 # This is similar to how AIX traditionally builds its shared libraries.
7889 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7894 amigaos*)
7895 if test "$host_cpu" = m68k; then
7896 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)'
7897 hardcode_libdir_flag_spec='-L$libdir'
7898 hardcode_minus_L=yes
7900 # see comment about different semantics on the GNU ld section
7901 ld_shlibs=no
7904 bsdi[45]*)
7905 export_dynamic_flag_spec=-rdynamic
7908 cygwin* | mingw* | pw32*)
7909 # When not using gcc, we currently assume that we are using
7910 # Microsoft Visual C++.
7911 # hardcode_libdir_flag_spec is actually meaningless, as there is
7912 # no search path for DLLs.
7913 hardcode_libdir_flag_spec=' '
7914 allow_undefined_flag=unsupported
7915 # Tell ltmain to make .lib files, not .a files.
7916 libext=lib
7917 # Tell ltmain to make .dll files, not .so files.
7918 shrext_cmds=".dll"
7919 # FIXME: Setting linknames here is a bad hack.
7920 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7921 # The linker will automatically build a .lib file if we build a DLL.
7922 old_archive_from_new_cmds='true'
7923 # FIXME: Should let the user specify the lib program.
7924 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7925 fix_srcfile_path='`cygpath -w "$srcfile"`'
7926 enable_shared_with_static_runtimes=yes
7929 darwin* | rhapsody*)
7930 case $host_os in
7931 rhapsody* | darwin1.[012])
7932 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7934 *) # Darwin 1.3 on
7935 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7936 10.[012])
7937 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7939 10.*)
7940 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7942 esac
7944 esac
7945 archive_cmds_need_lc=no
7946 hardcode_direct=no
7947 hardcode_automatic=yes
7948 hardcode_shlibpath_var=unsupported
7949 whole_archive_flag_spec=''
7950 link_all_deplibs=yes
7951 if test "$GCC" = yes ; then
7952 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955 lt_cv_apple_cc_single_mod=no
7956 if test -z "${LT_MULTI_MODULE}"; then
7957 # By default we will add the -single_module flag. You can override
7958 # by either setting the environment variable LT_MULTI_MODULE
7959 # non-empty at configure time, or by adding -multi-module to the
7960 # link flags.
7961 echo "int foo(void){return 1;}" > conftest.c
7962 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7963 -dynamiclib ${wl}-single_module conftest.c
7964 if test -f libconftest.dylib; then
7965 lt_cv_apple_cc_single_mod=yes
7966 rm libconftest.dylib
7968 rm conftest.$ac_ext
7972 output_verbose_link_cmd=echo
7973 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7974 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7975 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7976 else
7977 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7978 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7980 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7981 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7982 else
7983 case $cc_basename in
7984 xlc*)
7985 output_verbose_link_cmd=echo
7986 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7987 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7989 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7990 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7993 ld_shlibs=no
7995 esac
7999 dgux*)
8000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8001 hardcode_libdir_flag_spec='-L$libdir'
8002 hardcode_shlibpath_var=no
8005 freebsd1*)
8006 ld_shlibs=no
8009 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8010 # support. Future versions do this automatically, but an explicit c++rt0.o
8011 # does not break anything, and helps significantly (at the cost of a little
8012 # extra space).
8013 freebsd2.2*)
8014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8015 hardcode_libdir_flag_spec='-R$libdir'
8016 hardcode_direct=yes
8017 hardcode_shlibpath_var=no
8020 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8021 freebsd2*)
8022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8023 hardcode_direct=yes
8024 hardcode_minus_L=yes
8025 hardcode_shlibpath_var=no
8028 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8029 freebsd* | dragonfly*)
8030 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8031 hardcode_libdir_flag_spec='-R$libdir'
8032 hardcode_direct=yes
8033 hardcode_shlibpath_var=no
8036 hpux9*)
8037 if test "$GCC" = yes; then
8038 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8039 else
8040 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'
8042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8043 hardcode_libdir_separator=:
8044 hardcode_direct=yes
8046 # hardcode_minus_L: Not really in the search PATH,
8047 # but as the default location of the library.
8048 hardcode_minus_L=yes
8049 export_dynamic_flag_spec='${wl}-E'
8052 hpux10*)
8053 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8054 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8055 else
8056 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8058 if test "$with_gnu_ld" = no; then
8059 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8060 hardcode_libdir_flag_spec_ld='+b $libdir'
8061 hardcode_libdir_separator=:
8062 hardcode_direct=yes
8063 hardcode_direct_absolute=yes
8064 export_dynamic_flag_spec='${wl}-E'
8065 # hardcode_minus_L: Not really in the search PATH,
8066 # but as the default location of the library.
8067 hardcode_minus_L=yes
8071 hpux11*)
8072 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8073 case $host_cpu in
8074 hppa*64*)
8075 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8077 ia64*)
8078 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8081 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8083 esac
8084 else
8085 case $host_cpu in
8086 hppa*64*)
8087 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8089 ia64*)
8090 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8093 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8095 esac
8097 if test "$with_gnu_ld" = no; then
8098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8099 hardcode_libdir_separator=:
8101 case $host_cpu in
8102 hppa*64*|ia64*)
8103 hardcode_direct=no
8104 hardcode_shlibpath_var=no
8107 hardcode_direct=yes
8108 hardcode_direct_absolute=yes
8109 export_dynamic_flag_spec='${wl}-E'
8111 # hardcode_minus_L: Not really in the search PATH,
8112 # but as the default location of the library.
8113 hardcode_minus_L=yes
8115 esac
8119 irix5* | irix6* | nonstopux*)
8120 if test "$GCC" = yes; then
8121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8122 # Try to use the -exported_symbol ld option, if it does not
8123 # work, assume that -exports_file does not work either and
8124 # implicitly export all symbols.
8125 save_LDFLAGS="$LDFLAGS"
8126 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8127 cat >conftest.$ac_ext <<_ACEOF
8128 int foo(void) {}
8129 _ACEOF
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132 (eval $ac_link) 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest$ac_exeext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8159 rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 LDFLAGS="$save_LDFLAGS"
8162 else
8163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8166 archive_cmds_need_lc='no'
8167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8168 hardcode_libdir_separator=:
8169 inherit_rpath=yes
8170 link_all_deplibs=yes
8173 netbsd*)
8174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8176 else
8177 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8179 hardcode_libdir_flag_spec='-R$libdir'
8180 hardcode_direct=yes
8181 hardcode_shlibpath_var=no
8184 newsos6)
8185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8186 hardcode_direct=yes
8187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8188 hardcode_libdir_separator=:
8189 hardcode_shlibpath_var=no
8192 *nto* | *qnx*)
8195 openbsd*)
8196 hardcode_direct=yes
8197 hardcode_shlibpath_var=no
8198 hardcode_direct_absolute=yes
8199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8201 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8203 export_dynamic_flag_spec='${wl}-E'
8204 else
8205 case $host_os in
8206 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8208 hardcode_libdir_flag_spec='-R$libdir'
8211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8212 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8214 esac
8218 os2*)
8219 hardcode_libdir_flag_spec='-L$libdir'
8220 hardcode_minus_L=yes
8221 allow_undefined_flag=unsupported
8222 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'
8223 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8226 osf3*)
8227 if test "$GCC" = yes; then
8228 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8229 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8230 else
8231 allow_undefined_flag=' -expect_unresolved \*'
8232 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8234 archive_cmds_need_lc='no'
8235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8236 hardcode_libdir_separator=:
8239 osf4* | osf5*) # as osf3* with the addition of -msym flag
8240 if test "$GCC" = yes; then
8241 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8242 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8244 else
8245 allow_undefined_flag=' -expect_unresolved \*'
8246 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8247 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8248 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8250 # Both c and cxx compiler support -rpath directly
8251 hardcode_libdir_flag_spec='-rpath $libdir'
8253 archive_cmds_need_lc='no'
8254 hardcode_libdir_separator=:
8257 solaris*)
8258 no_undefined_flag=' -z defs'
8259 if test "$GCC" = yes; then
8260 wlarc='${wl}'
8261 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8263 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8264 else
8265 case `$CC -V 2>&1` in
8266 *"Compilers 5.0"*)
8267 wlarc=''
8268 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8269 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8270 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8273 wlarc='${wl}'
8274 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8276 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8278 esac
8280 hardcode_libdir_flag_spec='-R$libdir'
8281 hardcode_shlibpath_var=no
8282 case $host_os in
8283 solaris2.[0-5] | solaris2.[0-5].*) ;;
8285 # The compiler driver will combine and reorder linker options,
8286 # but understands `-z linker_flag'. GCC discards it without `$wl',
8287 # but is careful enough not to reorder.
8288 # Supported since Solaris 2.6 (maybe 2.5.1?)
8289 if test "$GCC" = yes; then
8290 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8291 else
8292 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8295 esac
8296 link_all_deplibs=yes
8299 sunos4*)
8300 if test "x$host_vendor" = xsequent; then
8301 # Use $CC to link under sequent, because it throws in some extra .o
8302 # files that make .init and .fini sections work.
8303 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8304 else
8305 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8307 hardcode_libdir_flag_spec='-L$libdir'
8308 hardcode_direct=yes
8309 hardcode_minus_L=yes
8310 hardcode_shlibpath_var=no
8313 sysv4)
8314 case $host_vendor in
8315 sni)
8316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317 hardcode_direct=yes # is this really true???
8319 siemens)
8320 ## LD is ld it makes a PLAMLIB
8321 ## CC just makes a GrossModule.
8322 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8323 reload_cmds='$CC -r -o $output$reload_objs'
8324 hardcode_direct=no
8326 motorola)
8327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8328 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8330 esac
8331 runpath_var='LD_RUN_PATH'
8332 hardcode_shlibpath_var=no
8335 sysv4.3*)
8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_shlibpath_var=no
8338 export_dynamic_flag_spec='-Bexport'
8341 sysv4*MP*)
8342 if test -d /usr/nec; then
8343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8344 hardcode_shlibpath_var=no
8345 runpath_var=LD_RUN_PATH
8346 hardcode_runpath_var=yes
8347 ld_shlibs=yes
8351 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8352 no_undefined_flag='${wl}-z,text'
8353 archive_cmds_need_lc=no
8354 hardcode_shlibpath_var=no
8355 runpath_var='LD_RUN_PATH'
8357 if test "$GCC" = yes; then
8358 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8359 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8360 else
8361 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8362 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8366 sysv5* | sco3.2v5* | sco5v6*)
8367 # Note: We can NOT use -z defs as we might desire, because we do not
8368 # link with -lc, and that would cause any symbols used from libc to
8369 # always be unresolved, which means just about no library would
8370 # ever link correctly. If we're not using GNU ld we use -z text
8371 # though, which does catch some bad symbols but isn't as heavy-handed
8372 # as -z defs.
8373 no_undefined_flag='${wl}-z,text'
8374 allow_undefined_flag='${wl}-z,nodefs'
8375 archive_cmds_need_lc=no
8376 hardcode_shlibpath_var=no
8377 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8378 hardcode_libdir_separator=':'
8379 link_all_deplibs=yes
8380 export_dynamic_flag_spec='${wl}-Bexport'
8381 runpath_var='LD_RUN_PATH'
8383 if test "$GCC" = yes; then
8384 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8385 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8386 else
8387 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8388 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8392 uts4*)
8393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394 hardcode_libdir_flag_spec='-L$libdir'
8395 hardcode_shlibpath_var=no
8399 ld_shlibs=no
8401 esac
8403 if test x$host_vendor = xsni; then
8404 case $host in
8405 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8406 export_dynamic_flag_spec='${wl}-Blargedynsym'
8408 esac
8412 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8413 echo "${ECHO_T}$ld_shlibs" >&6
8414 test "$ld_shlibs" = no && can_build_shared=no
8416 with_gnu_ld=$with_gnu_ld
8433 # Do we need to explicitly link libc?
8435 case "x$archive_cmds_need_lc" in
8436 x|xyes)
8437 # Assume -lc should be added
8438 archive_cmds_need_lc=yes
8440 if test "$enable_shared" = yes && test "$GCC" = yes; then
8441 case $archive_cmds in
8442 *'~'*)
8443 # FIXME: we may have to deal with multi-command sequences.
8445 '$CC '*)
8446 # Test whether the compiler implicitly links with -lc since on some
8447 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8448 # to ld, don't add -lc before -lgcc.
8449 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8450 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8451 $RM conftest*
8452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455 (eval $ac_compile) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } 2>conftest.err; then
8459 soname=conftest
8460 lib=conftest
8461 libobjs=conftest.$ac_objext
8462 deplibs=
8463 wl=$lt_prog_compiler_wl
8464 pic_flag=$lt_prog_compiler_pic
8465 compiler_flags=-v
8466 linker_flags=-v
8467 verstring=
8468 output_objdir=.
8469 libname=conftest
8470 lt_save_allow_undefined_flag=$allow_undefined_flag
8471 allow_undefined_flag=
8472 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8473 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }
8477 then
8478 archive_cmds_need_lc=no
8479 else
8480 archive_cmds_need_lc=yes
8482 allow_undefined_flag=$lt_save_allow_undefined_flag
8483 else
8484 cat conftest.err 1>&5
8486 $RM conftest*
8487 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8488 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8490 esac
8493 esac
8651 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8653 withGCC=$GCC
8654 if test "$withGCC" = yes; then
8655 case $host_os in
8656 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8657 *) lt_awk_arg="/^libraries:/" ;;
8658 esac
8659 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8660 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8661 # if the path contains ";" then we assume it to be the separator
8662 # otherwise default to the standard path separator (i.e. ":") - it is
8663 # assumed that no part of a normal pathname contains ";" but that should
8664 # okay in the real world where ";" in dirpaths is itself problematic.
8665 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8666 else
8667 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8669 # Ok, now we have the path, separated by spaces, we can step through it
8670 # and add multilib dir if necessary.
8671 lt_tmp_lt_search_path_spec=
8672 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8673 for lt_sys_path in $lt_search_path_spec; do
8674 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8675 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8676 else
8677 test -d "$lt_sys_path" && \
8678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8680 done
8681 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8682 BEGIN {RS=" "; FS="/|\n";} {
8683 lt_foo="";
8684 lt_count=0;
8685 for (lt_i = NF; lt_i > 0; lt_i--) {
8686 if ($lt_i != "" && $lt_i != ".") {
8687 if ($lt_i == "..") {
8688 lt_count++;
8689 } else {
8690 if (lt_count == 0) {
8691 lt_foo="/" $lt_i lt_foo;
8692 } else {
8693 lt_count--;
8698 if (lt_foo != "") { lt_freq[lt_foo]++; }
8699 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8701 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8702 else
8703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8705 library_names_spec=
8706 libname_spec='lib$name'
8707 soname_spec=
8708 shrext_cmds=".so"
8709 postinstall_cmds=
8710 postuninstall_cmds=
8711 finish_cmds=
8712 finish_eval=
8713 shlibpath_var=
8714 shlibpath_overrides_runpath=unknown
8715 version_type=none
8716 dynamic_linker="$host_os ld.so"
8717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8718 need_lib_prefix=unknown
8719 hardcode_into_libs=no
8721 # when you set need_version to no, make sure it does not cause -set_version
8722 # flags to be left without arguments
8723 need_version=unknown
8725 case $host_os in
8726 aix3*)
8727 version_type=linux
8728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8729 shlibpath_var=LIBPATH
8731 # AIX 3 has no versioning support, so we append a major version to the name.
8732 soname_spec='${libname}${release}${shared_ext}$major'
8735 aix[4-9]*)
8736 version_type=linux
8737 need_lib_prefix=no
8738 need_version=no
8739 hardcode_into_libs=yes
8740 if test "$host_cpu" = ia64; then
8741 # AIX 5 supports IA64
8742 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8743 shlibpath_var=LD_LIBRARY_PATH
8744 else
8745 # With GCC up to 2.95.x, collect2 would create an import file
8746 # for dependence libraries. The import file would start with
8747 # the line `#! .'. This would cause the generated library to
8748 # depend on `.', always an invalid library. This was fixed in
8749 # development snapshots of GCC prior to 3.0.
8750 case $host_os in
8751 aix4 | aix4.[01] | aix4.[01].*)
8752 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8753 echo ' yes '
8754 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8756 else
8757 can_build_shared=no
8760 esac
8761 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8762 # soname into executable. Probably we can add versioning support to
8763 # collect2, so additional links can be useful in future.
8764 if test "$aix_use_runtimelinking" = yes; then
8765 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8766 # instead of lib<name>.a to let people know that these are not
8767 # typical AIX shared libraries.
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8769 else
8770 # We preserve .a as extension for shared libraries through AIX4.2
8771 # and later when we are not doing run time linking.
8772 library_names_spec='${libname}${release}.a $libname.a'
8773 soname_spec='${libname}${release}${shared_ext}$major'
8775 shlibpath_var=LIBPATH
8779 amigaos*)
8780 if test "$host_cpu" = m68k; then
8781 library_names_spec='$libname.ixlibrary $libname.a'
8782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8783 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'
8784 else
8785 dynamic_linker=no
8789 beos*)
8790 library_names_spec='${libname}${shared_ext}'
8791 dynamic_linker="$host_os ld.so"
8792 shlibpath_var=LIBRARY_PATH
8795 bsdi[45]*)
8796 version_type=linux
8797 need_version=no
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8801 shlibpath_var=LD_LIBRARY_PATH
8802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8804 # the default ld.so.conf also contains /usr/contrib/lib and
8805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8806 # libtool to hard-code these into programs
8809 cygwin* | mingw* | pw32*)
8810 version_type=windows
8811 shrext_cmds=".dll"
8812 need_version=no
8813 need_lib_prefix=no
8815 case $withGCC,$host_os in
8816 yes,cygwin* | yes,mingw* | yes,pw32*)
8817 library_names_spec='$libname.dll.a'
8818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8819 postinstall_cmds='base_file=`basename \${file}`~
8820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8821 dldir=$destdir/`dirname \$dlpath`~
8822 test -d \$dldir || mkdir -p \$dldir~
8823 $install_prog $dir/$dlname \$dldir/$dlname~
8824 chmod a+x \$dldir/$dlname~
8825 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8826 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8829 dlpath=$dir/\$dldll~
8830 $RM \$dlpath'
8831 shlibpath_overrides_runpath=yes
8833 case $host_os in
8834 cygwin*)
8835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8839 mingw*)
8840 # MinGW DLLs use traditional 'lib' prefix
8841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8842 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8843 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8844 # It is most probably a Windows format PATH printed by
8845 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8846 # path with ; separators, and with drive letters. We can handle the
8847 # drive letters (cygwin fileutils understands them), so leave them,
8848 # especially as we might pass files found there to a mingw objdump,
8849 # which wouldn't understand a cygwinified path. Ahh.
8850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851 else
8852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8855 pw32*)
8856 # pw32 DLLs use 'pw' prefix rather than 'lib'
8857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8859 esac
8863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8865 esac
8866 dynamic_linker='Win32 ld.exe'
8867 # FIXME: first we should search . and the directory the executable is in
8868 shlibpath_var=PATH
8871 darwin* | rhapsody*)
8872 dynamic_linker="$host_os dyld"
8873 version_type=darwin
8874 need_lib_prefix=no
8875 need_version=no
8876 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8877 soname_spec='${libname}${release}${major}$shared_ext'
8878 shlibpath_overrides_runpath=yes
8879 shlibpath_var=DYLD_LIBRARY_PATH
8880 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8882 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8886 dgux*)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 shlibpath_var=LD_LIBRARY_PATH
8895 freebsd1*)
8896 dynamic_linker=no
8899 freebsd* | dragonfly*)
8900 # DragonFly does not have aout. When/if they implement a new
8901 # versioning mechanism, adjust this.
8902 if test -x /usr/bin/objformat; then
8903 objformat=`/usr/bin/objformat`
8904 else
8905 case $host_os in
8906 freebsd[123]*) objformat=aout ;;
8907 *) objformat=elf ;;
8908 esac
8910 version_type=freebsd-$objformat
8911 case $version_type in
8912 freebsd-elf*)
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 need_version=no
8915 need_lib_prefix=no
8917 freebsd-*)
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8919 need_version=yes
8921 esac
8922 shlibpath_var=LD_LIBRARY_PATH
8923 case $host_os in
8924 freebsd2*)
8925 shlibpath_overrides_runpath=yes
8927 freebsd3.[01]* | freebsdelf3.[01]*)
8928 shlibpath_overrides_runpath=yes
8929 hardcode_into_libs=yes
8931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8933 shlibpath_overrides_runpath=no
8934 hardcode_into_libs=yes
8936 *) # from 4.6 on, and DragonFly
8937 shlibpath_overrides_runpath=yes
8938 hardcode_into_libs=yes
8940 esac
8943 gnu*)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 hardcode_into_libs=yes
8953 hpux9* | hpux10* | hpux11*)
8954 # Give a soname corresponding to the major version so that dld.sl refuses to
8955 # link against other versions.
8956 version_type=sunos
8957 need_lib_prefix=no
8958 need_version=no
8959 case $host_cpu in
8960 ia64*)
8961 shrext_cmds='.so'
8962 hardcode_into_libs=yes
8963 dynamic_linker="$host_os dld.so"
8964 shlibpath_var=LD_LIBRARY_PATH
8965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 if test "X$HPUX_IA64_MODE" = X32; then
8969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8970 else
8971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8975 hppa*64*)
8976 shrext_cmds='.sl'
8977 hardcode_into_libs=yes
8978 dynamic_linker="$host_os dld.sl"
8979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8987 shrext_cmds='.sl'
8988 dynamic_linker="$host_os dld.sl"
8989 shlibpath_var=SHLIB_PATH
8990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8994 esac
8995 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8996 postinstall_cmds='chmod 555 $lib'
8999 interix[3-9]*)
9000 version_type=linux
9001 need_lib_prefix=no
9002 need_version=no
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=no
9008 hardcode_into_libs=yes
9011 irix5* | irix6* | nonstopux*)
9012 case $host_os in
9013 nonstopux*) version_type=nonstopux ;;
9015 if test "$lt_cv_prog_gnu_ld" = yes; then
9016 version_type=linux
9017 else
9018 version_type=irix
9019 fi ;;
9020 esac
9021 need_lib_prefix=no
9022 need_version=no
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9025 case $host_os in
9026 irix5* | nonstopux*)
9027 libsuff= shlibsuff=
9030 case $LD in # libtool.m4 will add one of these switches to LD
9031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9032 libsuff= shlibsuff= libmagic=32-bit;;
9033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9034 libsuff=32 shlibsuff=N32 libmagic=N32;;
9035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9037 *) libsuff= shlibsuff= libmagic=never-match;;
9038 esac
9040 esac
9041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9042 shlibpath_overrides_runpath=no
9043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9045 hardcode_into_libs=yes
9048 # No shared lib support for Linux oldld, aout, or coff.
9049 linux*oldld* | linux*aout* | linux*coff*)
9050 dynamic_linker=no
9053 # This must be Linux ELF.
9054 linux* | k*bsd*-gnu)
9055 version_type=linux
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=no
9063 # Some binutils ld are patched to set DT_RUNPATH
9064 save_LDFLAGS=$LDFLAGS
9065 save_libdir=$libdir
9066 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9067 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9076 main ()
9080 return 0;
9082 _ACEOF
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -z "$ac_c_werror_flag"
9093 || test ! -s conftest.err'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9106 shlibpath_overrides_runpath=yes
9109 else
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9114 rm -f conftest.err conftest.$ac_objext \
9115 conftest$ac_exeext conftest.$ac_ext
9116 LDFLAGS=$save_LDFLAGS
9117 libdir=$save_libdir
9119 # This implies no fast_install, which is unacceptable.
9120 # Some rework will be needed to allow for fast_install
9121 # before this can be enabled.
9122 hardcode_into_libs=yes
9124 # Append ld.so.conf contents to the search path
9125 if test -f /etc/ld.so.conf; then
9126 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9127 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9130 # We used to test for /lib/ld.so.1 and disable shared libraries on
9131 # powerpc, because MkLinux only supported shared libraries with the
9132 # GNU dynamic linker. Since this was broken with cross compilers,
9133 # most powerpc-linux boxes support dynamic linking these days and
9134 # people can always --disable-shared, the test was removed, and we
9135 # assume the GNU/Linux dynamic linker is in use.
9136 dynamic_linker='GNU/Linux ld.so'
9139 netbsd*)
9140 version_type=sunos
9141 need_lib_prefix=no
9142 need_version=no
9143 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9146 dynamic_linker='NetBSD (a.out) ld.so'
9147 else
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 dynamic_linker='NetBSD ld.elf_so'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9154 hardcode_into_libs=yes
9157 newsos6)
9158 version_type=linux
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9164 *nto* | *qnx*)
9165 version_type=qnx
9166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=no
9172 hardcode_into_libs=yes
9173 dynamic_linker='ldqnx.so'
9176 openbsd*)
9177 version_type=sunos
9178 sys_lib_dlsearch_path_spec="/usr/lib"
9179 need_lib_prefix=no
9180 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9181 case $host_os in
9182 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9183 *) need_version=no ;;
9184 esac
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9189 case $host_os in
9190 openbsd2.[89] | openbsd2.[89].*)
9191 shlibpath_overrides_runpath=no
9194 shlibpath_overrides_runpath=yes
9196 esac
9197 else
9198 shlibpath_overrides_runpath=yes
9202 os2*)
9203 libname_spec='$name'
9204 shrext_cmds=".dll"
9205 need_lib_prefix=no
9206 library_names_spec='$libname${shared_ext} $libname.a'
9207 dynamic_linker='OS/2 ld.exe'
9208 shlibpath_var=LIBPATH
9211 osf3* | osf4* | osf5*)
9212 version_type=osf
9213 need_lib_prefix=no
9214 need_version=no
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9222 rdos*)
9223 dynamic_linker=no
9226 solaris*)
9227 version_type=linux
9228 need_lib_prefix=no
9229 need_version=no
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes
9234 hardcode_into_libs=yes
9235 # ldd complains unless libraries are executable
9236 postinstall_cmds='chmod +x $lib'
9239 sunos4*)
9240 version_type=sunos
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=yes
9245 if test "$with_gnu_ld" = yes; then
9246 need_lib_prefix=no
9248 need_version=yes
9251 sysv4 | sysv4.3*)
9252 version_type=linux
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 case $host_vendor in
9257 sni)
9258 shlibpath_overrides_runpath=no
9259 need_lib_prefix=no
9260 runpath_var=LD_RUN_PATH
9262 siemens)
9263 need_lib_prefix=no
9265 motorola)
9266 need_lib_prefix=no
9267 need_version=no
9268 shlibpath_overrides_runpath=no
9269 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9271 esac
9274 sysv4*MP*)
9275 if test -d /usr/nec ;then
9276 version_type=linux
9277 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9278 soname_spec='$libname${shared_ext}.$major'
9279 shlibpath_var=LD_LIBRARY_PATH
9283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9284 version_type=freebsd-elf
9285 need_lib_prefix=no
9286 need_version=no
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 shlibpath_overrides_runpath=yes
9291 hardcode_into_libs=yes
9292 if test "$with_gnu_ld" = yes; then
9293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9294 else
9295 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9296 case $host_os in
9297 sco3.2v5*)
9298 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9300 esac
9302 sys_lib_dlsearch_path_spec='/usr/lib'
9305 tpf*)
9306 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9307 version_type=linux
9308 need_lib_prefix=no
9309 need_version=no
9310 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=no
9313 hardcode_into_libs=yes
9316 uts4*)
9317 version_type=linux
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9324 dynamic_linker=no
9326 esac
9327 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9328 echo "${ECHO_T}$dynamic_linker" >&6
9329 test "$dynamic_linker" = no && can_build_shared=no
9331 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9332 if test "$GCC" = yes; then
9333 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9422 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9423 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9424 hardcode_action=
9425 if test -n "$hardcode_libdir_flag_spec" ||
9426 test -n "$runpath_var" ||
9427 test "X$hardcode_automatic" = "Xyes" ; then
9429 # We can hardcode non-existent directories.
9430 if test "$hardcode_direct" != no &&
9431 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9432 # have to relink, otherwise we might link with an installed library
9433 # when we should be linking with a yet-to-be-installed one
9434 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9435 test "$hardcode_minus_L" != no; then
9436 # Linking always hardcodes the temporary library directory.
9437 hardcode_action=relink
9438 else
9439 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9440 hardcode_action=immediate
9442 else
9443 # We cannot hardcode anything, or else we can only hardcode existing
9444 # directories.
9445 hardcode_action=unsupported
9447 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9448 echo "${ECHO_T}$hardcode_action" >&6
9450 if test "$hardcode_action" = relink ||
9451 test "$inherit_rpath" = yes; then
9452 # Fast installation is not supported
9453 enable_fast_install=no
9454 elif test "$shlibpath_overrides_runpath" = yes ||
9455 test "$enable_shared" = no; then
9456 # Fast installation is not necessary
9457 enable_fast_install=needless
9465 if test "x$enable_dlopen" != xyes; then
9466 enable_dlopen=unknown
9467 enable_dlopen_self=unknown
9468 enable_dlopen_self_static=unknown
9469 else
9470 lt_cv_dlopen=no
9471 lt_cv_dlopen_libs=
9473 case $host_os in
9474 beos*)
9475 lt_cv_dlopen="load_add_on"
9476 lt_cv_dlopen_libs=
9477 lt_cv_dlopen_self=yes
9480 mingw* | pw32*)
9481 lt_cv_dlopen="LoadLibrary"
9482 lt_cv_dlopen_libs=
9485 cygwin*)
9486 lt_cv_dlopen="dlopen"
9487 lt_cv_dlopen_libs=
9490 darwin*)
9491 # if libdl is installed we need to link against it
9492 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9493 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9494 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 ac_check_lib_save_LIBS=$LIBS
9498 LIBS="-ldl $LIBS"
9499 cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h. */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9506 /* Override any gcc2 internal prototype to avoid an error. */
9507 #ifdef __cplusplus
9508 extern "C"
9509 #endif
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char dlopen ();
9514 main ()
9516 dlopen ();
9518 return 0;
9520 _ACEOF
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9523 (eval $ac_link) 2>conftest.er1
9524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try='test -z "$ac_c_werror_flag"
9531 || test ! -s conftest.err'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; } &&
9537 { ac_try='test -s conftest$ac_exeext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 (eval $ac_try) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_lib_dl_dlopen=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_cv_lib_dl_dlopen=no
9550 rm -f conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552 LIBS=$ac_check_lib_save_LIBS
9554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9556 if test $ac_cv_lib_dl_dlopen = yes; then
9557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9558 else
9560 lt_cv_dlopen="dyld"
9561 lt_cv_dlopen_libs=
9562 lt_cv_dlopen_self=yes
9569 echo "$as_me:$LINENO: checking for shl_load" >&5
9570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9571 if test "${ac_cv_func_shl_load+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9582 #define shl_load innocuous_shl_load
9584 /* System header to define __stub macros and hopefully few prototypes,
9585 which can conflict with char shl_load (); below.
9586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9587 <limits.h> exists even on freestanding compilers. */
9589 #ifdef __STDC__
9590 # include <limits.h>
9591 #else
9592 # include <assert.h>
9593 #endif
9595 #undef shl_load
9597 /* Override any gcc2 internal prototype to avoid an error. */
9598 #ifdef __cplusplus
9599 extern "C"
9601 #endif
9602 /* We use char because int might match the return type of a gcc2
9603 builtin and then its argument prototype would still apply. */
9604 char shl_load ();
9605 /* The GNU C library defines this for functions which it implements
9606 to always fail with ENOSYS. Some functions are actually named
9607 something starting with __ and the normal name is an alias. */
9608 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9609 choke me
9610 #else
9611 char (*f) () = shl_load;
9612 #endif
9613 #ifdef __cplusplus
9615 #endif
9618 main ()
9620 return f != shl_load;
9622 return 0;
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest$ac_exeext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_cv_func_shl_load=yes
9648 else
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 ac_cv_func_shl_load=no
9654 rm -f conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
9657 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9658 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9659 if test $ac_cv_func_shl_load = yes; then
9660 lt_cv_dlopen="shl_load"
9661 else
9662 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9663 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9664 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667 ac_check_lib_save_LIBS=$LIBS
9668 LIBS="-ldld $LIBS"
9669 cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h. */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9676 /* Override any gcc2 internal prototype to avoid an error. */
9677 #ifdef __cplusplus
9678 extern "C"
9679 #endif
9680 /* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9682 char shl_load ();
9684 main ()
9686 shl_load ();
9688 return 0;
9690 _ACEOF
9691 rm -f conftest.$ac_objext conftest$ac_exeext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693 (eval $ac_link) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag"
9701 || test ! -s conftest.err'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_lib_dld_shl_load=yes
9714 else
9715 echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9718 ac_cv_lib_dld_shl_load=no
9720 rm -f conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 LIBS=$ac_check_lib_save_LIBS
9724 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9725 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9726 if test $ac_cv_lib_dld_shl_load = yes; then
9727 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9728 else
9729 echo "$as_me:$LINENO: checking for dlopen" >&5
9730 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9731 if test "${ac_cv_func_dlopen+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9742 #define dlopen innocuous_dlopen
9744 /* System header to define __stub macros and hopefully few prototypes,
9745 which can conflict with char dlopen (); below.
9746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9747 <limits.h> exists even on freestanding compilers. */
9749 #ifdef __STDC__
9750 # include <limits.h>
9751 #else
9752 # include <assert.h>
9753 #endif
9755 #undef dlopen
9757 /* Override any gcc2 internal prototype to avoid an error. */
9758 #ifdef __cplusplus
9759 extern "C"
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9764 char dlopen ();
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9769 choke me
9770 #else
9771 char (*f) () = dlopen;
9772 #endif
9773 #ifdef __cplusplus
9775 #endif
9778 main ()
9780 return f != dlopen;
9782 return 0;
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_cv_func_dlopen=yes
9808 else
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_cv_func_dlopen=no
9814 rm -f conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9817 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9818 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9819 if test $ac_cv_func_dlopen = yes; then
9820 lt_cv_dlopen="dlopen"
9821 else
9822 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827 ac_check_lib_save_LIBS=$LIBS
9828 LIBS="-ldl $LIBS"
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9836 /* Override any gcc2 internal prototype to avoid an error. */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9842 char dlopen ();
9844 main ()
9846 dlopen ();
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest$ac_exeext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_cv_lib_dl_dlopen=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_cv_lib_dl_dlopen=no
9880 rm -f conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9884 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9886 if test $ac_cv_lib_dl_dlopen = yes; then
9887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9888 else
9889 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9890 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9891 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 ac_check_lib_save_LIBS=$LIBS
9895 LIBS="-lsvld $LIBS"
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9903 /* Override any gcc2 internal prototype to avoid an error. */
9904 #ifdef __cplusplus
9905 extern "C"
9906 #endif
9907 /* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9909 char dlopen ();
9911 main ()
9913 dlopen ();
9915 return 0;
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag"
9928 || test ! -s conftest.err'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; } &&
9934 { ac_try='test -s conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lib_svld_dlopen=yes
9941 else
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_lib_svld_dlopen=no
9947 rm -f conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 LIBS=$ac_check_lib_save_LIBS
9951 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9952 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9953 if test $ac_cv_lib_svld_dlopen = yes; then
9954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9955 else
9956 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9957 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9958 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961 ac_check_lib_save_LIBS=$LIBS
9962 LIBS="-ldld $LIBS"
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any gcc2 internal prototype to avoid an error. */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9976 char dld_link ();
9978 main ()
9980 dld_link ();
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_lib_dld_dld_link=yes
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_lib_dld_dld_link=no
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LIBS=$ac_check_lib_save_LIBS
10018 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10019 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10020 if test $ac_cv_lib_dld_dld_link = yes; then
10021 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10040 esac
10042 if test "x$lt_cv_dlopen" != xno; then
10043 enable_dlopen=yes
10044 else
10045 enable_dlopen=no
10048 case $lt_cv_dlopen in
10049 dlopen)
10050 save_CPPFLAGS="$CPPFLAGS"
10051 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10053 save_LDFLAGS="$LDFLAGS"
10054 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10056 save_LIBS="$LIBS"
10057 LIBS="$lt_cv_dlopen_libs $LIBS"
10059 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10060 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10061 if test "${lt_cv_dlopen_self+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 if test "$cross_compiling" = yes; then :
10065 lt_cv_dlopen_self=cross
10066 else
10067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10068 lt_status=$lt_dlunknown
10069 cat > conftest.$ac_ext <<_LT_EOF
10070 #line 10070 "configure"
10071 #include "confdefs.h"
10073 #if HAVE_DLFCN_H
10074 #include <dlfcn.h>
10075 #endif
10077 #include <stdio.h>
10079 #ifdef RTLD_GLOBAL
10080 # define LT_DLGLOBAL RTLD_GLOBAL
10081 #else
10082 # ifdef DL_GLOBAL
10083 # define LT_DLGLOBAL DL_GLOBAL
10084 # else
10085 # define LT_DLGLOBAL 0
10086 # endif
10087 #endif
10089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10090 find out it does not work in some platform. */
10091 #ifndef LT_DLLAZY_OR_NOW
10092 # ifdef RTLD_LAZY
10093 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10094 # else
10095 # ifdef DL_LAZY
10096 # define LT_DLLAZY_OR_NOW DL_LAZY
10097 # else
10098 # ifdef RTLD_NOW
10099 # define LT_DLLAZY_OR_NOW RTLD_NOW
10100 # else
10101 # ifdef DL_NOW
10102 # define LT_DLLAZY_OR_NOW DL_NOW
10103 # else
10104 # define LT_DLLAZY_OR_NOW 0
10105 # endif
10106 # endif
10107 # endif
10108 # endif
10109 #endif
10111 #ifdef __cplusplus
10112 extern "C" void exit (int);
10113 #endif
10115 void fnord() { int i=42;}
10116 int main ()
10118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10119 int status = $lt_dlunknown;
10121 if (self)
10123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10124 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10125 /* dlclose (self); */
10127 else
10128 puts (dlerror ());
10130 exit (status);
10132 _LT_EOF
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10138 (./conftest; exit; ) >&5 2>/dev/null
10139 lt_status=$?
10140 case x$lt_status in
10141 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10142 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10143 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10144 esac
10145 else :
10146 # compilation failed
10147 lt_cv_dlopen_self=no
10150 rm -fr conftest*
10154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10155 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10157 if test "x$lt_cv_dlopen_self" = xyes; then
10158 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10159 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10160 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10161 if test "${lt_cv_dlopen_self_static+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164 if test "$cross_compiling" = yes; then :
10165 lt_cv_dlopen_self_static=cross
10166 else
10167 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10168 lt_status=$lt_dlunknown
10169 cat > conftest.$ac_ext <<_LT_EOF
10170 #line 10170 "configure"
10171 #include "confdefs.h"
10173 #if HAVE_DLFCN_H
10174 #include <dlfcn.h>
10175 #endif
10177 #include <stdio.h>
10179 #ifdef RTLD_GLOBAL
10180 # define LT_DLGLOBAL RTLD_GLOBAL
10181 #else
10182 # ifdef DL_GLOBAL
10183 # define LT_DLGLOBAL DL_GLOBAL
10184 # else
10185 # define LT_DLGLOBAL 0
10186 # endif
10187 #endif
10189 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10190 find out it does not work in some platform. */
10191 #ifndef LT_DLLAZY_OR_NOW
10192 # ifdef RTLD_LAZY
10193 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10194 # else
10195 # ifdef DL_LAZY
10196 # define LT_DLLAZY_OR_NOW DL_LAZY
10197 # else
10198 # ifdef RTLD_NOW
10199 # define LT_DLLAZY_OR_NOW RTLD_NOW
10200 # else
10201 # ifdef DL_NOW
10202 # define LT_DLLAZY_OR_NOW DL_NOW
10203 # else
10204 # define LT_DLLAZY_OR_NOW 0
10205 # endif
10206 # endif
10207 # endif
10208 # endif
10209 #endif
10211 #ifdef __cplusplus
10212 extern "C" void exit (int);
10213 #endif
10215 void fnord() { int i=42;}
10216 int main ()
10218 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10219 int status = $lt_dlunknown;
10221 if (self)
10223 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10224 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10225 /* dlclose (self); */
10227 else
10228 puts (dlerror ());
10230 exit (status);
10232 _LT_EOF
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10238 (./conftest; exit; ) >&5 2>/dev/null
10239 lt_status=$?
10240 case x$lt_status in
10241 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10242 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10243 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10244 esac
10245 else :
10246 # compilation failed
10247 lt_cv_dlopen_self_static=no
10250 rm -fr conftest*
10254 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10255 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10258 CPPFLAGS="$save_CPPFLAGS"
10259 LDFLAGS="$save_LDFLAGS"
10260 LIBS="$save_LIBS"
10262 esac
10264 case $lt_cv_dlopen_self in
10265 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10266 *) enable_dlopen_self=unknown ;;
10267 esac
10269 case $lt_cv_dlopen_self_static in
10270 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10271 *) enable_dlopen_self_static=unknown ;;
10272 esac
10291 striplib=
10292 old_striplib=
10293 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10295 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10298 echo "$as_me:$LINENO: result: yes" >&5
10299 echo "${ECHO_T}yes" >&6
10300 else
10301 # FIXME - insert some real tests, host_os isn't really good enough
10302 case $host_os in
10303 darwin*)
10304 if test -n "$STRIP" ; then
10305 striplib="$STRIP -x"
10306 old_striplib="$STRIP -S"
10307 echo "$as_me:$LINENO: result: yes" >&5
10308 echo "${ECHO_T}yes" >&6
10309 else
10310 echo "$as_me:$LINENO: result: no" >&5
10311 echo "${ECHO_T}no" >&6
10315 echo "$as_me:$LINENO: result: no" >&5
10316 echo "${ECHO_T}no" >&6
10318 esac
10332 # Report which library types will actually be built
10333 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10334 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10335 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10336 echo "${ECHO_T}$can_build_shared" >&6
10338 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10339 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10340 test "$can_build_shared" = "no" && enable_shared=no
10342 # On AIX, shared libraries and static libraries use the same namespace, and
10343 # are all built from PIC.
10344 case $host_os in
10345 aix3*)
10346 test "$enable_shared" = yes && enable_static=no
10347 if test -n "$RANLIB"; then
10348 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10349 postinstall_cmds='$RANLIB $lib'
10353 aix[4-9]*)
10354 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10355 test "$enable_shared" = yes && enable_static=no
10358 esac
10359 echo "$as_me:$LINENO: result: $enable_shared" >&5
10360 echo "${ECHO_T}$enable_shared" >&6
10362 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10363 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10364 # Make sure either enable_shared or enable_static is yes.
10365 test "$enable_shared" = yes || enable_static=yes
10366 echo "$as_me:$LINENO: result: $enable_static" >&5
10367 echo "${ECHO_T}$enable_static" >&6
10373 ac_ext=c
10374 ac_cpp='$CPP $CPPFLAGS'
10375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10379 CC="$lt_save_CC"
10393 ac_config_commands="$ac_config_commands libtool"
10398 # Only expand once:
10403 for ac_func in setmode
10405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10406 echo "$as_me:$LINENO: checking for $ac_func" >&5
10407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10408 if eval "test \"\${$as_ac_var+set}\" = set"; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10419 #define $ac_func innocuous_$ac_func
10421 /* System header to define __stub macros and hopefully few prototypes,
10422 which can conflict with char $ac_func (); below.
10423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10424 <limits.h> exists even on freestanding compilers. */
10426 #ifdef __STDC__
10427 # include <limits.h>
10428 #else
10429 # include <assert.h>
10430 #endif
10432 #undef $ac_func
10434 /* Override any gcc2 internal prototype to avoid an error. */
10435 #ifdef __cplusplus
10436 extern "C"
10438 #endif
10439 /* We use char because int might match the return type of a gcc2
10440 builtin and then its argument prototype would still apply. */
10441 char $ac_func ();
10442 /* The GNU C library defines this for functions which it implements
10443 to always fail with ENOSYS. Some functions are actually named
10444 something starting with __ and the normal name is an alias. */
10445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10446 choke me
10447 #else
10448 char (*f) () = $ac_func;
10449 #endif
10450 #ifdef __cplusplus
10452 #endif
10455 main ()
10457 return f != $ac_func;
10459 return 0;
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest$ac_exeext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 eval "$as_ac_var=yes"
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 eval "$as_ac_var=no"
10491 rm -f conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10496 if test `eval echo '${'$as_ac_var'}'` = yes; then
10497 cat >>confdefs.h <<_ACEOF
10498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10499 _ACEOF
10502 done
10505 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl"
10506 # If we haven't got the data from the intl directory,
10507 # assume NLS is disabled.
10508 USE_NLS=no
10509 LIBINTL=
10510 LIBINTL_DEP=
10511 INCINTL=
10512 XGETTEXT=
10513 GMSGFMT=
10514 POSUB=
10516 if test -f ../intl/config.intl; then
10517 . ../intl/config.intl
10519 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10520 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10521 if test x"$USE_NLS" != xyes; then
10522 echo "$as_me:$LINENO: result: no" >&5
10523 echo "${ECHO_T}no" >&6
10524 else
10525 echo "$as_me:$LINENO: result: yes" >&5
10526 echo "${ECHO_T}yes" >&6
10528 cat >>confdefs.h <<\_ACEOF
10529 #define ENABLE_NLS 1
10530 _ACEOF
10533 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10534 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10535 # Look for .po and .gmo files in the source directory.
10536 CATALOGS=
10537 XLINGUAS=
10538 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10539 # If there aren't any .gmo files the shell will give us the
10540 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10541 # weeded out.
10542 case "$cat" in *\**)
10543 continue;;
10544 esac
10545 # The quadruple backslash is collapsed to a double backslash
10546 # by the backticks, then collapsed again by the double quotes,
10547 # leaving us with one backslash in the sed expression (right
10548 # before the dot that mustn't act as a wildcard).
10549 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10550 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10551 # The user is allowed to set LINGUAS to a list of languages to
10552 # install catalogs for. If it's empty that means "all of them."
10553 if test "x$LINGUAS" = x; then
10554 CATALOGS="$CATALOGS $cat"
10555 XLINGUAS="$XLINGUAS $lang"
10556 else
10557 case "$LINGUAS" in *$lang*)
10558 CATALOGS="$CATALOGS $cat"
10559 XLINGUAS="$XLINGUAS $lang"
10561 esac
10563 done
10564 LINGUAS="$XLINGUAS"
10565 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10566 echo "${ECHO_T}$LINGUAS" >&6
10569 DATADIRNAME=share
10571 INSTOBJEXT=.mo
10573 GENCAT=gencat
10575 CATOBJEXT=.gmo
10579 MKINSTALLDIRS=
10580 if test -n "$ac_aux_dir"; then
10581 case "$ac_aux_dir" in
10582 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10583 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10584 esac
10586 if test -z "$MKINSTALLDIRS"; then
10587 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10592 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10593 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10594 # Check whether --enable-nls or --disable-nls was given.
10595 if test "${enable_nls+set}" = set; then
10596 enableval="$enable_nls"
10597 USE_NLS=$enableval
10598 else
10599 USE_NLS=yes
10601 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10602 echo "${ECHO_T}$USE_NLS" >&6
10609 # Prepare PATH_SEPARATOR.
10610 # The user is always right.
10611 if test "${PATH_SEPARATOR+set}" != set; then
10612 echo "#! /bin/sh" >conf$$.sh
10613 echo "exit 0" >>conf$$.sh
10614 chmod +x conf$$.sh
10615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10616 PATH_SEPARATOR=';'
10617 else
10618 PATH_SEPARATOR=:
10620 rm -f conf$$.sh
10623 # Find out how to test for executable files. Don't use a zero-byte file,
10624 # as systems may use methods other than mode bits to determine executability.
10625 cat >conf$$.file <<_ASEOF
10626 #! /bin/sh
10627 exit 0
10628 _ASEOF
10629 chmod +x conf$$.file
10630 if test -x conf$$.file >/dev/null 2>&1; then
10631 ac_executable_p="test -x"
10632 else
10633 ac_executable_p="test -f"
10635 rm -f conf$$.file
10637 # Extract the first word of "msgfmt", so it can be a program name with args.
10638 set dummy msgfmt; ac_word=$2
10639 echo "$as_me:$LINENO: checking for $ac_word" >&5
10640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10641 if test "${ac_cv_path_MSGFMT+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 case "$MSGFMT" in
10645 [\\/]* | ?:[\\/]*)
10646 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10649 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10650 for ac_dir in $PATH; do
10651 IFS="$ac_save_IFS"
10652 test -z "$ac_dir" && ac_dir=.
10653 for ac_exec_ext in '' $ac_executable_extensions; do
10654 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10655 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10656 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10657 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10658 break 2
10661 done
10662 done
10663 IFS="$ac_save_IFS"
10664 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10666 esac
10668 MSGFMT="$ac_cv_path_MSGFMT"
10669 if test "$MSGFMT" != ":"; then
10670 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10671 echo "${ECHO_T}$MSGFMT" >&6
10672 else
10673 echo "$as_me:$LINENO: result: no" >&5
10674 echo "${ECHO_T}no" >&6
10677 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10678 set dummy gmsgfmt; ac_word=$2
10679 echo "$as_me:$LINENO: checking for $ac_word" >&5
10680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10681 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 case $GMSGFMT in
10685 [\\/]* | ?:[\\/]*)
10686 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690 for as_dir in $PATH
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10696 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10700 done
10701 done
10703 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10705 esac
10707 GMSGFMT=$ac_cv_path_GMSGFMT
10709 if test -n "$GMSGFMT"; then
10710 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10711 echo "${ECHO_T}$GMSGFMT" >&6
10712 else
10713 echo "$as_me:$LINENO: result: no" >&5
10714 echo "${ECHO_T}no" >&6
10719 # Prepare PATH_SEPARATOR.
10720 # The user is always right.
10721 if test "${PATH_SEPARATOR+set}" != set; then
10722 echo "#! /bin/sh" >conf$$.sh
10723 echo "exit 0" >>conf$$.sh
10724 chmod +x conf$$.sh
10725 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10726 PATH_SEPARATOR=';'
10727 else
10728 PATH_SEPARATOR=:
10730 rm -f conf$$.sh
10733 # Find out how to test for executable files. Don't use a zero-byte file,
10734 # as systems may use methods other than mode bits to determine executability.
10735 cat >conf$$.file <<_ASEOF
10736 #! /bin/sh
10737 exit 0
10738 _ASEOF
10739 chmod +x conf$$.file
10740 if test -x conf$$.file >/dev/null 2>&1; then
10741 ac_executable_p="test -x"
10742 else
10743 ac_executable_p="test -f"
10745 rm -f conf$$.file
10747 # Extract the first word of "xgettext", so it can be a program name with args.
10748 set dummy xgettext; ac_word=$2
10749 echo "$as_me:$LINENO: checking for $ac_word" >&5
10750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10751 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 case "$XGETTEXT" in
10755 [\\/]* | ?:[\\/]*)
10756 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10759 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10760 for ac_dir in $PATH; do
10761 IFS="$ac_save_IFS"
10762 test -z "$ac_dir" && ac_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10765 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10766 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10767 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10768 break 2
10771 done
10772 done
10773 IFS="$ac_save_IFS"
10774 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10776 esac
10778 XGETTEXT="$ac_cv_path_XGETTEXT"
10779 if test "$XGETTEXT" != ":"; then
10780 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10781 echo "${ECHO_T}$XGETTEXT" >&6
10782 else
10783 echo "$as_me:$LINENO: result: no" >&5
10784 echo "${ECHO_T}no" >&6
10787 rm -f messages.po
10790 # Prepare PATH_SEPARATOR.
10791 # The user is always right.
10792 if test "${PATH_SEPARATOR+set}" != set; then
10793 echo "#! /bin/sh" >conf$$.sh
10794 echo "exit 0" >>conf$$.sh
10795 chmod +x conf$$.sh
10796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10797 PATH_SEPARATOR=';'
10798 else
10799 PATH_SEPARATOR=:
10801 rm -f conf$$.sh
10804 # Find out how to test for executable files. Don't use a zero-byte file,
10805 # as systems may use methods other than mode bits to determine executability.
10806 cat >conf$$.file <<_ASEOF
10807 #! /bin/sh
10808 exit 0
10809 _ASEOF
10810 chmod +x conf$$.file
10811 if test -x conf$$.file >/dev/null 2>&1; then
10812 ac_executable_p="test -x"
10813 else
10814 ac_executable_p="test -f"
10816 rm -f conf$$.file
10818 # Extract the first word of "msgmerge", so it can be a program name with args.
10819 set dummy msgmerge; ac_word=$2
10820 echo "$as_me:$LINENO: checking for $ac_word" >&5
10821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10822 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 case "$MSGMERGE" in
10826 [\\/]* | ?:[\\/]*)
10827 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10830 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10831 for ac_dir in $PATH; do
10832 IFS="$ac_save_IFS"
10833 test -z "$ac_dir" && ac_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10836 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10837 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10838 break 2
10841 done
10842 done
10843 IFS="$ac_save_IFS"
10844 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10846 esac
10848 MSGMERGE="$ac_cv_path_MSGMERGE"
10849 if test "$MSGMERGE" != ":"; then
10850 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10851 echo "${ECHO_T}$MSGMERGE" >&6
10852 else
10853 echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6
10858 if test "$GMSGFMT" != ":"; then
10859 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10860 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10862 else
10863 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10864 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10865 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10866 GMSGFMT=":"
10870 if test "$XGETTEXT" != ":"; then
10871 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10872 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10874 else
10875 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10876 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10877 XGETTEXT=":"
10879 rm -f messages.po
10882 ac_config_commands="$ac_config_commands default-1"
10886 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10887 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10888 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10889 if test "${enable_maintainer_mode+set}" = set; then
10890 enableval="$enable_maintainer_mode"
10891 USE_MAINTAINER_MODE=$enableval
10892 else
10893 USE_MAINTAINER_MODE=no
10895 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10896 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10899 if test $USE_MAINTAINER_MODE = yes; then
10900 MAINTAINER_MODE_TRUE=
10901 MAINTAINER_MODE_FALSE='#'
10902 else
10903 MAINTAINER_MODE_TRUE='#'
10904 MAINTAINER_MODE_FALSE=
10907 MAINT=$MAINTAINER_MODE_TRUE
10912 if false; then
10913 GENINSRC_NEVER_TRUE=
10914 GENINSRC_NEVER_FALSE='#'
10915 else
10916 GENINSRC_NEVER_TRUE='#'
10917 GENINSRC_NEVER_FALSE=
10923 for ac_header in sys/gmon_out.h
10925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10927 echo "$as_me:$LINENO: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10934 else
10935 # Is the header compilable?
10936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h. */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 $ac_includes_default
10945 #include <$ac_header>
10946 _ACEOF
10947 rm -f conftest.$ac_objext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949 (eval $ac_compile) 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag"
10957 || test ! -s conftest.err'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; } &&
10963 { ac_try='test -s conftest.$ac_objext'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_header_compiler=yes
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_header_compiler=no
10976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10978 echo "${ECHO_T}$ac_header_compiler" >&6
10980 # Is the header present?
10981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h. */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <$ac_header>
10990 _ACEOF
10991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null; then
10999 if test -s conftest.err; then
11000 ac_cpp_err=$ac_c_preproc_warn_flag
11001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11002 else
11003 ac_cpp_err=
11005 else
11006 ac_cpp_err=yes
11008 if test -z "$ac_cpp_err"; then
11009 ac_header_preproc=yes
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_header_preproc=no
11016 rm -f conftest.err conftest.$ac_ext
11017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11018 echo "${ECHO_T}$ac_header_preproc" >&6
11020 # So? What about this header?
11021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11022 yes:no: )
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11027 ac_header_preproc=yes
11029 no:yes:* )
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11043 cat <<\_ASBOX
11044 ## ------------------------------------------ ##
11045 ## Report this to the AC_PACKAGE_NAME lists. ##
11046 ## ------------------------------------------ ##
11047 _ASBOX
11049 sed "s/^/$as_me: WARNING: /" >&2
11051 esac
11052 echo "$as_me:$LINENO: checking for $ac_header" >&5
11053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057 eval "$as_ac_Header=\$ac_header_preproc"
11059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064 cat >>confdefs.h <<_ACEOF
11065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11066 _ACEOF
11070 done
11073 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11074 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11075 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 #include <unistd.h>
11086 main ()
11088 extern int getopt (int, char *const*, const char *);
11090 return 0;
11092 _ACEOF
11093 rm -f conftest.$ac_objext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095 (eval $ac_compile) 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag"
11103 || test ! -s conftest.err'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 gprof_cv_decl_getopt_unistd_h=yes
11116 else
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 gprof_cv_decl_getopt_unistd_h=no
11122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11126 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
11127 if test $gprof_cv_decl_getopt_unistd_h = yes; then
11129 cat >>confdefs.h <<\_ACEOF
11130 #define HAVE_DECL_GETOPT 1
11131 _ACEOF
11135 # Some systems have fabs only in -lm, not in -lc.
11136 echo "$as_me:$LINENO: checking for library containing fabs" >&5
11137 echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6
11138 if test "${ac_cv_search_fabs+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141 ac_func_search_save_LIBS=$LIBS
11142 ac_cv_search_fabs=no
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11150 /* Override any gcc2 internal prototype to avoid an error. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11156 char fabs ();
11158 main ()
11160 fabs ();
11162 return 0;
11164 _ACEOF
11165 rm -f conftest.$ac_objext conftest$ac_exeext
11166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167 (eval $ac_link) 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } &&
11174 { ac_try='test -z "$ac_c_werror_flag"
11175 || test ! -s conftest.err'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest$ac_exeext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 ac_cv_search_fabs="none required"
11188 else
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11193 rm -f conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 if test "$ac_cv_search_fabs" = no; then
11196 for ac_lib in m; do
11197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11198 cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h. */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11205 /* Override any gcc2 internal prototype to avoid an error. */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 /* We use char because int might match the return type of a gcc2
11210 builtin and then its argument prototype would still apply. */
11211 char fabs ();
11213 main ()
11215 fabs ();
11217 return 0;
11219 _ACEOF
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11222 (eval $ac_link) 2>conftest.er1
11223 ac_status=$?
11224 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag"
11230 || test ! -s conftest.err'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; } &&
11236 { ac_try='test -s conftest$ac_exeext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 ac_cv_search_fabs="-l$ac_lib"
11243 break
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11249 rm -f conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251 done
11253 LIBS=$ac_func_search_save_LIBS
11255 echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5
11256 echo "${ECHO_T}$ac_cv_search_fabs" >&6
11257 if test "$ac_cv_search_fabs" != no; then
11258 test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS"
11264 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11266 # Check whether --enable-werror or --disable-werror was given.
11267 if test "${enable_werror+set}" = set; then
11268 enableval="$enable_werror"
11269 case "${enableval}" in
11270 yes | y) ERROR_ON_WARNING="yes" ;;
11271 no | n) ERROR_ON_WARNING="no" ;;
11272 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11273 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11274 { (exit 1); exit 1; }; } ;;
11275 esac
11278 # Enable -Wno-format by default when using gcc on mingw
11279 case "${host}" in
11280 *-*-mingw32*)
11281 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11282 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11285 *) ;;
11286 esac
11288 # Enable -Werror by default when using gcc
11289 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11290 ERROR_ON_WARNING=yes
11293 NO_WERROR=
11294 if test "${ERROR_ON_WARNING}" = yes ; then
11295 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11296 NO_WERROR="-Wno-error"
11299 if test "${GCC}" = yes ; then
11300 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11303 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11304 if test "${enable_build_warnings+set}" = set; then
11305 enableval="$enable_build_warnings"
11306 case "${enableval}" in
11307 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11308 no) if test "${GCC}" = yes ; then
11309 WARN_CFLAGS="-w"
11310 fi;;
11311 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11312 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11313 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11314 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11315 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11316 esac
11319 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11320 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11331 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11333 cat >confcache <<\_ACEOF
11334 # This file is a shell script that caches the results of configure
11335 # tests run on this system so they can be shared between configure
11336 # scripts and configure runs, see configure's option --config-cache.
11337 # It is not useful on other systems. If it contains results you don't
11338 # want to keep, you may remove or edit it.
11340 # config.status only pays attention to the cache file if you give it
11341 # the --recheck option to rerun configure.
11343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11345 # following values.
11347 _ACEOF
11349 # The following way of writing the cache mishandles newlines in values,
11350 # but we know of no workaround that is simple, portable, and efficient.
11351 # So, don't put newlines in cache variables' values.
11352 # Ultrix sh set writes to stderr and can't be redirected directly,
11353 # and sets the high bit in the cache file unless we assign to the vars.
11355 (set) 2>&1 |
11356 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11357 *ac_space=\ *)
11358 # `set' does not quote correctly, so add quotes (double-quote
11359 # substitution turns \\\\ into \\, and sed turns \\ into \).
11360 sed -n \
11361 "s/'/'\\\\''/g;
11362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11365 # `set' quotes correctly as required by POSIX, so do not add quotes.
11366 sed -n \
11367 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11369 esac;
11371 sed '
11372 t clear
11373 : clear
11374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11375 t end
11376 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11377 : end' >>confcache
11378 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11379 if test -w $cache_file; then
11380 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11381 cat confcache >$cache_file
11382 else
11383 echo "not updating unwritable cache $cache_file"
11386 rm -f confcache
11388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11389 # Let make expand exec_prefix.
11390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11394 # trailing colons and then remove the whole line if VPATH becomes empty
11395 # (actually we leave an empty line to preserve line numbers).
11396 if test "x$srcdir" = x.; then
11397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11398 s/:*\$(srcdir):*/:/;
11399 s/:*\${srcdir}:*/:/;
11400 s/:*@srcdir@:*/:/;
11401 s/^\([^=]*=[ ]*\):*/\1/;
11402 s/:*$//;
11403 s/^[^=]*=[ ]*$//;
11407 DEFS=-DHAVE_CONFIG_H
11409 ac_libobjs=
11410 ac_ltlibobjs=
11411 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11412 # 1. Remove the extension, and $U if already installed.
11413 ac_i=`echo "$ac_i" |
11414 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11415 # 2. Add them.
11416 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11417 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11418 done
11419 LIBOBJS=$ac_libobjs
11421 LTLIBOBJS=$ac_ltlibobjs
11424 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11425 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11426 Usually this means the macro was only invoked conditionally." >&5
11427 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11428 Usually this means the macro was only invoked conditionally." >&2;}
11429 { (exit 1); exit 1; }; }
11431 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11432 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11433 Usually this means the macro was only invoked conditionally." >&5
11434 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11435 Usually this means the macro was only invoked conditionally." >&2;}
11436 { (exit 1); exit 1; }; }
11438 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11439 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11440 Usually this means the macro was only invoked conditionally." >&5
11441 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11442 Usually this means the macro was only invoked conditionally." >&2;}
11443 { (exit 1); exit 1; }; }
11445 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11446 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
11447 Usually this means the macro was only invoked conditionally." >&5
11448 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
11449 Usually this means the macro was only invoked conditionally." >&2;}
11450 { (exit 1); exit 1; }; }
11453 : ${CONFIG_STATUS=./config.status}
11454 ac_clean_files_save=$ac_clean_files
11455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11456 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11457 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11458 cat >$CONFIG_STATUS <<_ACEOF
11459 #! $SHELL
11460 # Generated by $as_me.
11461 # Run this file to recreate the current configuration.
11462 # Compiler output produced by configure, useful for debugging
11463 # configure, is in config.log if it exists.
11465 debug=false
11466 ac_cs_recheck=false
11467 ac_cs_silent=false
11468 SHELL=\${CONFIG_SHELL-$SHELL}
11469 _ACEOF
11471 cat >>$CONFIG_STATUS <<\_ACEOF
11472 ## --------------------- ##
11473 ## M4sh Initialization. ##
11474 ## --------------------- ##
11476 # Be Bourne compatible
11477 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11478 emulate sh
11479 NULLCMD=:
11480 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11481 # is contrary to our usage. Disable this feature.
11482 alias -g '${1+"$@"}'='"$@"'
11483 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11484 set -o posix
11486 DUALCASE=1; export DUALCASE # for MKS sh
11488 # Support unset when possible.
11489 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11490 as_unset=unset
11491 else
11492 as_unset=false
11496 # Work around bugs in pre-3.0 UWIN ksh.
11497 $as_unset ENV MAIL MAILPATH
11498 PS1='$ '
11499 PS2='> '
11500 PS4='+ '
11502 # NLS nuisances.
11503 for as_var in \
11504 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11505 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11506 LC_TELEPHONE LC_TIME
11508 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11509 eval $as_var=C; export $as_var
11510 else
11511 $as_unset $as_var
11513 done
11515 # Required to use basename.
11516 if expr a : '\(a\)' >/dev/null 2>&1; then
11517 as_expr=expr
11518 else
11519 as_expr=false
11522 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11523 as_basename=basename
11524 else
11525 as_basename=false
11529 # Name of the executable.
11530 as_me=`$as_basename "$0" ||
11531 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11532 X"$0" : 'X\(//\)$' \| \
11533 X"$0" : 'X\(/\)$' \| \
11534 . : '\(.\)' 2>/dev/null ||
11535 echo X/"$0" |
11536 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11537 /^X\/\(\/\/\)$/{ s//\1/; q; }
11538 /^X\/\(\/\).*/{ s//\1/; q; }
11539 s/.*/./; q'`
11542 # PATH needs CR, and LINENO needs CR and PATH.
11543 # Avoid depending upon Character Ranges.
11544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11547 as_cr_digits='0123456789'
11548 as_cr_alnum=$as_cr_Letters$as_cr_digits
11550 # The user is always right.
11551 if test "${PATH_SEPARATOR+set}" != set; then
11552 echo "#! /bin/sh" >conf$$.sh
11553 echo "exit 0" >>conf$$.sh
11554 chmod +x conf$$.sh
11555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11556 PATH_SEPARATOR=';'
11557 else
11558 PATH_SEPARATOR=:
11560 rm -f conf$$.sh
11564 as_lineno_1=$LINENO
11565 as_lineno_2=$LINENO
11566 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11567 test "x$as_lineno_1" != "x$as_lineno_2" &&
11568 test "x$as_lineno_3" = "x$as_lineno_2" || {
11569 # Find who we are. Look in the path if we contain no path at all
11570 # relative or not.
11571 case $0 in
11572 *[\\/]* ) as_myself=$0 ;;
11573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11579 done
11582 esac
11583 # We did not find ourselves, most probably we were run as `sh COMMAND'
11584 # in which case we are not to be found in the path.
11585 if test "x$as_myself" = x; then
11586 as_myself=$0
11588 if test ! -f "$as_myself"; then
11589 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11590 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11591 { (exit 1); exit 1; }; }
11593 case $CONFIG_SHELL in
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for as_base in sh bash ksh sh5; do
11601 case $as_dir in
11603 if ("$as_dir/$as_base" -c '
11604 as_lineno_1=$LINENO
11605 as_lineno_2=$LINENO
11606 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11607 test "x$as_lineno_1" != "x$as_lineno_2" &&
11608 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11609 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11610 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11611 CONFIG_SHELL=$as_dir/$as_base
11612 export CONFIG_SHELL
11613 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11614 fi;;
11615 esac
11616 done
11617 done
11619 esac
11621 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11622 # uniformly replaced by the line number. The first 'sed' inserts a
11623 # line-number line before each line; the second 'sed' does the real
11624 # work. The second script uses 'N' to pair each line-number line
11625 # with the numbered line, and appends trailing '-' during
11626 # substitution so that $LINENO is not a special case at line end.
11627 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11628 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11629 sed '=' <$as_myself |
11630 sed '
11632 s,$,-,
11633 : loop
11634 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11635 t loop
11636 s,-$,,
11637 s,^['$as_cr_digits']*\n,,
11638 ' >$as_me.lineno &&
11639 chmod +x $as_me.lineno ||
11640 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11641 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11642 { (exit 1); exit 1; }; }
11644 # Don't try to exec as it changes $[0], causing all sort of problems
11645 # (the dirname of $[0] is not the place where we might find the
11646 # original and so on. Autoconf is especially sensible to this).
11647 . ./$as_me.lineno
11648 # Exit status is that of the last command.
11649 exit
11653 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11654 *c*,-n*) ECHO_N= ECHO_C='
11655 ' ECHO_T=' ' ;;
11656 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11657 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11658 esac
11660 if expr a : '\(a\)' >/dev/null 2>&1; then
11661 as_expr=expr
11662 else
11663 as_expr=false
11666 rm -f conf$$ conf$$.exe conf$$.file
11667 echo >conf$$.file
11668 if ln -s conf$$.file conf$$ 2>/dev/null; then
11669 # We could just check for DJGPP; but this test a) works b) is more generic
11670 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11671 if test -f conf$$.exe; then
11672 # Don't use ln at all; we don't have any links
11673 as_ln_s='cp -p'
11674 else
11675 as_ln_s='ln -s'
11677 elif ln conf$$.file conf$$ 2>/dev/null; then
11678 as_ln_s=ln
11679 else
11680 as_ln_s='cp -p'
11682 rm -f conf$$ conf$$.exe conf$$.file
11684 if mkdir -p . 2>/dev/null; then
11685 as_mkdir_p=:
11686 else
11687 test -d ./-p && rmdir ./-p
11688 as_mkdir_p=false
11691 as_executable_p="test -f"
11693 # Sed expression to map a string onto a valid CPP name.
11694 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11696 # Sed expression to map a string onto a valid variable name.
11697 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11700 # IFS
11701 # We need space, tab and new line, in precisely that order.
11702 as_nl='
11704 IFS=" $as_nl"
11706 # CDPATH.
11707 $as_unset CDPATH
11709 exec 6>&1
11711 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11712 # report actual input values of CONFIG_FILES etc. instead of their
11713 # values after options handling. Logging --version etc. is OK.
11714 exec 5>>config.log
11716 echo
11717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11718 ## Running $as_me. ##
11719 _ASBOX
11720 } >&5
11721 cat >&5 <<_CSEOF
11723 This file was extended by $as_me, which was
11724 generated by GNU Autoconf 2.59. Invocation command line was
11726 CONFIG_FILES = $CONFIG_FILES
11727 CONFIG_HEADERS = $CONFIG_HEADERS
11728 CONFIG_LINKS = $CONFIG_LINKS
11729 CONFIG_COMMANDS = $CONFIG_COMMANDS
11730 $ $0 $@
11732 _CSEOF
11733 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11734 echo >&5
11735 _ACEOF
11737 # Files that config.status was made for.
11738 if test -n "$ac_config_files"; then
11739 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11742 if test -n "$ac_config_headers"; then
11743 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11746 if test -n "$ac_config_links"; then
11747 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11750 if test -n "$ac_config_commands"; then
11751 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11754 cat >>$CONFIG_STATUS <<\_ACEOF
11756 ac_cs_usage="\
11757 \`$as_me' instantiates files from templates according to the
11758 current configuration.
11760 Usage: $0 [OPTIONS] [FILE]...
11762 -h, --help print this help, then exit
11763 -V, --version print version number, then exit
11764 -q, --quiet do not print progress messages
11765 -d, --debug don't remove temporary files
11766 --recheck update $as_me by reconfiguring in the same conditions
11767 --file=FILE[:TEMPLATE]
11768 instantiate the configuration file FILE
11769 --header=FILE[:TEMPLATE]
11770 instantiate the configuration header FILE
11772 Configuration files:
11773 $config_files
11775 Configuration headers:
11776 $config_headers
11778 Configuration commands:
11779 $config_commands
11781 Report bugs to <bug-autoconf@gnu.org>."
11782 _ACEOF
11784 cat >>$CONFIG_STATUS <<_ACEOF
11785 ac_cs_version="\\
11786 config.status
11787 configured by $0, generated by GNU Autoconf 2.59,
11788 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11790 Copyright (C) 2003 Free Software Foundation, Inc.
11791 This config.status script is free software; the Free Software Foundation
11792 gives unlimited permission to copy, distribute and modify it."
11793 srcdir=$srcdir
11794 INSTALL="$INSTALL"
11795 _ACEOF
11797 cat >>$CONFIG_STATUS <<\_ACEOF
11798 # If no file are specified by the user, then we need to provide default
11799 # value. By we need to know if files were specified by the user.
11800 ac_need_defaults=:
11801 while test $# != 0
11803 case $1 in
11804 --*=*)
11805 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11806 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11807 ac_shift=:
11810 ac_option=$1
11811 ac_optarg=$2
11812 ac_shift=shift
11814 *) # This is not an option, so the user has probably given explicit
11815 # arguments.
11816 ac_option=$1
11817 ac_need_defaults=false;;
11818 esac
11820 case $ac_option in
11821 # Handling of the options.
11822 _ACEOF
11823 cat >>$CONFIG_STATUS <<\_ACEOF
11824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11825 ac_cs_recheck=: ;;
11826 --version | --vers* | -V )
11827 echo "$ac_cs_version"; exit 0 ;;
11828 --he | --h)
11829 # Conflict between --help and --header
11830 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11831 Try \`$0 --help' for more information." >&5
11832 echo "$as_me: error: ambiguous option: $1
11833 Try \`$0 --help' for more information." >&2;}
11834 { (exit 1); exit 1; }; };;
11835 --help | --hel | -h )
11836 echo "$ac_cs_usage"; exit 0 ;;
11837 --debug | --d* | -d )
11838 debug=: ;;
11839 --file | --fil | --fi | --f )
11840 $ac_shift
11841 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11842 ac_need_defaults=false;;
11843 --header | --heade | --head | --hea )
11844 $ac_shift
11845 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11846 ac_need_defaults=false;;
11847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11848 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11849 ac_cs_silent=: ;;
11851 # This is an error.
11852 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11853 Try \`$0 --help' for more information." >&5
11854 echo "$as_me: error: unrecognized option: $1
11855 Try \`$0 --help' for more information." >&2;}
11856 { (exit 1); exit 1; }; } ;;
11858 *) ac_config_targets="$ac_config_targets $1" ;;
11860 esac
11861 shift
11862 done
11864 ac_configure_extra_args=
11866 if $ac_cs_silent; then
11867 exec 6>/dev/null
11868 ac_configure_extra_args="$ac_configure_extra_args --silent"
11871 _ACEOF
11872 cat >>$CONFIG_STATUS <<_ACEOF
11873 if \$ac_cs_recheck; then
11874 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11875 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11878 _ACEOF
11880 cat >>$CONFIG_STATUS <<_ACEOF
11882 # INIT-COMMANDS section.
11885 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11888 # The HP-UX ksh and POSIX shell print the target directory to stdout
11889 # if CDPATH is set.
11890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11892 sed_quote_subst='$sed_quote_subst'
11893 double_quote_subst='$double_quote_subst'
11894 delay_variable_subst='$delay_variable_subst'
11895 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11896 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11897 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11898 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11899 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11900 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11901 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11902 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11903 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11904 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11905 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11906 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11907 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11908 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11909 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11910 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11911 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11912 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11913 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11914 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11915 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11916 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11917 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11918 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11919 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11920 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11921 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11922 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11923 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11924 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11925 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11926 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11927 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11928 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11929 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11930 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11931 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11932 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11933 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11934 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11935 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11936 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11937 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11938 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11939 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11940 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11941 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11942 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11943 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11944 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11945 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11946 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11947 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11948 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11949 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11950 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11951 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11952 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11953 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11954 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11955 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11956 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11957 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11958 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11959 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11960 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11961 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11962 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11963 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11964 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11965 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11966 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11967 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11968 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11969 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11970 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11971 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11972 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11973 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11974 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11975 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11976 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11977 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11978 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11979 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11980 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11981 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11982 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11983 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11984 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11985 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11986 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11987 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11988 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11989 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11990 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11991 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11992 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11993 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11994 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11995 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11996 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11997 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11998 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11999 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12000 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12001 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12002 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12003 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12004 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12005 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12007 LTCC='$LTCC'
12008 LTCFLAGS='$LTCFLAGS'
12009 compiler='$compiler_DEFAULT'
12011 # Quote evaled strings.
12012 for var in SED \
12013 GREP \
12014 EGREP \
12015 FGREP \
12016 LD \
12017 NM \
12018 LN_S \
12019 lt_SP2NL \
12020 lt_NL2SP \
12021 reload_flag \
12022 deplibs_check_method \
12023 file_magic_cmd \
12024 AR \
12025 AR_FLAGS \
12026 STRIP \
12027 RANLIB \
12028 CC \
12029 CFLAGS \
12030 compiler \
12031 lt_cv_sys_global_symbol_pipe \
12032 lt_cv_sys_global_symbol_to_cdecl \
12033 lt_cv_sys_global_symbol_to_c_name_address \
12034 SHELL \
12035 ECHO \
12036 lt_prog_compiler_no_builtin_flag \
12037 lt_prog_compiler_wl \
12038 lt_prog_compiler_pic \
12039 lt_prog_compiler_static \
12040 lt_cv_prog_compiler_c_o \
12041 need_locks \
12042 shrext_cmds \
12043 export_dynamic_flag_spec \
12044 whole_archive_flag_spec \
12045 compiler_needs_object \
12046 with_gnu_ld \
12047 allow_undefined_flag \
12048 no_undefined_flag \
12049 hardcode_libdir_flag_spec \
12050 hardcode_libdir_flag_spec_ld \
12051 hardcode_libdir_separator \
12052 fix_srcfile_path \
12053 exclude_expsyms \
12054 include_expsyms \
12055 file_list_spec \
12056 variables_saved_for_relink \
12057 libname_spec \
12058 library_names_spec \
12059 soname_spec \
12060 finish_eval \
12061 old_striplib \
12062 striplib; do
12063 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12064 *[\\\\\\\`\\"\\\$]*)
12065 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12068 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12070 esac
12071 done
12073 # Double-quote double-evaled strings.
12074 for var in reload_cmds \
12075 old_postinstall_cmds \
12076 old_postuninstall_cmds \
12077 old_archive_cmds \
12078 extract_expsyms_cmds \
12079 old_archive_from_new_cmds \
12080 old_archive_from_expsyms_cmds \
12081 archive_cmds \
12082 archive_expsym_cmds \
12083 module_cmds \
12084 module_expsym_cmds \
12085 export_symbols_cmds \
12086 prelink_cmds \
12087 postinstall_cmds \
12088 postuninstall_cmds \
12089 finish_cmds \
12090 sys_lib_search_path_spec \
12091 sys_lib_dlsearch_path_spec; do
12092 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12093 *[\\\\\\\`\\"\\\$]*)
12094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12097 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12099 esac
12100 done
12102 # Fix-up fallback echo if it was mangled by the above quoting rules.
12103 case \$lt_ECHO in
12104 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12106 esac
12108 ac_aux_dir='$ac_aux_dir'
12109 xsi_shell='$xsi_shell'
12110 lt_shell_append='$lt_shell_append'
12112 # See if we are running on zsh, and set the options which allow our
12113 # commands through without removal of \ escapes INIT.
12114 if test -n "\${ZSH_VERSION+set}" ; then
12115 setopt NO_GLOB_SUBST
12119 PACKAGE='$PACKAGE'
12120 VERSION='$VERSION'
12121 TIMESTAMP='$TIMESTAMP'
12122 RM='$RM'
12123 ofile='$ofile'
12127 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12128 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12129 # from automake.
12130 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12131 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12132 LINGUAS="${LINGUAS-%UNSET%}"
12135 _ACEOF
12139 cat >>$CONFIG_STATUS <<\_ACEOF
12140 for ac_config_target in $ac_config_targets
12142 case "$ac_config_target" in
12143 # Handling of arguments.
12144 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12145 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12146 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12147 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12148 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12149 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12150 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12152 { (exit 1); exit 1; }; };;
12153 esac
12154 done
12156 # If the user did not use the arguments to specify the items to instantiate,
12157 # then the envvar interface is used. Set only those that are not.
12158 # We use the long form for the default assignment because of an extremely
12159 # bizarre bug on SunOS 4.1.3.
12160 if $ac_need_defaults; then
12161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12166 # Have a temporary directory for convenience. Make it in the build tree
12167 # simply because there is no reason to put it here, and in addition,
12168 # creating and moving files from /tmp can sometimes cause problems.
12169 # Create a temporary directory, and hook for its removal unless debugging.
12170 $debug ||
12172 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12173 trap '{ (exit 1); exit 1; }' 1 2 13 15
12176 # Create a (secure) tmp directory for tmp files.
12179 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12180 test -n "$tmp" && test -d "$tmp"
12181 } ||
12183 tmp=./confstat$$-$RANDOM
12184 (umask 077 && mkdir $tmp)
12185 } ||
12187 echo "$me: cannot create a temporary directory in ." >&2
12188 { (exit 1); exit 1; }
12191 _ACEOF
12193 cat >>$CONFIG_STATUS <<_ACEOF
12196 # CONFIG_FILES section.
12199 # No need to generate the scripts if there are no CONFIG_FILES.
12200 # This happens for instance when ./config.status config.h
12201 if test -n "\$CONFIG_FILES"; then
12202 # Protect against being on the right side of a sed subst in config.status.
12203 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12204 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12205 s,@SHELL@,$SHELL,;t t
12206 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12207 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12208 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12209 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12210 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12211 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12212 s,@exec_prefix@,$exec_prefix,;t t
12213 s,@prefix@,$prefix,;t t
12214 s,@program_transform_name@,$program_transform_name,;t t
12215 s,@bindir@,$bindir,;t t
12216 s,@sbindir@,$sbindir,;t t
12217 s,@libexecdir@,$libexecdir,;t t
12218 s,@datadir@,$datadir,;t t
12219 s,@sysconfdir@,$sysconfdir,;t t
12220 s,@sharedstatedir@,$sharedstatedir,;t t
12221 s,@localstatedir@,$localstatedir,;t t
12222 s,@libdir@,$libdir,;t t
12223 s,@includedir@,$includedir,;t t
12224 s,@oldincludedir@,$oldincludedir,;t t
12225 s,@infodir@,$infodir,;t t
12226 s,@mandir@,$mandir,;t t
12227 s,@build_alias@,$build_alias,;t t
12228 s,@host_alias@,$host_alias,;t t
12229 s,@target_alias@,$target_alias,;t t
12230 s,@DEFS@,$DEFS,;t t
12231 s,@ECHO_C@,$ECHO_C,;t t
12232 s,@ECHO_N@,$ECHO_N,;t t
12233 s,@ECHO_T@,$ECHO_T,;t t
12234 s,@LIBS@,$LIBS,;t t
12235 s,@build@,$build,;t t
12236 s,@build_cpu@,$build_cpu,;t t
12237 s,@build_vendor@,$build_vendor,;t t
12238 s,@build_os@,$build_os,;t t
12239 s,@host@,$host,;t t
12240 s,@host_cpu@,$host_cpu,;t t
12241 s,@host_vendor@,$host_vendor,;t t
12242 s,@host_os@,$host_os,;t t
12243 s,@target@,$target,;t t
12244 s,@target_cpu@,$target_cpu,;t t
12245 s,@target_vendor@,$target_vendor,;t t
12246 s,@target_os@,$target_os,;t t
12247 s,@CC@,$CC,;t t
12248 s,@CFLAGS@,$CFLAGS,;t t
12249 s,@LDFLAGS@,$LDFLAGS,;t t
12250 s,@CPPFLAGS@,$CPPFLAGS,;t t
12251 s,@ac_ct_CC@,$ac_ct_CC,;t t
12252 s,@EXEEXT@,$EXEEXT,;t t
12253 s,@OBJEXT@,$OBJEXT,;t t
12254 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12255 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12256 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12257 s,@CYGPATH_W@,$CYGPATH_W,;t t
12258 s,@PACKAGE@,$PACKAGE,;t t
12259 s,@VERSION@,$VERSION,;t t
12260 s,@ACLOCAL@,$ACLOCAL,;t t
12261 s,@AUTOCONF@,$AUTOCONF,;t t
12262 s,@AUTOMAKE@,$AUTOMAKE,;t t
12263 s,@AUTOHEADER@,$AUTOHEADER,;t t
12264 s,@MAKEINFO@,$MAKEINFO,;t t
12265 s,@install_sh@,$install_sh,;t t
12266 s,@STRIP@,$STRIP,;t t
12267 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12268 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12269 s,@mkdir_p@,$mkdir_p,;t t
12270 s,@AWK@,$AWK,;t t
12271 s,@SET_MAKE@,$SET_MAKE,;t t
12272 s,@am__leading_dot@,$am__leading_dot,;t t
12273 s,@AMTAR@,$AMTAR,;t t
12274 s,@am__tar@,$am__tar,;t t
12275 s,@am__untar@,$am__untar,;t t
12276 s,@DEPDIR@,$DEPDIR,;t t
12277 s,@am__include@,$am__include,;t t
12278 s,@am__quote@,$am__quote,;t t
12279 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12280 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12281 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12282 s,@CCDEPMODE@,$CCDEPMODE,;t t
12283 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12284 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12285 s,@LIBTOOL@,$LIBTOOL,;t t
12286 s,@SED@,$SED,;t t
12287 s,@EGREP@,$EGREP,;t t
12288 s,@FGREP@,$FGREP,;t t
12289 s,@GREP@,$GREP,;t t
12290 s,@LD@,$LD,;t t
12291 s,@DUMPBIN@,$DUMPBIN,;t t
12292 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12293 s,@NM@,$NM,;t t
12294 s,@LN_S@,$LN_S,;t t
12295 s,@AR@,$AR,;t t
12296 s,@ac_ct_AR@,$ac_ct_AR,;t t
12297 s,@RANLIB@,$RANLIB,;t t
12298 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12299 s,@lt_ECHO@,$lt_ECHO,;t t
12300 s,@CPP@,$CPP,;t t
12301 s,@USE_NLS@,$USE_NLS,;t t
12302 s,@LIBINTL@,$LIBINTL,;t t
12303 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12304 s,@INCINTL@,$INCINTL,;t t
12305 s,@XGETTEXT@,$XGETTEXT,;t t
12306 s,@GMSGFMT@,$GMSGFMT,;t t
12307 s,@POSUB@,$POSUB,;t t
12308 s,@CATALOGS@,$CATALOGS,;t t
12309 s,@DATADIRNAME@,$DATADIRNAME,;t t
12310 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12311 s,@GENCAT@,$GENCAT,;t t
12312 s,@CATOBJEXT@,$CATOBJEXT,;t t
12313 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12314 s,@MSGFMT@,$MSGFMT,;t t
12315 s,@MSGMERGE@,$MSGMERGE,;t t
12316 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12317 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12318 s,@MAINT@,$MAINT,;t t
12319 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
12320 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
12321 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12322 s,@NO_WERROR@,$NO_WERROR,;t t
12323 s,@datarootdir@,$datarootdir,;t t
12324 s,@docdir@,$docdir,;t t
12325 s,@htmldir@,$htmldir,;t t
12326 s,@LIBOBJS@,$LIBOBJS,;t t
12327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12328 CEOF
12330 _ACEOF
12332 cat >>$CONFIG_STATUS <<\_ACEOF
12333 # Split the substitutions into bite-sized pieces for seds with
12334 # small command number limits, like on Digital OSF/1 and HP-UX.
12335 ac_max_sed_lines=48
12336 ac_sed_frag=1 # Number of current file.
12337 ac_beg=1 # First line for current file.
12338 ac_end=$ac_max_sed_lines # Line after last line for current file.
12339 ac_more_lines=:
12340 ac_sed_cmds=
12341 while $ac_more_lines; do
12342 if test $ac_beg -gt 1; then
12343 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12344 else
12345 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12347 if test ! -s $tmp/subs.frag; then
12348 ac_more_lines=false
12349 else
12350 # The purpose of the label and of the branching condition is to
12351 # speed up the sed processing (if there are no `@' at all, there
12352 # is no need to browse any of the substitutions).
12353 # These are the two extra sed commands mentioned above.
12354 (echo ':t
12355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12356 if test -z "$ac_sed_cmds"; then
12357 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12358 else
12359 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12361 ac_sed_frag=`expr $ac_sed_frag + 1`
12362 ac_beg=$ac_end
12363 ac_end=`expr $ac_end + $ac_max_sed_lines`
12365 done
12366 if test -z "$ac_sed_cmds"; then
12367 ac_sed_cmds=cat
12369 fi # test -n "$CONFIG_FILES"
12371 _ACEOF
12372 cat >>$CONFIG_STATUS <<\_ACEOF
12373 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12375 case $ac_file in
12376 - | *:- | *:-:* ) # input from stdin
12377 cat >$tmp/stdin
12378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12382 * ) ac_file_in=$ac_file.in ;;
12383 esac
12385 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12388 X"$ac_file" : 'X\(//\)[^/]' \| \
12389 X"$ac_file" : 'X\(//\)$' \| \
12390 X"$ac_file" : 'X\(/\)' \| \
12391 . : '\(.\)' 2>/dev/null ||
12392 echo X"$ac_file" |
12393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12395 /^X\(\/\/\)$/{ s//\1/; q; }
12396 /^X\(\/\).*/{ s//\1/; q; }
12397 s/.*/./; q'`
12398 { if $as_mkdir_p; then
12399 mkdir -p "$ac_dir"
12400 else
12401 as_dir="$ac_dir"
12402 as_dirs=
12403 while test ! -d "$as_dir"; do
12404 as_dirs="$as_dir $as_dirs"
12405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12407 X"$as_dir" : 'X\(//\)[^/]' \| \
12408 X"$as_dir" : 'X\(//\)$' \| \
12409 X"$as_dir" : 'X\(/\)' \| \
12410 . : '\(.\)' 2>/dev/null ||
12411 echo X"$as_dir" |
12412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12414 /^X\(\/\/\)$/{ s//\1/; q; }
12415 /^X\(\/\).*/{ s//\1/; q; }
12416 s/.*/./; q'`
12417 done
12418 test ! -n "$as_dirs" || mkdir $as_dirs
12419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12421 { (exit 1); exit 1; }; }; }
12423 ac_builddir=.
12425 if test "$ac_dir" != .; then
12426 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12427 # A "../" for each directory in $ac_dir_suffix.
12428 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12429 else
12430 ac_dir_suffix= ac_top_builddir=
12433 case $srcdir in
12434 .) # No --srcdir option. We are building in place.
12435 ac_srcdir=.
12436 if test -z "$ac_top_builddir"; then
12437 ac_top_srcdir=.
12438 else
12439 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12440 fi ;;
12441 [\\/]* | ?:[\\/]* ) # Absolute path.
12442 ac_srcdir=$srcdir$ac_dir_suffix;
12443 ac_top_srcdir=$srcdir ;;
12444 *) # Relative path.
12445 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12446 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12447 esac
12449 # Do not use `cd foo && pwd` to compute absolute paths, because
12450 # the directories may not exist.
12451 case `pwd` in
12452 .) ac_abs_builddir="$ac_dir";;
12454 case "$ac_dir" in
12455 .) ac_abs_builddir=`pwd`;;
12456 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12457 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12458 esac;;
12459 esac
12460 case $ac_abs_builddir in
12461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12463 case ${ac_top_builddir}. in
12464 .) ac_abs_top_builddir=$ac_abs_builddir;;
12465 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12466 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12467 esac;;
12468 esac
12469 case $ac_abs_builddir in
12470 .) ac_abs_srcdir=$ac_srcdir;;
12472 case $ac_srcdir in
12473 .) ac_abs_srcdir=$ac_abs_builddir;;
12474 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12475 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12476 esac;;
12477 esac
12478 case $ac_abs_builddir in
12479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12481 case $ac_top_srcdir in
12482 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12483 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12484 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12485 esac;;
12486 esac
12489 case $INSTALL in
12490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12491 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12492 esac
12494 if test x"$ac_file" != x-; then
12495 { echo "$as_me:$LINENO: creating $ac_file" >&5
12496 echo "$as_me: creating $ac_file" >&6;}
12497 rm -f "$ac_file"
12499 # Let's still pretend it is `configure' which instantiates (i.e., don't
12500 # use $as_me), people would be surprised to read:
12501 # /* config.h. Generated by config.status. */
12502 if test x"$ac_file" = x-; then
12503 configure_input=
12504 else
12505 configure_input="$ac_file. "
12507 configure_input=$configure_input"Generated from `echo $ac_file_in |
12508 sed 's,.*/,,'` by configure."
12510 # First look for the input files in the build tree, otherwise in the
12511 # src tree.
12512 ac_file_inputs=`IFS=:
12513 for f in $ac_file_in; do
12514 case $f in
12515 -) echo $tmp/stdin ;;
12516 [\\/$]*)
12517 # Absolute (can't be DOS-style, as IFS=:)
12518 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12519 echo "$as_me: error: cannot find input file: $f" >&2;}
12520 { (exit 1); exit 1; }; }
12521 echo "$f";;
12522 *) # Relative
12523 if test -f "$f"; then
12524 # Build tree
12525 echo "$f"
12526 elif test -f "$srcdir/$f"; then
12527 # Source tree
12528 echo "$srcdir/$f"
12529 else
12530 # /dev/null tree
12531 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12532 echo "$as_me: error: cannot find input file: $f" >&2;}
12533 { (exit 1); exit 1; }; }
12534 fi;;
12535 esac
12536 done` || { (exit 1); exit 1; }
12537 _ACEOF
12538 cat >>$CONFIG_STATUS <<_ACEOF
12539 sed "$ac_vpsub
12540 $extrasub
12541 _ACEOF
12542 cat >>$CONFIG_STATUS <<\_ACEOF
12544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12545 s,@configure_input@,$configure_input,;t t
12546 s,@srcdir@,$ac_srcdir,;t t
12547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12548 s,@top_srcdir@,$ac_top_srcdir,;t t
12549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12550 s,@builddir@,$ac_builddir,;t t
12551 s,@abs_builddir@,$ac_abs_builddir,;t t
12552 s,@top_builddir@,$ac_top_builddir,;t t
12553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12554 s,@INSTALL@,$ac_INSTALL,;t t
12555 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12556 rm -f $tmp/stdin
12557 if test x"$ac_file" != x-; then
12558 mv $tmp/out $ac_file
12559 else
12560 cat $tmp/out
12561 rm -f $tmp/out
12564 done
12565 _ACEOF
12566 cat >>$CONFIG_STATUS <<\_ACEOF
12569 # CONFIG_HEADER section.
12572 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12573 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12575 # ac_d sets the value in "#define NAME VALUE" lines.
12576 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12577 ac_dB='[ ].*$,\1#\2'
12578 ac_dC=' '
12579 ac_dD=',;t'
12580 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12581 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12582 ac_uB='$,\1#\2define\3'
12583 ac_uC=' '
12584 ac_uD=',;t'
12586 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12588 case $ac_file in
12589 - | *:- | *:-:* ) # input from stdin
12590 cat >$tmp/stdin
12591 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12593 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12595 * ) ac_file_in=$ac_file.in ;;
12596 esac
12598 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12599 echo "$as_me: creating $ac_file" >&6;}
12601 # First look for the input files in the build tree, otherwise in the
12602 # src tree.
12603 ac_file_inputs=`IFS=:
12604 for f in $ac_file_in; do
12605 case $f in
12606 -) echo $tmp/stdin ;;
12607 [\\/$]*)
12608 # Absolute (can't be DOS-style, as IFS=:)
12609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12610 echo "$as_me: error: cannot find input file: $f" >&2;}
12611 { (exit 1); exit 1; }; }
12612 # Do quote $f, to prevent DOS paths from being IFS'd.
12613 echo "$f";;
12614 *) # Relative
12615 if test -f "$f"; then
12616 # Build tree
12617 echo "$f"
12618 elif test -f "$srcdir/$f"; then
12619 # Source tree
12620 echo "$srcdir/$f"
12621 else
12622 # /dev/null tree
12623 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12624 echo "$as_me: error: cannot find input file: $f" >&2;}
12625 { (exit 1); exit 1; }; }
12626 fi;;
12627 esac
12628 done` || { (exit 1); exit 1; }
12629 # Remove the trailing spaces.
12630 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12632 _ACEOF
12634 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12635 # `conftest.undefs', that substitutes the proper values into
12636 # config.h.in to produce config.h. The first handles `#define'
12637 # templates, and the second `#undef' templates.
12638 # And first: Protect against being on the right side of a sed subst in
12639 # config.status. Protect against being in an unquoted here document
12640 # in config.status.
12641 rm -f conftest.defines conftest.undefs
12642 # Using a here document instead of a string reduces the quoting nightmare.
12643 # Putting comments in sed scripts is not portable.
12645 # `end' is used to avoid that the second main sed command (meant for
12646 # 0-ary CPP macros) applies to n-ary macro definitions.
12647 # See the Autoconf documentation for `clear'.
12648 cat >confdef2sed.sed <<\_ACEOF
12649 s/[\\&,]/\\&/g
12650 s,[\\$`],\\&,g
12651 t clear
12652 : clear
12653 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12654 t end
12655 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12656 : end
12657 _ACEOF
12658 # If some macros were called several times there might be several times
12659 # the same #defines, which is useless. Nevertheless, we may not want to
12660 # sort them, since we want the *last* AC-DEFINE to be honored.
12661 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12662 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12663 rm -f confdef2sed.sed
12665 # This sed command replaces #undef with comments. This is necessary, for
12666 # example, in the case of _POSIX_SOURCE, which is predefined and required
12667 # on some systems where configure will not decide to define it.
12668 cat >>conftest.undefs <<\_ACEOF
12669 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12670 _ACEOF
12672 # Break up conftest.defines because some shells have a limit on the size
12673 # of here documents, and old seds have small limits too (100 cmds).
12674 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12675 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12676 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12677 echo ' :' >>$CONFIG_STATUS
12678 rm -f conftest.tail
12679 while grep . conftest.defines >/dev/null
12681 # Write a limited-size here document to $tmp/defines.sed.
12682 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12683 # Speed up: don't consider the non `#define' lines.
12684 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12685 # Work around the forget-to-reset-the-flag bug.
12686 echo 't clr' >>$CONFIG_STATUS
12687 echo ': clr' >>$CONFIG_STATUS
12688 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12689 echo 'CEOF
12690 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12691 rm -f $tmp/in
12692 mv $tmp/out $tmp/in
12693 ' >>$CONFIG_STATUS
12694 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12695 rm -f conftest.defines
12696 mv conftest.tail conftest.defines
12697 done
12698 rm -f conftest.defines
12699 echo ' fi # grep' >>$CONFIG_STATUS
12700 echo >>$CONFIG_STATUS
12702 # Break up conftest.undefs because some shells have a limit on the size
12703 # of here documents, and old seds have small limits too (100 cmds).
12704 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12705 rm -f conftest.tail
12706 while grep . conftest.undefs >/dev/null
12708 # Write a limited-size here document to $tmp/undefs.sed.
12709 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12710 # Speed up: don't consider the non `#undef'
12711 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12712 # Work around the forget-to-reset-the-flag bug.
12713 echo 't clr' >>$CONFIG_STATUS
12714 echo ': clr' >>$CONFIG_STATUS
12715 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12716 echo 'CEOF
12717 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12718 rm -f $tmp/in
12719 mv $tmp/out $tmp/in
12720 ' >>$CONFIG_STATUS
12721 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12722 rm -f conftest.undefs
12723 mv conftest.tail conftest.undefs
12724 done
12725 rm -f conftest.undefs
12727 cat >>$CONFIG_STATUS <<\_ACEOF
12728 # Let's still pretend it is `configure' which instantiates (i.e., don't
12729 # use $as_me), people would be surprised to read:
12730 # /* config.h. Generated by config.status. */
12731 if test x"$ac_file" = x-; then
12732 echo "/* Generated by configure. */" >$tmp/config.h
12733 else
12734 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12736 cat $tmp/in >>$tmp/config.h
12737 rm -f $tmp/in
12738 if test x"$ac_file" != x-; then
12739 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12741 echo "$as_me: $ac_file is unchanged" >&6;}
12742 else
12743 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12745 X"$ac_file" : 'X\(//\)[^/]' \| \
12746 X"$ac_file" : 'X\(//\)$' \| \
12747 X"$ac_file" : 'X\(/\)' \| \
12748 . : '\(.\)' 2>/dev/null ||
12749 echo X"$ac_file" |
12750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12752 /^X\(\/\/\)$/{ s//\1/; q; }
12753 /^X\(\/\).*/{ s//\1/; q; }
12754 s/.*/./; q'`
12755 { if $as_mkdir_p; then
12756 mkdir -p "$ac_dir"
12757 else
12758 as_dir="$ac_dir"
12759 as_dirs=
12760 while test ! -d "$as_dir"; do
12761 as_dirs="$as_dir $as_dirs"
12762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12764 X"$as_dir" : 'X\(//\)[^/]' \| \
12765 X"$as_dir" : 'X\(//\)$' \| \
12766 X"$as_dir" : 'X\(/\)' \| \
12767 . : '\(.\)' 2>/dev/null ||
12768 echo X"$as_dir" |
12769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12771 /^X\(\/\/\)$/{ s//\1/; q; }
12772 /^X\(\/\).*/{ s//\1/; q; }
12773 s/.*/./; q'`
12774 done
12775 test ! -n "$as_dirs" || mkdir $as_dirs
12776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12778 { (exit 1); exit 1; }; }; }
12780 rm -f $ac_file
12781 mv $tmp/config.h $ac_file
12783 else
12784 cat $tmp/config.h
12785 rm -f $tmp/config.h
12787 # Compute $ac_file's index in $config_headers.
12788 _am_stamp_count=1
12789 for _am_header in $config_headers :; do
12790 case $_am_header in
12791 $ac_file | $ac_file:* )
12792 break ;;
12794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12795 esac
12796 done
12797 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12798 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12799 X$ac_file : 'X\(//\)[^/]' \| \
12800 X$ac_file : 'X\(//\)$' \| \
12801 X$ac_file : 'X\(/\)' \| \
12802 . : '\(.\)' 2>/dev/null ||
12803 echo X$ac_file |
12804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12806 /^X\(\/\/\)$/{ s//\1/; q; }
12807 /^X\(\/\).*/{ s//\1/; q; }
12808 s/.*/./; q'`/stamp-h$_am_stamp_count
12809 done
12810 _ACEOF
12811 cat >>$CONFIG_STATUS <<\_ACEOF
12814 # CONFIG_COMMANDS section.
12816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12821 X"$ac_dest" : 'X\(//\)[^/]' \| \
12822 X"$ac_dest" : 'X\(//\)$' \| \
12823 X"$ac_dest" : 'X\(/\)' \| \
12824 . : '\(.\)' 2>/dev/null ||
12825 echo X"$ac_dest" |
12826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12828 /^X\(\/\/\)$/{ s//\1/; q; }
12829 /^X\(\/\).*/{ s//\1/; q; }
12830 s/.*/./; q'`
12831 { if $as_mkdir_p; then
12832 mkdir -p "$ac_dir"
12833 else
12834 as_dir="$ac_dir"
12835 as_dirs=
12836 while test ! -d "$as_dir"; do
12837 as_dirs="$as_dir $as_dirs"
12838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12840 X"$as_dir" : 'X\(//\)[^/]' \| \
12841 X"$as_dir" : 'X\(//\)$' \| \
12842 X"$as_dir" : 'X\(/\)' \| \
12843 . : '\(.\)' 2>/dev/null ||
12844 echo X"$as_dir" |
12845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12847 /^X\(\/\/\)$/{ s//\1/; q; }
12848 /^X\(\/\).*/{ s//\1/; q; }
12849 s/.*/./; q'`
12850 done
12851 test ! -n "$as_dirs" || mkdir $as_dirs
12852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12854 { (exit 1); exit 1; }; }; }
12856 ac_builddir=.
12858 if test "$ac_dir" != .; then
12859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12860 # A "../" for each directory in $ac_dir_suffix.
12861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12862 else
12863 ac_dir_suffix= ac_top_builddir=
12866 case $srcdir in
12867 .) # No --srcdir option. We are building in place.
12868 ac_srcdir=.
12869 if test -z "$ac_top_builddir"; then
12870 ac_top_srcdir=.
12871 else
12872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12873 fi ;;
12874 [\\/]* | ?:[\\/]* ) # Absolute path.
12875 ac_srcdir=$srcdir$ac_dir_suffix;
12876 ac_top_srcdir=$srcdir ;;
12877 *) # Relative path.
12878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12880 esac
12882 # Do not use `cd foo && pwd` to compute absolute paths, because
12883 # the directories may not exist.
12884 case `pwd` in
12885 .) ac_abs_builddir="$ac_dir";;
12887 case "$ac_dir" in
12888 .) ac_abs_builddir=`pwd`;;
12889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12891 esac;;
12892 esac
12893 case $ac_abs_builddir in
12894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12896 case ${ac_top_builddir}. in
12897 .) ac_abs_top_builddir=$ac_abs_builddir;;
12898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12900 esac;;
12901 esac
12902 case $ac_abs_builddir in
12903 .) ac_abs_srcdir=$ac_srcdir;;
12905 case $ac_srcdir in
12906 .) ac_abs_srcdir=$ac_abs_builddir;;
12907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12909 esac;;
12910 esac
12911 case $ac_abs_builddir in
12912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12914 case $ac_top_srcdir in
12915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12918 esac;;
12919 esac
12922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12923 echo "$as_me: executing $ac_dest commands" >&6;}
12924 case $ac_dest in
12925 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12926 # Strip MF so we end up with the name of the file.
12927 mf=`echo "$mf" | sed -e 's/:.*$//'`
12928 # Check whether this is an Automake generated Makefile or not.
12929 # We used to match only the files named `Makefile.in', but
12930 # some people rename them; so instead we look at the file content.
12931 # Grep'ing the first line is not enough: some people post-process
12932 # each Makefile.in and add a new line on top of each file to say so.
12933 # So let's grep whole file.
12934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12935 dirpart=`(dirname "$mf") 2>/dev/null ||
12936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12937 X"$mf" : 'X\(//\)[^/]' \| \
12938 X"$mf" : 'X\(//\)$' \| \
12939 X"$mf" : 'X\(/\)' \| \
12940 . : '\(.\)' 2>/dev/null ||
12941 echo X"$mf" |
12942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12944 /^X\(\/\/\)$/{ s//\1/; q; }
12945 /^X\(\/\).*/{ s//\1/; q; }
12946 s/.*/./; q'`
12947 else
12948 continue
12950 # Extract the definition of DEPDIR, am__include, and am__quote
12951 # from the Makefile without running `make'.
12952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12953 test -z "$DEPDIR" && continue
12954 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12955 test -z "am__include" && continue
12956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12957 # When using ansi2knr, U may be empty or an underscore; expand it
12958 U=`sed -n 's/^U = //p' < "$mf"`
12959 # Find all dependency output files, they are included files with
12960 # $(DEPDIR) in their names. We invoke sed twice because it is the
12961 # simplest approach to changing $(DEPDIR) to its actual value in the
12962 # expansion.
12963 for file in `sed -n "
12964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12966 # Make sure the directory exists.
12967 test -f "$dirpart/$file" && continue
12968 fdir=`(dirname "$file") 2>/dev/null ||
12969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12970 X"$file" : 'X\(//\)[^/]' \| \
12971 X"$file" : 'X\(//\)$' \| \
12972 X"$file" : 'X\(/\)' \| \
12973 . : '\(.\)' 2>/dev/null ||
12974 echo X"$file" |
12975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12977 /^X\(\/\/\)$/{ s//\1/; q; }
12978 /^X\(\/\).*/{ s//\1/; q; }
12979 s/.*/./; q'`
12980 { if $as_mkdir_p; then
12981 mkdir -p $dirpart/$fdir
12982 else
12983 as_dir=$dirpart/$fdir
12984 as_dirs=
12985 while test ! -d "$as_dir"; do
12986 as_dirs="$as_dir $as_dirs"
12987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12989 X"$as_dir" : 'X\(//\)[^/]' \| \
12990 X"$as_dir" : 'X\(//\)$' \| \
12991 X"$as_dir" : 'X\(/\)' \| \
12992 . : '\(.\)' 2>/dev/null ||
12993 echo X"$as_dir" |
12994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12996 /^X\(\/\/\)$/{ s//\1/; q; }
12997 /^X\(\/\).*/{ s//\1/; q; }
12998 s/.*/./; q'`
12999 done
13000 test ! -n "$as_dirs" || mkdir $as_dirs
13001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13002 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13003 { (exit 1); exit 1; }; }; }
13005 # echo "creating $dirpart/$file"
13006 echo '# dummy' > "$dirpart/$file"
13007 done
13008 done
13010 libtool )
13012 # See if we are running on zsh, and set the options which allow our
13013 # commands through without removal of \ escapes.
13014 if test -n "${ZSH_VERSION+set}" ; then
13015 setopt NO_GLOB_SUBST
13018 cfgfile="${ofile}T"
13019 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13020 $RM "$cfgfile"
13022 cat <<_LT_EOF >> "$cfgfile"
13023 #! $SHELL
13025 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13026 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13028 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13030 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13031 # 2006, 2007 Free Software Foundation, Inc.
13033 # This file is part of GNU Libtool:
13034 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13036 # This program is free software; you can redistribute it and/or modify
13037 # it under the terms of the GNU General Public License as published by
13038 # the Free Software Foundation; either version 2 of the License, or
13039 # (at your option) any later version.
13041 # This program is distributed in the hope that it will be useful, but
13042 # WITHOUT ANY WARRANTY; without even the implied warranty of
13043 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13044 # General Public License for more details.
13046 # You should have received a copy of the GNU General Public License
13047 # along with this program; if not, a copy can be downloaded from
13048 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13049 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13050 # MA 02110-1301, USA.
13052 # As a special exception to the GNU General Public License, if you
13053 # distribute this file as part of a program that contains a
13054 # configuration script generated by Autoconf, you may include it under
13055 # the same distribution terms that you use for the rest of that program.
13058 # The names of the tagged configurations supported by this script.
13059 available_tags=""
13061 # ### BEGIN LIBTOOL CONFIG
13063 # Which release of libtool.m4 was used?
13064 macro_version=$macro_version
13065 macro_revision=$macro_revision
13067 # Whether or not to build shared libraries.
13068 build_libtool_libs=$enable_shared
13070 # Whether or not to build static libraries.
13071 build_old_libs=$enable_static
13073 # What type of objects to build.
13074 pic_mode=$pic_mode
13076 # Whether or not to optimize for fast installation.
13077 fast_install=$enable_fast_install
13079 # The host system.
13080 host_alias=$host_alias
13081 host=$host
13082 host_os=$host_os
13084 # The build system.
13085 build_alias=$build_alias
13086 build=$build
13087 build_os=$build_os
13089 # A sed program that does not truncate output.
13090 SED=$lt_SED
13092 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13093 Xsed="\$SED -e 1s/^X//"
13095 # A grep program that handles long lines.
13096 GREP=$lt_GREP
13098 # An ERE matcher.
13099 EGREP=$lt_EGREP
13101 # A literal string matcher.
13102 FGREP=$lt_FGREP
13104 # A BSD- or MS-compatible name lister.
13105 NM=$lt_NM
13107 # Whether we need soft or hard links.
13108 LN_S=$lt_LN_S
13110 # What is the maximum length of a command?
13111 max_cmd_len=$max_cmd_len
13113 # Object file suffix (normally "o").
13114 objext=$ac_objext
13116 # Executable file suffix (normally "").
13117 exeext=$exeext
13119 # whether the shell understands "unset".
13120 lt_unset=$lt_unset
13122 # turn spaces into newlines.
13123 SP2NL=$lt_lt_SP2NL
13125 # turn newlines into spaces.
13126 NL2SP=$lt_lt_NL2SP
13128 # How to create reloadable object files.
13129 reload_flag=$lt_reload_flag
13130 reload_cmds=$lt_reload_cmds
13132 # Method to check whether dependent libraries are shared objects.
13133 deplibs_check_method=$lt_deplibs_check_method
13135 # Command to use when deplibs_check_method == "file_magic".
13136 file_magic_cmd=$lt_file_magic_cmd
13138 # The archiver.
13139 AR=$lt_AR
13140 AR_FLAGS=$lt_AR_FLAGS
13142 # A symbol stripping program.
13143 STRIP=$lt_STRIP
13145 # Commands used to install an old-style archive.
13146 RANLIB=$lt_RANLIB
13147 old_postinstall_cmds=$lt_old_postinstall_cmds
13148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13150 # A C compiler.
13151 LTCC=$lt_CC
13153 # LTCC compiler flags.
13154 LTCFLAGS=$lt_CFLAGS
13156 # Take the output of nm and produce a listing of raw symbols and C names.
13157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13159 # Transform the output of nm in a proper C declaration.
13160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13162 # Transform the output of nm in a C name address pair.
13163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13165 # The name of the directory that contains temporary libtool files.
13166 objdir=$objdir
13168 # Shell to use when invoking shell scripts.
13169 SHELL=$lt_SHELL
13171 # An echo program that does not interpret backslashes.
13172 ECHO=$lt_ECHO
13174 # Used to examine libraries when file_magic_cmd begins with "file".
13175 MAGIC_CMD=$MAGIC_CMD
13177 # Must we lock files when doing compilation?
13178 need_locks=$lt_need_locks
13180 # Old archive suffix (normally "a").
13181 libext=$libext
13183 # Shared library suffix (normally ".so").
13184 shrext_cmds=$lt_shrext_cmds
13186 # The commands to extract the exported symbol list from a shared archive.
13187 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13189 # Variables whose values should be saved in libtool wrapper scripts and
13190 # restored at link time.
13191 variables_saved_for_relink=$lt_variables_saved_for_relink
13193 # Do we need the "lib" prefix for modules?
13194 need_lib_prefix=$need_lib_prefix
13196 # Do we need a version for libraries?
13197 need_version=$need_version
13199 # Library versioning type.
13200 version_type=$version_type
13202 # Shared library runtime path variable.
13203 runpath_var=$runpath_var
13205 # Shared library path variable.
13206 shlibpath_var=$shlibpath_var
13208 # Is shlibpath searched before the hard-coded library search path?
13209 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13211 # Format of library name prefix.
13212 libname_spec=$lt_libname_spec
13214 # List of archive names. First name is the real one, the rest are links.
13215 # The last name is the one that the linker finds with -lNAME
13216 library_names_spec=$lt_library_names_spec
13218 # The coded name of the library, if different from the real name.
13219 soname_spec=$lt_soname_spec
13221 # Command to use after installation of a shared archive.
13222 postinstall_cmds=$lt_postinstall_cmds
13224 # Command to use after uninstallation of a shared archive.
13225 postuninstall_cmds=$lt_postuninstall_cmds
13227 # Commands used to finish a libtool library installation in a directory.
13228 finish_cmds=$lt_finish_cmds
13230 # As "finish_cmds", except a single script fragment to be evaled but
13231 # not shown.
13232 finish_eval=$lt_finish_eval
13234 # Whether we should hardcode library paths into libraries.
13235 hardcode_into_libs=$hardcode_into_libs
13237 # Compile-time system search path for libraries.
13238 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13240 # Run-time system search path for libraries.
13241 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13243 # Whether dlopen is supported.
13244 dlopen_support=$enable_dlopen
13246 # Whether dlopen of programs is supported.
13247 dlopen_self=$enable_dlopen_self
13249 # Whether dlopen of statically linked programs is supported.
13250 dlopen_self_static=$enable_dlopen_self_static
13252 # Commands to strip libraries.
13253 old_striplib=$lt_old_striplib
13254 striplib=$lt_striplib
13257 # The linker used to build libraries.
13258 LD=$lt_LD
13260 # Commands used to build an old-style archive.
13261 old_archive_cmds=$lt_old_archive_cmds
13263 # A language specific compiler.
13264 CC=$lt_compiler
13266 # Is the compiler the GNU compiler?
13267 with_gcc=$GCC
13269 # Compiler flag to turn off builtin functions.
13270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13272 # How to pass a linker flag through the compiler.
13273 wl=$lt_lt_prog_compiler_wl
13275 # Additional compiler flags for building library objects.
13276 pic_flag=$lt_lt_prog_compiler_pic
13278 # Compiler flag to prevent dynamic linking.
13279 link_static_flag=$lt_lt_prog_compiler_static
13281 # Does compiler simultaneously support -c and -o options?
13282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13284 # Whether or not to add -lc for building shared libraries.
13285 build_libtool_need_lc=$archive_cmds_need_lc
13287 # Whether or not to disallow shared libs when runtime libs are static.
13288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13290 # Compiler flag to allow reflexive dlopens.
13291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13293 # Compiler flag to generate shared objects directly from archives.
13294 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13296 # Whether the compiler copes with passing no objects directly.
13297 compiler_needs_object=$lt_compiler_needs_object
13299 # Create an old-style archive from a shared archive.
13300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13302 # Create a temporary old-style archive to link instead of a shared archive.
13303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13305 # Commands used to build a shared archive.
13306 archive_cmds=$lt_archive_cmds
13307 archive_expsym_cmds=$lt_archive_expsym_cmds
13309 # Commands used to build a loadable module if different from building
13310 # a shared archive.
13311 module_cmds=$lt_module_cmds
13312 module_expsym_cmds=$lt_module_expsym_cmds
13314 # Whether we are building with GNU ld or not.
13315 with_gnu_ld=$lt_with_gnu_ld
13317 # Flag that allows shared libraries with undefined symbols to be built.
13318 allow_undefined_flag=$lt_allow_undefined_flag
13320 # Flag that enforces no undefined symbols.
13321 no_undefined_flag=$lt_no_undefined_flag
13323 # Flag to hardcode \$libdir into a binary during linking.
13324 # This must work even if \$libdir does not exist
13325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13327 # If ld is used when linking, flag to hardcode \$libdir into a binary
13328 # during linking. This must work even if \$libdir does not exist.
13329 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13331 # Whether we need a single "-rpath" flag with a separated argument.
13332 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13335 # DIR into the resulting binary.
13336 hardcode_direct=$hardcode_direct
13338 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13339 # DIR into the resulting binary and the resulting library dependency is
13340 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13341 # library is relocated.
13342 hardcode_direct_absolute=$hardcode_direct_absolute
13344 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13345 # into the resulting binary.
13346 hardcode_minus_L=$hardcode_minus_L
13348 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13349 # into the resulting binary.
13350 hardcode_shlibpath_var=$hardcode_shlibpath_var
13352 # Set to "yes" if building a shared library automatically hardcodes DIR
13353 # into the library and all subsequent libraries and executables linked
13354 # against it.
13355 hardcode_automatic=$hardcode_automatic
13357 # Set to yes if linker adds runtime paths of dependent libraries
13358 # to runtime path list.
13359 inherit_rpath=$inherit_rpath
13361 # Whether libtool must link a program against all its dependency libraries.
13362 link_all_deplibs=$link_all_deplibs
13364 # Fix the shell variable \$srcfile for the compiler.
13365 fix_srcfile_path=$lt_fix_srcfile_path
13367 # Set to "yes" if exported symbols are required.
13368 always_export_symbols=$always_export_symbols
13370 # The commands to list exported symbols.
13371 export_symbols_cmds=$lt_export_symbols_cmds
13373 # Symbols that should not be listed in the preloaded symbols.
13374 exclude_expsyms=$lt_exclude_expsyms
13376 # Symbols that must always be exported.
13377 include_expsyms=$lt_include_expsyms
13379 # Commands necessary for linking programs (against libraries) with templates.
13380 prelink_cmds=$lt_prelink_cmds
13382 # Specify filename containing input files.
13383 file_list_spec=$lt_file_list_spec
13385 # How to hardcode a shared library path into an executable.
13386 hardcode_action=$hardcode_action
13388 # ### END LIBTOOL CONFIG
13390 _LT_EOF
13392 case $host_os in
13393 aix3*)
13394 cat <<\_LT_EOF >> "$cfgfile"
13395 # AIX sometimes has problems with the GCC collect2 program. For some
13396 # reason, if we set the COLLECT_NAMES environment variable, the problems
13397 # vanish in a puff of smoke.
13398 if test "X${COLLECT_NAMES+set}" != Xset; then
13399 COLLECT_NAMES=
13400 export COLLECT_NAMES
13402 _LT_EOF
13404 esac
13407 ltmain="$ac_aux_dir/ltmain.sh"
13410 # We use sed instead of cat because bash on DJGPP gets confused if
13411 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13412 # text mode, it properly converts lines to CR/LF. This bash problem
13413 # is reportedly fixed, but why not run on old versions too?
13414 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13415 || (rm -f "$cfgfile"; exit 1)
13417 case $xsi_shell in
13418 yes)
13419 cat << \_LT_EOF >> "$cfgfile"
13420 # func_dirname file append nondir_replacement
13421 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13422 # otherwise set result to NONDIR_REPLACEMENT.
13423 func_dirname ()
13425 case ${1} in
13426 */*) func_dirname_result="${1%/*}${2}" ;;
13427 * ) func_dirname_result="${3}" ;;
13428 esac
13431 # func_basename file
13432 func_basename ()
13434 func_basename_result="${1##*/}"
13437 # func_stripname prefix suffix name
13438 # strip PREFIX and SUFFIX off of NAME.
13439 # PREFIX and SUFFIX must not contain globbing or regex special
13440 # characters, hashes, percent signs, but SUFFIX may contain a leading
13441 # dot (in which case that matches only a dot).
13442 func_stripname ()
13444 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13445 # positional parameters, so assign one to ordinary parameter first.
13446 func_stripname_result=${3}
13447 func_stripname_result=${func_stripname_result#"${1}"}
13448 func_stripname_result=${func_stripname_result%"${2}"}
13451 # func_opt_split
13452 func_opt_split ()
13454 func_opt_split_opt=${1%%=*}
13455 func_opt_split_arg=${1#*=}
13458 # func_lo2o object
13459 func_lo2o ()
13461 case ${1} in
13462 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13463 *) func_lo2o_result=${1} ;;
13464 esac
13466 _LT_EOF
13468 *) # Bourne compatible functions.
13469 cat << \_LT_EOF >> "$cfgfile"
13470 # func_dirname file append nondir_replacement
13471 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13472 # otherwise set result to NONDIR_REPLACEMENT.
13473 func_dirname ()
13475 # Extract subdirectory from the argument.
13476 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13477 if test "X$func_dirname_result" = "X${1}"; then
13478 func_dirname_result="${3}"
13479 else
13480 func_dirname_result="$func_dirname_result${2}"
13484 # func_basename file
13485 func_basename ()
13487 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13490 # func_stripname prefix suffix name
13491 # strip PREFIX and SUFFIX off of NAME.
13492 # PREFIX and SUFFIX must not contain globbing or regex special
13493 # characters, hashes, percent signs, but SUFFIX may contain a leading
13494 # dot (in which case that matches only a dot).
13495 # func_strip_suffix prefix name
13496 func_stripname ()
13498 case ${2} in
13499 .*) func_stripname_result=`$ECHO "X${3}" \
13500 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13501 *) func_stripname_result=`$ECHO "X${3}" \
13502 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13503 esac
13506 # sed scripts:
13507 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13508 my_sed_long_arg='1s/^-[^=]*=//'
13510 # func_opt_split
13511 func_opt_split ()
13513 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13514 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13517 # func_lo2o object
13518 func_lo2o ()
13520 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13522 _LT_EOF
13523 esac
13525 case $lt_shell_append in
13526 yes)
13527 cat << \_LT_EOF >> "$cfgfile"
13529 # func_append var value
13530 # Append VALUE to the end of shell variable VAR.
13531 func_append ()
13533 eval "$1+=\$2"
13535 _LT_EOF
13538 cat << \_LT_EOF >> "$cfgfile"
13540 # func_append var value
13541 # Append VALUE to the end of shell variable VAR.
13542 func_append ()
13544 eval "$1=\$$1\$2"
13546 _LT_EOF
13548 esac
13551 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13552 || (rm -f "$cfgfile"; exit 1)
13554 mv -f "$cfgfile" "$ofile" ||
13555 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13556 chmod +x "$ofile"
13559 default-1 )
13560 for ac_file in $CONFIG_FILES; do
13561 # Support "outfile[:infile[:infile...]]"
13562 case "$ac_file" in
13563 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13564 esac
13565 # PO directories have a Makefile.in generated from Makefile.in.in.
13566 case "$ac_file" in */Makefile.in)
13567 # Adjust a relative srcdir.
13568 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13569 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13570 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13571 # In autoconf-2.13 it is called $ac_given_srcdir.
13572 # In autoconf-2.50 it is called $srcdir.
13573 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13574 case "$ac_given_srcdir" in
13575 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13576 /*) top_srcdir="$ac_given_srcdir" ;;
13577 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13578 esac
13579 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13580 rm -f "$ac_dir/POTFILES"
13581 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13582 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13583 POMAKEFILEDEPS="POTFILES.in"
13584 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13585 # on $ac_dir but don't depend on user-specified configuration
13586 # parameters.
13587 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13588 # The LINGUAS file contains the set of available languages.
13589 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13590 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13592 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13593 # Hide the ALL_LINGUAS assigment from automake.
13594 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13595 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13596 else
13597 # The set of available languages was given in configure.in.
13598 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13600 case "$ac_given_srcdir" in
13601 .) srcdirpre= ;;
13602 *) srcdirpre='$(srcdir)/' ;;
13603 esac
13604 POFILES=
13605 GMOFILES=
13606 UPDATEPOFILES=
13607 DUMMYPOFILES=
13608 for lang in $ALL_LINGUAS; do
13609 POFILES="$POFILES $srcdirpre$lang.po"
13610 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13611 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13612 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13613 done
13614 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13615 # environment variable.
13616 INST_LINGUAS=
13617 if test -n "$ALL_LINGUAS"; then
13618 for presentlang in $ALL_LINGUAS; do
13619 useit=no
13620 if test "%UNSET%" != "$LINGUAS"; then
13621 desiredlanguages="$LINGUAS"
13622 else
13623 desiredlanguages="$ALL_LINGUAS"
13625 for desiredlang in $desiredlanguages; do
13626 # Use the presentlang catalog if desiredlang is
13627 # a. equal to presentlang, or
13628 # b. a variant of presentlang (because in this case,
13629 # presentlang can be used as a fallback for messages
13630 # which are not translated in the desiredlang catalog).
13631 case "$desiredlang" in
13632 "$presentlang"*) useit=yes;;
13633 esac
13634 done
13635 if test $useit = yes; then
13636 INST_LINGUAS="$INST_LINGUAS $presentlang"
13638 done
13640 CATALOGS=
13641 if test -n "$INST_LINGUAS"; then
13642 for lang in $INST_LINGUAS; do
13643 CATALOGS="$CATALOGS $lang.gmo"
13644 done
13646 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13647 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13648 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13649 if test -f "$f"; then
13650 case "$f" in
13651 *.orig | *.bak | *~) ;;
13652 *) cat "$f" >> "$ac_dir/Makefile" ;;
13653 esac
13655 done
13658 esac
13659 done ;;
13660 esac
13661 done
13662 _ACEOF
13664 cat >>$CONFIG_STATUS <<\_ACEOF
13666 { (exit 0); exit 0; }
13667 _ACEOF
13668 chmod +x $CONFIG_STATUS
13669 ac_clean_files=$ac_clean_files_save
13672 # configure is writing to config.log, and then calls config.status.
13673 # config.status does its own redirection, appending to config.log.
13674 # Unfortunately, on DOS this fails, as config.log is still kept open
13675 # by configure, so config.status won't be able to write to it; its
13676 # output is simply discarded. So we exec the FD to /dev/null,
13677 # effectively closing config.log, so it can be properly (re)opened and
13678 # appended to by config.status. When coming back to configure, we
13679 # need to make the FD available again.
13680 if test "$no_create" != yes; then
13681 ac_cs_success=:
13682 ac_config_status_args=
13683 test "$silent" = yes &&
13684 ac_config_status_args="$ac_config_status_args --quiet"
13685 exec 5>/dev/null
13686 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13687 exec 5>>config.log
13688 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13689 # would make configure fail if this is the last instruction.
13690 $ac_cs_success || { (exit 1); exit 1; }