7370329b2330d17888bbe6b8c3f25f81956015c7
[deliverable/binutils-gdb.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
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','`
252 ;;
253 esac
254
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
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274 $*
275 _LT_EOF
276 exit 0
277 fi
278
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
282
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
292 fi
293 done
294 fi
295
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
299 :
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'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
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
316 fi
317 done
318 IFS="$lt_save_ifs"
319
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
342 :
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=:
360
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
365 fi
366 prev="$cmd"
367 done
368
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
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
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"
388 fi
389
390
391
392
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`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
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}
410
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}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="ar.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"
460
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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
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
484
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'
502
503 ac_prev=
504 for ac_option
505 do
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
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
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 ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
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 ;;
544
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" ;;
553
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'" ;;
566
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 ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
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 ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
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 ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
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 ;;
615
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 ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
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 ;;
641
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 ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
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 ;;
662
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 ;;
669
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 ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
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 ;;
696
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 ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
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 ;;
724
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 ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
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'" ;;
748
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" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
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 ;;
768
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 ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
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 ;;
790
791 *)
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}
797 ;;
798
799 esac
800 done
801
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; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
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
818
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
822 do
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
830
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
837
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
846 fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
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=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
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; }; }
885 fi
886 fi
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
923
924 #
925 # Report the --help message.
926 #
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.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
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.
937
938 Defaults for the options are specified in brackets.
939
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 \`..']
950
951 _ACEOF
952
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]
959
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'.
964
965 For better control, use the options below.
966
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
981
982 cat <<\_ACEOF
983
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
988
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
994 fi
995
996 if test -n "$ac_init_help"; then
997
998 cat <<\_ACEOF
999
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 --disable-largefile omit support for large files
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-targets alternative target configurations
1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
1020 --disable-rpath do not hardcode runtime library paths
1021
1022 Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-gnu-ld assume the C compiler uses GNU ld default=no
1029 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1030 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1031
1032 Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1039 CPP C preprocessor
1040
1041 Use these variables to override the choices made by `configure' or to help
1042 it to find libraries and programs with nonstandard names/locations.
1043
1044 _ACEOF
1045 fi
1046
1047 if test "$ac_init_help" = "recursive"; then
1048 # If there are subdirs, report their specific --help.
1049 ac_popdir=`pwd`
1050 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1051 test -d $ac_dir || continue
1052 ac_builddir=.
1053
1054 if test "$ac_dir" != .; then
1055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1056 # A "../" for each directory in $ac_dir_suffix.
1057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058 else
1059 ac_dir_suffix= ac_top_builddir=
1060 fi
1061
1062 case $srcdir in
1063 .) # No --srcdir option. We are building in place.
1064 ac_srcdir=.
1065 if test -z "$ac_top_builddir"; then
1066 ac_top_srcdir=.
1067 else
1068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1069 fi ;;
1070 [\\/]* | ?:[\\/]* ) # Absolute path.
1071 ac_srcdir=$srcdir$ac_dir_suffix;
1072 ac_top_srcdir=$srcdir ;;
1073 *) # Relative path.
1074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1076 esac
1077
1078 # Do not use `cd foo && pwd` to compute absolute paths, because
1079 # the directories may not exist.
1080 case `pwd` in
1081 .) ac_abs_builddir="$ac_dir";;
1082 *)
1083 case "$ac_dir" in
1084 .) ac_abs_builddir=`pwd`;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1087 esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *)
1092 case ${ac_top_builddir}. in
1093 .) ac_abs_top_builddir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1096 esac;;
1097 esac
1098 case $ac_abs_builddir in
1099 .) ac_abs_srcdir=$ac_srcdir;;
1100 *)
1101 case $ac_srcdir in
1102 .) ac_abs_srcdir=$ac_abs_builddir;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1105 esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *)
1110 case $ac_top_srcdir in
1111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114 esac;;
1115 esac
1116
1117 cd $ac_dir
1118 # Check for guested configure; otherwise get Cygnus style configure.
1119 if test -f $ac_srcdir/configure.gnu; then
1120 echo
1121 $SHELL $ac_srcdir/configure.gnu --help=recursive
1122 elif test -f $ac_srcdir/configure; then
1123 echo
1124 $SHELL $ac_srcdir/configure --help=recursive
1125 elif test -f $ac_srcdir/configure.ac ||
1126 test -f $ac_srcdir/configure.in; then
1127 echo
1128 $ac_configure --help
1129 else
1130 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 fi
1132 cd $ac_popdir
1133 done
1134 fi
1135
1136 test -n "$ac_init_help" && exit 0
1137 if $ac_init_version; then
1138 cat <<\_ACEOF
1139
1140 Copyright (C) 2003 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144 exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by $as_me, which was
1152 generated by GNU Autoconf 2.59. Invocation command line was
1153
1154 $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log. We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
1262
1263 cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270 {
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283 }
1284 echo
1285
1286 cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
1314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320 echo
1321 sed "/^$/d" confdefs.h | sort
1322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332 for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398 else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 # differences in whitespace do not lead to failure.
1426 ac_old_val_w=`echo x $ac_old_val`
1427 ac_new_val_w=`echo x $ac_new_val`
1428 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431 ac_cache_corrupted=:
1432 else
1433 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1434 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1435 eval $ac_var=\$ac_old_val
1436 fi
1437 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1438 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1439 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1440 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1441 fi;;
1442 esac
1443 # Pass precious variables to config.status.
1444 if test "$ac_new_set" = set; then
1445 case $ac_new_val in
1446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1447 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1448 *) ac_arg=$ac_var=$ac_new_val ;;
1449 esac
1450 case " $ac_configure_args " in
1451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1452 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453 esac
1454 fi
1455 done
1456 if $ac_cache_corrupted; then
1457 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1458 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1464 fi
1465
1466 ac_ext=c
1467 ac_cpp='$CPP $CPPFLAGS'
1468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495 ac_aux_dir=
1496 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497 if test -f $ac_dir/install-sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install-sh -c"
1500 break
1501 elif test -f $ac_dir/install.sh; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/install.sh -c"
1504 break
1505 elif test -f $ac_dir/shtool; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/shtool install -c"
1508 break
1509 fi
1510 done
1511 if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1515 fi
1516 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519
1520 # Make sure we can run config.sub.
1521 $ac_config_sub sun4 >/dev/null 2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526 echo "$as_me:$LINENO: checking build system type" >&5
1527 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528 if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531 ac_cv_build_alias=$build_alias
1532 test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias=`$ac_config_guess`
1534 test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543 fi
1544 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545 echo "${ECHO_T}$ac_cv_build" >&6
1546 build=$ac_cv_build
1547 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552 echo "$as_me:$LINENO: checking host system type" >&5
1553 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554 if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 ac_cv_host_alias=$host_alias
1558 test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias=$ac_cv_build_alias
1560 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565 fi
1566 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567 echo "${ECHO_T}$ac_cv_host" >&6
1568 host=$ac_cv_host
1569 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574 echo "$as_me:$LINENO: checking target system type" >&5
1575 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576 if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_target_alias=$target_alias
1580 test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias=$ac_cv_host_alias
1582 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587 fi
1588 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589 echo "${ECHO_T}$ac_cv_target" >&6
1590 target=$ac_cv_target
1591 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596 # The aliases save the names the user supplied, while $host etc.
1597 # will get canonicalized.
1598 test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
1602 ac_ext=c
1603 ac_cpp='$CPP $CPPFLAGS'
1604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607 if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1628 fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$ac_cv_prog_CC"; then
1645 ac_ct_CC=$CC
1646 # Extract the first word of "gcc", so it can be a program name with args.
1647 set dummy gcc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="gcc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1676 else
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681 CC=$ac_ct_CC
1682 else
1683 CC="$ac_cv_prog_CC"
1684 fi
1685
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689 set dummy ${ac_tool_prefix}cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="${ac_tool_prefix}cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 fi
1724 if test -z "$ac_cv_prog_CC"; then
1725 ac_ct_CC=$CC
1726 # Extract the first word of "cc", so it can be a program name with args.
1727 set dummy cc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733 if test -n "$ac_ct_CC"; then
1734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735 else
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1738 do
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_ac_ct_CC="cc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 break 2
1746 fi
1747 done
1748 done
1749
1750 fi
1751 fi
1752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753 if test -n "$ac_ct_CC"; then
1754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755 echo "${ECHO_T}$ac_ct_CC" >&6
1756 else
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759 fi
1760
1761 CC=$ac_ct_CC
1762 else
1763 CC="$ac_cv_prog_CC"
1764 fi
1765
1766 fi
1767 if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778 ac_prog_rejected=no
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787 ac_prog_rejected=yes
1788 continue
1789 fi
1790 ac_cv_prog_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794 done
1795 done
1796
1797 if test $ac_prog_rejected = yes; then
1798 # We found a bogon in the path, so make sure we never use it.
1799 set dummy $ac_cv_prog_CC
1800 shift
1801 if test $# != 0; then
1802 # We chose a different compiler from the bogus one.
1803 # However, it has the same basename, so the bogon will be chosen
1804 # first if we set CC to just the basename; use the full file name.
1805 shift
1806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 fi
1808 fi
1809 fi
1810 fi
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820 fi
1821 if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 for ac_prog in cl
1824 do
1825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860 test -n "$CC" && break
1861 done
1862 fi
1863 if test -z "$CC"; then
1864 ac_ct_CC=$CC
1865 for ac_prog in cl
1866 do
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868 set dummy $ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888 done
1889 done
1890
1891 fi
1892 fi
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902 test -n "$ac_ct_CC" && break
1903 done
1904
1905 CC=$ac_ct_CC
1906 fi
1907
1908 fi
1909
1910
1911 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1912 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: no acceptable C compiler found in \$PATH
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }; }
1918
1919 # Provide some information about the compiler.
1920 echo "$as_me:$LINENO:" \
1921 "checking for C compiler version" >&5
1922 ac_compiler=`set X $ac_compile; echo $2`
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1924 (eval $ac_compiler --version </dev/null >&5) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1929 (eval $ac_compiler -v </dev/null >&5) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1934 (eval $ac_compiler -V </dev/null >&5) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1938
1939 cat >conftest.$ac_ext <<_ACEOF
1940 /* confdefs.h. */
1941 _ACEOF
1942 cat confdefs.h >>conftest.$ac_ext
1943 cat >>conftest.$ac_ext <<_ACEOF
1944 /* end confdefs.h. */
1945
1946 int
1947 main ()
1948 {
1949
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 ac_clean_files_save=$ac_clean_files
1955 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1956 # Try to create an executable without -o first, disregard a.out.
1957 # It will help us diagnose broken compilers, and finding out an intuition
1958 # of exeext.
1959 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1960 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1961 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1963 (eval $ac_link_default) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # Find the output, starting from the most likely. This scheme is
1968 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # resort.
1970
1971 # Be careful to initialize this variable, since it used to be cached.
1972 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1973 ac_cv_exeext=
1974 # b.out is created by i960 compilers.
1975 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1976 do
1977 test -f "$ac_file" || continue
1978 case $ac_file in
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1980 ;;
1981 conftest.$ac_ext )
1982 # This is the source file.
1983 ;;
1984 [ab].out )
1985 # We found the default executable, but exeext='' is most
1986 # certainly right.
1987 break;;
1988 *.* )
1989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 # FIXME: I believe we export ac_cv_exeext for Libtool,
1991 # but it would be cool to find out if it's true. Does anybody
1992 # maintain Libtool? --akim.
1993 export ac_cv_exeext
1994 break;;
1995 * )
1996 break;;
1997 esac
1998 done
1999 else
2000 echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2002
2003 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2004 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2005 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&5
2007 echo "$as_me: error: C compiler cannot create executables
2008 See \`config.log' for more details." >&2;}
2009 { (exit 77); exit 77; }; }; }
2010 fi
2011
2012 ac_exeext=$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_file" >&5
2014 echo "${ECHO_T}$ac_file" >&6
2015
2016 # Check the compiler produces executables we can run. If not, either
2017 # the compiler is broken, or we cross compile.
2018 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2019 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2020 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2021 # If not cross compiling, check that we can run a simple program.
2022 if test "$cross_compiling" != yes; then
2023 if { ac_try='./$ac_file'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 (eval $ac_try) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2029 cross_compiling=no
2030 else
2031 if test "$cross_compiling" = maybe; then
2032 cross_compiling=yes
2033 else
2034 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2037 If you meant to cross compile, use \`--host'.
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot run C compiled programs.
2040 If you meant to cross compile, use \`--host'.
2041 See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }; }
2043 fi
2044 fi
2045 fi
2046 echo "$as_me:$LINENO: result: yes" >&5
2047 echo "${ECHO_T}yes" >&6
2048
2049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2050 ac_clean_files=$ac_clean_files_save
2051 # Check the compiler produces executables we can run. If not, either
2052 # the compiler is broken, or we cross compile.
2053 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2055 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2056 echo "${ECHO_T}$cross_compiling" >&6
2057
2058 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2061 (eval $ac_link) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2067 # work properly (i.e., refer to `conftest.exe'), while it won't with
2068 # `rm'.
2069 for ac_file in conftest.exe conftest conftest.*; do
2070 test -f "$ac_file" || continue
2071 case $ac_file in
2072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074 export ac_cv_exeext
2075 break;;
2076 * ) break;;
2077 esac
2078 done
2079 else
2080 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2085 See \`config.log' for more details." >&2;}
2086 { (exit 1); exit 1; }; }; }
2087 fi
2088
2089 rm -f conftest$ac_cv_exeext
2090 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2091 echo "${ECHO_T}$ac_cv_exeext" >&6
2092
2093 rm -f conftest.$ac_ext
2094 EXEEXT=$ac_cv_exeext
2095 ac_exeext=$EXEEXT
2096 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2097 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2098 if test "${ac_cv_objext+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h. */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2107
2108 int
2109 main ()
2110 {
2111
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 rm -f conftest.o conftest.obj
2117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118 (eval $ac_compile) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2123 case $ac_file in
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2126 break;;
2127 esac
2128 done
2129 else
2130 echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2132
2133 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2134 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2138 See \`config.log' for more details." >&2;}
2139 { (exit 1); exit 1; }; }; }
2140 fi
2141
2142 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2143 fi
2144 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2145 echo "${ECHO_T}$ac_cv_objext" >&6
2146 OBJEXT=$ac_cv_objext
2147 ac_objext=$OBJEXT
2148 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2149 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2150 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h. */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2159
2160 int
2161 main ()
2162 {
2163 #ifndef __GNUC__
2164 choke me
2165 #endif
2166
2167 ;
2168 return 0;
2169 }
2170 _ACEOF
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_compiler_gnu=yes
2194 else
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2197
2198 ac_compiler_gnu=no
2199 fi
2200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202
2203 fi
2204 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206 GCC=`test $ac_compiler_gnu = yes && echo yes`
2207 ac_test_CFLAGS=${CFLAGS+set}
2208 ac_save_CFLAGS=$CFLAGS
2209 CFLAGS="-g"
2210 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212 if test "${ac_cv_prog_cc_g+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h. */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2221
2222 int
2223 main ()
2224 {
2225
2226 ;
2227 return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2233 ac_status=$?
2234 grep -v '^ *+' conftest.er1 >conftest.err
2235 rm -f conftest.er1
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 ac_cv_prog_cc_g=yes
2253 else
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_cv_prog_cc_g=no
2258 fi
2259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2263 if test "$ac_test_CFLAGS" = set; then
2264 CFLAGS=$ac_save_CFLAGS
2265 elif test $ac_cv_prog_cc_g = yes; then
2266 if test "$GCC" = yes; then
2267 CFLAGS="-g -O2"
2268 else
2269 CFLAGS="-g"
2270 fi
2271 else
2272 if test "$GCC" = yes; then
2273 CFLAGS="-O2"
2274 else
2275 CFLAGS=
2276 fi
2277 fi
2278 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2279 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2280 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 ac_cv_prog_cc_stdc=no
2284 ac_save_CC=$CC
2285 cat >conftest.$ac_ext <<_ACEOF
2286 /* confdefs.h. */
2287 _ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2291 #include <stdarg.h>
2292 #include <stdio.h>
2293 #include <sys/types.h>
2294 #include <sys/stat.h>
2295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2296 struct buf { int x; };
2297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2298 static char *e (p, i)
2299 char **p;
2300 int i;
2301 {
2302 return p[i];
2303 }
2304 static char *f (char * (*g) (char **, int), char **p, ...)
2305 {
2306 char *s;
2307 va_list v;
2308 va_start (v,p);
2309 s = g (p, va_arg (v,int));
2310 va_end (v);
2311 return s;
2312 }
2313
2314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2315 function prototypes and stuff, but not '\xHH' hex character constants.
2316 These don't provoke an error unfortunately, instead are silently treated
2317 as 'x'. The following induces an error, until -std1 is added to get
2318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2319 array size at least. It's necessary to write '\x00'==0 to get something
2320 that's true only with -std1. */
2321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2322
2323 int test (int i, double x);
2324 struct s1 {int (*f) (int a);};
2325 struct s2 {int (*f) (double a);};
2326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2327 int argc;
2328 char **argv;
2329 int
2330 main ()
2331 {
2332 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2333 ;
2334 return 0;
2335 }
2336 _ACEOF
2337 # Don't try gcc -ansi; that turns off useful extensions and
2338 # breaks some systems' header files.
2339 # AIX -qlanglvl=ansi
2340 # Ultrix and OSF/1 -std1
2341 # HP-UX 10.20 and later -Ae
2342 # HP-UX older versions -Aa -D_HPUX_SOURCE
2343 # SVR4 -Xc -D__EXTENSIONS__
2344 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2345 do
2346 CC="$ac_save_CC $ac_arg"
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -z "$ac_c_werror_flag"
2357 || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 ac_cv_prog_cc_stdc=$ac_arg
2370 break
2371 else
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 fi
2376 rm -f conftest.err conftest.$ac_objext
2377 done
2378 rm -f conftest.$ac_ext conftest.$ac_objext
2379 CC=$ac_save_CC
2380
2381 fi
2382
2383 case "x$ac_cv_prog_cc_stdc" in
2384 x|xno)
2385 echo "$as_me:$LINENO: result: none needed" >&5
2386 echo "${ECHO_T}none needed" >&6 ;;
2387 *)
2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2389 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2390 CC="$CC $ac_cv_prog_cc_stdc" ;;
2391 esac
2392
2393 # Some people use a C++ compiler to compile C. Since we use `exit',
2394 # in C++ we need to declare it. In case someone uses the same compiler
2395 # for both compiling C and C++ we need to have the C++ compiler decide
2396 # the declaration of exit, since it's the most demanding environment.
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #ifndef __cplusplus
2399 choke me
2400 #endif
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 for ac_declaration in \
2425 '' \
2426 'extern "C" void std::exit (int) throw (); using std::exit;' \
2427 'extern "C" void std::exit (int); using std::exit;' \
2428 'extern "C" void exit (int) throw ();' \
2429 'extern "C" void exit (int);' \
2430 'void exit (int);'
2431 do
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2438 $ac_declaration
2439 #include <stdlib.h>
2440 int
2441 main ()
2442 {
2443 exit (42);
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 :
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 continue
2476 fi
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 $ac_declaration
2485 int
2486 main ()
2487 {
2488 exit (42);
2489 ;
2490 return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 break
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 fi
2521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522 done
2523 rm -f conftest*
2524 if test -n "$ac_declaration"; then
2525 echo '#ifdef __cplusplus' >>confdefs.h
2526 echo $ac_declaration >>confdefs.h
2527 echo '#endif' >>confdefs.h
2528 fi
2529
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 fi
2535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541
2542
2543 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2544 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2545 if test "${ac_cv_search_strerror+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 ac_func_search_save_LIBS=$LIBS
2549 ac_cv_search_strerror=no
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h. */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556
2557 /* Override any gcc2 internal prototype to avoid an error. */
2558 #ifdef __cplusplus
2559 extern "C"
2560 #endif
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2563 char strerror ();
2564 int
2565 main ()
2566 {
2567 strerror ();
2568 ;
2569 return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2574 (eval $ac_link) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest$ac_exeext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_cv_search_strerror="none required"
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 fi
2600 rm -f conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2602 if test "$ac_cv_search_strerror" = no; then
2603 for ac_lib in cposix; do
2604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2611
2612 /* Override any gcc2 internal prototype to avoid an error. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 /* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2618 char strerror ();
2619 int
2620 main ()
2621 {
2622 strerror ();
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629 (eval $ac_link) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest$ac_exeext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_search_strerror="-l$ac_lib"
2650 break
2651 else
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 fi
2656 rm -f conftest.err conftest.$ac_objext \
2657 conftest$ac_exeext conftest.$ac_ext
2658 done
2659 fi
2660 LIBS=$ac_func_search_save_LIBS
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2663 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2664 if test "$ac_cv_search_strerror" != no; then
2665 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2666
2667 fi
2668
2669
2670 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671 am__api_version="1.9"
2672 # Find a good install program. We prefer a C program (faster),
2673 # so one script is as good as another. But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2687 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in
2699 ./ | .// | /cC/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702 /usr/ucb/* ) ;;
2703 *)
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # AIX install. It has an incompatible calling convention.
2713 :
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2717 :
2718 else
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2730 fi
2731 fi
2732 fi
2733 done
2734 done
2735 ;;
2736 esac
2737 done
2738
2739 rm -rf conftest.one conftest.two conftest.dir
2740
2741 fi
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL=$ac_cv_path_install
2744 else
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL=$ac_install_sh
2750 fi
2751 fi
2752 echo "$as_me:$LINENO: result: $INSTALL" >&5
2753 echo "${ECHO_T}$INSTALL" >&6
2754
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2760
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
2763 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2764 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2765 # Just in case
2766 sleep 1
2767 echo timestamp > conftest.file
2768 # Do `set' in a subshell so we don't clobber the current shell's
2769 # arguments. Must try -L first in case configure is actually a
2770 # symlink; some systems play weird games with the mod time of symlinks
2771 # (eg FreeBSD returns the mod time of the symlink's containing
2772 # directory).
2773 if (
2774 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2775 if test "$*" = "X"; then
2776 # -L didn't work.
2777 set X `ls -t $srcdir/configure conftest.file`
2778 fi
2779 rm -f conftest.file
2780 if test "$*" != "X $srcdir/configure conftest.file" \
2781 && test "$*" != "X conftest.file $srcdir/configure"; then
2782
2783 # If neither matched, then we have a broken ls. This can happen
2784 # if, for instance, CONFIG_SHELL is bash and it inherits a
2785 # broken ls alias from the environment. This has actually
2786 # happened. Such a system could not be considered "sane".
2787 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2788 alias in your environment" >&5
2789 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2790 alias in your environment" >&2;}
2791 { (exit 1); exit 1; }; }
2792 fi
2793
2794 test "$2" = conftest.file
2795 )
2796 then
2797 # Ok.
2798 :
2799 else
2800 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2801 Check your system clock" >&5
2802 echo "$as_me: error: newly created file is older than distributed files!
2803 Check your system clock" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806 echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6
2808 test "$program_prefix" != NONE &&
2809 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2810 # Use a double $ so make ignores it.
2811 test "$program_suffix" != NONE &&
2812 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813 # Double any \ or $. echo might interpret backslashes.
2814 # By default was `s,x,x', remove it if useless.
2815 cat <<\_ACEOF >conftest.sed
2816 s/[\\$]/&&/g;s/;s,x,x,$//
2817 _ACEOF
2818 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819 rm conftest.sed
2820
2821 # expand $ac_aux_dir to an absolute path
2822 am_aux_dir=`cd $ac_aux_dir && pwd`
2823
2824 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --run true"; then
2827 am_missing_run="$MISSING --run "
2828 else
2829 am_missing_run=
2830 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2831 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2832 fi
2833
2834 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2835 # We used to keeping the `.' as first argument, in order to
2836 # allow $(mkdir_p) to be used without argument. As in
2837 # $(mkdir_p) $(somedir)
2838 # where $(somedir) is conditionally defined. However this is wrong
2839 # for two reasons:
2840 # 1. if the package is installed by a user who cannot write `.'
2841 # make install will fail,
2842 # 2. the above comment should most certainly read
2843 # $(mkdir_p) $(DESTDIR)$(somedir)
2844 # so it does not work when $(somedir) is undefined and
2845 # $(DESTDIR) is not.
2846 # To support the latter case, we have to write
2847 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2848 # so the `.' trick is pointless.
2849 mkdir_p='mkdir -p --'
2850 else
2851 # On NextStep and OpenStep, the `mkdir' command does not
2852 # recognize any option. It will interpret all options as
2853 # directories to create, and then abort because `.' already
2854 # exists.
2855 for d in ./-p ./--version;
2856 do
2857 test -d $d && rmdir $d
2858 done
2859 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2860 if test -f "$ac_aux_dir/mkinstalldirs"; then
2861 mkdir_p='$(mkinstalldirs)'
2862 else
2863 mkdir_p='$(install_sh) -d'
2864 fi
2865 fi
2866
2867 for ac_prog in gawk mawk nawk awk
2868 do
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_AWK+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 if test -n "$AWK"; then
2877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_AWK="$ac_prog"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892
2893 fi
2894 fi
2895 AWK=$ac_cv_prog_AWK
2896 if test -n "$AWK"; then
2897 echo "$as_me:$LINENO: result: $AWK" >&5
2898 echo "${ECHO_T}$AWK" >&6
2899 else
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902 fi
2903
2904 test -n "$AWK" && break
2905 done
2906
2907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 cat >conftest.make <<\_ACEOF
2914 all:
2915 @echo 'ac_maketemp="$(MAKE)"'
2916 _ACEOF
2917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2919 if test -n "$ac_maketemp"; then
2920 eval ac_cv_prog_make_${ac_make}_set=yes
2921 else
2922 eval ac_cv_prog_make_${ac_make}_set=no
2923 fi
2924 rm -f conftest.make
2925 fi
2926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2927 echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6
2929 SET_MAKE=
2930 else
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933 SET_MAKE="MAKE=${MAKE-make}"
2934 fi
2935
2936 rm -rf .tst 2>/dev/null
2937 mkdir .tst 2>/dev/null
2938 if test -d .tst; then
2939 am__leading_dot=.
2940 else
2941 am__leading_dot=_
2942 fi
2943 rmdir .tst 2>/dev/null
2944
2945 DEPDIR="${am__leading_dot}deps"
2946
2947 ac_config_commands="$ac_config_commands depfiles"
2948
2949
2950 am_make=${MAKE-make}
2951 cat > confinc << 'END'
2952 am__doit:
2953 @echo done
2954 .PHONY: am__doit
2955 END
2956 # If we don't find an include directive, just comment out the code.
2957 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2958 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2959 am__include="#"
2960 am__quote=
2961 _am_result=none
2962 # First try GNU make style include.
2963 echo "include confinc" > confmf
2964 # We grep out `Entering directory' and `Leaving directory'
2965 # messages which can occur if `w' ends up in MAKEFLAGS.
2966 # In particular we don't look at `^make:' because GNU make might
2967 # be invoked under some other name (usually "gmake"), in which
2968 # case it prints its new name instead of `make'.
2969 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2970 am__include=include
2971 am__quote=
2972 _am_result=GNU
2973 fi
2974 # Now try BSD make style include.
2975 if test "$am__include" = "#"; then
2976 echo '.include "confinc"' > confmf
2977 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2978 am__include=.include
2979 am__quote="\""
2980 _am_result=BSD
2981 fi
2982 fi
2983
2984
2985 echo "$as_me:$LINENO: result: $_am_result" >&5
2986 echo "${ECHO_T}$_am_result" >&6
2987 rm -f confinc confmf
2988
2989 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2990 if test "${enable_dependency_tracking+set}" = set; then
2991 enableval="$enable_dependency_tracking"
2992
2993 fi;
2994 if test "x$enable_dependency_tracking" != xno; then
2995 am_depcomp="$ac_aux_dir/depcomp"
2996 AMDEPBACKSLASH='\'
2997 fi
2998
2999
3000 if test "x$enable_dependency_tracking" != xno; then
3001 AMDEP_TRUE=
3002 AMDEP_FALSE='#'
3003 else
3004 AMDEP_TRUE='#'
3005 AMDEP_FALSE=
3006 fi
3007
3008
3009
3010 # test to see if srcdir already configured
3011 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3012 test -f $srcdir/config.status; then
3013 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3014 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3024 fi
3025 fi
3026
3027
3028 # Define the identity of the package.
3029 PACKAGE=binutils
3030 VERSION=${BFD_VERSION}
3031
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3036
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3041
3042 # Some tools Automake needs.
3043
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3059
3060 # Installed binaries are usually stripped using `strip' when the user
3061 # run `make install-strip'. However `strip' might not be the right
3062 # tool to use in cross-compilation environments, therefore Automake
3063 # will honor the `STRIP' environment variable to overrule this program.
3064 if test "$cross_compiling" != no; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}strip; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_STRIP+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 if test -n "$STRIP"; then
3074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087 done
3088 done
3089
3090 fi
3091 fi
3092 STRIP=$ac_cv_prog_STRIP
3093 if test -n "$STRIP"; then
3094 echo "$as_me:$LINENO: result: $STRIP" >&5
3095 echo "${ECHO_T}$STRIP" >&6
3096 else
3097 echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3099 fi
3100
3101 fi
3102 if test -z "$ac_cv_prog_STRIP"; then
3103 ac_ct_STRIP=$STRIP
3104 # Extract the first word of "strip", so it can be a program name with args.
3105 set dummy strip; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_STRIP="strip"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127
3128 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3129 fi
3130 fi
3131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132 if test -n "$ac_ct_STRIP"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3134 echo "${ECHO_T}$ac_ct_STRIP" >&6
3135 else
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138 fi
3139
3140 STRIP=$ac_ct_STRIP
3141 else
3142 STRIP="$ac_cv_prog_STRIP"
3143 fi
3144
3145 fi
3146 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3147
3148 # We need awk for the "check" target. The system "awk" is bad on
3149 # some platforms.
3150 # Always define AMTAR for backward compatibility.
3151
3152 AMTAR=${AMTAR-"${am_missing_run}tar"}
3153
3154 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3155
3156
3157
3158
3159 depcc="$CC" am_compiler_list=
3160
3161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167 # We make a subdir and do the tests there. Otherwise we can end up
3168 # making bogus files that we don't know about and never remove. For
3169 # instance it was reported that on HP-UX the gcc test will end up
3170 # making a dummy file named `D' -- because `-MD' means `put the output
3171 # in D'.
3172 mkdir conftest.dir
3173 # Copy depcomp to subdir because otherwise we won't find it if we're
3174 # using a relative directory.
3175 cp "$am_depcomp" conftest.dir
3176 cd conftest.dir
3177 # We will build objects and dependencies in a subdirectory because
3178 # it helps to detect inapplicable dependency modes. For instance
3179 # both Tru64's cc and ICC support -MD to output dependencies as a
3180 # side effect of compilation, but ICC will put the dependencies in
3181 # the current directory while Tru64 will put them in the object
3182 # directory.
3183 mkdir sub
3184
3185 am_cv_CC_dependencies_compiler_type=none
3186 if test "$am_compiler_list" = ""; then
3187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3188 fi
3189 for depmode in $am_compiler_list; do
3190 # Setup a source with many dependencies, because some compilers
3191 # like to wrap large dependency lists on column 80 (with \), and
3192 # we should not choose a depcomp mode which is confused by this.
3193 #
3194 # We need to recreate these files for each test, as the compiler may
3195 # overwrite some of them when testing with obscure command lines.
3196 # This happens at least with the AIX C compiler.
3197 : > sub/conftest.c
3198 for i in 1 2 3 4 5 6; do
3199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3201 # Solaris 8's {/usr,}/bin/sh.
3202 touch sub/conftst$i.h
3203 done
3204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3205
3206 case $depmode in
3207 nosideeffect)
3208 # after this tag, mechanisms are not by side-effect, so they'll
3209 # only be used when explicitly requested
3210 if test "x$enable_dependency_tracking" = xyes; then
3211 continue
3212 else
3213 break
3214 fi
3215 ;;
3216 none) break ;;
3217 esac
3218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3219 # mode. It turns out that the SunPro C++ compiler does not properly
3220 # handle `-M -o', and we need to detect this.
3221 if depmode=$depmode \
3222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3225 >/dev/null 2>conftest.err &&
3226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3229 # icc doesn't choke on unknown options, it will just issue warnings
3230 # or remarks (even with -Werror). So we grep stderr for any message
3231 # that says an option was ignored or not supported.
3232 # When given -MP, icc 7.0 and 7.1 complain thusly:
3233 # icc: Command line warning: ignoring option '-M'; no argument required
3234 # The diagnosis changed in icc 8.0:
3235 # icc: Command line remark: option '-MP' not supported
3236 if (grep 'ignoring option' conftest.err ||
3237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3238 am_cv_CC_dependencies_compiler_type=$depmode
3239 break
3240 fi
3241 fi
3242 done
3243
3244 cd ..
3245 rm -rf conftest.dir
3246 else
3247 am_cv_CC_dependencies_compiler_type=none
3248 fi
3249
3250 fi
3251 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3254
3255
3256
3257 if
3258 test "x$enable_dependency_tracking" != xno \
3259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260 am__fastdepCC_TRUE=
3261 am__fastdepCC_FALSE='#'
3262 else
3263 am__fastdepCC_TRUE='#'
3264 am__fastdepCC_FALSE=
3265 fi
3266
3267
3268
3269
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297 done
3298 done
3299
3300 fi
3301 fi
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304 echo "$as_me:$LINENO: result: $CC" >&5
3305 echo "${ECHO_T}$CC" >&6
3306 else
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3309 fi
3310
3311 fi
3312 if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337
3338 fi
3339 fi
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349 CC=$ac_ct_CC
3350 else
3351 CC="$ac_cv_prog_CC"
3352 fi
3353
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_CC+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 echo "$as_me:$LINENO: result: $CC" >&5
3385 echo "${ECHO_T}$CC" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3389 fi
3390
3391 fi
3392 if test -z "$ac_cv_prog_CC"; then
3393 ac_ct_CC=$CC
3394 # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_CC="cc"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417
3418 fi
3419 fi
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423 echo "${ECHO_T}$ac_ct_CC" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3427 fi
3428
3429 CC=$ac_ct_CC
3430 else
3431 CC="$ac_cv_prog_CC"
3432 fi
3433
3434 fi
3435 if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3457 fi
3458 ac_cv_prog_CC="cc"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464
3465 if test $ac_prog_rejected = yes; then
3466 # We found a bogon in the path, so make sure we never use it.
3467 set dummy $ac_cv_prog_CC
3468 shift
3469 if test $# != 0; then
3470 # We chose a different compiler from the bogus one.
3471 # However, it has the same basename, so the bogon will be chosen
3472 # first if we set CC to just the basename; use the full file name.
3473 shift
3474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 fi
3476 fi
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6
3483 else
3484 echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486 fi
3487
3488 fi
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl
3492 do
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_prog_CC+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516
3517 fi
3518 fi
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 echo "$as_me:$LINENO: result: $CC" >&5
3522 echo "${ECHO_T}$CC" >&6
3523 else
3524 echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3526 fi
3527
3528 test -n "$CC" && break
3529 done
3530 fi
3531 if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl
3534 do
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564 echo "${ECHO_T}$ac_ct_CC" >&6
3565 else
3566 echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3568 fi
3569
3570 test -n "$ac_ct_CC" && break
3571 done
3572
3573 CC=$ac_ct_CC
3574 fi
3575
3576 fi
3577
3578
3579 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." >&2;}
3585 { (exit 1); exit 1; }; }; }
3586
3587 # Provide some information about the compiler.
3588 echo "$as_me:$LINENO:" \
3589 "checking for C compiler version" >&5
3590 ac_compiler=`set X $ac_compile; echo $2`
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3592 (eval $ac_compiler --version </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3597 (eval $ac_compiler -v </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3602 (eval $ac_compiler -V </dev/null >&5) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }
3606
3607 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3609 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618
3619 int
3620 main ()
3621 {
3622 #ifndef __GNUC__
3623 choke me
3624 #endif
3625
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_compiler_gnu=yes
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657 ac_compiler_gnu=no
3658 fi
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661
3662 fi
3663 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3665 GCC=`test $ac_compiler_gnu = yes && echo yes`
3666 ac_test_CFLAGS=${CFLAGS+set}
3667 ac_save_CFLAGS=$CFLAGS
3668 CFLAGS="-g"
3669 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3671 if test "${ac_cv_prog_cc_g+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680
3681 int
3682 main ()
3683 {
3684
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_prog_cc_g=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ac_cv_prog_cc_g=no
3717 fi
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3721 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3722 if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3726 CFLAGS="-g -O2"
3727 else
3728 CFLAGS="-g"
3729 fi
3730 else
3731 if test "$GCC" = yes; then
3732 CFLAGS="-O2"
3733 else
3734 CFLAGS=
3735 fi
3736 fi
3737 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 ac_cv_prog_cc_stdc=no
3743 ac_save_CC=$CC
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <stdarg.h>
3751 #include <stdio.h>
3752 #include <sys/types.h>
3753 #include <sys/stat.h>
3754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3755 struct buf { int x; };
3756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757 static char *e (p, i)
3758 char **p;
3759 int i;
3760 {
3761 return p[i];
3762 }
3763 static char *f (char * (*g) (char **, int), char **p, ...)
3764 {
3765 char *s;
3766 va_list v;
3767 va_start (v,p);
3768 s = g (p, va_arg (v,int));
3769 va_end (v);
3770 return s;
3771 }
3772
3773 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3774 function prototypes and stuff, but not '\xHH' hex character constants.
3775 These don't provoke an error unfortunately, instead are silently treated
3776 as 'x'. The following induces an error, until -std1 is added to get
3777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3778 array size at least. It's necessary to write '\x00'==0 to get something
3779 that's true only with -std1. */
3780 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3781
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3788 int
3789 main ()
3790 {
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 # Don't try gcc -ansi; that turns off useful extensions and
3797 # breaks some systems' header files.
3798 # AIX -qlanglvl=ansi
3799 # Ultrix and OSF/1 -std1
3800 # HP-UX 10.20 and later -Ae
3801 # HP-UX older versions -Aa -D_HPUX_SOURCE
3802 # SVR4 -Xc -D__EXTENSIONS__
3803 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804 do
3805 CC="$ac_save_CC $ac_arg"
3806 rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_prog_cc_stdc=$ac_arg
3829 break
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 fi
3835 rm -f conftest.err conftest.$ac_objext
3836 done
3837 rm -f conftest.$ac_ext conftest.$ac_objext
3838 CC=$ac_save_CC
3839
3840 fi
3841
3842 case "x$ac_cv_prog_cc_stdc" in
3843 x|xno)
3844 echo "$as_me:$LINENO: result: none needed" >&5
3845 echo "${ECHO_T}none needed" >&6 ;;
3846 *)
3847 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3848 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3849 CC="$CC $ac_cv_prog_cc_stdc" ;;
3850 esac
3851
3852 # Some people use a C++ compiler to compile C. Since we use `exit',
3853 # in C++ we need to declare it. In case someone uses the same compiler
3854 # for both compiling C and C++ we need to have the C++ compiler decide
3855 # the declaration of exit, since it's the most demanding environment.
3856 cat >conftest.$ac_ext <<_ACEOF
3857 #ifndef __cplusplus
3858 choke me
3859 #endif
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 for ac_declaration in \
3884 '' \
3885 'extern "C" void std::exit (int) throw (); using std::exit;' \
3886 'extern "C" void std::exit (int); using std::exit;' \
3887 'extern "C" void exit (int) throw ();' \
3888 'extern "C" void exit (int);' \
3889 'void exit (int);'
3890 do
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 $ac_declaration
3898 #include <stdlib.h>
3899 int
3900 main ()
3901 {
3902 exit (42);
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -z "$ac_c_werror_flag"
3917 || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 :
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 continue
3935 fi
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 $ac_declaration
3944 int
3945 main ()
3946 {
3947 exit (42);
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -z "$ac_c_werror_flag"
3962 || test ! -s conftest.err'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 break
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 fi
3980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 done
3982 rm -f conftest*
3983 if test -n "$ac_declaration"; then
3984 echo '#ifdef __cplusplus' >>confdefs.h
3985 echo $ac_declaration >>confdefs.h
3986 echo '#endif' >>confdefs.h
3987 fi
3988
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 fi
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001
4002 cat >>confdefs.h <<\_ACEOF
4003 #define _GNU_SOURCE 1
4004 _ACEOF
4005
4006
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4014 # On Suns, sometimes $CPP names a directory.
4015 if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4017 fi
4018 if test -z "$CPP"; then
4019 if test "${ac_cv_prog_CPP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024 do
4025 ac_preproc_ok=false
4026 for ac_c_preproc_warn_flag in '' yes
4027 do
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #ifdef __STDC__
4041 # include <limits.h>
4042 #else
4043 # include <assert.h>
4044 #endif
4045 Syntax error
4046 _ACEOF
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058 else
4059 ac_cpp_err=
4060 fi
4061 else
4062 ac_cpp_err=yes
4063 fi
4064 if test -z "$ac_cpp_err"; then
4065 :
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 # Broken: fails on valid input.
4071 continue
4072 fi
4073 rm -f conftest.err conftest.$ac_ext
4074
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4098 fi
4099 else
4100 ac_cpp_err=yes
4101 fi
4102 if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4104 continue
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 # Passes both tests.
4110 ac_preproc_ok=:
4111 break
4112 fi
4113 rm -f conftest.err conftest.$ac_ext
4114
4115 done
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4119 break
4120 fi
4121
4122 done
4123 ac_cv_prog_CPP=$CPP
4124
4125 fi
4126 CPP=$ac_cv_prog_CPP
4127 else
4128 ac_cv_prog_CPP=$CPP
4129 fi
4130 echo "$as_me:$LINENO: result: $CPP" >&5
4131 echo "${ECHO_T}$CPP" >&6
4132 ac_preproc_ok=false
4133 for ac_c_preproc_warn_flag in '' yes
4134 do
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152 Syntax error
4153 _ACEOF
4154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null; then
4162 if test -s conftest.err; then
4163 ac_cpp_err=$ac_c_preproc_warn_flag
4164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165 else
4166 ac_cpp_err=
4167 fi
4168 else
4169 ac_cpp_err=yes
4170 fi
4171 if test -z "$ac_cpp_err"; then
4172 :
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 # Broken: fails on valid input.
4178 continue
4179 fi
4180 rm -f conftest.err conftest.$ac_ext
4181
4182 # OK, works on sane cases. Now check whether non-existent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <ac_nonexistent.h>
4191 _ACEOF
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null; then
4200 if test -s conftest.err; then
4201 ac_cpp_err=$ac_c_preproc_warn_flag
4202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 else
4204 ac_cpp_err=
4205 fi
4206 else
4207 ac_cpp_err=yes
4208 fi
4209 if test -z "$ac_cpp_err"; then
4210 # Broken: success on invalid input.
4211 continue
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then
4226 :
4227 else
4228 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4229 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233 See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }; }
4235 fi
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242
4243
4244 echo "$as_me:$LINENO: checking for egrep" >&5
4245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246 if test "${ac_cv_prog_egrep+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250 then ac_cv_prog_egrep='grep -E'
4251 else ac_cv_prog_egrep='egrep'
4252 fi
4253 fi
4254 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256 EGREP=$ac_cv_prog_egrep
4257
4258
4259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4261 if test "${ac_cv_header_stdc+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <stdlib.h>
4271 #include <stdarg.h>
4272 #include <string.h>
4273 #include <float.h>
4274
4275 int
4276 main ()
4277 {
4278
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_header_stdc=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ac_cv_header_stdc=no
4311 fi
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313
4314 if test $ac_cv_header_stdc = yes; then
4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <string.h>
4323
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "memchr" >/dev/null 2>&1; then
4327 :
4328 else
4329 ac_cv_header_stdc=no
4330 fi
4331 rm -f conftest*
4332
4333 fi
4334
4335 if test $ac_cv_header_stdc = yes; then
4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #include <stdlib.h>
4344
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "free" >/dev/null 2>&1; then
4348 :
4349 else
4350 ac_cv_header_stdc=no
4351 fi
4352 rm -f conftest*
4353
4354 fi
4355
4356 if test $ac_cv_header_stdc = yes; then
4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358 if test "$cross_compiling" = yes; then
4359 :
4360 else
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <ctype.h>
4368 #if ((' ' & 0x0FF) == 0x020)
4369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371 #else
4372 # define ISLOWER(c) \
4373 (('a' <= (c) && (c) <= 'i') \
4374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377 #endif
4378
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380 int
4381 main ()
4382 {
4383 int i;
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4387 exit(2);
4388 exit (0);
4389 }
4390 _ACEOF
4391 rm -f conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 :
4403 else
4404 echo "$as_me: program exited with status $ac_status" >&5
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 ( exit $ac_status )
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412 fi
4413 fi
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4422
4423 fi
4424
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4451
4452 #include <$ac_header>
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag"
4464 || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 eval "$as_ac_Header=yes"
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 eval "$as_ac_Header=no"
4482 fi
4483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484 fi
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4491
4492 fi
4493
4494 done
4495
4496
4497
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4500 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4501 if test "${ac_cv_header_minix_config_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 fi
4504 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4505 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4506 else
4507 # Is the header compilable?
4508 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4509 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4517 #include <minix/config.h>
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_header_compiler=yes
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 ac_header_compiler=no
4547 fi
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550 echo "${ECHO_T}$ac_header_compiler" >&6
4551
4552 # Is the header present?
4553 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4554 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <minix/config.h>
4562 _ACEOF
4563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574 else
4575 ac_cpp_err=
4576 fi
4577 else
4578 ac_cpp_err=yes
4579 fi
4580 if test -z "$ac_cpp_err"; then
4581 ac_header_preproc=yes
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 ac_header_preproc=no
4587 fi
4588 rm -f conftest.err conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590 echo "${ECHO_T}$ac_header_preproc" >&6
4591
4592 # So? What about this header?
4593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594 yes:no: )
4595 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4598 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4599 ac_header_preproc=yes
4600 ;;
4601 no:yes:* )
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4603 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4605 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4607 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4609 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4611 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4613 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4614 (
4615 cat <<\_ASBOX
4616 ## ------------------------------------------ ##
4617 ## Report this to the AC_PACKAGE_NAME lists. ##
4618 ## ------------------------------------------ ##
4619 _ASBOX
4620 ) |
4621 sed "s/^/$as_me: WARNING: /" >&2
4622 ;;
4623 esac
4624 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4625 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4626 if test "${ac_cv_header_minix_config_h+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 ac_cv_header_minix_config_h=$ac_header_preproc
4630 fi
4631 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4632 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4633
4634 fi
4635 if test $ac_cv_header_minix_config_h = yes; then
4636 MINIX=yes
4637 else
4638 MINIX=
4639 fi
4640
4641
4642 if test "$MINIX" = yes; then
4643
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _POSIX_SOURCE 1
4646 _ACEOF
4647
4648
4649 cat >>confdefs.h <<\_ACEOF
4650 #define _POSIX_1_SOURCE 2
4651 _ACEOF
4652
4653
4654 cat >>confdefs.h <<\_ACEOF
4655 #define _MINIX 1
4656 _ACEOF
4657
4658 fi
4659
4660
4661
4662 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4663 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4664 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673
4674 # define __EXTENSIONS__ 1
4675 $ac_includes_default
4676 int
4677 main ()
4678 {
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_cv_safe_to_define___extensions__=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 ac_cv_safe_to_define___extensions__=no
4712 fi
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714 fi
4715 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4716 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4717 test $ac_cv_safe_to_define___extensions__ = yes &&
4718 cat >>confdefs.h <<\_ACEOF
4719 #define __EXTENSIONS__ 1
4720 _ACEOF
4721
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _ALL_SOURCE 1
4724 _ACEOF
4725
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _GNU_SOURCE 1
4728 _ACEOF
4729
4730 cat >>confdefs.h <<\_ACEOF
4731 #define _POSIX_PTHREAD_SEMANTICS 1
4732 _ACEOF
4733
4734 cat >>confdefs.h <<\_ACEOF
4735 #define _TANDEM_SOURCE 1
4736 _ACEOF
4737
4738
4739 # Check whether --enable-largefile or --disable-largefile was given.
4740 if test "${enable_largefile+set}" = set; then
4741 enableval="$enable_largefile"
4742
4743 fi;
4744 if test "$enable_largefile" != no; then
4745
4746 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4747 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4748 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 ac_cv_sys_largefile_CC=no
4752 if test "$GCC" != yes; then
4753 ac_save_CC=$CC
4754 while :; do
4755 # IRIX 6.2 and later do not support large files by default,
4756 # so use the C compiler's -n32 option if that helps.
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <sys/types.h>
4764 /* Check that off_t can represent 2**63 - 1 correctly.
4765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4766 since some C++ compilers masquerading as C compilers
4767 incorrectly reject 9223372036854775807. */
4768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4770 && LARGE_OFF_T % 2147483647 == 1)
4771 ? 1 : -1];
4772 int
4773 main ()
4774 {
4775
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 break
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 fi
4808 rm -f conftest.err conftest.$ac_objext
4809 CC="$CC -n32"
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sys_largefile_CC=' -n32'; break
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 fi
4838 rm -f conftest.err conftest.$ac_objext
4839 break
4840 done
4841 CC=$ac_save_CC
4842 rm -f conftest.$ac_ext
4843 fi
4844 fi
4845 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4846 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4847 if test "$ac_cv_sys_largefile_CC" != no; then
4848 CC=$CC$ac_cv_sys_largefile_CC
4849 fi
4850
4851 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4852 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4853 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 while :; do
4857 ac_cv_sys_file_offset_bits=no
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h. */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 #include <sys/types.h>
4865 /* Check that off_t can represent 2**63 - 1 correctly.
4866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867 since some C++ compilers masquerading as C compilers
4868 incorrectly reject 9223372036854775807. */
4869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871 && LARGE_OFF_T % 2147483647 == 1)
4872 ? 1 : -1];
4873 int
4874 main ()
4875 {
4876
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 break
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 fi
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910 cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h. */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 #define _FILE_OFFSET_BITS 64
4917 #include <sys/types.h>
4918 /* Check that off_t can represent 2**63 - 1 correctly.
4919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4920 since some C++ compilers masquerading as C compilers
4921 incorrectly reject 9223372036854775807. */
4922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4924 && LARGE_OFF_T % 2147483647 == 1)
4925 ? 1 : -1];
4926 int
4927 main ()
4928 {
4929
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_cv_sys_file_offset_bits=64; break
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 fi
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 break
4964 done
4965 fi
4966 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4967 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4968 if test "$ac_cv_sys_file_offset_bits" != no; then
4969
4970 cat >>confdefs.h <<_ACEOF
4971 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4972 _ACEOF
4973
4974 fi
4975 rm -f conftest*
4976 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4977 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4978 if test "${ac_cv_sys_large_files+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 while :; do
4982 ac_cv_sys_large_files=no
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <sys/types.h>
4990 /* Check that off_t can represent 2**63 - 1 correctly.
4991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4992 since some C++ compilers masquerading as C compilers
4993 incorrectly reject 9223372036854775807. */
4994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4996 && LARGE_OFF_T % 2147483647 == 1)
4997 ? 1 : -1];
4998 int
4999 main ()
5000 {
5001
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 break
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 fi
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #define _LARGE_FILES 1
5042 #include <sys/types.h>
5043 /* Check that off_t can represent 2**63 - 1 correctly.
5044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5045 since some C++ compilers masquerading as C compilers
5046 incorrectly reject 9223372036854775807. */
5047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5049 && LARGE_OFF_T % 2147483647 == 1)
5050 ? 1 : -1];
5051 int
5052 main ()
5053 {
5054
5055 ;
5056 return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag"
5069 || test ! -s conftest.err'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_sys_large_files=1; break
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 fi
5087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5088 break
5089 done
5090 fi
5091 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5092 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5093 if test "$ac_cv_sys_large_files" != no; then
5094
5095 cat >>confdefs.h <<_ACEOF
5096 #define _LARGE_FILES $ac_cv_sys_large_files
5097 _ACEOF
5098
5099 fi
5100 rm -f conftest*
5101 fi
5102
5103
5104
5105 macro_version='2.1a'
5106 macro_revision='1.2435'
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 ltmain="$ac_aux_dir/ltmain.sh"
5120
5121 # Set options
5122
5123 enable_dlopen=no
5124
5125
5126 enable_win32_dll=no
5127
5128
5129 # Check whether --enable-shared or --disable-shared was given.
5130 if test "${enable_shared+set}" = set; then
5131 enableval="$enable_shared"
5132 p=${PACKAGE-default}
5133 case $enableval in
5134 yes) enable_shared=yes ;;
5135 no) enable_shared=no ;;
5136 *)
5137 enable_shared=no
5138 # Look at the argument we got. We use all the common list separators.
5139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5140 for pkg in $enableval; do
5141 IFS="$lt_save_ifs"
5142 if test "X$pkg" = "X$p"; then
5143 enable_shared=yes
5144 fi
5145 done
5146 IFS="$lt_save_ifs"
5147 ;;
5148 esac
5149 else
5150 enable_shared=yes
5151 fi;
5152
5153
5154
5155
5156
5157
5158
5159
5160 # Check whether --enable-static or --disable-static was given.
5161 if test "${enable_static+set}" = set; then
5162 enableval="$enable_static"
5163 p=${PACKAGE-default}
5164 case $enableval in
5165 yes) enable_static=yes ;;
5166 no) enable_static=no ;;
5167 *)
5168 enable_static=no
5169 # Look at the argument we got. We use all the common list separators.
5170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5171 for pkg in $enableval; do
5172 IFS="$lt_save_ifs"
5173 if test "X$pkg" = "X$p"; then
5174 enable_static=yes
5175 fi
5176 done
5177 IFS="$lt_save_ifs"
5178 ;;
5179 esac
5180 else
5181 enable_static=yes
5182 fi;
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192 # Check whether --with-pic or --without-pic was given.
5193 if test "${with_pic+set}" = set; then
5194 withval="$with_pic"
5195 pic_mode="$withval"
5196 else
5197 pic_mode=default
5198 fi;
5199
5200 test -z "$pic_mode" && pic_mode=default
5201
5202
5203
5204
5205
5206
5207
5208 # Check whether --enable-fast-install or --disable-fast-install was given.
5209 if test "${enable_fast_install+set}" = set; then
5210 enableval="$enable_fast_install"
5211 p=${PACKAGE-default}
5212 case $enableval in
5213 yes) enable_fast_install=yes ;;
5214 no) enable_fast_install=no ;;
5215 *)
5216 enable_fast_install=no
5217 # Look at the argument we got. We use all the common list separators.
5218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5219 for pkg in $enableval; do
5220 IFS="$lt_save_ifs"
5221 if test "X$pkg" = "X$p"; then
5222 enable_fast_install=yes
5223 fi
5224 done
5225 IFS="$lt_save_ifs"
5226 ;;
5227 esac
5228 else
5229 enable_fast_install=yes
5230 fi;
5231
5232
5233
5234
5235
5236
5237
5238
5239 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5240 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5241 if test "${lt_cv_path_SED+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 # Loop through the user's path and test for sed and gsed.
5245 # Then use that list of sed's as ones to test for truncation.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for lt_ac_prog in sed gsed; do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5254 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5255 fi
5256 done
5257 done
5258 done
5259 IFS=$as_save_IFS
5260 lt_ac_max=0
5261 lt_ac_count=0
5262 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5263 # along with /bin/sed that truncates output.
5264 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5265 test ! -f $lt_ac_sed && continue
5266 cat /dev/null > conftest.in
5267 lt_ac_count=0
5268 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5269 # Check for GNU sed and select it if it is found.
5270 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5271 lt_cv_path_SED=$lt_ac_sed
5272 break
5273 fi
5274 while true; do
5275 cat conftest.in conftest.in >conftest.tmp
5276 mv conftest.tmp conftest.in
5277 cp conftest.in conftest.nl
5278 echo >>conftest.nl
5279 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5280 cmp -s conftest.out conftest.nl || break
5281 # 10000 chars as input seems more than enough
5282 test $lt_ac_count -gt 10 && break
5283 lt_ac_count=`expr $lt_ac_count + 1`
5284 if test $lt_ac_count -gt $lt_ac_max; then
5285 lt_ac_max=$lt_ac_count
5286 lt_cv_path_SED=$lt_ac_sed
5287 fi
5288 done
5289 done
5290
5291 fi
5292
5293 SED=$lt_cv_path_SED
5294
5295 echo "$as_me:$LINENO: result: $SED" >&5
5296 echo "${ECHO_T}$SED" >&6
5297
5298 test -z "$SED" && SED=sed
5299 Xsed="$SED -e 1s/^X//"
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 echo "$as_me:$LINENO: checking for fgrep" >&5
5312 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5313 if test "${ac_cv_prog_fgrep+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5317 then ac_cv_prog_fgrep='grep -F'
5318 else ac_cv_prog_fgrep='fgrep'
5319 fi
5320 fi
5321 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5322 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5323 FGREP=$ac_cv_prog_fgrep
5324
5325
5326 test -z "$GREP" && GREP=grep
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5347 if test "${with_gnu_ld+set}" = set; then
5348 withval="$with_gnu_ld"
5349 test "$withval" = no || with_gnu_ld=yes
5350 else
5351 with_gnu_ld=no
5352 fi;
5353 ac_prog=ld
5354 if test "$GCC" = yes; then
5355 # Check if gcc -print-prog-name=ld gives a path.
5356 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5357 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5358 case $host in
5359 *-*-mingw*)
5360 # gcc leaves a trailing carriage return which upsets mingw
5361 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5362 *)
5363 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5364 esac
5365 case $ac_prog in
5366 # Accept absolute paths.
5367 [\\/]* | ?:[\\/]*)
5368 re_direlt='/[^/][^/]*/\.\./'
5369 # Canonicalize the pathname of ld
5370 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5371 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5372 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5373 done
5374 test -z "$LD" && LD="$ac_prog"
5375 ;;
5376 "")
5377 # If it fails, then pretend we aren't using GCC.
5378 ac_prog=ld
5379 ;;
5380 *)
5381 # If it is relative, then search for the first ld in PATH.
5382 with_gnu_ld=unknown
5383 ;;
5384 esac
5385 elif test "$with_gnu_ld" = yes; then
5386 echo "$as_me:$LINENO: checking for GNU ld" >&5
5387 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5388 else
5389 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5390 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5391 fi
5392 if test "${lt_cv_path_LD+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395 if test -z "$LD"; then
5396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5397 for ac_dir in $PATH; do
5398 IFS="$lt_save_ifs"
5399 test -z "$ac_dir" && ac_dir=.
5400 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5401 lt_cv_path_LD="$ac_dir/$ac_prog"
5402 # Check to see if the program is GNU ld. I'd rather use --version,
5403 # but apparently some variants of GNU ld only accept -v.
5404 # Break only if it was the GNU/non-GNU ld that we prefer.
5405 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5406 *GNU* | *'with BFD'*)
5407 test "$with_gnu_ld" != no && break
5408 ;;
5409 *)
5410 test "$with_gnu_ld" != yes && break
5411 ;;
5412 esac
5413 fi
5414 done
5415 IFS="$lt_save_ifs"
5416 else
5417 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5418 fi
5419 fi
5420
5421 LD="$lt_cv_path_LD"
5422 if test -n "$LD"; then
5423 echo "$as_me:$LINENO: result: $LD" >&5
5424 echo "${ECHO_T}$LD" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5428 fi
5429 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5430 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5431 { (exit 1); exit 1; }; }
5432 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5433 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5434 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5438 case `$LD -v 2>&1 </dev/null` in
5439 *GNU* | *'with BFD'*)
5440 lt_cv_prog_gnu_ld=yes
5441 ;;
5442 *)
5443 lt_cv_prog_gnu_ld=no
5444 ;;
5445 esac
5446 fi
5447 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5448 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5449 with_gnu_ld=$lt_cv_prog_gnu_ld
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5461 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5462 if test "${lt_cv_path_NM+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465 if test -n "$NM"; then
5466 # Let the user override the test.
5467 lt_cv_path_NM="$NM"
5468 else
5469 lt_nm_to_check="${ac_tool_prefix}nm"
5470 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5471 lt_nm_to_check="$lt_nm_to_check nm"
5472 fi
5473 for lt_tmp_nm in $lt_nm_to_check; do
5474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5475 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5476 IFS="$lt_save_ifs"
5477 test -z "$ac_dir" && ac_dir=.
5478 tmp_nm="$ac_dir/$lt_tmp_nm"
5479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5480 # Check to see if the nm accepts a BSD-compat flag.
5481 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5482 # nm: unknown option "B" ignored
5483 # Tru64's nm complains that /dev/null is an invalid object file
5484 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5485 */dev/null* | *'Invalid file or object type'*)
5486 lt_cv_path_NM="$tmp_nm -B"
5487 break
5488 ;;
5489 *)
5490 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5491 */dev/null*)
5492 lt_cv_path_NM="$tmp_nm -p"
5493 break
5494 ;;
5495 *)
5496 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5497 continue # so that we can try to find one that supports BSD flags
5498 ;;
5499 esac
5500 ;;
5501 esac
5502 fi
5503 done
5504 IFS="$lt_save_ifs"
5505 done
5506 : ${lt_cv_path_NM=no}
5507 fi
5508 fi
5509 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5510 echo "${ECHO_T}$lt_cv_path_NM" >&6
5511 if test "$lt_cv_path_NM" != "no"; then
5512 NM="$lt_cv_path_NM"
5513 else
5514 # Didn't find any BSD compatible name lister, look for dumpbin.
5515 if test -n "$ac_tool_prefix"; then
5516 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5517 do
5518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5520 echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5522 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 if test -n "$DUMPBIN"; then
5526 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539 done
5540 done
5541
5542 fi
5543 fi
5544 DUMPBIN=$ac_cv_prog_DUMPBIN
5545 if test -n "$DUMPBIN"; then
5546 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5547 echo "${ECHO_T}$DUMPBIN" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5551 fi
5552
5553 test -n "$DUMPBIN" && break
5554 done
5555 fi
5556 if test -z "$DUMPBIN"; then
5557 ac_ct_DUMPBIN=$DUMPBIN
5558 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5559 do
5560 # Extract the first word of "$ac_prog", so it can be a program name with args.
5561 set dummy $ac_prog; ac_word=$2
5562 echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 if test -n "$ac_ct_DUMPBIN"; then
5568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581 done
5582 done
5583
5584 fi
5585 fi
5586 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5587 if test -n "$ac_ct_DUMPBIN"; then
5588 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5589 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5590 else
5591 echo "$as_me:$LINENO: result: no" >&5
5592 echo "${ECHO_T}no" >&6
5593 fi
5594
5595 test -n "$ac_ct_DUMPBIN" && break
5596 done
5597 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5598
5599 DUMPBIN=$ac_ct_DUMPBIN
5600 fi
5601
5602
5603 if test "$DUMPBIN" != ":"; then
5604 NM="$DUMPBIN"
5605 fi
5606 fi
5607 test -z "$NM" && NM=nm
5608
5609
5610
5611
5612
5613
5614 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5615 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5616 if test "${lt_cv_nm_interface+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 lt_cv_nm_interface="BSD nm"
5620 echo "int some_variable = 0;" > conftest.$ac_ext
5621 (eval echo "\"\$as_me:5256: $ac_compile\"" >&5)
5622 (eval "$ac_compile" 2>conftest.err)
5623 cat conftest.err >&5
5624 (eval echo "\"\$as_me:5259: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5625 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5626 cat conftest.err >&5
5627 (eval echo "\"\$as_me:5262: output\"" >&5)
5628 cat conftest.out >&5
5629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5630 lt_cv_nm_interface="MS dumpbin"
5631 fi
5632 rm -f conftest*
5633 fi
5634 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5635 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5636
5637 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5638 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5639 LN_S=$as_ln_s
5640 if test "$LN_S" = "ln -s"; then
5641 echo "$as_me:$LINENO: result: yes" >&5
5642 echo "${ECHO_T}yes" >&6
5643 else
5644 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5645 echo "${ECHO_T}no, using $LN_S" >&6
5646 fi
5647
5648 # find the maximum length of command line arguments
5649 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5650 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5651 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 i=0
5655 teststring="ABCD"
5656
5657 case $build_os in
5658 msdosdjgpp*)
5659 # On DJGPP, this test can blow up pretty badly due to problems in libc
5660 # (any single argument exceeding 2000 bytes causes a buffer overrun
5661 # during glob expansion). Even if it were fixed, the result of this
5662 # check would be larger than it should be.
5663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 ;;
5665
5666 gnu*)
5667 # Under GNU Hurd, this test is not required because there is
5668 # no limit to the length of command line arguments.
5669 # Libtool will interpret -1 as no limit whatsoever
5670 lt_cv_sys_max_cmd_len=-1;
5671 ;;
5672
5673 cygwin* | mingw*)
5674 # On Win9x/ME, this test blows up -- it succeeds, but takes
5675 # about 5 minutes as the teststring grows exponentially.
5676 # Worse, since 9x/ME are not pre-emptively multitasking,
5677 # you end up with a "frozen" computer, even though with patience
5678 # the test eventually succeeds (with a max line length of 256k).
5679 # Instead, let's just punt: use the minimum linelength reported by
5680 # all of the supported platforms: 8192 (on NT/2K/XP).
5681 lt_cv_sys_max_cmd_len=8192;
5682 ;;
5683
5684 amigaos*)
5685 # On AmigaOS with pdksh, this test takes hours, literally.
5686 # So we just punt and use a minimum line length of 8192.
5687 lt_cv_sys_max_cmd_len=8192;
5688 ;;
5689
5690 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5691 # This has been around since 386BSD, at least. Likely further.
5692 if test -x /sbin/sysctl; then
5693 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5694 elif test -x /usr/sbin/sysctl; then
5695 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5696 else
5697 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5698 fi
5699 # And add a safety zone
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5702 ;;
5703
5704 interix*)
5705 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5706 lt_cv_sys_max_cmd_len=196608
5707 ;;
5708
5709 osf*)
5710 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5711 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5712 # nice to cause kernel panics so lets avoid the loop below.
5713 # First set a reasonable default.
5714 lt_cv_sys_max_cmd_len=16384
5715 #
5716 if test -x /sbin/sysconfig; then
5717 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5718 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5719 esac
5720 fi
5721 ;;
5722 sco3.2v5*)
5723 lt_cv_sys_max_cmd_len=102400
5724 ;;
5725 sysv5* | sco5v6* | sysv4.2uw2*)
5726 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5727 if test -n "$kargmax"; then
5728 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5729 else
5730 lt_cv_sys_max_cmd_len=32768
5731 fi
5732 ;;
5733 *)
5734 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5735 if test -n $lt_cv_sys_max_cmd_len; then
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5738 else
5739 # Make teststring a little bigger before we do anything with it.
5740 # a 1K string should be a reasonable start.
5741 for i in 1 2 3 4 5 6 7 8 ; do
5742 teststring=$teststring$teststring
5743 done
5744 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5745 # If test is not a shell built-in, we'll probably end up computing a
5746 # maximum length that is only half of the actual maximum length, but
5747 # we can't tell.
5748 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5749 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5750 test $i != 17 # 1/2 MB should be enough
5751 do
5752 i=`expr $i + 1`
5753 teststring=$teststring$teststring
5754 done
5755 # Only check the string length outside the loop.
5756 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5757 teststring=
5758 # Add a significant safety factor because C++ compilers can tack on
5759 # massive amounts of additional arguments before passing them to the
5760 # linker. It appears as though 1/2 is a usable value.
5761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5762 fi
5763 ;;
5764 esac
5765
5766 fi
5767
5768 if test -n $lt_cv_sys_max_cmd_len ; then
5769 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5770 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5771 else
5772 echo "$as_me:$LINENO: result: none" >&5
5773 echo "${ECHO_T}none" >&6
5774 fi
5775 max_cmd_len=$lt_cv_sys_max_cmd_len
5776
5777
5778
5779
5780
5781
5782
5783 : ${CP="cp -f"}
5784 : ${MV="mv -f"}
5785 : ${RM="rm -f"}
5786
5787 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5788 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5789 # Try some XSI features
5790 xsi_shell=no
5791 ( _lt_dummy="a/b/c"
5792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5793 = c,a/b,, ) >/dev/null 2>&1 \
5794 && xsi_shell=yes
5795 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5796 echo "${ECHO_T}$xsi_shell" >&6
5797
5798
5799 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5800 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5801 lt_shell_append=no
5802 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5803 >/dev/null 2>&1 \
5804 && lt_shell_append=yes
5805 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5806 echo "${ECHO_T}$lt_shell_append" >&6
5807
5808
5809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5810 lt_unset=unset
5811 else
5812 lt_unset=false
5813 fi
5814
5815
5816
5817
5818
5819 # test EBCDIC or ASCII
5820 case `echo X|tr X '\101'` in
5821 A) # ASCII based system
5822 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5823 lt_SP2NL='tr \040 \012'
5824 lt_NL2SP='tr \015\012 \040\040'
5825 ;;
5826 *) # EBCDIC based system
5827 lt_SP2NL='tr \100 \n'
5828 lt_NL2SP='tr \r\n \100\100'
5829 ;;
5830 esac
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5841 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5842 if test "${lt_cv_ld_reload_flag+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845 lt_cv_ld_reload_flag='-r'
5846 fi
5847 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5848 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5849 reload_flag=$lt_cv_ld_reload_flag
5850 case $reload_flag in
5851 "" | " "*) ;;
5852 *) reload_flag=" $reload_flag" ;;
5853 esac
5854 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5855 case $host_os in
5856 darwin*)
5857 if test "$GCC" = yes; then
5858 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5859 else
5860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5861 fi
5862 ;;
5863 esac
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5875 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5876 if test "${lt_cv_deplibs_check_method+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 lt_cv_file_magic_cmd='$MAGIC_CMD'
5880 lt_cv_file_magic_test_file=
5881 lt_cv_deplibs_check_method='unknown'
5882 # Need to set the preceding variable on all platforms that support
5883 # interlibrary dependencies.
5884 # 'none' -- dependencies not supported.
5885 # `unknown' -- same as none, but documents that we really don't know.
5886 # 'pass_all' -- all dependencies passed with no checks.
5887 # 'test_compile' -- check by making test program.
5888 # 'file_magic [[regex]]' -- check by looking for files in library path
5889 # which responds to the $file_magic_cmd with a given extended regex.
5890 # If you have `file' or equivalent on your system and you're not sure
5891 # whether `pass_all' will *always* work, you probably want this one.
5892
5893 case $host_os in
5894 aix[4-9]*)
5895 lt_cv_deplibs_check_method=pass_all
5896 ;;
5897
5898 beos*)
5899 lt_cv_deplibs_check_method=pass_all
5900 ;;
5901
5902 bsdi[45]*)
5903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5904 lt_cv_file_magic_cmd='/usr/bin/file -L'
5905 lt_cv_file_magic_test_file=/shlib/libc.so
5906 ;;
5907
5908 cygwin*)
5909 # func_win32_libid is a shell function defined in ltmain.sh
5910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5911 lt_cv_file_magic_cmd='func_win32_libid'
5912 ;;
5913
5914 mingw* | pw32*)
5915 # Base MSYS/MinGW do not provide the 'file' command needed by
5916 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5917 # unless we find 'file', for example because we are cross-compiling.
5918 if ( file / ) >/dev/null 2>&1; then
5919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5920 lt_cv_file_magic_cmd='func_win32_libid'
5921 else
5922 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5923 lt_cv_file_magic_cmd='$OBJDUMP -f'
5924 fi
5925 ;;
5926
5927 darwin* | rhapsody*)
5928 lt_cv_deplibs_check_method=pass_all
5929 ;;
5930
5931 freebsd* | dragonfly*)
5932 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5933 case $host_cpu in
5934 i*86 )
5935 # Not sure whether the presence of OpenBSD here was a mistake.
5936 # Let's accept both of them until this is cleared up.
5937 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5938 lt_cv_file_magic_cmd=/usr/bin/file
5939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5940 ;;
5941 esac
5942 else
5943 lt_cv_deplibs_check_method=pass_all
5944 fi
5945 ;;
5946
5947 gnu*)
5948 lt_cv_deplibs_check_method=pass_all
5949 ;;
5950
5951 hpux10.20* | hpux11*)
5952 lt_cv_file_magic_cmd=/usr/bin/file
5953 case $host_cpu in
5954 ia64*)
5955 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5956 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5957 ;;
5958 hppa*64*)
5959 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]'
5960 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5961 ;;
5962 *)
5963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5964 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5965 ;;
5966 esac
5967 ;;
5968
5969 interix[3-9]*)
5970 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5972 ;;
5973
5974 irix5* | irix6* | nonstopux*)
5975 case $LD in
5976 *-32|*"-32 ") libmagic=32-bit;;
5977 *-n32|*"-n32 ") libmagic=N32;;
5978 *-64|*"-64 ") libmagic=64-bit;;
5979 *) libmagic=never-match;;
5980 esac
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983
5984 # This must be Linux ELF.
5985 linux* | k*bsd*-gnu)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988
5989 netbsd*)
5990 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5992 else
5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5994 fi
5995 ;;
5996
5997 newos6*)
5998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5999 lt_cv_file_magic_cmd=/usr/bin/file
6000 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6001 ;;
6002
6003 *nto* | *qnx*)
6004 lt_cv_deplibs_check_method=pass_all
6005 ;;
6006
6007 openbsd*)
6008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6010 else
6011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012 fi
6013 ;;
6014
6015 osf3* | osf4* | osf5*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018
6019 rdos*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023 solaris*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030
6031 sysv4 | sysv4.3*)
6032 case $host_vendor in
6033 motorola)
6034 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]'
6035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6036 ;;
6037 ncr)
6038 lt_cv_deplibs_check_method=pass_all
6039 ;;
6040 sequent)
6041 lt_cv_file_magic_cmd='/bin/file'
6042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6043 ;;
6044 sni)
6045 lt_cv_file_magic_cmd='/bin/file'
6046 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6047 lt_cv_file_magic_test_file=/lib/libc.so
6048 ;;
6049 siemens)
6050 lt_cv_deplibs_check_method=pass_all
6051 ;;
6052 pc)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055 esac
6056 ;;
6057
6058 tpf*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061 esac
6062
6063 fi
6064 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6065 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6066 file_magic_cmd=$lt_cv_file_magic_cmd
6067 deplibs_check_method=$lt_cv_deplibs_check_method
6068 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081 if test -n "$ac_tool_prefix"; then
6082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6083 set dummy ${ac_tool_prefix}ar; ac_word=$2
6084 echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6086 if test "${ac_cv_prog_AR+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 if test -n "$AR"; then
6090 ac_cv_prog_AR="$AR" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_AR="${ac_tool_prefix}ar"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103 done
6104 done
6105
6106 fi
6107 fi
6108 AR=$ac_cv_prog_AR
6109 if test -n "$AR"; then
6110 echo "$as_me:$LINENO: result: $AR" >&5
6111 echo "${ECHO_T}$AR" >&6
6112 else
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6115 fi
6116
6117 fi
6118 if test -z "$ac_cv_prog_AR"; then
6119 ac_ct_AR=$AR
6120 # Extract the first word of "ar", so it can be a program name with args.
6121 set dummy ar; ac_word=$2
6122 echo "$as_me:$LINENO: checking for $ac_word" >&5
6123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6124 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 if test -n "$ac_ct_AR"; then
6128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_ac_ct_AR="ar"
6138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143
6144 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6145 fi
6146 fi
6147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6148 if test -n "$ac_ct_AR"; then
6149 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6150 echo "${ECHO_T}$ac_ct_AR" >&6
6151 else
6152 echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6
6154 fi
6155
6156 AR=$ac_ct_AR
6157 else
6158 AR="$ac_cv_prog_AR"
6159 fi
6160
6161 test -z "$AR" && AR=ar
6162 test -z "$AR_FLAGS" && AR_FLAGS=cru
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 if test -n "$ac_tool_prefix"; then
6175 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6176 set dummy ${ac_tool_prefix}strip; ac_word=$2
6177 echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6179 if test "${ac_cv_prog_STRIP+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182 if test -n "$STRIP"; then
6183 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6195 fi
6196 done
6197 done
6198
6199 fi
6200 fi
6201 STRIP=$ac_cv_prog_STRIP
6202 if test -n "$STRIP"; then
6203 echo "$as_me:$LINENO: result: $STRIP" >&5
6204 echo "${ECHO_T}$STRIP" >&6
6205 else
6206 echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6
6208 fi
6209
6210 fi
6211 if test -z "$ac_cv_prog_STRIP"; then
6212 ac_ct_STRIP=$STRIP
6213 # Extract the first word of "strip", so it can be a program name with args.
6214 set dummy strip; ac_word=$2
6215 echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 if test -n "$ac_ct_STRIP"; then
6221 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_ac_ct_STRIP="strip"
6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236
6237 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6238 fi
6239 fi
6240 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6241 if test -n "$ac_ct_STRIP"; then
6242 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6243 echo "${ECHO_T}$ac_ct_STRIP" >&6
6244 else
6245 echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6
6247 fi
6248
6249 STRIP=$ac_ct_STRIP
6250 else
6251 STRIP="$ac_cv_prog_STRIP"
6252 fi
6253
6254 test -z "$STRIP" && STRIP=:
6255
6256
6257
6258
6259
6260
6261 if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6264 echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6266 if test "${ac_cv_prog_RANLIB+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 if test -n "$RANLIB"; then
6270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285
6286 fi
6287 fi
6288 RANLIB=$ac_cv_prog_RANLIB
6289 if test -n "$RANLIB"; then
6290 echo "$as_me:$LINENO: result: $RANLIB" >&5
6291 echo "${ECHO_T}$RANLIB" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6
6295 fi
6296
6297 fi
6298 if test -z "$ac_cv_prog_RANLIB"; then
6299 ac_ct_RANLIB=$RANLIB
6300 # Extract the first word of "ranlib", so it can be a program name with args.
6301 set dummy ranlib; ac_word=$2
6302 echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6304 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 if test -n "$ac_ct_RANLIB"; then
6308 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_ac_ct_RANLIB="ranlib"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323
6324 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6325 fi
6326 fi
6327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6328 if test -n "$ac_ct_RANLIB"; then
6329 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6330 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6331 else
6332 echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6
6334 fi
6335
6336 RANLIB=$ac_ct_RANLIB
6337 else
6338 RANLIB="$ac_cv_prog_RANLIB"
6339 fi
6340
6341 test -z "$RANLIB" && RANLIB=:
6342
6343
6344
6345
6346
6347
6348 # Determine commands to create old-style static archives.
6349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6350 old_postinstall_cmds='chmod 644 $oldlib'
6351 old_postuninstall_cmds=
6352
6353 if test -n "$RANLIB"; then
6354 case $host_os in
6355 openbsd*)
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6357 ;;
6358 *)
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6360 ;;
6361 esac
6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6363 fi
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 # If no C compiler was specified, use CC.
6399 LTCC=${LTCC-"$CC"}
6400
6401 # If no C compiler flags were specified, use CFLAGS.
6402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6403
6404 # Allow CC to be a program name with arguments.
6405 compiler=$CC
6406
6407
6408 # Check for command to grab the raw symbol name followed by C symbol from nm.
6409 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6410 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6411 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414
6415 # These are sane defaults that work on at least a few old systems.
6416 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6417
6418 # Character class describing NM global symbol codes.
6419 symcode='[BCDEGRST]'
6420
6421 # Regexp to match symbols that can be accessed directly from C.
6422 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6423
6424 # Define system-specific variables.
6425 case $host_os in
6426 aix*)
6427 symcode='[BCDT]'
6428 ;;
6429 cygwin* | mingw* | pw32*)
6430 symcode='[ABCDGISTW]'
6431 ;;
6432 hpux*)
6433 if test "$host_cpu" = ia64; then
6434 symcode='[ABCDEGRST]'
6435 fi
6436 ;;
6437 irix* | nonstopux*)
6438 symcode='[BCDEGRST]'
6439 ;;
6440 osf*)
6441 symcode='[BCDEGQRST]'
6442 ;;
6443 solaris*)
6444 symcode='[BDRT]'
6445 ;;
6446 sco3.2v5*)
6447 symcode='[DT]'
6448 ;;
6449 sysv4.2uw2*)
6450 symcode='[DT]'
6451 ;;
6452 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6453 symcode='[ABDT]'
6454 ;;
6455 sysv4)
6456 symcode='[DFNSTU]'
6457 ;;
6458 esac
6459
6460 # If we're using GNU nm, then use its standard symbol codes.
6461 case `$NM -V 2>&1` in
6462 *GNU* | *'with BFD'*)
6463 symcode='[ABCDGIRSTW]' ;;
6464 esac
6465
6466 # Transform an extracted symbol line into a proper C declaration.
6467 # Some systems (esp. on ia64) link data and code symbols differently,
6468 # so use this general approach.
6469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6470
6471 # Transform an extracted symbol line into symbol name and symbol address
6472 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6473
6474 # Handle CRLF in mingw tool chain
6475 opt_cr=
6476 case $build_os in
6477 mingw*)
6478 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6479 ;;
6480 esac
6481
6482 # Try without a prefix underscore, then with it.
6483 for ac_symprfx in "" "_"; do
6484
6485 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6486 symxfrm="\\1 $ac_symprfx\\2 \\2"
6487
6488 # Write the raw and C identifiers.
6489 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6490 # Fake it for dumpbin and say T for any non-static function
6491 # and D for any global variable.
6492 # Also find C++ and __fastcall symbols from MSVC++,
6493 # which start with @ or ?.
6494 lt_cv_sys_global_symbol_pipe="$AWK '"\
6495 " {last_section=section; section=\$ 3};"\
6496 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6497 " \$ 0!~/External *\|/{next};"\
6498 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6499 " {if(hide[section]) next};"\
6500 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6501 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6502 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6503 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6504 " ' prfx=^$ac_symprfx"
6505 else
6506 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6507 fi
6508
6509 # Check to see that the pipe works correctly.
6510 pipe_works=no
6511
6512 rm -f conftest*
6513 cat > conftest.$ac_ext <<_LT_EOF
6514 #ifdef __cplusplus
6515 extern "C" {
6516 #endif
6517 char nm_test_var;
6518 void nm_test_func(void);
6519 void nm_test_func(void){}
6520 #ifdef __cplusplus
6521 }
6522 #endif
6523 int main(){nm_test_var='a';nm_test_func();return(0);}
6524 _LT_EOF
6525
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; then
6531 # Now try to grab the symbols.
6532 nlist=conftest.nm
6533 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6534 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && test -s "$nlist"; then
6538 # Try sorting and uniquifying the output.
6539 if sort "$nlist" | uniq > "$nlist"T; then
6540 mv -f "$nlist"T "$nlist"
6541 else
6542 rm -f "$nlist"T
6543 fi
6544
6545 # Make sure that we snagged all the symbols we need.
6546 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6547 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6548 cat <<_LT_EOF > conftest.$ac_ext
6549 #ifdef __cplusplus
6550 extern "C" {
6551 #endif
6552
6553 _LT_EOF
6554 # Now generate the symbol file.
6555 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6556
6557 cat <<_LT_EOF >> conftest.$ac_ext
6558
6559 /* The mapping between symbol names and symbols. */
6560 const struct {
6561 const char *name;
6562 void *address;
6563 }
6564 lt__PROGRAM__LTX_preloaded_symbols[] =
6565 {
6566 { "@PROGRAM@", (void *) 0 },
6567 _LT_EOF
6568 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6569 cat <<\_LT_EOF >> conftest.$ac_ext
6570 {0, (void *) 0}
6571 };
6572
6573 /* This works around a problem in FreeBSD linker */
6574 #ifdef FREEBSD_WORKAROUND
6575 static const void *lt_preloaded_setup() {
6576 return lt__PROGRAM__LTX_preloaded_symbols;
6577 }
6578 #endif
6579
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583 _LT_EOF
6584 # Now try linking the two files.
6585 mv conftest.$ac_objext conftstm.$ac_objext
6586 lt_save_LIBS="$LIBS"
6587 lt_save_CFLAGS="$CFLAGS"
6588 LIBS="conftstm.$ac_objext"
6589 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591 (eval $ac_link) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6595 pipe_works=yes
6596 fi
6597 LIBS="$lt_save_LIBS"
6598 CFLAGS="$lt_save_CFLAGS"
6599 else
6600 echo "cannot find nm_test_func in $nlist" >&5
6601 fi
6602 else
6603 echo "cannot find nm_test_var in $nlist" >&5
6604 fi
6605 else
6606 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6607 fi
6608 else
6609 echo "$progname: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6611 fi
6612 rm -f conftest* conftst*
6613
6614 # Do not use the global_symbol_pipe unless it works.
6615 if test "$pipe_works" = yes; then
6616 break
6617 else
6618 lt_cv_sys_global_symbol_pipe=
6619 fi
6620 done
6621
6622 fi
6623
6624 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6625 lt_cv_sys_global_symbol_to_cdecl=
6626 fi
6627 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6628 echo "$as_me:$LINENO: result: failed" >&5
6629 echo "${ECHO_T}failed" >&6
6630 else
6631 echo "$as_me:$LINENO: result: ok" >&5
6632 echo "${ECHO_T}ok" >&6
6633 fi
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6652 if test "${enable_libtool_lock+set}" = set; then
6653 enableval="$enable_libtool_lock"
6654
6655 fi;
6656 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6657
6658 # Some flags need to be propagated to the compiler or linker for good
6659 # libtool support.
6660 case $host in
6661 ia64-*-hpux*)
6662 # Find out which ABI we are using.
6663 echo 'int i;' > conftest.$ac_ext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; then
6669 case `/usr/bin/file conftest.$ac_objext` in
6670 *ELF-32*)
6671 HPUX_IA64_MODE="32"
6672 ;;
6673 *ELF-64*)
6674 HPUX_IA64_MODE="64"
6675 ;;
6676 esac
6677 fi
6678 rm -rf conftest*
6679 ;;
6680 *-*-irix6*)
6681 # Find out which ABI we are using.
6682 echo '#line 6317 "configure"' > conftest.$ac_ext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; then
6688 if test "$lt_cv_prog_gnu_ld" = yes; then
6689 case `/usr/bin/file conftest.$ac_objext` in
6690 *32-bit*)
6691 LD="${LD-ld} -melf32bsmip"
6692 ;;
6693 *N32*)
6694 LD="${LD-ld} -melf32bmipn32"
6695 ;;
6696 *64-bit*)
6697 LD="${LD-ld} -melf64bmip"
6698 ;;
6699 esac
6700 else
6701 case `/usr/bin/file conftest.$ac_objext` in
6702 *32-bit*)
6703 LD="${LD-ld} -32"
6704 ;;
6705 *N32*)
6706 LD="${LD-ld} -n32"
6707 ;;
6708 *64-bit*)
6709 LD="${LD-ld} -64"
6710 ;;
6711 esac
6712 fi
6713 fi
6714 rm -rf conftest*
6715 ;;
6716
6717 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6718 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6719 # Find out which ABI we are using.
6720 echo 'int i;' > conftest.$ac_ext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722 (eval $ac_compile) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; then
6726 case `/usr/bin/file conftest.o` in
6727 *32-bit*)
6728 case $host in
6729 x86_64-*kfreebsd*-gnu)
6730 LD="${LD-ld} -m elf_i386_fbsd"
6731 ;;
6732 x86_64-*linux*)
6733 LD="${LD-ld} -m elf_i386"
6734 ;;
6735 ppc64-*linux*|powerpc64-*linux*)
6736 LD="${LD-ld} -m elf32ppclinux"
6737 ;;
6738 s390x-*linux*)
6739 LD="${LD-ld} -m elf_s390"
6740 ;;
6741 sparc64-*linux*)
6742 LD="${LD-ld} -m elf32_sparc"
6743 ;;
6744 esac
6745 ;;
6746 *64-bit*)
6747 case $host in
6748 x86_64-*kfreebsd*-gnu)
6749 LD="${LD-ld} -m elf_x86_64_fbsd"
6750 ;;
6751 x86_64-*linux*)
6752 LD="${LD-ld} -m elf_x86_64"
6753 ;;
6754 ppc*-*linux*|powerpc*-*linux*)
6755 LD="${LD-ld} -m elf64ppc"
6756 ;;
6757 s390*-*linux*|s390*-*tpf*)
6758 LD="${LD-ld} -m elf64_s390"
6759 ;;
6760 sparc*-*linux*)
6761 LD="${LD-ld} -m elf64_sparc"
6762 ;;
6763 esac
6764 ;;
6765 esac
6766 fi
6767 rm -rf conftest*
6768 ;;
6769
6770 *-*-sco3.2v5*)
6771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6772 SAVE_CFLAGS="$CFLAGS"
6773 CFLAGS="$CFLAGS -belf"
6774 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6776 if test "${lt_cv_cc_needs_belf+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779 ac_ext=c
6780 ac_cpp='$CPP $CPPFLAGS'
6781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h. */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791
6792 int
6793 main ()
6794 {
6795
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 rm -f conftest.$ac_objext conftest$ac_exeext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try='test -s conftest$ac_exeext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 lt_cv_cc_needs_belf=yes
6823 else
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 lt_cv_cc_needs_belf=no
6828 fi
6829 rm -f conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6831 ac_ext=c
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836
6837 fi
6838 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6839 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6842 CFLAGS="$SAVE_CFLAGS"
6843 fi
6844 ;;
6845 sparc*-*solaris*)
6846 # Find out which ABI we are using.
6847 echo 'int i;' > conftest.$ac_ext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; then
6853 case `/usr/bin/file conftest.o` in
6854 *64-bit*)
6855 case $lt_cv_prog_gnu_ld in
6856 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6857 *) LD="${LD-ld} -64" ;;
6858 esac
6859 ;;
6860 esac
6861 fi
6862 rm -rf conftest*
6863 ;;
6864 esac
6865
6866 need_locks="$enable_libtool_lock"
6867
6868
6869 for ac_header in dlfcn.h
6870 do
6871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6872 echo "$as_me:$LINENO: checking for $ac_header" >&5
6873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 $ac_includes_default
6884
6885 #include <$ac_header>
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 eval "$as_ac_Header=yes"
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6913
6914 eval "$as_ac_Header=no"
6915 fi
6916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6917 fi
6918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6921 cat >>confdefs.h <<_ACEOF
6922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6923 _ACEOF
6924
6925 fi
6926
6927 done
6928
6929
6930
6931 # This can be used to rebuild libtool when needed
6932 LIBTOOL_DEPS="$ltmain"
6933
6934 # Always use our own libtool.
6935 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 test -z "$LN_S" && LN_S="ln -s"
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976 if test -n "${ZSH_VERSION+set}" ; then
6977 setopt NO_GLOB_SUBST
6978 fi
6979
6980 echo "$as_me:$LINENO: checking for objdir" >&5
6981 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6982 if test "${lt_cv_objdir+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 rm -f .libs 2>/dev/null
6986 mkdir .libs 2>/dev/null
6987 if test -d .libs; then
6988 lt_cv_objdir=.libs
6989 else
6990 # MS-DOS does not allow filenames that begin with a dot.
6991 lt_cv_objdir=_libs
6992 fi
6993 rmdir .libs 2>/dev/null
6994 fi
6995 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6996 echo "${ECHO_T}$lt_cv_objdir" >&6
6997 objdir=$lt_cv_objdir
6998
6999
7000
7001
7002
7003 cat >>confdefs.h <<_ACEOF
7004 #define LT_OBJDIR "$lt_cv_objdir/"
7005 _ACEOF
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 case $host_os in
7024 aix3*)
7025 # AIX sometimes has problems with the GCC collect2 program. For some
7026 # reason, if we set the COLLECT_NAMES environment variable, the problems
7027 # vanish in a puff of smoke.
7028 if test "X${COLLECT_NAMES+set}" != Xset; then
7029 COLLECT_NAMES=
7030 export COLLECT_NAMES
7031 fi
7032 ;;
7033 esac
7034
7035 # Sed substitution that helps us do robust quoting. It backslashifies
7036 # metacharacters that are still active within double-quoted strings.
7037 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7038
7039 # Same as above, but do not quote variable references.
7040 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7041
7042 # Sed substitution to delay expansion of an escaped shell variable in a
7043 # double_quote_subst'ed string.
7044 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7045
7046 # Sed substitution to delay expansion of an escaped single quote.
7047 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7048
7049 # Sed substitution to avoid accidental globbing in evaled expressions
7050 no_glob_subst='s/\*/\\\*/g'
7051
7052 # Global variables:
7053 ofile=libtool
7054 can_build_shared=yes
7055
7056 # All known linkers require a `.a' archive for static linking (except MSVC,
7057 # which needs '.lib').
7058 libext=a
7059
7060 with_gnu_ld="$lt_cv_prog_gnu_ld"
7061
7062 old_CC="$CC"
7063 old_CFLAGS="$CFLAGS"
7064
7065 # Set sane defaults for various variables
7066 test -z "$CC" && CC=cc
7067 test -z "$LTCC" && LTCC=$CC
7068 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7069 test -z "$LD" && LD=ld
7070 test -z "$ac_objext" && ac_objext=o
7071
7072 for cc_temp in $compiler""; do
7073 case $cc_temp in
7074 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7075 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7076 \-*) ;;
7077 *) break;;
7078 esac
7079 done
7080 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7081
7082
7083 # Only perform the check for file, if the check method requires it
7084 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7085 case $deplibs_check_method in
7086 file_magic*)
7087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7088 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7089 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7090 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 case $MAGIC_CMD in
7094 [\\/*] | ?:[\\/]*)
7095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7096 ;;
7097 *)
7098 lt_save_MAGIC_CMD="$MAGIC_CMD"
7099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7100 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7101 for ac_dir in $ac_dummy; do
7102 IFS="$lt_save_ifs"
7103 test -z "$ac_dir" && ac_dir=.
7104 if test -f $ac_dir/${ac_tool_prefix}file; then
7105 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7106 if test -n "$file_magic_test_file"; then
7107 case $deplibs_check_method in
7108 "file_magic "*)
7109 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7112 $EGREP "$file_magic_regex" > /dev/null; then
7113 :
7114 else
7115 cat <<_LT_EOF 1>&2
7116
7117 *** Warning: the command libtool uses to detect shared libraries,
7118 *** $file_magic_cmd, produces output that libtool cannot recognize.
7119 *** The result is that libtool may fail to recognize shared libraries
7120 *** as such. This will affect the creation of libtool libraries that
7121 *** depend on shared libraries, but programs linked with such libtool
7122 *** libraries will work regardless of this problem. Nevertheless, you
7123 *** may want to report the problem to your system manager and/or to
7124 *** bug-libtool@gnu.org
7125
7126 _LT_EOF
7127 fi ;;
7128 esac
7129 fi
7130 break
7131 fi
7132 done
7133 IFS="$lt_save_ifs"
7134 MAGIC_CMD="$lt_save_MAGIC_CMD"
7135 ;;
7136 esac
7137 fi
7138
7139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140 if test -n "$MAGIC_CMD"; then
7141 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7142 echo "${ECHO_T}$MAGIC_CMD" >&6
7143 else
7144 echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6
7146 fi
7147
7148
7149
7150
7151
7152 if test -z "$lt_cv_path_MAGIC_CMD"; then
7153 if test -n "$ac_tool_prefix"; then
7154 echo "$as_me:$LINENO: checking for file" >&5
7155 echo $ECHO_N "checking for file... $ECHO_C" >&6
7156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 case $MAGIC_CMD in
7160 [\\/*] | ?:[\\/]*)
7161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7162 ;;
7163 *)
7164 lt_save_MAGIC_CMD="$MAGIC_CMD"
7165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7167 for ac_dir in $ac_dummy; do
7168 IFS="$lt_save_ifs"
7169 test -z "$ac_dir" && ac_dir=.
7170 if test -f $ac_dir/file; then
7171 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7172 if test -n "$file_magic_test_file"; then
7173 case $deplibs_check_method in
7174 "file_magic "*)
7175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7178 $EGREP "$file_magic_regex" > /dev/null; then
7179 :
7180 else
7181 cat <<_LT_EOF 1>&2
7182
7183 *** Warning: the command libtool uses to detect shared libraries,
7184 *** $file_magic_cmd, produces output that libtool cannot recognize.
7185 *** The result is that libtool may fail to recognize shared libraries
7186 *** as such. This will affect the creation of libtool libraries that
7187 *** depend on shared libraries, but programs linked with such libtool
7188 *** libraries will work regardless of this problem. Nevertheless, you
7189 *** may want to report the problem to your system manager and/or to
7190 *** bug-libtool@gnu.org
7191
7192 _LT_EOF
7193 fi ;;
7194 esac
7195 fi
7196 break
7197 fi
7198 done
7199 IFS="$lt_save_ifs"
7200 MAGIC_CMD="$lt_save_MAGIC_CMD"
7201 ;;
7202 esac
7203 fi
7204
7205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7206 if test -n "$MAGIC_CMD"; then
7207 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7208 echo "${ECHO_T}$MAGIC_CMD" >&6
7209 else
7210 echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6
7212 fi
7213
7214
7215 else
7216 MAGIC_CMD=:
7217 fi
7218 fi
7219
7220 fi
7221 ;;
7222 esac
7223
7224 # Use C for the default configuration in the libtool script
7225
7226 lt_save_CC="$CC"
7227 ac_ext=c
7228 ac_cpp='$CPP $CPPFLAGS'
7229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7232
7233
7234 # Source file extension for C test sources.
7235 ac_ext=c
7236
7237 # Object file extension for compiled C test sources.
7238 objext=o
7239 objext=$objext
7240
7241 # Code to be used in simple compile tests
7242 lt_simple_compile_test_code="int some_variable = 0;"
7243
7244 # Code to be used in simple link tests
7245 lt_simple_link_test_code='int main(){return(0);}'
7246
7247
7248
7249
7250
7251
7252
7253 # If no C compiler was specified, use CC.
7254 LTCC=${LTCC-"$CC"}
7255
7256 # If no C compiler flags were specified, use CFLAGS.
7257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7258
7259 # Allow CC to be a program name with arguments.
7260 compiler=$CC
7261
7262 # Save the default compiler, since it gets overwritten when the other
7263 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7264 compiler_DEFAULT=$CC
7265
7266 # save warnings/boilerplate of simple test code
7267 ac_outfile=conftest.$ac_objext
7268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7270 _lt_compiler_boilerplate=`cat conftest.err`
7271 $RM conftest*
7272
7273 ac_outfile=conftest.$ac_objext
7274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7276 _lt_linker_boilerplate=`cat conftest.err`
7277 $RM conftest*
7278
7279
7280 ## CAVEAT EMPTOR:
7281 ## There is no encapsulation within the following macros, do not change
7282 ## the running order or otherwise move them around unless you know exactly
7283 ## what you are doing...
7284 if test -n "$compiler"; then
7285
7286 lt_prog_compiler_no_builtin_flag=
7287
7288 if test "$GCC" = yes; then
7289 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7290
7291 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7292 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296 lt_cv_prog_compiler_rtti_exceptions=no
7297 ac_outfile=conftest.$ac_objext
7298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7299 lt_compiler_flag="-fno-rtti -fno-exceptions"
7300 # Insert the option either (1) after the last *FLAGS variable, or
7301 # (2) before a word containing "conftest.", or (3) at the end.
7302 # Note that $ac_compile itself does not contain backslashes and begins
7303 # with a dollar sign (not a hyphen), so the echo should work correctly.
7304 # The option is referenced via a variable to avoid confusing sed.
7305 lt_compile=`echo "$ac_compile" | $SED \
7306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7308 -e 's:$: $lt_compiler_flag:'`
7309 (eval echo "\"\$as_me:6944: $lt_compile\"" >&5)
7310 (eval "$lt_compile" 2>conftest.err)
7311 ac_status=$?
7312 cat conftest.err >&5
7313 echo "$as_me:6948: \$? = $ac_status" >&5
7314 if (exit $ac_status) && test -s "$ac_outfile"; then
7315 # The compiler can only warn and ignore the option if not recognized
7316 # So say no if there are warnings other than the usual output.
7317 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7320 lt_cv_prog_compiler_rtti_exceptions=yes
7321 fi
7322 fi
7323 $RM conftest*
7324
7325 fi
7326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7327 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7328
7329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7331 else
7332 :
7333 fi
7334
7335 fi
7336
7337
7338
7339
7340
7341
7342 lt_prog_compiler_wl=
7343 lt_prog_compiler_pic=
7344 lt_prog_compiler_static=
7345
7346 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7347 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7348
7349 if test "$GCC" = yes; then
7350 lt_prog_compiler_wl='-Wl,'
7351 lt_prog_compiler_static='-static'
7352
7353 case $host_os in
7354 aix*)
7355 # All AIX code is PIC.
7356 if test "$host_cpu" = ia64; then
7357 # AIX 5 now supports IA64 processor
7358 lt_prog_compiler_static='-Bstatic'
7359 fi
7360 ;;
7361
7362 amigaos*)
7363 if test "$host_cpu" = m68k; then
7364 # FIXME: we need at least 68020 code to build shared libraries, but
7365 # adding the `-m68020' flag to GCC prevents building anything better,
7366 # like `-m68040'.
7367 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7368 fi
7369 ;;
7370
7371 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7372 # PIC is the default for these OSes.
7373 ;;
7374
7375 mingw* | cygwin* | pw32* | os2*)
7376 # This hack is so that the source file can tell whether it is being
7377 # built for inclusion in a dll (and should export symbols for example).
7378 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7379 # (--disable-auto-import) libraries
7380 lt_prog_compiler_pic='-DDLL_EXPORT'
7381 ;;
7382
7383 darwin* | rhapsody*)
7384 # PIC is the default on this platform
7385 # Common symbols not allowed in MH_DYLIB files
7386 lt_prog_compiler_pic='-fno-common'
7387 ;;
7388
7389 hpux*)
7390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7391 # not for PA HP-UX.
7392 case $host_cpu in
7393 hppa*64*|ia64*)
7394 # +Z the default
7395 ;;
7396 *)
7397 lt_prog_compiler_pic='-fPIC'
7398 ;;
7399 esac
7400 ;;
7401
7402 interix[3-9]*)
7403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7404 # Instead, we relocate shared libraries at runtime.
7405 ;;
7406
7407 msdosdjgpp*)
7408 # Just because we use GCC doesn't mean we suddenly get shared libraries
7409 # on systems that don't support them.
7410 lt_prog_compiler_can_build_shared=no
7411 enable_shared=no
7412 ;;
7413
7414 *nto* | *qnx*)
7415 # QNX uses GNU C++, but need to define -shared option too, otherwise
7416 # it will coredump.
7417 lt_prog_compiler_pic='-fPIC -shared'
7418 ;;
7419
7420 sysv4*MP*)
7421 if test -d /usr/nec; then
7422 lt_prog_compiler_pic=-Kconform_pic
7423 fi
7424 ;;
7425
7426 *)
7427 lt_prog_compiler_pic='-fPIC'
7428 ;;
7429 esac
7430 else
7431 # PORTME Check for flag to pass linker flags through the system compiler.
7432 case $host_os in
7433 aix*)
7434 lt_prog_compiler_wl='-Wl,'
7435 if test "$host_cpu" = ia64; then
7436 # AIX 5 now supports IA64 processor
7437 lt_prog_compiler_static='-Bstatic'
7438 else
7439 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7440 fi
7441 ;;
7442 darwin*)
7443 # PIC is the default on this platform
7444 # Common symbols not allowed in MH_DYLIB files
7445 case $cc_basename in
7446 xlc*)
7447 lt_prog_compiler_pic='-qnocommon'
7448 lt_prog_compiler_wl='-Wl,'
7449 ;;
7450 esac
7451 ;;
7452
7453 mingw* | cygwin* | pw32* | os2*)
7454 # This hack is so that the source file can tell whether it is being
7455 # built for inclusion in a dll (and should export symbols for example).
7456 lt_prog_compiler_pic='-DDLL_EXPORT'
7457 ;;
7458
7459 hpux9* | hpux10* | hpux11*)
7460 lt_prog_compiler_wl='-Wl,'
7461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7462 # not for PA HP-UX.
7463 case $host_cpu in
7464 hppa*64*|ia64*)
7465 # +Z the default
7466 ;;
7467 *)
7468 lt_prog_compiler_pic='+Z'
7469 ;;
7470 esac
7471 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7472 lt_prog_compiler_static='${wl}-a ${wl}archive'
7473 ;;
7474
7475 irix5* | irix6* | nonstopux*)
7476 lt_prog_compiler_wl='-Wl,'
7477 # PIC (with -KPIC) is the default.
7478 lt_prog_compiler_static='-non_shared'
7479 ;;
7480
7481 linux* | k*bsd*-gnu)
7482 case $cc_basename in
7483 icc* | ecc*)
7484 lt_prog_compiler_wl='-Wl,'
7485 lt_prog_compiler_pic='-KPIC'
7486 lt_prog_compiler_static='-static'
7487 ;;
7488 pgcc* | pgf77* | pgf90* | pgf95*)
7489 # Portland Group compilers (*not* the Pentium gcc compiler,
7490 # which looks to be a dead project)
7491 lt_prog_compiler_wl='-Wl,'
7492 lt_prog_compiler_pic='-fpic'
7493 lt_prog_compiler_static='-Bstatic'
7494 ;;
7495 ccc*)
7496 lt_prog_compiler_wl='-Wl,'
7497 # All Alpha code is PIC.
7498 lt_prog_compiler_static='-non_shared'
7499 ;;
7500 *)
7501 case `$CC -V 2>&1 | sed 5q` in
7502 *Sun\ C*)
7503 # Sun C 5.9
7504 lt_prog_compiler_pic='-KPIC'
7505 lt_prog_compiler_static='-Bstatic'
7506 lt_prog_compiler_wl='-Wl,'
7507 ;;
7508 *Sun\ F*)
7509 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7510 lt_prog_compiler_pic='-KPIC'
7511 lt_prog_compiler_static='-Bstatic'
7512 lt_prog_compiler_wl=''
7513 ;;
7514 esac
7515 ;;
7516 esac
7517 ;;
7518
7519 newsos6)
7520 lt_prog_compiler_pic='-KPIC'
7521 lt_prog_compiler_static='-Bstatic'
7522 ;;
7523
7524 *nto* | *qnx*)
7525 # QNX uses GNU C++, but need to define -shared option too, otherwise
7526 # it will coredump.
7527 lt_prog_compiler_pic='-fPIC -shared'
7528 ;;
7529
7530 osf3* | osf4* | osf5*)
7531 lt_prog_compiler_wl='-Wl,'
7532 # All OSF/1 code is PIC.
7533 lt_prog_compiler_static='-non_shared'
7534 ;;
7535
7536 rdos*)
7537 lt_prog_compiler_static='-non_shared'
7538 ;;
7539
7540 solaris*)
7541 lt_prog_compiler_pic='-KPIC'
7542 lt_prog_compiler_static='-Bstatic'
7543 case $cc_basename in
7544 f77* | f90* | f95*)
7545 lt_prog_compiler_wl='-Qoption ld ';;
7546 *)
7547 lt_prog_compiler_wl='-Wl,';;
7548 esac
7549 ;;
7550
7551 sunos4*)
7552 lt_prog_compiler_wl='-Qoption ld '
7553 lt_prog_compiler_pic='-PIC'
7554 lt_prog_compiler_static='-Bstatic'
7555 ;;
7556
7557 sysv4 | sysv4.2uw2* | sysv4.3*)
7558 lt_prog_compiler_wl='-Wl,'
7559 lt_prog_compiler_pic='-KPIC'
7560 lt_prog_compiler_static='-Bstatic'
7561 ;;
7562
7563 sysv4*MP*)
7564 if test -d /usr/nec ;then
7565 lt_prog_compiler_pic='-Kconform_pic'
7566 lt_prog_compiler_static='-Bstatic'
7567 fi
7568 ;;
7569
7570 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7571 lt_prog_compiler_wl='-Wl,'
7572 lt_prog_compiler_pic='-KPIC'
7573 lt_prog_compiler_static='-Bstatic'
7574 ;;
7575
7576 unicos*)
7577 lt_prog_compiler_wl='-Wl,'
7578 lt_prog_compiler_can_build_shared=no
7579 ;;
7580
7581 uts4*)
7582 lt_prog_compiler_pic='-pic'
7583 lt_prog_compiler_static='-Bstatic'
7584 ;;
7585
7586 *)
7587 lt_prog_compiler_can_build_shared=no
7588 ;;
7589 esac
7590 fi
7591
7592 case $host_os in
7593 # For platforms which do not support PIC, -DPIC is meaningless:
7594 *djgpp*)
7595 lt_prog_compiler_pic=
7596 ;;
7597 *)
7598 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7599 ;;
7600 esac
7601 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7602 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7603
7604
7605
7606
7607
7608
7609 #
7610 # Check to make sure the PIC flag actually works.
7611 #
7612 if test -n "$lt_prog_compiler_pic"; then
7613 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7614 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7615 if test "${lt_prog_compiler_pic_works+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618 lt_prog_compiler_pic_works=no
7619 ac_outfile=conftest.$ac_objext
7620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7621 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7622 # Insert the option either (1) after the last *FLAGS variable, or
7623 # (2) before a word containing "conftest.", or (3) at the end.
7624 # Note that $ac_compile itself does not contain backslashes and begins
7625 # with a dollar sign (not a hyphen), so the echo should work correctly.
7626 # The option is referenced via a variable to avoid confusing sed.
7627 lt_compile=`echo "$ac_compile" | $SED \
7628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7630 -e 's:$: $lt_compiler_flag:'`
7631 (eval echo "\"\$as_me:7266: $lt_compile\"" >&5)
7632 (eval "$lt_compile" 2>conftest.err)
7633 ac_status=$?
7634 cat conftest.err >&5
7635 echo "$as_me:7270: \$? = $ac_status" >&5
7636 if (exit $ac_status) && test -s "$ac_outfile"; then
7637 # The compiler can only warn and ignore the option if not recognized
7638 # So say no if there are warnings other than the usual output.
7639 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7642 lt_prog_compiler_pic_works=yes
7643 fi
7644 fi
7645 $RM conftest*
7646
7647 fi
7648 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7649 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7650
7651 if test x"$lt_prog_compiler_pic_works" = xyes; then
7652 case $lt_prog_compiler_pic in
7653 "" | " "*) ;;
7654 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7655 esac
7656 else
7657 lt_prog_compiler_pic=
7658 lt_prog_compiler_can_build_shared=no
7659 fi
7660
7661 fi
7662
7663
7664
7665
7666
7667
7668 #
7669 # Check to make sure the static flag actually works.
7670 #
7671 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7672 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7673 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7674 if test "${lt_prog_compiler_static_works+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 lt_prog_compiler_static_works=no
7678 save_LDFLAGS="$LDFLAGS"
7679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7682 # The linker can only warn and ignore the option if not recognized
7683 # So say no if there are warnings
7684 if test -s conftest.err; then
7685 # Append any errors to the config.log.
7686 cat conftest.err 1>&5
7687 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7689 if diff conftest.exp conftest.er2 >/dev/null; then
7690 lt_prog_compiler_static_works=yes
7691 fi
7692 else
7693 lt_prog_compiler_static_works=yes
7694 fi
7695 fi
7696 $RM conftest*
7697 LDFLAGS="$save_LDFLAGS"
7698
7699 fi
7700 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7701 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7702
7703 if test x"$lt_prog_compiler_static_works" = xyes; then
7704 :
7705 else
7706 lt_prog_compiler_static=
7707 fi
7708
7709
7710
7711
7712
7713
7714
7715 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7717 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 lt_cv_prog_compiler_c_o=no
7721 $RM -r conftest 2>/dev/null
7722 mkdir conftest
7723 cd conftest
7724 mkdir out
7725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7726
7727 lt_compiler_flag="-o out/conftest2.$ac_objext"
7728 # Insert the option either (1) after the last *FLAGS variable, or
7729 # (2) before a word containing "conftest.", or (3) at the end.
7730 # Note that $ac_compile itself does not contain backslashes and begins
7731 # with a dollar sign (not a hyphen), so the echo should work correctly.
7732 lt_compile=`echo "$ac_compile" | $SED \
7733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7735 -e 's:$: $lt_compiler_flag:'`
7736 (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)
7737 (eval "$lt_compile" 2>out/conftest.err)
7738 ac_status=$?
7739 cat out/conftest.err >&5
7740 echo "$as_me:7375: \$? = $ac_status" >&5
7741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7742 then
7743 # The compiler can only warn and ignore the option if not recognized
7744 # So say no if there are warnings
7745 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7748 lt_cv_prog_compiler_c_o=yes
7749 fi
7750 fi
7751 chmod u+w . 2>&5
7752 $RM conftest*
7753 # SGI C++ compiler will create directory out/ii_files/ for
7754 # template instantiation
7755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7756 $RM out/* && rmdir out
7757 cd ..
7758 $RM -r conftest
7759 $RM conftest*
7760
7761 fi
7762 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7764
7765
7766
7767
7768
7769
7770 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7772 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775 lt_cv_prog_compiler_c_o=no
7776 $RM -r conftest 2>/dev/null
7777 mkdir conftest
7778 cd conftest
7779 mkdir out
7780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7781
7782 lt_compiler_flag="-o out/conftest2.$ac_objext"
7783 # Insert the option either (1) after the last *FLAGS variable, or
7784 # (2) before a word containing "conftest.", or (3) at the end.
7785 # Note that $ac_compile itself does not contain backslashes and begins
7786 # with a dollar sign (not a hyphen), so the echo should work correctly.
7787 lt_compile=`echo "$ac_compile" | $SED \
7788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7790 -e 's:$: $lt_compiler_flag:'`
7791 (eval echo "\"\$as_me:7426: $lt_compile\"" >&5)
7792 (eval "$lt_compile" 2>out/conftest.err)
7793 ac_status=$?
7794 cat out/conftest.err >&5
7795 echo "$as_me:7430: \$? = $ac_status" >&5
7796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7797 then
7798 # The compiler can only warn and ignore the option if not recognized
7799 # So say no if there are warnings
7800 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7803 lt_cv_prog_compiler_c_o=yes
7804 fi
7805 fi
7806 chmod u+w . 2>&5
7807 $RM conftest*
7808 # SGI C++ compiler will create directory out/ii_files/ for
7809 # template instantiation
7810 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7811 $RM out/* && rmdir out
7812 cd ..
7813 $RM -r conftest
7814 $RM conftest*
7815
7816 fi
7817 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7819
7820
7821
7822
7823 hard_links="nottested"
7824 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7825 # do not overwrite the value of need_locks provided by the user
7826 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7827 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7828 hard_links=yes
7829 $RM conftest*
7830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7831 touch conftest.a
7832 ln conftest.a conftest.b 2>&5 || hard_links=no
7833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7834 echo "$as_me:$LINENO: result: $hard_links" >&5
7835 echo "${ECHO_T}$hard_links" >&6
7836 if test "$hard_links" = no; then
7837 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7838 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7839 need_locks=warn
7840 fi
7841 else
7842 need_locks=no
7843 fi
7844
7845
7846
7847
7848
7849
7850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7852
7853 runpath_var=
7854 allow_undefined_flag=
7855 always_export_symbols=no
7856 archive_cmds=
7857 archive_expsym_cmds=
7858 compiler_needs_object=no
7859 enable_shared_with_static_runtimes=no
7860 export_dynamic_flag_spec=
7861 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7862 hardcode_automatic=no
7863 hardcode_direct=no
7864 hardcode_direct_absolute=no
7865 hardcode_libdir_flag_spec=
7866 hardcode_libdir_flag_spec_ld=
7867 hardcode_libdir_separator=
7868 hardcode_minus_L=no
7869 hardcode_shlibpath_var=unsupported
7870 inherit_rpath=no
7871 link_all_deplibs=unknown
7872 module_cmds=
7873 module_expsym_cmds=
7874 old_archive_from_new_cmds=
7875 old_archive_from_expsyms_cmds=
7876 thread_safe_flag_spec=
7877 whole_archive_flag_spec=
7878 # include_expsyms should be a list of space-separated symbols to be *always*
7879 # included in the symbol list
7880 include_expsyms=
7881 # exclude_expsyms can be an extended regexp of symbols to exclude
7882 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7883 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7884 # as well as any symbol that contains `d'.
7885 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7886 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7887 # platforms (ab)use it in PIC code, but their linkers get confused if
7888 # the symbol is explicitly referenced. Since portable code cannot
7889 # rely on this symbol name, it's probably fine to never include it in
7890 # preloaded symbol tables.
7891 extract_expsyms_cmds=
7892
7893 case $host_os in
7894 cygwin* | mingw* | pw32*)
7895 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7896 # When not using gcc, we currently assume that we are using
7897 # Microsoft Visual C++.
7898 if test "$GCC" != yes; then
7899 with_gnu_ld=no
7900 fi
7901 ;;
7902 interix*)
7903 # we just hope/assume this is gcc and not c89 (= MSVC++)
7904 with_gnu_ld=yes
7905 ;;
7906 openbsd*)
7907 with_gnu_ld=no
7908 ;;
7909 esac
7910
7911 ld_shlibs=yes
7912 if test "$with_gnu_ld" = yes; then
7913 # If archive_cmds runs LD, not CC, wlarc should be empty
7914 wlarc='${wl}'
7915
7916 # Set some defaults for GNU ld with shared library support. These
7917 # are reset later if shared libraries are not supported. Putting them
7918 # here allows them to be overridden if necessary.
7919 runpath_var=LD_RUN_PATH
7920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7921 export_dynamic_flag_spec='${wl}--export-dynamic'
7922 # ancient GNU ld didn't support --whole-archive et. al.
7923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7925 else
7926 whole_archive_flag_spec=
7927 fi
7928 supports_anon_versioning=no
7929 case `$LD -v 2>&1` in
7930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7933 *\ 2.11.*) ;; # other 2.11 versions
7934 *) supports_anon_versioning=yes ;;
7935 esac
7936
7937 # See if GNU ld supports shared libraries.
7938 case $host_os in
7939 aix[3-9]*)
7940 # On AIX/PPC, the GNU linker is very broken
7941 if test "$host_cpu" != ia64; then
7942 ld_shlibs=no
7943 cat <<_LT_EOF 1>&2
7944
7945 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7946 *** to be unable to reliably create shared libraries on AIX.
7947 *** Therefore, libtool is disabling shared libraries support. If you
7948 *** really care for shared libraries, you may want to modify your PATH
7949 *** so that a non-GNU linker is found, and then restart.
7950
7951 _LT_EOF
7952 fi
7953 ;;
7954
7955 amigaos*)
7956 if test "$host_cpu" = m68k; then
7957 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)'
7958 hardcode_libdir_flag_spec='-L$libdir'
7959 hardcode_minus_L=yes
7960 fi
7961
7962 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7963 # that the semantics of dynamic libraries on AmigaOS, at least up
7964 # to version 4, is to share data among multiple programs linked
7965 # with the same dynamic library. Since this doesn't match the
7966 # behavior of shared libraries on other platforms, we can't use
7967 # them.
7968 ld_shlibs=no
7969 ;;
7970
7971 beos*)
7972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7973 allow_undefined_flag=unsupported
7974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7975 # support --undefined. This deserves some investigation. FIXME
7976 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7977 else
7978 ld_shlibs=no
7979 fi
7980 ;;
7981
7982 cygwin* | mingw* | pw32*)
7983 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7984 # as there is no search path for DLLs.
7985 hardcode_libdir_flag_spec='-L$libdir'
7986 allow_undefined_flag=unsupported
7987 always_export_symbols=no
7988 enable_shared_with_static_runtimes=yes
7989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7990
7991 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7993 # If the export-symbols file already is a .def file (1st line
7994 # is EXPORTS), use it as is; otherwise, prepend...
7995 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7996 cp $export_symbols $output_objdir/$soname.def;
7997 else
7998 echo EXPORTS > $output_objdir/$soname.def;
7999 cat $export_symbols >> $output_objdir/$soname.def;
8000 fi~
8001 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8002 else
8003 ld_shlibs=no
8004 fi
8005 ;;
8006
8007 interix[3-9]*)
8008 hardcode_direct=no
8009 hardcode_shlibpath_var=no
8010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8011 export_dynamic_flag_spec='${wl}-E'
8012 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8013 # Instead, shared libraries are loaded at an image base (0x10000000 by
8014 # default) and relocated if they conflict, which is a slow very memory
8015 # consuming and fragmenting process. To avoid this, we pick a random,
8016 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8017 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8019 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'
8020 ;;
8021
8022 gnu* | linux* | tpf* | k*bsd*-gnu)
8023 tmp_diet=no
8024 if test "$host_os" = linux-dietlibc; then
8025 case $cc_basename in
8026 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8027 esac
8028 fi
8029 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8030 && test "$tmp_diet" = no
8031 then
8032 tmp_addflag=
8033 case $cc_basename,$host_cpu in
8034 pgcc*) # Portland Group C compiler
8035 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'
8036 tmp_addflag=' $pic_flag'
8037 ;;
8038 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8039 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'
8040 tmp_addflag=' $pic_flag -Mnomain' ;;
8041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8042 tmp_addflag=' -i_dynamic' ;;
8043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8044 tmp_addflag=' -i_dynamic -nofor_main' ;;
8045 ifc* | ifort*) # Intel Fortran compiler
8046 tmp_addflag=' -nofor_main' ;;
8047 esac
8048 case `$CC -V 2>&1 | sed 5q` in
8049 *Sun\ C*) # Sun C 5.9
8050 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'
8051 compiler_needs_object=yes
8052 tmp_sharedflag='-G' ;;
8053 *Sun\ F*) # Sun Fortran 8.3
8054 tmp_sharedflag='-G' ;;
8055 *)
8056 tmp_sharedflag='-shared' ;;
8057 esac
8058 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059
8060 if test "x$supports_anon_versioning" = xyes; then
8061 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8063 echo "local: *; };" >> $output_objdir/$libname.ver~
8064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8065 fi
8066 else
8067 ld_shlibs=no
8068 fi
8069 ;;
8070
8071 netbsd*)
8072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8073 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8074 wlarc=
8075 else
8076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8078 fi
8079 ;;
8080
8081 solaris*)
8082 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8083 ld_shlibs=no
8084 cat <<_LT_EOF 1>&2
8085
8086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8087 *** create shared libraries on Solaris systems. Therefore, libtool
8088 *** is disabling shared libraries support. We urge you to upgrade GNU
8089 *** binutils to release 2.9.1 or newer. Another option is to modify
8090 *** your PATH or compiler configuration so that the native linker is
8091 *** used, and then restart.
8092
8093 _LT_EOF
8094 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8097 else
8098 ld_shlibs=no
8099 fi
8100 ;;
8101
8102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8103 case `$LD -v 2>&1` in
8104 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8105 ld_shlibs=no
8106 cat <<_LT_EOF 1>&2
8107
8108 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8109 *** reliably create shared libraries on SCO systems. Therefore, libtool
8110 *** is disabling shared libraries support. We urge you to upgrade GNU
8111 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8112 *** your PATH or compiler configuration so that the native linker is
8113 *** used, and then restart.
8114
8115 _LT_EOF
8116 ;;
8117 *)
8118 # For security reasons, it is highly recommended that you always
8119 # use absolute paths for naming shared libraries, and exclude the
8120 # DT_RUNPATH tag from executables and libraries. But doing so
8121 # requires that you compile everything twice, which is a pain.
8122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8126 else
8127 ld_shlibs=no
8128 fi
8129 ;;
8130 esac
8131 ;;
8132
8133 sunos4*)
8134 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8135 wlarc=
8136 hardcode_direct=yes
8137 hardcode_shlibpath_var=no
8138 ;;
8139
8140 *)
8141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8144 else
8145 ld_shlibs=no
8146 fi
8147 ;;
8148 esac
8149
8150 if test "$ld_shlibs" = no; then
8151 runpath_var=
8152 hardcode_libdir_flag_spec=
8153 export_dynamic_flag_spec=
8154 whole_archive_flag_spec=
8155 fi
8156 else
8157 # PORTME fill in a description of your system's linker (not GNU ld)
8158 case $host_os in
8159 aix3*)
8160 allow_undefined_flag=unsupported
8161 always_export_symbols=yes
8162 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'
8163 # Note: this linker hardcodes the directories in LIBPATH if there
8164 # are no directories specified by -L.
8165 hardcode_minus_L=yes
8166 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8167 # Neither direct hardcoding nor static linking is supported with a
8168 # broken collect2.
8169 hardcode_direct=unsupported
8170 fi
8171 ;;
8172
8173 aix[4-9]*)
8174 if test "$host_cpu" = ia64; then
8175 # On IA64, the linker does run time linking by default, so we don't
8176 # have to do anything special.
8177 aix_use_runtimelinking=no
8178 exp_sym_flag='-Bexport'
8179 no_entry_flag=""
8180 else
8181 # If we're using GNU nm, then we don't want the "-C" option.
8182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8183 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8184 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'
8185 else
8186 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'
8187 fi
8188 aix_use_runtimelinking=no
8189
8190 # Test if we are trying to use run time linking or normal
8191 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8192 # need to do runtime linking.
8193 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8194 for ld_flag in $LDFLAGS; do
8195 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8196 aix_use_runtimelinking=yes
8197 break
8198 fi
8199 done
8200 ;;
8201 esac
8202
8203 exp_sym_flag='-bexport'
8204 no_entry_flag='-bnoentry'
8205 fi
8206
8207 # When large executables or shared objects are built, AIX ld can
8208 # have problems creating the table of contents. If linking a library
8209 # or program results in "error TOC overflow" add -mminimal-toc to
8210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8212
8213 archive_cmds=''
8214 hardcode_direct=yes
8215 hardcode_direct_absolute=yes
8216 hardcode_libdir_separator=':'
8217 link_all_deplibs=yes
8218 file_list_spec='${wl}-f,'
8219
8220 if test "$GCC" = yes; then
8221 case $host_os in aix4.[012]|aix4.[012].*)
8222 # We only want to do this on AIX 4.2 and lower, the check
8223 # below for broken collect2 doesn't work under 4.3+
8224 collect2name=`${CC} -print-prog-name=collect2`
8225 if test -f "$collect2name" &&
8226 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8227 then
8228 # We have reworked collect2
8229 :
8230 else
8231 # We have old collect2
8232 hardcode_direct=unsupported
8233 # It fails to find uninstalled libraries when the uninstalled
8234 # path is not listed in the libpath. Setting hardcode_minus_L
8235 # to unsupported forces relinking
8236 hardcode_minus_L=yes
8237 hardcode_libdir_flag_spec='-L$libdir'
8238 hardcode_libdir_separator=
8239 fi
8240 ;;
8241 esac
8242 shared_flag='-shared'
8243 if test "$aix_use_runtimelinking" = yes; then
8244 shared_flag="$shared_flag "'${wl}-G'
8245 fi
8246 else
8247 # not using gcc
8248 if test "$host_cpu" = ia64; then
8249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8250 # chokes on -Wl,-G. The following line is correct:
8251 shared_flag='-G'
8252 else
8253 if test "$aix_use_runtimelinking" = yes; then
8254 shared_flag='${wl}-G'
8255 else
8256 shared_flag='${wl}-bM:SRE'
8257 fi
8258 fi
8259 fi
8260
8261 # It seems that -bexpall does not export symbols beginning with
8262 # underscore (_), so it is better to generate a list of symbols to export.
8263 always_export_symbols=yes
8264 if test "$aix_use_runtimelinking" = yes; then
8265 # Warning - without using the other runtime loading flags (-brtl),
8266 # -berok will link without error, but may produce a broken library.
8267 allow_undefined_flag='-berok'
8268 # Determine the default libpath from the value encoded in an
8269 # empty executable.
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276
8277 int
8278 main ()
8279 {
8280
8281 ;
8282 return 0;
8283 }
8284 _ACEOF
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307
8308 lt_aix_libpath_sed='
8309 /Import File Strings/,/^$/ {
8310 /^0/ {
8311 s/^0 *\(.*\)$/\1/
8312 p
8313 }
8314 }'
8315 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8316 # Check for a 64-bit object if we didn't find anything.
8317 if test -z "$aix_libpath"; then
8318 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8319 fi
8320 else
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 fi
8325 rm -f conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
8327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8328
8329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8330 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"
8331 else
8332 if test "$host_cpu" = ia64; then
8333 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8334 allow_undefined_flag="-z nodefs"
8335 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"
8336 else
8337 # Determine the default libpath from the value encoded in an
8338 # empty executable.
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345
8346 int
8347 main ()
8348 {
8349
8350 ;
8351 return 0;
8352 }
8353 _ACEOF
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag"
8364 || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 (eval $ac_try) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376
8377 lt_aix_libpath_sed='
8378 /Import File Strings/,/^$/ {
8379 /^0/ {
8380 s/^0 *\(.*\)$/\1/
8381 p
8382 }
8383 }'
8384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8385 # Check for a 64-bit object if we didn't find anything.
8386 if test -z "$aix_libpath"; then
8387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8388 fi
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 fi
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8397
8398 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8399 # Warning - without using the other run time loading flags,
8400 # -berok will link without error, but may produce a broken library.
8401 no_undefined_flag=' ${wl}-bernotok'
8402 allow_undefined_flag=' ${wl}-berok'
8403 # Exported symbols can be pulled into shared objects from archives
8404 whole_archive_flag_spec='$convenience'
8405 archive_cmds_need_lc=yes
8406 # This is similar to how AIX traditionally builds its shared libraries.
8407 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'
8408 fi
8409 fi
8410 ;;
8411
8412 amigaos*)
8413 if test "$host_cpu" = m68k; then
8414 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)'
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_minus_L=yes
8417 fi
8418 # see comment about different semantics on the GNU ld section
8419 ld_shlibs=no
8420 ;;
8421
8422 bsdi[45]*)
8423 export_dynamic_flag_spec=-rdynamic
8424 ;;
8425
8426 cygwin* | mingw* | pw32*)
8427 # When not using gcc, we currently assume that we are using
8428 # Microsoft Visual C++.
8429 # hardcode_libdir_flag_spec is actually meaningless, as there is
8430 # no search path for DLLs.
8431 hardcode_libdir_flag_spec=' '
8432 allow_undefined_flag=unsupported
8433 # Tell ltmain to make .lib files, not .a files.
8434 libext=lib
8435 # Tell ltmain to make .dll files, not .so files.
8436 shrext_cmds=".dll"
8437 # FIXME: Setting linknames here is a bad hack.
8438 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8439 # The linker will automatically build a .lib file if we build a DLL.
8440 old_archive_from_new_cmds='true'
8441 # FIXME: Should let the user specify the lib program.
8442 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8443 fix_srcfile_path='`cygpath -w "$srcfile"`'
8444 enable_shared_with_static_runtimes=yes
8445 ;;
8446
8447 darwin* | rhapsody*)
8448 case $host_os in
8449 rhapsody* | darwin1.[012])
8450 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8451 ;;
8452 *) # Darwin 1.3 on
8453 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8454 10.[012])
8455 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8456 ;;
8457 10.*)
8458 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8459 ;;
8460 esac
8461 ;;
8462 esac
8463 archive_cmds_need_lc=no
8464 hardcode_direct=no
8465 hardcode_automatic=yes
8466 hardcode_shlibpath_var=unsupported
8467 whole_archive_flag_spec=''
8468 link_all_deplibs=yes
8469 if test "$GCC" = yes ; then
8470 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 lt_cv_apple_cc_single_mod=no
8474 if test -z "${LT_MULTI_MODULE}"; then
8475 # By default we will add the -single_module flag. You can override
8476 # by either setting the environment variable LT_MULTI_MODULE
8477 # non-empty at configure time, or by adding -multi-module to the
8478 # link flags.
8479 echo "int foo(void){return 1;}" > conftest.c
8480 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8481 -dynamiclib ${wl}-single_module conftest.c
8482 if test -f libconftest.dylib; then
8483 lt_cv_apple_cc_single_mod=yes
8484 rm libconftest.dylib
8485 fi
8486 rm conftest.$ac_ext
8487 fi
8488 fi
8489
8490 output_verbose_link_cmd=echo
8491 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8492 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8493 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}'
8494 else
8495 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8496 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}'
8497 fi
8498 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8499 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}'
8500 else
8501 case $cc_basename in
8502 xlc*)
8503 output_verbose_link_cmd=echo
8504 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8505 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8507 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}'
8508 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}'
8509 ;;
8510 *)
8511 ld_shlibs=no
8512 ;;
8513 esac
8514 fi
8515 ;;
8516
8517 dgux*)
8518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8519 hardcode_libdir_flag_spec='-L$libdir'
8520 hardcode_shlibpath_var=no
8521 ;;
8522
8523 freebsd1*)
8524 ld_shlibs=no
8525 ;;
8526
8527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8528 # support. Future versions do this automatically, but an explicit c++rt0.o
8529 # does not break anything, and helps significantly (at the cost of a little
8530 # extra space).
8531 freebsd2.2*)
8532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8533 hardcode_libdir_flag_spec='-R$libdir'
8534 hardcode_direct=yes
8535 hardcode_shlibpath_var=no
8536 ;;
8537
8538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8539 freebsd2*)
8540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_direct=yes
8542 hardcode_minus_L=yes
8543 hardcode_shlibpath_var=no
8544 ;;
8545
8546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8547 freebsd* | dragonfly*)
8548 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8549 hardcode_libdir_flag_spec='-R$libdir'
8550 hardcode_direct=yes
8551 hardcode_shlibpath_var=no
8552 ;;
8553
8554 hpux9*)
8555 if test "$GCC" = yes; then
8556 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'
8557 else
8558 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'
8559 fi
8560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8561 hardcode_libdir_separator=:
8562 hardcode_direct=yes
8563
8564 # hardcode_minus_L: Not really in the search PATH,
8565 # but as the default location of the library.
8566 hardcode_minus_L=yes
8567 export_dynamic_flag_spec='${wl}-E'
8568 ;;
8569
8570 hpux10*)
8571 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8572 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8573 else
8574 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8575 fi
8576 if test "$with_gnu_ld" = no; then
8577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8578 hardcode_libdir_flag_spec_ld='+b $libdir'
8579 hardcode_libdir_separator=:
8580 hardcode_direct=yes
8581 hardcode_direct_absolute=yes
8582 export_dynamic_flag_spec='${wl}-E'
8583 # hardcode_minus_L: Not really in the search PATH,
8584 # but as the default location of the library.
8585 hardcode_minus_L=yes
8586 fi
8587 ;;
8588
8589 hpux11*)
8590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8591 case $host_cpu in
8592 hppa*64*)
8593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8594 ;;
8595 ia64*)
8596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8597 ;;
8598 *)
8599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8600 ;;
8601 esac
8602 else
8603 case $host_cpu in
8604 hppa*64*)
8605 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606 ;;
8607 ia64*)
8608 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8609 ;;
8610 *)
8611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8612 ;;
8613 esac
8614 fi
8615 if test "$with_gnu_ld" = no; then
8616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8617 hardcode_libdir_separator=:
8618
8619 case $host_cpu in
8620 hppa*64*|ia64*)
8621 hardcode_direct=no
8622 hardcode_shlibpath_var=no
8623 ;;
8624 *)
8625 hardcode_direct=yes
8626 hardcode_direct_absolute=yes
8627 export_dynamic_flag_spec='${wl}-E'
8628
8629 # hardcode_minus_L: Not really in the search PATH,
8630 # but as the default location of the library.
8631 hardcode_minus_L=yes
8632 ;;
8633 esac
8634 fi
8635 ;;
8636
8637 irix5* | irix6* | nonstopux*)
8638 if test "$GCC" = yes; then
8639 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'
8640 # Try to use the -exported_symbol ld option, if it does not
8641 # work, assume that -exports_file does not work either and
8642 # implicitly export all symbols.
8643 save_LDFLAGS="$LDFLAGS"
8644 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8645 cat >conftest.$ac_ext <<_ACEOF
8646 int foo(void) {}
8647 _ACEOF
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>conftest.er1
8651 ac_status=$?
8652 grep -v '^ *+' conftest.er1 >conftest.err
8653 rm -f conftest.er1
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag"
8658 || test ! -s conftest.err'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 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'
8671
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 fi
8677 rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 LDFLAGS="$save_LDFLAGS"
8680 else
8681 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'
8682 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'
8683 fi
8684 archive_cmds_need_lc='no'
8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 hardcode_libdir_separator=:
8687 inherit_rpath=yes
8688 link_all_deplibs=yes
8689 ;;
8690
8691 netbsd*)
8692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8694 else
8695 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8696 fi
8697 hardcode_libdir_flag_spec='-R$libdir'
8698 hardcode_direct=yes
8699 hardcode_shlibpath_var=no
8700 ;;
8701
8702 newsos6)
8703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704 hardcode_direct=yes
8705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706 hardcode_libdir_separator=:
8707 hardcode_shlibpath_var=no
8708 ;;
8709
8710 *nto* | *qnx*)
8711 ;;
8712
8713 openbsd*)
8714 hardcode_direct=yes
8715 hardcode_shlibpath_var=no
8716 hardcode_direct_absolute=yes
8717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8719 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8721 export_dynamic_flag_spec='${wl}-E'
8722 else
8723 case $host_os in
8724 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8726 hardcode_libdir_flag_spec='-R$libdir'
8727 ;;
8728 *)
8729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8731 ;;
8732 esac
8733 fi
8734 ;;
8735
8736 os2*)
8737 hardcode_libdir_flag_spec='-L$libdir'
8738 hardcode_minus_L=yes
8739 allow_undefined_flag=unsupported
8740 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'
8741 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8742 ;;
8743
8744 osf3*)
8745 if test "$GCC" = yes; then
8746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8747 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'
8748 else
8749 allow_undefined_flag=' -expect_unresolved \*'
8750 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'
8751 fi
8752 archive_cmds_need_lc='no'
8753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8754 hardcode_libdir_separator=:
8755 ;;
8756
8757 osf4* | osf5*) # as osf3* with the addition of -msym flag
8758 if test "$GCC" = yes; then
8759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8760 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'
8761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762 else
8763 allow_undefined_flag=' -expect_unresolved \*'
8764 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'
8765 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~
8766 $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'
8767
8768 # Both c and cxx compiler support -rpath directly
8769 hardcode_libdir_flag_spec='-rpath $libdir'
8770 fi
8771 archive_cmds_need_lc='no'
8772 hardcode_libdir_separator=:
8773 ;;
8774
8775 solaris*)
8776 no_undefined_flag=' -z defs'
8777 if test "$GCC" = yes; then
8778 wlarc='${wl}'
8779 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8781 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8782 else
8783 case `$CC -V 2>&1` in
8784 *"Compilers 5.0"*)
8785 wlarc=''
8786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8789 ;;
8790 *)
8791 wlarc='${wl}'
8792 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8794 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8795 ;;
8796 esac
8797 fi
8798 hardcode_libdir_flag_spec='-R$libdir'
8799 hardcode_shlibpath_var=no
8800 case $host_os in
8801 solaris2.[0-5] | solaris2.[0-5].*) ;;
8802 *)
8803 # The compiler driver will combine and reorder linker options,
8804 # but understands `-z linker_flag'. GCC discards it without `$wl',
8805 # but is careful enough not to reorder.
8806 # Supported since Solaris 2.6 (maybe 2.5.1?)
8807 if test "$GCC" = yes; then
8808 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8809 else
8810 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8811 fi
8812 ;;
8813 esac
8814 link_all_deplibs=yes
8815 ;;
8816
8817 sunos4*)
8818 if test "x$host_vendor" = xsequent; then
8819 # Use $CC to link under sequent, because it throws in some extra .o
8820 # files that make .init and .fini sections work.
8821 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8822 else
8823 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8824 fi
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_direct=yes
8827 hardcode_minus_L=yes
8828 hardcode_shlibpath_var=no
8829 ;;
8830
8831 sysv4)
8832 case $host_vendor in
8833 sni)
8834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_direct=yes # is this really true???
8836 ;;
8837 siemens)
8838 ## LD is ld it makes a PLAMLIB
8839 ## CC just makes a GrossModule.
8840 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8841 reload_cmds='$CC -r -o $output$reload_objs'
8842 hardcode_direct=no
8843 ;;
8844 motorola)
8845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8847 ;;
8848 esac
8849 runpath_var='LD_RUN_PATH'
8850 hardcode_shlibpath_var=no
8851 ;;
8852
8853 sysv4.3*)
8854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_shlibpath_var=no
8856 export_dynamic_flag_spec='-Bexport'
8857 ;;
8858
8859 sysv4*MP*)
8860 if test -d /usr/nec; then
8861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862 hardcode_shlibpath_var=no
8863 runpath_var=LD_RUN_PATH
8864 hardcode_runpath_var=yes
8865 ld_shlibs=yes
8866 fi
8867 ;;
8868
8869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8870 no_undefined_flag='${wl}-z,text'
8871 archive_cmds_need_lc=no
8872 hardcode_shlibpath_var=no
8873 runpath_var='LD_RUN_PATH'
8874
8875 if test "$GCC" = yes; then
8876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8878 else
8879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881 fi
8882 ;;
8883
8884 sysv5* | sco3.2v5* | sco5v6*)
8885 # Note: We can NOT use -z defs as we might desire, because we do not
8886 # link with -lc, and that would cause any symbols used from libc to
8887 # always be unresolved, which means just about no library would
8888 # ever link correctly. If we're not using GNU ld we use -z text
8889 # though, which does catch some bad symbols but isn't as heavy-handed
8890 # as -z defs.
8891 no_undefined_flag='${wl}-z,text'
8892 allow_undefined_flag='${wl}-z,nodefs'
8893 archive_cmds_need_lc=no
8894 hardcode_shlibpath_var=no
8895 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8896 hardcode_libdir_separator=':'
8897 link_all_deplibs=yes
8898 export_dynamic_flag_spec='${wl}-Bexport'
8899 runpath_var='LD_RUN_PATH'
8900
8901 if test "$GCC" = yes; then
8902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8904 else
8905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907 fi
8908 ;;
8909
8910 uts4*)
8911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_shlibpath_var=no
8914 ;;
8915
8916 *)
8917 ld_shlibs=no
8918 ;;
8919 esac
8920
8921 if test x$host_vendor = xsni; then
8922 case $host in
8923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8924 export_dynamic_flag_spec='${wl}-Blargedynsym'
8925 ;;
8926 esac
8927 fi
8928 fi
8929
8930 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8931 echo "${ECHO_T}$ld_shlibs" >&6
8932 test "$ld_shlibs" = no && can_build_shared=no
8933
8934 with_gnu_ld=$with_gnu_ld
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950 #
8951 # Do we need to explicitly link libc?
8952 #
8953 case "x$archive_cmds_need_lc" in
8954 x|xyes)
8955 # Assume -lc should be added
8956 archive_cmds_need_lc=yes
8957
8958 if test "$enable_shared" = yes && test "$GCC" = yes; then
8959 case $archive_cmds in
8960 *'~'*)
8961 # FIXME: we may have to deal with multi-command sequences.
8962 ;;
8963 '$CC '*)
8964 # Test whether the compiler implicitly links with -lc since on some
8965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966 # to ld, don't add -lc before -lgcc.
8967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8969 $RM conftest*
8970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8971
8972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973 (eval $ac_compile) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } 2>conftest.err; then
8977 soname=conftest
8978 lib=conftest
8979 libobjs=conftest.$ac_objext
8980 deplibs=
8981 wl=$lt_prog_compiler_wl
8982 pic_flag=$lt_prog_compiler_pic
8983 compiler_flags=-v
8984 linker_flags=-v
8985 verstring=
8986 output_objdir=.
8987 libname=conftest
8988 lt_save_allow_undefined_flag=$allow_undefined_flag
8989 allow_undefined_flag=
8990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8991 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }
8995 then
8996 archive_cmds_need_lc=no
8997 else
8998 archive_cmds_need_lc=yes
8999 fi
9000 allow_undefined_flag=$lt_save_allow_undefined_flag
9001 else
9002 cat conftest.err 1>&5
9003 fi
9004 $RM conftest*
9005 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9006 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9007 ;;
9008 esac
9009 fi
9010 ;;
9011 esac
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9171 withGCC=$GCC
9172 if test "$withGCC" = yes; then
9173 case $host_os in
9174 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9175 *) lt_awk_arg="/^libraries:/" ;;
9176 esac
9177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9179 # if the path contains ";" then we assume it to be the separator
9180 # otherwise default to the standard path separator (i.e. ":") - it is
9181 # assumed that no part of a normal pathname contains ";" but that should
9182 # okay in the real world where ";" in dirpaths is itself problematic.
9183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9184 else
9185 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9186 fi
9187 # Ok, now we have the path, separated by spaces, we can step through it
9188 # and add multilib dir if necessary.
9189 lt_tmp_lt_search_path_spec=
9190 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9191 for lt_sys_path in $lt_search_path_spec; do
9192 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9194 else
9195 test -d "$lt_sys_path" && \
9196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9197 fi
9198 done
9199 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9200 BEGIN {RS=" "; FS="/|\n";} {
9201 lt_foo="";
9202 lt_count=0;
9203 for (lt_i = NF; lt_i > 0; lt_i--) {
9204 if ($lt_i != "" && $lt_i != ".") {
9205 if ($lt_i == "..") {
9206 lt_count++;
9207 } else {
9208 if (lt_count == 0) {
9209 lt_foo="/" $lt_i lt_foo;
9210 } else {
9211 lt_count--;
9212 }
9213 }
9214 }
9215 }
9216 if (lt_foo != "") { lt_freq[lt_foo]++; }
9217 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9218 }'`
9219 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9220 else
9221 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9222 fi
9223 library_names_spec=
9224 libname_spec='lib$name'
9225 soname_spec=
9226 shrext_cmds=".so"
9227 postinstall_cmds=
9228 postuninstall_cmds=
9229 finish_cmds=
9230 finish_eval=
9231 shlibpath_var=
9232 shlibpath_overrides_runpath=unknown
9233 version_type=none
9234 dynamic_linker="$host_os ld.so"
9235 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9236 need_lib_prefix=unknown
9237 hardcode_into_libs=no
9238
9239 # when you set need_version to no, make sure it does not cause -set_version
9240 # flags to be left without arguments
9241 need_version=unknown
9242
9243 case $host_os in
9244 aix3*)
9245 version_type=linux
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9247 shlibpath_var=LIBPATH
9248
9249 # AIX 3 has no versioning support, so we append a major version to the name.
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 ;;
9252
9253 aix[4-9]*)
9254 version_type=linux
9255 need_lib_prefix=no
9256 need_version=no
9257 hardcode_into_libs=yes
9258 if test "$host_cpu" = ia64; then
9259 # AIX 5 supports IA64
9260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 else
9263 # With GCC up to 2.95.x, collect2 would create an import file
9264 # for dependence libraries. The import file would start with
9265 # the line `#! .'. This would cause the generated library to
9266 # depend on `.', always an invalid library. This was fixed in
9267 # development snapshots of GCC prior to 3.0.
9268 case $host_os in
9269 aix4 | aix4.[01] | aix4.[01].*)
9270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9271 echo ' yes '
9272 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9273 :
9274 else
9275 can_build_shared=no
9276 fi
9277 ;;
9278 esac
9279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9280 # soname into executable. Probably we can add versioning support to
9281 # collect2, so additional links can be useful in future.
9282 if test "$aix_use_runtimelinking" = yes; then
9283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9284 # instead of lib<name>.a to let people know that these are not
9285 # typical AIX shared libraries.
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 else
9288 # We preserve .a as extension for shared libraries through AIX4.2
9289 # and later when we are not doing run time linking.
9290 library_names_spec='${libname}${release}.a $libname.a'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 fi
9293 shlibpath_var=LIBPATH
9294 fi
9295 ;;
9296
9297 amigaos*)
9298 if test "$host_cpu" = m68k; then
9299 library_names_spec='$libname.ixlibrary $libname.a'
9300 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9301 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'
9302 else
9303 dynamic_linker=no
9304 fi
9305 ;;
9306
9307 beos*)
9308 library_names_spec='${libname}${shared_ext}'
9309 dynamic_linker="$host_os ld.so"
9310 shlibpath_var=LIBRARY_PATH
9311 ;;
9312
9313 bsdi[45]*)
9314 version_type=linux
9315 need_version=no
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9322 # the default ld.so.conf also contains /usr/contrib/lib and
9323 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9324 # libtool to hard-code these into programs
9325 ;;
9326
9327 cygwin* | mingw* | pw32*)
9328 version_type=windows
9329 shrext_cmds=".dll"
9330 need_version=no
9331 need_lib_prefix=no
9332
9333 case $withGCC,$host_os in
9334 yes,cygwin* | yes,mingw* | yes,pw32*)
9335 library_names_spec='$libname.dll.a'
9336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9337 postinstall_cmds='base_file=`basename \${file}`~
9338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9339 dldir=$destdir/`dirname \$dlpath`~
9340 test -d \$dldir || mkdir -p \$dldir~
9341 $install_prog $dir/$dlname \$dldir/$dlname~
9342 chmod a+x \$dldir/$dlname~
9343 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9344 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9345 fi'
9346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9347 dlpath=$dir/\$dldll~
9348 $RM \$dlpath'
9349 shlibpath_overrides_runpath=yes
9350
9351 case $host_os in
9352 cygwin*)
9353 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9354 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9356 ;;
9357 mingw*)
9358 # MinGW DLLs use traditional 'lib' prefix
9359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9360 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9361 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9362 # It is most probably a Windows format PATH printed by
9363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9364 # path with ; separators, and with drive letters. We can handle the
9365 # drive letters (cygwin fileutils understands them), so leave them,
9366 # especially as we might pass files found there to a mingw objdump,
9367 # which wouldn't understand a cygwinified path. Ahh.
9368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9369 else
9370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9371 fi
9372 ;;
9373 pw32*)
9374 # pw32 DLLs use 'pw' prefix rather than 'lib'
9375 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9376 ;;
9377 esac
9378 ;;
9379
9380 *)
9381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9382 ;;
9383 esac
9384 dynamic_linker='Win32 ld.exe'
9385 # FIXME: first we should search . and the directory the executable is in
9386 shlibpath_var=PATH
9387 ;;
9388
9389 darwin* | rhapsody*)
9390 dynamic_linker="$host_os dyld"
9391 version_type=darwin
9392 need_lib_prefix=no
9393 need_version=no
9394 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9395 soname_spec='${libname}${release}${major}$shared_ext'
9396 shlibpath_overrides_runpath=yes
9397 shlibpath_var=DYLD_LIBRARY_PATH
9398 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9399
9400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9402 ;;
9403
9404 dgux*)
9405 version_type=linux
9406 need_lib_prefix=no
9407 need_version=no
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 ;;
9412
9413 freebsd1*)
9414 dynamic_linker=no
9415 ;;
9416
9417 freebsd* | dragonfly*)
9418 # DragonFly does not have aout. When/if they implement a new
9419 # versioning mechanism, adjust this.
9420 if test -x /usr/bin/objformat; then
9421 objformat=`/usr/bin/objformat`
9422 else
9423 case $host_os in
9424 freebsd[123]*) objformat=aout ;;
9425 *) objformat=elf ;;
9426 esac
9427 fi
9428 version_type=freebsd-$objformat
9429 case $version_type in
9430 freebsd-elf*)
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9432 need_version=no
9433 need_lib_prefix=no
9434 ;;
9435 freebsd-*)
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9437 need_version=yes
9438 ;;
9439 esac
9440 shlibpath_var=LD_LIBRARY_PATH
9441 case $host_os in
9442 freebsd2*)
9443 shlibpath_overrides_runpath=yes
9444 ;;
9445 freebsd3.[01]* | freebsdelf3.[01]*)
9446 shlibpath_overrides_runpath=yes
9447 hardcode_into_libs=yes
9448 ;;
9449 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9450 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9451 shlibpath_overrides_runpath=no
9452 hardcode_into_libs=yes
9453 ;;
9454 *) # from 4.6 on, and DragonFly
9455 shlibpath_overrides_runpath=yes
9456 hardcode_into_libs=yes
9457 ;;
9458 esac
9459 ;;
9460
9461 gnu*)
9462 version_type=linux
9463 need_lib_prefix=no
9464 need_version=no
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 hardcode_into_libs=yes
9469 ;;
9470
9471 hpux9* | hpux10* | hpux11*)
9472 # Give a soname corresponding to the major version so that dld.sl refuses to
9473 # link against other versions.
9474 version_type=sunos
9475 need_lib_prefix=no
9476 need_version=no
9477 case $host_cpu in
9478 ia64*)
9479 shrext_cmds='.so'
9480 hardcode_into_libs=yes
9481 dynamic_linker="$host_os dld.so"
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 if test "X$HPUX_IA64_MODE" = X32; then
9487 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9488 else
9489 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9490 fi
9491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9492 ;;
9493 hppa*64*)
9494 shrext_cmds='.sl'
9495 hardcode_into_libs=yes
9496 dynamic_linker="$host_os dld.sl"
9497 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9503 ;;
9504 *)
9505 shrext_cmds='.sl'
9506 dynamic_linker="$host_os dld.sl"
9507 shlibpath_var=SHLIB_PATH
9508 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 ;;
9512 esac
9513 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9514 postinstall_cmds='chmod 555 $lib'
9515 ;;
9516
9517 interix[3-9]*)
9518 version_type=linux
9519 need_lib_prefix=no
9520 need_version=no
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 shlibpath_overrides_runpath=no
9526 hardcode_into_libs=yes
9527 ;;
9528
9529 irix5* | irix6* | nonstopux*)
9530 case $host_os in
9531 nonstopux*) version_type=nonstopux ;;
9532 *)
9533 if test "$lt_cv_prog_gnu_ld" = yes; then
9534 version_type=linux
9535 else
9536 version_type=irix
9537 fi ;;
9538 esac
9539 need_lib_prefix=no
9540 need_version=no
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9543 case $host_os in
9544 irix5* | nonstopux*)
9545 libsuff= shlibsuff=
9546 ;;
9547 *)
9548 case $LD in # libtool.m4 will add one of these switches to LD
9549 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9550 libsuff= shlibsuff= libmagic=32-bit;;
9551 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9552 libsuff=32 shlibsuff=N32 libmagic=N32;;
9553 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9554 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9555 *) libsuff= shlibsuff= libmagic=never-match;;
9556 esac
9557 ;;
9558 esac
9559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9560 shlibpath_overrides_runpath=no
9561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9563 hardcode_into_libs=yes
9564 ;;
9565
9566 # No shared lib support for Linux oldld, aout, or coff.
9567 linux*oldld* | linux*aout* | linux*coff*)
9568 dynamic_linker=no
9569 ;;
9570
9571 # This must be Linux ELF.
9572 linux* | k*bsd*-gnu)
9573 version_type=linux
9574 need_lib_prefix=no
9575 need_version=no
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=no
9581 # Some binutils ld are patched to set DT_RUNPATH
9582 save_LDFLAGS=$LDFLAGS
9583 save_libdir=$libdir
9584 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9585 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9586 cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h. */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592
9593 int
9594 main ()
9595 {
9596
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9624 shlibpath_overrides_runpath=yes
9625 fi
9626
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 fi
9632 rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LDFLAGS=$save_LDFLAGS
9635 libdir=$save_libdir
9636
9637 # This implies no fast_install, which is unacceptable.
9638 # Some rework will be needed to allow for fast_install
9639 # before this can be enabled.
9640 hardcode_into_libs=yes
9641
9642 # Append ld.so.conf contents to the search path
9643 if test -f /etc/ld.so.conf; then
9644 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' ' '`
9645 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9646 fi
9647
9648 # We used to test for /lib/ld.so.1 and disable shared libraries on
9649 # powerpc, because MkLinux only supported shared libraries with the
9650 # GNU dynamic linker. Since this was broken with cross compilers,
9651 # most powerpc-linux boxes support dynamic linking these days and
9652 # people can always --disable-shared, the test was removed, and we
9653 # assume the GNU/Linux dynamic linker is in use.
9654 dynamic_linker='GNU/Linux ld.so'
9655 ;;
9656
9657 netbsd*)
9658 version_type=sunos
9659 need_lib_prefix=no
9660 need_version=no
9661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9664 dynamic_linker='NetBSD (a.out) ld.so'
9665 else
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 dynamic_linker='NetBSD ld.elf_so'
9669 fi
9670 shlibpath_var=LD_LIBRARY_PATH
9671 shlibpath_overrides_runpath=yes
9672 hardcode_into_libs=yes
9673 ;;
9674
9675 newsos6)
9676 version_type=linux
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 shlibpath_overrides_runpath=yes
9680 ;;
9681
9682 *nto* | *qnx*)
9683 version_type=qnx
9684 need_lib_prefix=no
9685 need_version=no
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=no
9690 hardcode_into_libs=yes
9691 dynamic_linker='ldqnx.so'
9692 ;;
9693
9694 openbsd*)
9695 version_type=sunos
9696 sys_lib_dlsearch_path_spec="/usr/lib"
9697 need_lib_prefix=no
9698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9699 case $host_os in
9700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9701 *) need_version=no ;;
9702 esac
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9707 case $host_os in
9708 openbsd2.[89] | openbsd2.[89].*)
9709 shlibpath_overrides_runpath=no
9710 ;;
9711 *)
9712 shlibpath_overrides_runpath=yes
9713 ;;
9714 esac
9715 else
9716 shlibpath_overrides_runpath=yes
9717 fi
9718 ;;
9719
9720 os2*)
9721 libname_spec='$name'
9722 shrext_cmds=".dll"
9723 need_lib_prefix=no
9724 library_names_spec='$libname${shared_ext} $libname.a'
9725 dynamic_linker='OS/2 ld.exe'
9726 shlibpath_var=LIBPATH
9727 ;;
9728
9729 osf3* | osf4* | osf5*)
9730 version_type=osf
9731 need_lib_prefix=no
9732 need_version=no
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9738 ;;
9739
9740 rdos*)
9741 dynamic_linker=no
9742 ;;
9743
9744 solaris*)
9745 version_type=linux
9746 need_lib_prefix=no
9747 need_version=no
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 shlibpath_overrides_runpath=yes
9752 hardcode_into_libs=yes
9753 # ldd complains unless libraries are executable
9754 postinstall_cmds='chmod +x $lib'
9755 ;;
9756
9757 sunos4*)
9758 version_type=sunos
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9760 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9763 if test "$with_gnu_ld" = yes; then
9764 need_lib_prefix=no
9765 fi
9766 need_version=yes
9767 ;;
9768
9769 sysv4 | sysv4.3*)
9770 version_type=linux
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 case $host_vendor in
9775 sni)
9776 shlibpath_overrides_runpath=no
9777 need_lib_prefix=no
9778 runpath_var=LD_RUN_PATH
9779 ;;
9780 siemens)
9781 need_lib_prefix=no
9782 ;;
9783 motorola)
9784 need_lib_prefix=no
9785 need_version=no
9786 shlibpath_overrides_runpath=no
9787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9788 ;;
9789 esac
9790 ;;
9791
9792 sysv4*MP*)
9793 if test -d /usr/nec ;then
9794 version_type=linux
9795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9796 soname_spec='$libname${shared_ext}.$major'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 fi
9799 ;;
9800
9801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9802 version_type=freebsd-elf
9803 need_lib_prefix=no
9804 need_version=no
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 shlibpath_var=LD_LIBRARY_PATH
9808 shlibpath_overrides_runpath=yes
9809 hardcode_into_libs=yes
9810 if test "$with_gnu_ld" = yes; then
9811 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9812 else
9813 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9814 case $host_os in
9815 sco3.2v5*)
9816 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9817 ;;
9818 esac
9819 fi
9820 sys_lib_dlsearch_path_spec='/usr/lib'
9821 ;;
9822
9823 tpf*)
9824 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9825 version_type=linux
9826 need_lib_prefix=no
9827 need_version=no
9828 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 shlibpath_overrides_runpath=no
9831 hardcode_into_libs=yes
9832 ;;
9833
9834 uts4*)
9835 version_type=linux
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 ;;
9840
9841 *)
9842 dynamic_linker=no
9843 ;;
9844 esac
9845 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9846 echo "${ECHO_T}$dynamic_linker" >&6
9847 test "$dynamic_linker" = no && can_build_shared=no
9848
9849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9850 if test "$GCC" = yes; then
9851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9852 fi
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9941 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9942 hardcode_action=
9943 if test -n "$hardcode_libdir_flag_spec" ||
9944 test -n "$runpath_var" ||
9945 test "X$hardcode_automatic" = "Xyes" ; then
9946
9947 # We can hardcode non-existent directories.
9948 if test "$hardcode_direct" != no &&
9949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9950 # have to relink, otherwise we might link with an installed library
9951 # when we should be linking with a yet-to-be-installed one
9952 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9953 test "$hardcode_minus_L" != no; then
9954 # Linking always hardcodes the temporary library directory.
9955 hardcode_action=relink
9956 else
9957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9958 hardcode_action=immediate
9959 fi
9960 else
9961 # We cannot hardcode anything, or else we can only hardcode existing
9962 # directories.
9963 hardcode_action=unsupported
9964 fi
9965 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9966 echo "${ECHO_T}$hardcode_action" >&6
9967
9968 if test "$hardcode_action" = relink ||
9969 test "$inherit_rpath" = yes; then
9970 # Fast installation is not supported
9971 enable_fast_install=no
9972 elif test "$shlibpath_overrides_runpath" = yes ||
9973 test "$enable_shared" = no; then
9974 # Fast installation is not necessary
9975 enable_fast_install=needless
9976 fi
9977
9978
9979
9980
9981
9982
9983 if test "x$enable_dlopen" != xyes; then
9984 enable_dlopen=unknown
9985 enable_dlopen_self=unknown
9986 enable_dlopen_self_static=unknown
9987 else
9988 lt_cv_dlopen=no
9989 lt_cv_dlopen_libs=
9990
9991 case $host_os in
9992 beos*)
9993 lt_cv_dlopen="load_add_on"
9994 lt_cv_dlopen_libs=
9995 lt_cv_dlopen_self=yes
9996 ;;
9997
9998 mingw* | pw32*)
9999 lt_cv_dlopen="LoadLibrary"
10000 lt_cv_dlopen_libs=
10001 ;;
10002
10003 cygwin*)
10004 lt_cv_dlopen="dlopen"
10005 lt_cv_dlopen_libs=
10006 ;;
10007
10008 darwin*)
10009 # if libdl is installed we need to link against it
10010 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 ac_check_lib_save_LIBS=$LIBS
10016 LIBS="-ldl $LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023
10024 /* Override any gcc2 internal prototype to avoid an error. */
10025 #ifdef __cplusplus
10026 extern "C"
10027 #endif
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char dlopen ();
10031 int
10032 main ()
10033 {
10034 dlopen ();
10035 ;
10036 return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_lib_dl_dlopen=yes
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 ac_cv_lib_dl_dlopen=no
10067 fi
10068 rm -f conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10071 fi
10072 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10073 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10074 if test $ac_cv_lib_dl_dlopen = yes; then
10075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10076 else
10077
10078 lt_cv_dlopen="dyld"
10079 lt_cv_dlopen_libs=
10080 lt_cv_dlopen_self=yes
10081
10082 fi
10083
10084 ;;
10085
10086 *)
10087 echo "$as_me:$LINENO: checking for shl_load" >&5
10088 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10089 if test "${ac_cv_func_shl_load+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10100 #define shl_load innocuous_shl_load
10101
10102 /* System header to define __stub macros and hopefully few prototypes,
10103 which can conflict with char shl_load (); below.
10104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10105 <limits.h> exists even on freestanding compilers. */
10106
10107 #ifdef __STDC__
10108 # include <limits.h>
10109 #else
10110 # include <assert.h>
10111 #endif
10112
10113 #undef shl_load
10114
10115 /* Override any gcc2 internal prototype to avoid an error. */
10116 #ifdef __cplusplus
10117 extern "C"
10118 {
10119 #endif
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122 char shl_load ();
10123 /* The GNU C library defines this for functions which it implements
10124 to always fail with ENOSYS. Some functions are actually named
10125 something starting with __ and the normal name is an alias. */
10126 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10127 choke me
10128 #else
10129 char (*f) () = shl_load;
10130 #endif
10131 #ifdef __cplusplus
10132 }
10133 #endif
10134
10135 int
10136 main ()
10137 {
10138 return f != shl_load;
10139 ;
10140 return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -z "$ac_c_werror_flag"
10153 || test ! -s conftest.err'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest$ac_exeext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_func_shl_load=yes
10166 else
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170 ac_cv_func_shl_load=no
10171 fi
10172 rm -f conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 fi
10175 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10176 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10177 if test $ac_cv_func_shl_load = yes; then
10178 lt_cv_dlopen="shl_load"
10179 else
10180 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10181 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10182 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185 ac_check_lib_save_LIBS=$LIBS
10186 LIBS="-ldld $LIBS"
10187 cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h. */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10193
10194 /* Override any gcc2 internal prototype to avoid an error. */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10200 char shl_load ();
10201 int
10202 main ()
10203 {
10204 shl_load ();
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_cv_lib_dld_shl_load=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10235
10236 ac_cv_lib_dld_shl_load=no
10237 fi
10238 rm -f conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10241 fi
10242 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10243 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10244 if test $ac_cv_lib_dld_shl_load = yes; then
10245 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10246 else
10247 echo "$as_me:$LINENO: checking for dlopen" >&5
10248 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10249 if test "${ac_cv_func_dlopen+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10260 #define dlopen innocuous_dlopen
10261
10262 /* System header to define __stub macros and hopefully few prototypes,
10263 which can conflict with char dlopen (); below.
10264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265 <limits.h> exists even on freestanding compilers. */
10266
10267 #ifdef __STDC__
10268 # include <limits.h>
10269 #else
10270 # include <assert.h>
10271 #endif
10272
10273 #undef dlopen
10274
10275 /* Override any gcc2 internal prototype to avoid an error. */
10276 #ifdef __cplusplus
10277 extern "C"
10278 {
10279 #endif
10280 /* We use char because int might match the return type of a gcc2
10281 builtin and then its argument prototype would still apply. */
10282 char dlopen ();
10283 /* The GNU C library defines this for functions which it implements
10284 to always fail with ENOSYS. Some functions are actually named
10285 something starting with __ and the normal name is an alias. */
10286 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10287 choke me
10288 #else
10289 char (*f) () = dlopen;
10290 #endif
10291 #ifdef __cplusplus
10292 }
10293 #endif
10294
10295 int
10296 main ()
10297 {
10298 return f != dlopen;
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -z "$ac_c_werror_flag"
10313 || test ! -s conftest.err'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_func_dlopen=yes
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10329
10330 ac_cv_func_dlopen=no
10331 fi
10332 rm -f conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 fi
10335 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10336 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10337 if test $ac_cv_func_dlopen = yes; then
10338 lt_cv_dlopen="dlopen"
10339 else
10340 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10341 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10342 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 ac_check_lib_save_LIBS=$LIBS
10346 LIBS="-ldl $LIBS"
10347 cat >conftest.$ac_ext <<_ACEOF
10348 /* confdefs.h. */
10349 _ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10353
10354 /* Override any gcc2 internal prototype to avoid an error. */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 /* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */
10360 char dlopen ();
10361 int
10362 main ()
10363 {
10364 dlopen ();
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_c_werror_flag"
10379 || test ! -s conftest.err'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 ac_cv_lib_dl_dlopen=yes
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396 ac_cv_lib_dl_dlopen=no
10397 fi
10398 rm -f conftest.err conftest.$ac_objext \
10399 conftest$ac_exeext conftest.$ac_ext
10400 LIBS=$ac_check_lib_save_LIBS
10401 fi
10402 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10403 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10404 if test $ac_cv_lib_dl_dlopen = yes; then
10405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10406 else
10407 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10408 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10409 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412 ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-lsvld $LIBS"
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420
10421 /* Override any gcc2 internal prototype to avoid an error. */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 /* We use char because int might match the return type of a gcc2
10426 builtin and then its argument prototype would still apply. */
10427 char dlopen ();
10428 int
10429 main ()
10430 {
10431 dlopen ();
10432 ;
10433 return 0;
10434 }
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438 (eval $ac_link) 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag"
10446 || test ! -s conftest.err'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 ac_cv_lib_svld_dlopen=yes
10459 else
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10462
10463 ac_cv_lib_svld_dlopen=no
10464 fi
10465 rm -f conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_lib_save_LIBS
10468 fi
10469 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10470 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10471 if test $ac_cv_lib_svld_dlopen = yes; then
10472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10473 else
10474 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10475 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10476 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479 ac_check_lib_save_LIBS=$LIBS
10480 LIBS="-ldld $LIBS"
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487
10488 /* Override any gcc2 internal prototype to avoid an error. */
10489 #ifdef __cplusplus
10490 extern "C"
10491 #endif
10492 /* We use char because int might match the return type of a gcc2
10493 builtin and then its argument prototype would still apply. */
10494 char dld_link ();
10495 int
10496 main ()
10497 {
10498 dld_link ();
10499 ;
10500 return 0;
10501 }
10502 _ACEOF
10503 rm -f conftest.$ac_objext conftest$ac_exeext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10505 (eval $ac_link) 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
10512 { ac_try='test -z "$ac_c_werror_flag"
10513 || test ! -s conftest.err'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest$ac_exeext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_lib_dld_dld_link=yes
10526 else
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10529
10530 ac_cv_lib_dld_dld_link=no
10531 fi
10532 rm -f conftest.err conftest.$ac_objext \
10533 conftest$ac_exeext conftest.$ac_ext
10534 LIBS=$ac_check_lib_save_LIBS
10535 fi
10536 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10537 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10538 if test $ac_cv_lib_dld_dld_link = yes; then
10539 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10540 fi
10541
10542
10543 fi
10544
10545
10546 fi
10547
10548
10549 fi
10550
10551
10552 fi
10553
10554
10555 fi
10556
10557 ;;
10558 esac
10559
10560 if test "x$lt_cv_dlopen" != xno; then
10561 enable_dlopen=yes
10562 else
10563 enable_dlopen=no
10564 fi
10565
10566 case $lt_cv_dlopen in
10567 dlopen)
10568 save_CPPFLAGS="$CPPFLAGS"
10569 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10570
10571 save_LDFLAGS="$LDFLAGS"
10572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10573
10574 save_LIBS="$LIBS"
10575 LIBS="$lt_cv_dlopen_libs $LIBS"
10576
10577 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10578 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10579 if test "${lt_cv_dlopen_self+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582 if test "$cross_compiling" = yes; then :
10583 lt_cv_dlopen_self=cross
10584 else
10585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10586 lt_status=$lt_dlunknown
10587 cat > conftest.$ac_ext <<_LT_EOF
10588 #line 10223 "configure"
10589 #include "confdefs.h"
10590
10591 #if HAVE_DLFCN_H
10592 #include <dlfcn.h>
10593 #endif
10594
10595 #include <stdio.h>
10596
10597 #ifdef RTLD_GLOBAL
10598 # define LT_DLGLOBAL RTLD_GLOBAL
10599 #else
10600 # ifdef DL_GLOBAL
10601 # define LT_DLGLOBAL DL_GLOBAL
10602 # else
10603 # define LT_DLGLOBAL 0
10604 # endif
10605 #endif
10606
10607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10608 find out it does not work in some platform. */
10609 #ifndef LT_DLLAZY_OR_NOW
10610 # ifdef RTLD_LAZY
10611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10612 # else
10613 # ifdef DL_LAZY
10614 # define LT_DLLAZY_OR_NOW DL_LAZY
10615 # else
10616 # ifdef RTLD_NOW
10617 # define LT_DLLAZY_OR_NOW RTLD_NOW
10618 # else
10619 # ifdef DL_NOW
10620 # define LT_DLLAZY_OR_NOW DL_NOW
10621 # else
10622 # define LT_DLLAZY_OR_NOW 0
10623 # endif
10624 # endif
10625 # endif
10626 # endif
10627 #endif
10628
10629 #ifdef __cplusplus
10630 extern "C" void exit (int);
10631 #endif
10632
10633 void fnord() { int i=42;}
10634 int main ()
10635 {
10636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10637 int status = $lt_dlunknown;
10638
10639 if (self)
10640 {
10641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10642 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10643 /* dlclose (self); */
10644 }
10645 else
10646 puts (dlerror ());
10647
10648 exit (status);
10649 }
10650 _LT_EOF
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10656 (./conftest; exit; ) >&5 2>/dev/null
10657 lt_status=$?
10658 case x$lt_status in
10659 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10660 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10661 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10662 esac
10663 else :
10664 # compilation failed
10665 lt_cv_dlopen_self=no
10666 fi
10667 fi
10668 rm -fr conftest*
10669
10670
10671 fi
10672 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10673 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10674
10675 if test "x$lt_cv_dlopen_self" = xyes; then
10676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10677 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10678 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10679 if test "${lt_cv_dlopen_self_static+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 if test "$cross_compiling" = yes; then :
10683 lt_cv_dlopen_self_static=cross
10684 else
10685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10686 lt_status=$lt_dlunknown
10687 cat > conftest.$ac_ext <<_LT_EOF
10688 #line 10323 "configure"
10689 #include "confdefs.h"
10690
10691 #if HAVE_DLFCN_H
10692 #include <dlfcn.h>
10693 #endif
10694
10695 #include <stdio.h>
10696
10697 #ifdef RTLD_GLOBAL
10698 # define LT_DLGLOBAL RTLD_GLOBAL
10699 #else
10700 # ifdef DL_GLOBAL
10701 # define LT_DLGLOBAL DL_GLOBAL
10702 # else
10703 # define LT_DLGLOBAL 0
10704 # endif
10705 #endif
10706
10707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10708 find out it does not work in some platform. */
10709 #ifndef LT_DLLAZY_OR_NOW
10710 # ifdef RTLD_LAZY
10711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10712 # else
10713 # ifdef DL_LAZY
10714 # define LT_DLLAZY_OR_NOW DL_LAZY
10715 # else
10716 # ifdef RTLD_NOW
10717 # define LT_DLLAZY_OR_NOW RTLD_NOW
10718 # else
10719 # ifdef DL_NOW
10720 # define LT_DLLAZY_OR_NOW DL_NOW
10721 # else
10722 # define LT_DLLAZY_OR_NOW 0
10723 # endif
10724 # endif
10725 # endif
10726 # endif
10727 #endif
10728
10729 #ifdef __cplusplus
10730 extern "C" void exit (int);
10731 #endif
10732
10733 void fnord() { int i=42;}
10734 int main ()
10735 {
10736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10737 int status = $lt_dlunknown;
10738
10739 if (self)
10740 {
10741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10743 /* dlclose (self); */
10744 }
10745 else
10746 puts (dlerror ());
10747
10748 exit (status);
10749 }
10750 _LT_EOF
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10756 (./conftest; exit; ) >&5 2>/dev/null
10757 lt_status=$?
10758 case x$lt_status in
10759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10761 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10762 esac
10763 else :
10764 # compilation failed
10765 lt_cv_dlopen_self_static=no
10766 fi
10767 fi
10768 rm -fr conftest*
10769
10770
10771 fi
10772 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10773 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10774 fi
10775
10776 CPPFLAGS="$save_CPPFLAGS"
10777 LDFLAGS="$save_LDFLAGS"
10778 LIBS="$save_LIBS"
10779 ;;
10780 esac
10781
10782 case $lt_cv_dlopen_self in
10783 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10784 *) enable_dlopen_self=unknown ;;
10785 esac
10786
10787 case $lt_cv_dlopen_self_static in
10788 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10789 *) enable_dlopen_self_static=unknown ;;
10790 esac
10791 fi
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809 striplib=
10810 old_striplib=
10811 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10812 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10813 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10814 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10815 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10816 echo "$as_me:$LINENO: result: yes" >&5
10817 echo "${ECHO_T}yes" >&6
10818 else
10819 # FIXME - insert some real tests, host_os isn't really good enough
10820 case $host_os in
10821 darwin*)
10822 if test -n "$STRIP" ; then
10823 striplib="$STRIP -x"
10824 old_striplib="$STRIP -S"
10825 echo "$as_me:$LINENO: result: yes" >&5
10826 echo "${ECHO_T}yes" >&6
10827 else
10828 echo "$as_me:$LINENO: result: no" >&5
10829 echo "${ECHO_T}no" >&6
10830 fi
10831 ;;
10832 *)
10833 echo "$as_me:$LINENO: result: no" >&5
10834 echo "${ECHO_T}no" >&6
10835 ;;
10836 esac
10837 fi
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850 # Report which library types will actually be built
10851 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10852 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10853 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10854 echo "${ECHO_T}$can_build_shared" >&6
10855
10856 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10857 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10858 test "$can_build_shared" = "no" && enable_shared=no
10859
10860 # On AIX, shared libraries and static libraries use the same namespace, and
10861 # are all built from PIC.
10862 case $host_os in
10863 aix3*)
10864 test "$enable_shared" = yes && enable_static=no
10865 if test -n "$RANLIB"; then
10866 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10867 postinstall_cmds='$RANLIB $lib'
10868 fi
10869 ;;
10870
10871 aix[4-9]*)
10872 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10873 test "$enable_shared" = yes && enable_static=no
10874 fi
10875 ;;
10876 esac
10877 echo "$as_me:$LINENO: result: $enable_shared" >&5
10878 echo "${ECHO_T}$enable_shared" >&6
10879
10880 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10881 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10882 # Make sure either enable_shared or enable_static is yes.
10883 test "$enable_shared" = yes || enable_static=yes
10884 echo "$as_me:$LINENO: result: $enable_static" >&5
10885 echo "${ECHO_T}$enable_static" >&6
10886
10887
10888
10889
10890 fi
10891 ac_ext=c
10892 ac_cpp='$CPP $CPPFLAGS'
10893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10896
10897 CC="$lt_save_CC"
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 ac_config_commands="$ac_config_commands libtool"
10912
10913
10914
10915
10916 # Only expand once:
10917
10918
10919
10920 # Check whether --enable-targets or --disable-targets was given.
10921 if test "${enable_targets+set}" = set; then
10922 enableval="$enable_targets"
10923 case "${enableval}" in
10924 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10925 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10926 { (exit 1); exit 1; }; }
10927 ;;
10928 no) enable_targets= ;;
10929 *) enable_targets=$enableval ;;
10930 esac
10931 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10932 if test "${enable_commonbfdlib+set}" = set; then
10933 enableval="$enable_commonbfdlib"
10934 case "${enableval}" in
10935 yes) commonbfdlib=true ;;
10936 no) commonbfdlib=false ;;
10937 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10938 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10939 { (exit 1); exit 1; }; } ;;
10940 esac
10941 fi;
10942
10943 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10944
10945 # Check whether --enable-werror or --disable-werror was given.
10946 if test "${enable_werror+set}" = set; then
10947 enableval="$enable_werror"
10948 case "${enableval}" in
10949 yes | y) ERROR_ON_WARNING="yes" ;;
10950 no | n) ERROR_ON_WARNING="no" ;;
10951 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10952 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10953 { (exit 1); exit 1; }; } ;;
10954 esac
10955 fi;
10956
10957 # Enable -Wno-format by default when using gcc on mingw
10958 case "${host}" in
10959 *-*-mingw32*)
10960 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10961 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10962 fi
10963 ;;
10964 *) ;;
10965 esac
10966
10967 # Enable -Werror by default when using gcc
10968 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10969 ERROR_ON_WARNING=yes
10970 fi
10971
10972 NO_WERROR=
10973 if test "${ERROR_ON_WARNING}" = yes ; then
10974 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10975 NO_WERROR="-Wno-error"
10976 fi
10977
10978 if test "${GCC}" = yes ; then
10979 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10980 fi
10981
10982 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10983 if test "${enable_build_warnings+set}" = set; then
10984 enableval="$enable_build_warnings"
10985 case "${enableval}" in
10986 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10987 no) if test "${GCC}" = yes ; then
10988 WARN_CFLAGS="-w"
10989 fi;;
10990 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10991 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10992 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10993 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10994 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10995 esac
10996 fi;
10997
10998 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10999 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11000 fi
11001
11002
11003
11004
11005
11006 ac_config_headers="$ac_config_headers config.h:config.in"
11007
11008
11009 if test -z "$target" ; then
11010 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11011 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11012 { (exit 1); exit 1; }; }
11013 fi
11014 if test -z "$host" ; then
11015 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
11016 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
11017 { (exit 1); exit 1; }; }
11018 fi
11019
11020 for ac_prog in 'bison -y' byacc
11021 do
11022 # Extract the first word of "$ac_prog", so it can be a program name with args.
11023 set dummy $ac_prog; ac_word=$2
11024 echo "$as_me:$LINENO: checking for $ac_word" >&5
11025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026 if test "${ac_cv_prog_YACC+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029 if test -n "$YACC"; then
11030 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11031 else
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 for as_dir in $PATH
11034 do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_prog_YACC="$ac_prog"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043 done
11044 done
11045
11046 fi
11047 fi
11048 YACC=$ac_cv_prog_YACC
11049 if test -n "$YACC"; then
11050 echo "$as_me:$LINENO: result: $YACC" >&5
11051 echo "${ECHO_T}$YACC" >&6
11052 else
11053 echo "$as_me:$LINENO: result: no" >&5
11054 echo "${ECHO_T}no" >&6
11055 fi
11056
11057 test -n "$YACC" && break
11058 done
11059 test -n "$YACC" || YACC="yacc"
11060
11061 for ac_prog in flex lex
11062 do
11063 # Extract the first word of "$ac_prog", so it can be a program name with args.
11064 set dummy $ac_prog; ac_word=$2
11065 echo "$as_me:$LINENO: checking for $ac_word" >&5
11066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11067 if test "${ac_cv_prog_LEX+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 if test -n "$LEX"; then
11071 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11072 else
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11075 do
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080 ac_cv_prog_LEX="$ac_prog"
11081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 break 2
11083 fi
11084 done
11085 done
11086
11087 fi
11088 fi
11089 LEX=$ac_cv_prog_LEX
11090 if test -n "$LEX"; then
11091 echo "$as_me:$LINENO: result: $LEX" >&5
11092 echo "${ECHO_T}$LEX" >&6
11093 else
11094 echo "$as_me:$LINENO: result: no" >&5
11095 echo "${ECHO_T}no" >&6
11096 fi
11097
11098 test -n "$LEX" && break
11099 done
11100 test -n "$LEX" || LEX=":"
11101
11102 if test -z "$LEXLIB"
11103 then
11104 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11105 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11106 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109 ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-lfl $LIBS"
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117
11118 /* Override any gcc2 internal prototype to avoid an error. */
11119 #ifdef __cplusplus
11120 extern "C"
11121 #endif
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11124 char yywrap ();
11125 int
11126 main ()
11127 {
11128 yywrap ();
11129 ;
11130 return 0;
11131 }
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_lib_fl_yywrap=yes
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160 ac_cv_lib_fl_yywrap=no
11161 fi
11162 rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_check_lib_save_LIBS
11165 fi
11166 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11167 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11168 if test $ac_cv_lib_fl_yywrap = yes; then
11169 LEXLIB="-lfl"
11170 else
11171 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11172 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11173 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176 ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-ll $LIBS"
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184
11185 /* Override any gcc2 internal prototype to avoid an error. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 /* We use char because int might match the return type of a gcc2
11190 builtin and then its argument prototype would still apply. */
11191 char yywrap ();
11192 int
11193 main ()
11194 {
11195 yywrap ();
11196 ;
11197 return 0;
11198 }
11199 _ACEOF
11200 rm -f conftest.$ac_objext conftest$ac_exeext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11202 (eval $ac_link) 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_lib_l_yywrap=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ac_cv_lib_l_yywrap=no
11228 fi
11229 rm -f conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231 LIBS=$ac_check_lib_save_LIBS
11232 fi
11233 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11234 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11235 if test $ac_cv_lib_l_yywrap = yes; then
11236 LEXLIB="-ll"
11237 fi
11238
11239 fi
11240
11241 fi
11242
11243 if test "x$LEX" != "x:"; then
11244 echo "$as_me:$LINENO: checking lex output file root" >&5
11245 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11246 if test "${ac_cv_prog_lex_root+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249 # The minimal lex program is just a single line: %%. But some broken lexes
11250 # (Solaris, I think it was) want two %% lines, so accommodate them.
11251 cat >conftest.l <<_ACEOF
11252 %%
11253 %%
11254 _ACEOF
11255 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11256 (eval $LEX conftest.l) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }
11260 if test -f lex.yy.c; then
11261 ac_cv_prog_lex_root=lex.yy
11262 elif test -f lexyy.c; then
11263 ac_cv_prog_lex_root=lexyy
11264 else
11265 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11266 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11267 { (exit 1); exit 1; }; }
11268 fi
11269 fi
11270 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11271 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11272 rm -f conftest.l
11273 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11274
11275 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11276 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11277 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 # POSIX says lex can declare yytext either as a pointer or an array; the
11281 # default is implementation-dependent. Figure out which it is, since
11282 # not all implementations provide the %pointer and %array declarations.
11283 ac_cv_prog_lex_yytext_pointer=no
11284 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11285 ac_save_LIBS=$LIBS
11286 LIBS="$LIBS $LEXLIB"
11287 cat >conftest.$ac_ext <<_ACEOF
11288 `cat $LEX_OUTPUT_ROOT.c`
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_prog_lex_yytext_pointer=yes
11313 else
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 fi
11318 rm -f conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_save_LIBS
11321 rm -f "${LEX_OUTPUT_ROOT}.c"
11322
11323 fi
11324 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11325 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11326 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11327
11328 cat >>confdefs.h <<\_ACEOF
11329 #define YYTEXT_POINTER 1
11330 _ACEOF
11331
11332 fi
11333
11334 fi
11335 if test "$LEX" = :; then
11336 LEX=${am_missing_run}flex
11337 fi
11338
11339 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
11340 # If we haven't got the data from the intl directory,
11341 # assume NLS is disabled.
11342 USE_NLS=no
11343 LIBINTL=
11344 LIBINTL_DEP=
11345 INCINTL=
11346 XGETTEXT=
11347 GMSGFMT=
11348 POSUB=
11349
11350 if test -f ../intl/config.intl; then
11351 . ../intl/config.intl
11352 fi
11353 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11354 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11355 if test x"$USE_NLS" != xyes; then
11356 echo "$as_me:$LINENO: result: no" >&5
11357 echo "${ECHO_T}no" >&6
11358 else
11359 echo "$as_me:$LINENO: result: yes" >&5
11360 echo "${ECHO_T}yes" >&6
11361
11362 cat >>confdefs.h <<\_ACEOF
11363 #define ENABLE_NLS 1
11364 _ACEOF
11365
11366
11367 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11368 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11369 # Look for .po and .gmo files in the source directory.
11370 CATALOGS=
11371 XLINGUAS=
11372 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11373 # If there aren't any .gmo files the shell will give us the
11374 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11375 # weeded out.
11376 case "$cat" in *\**)
11377 continue;;
11378 esac
11379 # The quadruple backslash is collapsed to a double backslash
11380 # by the backticks, then collapsed again by the double quotes,
11381 # leaving us with one backslash in the sed expression (right
11382 # before the dot that mustn't act as a wildcard).
11383 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11384 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11385 # The user is allowed to set LINGUAS to a list of languages to
11386 # install catalogs for. If it's empty that means "all of them."
11387 if test "x$LINGUAS" = x; then
11388 CATALOGS="$CATALOGS $cat"
11389 XLINGUAS="$XLINGUAS $lang"
11390 else
11391 case "$LINGUAS" in *$lang*)
11392 CATALOGS="$CATALOGS $cat"
11393 XLINGUAS="$XLINGUAS $lang"
11394 ;;
11395 esac
11396 fi
11397 done
11398 LINGUAS="$XLINGUAS"
11399 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11400 echo "${ECHO_T}$LINGUAS" >&6
11401
11402
11403 DATADIRNAME=share
11404
11405 INSTOBJEXT=.mo
11406
11407 GENCAT=gencat
11408
11409 CATOBJEXT=.gmo
11410
11411 fi
11412
11413 MKINSTALLDIRS=
11414 if test -n "$ac_aux_dir"; then
11415 case "$ac_aux_dir" in
11416 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11417 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11418 esac
11419 fi
11420 if test -z "$MKINSTALLDIRS"; then
11421 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11422 fi
11423
11424
11425
11426 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11427 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11428 # Check whether --enable-nls or --disable-nls was given.
11429 if test "${enable_nls+set}" = set; then
11430 enableval="$enable_nls"
11431 USE_NLS=$enableval
11432 else
11433 USE_NLS=yes
11434 fi;
11435 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11436 echo "${ECHO_T}$USE_NLS" >&6
11437
11438
11439
11440
11441
11442
11443 # Prepare PATH_SEPARATOR.
11444 # The user is always right.
11445 if test "${PATH_SEPARATOR+set}" != set; then
11446 echo "#! /bin/sh" >conf$$.sh
11447 echo "exit 0" >>conf$$.sh
11448 chmod +x conf$$.sh
11449 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11450 PATH_SEPARATOR=';'
11451 else
11452 PATH_SEPARATOR=:
11453 fi
11454 rm -f conf$$.sh
11455 fi
11456
11457 # Find out how to test for executable files. Don't use a zero-byte file,
11458 # as systems may use methods other than mode bits to determine executability.
11459 cat >conf$$.file <<_ASEOF
11460 #! /bin/sh
11461 exit 0
11462 _ASEOF
11463 chmod +x conf$$.file
11464 if test -x conf$$.file >/dev/null 2>&1; then
11465 ac_executable_p="test -x"
11466 else
11467 ac_executable_p="test -f"
11468 fi
11469 rm -f conf$$.file
11470
11471 # Extract the first word of "msgfmt", so it can be a program name with args.
11472 set dummy msgfmt; ac_word=$2
11473 echo "$as_me:$LINENO: checking for $ac_word" >&5
11474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11475 if test "${ac_cv_path_MSGFMT+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 else
11478 case "$MSGFMT" in
11479 [\\/]* | ?:[\\/]*)
11480 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11481 ;;
11482 *)
11483 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11484 for ac_dir in $PATH; do
11485 IFS="$ac_save_IFS"
11486 test -z "$ac_dir" && ac_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11489 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11490 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11491 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11492 break 2
11493 fi
11494 fi
11495 done
11496 done
11497 IFS="$ac_save_IFS"
11498 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11499 ;;
11500 esac
11501 fi
11502 MSGFMT="$ac_cv_path_MSGFMT"
11503 if test "$MSGFMT" != ":"; then
11504 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11505 echo "${ECHO_T}$MSGFMT" >&6
11506 else
11507 echo "$as_me:$LINENO: result: no" >&5
11508 echo "${ECHO_T}no" >&6
11509 fi
11510
11511 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11512 set dummy gmsgfmt; ac_word=$2
11513 echo "$as_me:$LINENO: checking for $ac_word" >&5
11514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11515 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518 case $GMSGFMT in
11519 [\\/]* | ?:[\\/]*)
11520 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11521 ;;
11522 *)
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11525 do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534 done
11535 done
11536
11537 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11538 ;;
11539 esac
11540 fi
11541 GMSGFMT=$ac_cv_path_GMSGFMT
11542
11543 if test -n "$GMSGFMT"; then
11544 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11545 echo "${ECHO_T}$GMSGFMT" >&6
11546 else
11547 echo "$as_me:$LINENO: result: no" >&5
11548 echo "${ECHO_T}no" >&6
11549 fi
11550
11551
11552
11553 # Prepare PATH_SEPARATOR.
11554 # The user is always right.
11555 if test "${PATH_SEPARATOR+set}" != set; then
11556 echo "#! /bin/sh" >conf$$.sh
11557 echo "exit 0" >>conf$$.sh
11558 chmod +x conf$$.sh
11559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11560 PATH_SEPARATOR=';'
11561 else
11562 PATH_SEPARATOR=:
11563 fi
11564 rm -f conf$$.sh
11565 fi
11566
11567 # Find out how to test for executable files. Don't use a zero-byte file,
11568 # as systems may use methods other than mode bits to determine executability.
11569 cat >conf$$.file <<_ASEOF
11570 #! /bin/sh
11571 exit 0
11572 _ASEOF
11573 chmod +x conf$$.file
11574 if test -x conf$$.file >/dev/null 2>&1; then
11575 ac_executable_p="test -x"
11576 else
11577 ac_executable_p="test -f"
11578 fi
11579 rm -f conf$$.file
11580
11581 # Extract the first word of "xgettext", so it can be a program name with args.
11582 set dummy xgettext; ac_word=$2
11583 echo "$as_me:$LINENO: checking for $ac_word" >&5
11584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11585 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588 case "$XGETTEXT" in
11589 [\\/]* | ?:[\\/]*)
11590 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11591 ;;
11592 *)
11593 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11594 for ac_dir in $PATH; do
11595 IFS="$ac_save_IFS"
11596 test -z "$ac_dir" && ac_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11599 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11600 (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
11601 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11602 break 2
11603 fi
11604 fi
11605 done
11606 done
11607 IFS="$ac_save_IFS"
11608 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11609 ;;
11610 esac
11611 fi
11612 XGETTEXT="$ac_cv_path_XGETTEXT"
11613 if test "$XGETTEXT" != ":"; then
11614 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11615 echo "${ECHO_T}$XGETTEXT" >&6
11616 else
11617 echo "$as_me:$LINENO: result: no" >&5
11618 echo "${ECHO_T}no" >&6
11619 fi
11620
11621 rm -f messages.po
11622
11623
11624 # Prepare PATH_SEPARATOR.
11625 # The user is always right.
11626 if test "${PATH_SEPARATOR+set}" != set; then
11627 echo "#! /bin/sh" >conf$$.sh
11628 echo "exit 0" >>conf$$.sh
11629 chmod +x conf$$.sh
11630 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11631 PATH_SEPARATOR=';'
11632 else
11633 PATH_SEPARATOR=:
11634 fi
11635 rm -f conf$$.sh
11636 fi
11637
11638 # Find out how to test for executable files. Don't use a zero-byte file,
11639 # as systems may use methods other than mode bits to determine executability.
11640 cat >conf$$.file <<_ASEOF
11641 #! /bin/sh
11642 exit 0
11643 _ASEOF
11644 chmod +x conf$$.file
11645 if test -x conf$$.file >/dev/null 2>&1; then
11646 ac_executable_p="test -x"
11647 else
11648 ac_executable_p="test -f"
11649 fi
11650 rm -f conf$$.file
11651
11652 # Extract the first word of "msgmerge", so it can be a program name with args.
11653 set dummy msgmerge; ac_word=$2
11654 echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11656 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 case "$MSGMERGE" in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11662 ;;
11663 *)
11664 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11665 for ac_dir in $PATH; do
11666 IFS="$ac_save_IFS"
11667 test -z "$ac_dir" && ac_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11670 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11671 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11672 break 2
11673 fi
11674 fi
11675 done
11676 done
11677 IFS="$ac_save_IFS"
11678 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11679 ;;
11680 esac
11681 fi
11682 MSGMERGE="$ac_cv_path_MSGMERGE"
11683 if test "$MSGMERGE" != ":"; then
11684 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11685 echo "${ECHO_T}$MSGMERGE" >&6
11686 else
11687 echo "$as_me:$LINENO: result: no" >&5
11688 echo "${ECHO_T}no" >&6
11689 fi
11690
11691
11692 if test "$GMSGFMT" != ":"; then
11693 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11694 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11695 : ;
11696 else
11697 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11698 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11699 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11700 GMSGFMT=":"
11701 fi
11702 fi
11703
11704 if test "$XGETTEXT" != ":"; then
11705 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11706 (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
11707 : ;
11708 else
11709 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11710 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11711 XGETTEXT=":"
11712 fi
11713 rm -f messages.po
11714 fi
11715
11716 ac_config_commands="$ac_config_commands default-1"
11717
11718
11719
11720 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11721 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11722 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11723 if test "${enable_maintainer_mode+set}" = set; then
11724 enableval="$enable_maintainer_mode"
11725 USE_MAINTAINER_MODE=$enableval
11726 else
11727 USE_MAINTAINER_MODE=no
11728 fi;
11729 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11730 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11731
11732
11733 if test $USE_MAINTAINER_MODE = yes; then
11734 MAINTAINER_MODE_TRUE=
11735 MAINTAINER_MODE_FALSE='#'
11736 else
11737 MAINTAINER_MODE_TRUE='#'
11738 MAINTAINER_MODE_FALSE=
11739 fi
11740
11741 MAINT=$MAINTAINER_MODE_TRUE
11742
11743
11744
11745
11746 if false; then
11747 GENINSRC_NEVER_TRUE=
11748 GENINSRC_NEVER_FALSE='#'
11749 else
11750 GENINSRC_NEVER_TRUE='#'
11751 GENINSRC_NEVER_FALSE=
11752 fi
11753
11754
11755 if test -n "$EXEEXT"; then
11756
11757 cat >>confdefs.h <<\_ACEOF
11758 #define HAVE_EXECUTABLE_SUFFIX 1
11759 _ACEOF
11760
11761 fi
11762
11763 cat >>confdefs.h <<_ACEOF
11764 #define EXECUTABLE_SUFFIX "${EXEEXT}"
11765 _ACEOF
11766
11767
11768 # host-specific stuff:
11769
11770 HDEFINES=
11771
11772 . ${srcdir}/../bfd/configure.host
11773
11774
11775 AR=${AR-ar}
11776
11777 if test -n "$ac_tool_prefix"; then
11778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11780 echo "$as_me:$LINENO: checking for $ac_word" >&5
11781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11782 if test "${ac_cv_prog_RANLIB+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785 if test -n "$RANLIB"; then
11786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11787 else
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799 done
11800 done
11801
11802 fi
11803 fi
11804 RANLIB=$ac_cv_prog_RANLIB
11805 if test -n "$RANLIB"; then
11806 echo "$as_me:$LINENO: result: $RANLIB" >&5
11807 echo "${ECHO_T}$RANLIB" >&6
11808 else
11809 echo "$as_me:$LINENO: result: no" >&5
11810 echo "${ECHO_T}no" >&6
11811 fi
11812
11813 fi
11814 if test -z "$ac_cv_prog_RANLIB"; then
11815 ac_ct_RANLIB=$RANLIB
11816 # Extract the first word of "ranlib", so it can be a program name with args.
11817 set dummy ranlib; ac_word=$2
11818 echo "$as_me:$LINENO: checking for $ac_word" >&5
11819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823 if test -n "$ac_ct_RANLIB"; then
11824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11825 else
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11828 do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11833 ac_cv_prog_ac_ct_RANLIB="ranlib"
11834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11836 fi
11837 done
11838 done
11839
11840 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11841 fi
11842 fi
11843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11844 if test -n "$ac_ct_RANLIB"; then
11845 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11846 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11847 else
11848 echo "$as_me:$LINENO: result: no" >&5
11849 echo "${ECHO_T}no" >&6
11850 fi
11851
11852 RANLIB=$ac_ct_RANLIB
11853 else
11854 RANLIB="$ac_cv_prog_RANLIB"
11855 fi
11856
11857 # Find a good install program. We prefer a C program (faster),
11858 # so one script is as good as another. But avoid the broken or
11859 # incompatible versions:
11860 # SysV /etc/install, /usr/sbin/install
11861 # SunOS /usr/etc/install
11862 # IRIX /sbin/install
11863 # AIX /bin/install
11864 # AmigaOS /C/install, which installs bootblocks on floppy discs
11865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11868 # OS/2's system install, which has a completely different semantic
11869 # ./install, which can be erroneously created by make from ./install.sh.
11870 # Reject install programs that cannot install multiple files.
11871 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11872 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11873 if test -z "$INSTALL"; then
11874 if test "${ac_cv_path_install+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11879 do
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 # Account for people who put trailing slashes in PATH elements.
11883 case $as_dir/ in
11884 ./ | .// | /cC/* | \
11885 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11886 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11887 /usr/ucb/* ) ;;
11888 *)
11889 # OSF1 and SCO ODT 3.0 have their own names for install.
11890 # Don't use installbsd from OSF since it installs stuff as root
11891 # by default.
11892 for ac_prog in ginstall scoinst install; do
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11895 if test $ac_prog = install &&
11896 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11897 # AIX install. It has an incompatible calling convention.
11898 :
11899 elif test $ac_prog = install &&
11900 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11901 # program-specific install script used by HP pwplus--don't use.
11902 :
11903 else
11904 rm -rf conftest.one conftest.two conftest.dir
11905 echo one > conftest.one
11906 echo two > conftest.two
11907 mkdir conftest.dir
11908 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11909 test -s conftest.one && test -s conftest.two &&
11910 test -s conftest.dir/conftest.one &&
11911 test -s conftest.dir/conftest.two
11912 then
11913 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11914 break 3
11915 fi
11916 fi
11917 fi
11918 done
11919 done
11920 ;;
11921 esac
11922 done
11923
11924 rm -rf conftest.one conftest.two conftest.dir
11925
11926 fi
11927 if test "${ac_cv_path_install+set}" = set; then
11928 INSTALL=$ac_cv_path_install
11929 else
11930 # As a last resort, use the slow shell script. Don't cache a
11931 # value for INSTALL within a source directory, because that will
11932 # break other packages using the cache if that directory is
11933 # removed, or if the value is a relative name.
11934 INSTALL=$ac_install_sh
11935 fi
11936 fi
11937 echo "$as_me:$LINENO: result: $INSTALL" >&5
11938 echo "${ECHO_T}$INSTALL" >&6
11939
11940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11941 # It thinks the first close brace ends the variable substitution.
11942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11943
11944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11945
11946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11947
11948
11949 # Put a plausible default for CC_FOR_BUILD in Makefile.
11950 if test -z "$CC_FOR_BUILD"; then
11951 if test "x$cross_compiling" = "xno"; then
11952 CC_FOR_BUILD='$(CC)'
11953 else
11954 CC_FOR_BUILD=gcc
11955 fi
11956 fi
11957
11958 # Also set EXEEXT_FOR_BUILD.
11959 if test "x$cross_compiling" = "xno"; then
11960 EXEEXT_FOR_BUILD='$(EXEEXT)'
11961 else
11962 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11963 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11964 if test "${bfd_cv_build_exeext+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967 rm -f conftest*
11968 echo 'int main () { return 0; }' > conftest.c
11969 bfd_cv_build_exeext=
11970 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11971 for file in conftest.*; do
11972 case $file in
11973 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11974 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11975 esac
11976 done
11977 rm -f conftest*
11978 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11979 fi
11980 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11981 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11982 EXEEXT_FOR_BUILD=""
11983 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11984 fi
11985
11986
11987 DEMANGLER_NAME=c++filt
11988 case "${host}" in
11989 *-*-go32* | *-*-msdos*)
11990 DEMANGLER_NAME=cxxfilt
11991 esac
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12003 do
12004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12006 echo "$as_me:$LINENO: checking for $ac_header" >&5
12007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 fi
12011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12013 else
12014 # Is the header compilable?
12015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12024 #include <$ac_header>
12025 _ACEOF
12026 rm -f conftest.$ac_objext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12028 (eval $ac_compile) 2>conftest.er1
12029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_c_werror_flag"
12036 || test ! -s conftest.err'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_header_compiler=yes
12049 else
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 ac_header_compiler=no
12054 fi
12055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057 echo "${ECHO_T}$ac_header_compiler" >&6
12058
12059 # Is the header present?
12060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <$ac_header>
12069 _ACEOF
12070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } >/dev/null; then
12078 if test -s conftest.err; then
12079 ac_cpp_err=$ac_c_preproc_warn_flag
12080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12081 else
12082 ac_cpp_err=
12083 fi
12084 else
12085 ac_cpp_err=yes
12086 fi
12087 if test -z "$ac_cpp_err"; then
12088 ac_header_preproc=yes
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 ac_header_preproc=no
12094 fi
12095 rm -f conftest.err conftest.$ac_ext
12096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12097 echo "${ECHO_T}$ac_header_preproc" >&6
12098
12099 # So? What about this header?
12100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12101 yes:no: )
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12106 ac_header_preproc=yes
12107 ;;
12108 no:yes:* )
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12121 (
12122 cat <<\_ASBOX
12123 ## ------------------------------------------ ##
12124 ## Report this to the AC_PACKAGE_NAME lists. ##
12125 ## ------------------------------------------ ##
12126 _ASBOX
12127 ) |
12128 sed "s/^/$as_me: WARNING: /" >&2
12129 ;;
12130 esac
12131 echo "$as_me:$LINENO: checking for $ac_header" >&5
12132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136 eval "$as_ac_Header=\$ac_header_preproc"
12137 fi
12138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12140
12141 fi
12142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12143 cat >>confdefs.h <<_ACEOF
12144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12145 _ACEOF
12146
12147 fi
12148
12149 done
12150
12151 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 #include <sys/types.h>
12163 #include <sys/wait.h>
12164 #ifndef WEXITSTATUS
12165 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12166 #endif
12167 #ifndef WIFEXITED
12168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12169 #endif
12170
12171 int
12172 main ()
12173 {
12174 int s;
12175 wait (&s);
12176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest.$ac_objext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_cv_header_sys_wait_h=yes
12204 else
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 ac_cv_header_sys_wait_h=no
12209 fi
12210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12211 fi
12212 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12213 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12214 if test $ac_cv_header_sys_wait_h = yes; then
12215
12216 cat >>confdefs.h <<\_ACEOF
12217 #define HAVE_SYS_WAIT_H 1
12218 _ACEOF
12219
12220 fi
12221
12222 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12223 # for constant arguments. Useless!
12224 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12225 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12226 if test "${ac_cv_working_alloca_h+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include <alloca.h>
12236 int
12237 main ()
12238 {
12239 char *p = (char *) alloca (2 * sizeof (int));
12240 ;
12241 return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246 (eval $ac_link) 2>conftest.er1
12247 ac_status=$?
12248 grep -v '^ *+' conftest.er1 >conftest.err
12249 rm -f conftest.er1
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
12253 { ac_try='test -z "$ac_c_werror_flag"
12254 || test ! -s conftest.err'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266 ac_cv_working_alloca_h=yes
12267 else
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_cv_working_alloca_h=no
12272 fi
12273 rm -f conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12275 fi
12276 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12277 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12278 if test $ac_cv_working_alloca_h = yes; then
12279
12280 cat >>confdefs.h <<\_ACEOF
12281 #define HAVE_ALLOCA_H 1
12282 _ACEOF
12283
12284 fi
12285
12286 echo "$as_me:$LINENO: checking for alloca" >&5
12287 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12288 if test "${ac_cv_func_alloca_works+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 #ifdef __GNUC__
12298 # define alloca __builtin_alloca
12299 #else
12300 # ifdef _MSC_VER
12301 # include <malloc.h>
12302 # define alloca _alloca
12303 # else
12304 # if HAVE_ALLOCA_H
12305 # include <alloca.h>
12306 # else
12307 # ifdef _AIX
12308 #pragma alloca
12309 # else
12310 # ifndef alloca /* predefined by HP cc +Olibcalls */
12311 char *alloca ();
12312 # endif
12313 # endif
12314 # endif
12315 # endif
12316 #endif
12317
12318 int
12319 main ()
12320 {
12321 char *p = (char *) alloca (1);
12322 ;
12323 return 0;
12324 }
12325 _ACEOF
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328 (eval $ac_link) 2>conftest.er1
12329 ac_status=$?
12330 grep -v '^ *+' conftest.er1 >conftest.err
12331 rm -f conftest.er1
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
12335 { ac_try='test -z "$ac_c_werror_flag"
12336 || test ! -s conftest.err'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest$ac_exeext'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_cv_func_alloca_works=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 ac_cv_func_alloca_works=no
12354 fi
12355 rm -f conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
12357 fi
12358 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12359 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12360
12361 if test $ac_cv_func_alloca_works = yes; then
12362
12363 cat >>confdefs.h <<\_ACEOF
12364 #define HAVE_ALLOCA 1
12365 _ACEOF
12366
12367 else
12368 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12369 # that cause trouble. Some versions do not even contain alloca or
12370 # contain a buggy version. If you still want to use their alloca,
12371 # use ar to extract alloca.o from them instead of compiling alloca.c.
12372
12373 ALLOCA=alloca.$ac_objext
12374
12375 cat >>confdefs.h <<\_ACEOF
12376 #define C_ALLOCA 1
12377 _ACEOF
12378
12379
12380 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12381 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12382 if test "${ac_cv_os_cray+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 #if defined(CRAY) && ! defined(CRAY2)
12392 webecray
12393 #else
12394 wenotbecray
12395 #endif
12396
12397 _ACEOF
12398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12399 $EGREP "webecray" >/dev/null 2>&1; then
12400 ac_cv_os_cray=yes
12401 else
12402 ac_cv_os_cray=no
12403 fi
12404 rm -f conftest*
12405
12406 fi
12407 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12408 echo "${ECHO_T}$ac_cv_os_cray" >&6
12409 if test $ac_cv_os_cray = yes; then
12410 for ac_func in _getb67 GETB67 getb67; do
12411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12412 echo "$as_me:$LINENO: checking for $ac_func" >&5
12413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12414 if eval "test \"\${$as_ac_var+set}\" = set"; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h. */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12425 #define $ac_func innocuous_$ac_func
12426
12427 /* System header to define __stub macros and hopefully few prototypes,
12428 which can conflict with char $ac_func (); below.
12429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430 <limits.h> exists even on freestanding compilers. */
12431
12432 #ifdef __STDC__
12433 # include <limits.h>
12434 #else
12435 # include <assert.h>
12436 #endif
12437
12438 #undef $ac_func
12439
12440 /* Override any gcc2 internal prototype to avoid an error. */
12441 #ifdef __cplusplus
12442 extern "C"
12443 {
12444 #endif
12445 /* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12447 char $ac_func ();
12448 /* The GNU C library defines this for functions which it implements
12449 to always fail with ENOSYS. Some functions are actually named
12450 something starting with __ and the normal name is an alias. */
12451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12452 choke me
12453 #else
12454 char (*f) () = $ac_func;
12455 #endif
12456 #ifdef __cplusplus
12457 }
12458 #endif
12459
12460 int
12461 main ()
12462 {
12463 return f != $ac_func;
12464 ;
12465 return 0;
12466 }
12467 _ACEOF
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest$ac_exeext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 eval "$as_ac_var=yes"
12491 else
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12494
12495 eval "$as_ac_var=no"
12496 fi
12497 rm -f conftest.err conftest.$ac_objext \
12498 conftest$ac_exeext conftest.$ac_ext
12499 fi
12500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12502 if test `eval echo '${'$as_ac_var'}'` = yes; then
12503
12504 cat >>confdefs.h <<_ACEOF
12505 #define CRAY_STACKSEG_END $ac_func
12506 _ACEOF
12507
12508 break
12509 fi
12510
12511 done
12512 fi
12513
12514 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12515 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12516 if test "${ac_cv_c_stack_direction+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519 if test "$cross_compiling" = yes; then
12520 ac_cv_c_stack_direction=0
12521 else
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h. */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 int
12529 find_stack_direction ()
12530 {
12531 static char *addr = 0;
12532 auto char dummy;
12533 if (addr == 0)
12534 {
12535 addr = &dummy;
12536 return find_stack_direction ();
12537 }
12538 else
12539 return (&dummy > addr) ? 1 : -1;
12540 }
12541
12542 int
12543 main ()
12544 {
12545 exit (find_stack_direction () < 0);
12546 }
12547 _ACEOF
12548 rm -f conftest$ac_exeext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550 (eval $ac_link) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_c_stack_direction=1
12560 else
12561 echo "$as_me: program exited with status $ac_status" >&5
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 ( exit $ac_status )
12566 ac_cv_c_stack_direction=-1
12567 fi
12568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12569 fi
12570 fi
12571 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12572 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12573
12574 cat >>confdefs.h <<_ACEOF
12575 #define STACK_DIRECTION $ac_cv_c_stack_direction
12576 _ACEOF
12577
12578
12579 fi
12580
12581
12582
12583
12584
12585
12586 for ac_func in sbrk utimes setmode getc_unlocked strcoll
12587 do
12588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12589 echo "$as_me:$LINENO: checking for $ac_func" >&5
12590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12591 if eval "test \"\${$as_ac_var+set}\" = set"; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12602 #define $ac_func innocuous_$ac_func
12603
12604 /* System header to define __stub macros and hopefully few prototypes,
12605 which can conflict with char $ac_func (); below.
12606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12607 <limits.h> exists even on freestanding compilers. */
12608
12609 #ifdef __STDC__
12610 # include <limits.h>
12611 #else
12612 # include <assert.h>
12613 #endif
12614
12615 #undef $ac_func
12616
12617 /* Override any gcc2 internal prototype to avoid an error. */
12618 #ifdef __cplusplus
12619 extern "C"
12620 {
12621 #endif
12622 /* We use char because int might match the return type of a gcc2
12623 builtin and then its argument prototype would still apply. */
12624 char $ac_func ();
12625 /* The GNU C library defines this for functions which it implements
12626 to always fail with ENOSYS. Some functions are actually named
12627 something starting with __ and the normal name is an alias. */
12628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12629 choke me
12630 #else
12631 char (*f) () = $ac_func;
12632 #endif
12633 #ifdef __cplusplus
12634 }
12635 #endif
12636
12637 int
12638 main ()
12639 {
12640 return f != $ac_func;
12641 ;
12642 return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest.$ac_objext conftest$ac_exeext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -z "$ac_c_werror_flag"
12655 || test ! -s conftest.err'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 eval "$as_ac_var=yes"
12668 else
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12671
12672 eval "$as_ac_var=no"
12673 fi
12674 rm -f conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676 fi
12677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12679 if test `eval echo '${'$as_ac_var'}'` = yes; then
12680 cat >>confdefs.h <<_ACEOF
12681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12682 _ACEOF
12683
12684 fi
12685 done
12686
12687 echo "$as_me:$LINENO: checking for mkstemp" >&5
12688 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12689 if test "${ac_cv_func_mkstemp+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12700 #define mkstemp innocuous_mkstemp
12701
12702 /* System header to define __stub macros and hopefully few prototypes,
12703 which can conflict with char mkstemp (); below.
12704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12705 <limits.h> exists even on freestanding compilers. */
12706
12707 #ifdef __STDC__
12708 # include <limits.h>
12709 #else
12710 # include <assert.h>
12711 #endif
12712
12713 #undef mkstemp
12714
12715 /* Override any gcc2 internal prototype to avoid an error. */
12716 #ifdef __cplusplus
12717 extern "C"
12718 {
12719 #endif
12720 /* We use char because int might match the return type of a gcc2
12721 builtin and then its argument prototype would still apply. */
12722 char mkstemp ();
12723 /* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12727 choke me
12728 #else
12729 char (*f) () = mkstemp;
12730 #endif
12731 #ifdef __cplusplus
12732 }
12733 #endif
12734
12735 int
12736 main ()
12737 {
12738 return f != mkstemp;
12739 ;
12740 return 0;
12741 }
12742 _ACEOF
12743 rm -f conftest.$ac_objext conftest$ac_exeext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12745 (eval $ac_link) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag"
12753 || test ! -s conftest.err'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest$ac_exeext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_func_mkstemp=yes
12766 else
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 ac_cv_func_mkstemp=no
12771 fi
12772 rm -f conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12774 fi
12775 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12776 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12777 if test $ac_cv_func_mkstemp = yes; then
12778
12779 cat >>confdefs.h <<\_ACEOF
12780 #define HAVE_MKSTEMP 1
12781 _ACEOF
12782
12783 fi
12784
12785 echo "$as_me:$LINENO: checking for mkdtemp" >&5
12786 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12787 if test "${ac_cv_func_mkdtemp+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12798 #define mkdtemp innocuous_mkdtemp
12799
12800 /* System header to define __stub macros and hopefully few prototypes,
12801 which can conflict with char mkdtemp (); below.
12802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12803 <limits.h> exists even on freestanding compilers. */
12804
12805 #ifdef __STDC__
12806 # include <limits.h>
12807 #else
12808 # include <assert.h>
12809 #endif
12810
12811 #undef mkdtemp
12812
12813 /* Override any gcc2 internal prototype to avoid an error. */
12814 #ifdef __cplusplus
12815 extern "C"
12816 {
12817 #endif
12818 /* We use char because int might match the return type of a gcc2
12819 builtin and then its argument prototype would still apply. */
12820 char mkdtemp ();
12821 /* The GNU C library defines this for functions which it implements
12822 to always fail with ENOSYS. Some functions are actually named
12823 something starting with __ and the normal name is an alias. */
12824 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12825 choke me
12826 #else
12827 char (*f) () = mkdtemp;
12828 #endif
12829 #ifdef __cplusplus
12830 }
12831 #endif
12832
12833 int
12834 main ()
12835 {
12836 return f != mkdtemp;
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 rm -f conftest.$ac_objext conftest$ac_exeext
12842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12843 (eval $ac_link) 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag"
12851 || test ! -s conftest.err'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; }; then
12863 ac_cv_func_mkdtemp=yes
12864 else
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868 ac_cv_func_mkdtemp=no
12869 fi
12870 rm -f conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872 fi
12873 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12874 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12875 if test $ac_cv_func_mkdtemp = yes; then
12876
12877 cat >>confdefs.h <<\_ACEOF
12878 #define HAVE_MKDTEMP 1
12879 _ACEOF
12880
12881 fi
12882
12883
12884 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12885 # needs to be defined for it
12886 echo "$as_me:$LINENO: checking for fopen64" >&5
12887 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12888 if test "${bu_cv_have_fopen64+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 #include <stdio.h>
12898 int
12899 main ()
12900 {
12901 FILE *f = fopen64 ("/tmp/foo","r");
12902 ;
12903 return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908 (eval $ac_link) 2>conftest.er1
12909 ac_status=$?
12910 grep -v '^ *+' conftest.er1 >conftest.err
12911 rm -f conftest.er1
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag"
12916 || test ! -s conftest.err'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest$ac_exeext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 bu_cv_have_fopen64=yes
12929 else
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933 saved_CPPFLAGS=$CPPFLAGS
12934 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12935 cat >conftest.$ac_ext <<_ACEOF
12936 /* confdefs.h. */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12941 #include <stdio.h>
12942 int
12943 main ()
12944 {
12945 FILE *f = fopen64 ("/tmp/foo","r");
12946 ;
12947 return 0;
12948 }
12949 _ACEOF
12950 rm -f conftest.$ac_objext conftest$ac_exeext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952 (eval $ac_link) 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
12959 { ac_try='test -z "$ac_c_werror_flag"
12960 || test ! -s conftest.err'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest$ac_exeext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12973 else
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 bu_cv_have_fopen64=no
12978 fi
12979 rm -f conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
12981 CPPFLAGS=$saved_CPPFLAGS
12982 fi
12983 rm -f conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12985 fi
12986
12987 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12988 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12989 if test "$bu_cv_have_fopen64" != no; then
12990
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_FOPEN64 1
12993 _ACEOF
12994
12995 fi
12996 echo "$as_me:$LINENO: checking for stat64" >&5
12997 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12998 if test "${bu_cv_have_stat64+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #include <sys/stat.h>
13008 int
13009 main ()
13010 {
13011 struct stat64 st; stat64 ("/tmp/foo", &st);
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 bu_cv_have_stat64=yes
13039 else
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 saved_CPPFLAGS=$CPPFLAGS
13044 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 #include <sys/stat.h>
13052 int
13053 main ()
13054 {
13055 struct stat64 st; stat64 ("/tmp/foo", &st);
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13062 (eval $ac_link) 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -z "$ac_c_werror_flag"
13070 || test ! -s conftest.err'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; } &&
13076 { ac_try='test -s conftest$ac_exeext'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
13082 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
13083 else
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 bu_cv_have_stat64=no
13088 fi
13089 rm -f conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
13091 CPPFLAGS=$saved_CPPFLAGS
13092 fi
13093 rm -f conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095 fi
13096
13097 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
13098 echo "${ECHO_T}$bu_cv_have_stat64" >&6
13099 if test "$bu_cv_have_stat64" != no; then
13100
13101 cat >>confdefs.h <<\_ACEOF
13102 #define HAVE_STAT64 1
13103 _ACEOF
13104
13105 fi
13106 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
13107 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
13108
13109 cat >>confdefs.h <<\_ACEOF
13110 #define _LARGEFILE64_SOURCE 1
13111 _ACEOF
13112
13113 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13114 fi
13115
13116 # Some systems have frexp only in -lm, not in -lc.
13117 echo "$as_me:$LINENO: checking for library containing frexp" >&5
13118 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
13119 if test "${ac_cv_search_frexp+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122 ac_func_search_save_LIBS=$LIBS
13123 ac_cv_search_frexp=no
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130
13131 /* Override any gcc2 internal prototype to avoid an error. */
13132 #ifdef __cplusplus
13133 extern "C"
13134 #endif
13135 /* We use char because int might match the return type of a gcc2
13136 builtin and then its argument prototype would still apply. */
13137 char frexp ();
13138 int
13139 main ()
13140 {
13141 frexp ();
13142 ;
13143 return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag"
13156 || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_cv_search_frexp="none required"
13169 else
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 fi
13174 rm -f conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176 if test "$ac_cv_search_frexp" = no; then
13177 for ac_lib in m; do
13178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185
13186 /* Override any gcc2 internal prototype to avoid an error. */
13187 #ifdef __cplusplus
13188 extern "C"
13189 #endif
13190 /* We use char because int might match the return type of a gcc2
13191 builtin and then its argument prototype would still apply. */
13192 char frexp ();
13193 int
13194 main ()
13195 {
13196 frexp ();
13197 ;
13198 return 0;
13199 }
13200 _ACEOF
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag"
13211 || test ! -s conftest.err'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_search_frexp="-l$ac_lib"
13224 break
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 fi
13230 rm -f conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232 done
13233 fi
13234 LIBS=$ac_func_search_save_LIBS
13235 fi
13236 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
13237 echo "${ECHO_T}$ac_cv_search_frexp" >&6
13238 if test "$ac_cv_search_frexp" != no; then
13239 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
13240
13241 fi
13242
13243
13244 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
13245 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
13246 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249 cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h. */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255 #include <time.h>
13256 int
13257 main ()
13258 {
13259 time_t i;
13260 ;
13261 return 0;
13262 }
13263 _ACEOF
13264 rm -f conftest.$ac_objext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266 (eval $ac_compile) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag"
13274 || test ! -s conftest.err'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; } &&
13280 { ac_try='test -s conftest.$ac_objext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 bu_cv_decl_time_t_time_h=yes
13287 else
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 bu_cv_decl_time_t_time_h=no
13292 fi
13293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13294 fi
13295
13296 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
13297 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
13298 if test $bu_cv_decl_time_t_time_h = yes; then
13299
13300 cat >>confdefs.h <<\_ACEOF
13301 #define HAVE_TIME_T_IN_TIME_H 1
13302 _ACEOF
13303
13304 fi
13305
13306 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
13307 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
13308 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h. */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 #include <sys/types.h>
13318 int
13319 main ()
13320 {
13321 time_t i;
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 bu_cv_decl_time_t_types_h=yes
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 bu_cv_decl_time_t_types_h=no
13354 fi
13355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13356 fi
13357
13358 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
13359 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
13360 if test $bu_cv_decl_time_t_types_h = yes; then
13361
13362 cat >>confdefs.h <<\_ACEOF
13363 #define HAVE_TIME_T_IN_TYPES_H 1
13364 _ACEOF
13365
13366 fi
13367
13368 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13369 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13370 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373 cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h. */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13379 #include <unistd.h>
13380 int
13381 main ()
13382 {
13383 extern int getopt (int, char *const*, const char *);
13384 ;
13385 return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390 (eval $ac_compile) 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_c_werror_flag"
13398 || test ! -s conftest.err'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; } &&
13404 { ac_try='test -s conftest.$ac_objext'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 bu_cv_decl_getopt_unistd_h=yes
13411 else
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13414
13415 bu_cv_decl_getopt_unistd_h=no
13416 fi
13417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13418 fi
13419
13420 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
13421 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
13422 if test $bu_cv_decl_getopt_unistd_h = yes; then
13423
13424 cat >>confdefs.h <<\_ACEOF
13425 #define HAVE_DECL_GETOPT 1
13426 _ACEOF
13427
13428 fi
13429
13430 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13431 # by default.
13432 echo "$as_me:$LINENO: checking for utime.h" >&5
13433 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
13434 if test "${bu_cv_header_utime_h+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437 cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h. */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443 #include <sys/types.h>
13444 #ifdef HAVE_TIME_H
13445 #include <time.h>
13446 #endif
13447 #include <utime.h>
13448 int
13449 main ()
13450 {
13451 struct utimbuf s;
13452 ;
13453 return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag"
13466 || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 bu_cv_header_utime_h=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13482
13483 bu_cv_header_utime_h=no
13484 fi
13485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13486 fi
13487
13488 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
13489 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
13490 if test $bu_cv_header_utime_h = yes; then
13491
13492 cat >>confdefs.h <<\_ACEOF
13493 #define HAVE_GOOD_UTIME_H 1
13494 _ACEOF
13495
13496 fi
13497
13498 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
13499 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
13500 if test "${ac_cv_have_decl_fprintf+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 $ac_includes_default
13510 int
13511 main ()
13512 {
13513 #ifndef fprintf
13514 char *p = (char *) fprintf;
13515 #endif
13516
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13523 (eval $ac_compile) 2>conftest.er1
13524 ac_status=$?
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -z "$ac_c_werror_flag"
13531 || test ! -s conftest.err'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest.$ac_objext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_cv_have_decl_fprintf=yes
13544 else
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548 ac_cv_have_decl_fprintf=no
13549 fi
13550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13551 fi
13552 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
13553 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
13554 if test $ac_cv_have_decl_fprintf = yes; then
13555
13556 cat >>confdefs.h <<_ACEOF
13557 #define HAVE_DECL_FPRINTF 1
13558 _ACEOF
13559
13560
13561 else
13562 cat >>confdefs.h <<_ACEOF
13563 #define HAVE_DECL_FPRINTF 0
13564 _ACEOF
13565
13566
13567 fi
13568 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
13569 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
13570 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 $ac_includes_default
13580 int
13581 main ()
13582 {
13583 #ifndef stpcpy
13584 char *p = (char *) stpcpy;
13585 #endif
13586
13587 ;
13588 return 0;
13589 }
13590 _ACEOF
13591 rm -f conftest.$ac_objext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593 (eval $ac_compile) 2>conftest.er1
13594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } &&
13600 { ac_try='test -z "$ac_c_werror_flag"
13601 || test ! -s conftest.err'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; } &&
13607 { ac_try='test -s conftest.$ac_objext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_cv_have_decl_stpcpy=yes
13614 else
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 ac_cv_have_decl_stpcpy=no
13619 fi
13620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13621 fi
13622 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
13623 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
13624 if test $ac_cv_have_decl_stpcpy = yes; then
13625
13626 cat >>confdefs.h <<_ACEOF
13627 #define HAVE_DECL_STPCPY 1
13628 _ACEOF
13629
13630
13631 else
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_DECL_STPCPY 0
13634 _ACEOF
13635
13636
13637 fi
13638 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13639 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13640 if test "${ac_cv_have_decl_strstr+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h. */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 $ac_includes_default
13650 int
13651 main ()
13652 {
13653 #ifndef strstr
13654 char *p = (char *) strstr;
13655 #endif
13656
13657 ;
13658 return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -z "$ac_c_werror_flag"
13671 || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest.$ac_objext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_cv_have_decl_strstr=yes
13684 else
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688 ac_cv_have_decl_strstr=no
13689 fi
13690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13691 fi
13692 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13693 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13694 if test $ac_cv_have_decl_strstr = yes; then
13695
13696 cat >>confdefs.h <<_ACEOF
13697 #define HAVE_DECL_STRSTR 1
13698 _ACEOF
13699
13700
13701 else
13702 cat >>confdefs.h <<_ACEOF
13703 #define HAVE_DECL_STRSTR 0
13704 _ACEOF
13705
13706
13707 fi
13708 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13709 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13710 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 $ac_includes_default
13720 int
13721 main ()
13722 {
13723 #ifndef sbrk
13724 char *p = (char *) sbrk;
13725 #endif
13726
13727 ;
13728 return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_have_decl_sbrk=yes
13754 else
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758 ac_cv_have_decl_sbrk=no
13759 fi
13760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761 fi
13762 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13763 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13764 if test $ac_cv_have_decl_sbrk = yes; then
13765
13766 cat >>confdefs.h <<_ACEOF
13767 #define HAVE_DECL_SBRK 1
13768 _ACEOF
13769
13770
13771 else
13772 cat >>confdefs.h <<_ACEOF
13773 #define HAVE_DECL_SBRK 0
13774 _ACEOF
13775
13776
13777 fi
13778 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13779 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13780 if test "${ac_cv_have_decl_getenv+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 $ac_includes_default
13790 int
13791 main ()
13792 {
13793 #ifndef getenv
13794 char *p = (char *) getenv;
13795 #endif
13796
13797 ;
13798 return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_have_decl_getenv=yes
13824 else
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 ac_cv_have_decl_getenv=no
13829 fi
13830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13831 fi
13832 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13833 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13834 if test $ac_cv_have_decl_getenv = yes; then
13835
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_DECL_GETENV 1
13838 _ACEOF
13839
13840
13841 else
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_DECL_GETENV 0
13844 _ACEOF
13845
13846
13847 fi
13848 echo "$as_me:$LINENO: checking whether environ is declared" >&5
13849 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13850 if test "${ac_cv_have_decl_environ+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h. */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13859 $ac_includes_default
13860 int
13861 main ()
13862 {
13863 #ifndef environ
13864 char *p = (char *) environ;
13865 #endif
13866
13867 ;
13868 return 0;
13869 }
13870 _ACEOF
13871 rm -f conftest.$ac_objext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873 (eval $ac_compile) 2>conftest.er1
13874 ac_status=$?
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag"
13881 || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest.$ac_objext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 ac_cv_have_decl_environ=yes
13894 else
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 ac_cv_have_decl_environ=no
13899 fi
13900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13901 fi
13902 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13903 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13904 if test $ac_cv_have_decl_environ = yes; then
13905
13906 cat >>confdefs.h <<_ACEOF
13907 #define HAVE_DECL_ENVIRON 1
13908 _ACEOF
13909
13910
13911 else
13912 cat >>confdefs.h <<_ACEOF
13913 #define HAVE_DECL_ENVIRON 0
13914 _ACEOF
13915
13916
13917 fi
13918 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13919 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13920 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 int
13931 main ()
13932 {
13933 #ifndef getc_unlocked
13934 char *p = (char *) getc_unlocked;
13935 #endif
13936
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest.$ac_objext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_cv_have_decl_getc_unlocked=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_cv_have_decl_getc_unlocked=no
13969 fi
13970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13971 fi
13972 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13973 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13974 if test $ac_cv_have_decl_getc_unlocked = yes; then
13975
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_DECL_GETC_UNLOCKED 1
13978 _ACEOF
13979
13980
13981 else
13982 cat >>confdefs.h <<_ACEOF
13983 #define HAVE_DECL_GETC_UNLOCKED 0
13984 _ACEOF
13985
13986
13987 fi
13988 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13989 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13990 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 $ac_includes_default
14000 int
14001 main ()
14002 {
14003 #ifndef snprintf
14004 char *p = (char *) snprintf;
14005 #endif
14006
14007 ;
14008 return 0;
14009 }
14010 _ACEOF
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_cv_have_decl_snprintf=yes
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_cv_have_decl_snprintf=no
14039 fi
14040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041 fi
14042 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14043 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14044 if test $ac_cv_have_decl_snprintf = yes; then
14045
14046 cat >>confdefs.h <<_ACEOF
14047 #define HAVE_DECL_SNPRINTF 1
14048 _ACEOF
14049
14050
14051 else
14052 cat >>confdefs.h <<_ACEOF
14053 #define HAVE_DECL_SNPRINTF 0
14054 _ACEOF
14055
14056
14057 fi
14058 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14059 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14060 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h. */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 $ac_includes_default
14070 int
14071 main ()
14072 {
14073 #ifndef vsnprintf
14074 char *p = (char *) vsnprintf;
14075 #endif
14076
14077 ;
14078 return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083 (eval $ac_compile) 2>conftest.er1
14084 ac_status=$?
14085 grep -v '^ *+' conftest.er1 >conftest.err
14086 rm -f conftest.er1
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -z "$ac_c_werror_flag"
14091 || test ! -s conftest.err'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest.$ac_objext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_have_decl_vsnprintf=yes
14104 else
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 ac_cv_have_decl_vsnprintf=no
14109 fi
14110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14111 fi
14112 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14113 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14114 if test $ac_cv_have_decl_vsnprintf = yes; then
14115
14116 cat >>confdefs.h <<_ACEOF
14117 #define HAVE_DECL_VSNPRINTF 1
14118 _ACEOF
14119
14120
14121 else
14122 cat >>confdefs.h <<_ACEOF
14123 #define HAVE_DECL_VSNPRINTF 0
14124 _ACEOF
14125
14126
14127 fi
14128
14129
14130
14131 # Link in zlib if we can. This allows us to read compressed debug
14132 # sections. This is used only by readelf.c (objdump uses bfd for
14133 # reading compressed sections).
14134 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
14135 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
14136 if test "${ac_cv_search_zlibVersion+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139 ac_func_search_save_LIBS=$LIBS
14140 ac_cv_search_zlibVersion=no
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h. */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147
14148 /* Override any gcc2 internal prototype to avoid an error. */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 /* We use char because int might match the return type of a gcc2
14153 builtin and then its argument prototype would still apply. */
14154 char zlibVersion ();
14155 int
14156 main ()
14157 {
14158 zlibVersion ();
14159 ;
14160 return 0;
14161 }
14162 _ACEOF
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag"
14173 || test ! -s conftest.err'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest$ac_exeext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_search_zlibVersion="none required"
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190 fi
14191 rm -f conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193 if test "$ac_cv_search_zlibVersion" = no; then
14194 for ac_lib in z; do
14195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14196 cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h. */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202
14203 /* Override any gcc2 internal prototype to avoid an error. */
14204 #ifdef __cplusplus
14205 extern "C"
14206 #endif
14207 /* We use char because int might match the return type of a gcc2
14208 builtin and then its argument prototype would still apply. */
14209 char zlibVersion ();
14210 int
14211 main ()
14212 {
14213 zlibVersion ();
14214 ;
14215 return 0;
14216 }
14217 _ACEOF
14218 rm -f conftest.$ac_objext conftest$ac_exeext
14219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14220 (eval $ac_link) 2>conftest.er1
14221 ac_status=$?
14222 grep -v '^ *+' conftest.er1 >conftest.err
14223 rm -f conftest.er1
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -z "$ac_c_werror_flag"
14228 || test ! -s conftest.err'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_search_zlibVersion="-l$ac_lib"
14241 break
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 fi
14247 rm -f conftest.err conftest.$ac_objext \
14248 conftest$ac_exeext conftest.$ac_ext
14249 done
14250 fi
14251 LIBS=$ac_func_search_save_LIBS
14252 fi
14253 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
14254 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
14255 if test "$ac_cv_search_zlibVersion" != no; then
14256 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
14257
14258 for ac_header in zlib.h
14259 do
14260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262 echo "$as_me:$LINENO: checking for $ac_header" >&5
14263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 fi
14267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14269 else
14270 # Is the header compilable?
14271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14273 cat >conftest.$ac_ext <<_ACEOF
14274 /* confdefs.h. */
14275 _ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14279 $ac_includes_default
14280 #include <$ac_header>
14281 _ACEOF
14282 rm -f conftest.$ac_objext
14283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14284 (eval $ac_compile) 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -z "$ac_c_werror_flag"
14292 || test ! -s conftest.err'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try='test -s conftest.$ac_objext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 ac_header_compiler=yes
14305 else
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309 ac_header_compiler=no
14310 fi
14311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14313 echo "${ECHO_T}$ac_header_compiler" >&6
14314
14315 # Is the header present?
14316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h. */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 #include <$ac_header>
14325 _ACEOF
14326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } >/dev/null; then
14334 if test -s conftest.err; then
14335 ac_cpp_err=$ac_c_preproc_warn_flag
14336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14337 else
14338 ac_cpp_err=
14339 fi
14340 else
14341 ac_cpp_err=yes
14342 fi
14343 if test -z "$ac_cpp_err"; then
14344 ac_header_preproc=yes
14345 else
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14348
14349 ac_header_preproc=no
14350 fi
14351 rm -f conftest.err conftest.$ac_ext
14352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14353 echo "${ECHO_T}$ac_header_preproc" >&6
14354
14355 # So? What about this header?
14356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14357 yes:no: )
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14362 ac_header_preproc=yes
14363 ;;
14364 no:yes:* )
14365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14377 (
14378 cat <<\_ASBOX
14379 ## ------------------------------------------ ##
14380 ## Report this to the AC_PACKAGE_NAME lists. ##
14381 ## ------------------------------------------ ##
14382 _ASBOX
14383 ) |
14384 sed "s/^/$as_me: WARNING: /" >&2
14385 ;;
14386 esac
14387 echo "$as_me:$LINENO: checking for $ac_header" >&5
14388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392 eval "$as_ac_Header=\$ac_header_preproc"
14393 fi
14394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14396
14397 fi
14398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14401 _ACEOF
14402
14403 fi
14404
14405 done
14406
14407 fi
14408
14409
14410
14411 case "${host}" in
14412 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14413
14414 cat >>confdefs.h <<\_ACEOF
14415 #define USE_BINARY_FOPEN 1
14416 _ACEOF
14417 ;;
14418 esac
14419
14420 # target-specific stuff:
14421
14422 # Canonicalize the secondary target names.
14423 if test -n "$enable_targets"; then
14424 for targ in `echo $enable_targets | sed 's/,/ /g'`
14425 do
14426 result=`$ac_config_sub $targ 2>/dev/null`
14427 if test -n "$result"; then
14428 canon_targets="$canon_targets $result"
14429 else
14430 # Allow targets that config.sub doesn't recognize, like "all".
14431 canon_targets="$canon_targets $targ"
14432 fi
14433 done
14434 fi
14435
14436 if test "${ac_cv_header_iconv_h+set}" = set; then
14437 echo "$as_me:$LINENO: checking for iconv.h" >&5
14438 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14439 if test "${ac_cv_header_iconv_h+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 fi
14442 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14443 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14444 else
14445 # Is the header compilable?
14446 echo "$as_me:$LINENO: checking iconv.h usability" >&5
14447 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h. */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 $ac_includes_default
14455 #include <iconv.h>
14456 _ACEOF
14457 rm -f conftest.$ac_objext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14459 (eval $ac_compile) 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -z "$ac_c_werror_flag"
14467 || test ! -s conftest.err'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 ac_header_compiler=yes
14480 else
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484 ac_header_compiler=no
14485 fi
14486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14488 echo "${ECHO_T}$ac_header_compiler" >&6
14489
14490 # Is the header present?
14491 echo "$as_me:$LINENO: checking iconv.h presence" >&5
14492 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <iconv.h>
14500 _ACEOF
14501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } >/dev/null; then
14509 if test -s conftest.err; then
14510 ac_cpp_err=$ac_c_preproc_warn_flag
14511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14512 else
14513 ac_cpp_err=
14514 fi
14515 else
14516 ac_cpp_err=yes
14517 fi
14518 if test -z "$ac_cpp_err"; then
14519 ac_header_preproc=yes
14520 else
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14523
14524 ac_header_preproc=no
14525 fi
14526 rm -f conftest.err conftest.$ac_ext
14527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14528 echo "${ECHO_T}$ac_header_preproc" >&6
14529
14530 # So? What about this header?
14531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14532 yes:no: )
14533 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
14534 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
14536 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
14537 ac_header_preproc=yes
14538 ;;
14539 no:yes:* )
14540 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
14541 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
14543 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
14545 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
14547 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
14549 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
14551 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
14552 (
14553 cat <<\_ASBOX
14554 ## ------------------------------------------ ##
14555 ## Report this to the AC_PACKAGE_NAME lists. ##
14556 ## ------------------------------------------ ##
14557 _ASBOX
14558 ) |
14559 sed "s/^/$as_me: WARNING: /" >&2
14560 ;;
14561 esac
14562 echo "$as_me:$LINENO: checking for iconv.h" >&5
14563 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14564 if test "${ac_cv_header_iconv_h+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 ac_cv_header_iconv_h=$ac_header_preproc
14568 fi
14569 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14570 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14571
14572 fi
14573
14574
14575
14576 if test "X$prefix" = "XNONE"; then
14577 acl_final_prefix="$ac_default_prefix"
14578 else
14579 acl_final_prefix="$prefix"
14580 fi
14581 if test "X$exec_prefix" = "XNONE"; then
14582 acl_final_exec_prefix='${prefix}'
14583 else
14584 acl_final_exec_prefix="$exec_prefix"
14585 fi
14586 acl_save_prefix="$prefix"
14587 prefix="$acl_final_prefix"
14588 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14589 prefix="$acl_save_prefix"
14590
14591
14592 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14593 if test "${with_gnu_ld+set}" = set; then
14594 withval="$with_gnu_ld"
14595 test "$withval" = no || with_gnu_ld=yes
14596 else
14597 with_gnu_ld=no
14598 fi;
14599 # Prepare PATH_SEPARATOR.
14600 # The user is always right.
14601 if test "${PATH_SEPARATOR+set}" != set; then
14602 echo "#! /bin/sh" >conf$$.sh
14603 echo "exit 0" >>conf$$.sh
14604 chmod +x conf$$.sh
14605 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14606 PATH_SEPARATOR=';'
14607 else
14608 PATH_SEPARATOR=:
14609 fi
14610 rm -f conf$$.sh
14611 fi
14612 ac_prog=ld
14613 if test "$GCC" = yes; then
14614 # Check if gcc -print-prog-name=ld gives a path.
14615 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
14616 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
14617 case $host in
14618 *-*-mingw*)
14619 # gcc leaves a trailing carriage return which upsets mingw
14620 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14621 *)
14622 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14623 esac
14624 case $ac_prog in
14625 # Accept absolute paths.
14626 [\\/]* | [A-Za-z]:[\\/]*)
14627 re_direlt='/[^/][^/]*/\.\./'
14628 # Canonicalize the path of ld
14629 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14630 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14631 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14632 done
14633 test -z "$LD" && LD="$ac_prog"
14634 ;;
14635 "")
14636 # If it fails, then pretend we aren't using GCC.
14637 ac_prog=ld
14638 ;;
14639 *)
14640 # If it is relative, then search for the first ld in PATH.
14641 with_gnu_ld=unknown
14642 ;;
14643 esac
14644 elif test "$with_gnu_ld" = yes; then
14645 echo "$as_me:$LINENO: checking for GNU ld" >&5
14646 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14647 else
14648 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14649 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14650 fi
14651 if test "${acl_cv_path_LD+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 else
14654 if test -z "$LD"; then
14655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14656 for ac_dir in $PATH; do
14657 test -z "$ac_dir" && ac_dir=.
14658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14659 acl_cv_path_LD="$ac_dir/$ac_prog"
14660 # Check to see if the program is GNU ld. I'd rather use --version,
14661 # but apparently some GNU ld's only accept -v.
14662 # Break only if it was the GNU/non-GNU ld that we prefer.
14663 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14664 test "$with_gnu_ld" != no && break
14665 else
14666 test "$with_gnu_ld" != yes && break
14667 fi
14668 fi
14669 done
14670 IFS="$ac_save_ifs"
14671 else
14672 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14673 fi
14674 fi
14675
14676 LD="$acl_cv_path_LD"
14677 if test -n "$LD"; then
14678 echo "$as_me:$LINENO: result: $LD" >&5
14679 echo "${ECHO_T}$LD" >&6
14680 else
14681 echo "$as_me:$LINENO: result: no" >&5
14682 echo "${ECHO_T}no" >&6
14683 fi
14684 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14685 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14686 { (exit 1); exit 1; }; }
14687 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14688 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14689 if test "${acl_cv_prog_gnu_ld+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14693 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14694 acl_cv_prog_gnu_ld=yes
14695 else
14696 acl_cv_prog_gnu_ld=no
14697 fi
14698 fi
14699 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14700 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
14701 with_gnu_ld=$acl_cv_prog_gnu_ld
14702
14703
14704
14705 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14706 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
14707 if test "${acl_cv_rpath+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710
14711 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14712 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14713 . ./conftest.sh
14714 rm -f ./conftest.sh
14715 acl_cv_rpath=done
14716
14717 fi
14718 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14719 echo "${ECHO_T}$acl_cv_rpath" >&6
14720 wl="$acl_cv_wl"
14721 libext="$acl_cv_libext"
14722 shlibext="$acl_cv_shlibext"
14723 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14724 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14725 hardcode_direct="$acl_cv_hardcode_direct"
14726 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14727 # Check whether --enable-rpath or --disable-rpath was given.
14728 if test "${enable_rpath+set}" = set; then
14729 enableval="$enable_rpath"
14730 :
14731 else
14732 enable_rpath=yes
14733 fi;
14734
14735
14736
14737
14738
14739
14740
14741 use_additional=yes
14742
14743 acl_save_prefix="$prefix"
14744 prefix="$acl_final_prefix"
14745 acl_save_exec_prefix="$exec_prefix"
14746 exec_prefix="$acl_final_exec_prefix"
14747
14748 eval additional_includedir=\"$includedir\"
14749 eval additional_libdir=\"$libdir\"
14750
14751 exec_prefix="$acl_save_exec_prefix"
14752 prefix="$acl_save_prefix"
14753
14754
14755 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14756 if test "${with_libiconv_prefix+set}" = set; then
14757 withval="$with_libiconv_prefix"
14758
14759 if test "X$withval" = "Xno"; then
14760 use_additional=no
14761 else
14762 if test "X$withval" = "X"; then
14763
14764 acl_save_prefix="$prefix"
14765 prefix="$acl_final_prefix"
14766 acl_save_exec_prefix="$exec_prefix"
14767 exec_prefix="$acl_final_exec_prefix"
14768
14769 eval additional_includedir=\"$includedir\"
14770 eval additional_libdir=\"$libdir\"
14771
14772 exec_prefix="$acl_save_exec_prefix"
14773 prefix="$acl_save_prefix"
14774
14775 else
14776 additional_includedir="$withval/include"
14777 additional_libdir="$withval/lib"
14778 fi
14779 fi
14780
14781 fi;
14782 LIBICONV=
14783 LTLIBICONV=
14784 INCICONV=
14785 rpathdirs=
14786 ltrpathdirs=
14787 names_already_handled=
14788 names_next_round='iconv '
14789 while test -n "$names_next_round"; do
14790 names_this_round="$names_next_round"
14791 names_next_round=
14792 for name in $names_this_round; do
14793 already_handled=
14794 for n in $names_already_handled; do
14795 if test "$n" = "$name"; then
14796 already_handled=yes
14797 break
14798 fi
14799 done
14800 if test -z "$already_handled"; then
14801 names_already_handled="$names_already_handled $name"
14802 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14803 eval value=\"\$HAVE_LIB$uppername\"
14804 if test -n "$value"; then
14805 if test "$value" = yes; then
14806 eval value=\"\$LIB$uppername\"
14807 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14808 eval value=\"\$LTLIB$uppername\"
14809 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14810 else
14811 :
14812 fi
14813 else
14814 found_dir=
14815 found_la=
14816 found_so=
14817 found_a=
14818 if test $use_additional = yes; then
14819 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14820 found_dir="$additional_libdir"
14821 found_so="$additional_libdir/lib$name.$shlibext"
14822 if test -f "$additional_libdir/lib$name.la"; then
14823 found_la="$additional_libdir/lib$name.la"
14824 fi
14825 else
14826 if test -f "$additional_libdir/lib$name.$libext"; then
14827 found_dir="$additional_libdir"
14828 found_a="$additional_libdir/lib$name.$libext"
14829 if test -f "$additional_libdir/lib$name.la"; then
14830 found_la="$additional_libdir/lib$name.la"
14831 fi
14832 fi
14833 fi
14834 fi
14835 if test "X$found_dir" = "X"; then
14836 for x in $LDFLAGS $LTLIBICONV; do
14837
14838 acl_save_prefix="$prefix"
14839 prefix="$acl_final_prefix"
14840 acl_save_exec_prefix="$exec_prefix"
14841 exec_prefix="$acl_final_exec_prefix"
14842 eval x=\"$x\"
14843 exec_prefix="$acl_save_exec_prefix"
14844 prefix="$acl_save_prefix"
14845
14846 case "$x" in
14847 -L*)
14848 dir=`echo "X$x" | sed -e 's/^X-L//'`
14849 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14850 found_dir="$dir"
14851 found_so="$dir/lib$name.$shlibext"
14852 if test -f "$dir/lib$name.la"; then
14853 found_la="$dir/lib$name.la"
14854 fi
14855 else
14856 if test -f "$dir/lib$name.$libext"; then
14857 found_dir="$dir"
14858 found_a="$dir/lib$name.$libext"
14859 if test -f "$dir/lib$name.la"; then
14860 found_la="$dir/lib$name.la"
14861 fi
14862 fi
14863 fi
14864 ;;
14865 esac
14866 if test "X$found_dir" != "X"; then
14867 break
14868 fi
14869 done
14870 fi
14871 if test "X$found_dir" != "X"; then
14872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14873 if test "X$found_so" != "X"; then
14874 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14876 else
14877 haveit=
14878 for x in $ltrpathdirs; do
14879 if test "X$x" = "X$found_dir"; then
14880 haveit=yes
14881 break
14882 fi
14883 done
14884 if test -z "$haveit"; then
14885 ltrpathdirs="$ltrpathdirs $found_dir"
14886 fi
14887 if test "$hardcode_direct" = yes; then
14888 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14889 else
14890 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14891 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14892 haveit=
14893 for x in $rpathdirs; do
14894 if test "X$x" = "X$found_dir"; then
14895 haveit=yes
14896 break
14897 fi
14898 done
14899 if test -z "$haveit"; then
14900 rpathdirs="$rpathdirs $found_dir"
14901 fi
14902 else
14903 haveit=
14904 for x in $LDFLAGS $LIBICONV; do
14905
14906 acl_save_prefix="$prefix"
14907 prefix="$acl_final_prefix"
14908 acl_save_exec_prefix="$exec_prefix"
14909 exec_prefix="$acl_final_exec_prefix"
14910 eval x=\"$x\"
14911 exec_prefix="$acl_save_exec_prefix"
14912 prefix="$acl_save_prefix"
14913
14914 if test "X$x" = "X-L$found_dir"; then
14915 haveit=yes
14916 break
14917 fi
14918 done
14919 if test -z "$haveit"; then
14920 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14921 fi
14922 if test "$hardcode_minus_L" != no; then
14923 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14924 else
14925 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14926 fi
14927 fi
14928 fi
14929 fi
14930 else
14931 if test "X$found_a" != "X"; then
14932 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14933 else
14934 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14935 fi
14936 fi
14937 additional_includedir=
14938 case "$found_dir" in
14939 */lib | */lib/)
14940 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14941 additional_includedir="$basedir/include"
14942 ;;
14943 esac
14944 if test "X$additional_includedir" != "X"; then
14945 if test "X$additional_includedir" != "X/usr/include"; then
14946 haveit=
14947 if test "X$additional_includedir" = "X/usr/local/include"; then
14948 if test -n "$GCC"; then
14949 case $host_os in
14950 linux*) haveit=yes;;
14951 esac
14952 fi
14953 fi
14954 if test -z "$haveit"; then
14955 for x in $CPPFLAGS $INCICONV; do
14956
14957 acl_save_prefix="$prefix"
14958 prefix="$acl_final_prefix"
14959 acl_save_exec_prefix="$exec_prefix"
14960 exec_prefix="$acl_final_exec_prefix"
14961 eval x=\"$x\"
14962 exec_prefix="$acl_save_exec_prefix"
14963 prefix="$acl_save_prefix"
14964
14965 if test "X$x" = "X-I$additional_includedir"; then
14966 haveit=yes
14967 break
14968 fi
14969 done
14970 if test -z "$haveit"; then
14971 if test -d "$additional_includedir"; then
14972 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14973 fi
14974 fi
14975 fi
14976 fi
14977 fi
14978 if test -n "$found_la"; then
14979 save_libdir="$libdir"
14980 case "$found_la" in
14981 */* | *\\*) . "$found_la" ;;
14982 *) . "./$found_la" ;;
14983 esac
14984 libdir="$save_libdir"
14985 for dep in $dependency_libs; do
14986 case "$dep" in
14987 -L*)
14988 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14989 if test "X$additional_libdir" != "X/usr/lib"; then
14990 haveit=
14991 if test "X$additional_libdir" = "X/usr/local/lib"; then
14992 if test -n "$GCC"; then
14993 case $host_os in
14994 linux*) haveit=yes;;
14995 esac
14996 fi
14997 fi
14998 if test -z "$haveit"; then
14999 haveit=
15000 for x in $LDFLAGS $LIBICONV; do
15001
15002 acl_save_prefix="$prefix"
15003 prefix="$acl_final_prefix"
15004 acl_save_exec_prefix="$exec_prefix"
15005 exec_prefix="$acl_final_exec_prefix"
15006 eval x=\"$x\"
15007 exec_prefix="$acl_save_exec_prefix"
15008 prefix="$acl_save_prefix"
15009
15010 if test "X$x" = "X-L$additional_libdir"; then
15011 haveit=yes
15012 break
15013 fi
15014 done
15015 if test -z "$haveit"; then
15016 if test -d "$additional_libdir"; then
15017 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15018 fi
15019 fi
15020 haveit=
15021 for x in $LDFLAGS $LTLIBICONV; do
15022
15023 acl_save_prefix="$prefix"
15024 prefix="$acl_final_prefix"
15025 acl_save_exec_prefix="$exec_prefix"
15026 exec_prefix="$acl_final_exec_prefix"
15027 eval x=\"$x\"
15028 exec_prefix="$acl_save_exec_prefix"
15029 prefix="$acl_save_prefix"
15030
15031 if test "X$x" = "X-L$additional_libdir"; then
15032 haveit=yes
15033 break
15034 fi
15035 done
15036 if test -z "$haveit"; then
15037 if test -d "$additional_libdir"; then
15038 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15039 fi
15040 fi
15041 fi
15042 fi
15043 ;;
15044 -R*)
15045 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15046 if test "$enable_rpath" != no; then
15047 haveit=
15048 for x in $rpathdirs; do
15049 if test "X$x" = "X$dir"; then
15050 haveit=yes
15051 break
15052 fi
15053 done
15054 if test -z "$haveit"; then
15055 rpathdirs="$rpathdirs $dir"
15056 fi
15057 haveit=
15058 for x in $ltrpathdirs; do
15059 if test "X$x" = "X$dir"; then
15060 haveit=yes
15061 break
15062 fi
15063 done
15064 if test -z "$haveit"; then
15065 ltrpathdirs="$ltrpathdirs $dir"
15066 fi
15067 fi
15068 ;;
15069 -l*)
15070 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15071 ;;
15072 *.la)
15073 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15074 ;;
15075 *)
15076 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15077 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15078 ;;
15079 esac
15080 done
15081 fi
15082 else
15083 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15084 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15085 fi
15086 fi
15087 fi
15088 done
15089 done
15090 if test "X$rpathdirs" != "X"; then
15091 if test -n "$hardcode_libdir_separator"; then
15092 alldirs=
15093 for found_dir in $rpathdirs; do
15094 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15095 done
15096 acl_save_libdir="$libdir"
15097 libdir="$alldirs"
15098 eval flag=\"$hardcode_libdir_flag_spec\"
15099 libdir="$acl_save_libdir"
15100 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15101 else
15102 for found_dir in $rpathdirs; do
15103 acl_save_libdir="$libdir"
15104 libdir="$found_dir"
15105 eval flag=\"$hardcode_libdir_flag_spec\"
15106 libdir="$acl_save_libdir"
15107 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15108 done
15109 fi
15110 fi
15111 if test "X$ltrpathdirs" != "X"; then
15112 for found_dir in $ltrpathdirs; do
15113 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15114 done
15115 fi
15116
15117
15118
15119
15120
15121
15122
15123 am_save_CPPFLAGS="$CPPFLAGS"
15124
15125 for element in $INCICONV; do
15126 haveit=
15127 for x in $CPPFLAGS; do
15128
15129 acl_save_prefix="$prefix"
15130 prefix="$acl_final_prefix"
15131 acl_save_exec_prefix="$exec_prefix"
15132 exec_prefix="$acl_final_exec_prefix"
15133 eval x=\"$x\"
15134 exec_prefix="$acl_save_exec_prefix"
15135 prefix="$acl_save_prefix"
15136
15137 if test "X$x" = "X$element"; then
15138 haveit=yes
15139 break
15140 fi
15141 done
15142 if test -z "$haveit"; then
15143 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15144 fi
15145 done
15146
15147
15148 echo "$as_me:$LINENO: checking for iconv" >&5
15149 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15150 if test "${am_cv_func_iconv+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153
15154 am_cv_func_iconv="no, consider installing GNU libiconv"
15155 am_cv_lib_iconv=no
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 #include <stdlib.h>
15163 #include <iconv.h>
15164 int
15165 main ()
15166 {
15167 iconv_t cd = iconv_open("","");
15168 iconv(cd,NULL,NULL,NULL,NULL);
15169 iconv_close(cd);
15170 ;
15171 return 0;
15172 }
15173 _ACEOF
15174 rm -f conftest.$ac_objext conftest$ac_exeext
15175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15176 (eval $ac_link) 2>conftest.er1
15177 ac_status=$?
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
15183 { ac_try='test -z "$ac_c_werror_flag"
15184 || test ! -s conftest.err'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; } &&
15190 { ac_try='test -s conftest$ac_exeext'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 am_cv_func_iconv=yes
15197 else
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15200
15201 fi
15202 rm -f conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 if test "$am_cv_func_iconv" != yes; then
15205 am_save_LIBS="$LIBS"
15206 LIBS="$LIBS $LIBICONV"
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 #include <stdlib.h>
15214 #include <iconv.h>
15215 int
15216 main ()
15217 {
15218 iconv_t cd = iconv_open("","");
15219 iconv(cd,NULL,NULL,NULL,NULL);
15220 iconv_close(cd);
15221 ;
15222 return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227 (eval $ac_link) 2>conftest.er1
15228 ac_status=$?
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -z "$ac_c_werror_flag"
15235 || test ! -s conftest.err'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 am_cv_lib_iconv=yes
15248 am_cv_func_iconv=yes
15249 else
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15252
15253 fi
15254 rm -f conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15256 LIBS="$am_save_LIBS"
15257 fi
15258
15259 fi
15260 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15261 echo "${ECHO_T}$am_cv_func_iconv" >&6
15262 if test "$am_cv_func_iconv" = yes; then
15263
15264 cat >>confdefs.h <<\_ACEOF
15265 #define HAVE_ICONV 1
15266 _ACEOF
15267
15268 fi
15269 if test "$am_cv_lib_iconv" = yes; then
15270 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15271 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
15272 echo "$as_me:$LINENO: result: $LIBICONV" >&5
15273 echo "${ECHO_T}$LIBICONV" >&6
15274 else
15275 CPPFLAGS="$am_save_CPPFLAGS"
15276 LIBICONV=
15277 LTLIBICONV=
15278 fi
15279
15280
15281
15282 if test "$am_cv_func_iconv" = yes; then
15283 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15284 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15285 if test "${am_cv_proto_iconv+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295
15296 #include <stdlib.h>
15297 #include <iconv.h>
15298 extern
15299 #ifdef __cplusplus
15300 "C"
15301 #endif
15302 #if defined(__STDC__) || defined(__cplusplus)
15303 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15304 #else
15305 size_t iconv();
15306 #endif
15307
15308 int
15309 main ()
15310 {
15311
15312 ;
15313 return 0;
15314 }
15315 _ACEOF
15316 rm -f conftest.$ac_objext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318 (eval $ac_compile) 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_c_werror_flag"
15326 || test ! -s conftest.err'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 am_cv_proto_iconv_arg1=""
15339 else
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343 am_cv_proto_iconv_arg1="const"
15344 fi
15345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15346 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15347 fi
15348
15349 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15350 echo "$as_me:$LINENO: result: ${ac_t:-
15351 }$am_cv_proto_iconv" >&5
15352 echo "${ECHO_T}${ac_t:-
15353 }$am_cv_proto_iconv" >&6
15354
15355 cat >>confdefs.h <<_ACEOF
15356 #define ICONV_CONST $am_cv_proto_iconv_arg1
15357 _ACEOF
15358
15359 fi
15360
15361
15362 all_targets=false
15363 BUILD_NLMCONV=
15364 NLMCONV_DEFS=
15365 BUILD_SRCONV=
15366 BUILD_DLLTOOL=
15367 DLLTOOL_DEFS=
15368 DLLTOOL_DEFAULT=
15369 BUILD_WINDRES=
15370 BUILD_WINDMC=
15371 BUILD_DLLWRAP=
15372 BUILD_MISC=
15373 BUILD_INSTALL_MISC=
15374 OBJDUMP_DEFS=
15375
15376 for targ in $target $canon_targets
15377 do
15378 if test "x$targ" = "xall"; then
15379 all_targets=true
15380 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15381 BUILD_SRCONV='$(SRCONV_PROG)'
15382 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
15383 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15384 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15385 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15386 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15387 if test -z "$DLLTOOL_DEFAULT"; then
15388 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15389 fi
15390 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15391 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15392 else
15393 case $targ in
15394 i[3-7]86*-*-netware*)
15395 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15396 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
15397 ;;
15398 alpha*-*-netware*)
15399 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15400 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
15401 ;;
15402 powerpc*-*-netware*)
15403 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15404 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
15405 ;;
15406 sparc*-*-netware*)
15407 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15408 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
15409 ;;
15410 esac
15411 case $targ in
15412 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
15413 esac
15414 case $targ in
15415 arm-epoc-pe*)
15416 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15417 if test -z "$DLLTOOL_DEFAULT"; then
15418 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
15419 fi
15420 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
15421 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15422 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15423 ;;
15424 arm-wince-pe* | arm-*-wince)
15425 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15426 if test -z "$DLLTOOL_DEFAULT"; then
15427 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
15428 fi
15429 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
15430 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15431 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15432 ;;
15433 arm-*-pe*)
15434 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15435 if test -z "$DLLTOOL_DEFAULT"; then
15436 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15437 fi
15438 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15439 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15440 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15441 ;;
15442 thumb-*-pe*)
15443 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15444 if test -z "$DLLTOOL_DEFAULT"; then
15445 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15446 fi
15447 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15448 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15449 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15450 ;;
15451 x86_64-*-mingw*)
15452 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15453 if test -z "$DLLTOOL_DEFAULT"; then
15454 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
15455 fi
15456 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15457 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15458 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15459 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15460 ;;
15461 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
15462 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15463 if test -z "$DLLTOOL_DEFAULT"; then
15464 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15465 fi
15466 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15467 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15468 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15469 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15470 ;;
15471 i[3-7]86-*-interix)
15472 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
15473 if test -z "$DLLTOOL_DEFAULT"; then
15474 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15475 fi
15476 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15477 ;;
15478 powerpc*-aix5.[01])
15479 ;;
15480 powerpc*-aix5.*)
15481 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15482 ;;
15483 powerpc*-*-pe* | powerpc*-*-cygwin*)
15484 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15485 if test -z "$DLLTOOL_DEFAULT"; then
15486 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15487 fi
15488 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15489 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15490 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15491 ;;
15492 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
15493 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
15494 ;;
15495 sh*-*-pe)
15496 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15497 if test -z "$DLLTOOL_DEFAULT"; then
15498 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15499 fi
15500 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15501 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15502 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15503 ;;
15504 spu-*-*)
15505 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15506 ;;
15507 mips*-*-pe)
15508 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15509 if test -z "$DLLTOOL_DEFAULT"; then
15510 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15511 fi
15512 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15513 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15514 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15515 ;;
15516 mcore-*-pe)
15517 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15518 if test -z "$DLLTOOL_DEFAULT"; then
15519 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15520 fi
15521 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15522 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15523 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15524 ;;
15525 mcore-*-elf)
15526 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15527 if test -z "$DLLTOOL_DEFAULT"; then
15528 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15529 fi
15530 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
15531 ;;
15532 mep-*)
15533 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15534 ;;
15535 esac
15536 fi
15537 done
15538
15539 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15540
15541 if test "${with_windres+set}" = set; then
15542 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15543 fi
15544
15545 if test "${with_windmc+set}" = set; then
15546 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15547 fi
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562 cat >>confdefs.h <<_ACEOF
15563 #define TARGET "${target}"
15564 _ACEOF
15565
15566
15567 targ=$target
15568 . $srcdir/../bfd/config.bfd
15569 if test "x$targ_underscore" = "xyes"; then
15570 UNDERSCORE=1
15571 else
15572 UNDERSCORE=0
15573 fi
15574
15575 cat >>confdefs.h <<_ACEOF
15576 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15577 _ACEOF
15578
15579
15580 # Emulation
15581 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
15582 do
15583 # Canonicalize the secondary target names.
15584 result=`$ac_config_sub $targ_alias 2>/dev/null`
15585 if test -n "$result"; then
15586 targ=$result
15587 else
15588 targ=$targ_alias
15589 fi
15590
15591 . ${srcdir}/configure.tgt
15592
15593 EMULATION=$targ_emul
15594 EMULATION_VECTOR=$targ_emul_vector
15595 done
15596
15597
15598
15599
15600 # Required for html and install-html
15601
15602
15603
15604
15605 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15606
15607 cat >confcache <<\_ACEOF
15608 # This file is a shell script that caches the results of configure
15609 # tests run on this system so they can be shared between configure
15610 # scripts and configure runs, see configure's option --config-cache.
15611 # It is not useful on other systems. If it contains results you don't
15612 # want to keep, you may remove or edit it.
15613 #
15614 # config.status only pays attention to the cache file if you give it
15615 # the --recheck option to rerun configure.
15616 #
15617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15619 # following values.
15620
15621 _ACEOF
15622
15623 # The following way of writing the cache mishandles newlines in values,
15624 # but we know of no workaround that is simple, portable, and efficient.
15625 # So, don't put newlines in cache variables' values.
15626 # Ultrix sh set writes to stderr and can't be redirected directly,
15627 # and sets the high bit in the cache file unless we assign to the vars.
15628 {
15629 (set) 2>&1 |
15630 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15631 *ac_space=\ *)
15632 # `set' does not quote correctly, so add quotes (double-quote
15633 # substitution turns \\\\ into \\, and sed turns \\ into \).
15634 sed -n \
15635 "s/'/'\\\\''/g;
15636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15637 ;;
15638 *)
15639 # `set' quotes correctly as required by POSIX, so do not add quotes.
15640 sed -n \
15641 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15642 ;;
15643 esac;
15644 } |
15645 sed '
15646 t clear
15647 : clear
15648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15649 t end
15650 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15651 : end' >>confcache
15652 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15653 if test -w $cache_file; then
15654 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15655 cat confcache >$cache_file
15656 else
15657 echo "not updating unwritable cache $cache_file"
15658 fi
15659 fi
15660 rm -f confcache
15661
15662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15663 # Let make expand exec_prefix.
15664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15665
15666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15668 # trailing colons and then remove the whole line if VPATH becomes empty
15669 # (actually we leave an empty line to preserve line numbers).
15670 if test "x$srcdir" = x.; then
15671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15672 s/:*\$(srcdir):*/:/;
15673 s/:*\${srcdir}:*/:/;
15674 s/:*@srcdir@:*/:/;
15675 s/^\([^=]*=[ ]*\):*/\1/;
15676 s/:*$//;
15677 s/^[^=]*=[ ]*$//;
15678 }'
15679 fi
15680
15681 DEFS=-DHAVE_CONFIG_H
15682
15683 ac_libobjs=
15684 ac_ltlibobjs=
15685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15686 # 1. Remove the extension, and $U if already installed.
15687 ac_i=`echo "$ac_i" |
15688 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15689 # 2. Add them.
15690 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15691 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15692 done
15693 LIBOBJS=$ac_libobjs
15694
15695 LTLIBOBJS=$ac_ltlibobjs
15696
15697
15698 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15699 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15700 Usually this means the macro was only invoked conditionally." >&5
15701 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15702 Usually this means the macro was only invoked conditionally." >&2;}
15703 { (exit 1); exit 1; }; }
15704 fi
15705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15706 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15707 Usually this means the macro was only invoked conditionally." >&5
15708 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15709 Usually this means the macro was only invoked conditionally." >&2;}
15710 { (exit 1); exit 1; }; }
15711 fi
15712 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15713 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15714 Usually this means the macro was only invoked conditionally." >&5
15715 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15716 Usually this means the macro was only invoked conditionally." >&2;}
15717 { (exit 1); exit 1; }; }
15718 fi
15719 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15720 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15721 Usually this means the macro was only invoked conditionally." >&5
15722 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15723 Usually this means the macro was only invoked conditionally." >&2;}
15724 { (exit 1); exit 1; }; }
15725 fi
15726
15727 : ${CONFIG_STATUS=./config.status}
15728 ac_clean_files_save=$ac_clean_files
15729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15730 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15731 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15732 cat >$CONFIG_STATUS <<_ACEOF
15733 #! $SHELL
15734 # Generated by $as_me.
15735 # Run this file to recreate the current configuration.
15736 # Compiler output produced by configure, useful for debugging
15737 # configure, is in config.log if it exists.
15738
15739 debug=false
15740 ac_cs_recheck=false
15741 ac_cs_silent=false
15742 SHELL=\${CONFIG_SHELL-$SHELL}
15743 _ACEOF
15744
15745 cat >>$CONFIG_STATUS <<\_ACEOF
15746 ## --------------------- ##
15747 ## M4sh Initialization. ##
15748 ## --------------------- ##
15749
15750 # Be Bourne compatible
15751 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15752 emulate sh
15753 NULLCMD=:
15754 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15755 # is contrary to our usage. Disable this feature.
15756 alias -g '${1+"$@"}'='"$@"'
15757 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15758 set -o posix
15759 fi
15760 DUALCASE=1; export DUALCASE # for MKS sh
15761
15762 # Support unset when possible.
15763 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15764 as_unset=unset
15765 else
15766 as_unset=false
15767 fi
15768
15769
15770 # Work around bugs in pre-3.0 UWIN ksh.
15771 $as_unset ENV MAIL MAILPATH
15772 PS1='$ '
15773 PS2='> '
15774 PS4='+ '
15775
15776 # NLS nuisances.
15777 for as_var in \
15778 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15779 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15780 LC_TELEPHONE LC_TIME
15781 do
15782 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15783 eval $as_var=C; export $as_var
15784 else
15785 $as_unset $as_var
15786 fi
15787 done
15788
15789 # Required to use basename.
15790 if expr a : '\(a\)' >/dev/null 2>&1; then
15791 as_expr=expr
15792 else
15793 as_expr=false
15794 fi
15795
15796 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15797 as_basename=basename
15798 else
15799 as_basename=false
15800 fi
15801
15802
15803 # Name of the executable.
15804 as_me=`$as_basename "$0" ||
15805 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15806 X"$0" : 'X\(//\)$' \| \
15807 X"$0" : 'X\(/\)$' \| \
15808 . : '\(.\)' 2>/dev/null ||
15809 echo X/"$0" |
15810 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15811 /^X\/\(\/\/\)$/{ s//\1/; q; }
15812 /^X\/\(\/\).*/{ s//\1/; q; }
15813 s/.*/./; q'`
15814
15815
15816 # PATH needs CR, and LINENO needs CR and PATH.
15817 # Avoid depending upon Character Ranges.
15818 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15819 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15820 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15821 as_cr_digits='0123456789'
15822 as_cr_alnum=$as_cr_Letters$as_cr_digits
15823
15824 # The user is always right.
15825 if test "${PATH_SEPARATOR+set}" != set; then
15826 echo "#! /bin/sh" >conf$$.sh
15827 echo "exit 0" >>conf$$.sh
15828 chmod +x conf$$.sh
15829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15830 PATH_SEPARATOR=';'
15831 else
15832 PATH_SEPARATOR=:
15833 fi
15834 rm -f conf$$.sh
15835 fi
15836
15837
15838 as_lineno_1=$LINENO
15839 as_lineno_2=$LINENO
15840 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15841 test "x$as_lineno_1" != "x$as_lineno_2" &&
15842 test "x$as_lineno_3" = "x$as_lineno_2" || {
15843 # Find who we are. Look in the path if we contain no path at all
15844 # relative or not.
15845 case $0 in
15846 *[\\/]* ) as_myself=$0 ;;
15847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848 for as_dir in $PATH
15849 do
15850 IFS=$as_save_IFS
15851 test -z "$as_dir" && as_dir=.
15852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15853 done
15854
15855 ;;
15856 esac
15857 # We did not find ourselves, most probably we were run as `sh COMMAND'
15858 # in which case we are not to be found in the path.
15859 if test "x$as_myself" = x; then
15860 as_myself=$0
15861 fi
15862 if test ! -f "$as_myself"; then
15863 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15864 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15865 { (exit 1); exit 1; }; }
15866 fi
15867 case $CONFIG_SHELL in
15868 '')
15869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15870 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15871 do
15872 IFS=$as_save_IFS
15873 test -z "$as_dir" && as_dir=.
15874 for as_base in sh bash ksh sh5; do
15875 case $as_dir in
15876 /*)
15877 if ("$as_dir/$as_base" -c '
15878 as_lineno_1=$LINENO
15879 as_lineno_2=$LINENO
15880 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15881 test "x$as_lineno_1" != "x$as_lineno_2" &&
15882 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15883 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15884 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15885 CONFIG_SHELL=$as_dir/$as_base
15886 export CONFIG_SHELL
15887 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15888 fi;;
15889 esac
15890 done
15891 done
15892 ;;
15893 esac
15894
15895 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15896 # uniformly replaced by the line number. The first 'sed' inserts a
15897 # line-number line before each line; the second 'sed' does the real
15898 # work. The second script uses 'N' to pair each line-number line
15899 # with the numbered line, and appends trailing '-' during
15900 # substitution so that $LINENO is not a special case at line end.
15901 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15902 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15903 sed '=' <$as_myself |
15904 sed '
15905 N
15906 s,$,-,
15907 : loop
15908 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15909 t loop
15910 s,-$,,
15911 s,^['$as_cr_digits']*\n,,
15912 ' >$as_me.lineno &&
15913 chmod +x $as_me.lineno ||
15914 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15915 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15916 { (exit 1); exit 1; }; }
15917
15918 # Don't try to exec as it changes $[0], causing all sort of problems
15919 # (the dirname of $[0] is not the place where we might find the
15920 # original and so on. Autoconf is especially sensible to this).
15921 . ./$as_me.lineno
15922 # Exit status is that of the last command.
15923 exit
15924 }
15925
15926
15927 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15928 *c*,-n*) ECHO_N= ECHO_C='
15929 ' ECHO_T=' ' ;;
15930 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15931 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15932 esac
15933
15934 if expr a : '\(a\)' >/dev/null 2>&1; then
15935 as_expr=expr
15936 else
15937 as_expr=false
15938 fi
15939
15940 rm -f conf$$ conf$$.exe conf$$.file
15941 echo >conf$$.file
15942 if ln -s conf$$.file conf$$ 2>/dev/null; then
15943 # We could just check for DJGPP; but this test a) works b) is more generic
15944 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15945 if test -f conf$$.exe; then
15946 # Don't use ln at all; we don't have any links
15947 as_ln_s='cp -p'
15948 else
15949 as_ln_s='ln -s'
15950 fi
15951 elif ln conf$$.file conf$$ 2>/dev/null; then
15952 as_ln_s=ln
15953 else
15954 as_ln_s='cp -p'
15955 fi
15956 rm -f conf$$ conf$$.exe conf$$.file
15957
15958 if mkdir -p . 2>/dev/null; then
15959 as_mkdir_p=:
15960 else
15961 test -d ./-p && rmdir ./-p
15962 as_mkdir_p=false
15963 fi
15964
15965 as_executable_p="test -f"
15966
15967 # Sed expression to map a string onto a valid CPP name.
15968 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15969
15970 # Sed expression to map a string onto a valid variable name.
15971 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15972
15973
15974 # IFS
15975 # We need space, tab and new line, in precisely that order.
15976 as_nl='
15977 '
15978 IFS=" $as_nl"
15979
15980 # CDPATH.
15981 $as_unset CDPATH
15982
15983 exec 6>&1
15984
15985 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15986 # report actual input values of CONFIG_FILES etc. instead of their
15987 # values after options handling. Logging --version etc. is OK.
15988 exec 5>>config.log
15989 {
15990 echo
15991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15992 ## Running $as_me. ##
15993 _ASBOX
15994 } >&5
15995 cat >&5 <<_CSEOF
15996
15997 This file was extended by $as_me, which was
15998 generated by GNU Autoconf 2.59. Invocation command line was
15999
16000 CONFIG_FILES = $CONFIG_FILES
16001 CONFIG_HEADERS = $CONFIG_HEADERS
16002 CONFIG_LINKS = $CONFIG_LINKS
16003 CONFIG_COMMANDS = $CONFIG_COMMANDS
16004 $ $0 $@
16005
16006 _CSEOF
16007 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16008 echo >&5
16009 _ACEOF
16010
16011 # Files that config.status was made for.
16012 if test -n "$ac_config_files"; then
16013 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16014 fi
16015
16016 if test -n "$ac_config_headers"; then
16017 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16018 fi
16019
16020 if test -n "$ac_config_links"; then
16021 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16022 fi
16023
16024 if test -n "$ac_config_commands"; then
16025 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16026 fi
16027
16028 cat >>$CONFIG_STATUS <<\_ACEOF
16029
16030 ac_cs_usage="\
16031 \`$as_me' instantiates files from templates according to the
16032 current configuration.
16033
16034 Usage: $0 [OPTIONS] [FILE]...
16035
16036 -h, --help print this help, then exit
16037 -V, --version print version number, then exit
16038 -q, --quiet do not print progress messages
16039 -d, --debug don't remove temporary files
16040 --recheck update $as_me by reconfiguring in the same conditions
16041 --file=FILE[:TEMPLATE]
16042 instantiate the configuration file FILE
16043 --header=FILE[:TEMPLATE]
16044 instantiate the configuration header FILE
16045
16046 Configuration files:
16047 $config_files
16048
16049 Configuration headers:
16050 $config_headers
16051
16052 Configuration commands:
16053 $config_commands
16054
16055 Report bugs to <bug-autoconf@gnu.org>."
16056 _ACEOF
16057
16058 cat >>$CONFIG_STATUS <<_ACEOF
16059 ac_cs_version="\\
16060 config.status
16061 configured by $0, generated by GNU Autoconf 2.59,
16062 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16063
16064 Copyright (C) 2003 Free Software Foundation, Inc.
16065 This config.status script is free software; the Free Software Foundation
16066 gives unlimited permission to copy, distribute and modify it."
16067 srcdir=$srcdir
16068 INSTALL="$INSTALL"
16069 _ACEOF
16070
16071 cat >>$CONFIG_STATUS <<\_ACEOF
16072 # If no file are specified by the user, then we need to provide default
16073 # value. By we need to know if files were specified by the user.
16074 ac_need_defaults=:
16075 while test $# != 0
16076 do
16077 case $1 in
16078 --*=*)
16079 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16080 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16081 ac_shift=:
16082 ;;
16083 -*)
16084 ac_option=$1
16085 ac_optarg=$2
16086 ac_shift=shift
16087 ;;
16088 *) # This is not an option, so the user has probably given explicit
16089 # arguments.
16090 ac_option=$1
16091 ac_need_defaults=false;;
16092 esac
16093
16094 case $ac_option in
16095 # Handling of the options.
16096 _ACEOF
16097 cat >>$CONFIG_STATUS <<\_ACEOF
16098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16099 ac_cs_recheck=: ;;
16100 --version | --vers* | -V )
16101 echo "$ac_cs_version"; exit 0 ;;
16102 --he | --h)
16103 # Conflict between --help and --header
16104 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16105 Try \`$0 --help' for more information." >&5
16106 echo "$as_me: error: ambiguous option: $1
16107 Try \`$0 --help' for more information." >&2;}
16108 { (exit 1); exit 1; }; };;
16109 --help | --hel | -h )
16110 echo "$ac_cs_usage"; exit 0 ;;
16111 --debug | --d* | -d )
16112 debug=: ;;
16113 --file | --fil | --fi | --f )
16114 $ac_shift
16115 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16116 ac_need_defaults=false;;
16117 --header | --heade | --head | --hea )
16118 $ac_shift
16119 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16120 ac_need_defaults=false;;
16121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16122 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16123 ac_cs_silent=: ;;
16124
16125 # This is an error.
16126 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16127 Try \`$0 --help' for more information." >&5
16128 echo "$as_me: error: unrecognized option: $1
16129 Try \`$0 --help' for more information." >&2;}
16130 { (exit 1); exit 1; }; } ;;
16131
16132 *) ac_config_targets="$ac_config_targets $1" ;;
16133
16134 esac
16135 shift
16136 done
16137
16138 ac_configure_extra_args=
16139
16140 if $ac_cs_silent; then
16141 exec 6>/dev/null
16142 ac_configure_extra_args="$ac_configure_extra_args --silent"
16143 fi
16144
16145 _ACEOF
16146 cat >>$CONFIG_STATUS <<_ACEOF
16147 if \$ac_cs_recheck; then
16148 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16149 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16150 fi
16151
16152 _ACEOF
16153
16154 cat >>$CONFIG_STATUS <<_ACEOF
16155 #
16156 # INIT-COMMANDS section.
16157 #
16158
16159 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16160
16161
16162 # The HP-UX ksh and POSIX shell print the target directory to stdout
16163 # if CDPATH is set.
16164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16165
16166 sed_quote_subst='$sed_quote_subst'
16167 double_quote_subst='$double_quote_subst'
16168 delay_variable_subst='$delay_variable_subst'
16169 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16170 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16171 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16172 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16173 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16174 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16175 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16176 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16177 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16178 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16179 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16180 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16181 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16182 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16183 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16184 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16185 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16186 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16187 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16188 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16189 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16190 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16191 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16192 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16193 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16194 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16195 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16196 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16197 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16198 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16199 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16200 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16201 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16202 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16203 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16204 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16205 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16206 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16207 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16208 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16209 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16210 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16211 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16212 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"`'
16213 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16214 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16215 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16216 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16217 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16218 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16219 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16220 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16221 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16222 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16223 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16224 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16225 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16226 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16227 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16228 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16229 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16230 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16231 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16232 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16233 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16234 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16235 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16236 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16237 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16238 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16239 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16240 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16241 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16242 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16243 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16244 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16245 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16246 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16247 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16248 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16249 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16250 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16251 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16252 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16253 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16254 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16255 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16256 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16257 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16258 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16259 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16260 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16261 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16262 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16263 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16264 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16265 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16266 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16267 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16268 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16269 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16270 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16271 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16272 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16273 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16274 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16275 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16276 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16277 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16278 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16279 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16280
16281 LTCC='$LTCC'
16282 LTCFLAGS='$LTCFLAGS'
16283 compiler='$compiler_DEFAULT'
16284
16285 # Quote evaled strings.
16286 for var in SED \
16287 GREP \
16288 EGREP \
16289 FGREP \
16290 LD \
16291 NM \
16292 LN_S \
16293 lt_SP2NL \
16294 lt_NL2SP \
16295 reload_flag \
16296 deplibs_check_method \
16297 file_magic_cmd \
16298 AR \
16299 AR_FLAGS \
16300 STRIP \
16301 RANLIB \
16302 CC \
16303 CFLAGS \
16304 compiler \
16305 lt_cv_sys_global_symbol_pipe \
16306 lt_cv_sys_global_symbol_to_cdecl \
16307 lt_cv_sys_global_symbol_to_c_name_address \
16308 SHELL \
16309 ECHO \
16310 lt_prog_compiler_no_builtin_flag \
16311 lt_prog_compiler_wl \
16312 lt_prog_compiler_pic \
16313 lt_prog_compiler_static \
16314 lt_cv_prog_compiler_c_o \
16315 need_locks \
16316 shrext_cmds \
16317 export_dynamic_flag_spec \
16318 whole_archive_flag_spec \
16319 compiler_needs_object \
16320 with_gnu_ld \
16321 allow_undefined_flag \
16322 no_undefined_flag \
16323 hardcode_libdir_flag_spec \
16324 hardcode_libdir_flag_spec_ld \
16325 hardcode_libdir_separator \
16326 fix_srcfile_path \
16327 exclude_expsyms \
16328 include_expsyms \
16329 file_list_spec \
16330 variables_saved_for_relink \
16331 libname_spec \
16332 library_names_spec \
16333 soname_spec \
16334 finish_eval \
16335 old_striplib \
16336 striplib; do
16337 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16338 *[\\\\\\\`\\"\\\$]*)
16339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16340 ;;
16341 *)
16342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16343 ;;
16344 esac
16345 done
16346
16347 # Double-quote double-evaled strings.
16348 for var in reload_cmds \
16349 old_postinstall_cmds \
16350 old_postuninstall_cmds \
16351 old_archive_cmds \
16352 extract_expsyms_cmds \
16353 old_archive_from_new_cmds \
16354 old_archive_from_expsyms_cmds \
16355 archive_cmds \
16356 archive_expsym_cmds \
16357 module_cmds \
16358 module_expsym_cmds \
16359 export_symbols_cmds \
16360 prelink_cmds \
16361 postinstall_cmds \
16362 postuninstall_cmds \
16363 finish_cmds \
16364 sys_lib_search_path_spec \
16365 sys_lib_dlsearch_path_spec; do
16366 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16367 *[\\\\\\\`\\"\\\$]*)
16368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16369 ;;
16370 *)
16371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16372 ;;
16373 esac
16374 done
16375
16376 # Fix-up fallback echo if it was mangled by the above quoting rules.
16377 case \$lt_ECHO in
16378 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16379 ;;
16380 esac
16381
16382 ac_aux_dir='$ac_aux_dir'
16383 xsi_shell='$xsi_shell'
16384 lt_shell_append='$lt_shell_append'
16385
16386 # See if we are running on zsh, and set the options which allow our
16387 # commands through without removal of \ escapes INIT.
16388 if test -n "\${ZSH_VERSION+set}" ; then
16389 setopt NO_GLOB_SUBST
16390 fi
16391
16392
16393 PACKAGE='$PACKAGE'
16394 VERSION='$VERSION'
16395 TIMESTAMP='$TIMESTAMP'
16396 RM='$RM'
16397 ofile='$ofile'
16398
16399
16400
16401 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16402 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16403 # from automake.
16404 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16405 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16406 LINGUAS="${LINGUAS-%UNSET%}"
16407
16408
16409 _ACEOF
16410
16411
16412
16413 cat >>$CONFIG_STATUS <<\_ACEOF
16414 for ac_config_target in $ac_config_targets
16415 do
16416 case "$ac_config_target" in
16417 # Handling of arguments.
16418 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16419 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16420 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16421 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16422 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16423 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16424 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16425 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16426 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16427 { (exit 1); exit 1; }; };;
16428 esac
16429 done
16430
16431 # If the user did not use the arguments to specify the items to instantiate,
16432 # then the envvar interface is used. Set only those that are not.
16433 # We use the long form for the default assignment because of an extremely
16434 # bizarre bug on SunOS 4.1.3.
16435 if $ac_need_defaults; then
16436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16439 fi
16440
16441 # Have a temporary directory for convenience. Make it in the build tree
16442 # simply because there is no reason to put it here, and in addition,
16443 # creating and moving files from /tmp can sometimes cause problems.
16444 # Create a temporary directory, and hook for its removal unless debugging.
16445 $debug ||
16446 {
16447 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16448 trap '{ (exit 1); exit 1; }' 1 2 13 15
16449 }
16450
16451 # Create a (secure) tmp directory for tmp files.
16452
16453 {
16454 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16455 test -n "$tmp" && test -d "$tmp"
16456 } ||
16457 {
16458 tmp=./confstat$$-$RANDOM
16459 (umask 077 && mkdir $tmp)
16460 } ||
16461 {
16462 echo "$me: cannot create a temporary directory in ." >&2
16463 { (exit 1); exit 1; }
16464 }
16465
16466 _ACEOF
16467
16468 cat >>$CONFIG_STATUS <<_ACEOF
16469
16470 #
16471 # CONFIG_FILES section.
16472 #
16473
16474 # No need to generate the scripts if there are no CONFIG_FILES.
16475 # This happens for instance when ./config.status config.h
16476 if test -n "\$CONFIG_FILES"; then
16477 # Protect against being on the right side of a sed subst in config.status.
16478 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16479 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16480 s,@SHELL@,$SHELL,;t t
16481 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16482 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16483 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16484 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16485 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16486 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16487 s,@exec_prefix@,$exec_prefix,;t t
16488 s,@prefix@,$prefix,;t t
16489 s,@program_transform_name@,$program_transform_name,;t t
16490 s,@bindir@,$bindir,;t t
16491 s,@sbindir@,$sbindir,;t t
16492 s,@libexecdir@,$libexecdir,;t t
16493 s,@datadir@,$datadir,;t t
16494 s,@sysconfdir@,$sysconfdir,;t t
16495 s,@sharedstatedir@,$sharedstatedir,;t t
16496 s,@localstatedir@,$localstatedir,;t t
16497 s,@libdir@,$libdir,;t t
16498 s,@includedir@,$includedir,;t t
16499 s,@oldincludedir@,$oldincludedir,;t t
16500 s,@infodir@,$infodir,;t t
16501 s,@mandir@,$mandir,;t t
16502 s,@build_alias@,$build_alias,;t t
16503 s,@host_alias@,$host_alias,;t t
16504 s,@target_alias@,$target_alias,;t t
16505 s,@DEFS@,$DEFS,;t t
16506 s,@ECHO_C@,$ECHO_C,;t t
16507 s,@ECHO_N@,$ECHO_N,;t t
16508 s,@ECHO_T@,$ECHO_T,;t t
16509 s,@LIBS@,$LIBS,;t t
16510 s,@build@,$build,;t t
16511 s,@build_cpu@,$build_cpu,;t t
16512 s,@build_vendor@,$build_vendor,;t t
16513 s,@build_os@,$build_os,;t t
16514 s,@host@,$host,;t t
16515 s,@host_cpu@,$host_cpu,;t t
16516 s,@host_vendor@,$host_vendor,;t t
16517 s,@host_os@,$host_os,;t t
16518 s,@target@,$target,;t t
16519 s,@target_cpu@,$target_cpu,;t t
16520 s,@target_vendor@,$target_vendor,;t t
16521 s,@target_os@,$target_os,;t t
16522 s,@CC@,$CC,;t t
16523 s,@CFLAGS@,$CFLAGS,;t t
16524 s,@LDFLAGS@,$LDFLAGS,;t t
16525 s,@CPPFLAGS@,$CPPFLAGS,;t t
16526 s,@ac_ct_CC@,$ac_ct_CC,;t t
16527 s,@EXEEXT@,$EXEEXT,;t t
16528 s,@OBJEXT@,$OBJEXT,;t t
16529 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16530 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16531 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16532 s,@CYGPATH_W@,$CYGPATH_W,;t t
16533 s,@PACKAGE@,$PACKAGE,;t t
16534 s,@VERSION@,$VERSION,;t t
16535 s,@ACLOCAL@,$ACLOCAL,;t t
16536 s,@AUTOCONF@,$AUTOCONF,;t t
16537 s,@AUTOMAKE@,$AUTOMAKE,;t t
16538 s,@AUTOHEADER@,$AUTOHEADER,;t t
16539 s,@MAKEINFO@,$MAKEINFO,;t t
16540 s,@install_sh@,$install_sh,;t t
16541 s,@STRIP@,$STRIP,;t t
16542 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16543 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16544 s,@mkdir_p@,$mkdir_p,;t t
16545 s,@AWK@,$AWK,;t t
16546 s,@SET_MAKE@,$SET_MAKE,;t t
16547 s,@am__leading_dot@,$am__leading_dot,;t t
16548 s,@AMTAR@,$AMTAR,;t t
16549 s,@am__tar@,$am__tar,;t t
16550 s,@am__untar@,$am__untar,;t t
16551 s,@DEPDIR@,$DEPDIR,;t t
16552 s,@am__include@,$am__include,;t t
16553 s,@am__quote@,$am__quote,;t t
16554 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16555 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16556 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16557 s,@CCDEPMODE@,$CCDEPMODE,;t t
16558 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16559 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16560 s,@CPP@,$CPP,;t t
16561 s,@EGREP@,$EGREP,;t t
16562 s,@LIBTOOL@,$LIBTOOL,;t t
16563 s,@SED@,$SED,;t t
16564 s,@FGREP@,$FGREP,;t t
16565 s,@GREP@,$GREP,;t t
16566 s,@LD@,$LD,;t t
16567 s,@DUMPBIN@,$DUMPBIN,;t t
16568 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
16569 s,@NM@,$NM,;t t
16570 s,@LN_S@,$LN_S,;t t
16571 s,@AR@,$AR,;t t
16572 s,@ac_ct_AR@,$ac_ct_AR,;t t
16573 s,@RANLIB@,$RANLIB,;t t
16574 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16575 s,@lt_ECHO@,$lt_ECHO,;t t
16576 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
16577 s,@NO_WERROR@,$NO_WERROR,;t t
16578 s,@YACC@,$YACC,;t t
16579 s,@LEX@,$LEX,;t t
16580 s,@LEXLIB@,$LEXLIB,;t t
16581 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16582 s,@USE_NLS@,$USE_NLS,;t t
16583 s,@LIBINTL@,$LIBINTL,;t t
16584 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16585 s,@INCINTL@,$INCINTL,;t t
16586 s,@XGETTEXT@,$XGETTEXT,;t t
16587 s,@GMSGFMT@,$GMSGFMT,;t t
16588 s,@POSUB@,$POSUB,;t t
16589 s,@CATALOGS@,$CATALOGS,;t t
16590 s,@DATADIRNAME@,$DATADIRNAME,;t t
16591 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16592 s,@GENCAT@,$GENCAT,;t t
16593 s,@CATOBJEXT@,$CATOBJEXT,;t t
16594 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16595 s,@MSGFMT@,$MSGFMT,;t t
16596 s,@MSGMERGE@,$MSGMERGE,;t t
16597 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16598 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16599 s,@MAINT@,$MAINT,;t t
16600 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
16601 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
16602 s,@HDEFINES@,$HDEFINES,;t t
16603 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16604 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
16605 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
16606 s,@ALLOCA@,$ALLOCA,;t t
16607 s,@LIBICONV@,$LIBICONV,;t t
16608 s,@LTLIBICONV@,$LTLIBICONV,;t t
16609 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
16610 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
16611 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
16612 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
16613 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
16614 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
16615 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
16616 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
16617 s,@BUILD_MISC@,$BUILD_MISC,;t t
16618 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
16619 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
16620 s,@EMULATION@,$EMULATION,;t t
16621 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
16622 s,@datarootdir@,$datarootdir,;t t
16623 s,@docdir@,$docdir,;t t
16624 s,@htmldir@,$htmldir,;t t
16625 s,@LIBOBJS@,$LIBOBJS,;t t
16626 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16627 CEOF
16628
16629 _ACEOF
16630
16631 cat >>$CONFIG_STATUS <<\_ACEOF
16632 # Split the substitutions into bite-sized pieces for seds with
16633 # small command number limits, like on Digital OSF/1 and HP-UX.
16634 ac_max_sed_lines=48
16635 ac_sed_frag=1 # Number of current file.
16636 ac_beg=1 # First line for current file.
16637 ac_end=$ac_max_sed_lines # Line after last line for current file.
16638 ac_more_lines=:
16639 ac_sed_cmds=
16640 while $ac_more_lines; do
16641 if test $ac_beg -gt 1; then
16642 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16643 else
16644 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16645 fi
16646 if test ! -s $tmp/subs.frag; then
16647 ac_more_lines=false
16648 else
16649 # The purpose of the label and of the branching condition is to
16650 # speed up the sed processing (if there are no `@' at all, there
16651 # is no need to browse any of the substitutions).
16652 # These are the two extra sed commands mentioned above.
16653 (echo ':t
16654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16655 if test -z "$ac_sed_cmds"; then
16656 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16657 else
16658 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16659 fi
16660 ac_sed_frag=`expr $ac_sed_frag + 1`
16661 ac_beg=$ac_end
16662 ac_end=`expr $ac_end + $ac_max_sed_lines`
16663 fi
16664 done
16665 if test -z "$ac_sed_cmds"; then
16666 ac_sed_cmds=cat
16667 fi
16668 fi # test -n "$CONFIG_FILES"
16669
16670 _ACEOF
16671 cat >>$CONFIG_STATUS <<\_ACEOF
16672 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16674 case $ac_file in
16675 - | *:- | *:-:* ) # input from stdin
16676 cat >$tmp/stdin
16677 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16678 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16679 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16680 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16681 * ) ac_file_in=$ac_file.in ;;
16682 esac
16683
16684 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16685 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16687 X"$ac_file" : 'X\(//\)[^/]' \| \
16688 X"$ac_file" : 'X\(//\)$' \| \
16689 X"$ac_file" : 'X\(/\)' \| \
16690 . : '\(.\)' 2>/dev/null ||
16691 echo X"$ac_file" |
16692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16694 /^X\(\/\/\)$/{ s//\1/; q; }
16695 /^X\(\/\).*/{ s//\1/; q; }
16696 s/.*/./; q'`
16697 { if $as_mkdir_p; then
16698 mkdir -p "$ac_dir"
16699 else
16700 as_dir="$ac_dir"
16701 as_dirs=
16702 while test ! -d "$as_dir"; do
16703 as_dirs="$as_dir $as_dirs"
16704 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16706 X"$as_dir" : 'X\(//\)[^/]' \| \
16707 X"$as_dir" : 'X\(//\)$' \| \
16708 X"$as_dir" : 'X\(/\)' \| \
16709 . : '\(.\)' 2>/dev/null ||
16710 echo X"$as_dir" |
16711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16713 /^X\(\/\/\)$/{ s//\1/; q; }
16714 /^X\(\/\).*/{ s//\1/; q; }
16715 s/.*/./; q'`
16716 done
16717 test ! -n "$as_dirs" || mkdir $as_dirs
16718 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16719 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16720 { (exit 1); exit 1; }; }; }
16721
16722 ac_builddir=.
16723
16724 if test "$ac_dir" != .; then
16725 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16726 # A "../" for each directory in $ac_dir_suffix.
16727 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16728 else
16729 ac_dir_suffix= ac_top_builddir=
16730 fi
16731
16732 case $srcdir in
16733 .) # No --srcdir option. We are building in place.
16734 ac_srcdir=.
16735 if test -z "$ac_top_builddir"; then
16736 ac_top_srcdir=.
16737 else
16738 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16739 fi ;;
16740 [\\/]* | ?:[\\/]* ) # Absolute path.
16741 ac_srcdir=$srcdir$ac_dir_suffix;
16742 ac_top_srcdir=$srcdir ;;
16743 *) # Relative path.
16744 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16745 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16746 esac
16747
16748 # Do not use `cd foo && pwd` to compute absolute paths, because
16749 # the directories may not exist.
16750 case `pwd` in
16751 .) ac_abs_builddir="$ac_dir";;
16752 *)
16753 case "$ac_dir" in
16754 .) ac_abs_builddir=`pwd`;;
16755 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16756 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16757 esac;;
16758 esac
16759 case $ac_abs_builddir in
16760 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16761 *)
16762 case ${ac_top_builddir}. in
16763 .) ac_abs_top_builddir=$ac_abs_builddir;;
16764 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16765 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16766 esac;;
16767 esac
16768 case $ac_abs_builddir in
16769 .) ac_abs_srcdir=$ac_srcdir;;
16770 *)
16771 case $ac_srcdir in
16772 .) ac_abs_srcdir=$ac_abs_builddir;;
16773 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16774 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16775 esac;;
16776 esac
16777 case $ac_abs_builddir in
16778 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16779 *)
16780 case $ac_top_srcdir in
16781 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16782 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16783 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16784 esac;;
16785 esac
16786
16787
16788 case $INSTALL in
16789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16790 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16791 esac
16792
16793 if test x"$ac_file" != x-; then
16794 { echo "$as_me:$LINENO: creating $ac_file" >&5
16795 echo "$as_me: creating $ac_file" >&6;}
16796 rm -f "$ac_file"
16797 fi
16798 # Let's still pretend it is `configure' which instantiates (i.e., don't
16799 # use $as_me), people would be surprised to read:
16800 # /* config.h. Generated by config.status. */
16801 if test x"$ac_file" = x-; then
16802 configure_input=
16803 else
16804 configure_input="$ac_file. "
16805 fi
16806 configure_input=$configure_input"Generated from `echo $ac_file_in |
16807 sed 's,.*/,,'` by configure."
16808
16809 # First look for the input files in the build tree, otherwise in the
16810 # src tree.
16811 ac_file_inputs=`IFS=:
16812 for f in $ac_file_in; do
16813 case $f in
16814 -) echo $tmp/stdin ;;
16815 [\\/$]*)
16816 # Absolute (can't be DOS-style, as IFS=:)
16817 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16818 echo "$as_me: error: cannot find input file: $f" >&2;}
16819 { (exit 1); exit 1; }; }
16820 echo "$f";;
16821 *) # Relative
16822 if test -f "$f"; then
16823 # Build tree
16824 echo "$f"
16825 elif test -f "$srcdir/$f"; then
16826 # Source tree
16827 echo "$srcdir/$f"
16828 else
16829 # /dev/null tree
16830 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16831 echo "$as_me: error: cannot find input file: $f" >&2;}
16832 { (exit 1); exit 1; }; }
16833 fi;;
16834 esac
16835 done` || { (exit 1); exit 1; }
16836 _ACEOF
16837 cat >>$CONFIG_STATUS <<_ACEOF
16838 sed "$ac_vpsub
16839 $extrasub
16840 _ACEOF
16841 cat >>$CONFIG_STATUS <<\_ACEOF
16842 :t
16843 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16844 s,@configure_input@,$configure_input,;t t
16845 s,@srcdir@,$ac_srcdir,;t t
16846 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16847 s,@top_srcdir@,$ac_top_srcdir,;t t
16848 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16849 s,@builddir@,$ac_builddir,;t t
16850 s,@abs_builddir@,$ac_abs_builddir,;t t
16851 s,@top_builddir@,$ac_top_builddir,;t t
16852 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16853 s,@INSTALL@,$ac_INSTALL,;t t
16854 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16855 rm -f $tmp/stdin
16856 if test x"$ac_file" != x-; then
16857 mv $tmp/out $ac_file
16858 else
16859 cat $tmp/out
16860 rm -f $tmp/out
16861 fi
16862
16863 done
16864 _ACEOF
16865 cat >>$CONFIG_STATUS <<\_ACEOF
16866
16867 #
16868 # CONFIG_HEADER section.
16869 #
16870
16871 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16872 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16873 #
16874 # ac_d sets the value in "#define NAME VALUE" lines.
16875 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16876 ac_dB='[ ].*$,\1#\2'
16877 ac_dC=' '
16878 ac_dD=',;t'
16879 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16880 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16881 ac_uB='$,\1#\2define\3'
16882 ac_uC=' '
16883 ac_uD=',;t'
16884
16885 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16886 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16887 case $ac_file in
16888 - | *:- | *:-:* ) # input from stdin
16889 cat >$tmp/stdin
16890 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16891 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16892 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16893 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16894 * ) ac_file_in=$ac_file.in ;;
16895 esac
16896
16897 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16898 echo "$as_me: creating $ac_file" >&6;}
16899
16900 # First look for the input files in the build tree, otherwise in the
16901 # src tree.
16902 ac_file_inputs=`IFS=:
16903 for f in $ac_file_in; do
16904 case $f in
16905 -) echo $tmp/stdin ;;
16906 [\\/$]*)
16907 # Absolute (can't be DOS-style, as IFS=:)
16908 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16909 echo "$as_me: error: cannot find input file: $f" >&2;}
16910 { (exit 1); exit 1; }; }
16911 # Do quote $f, to prevent DOS paths from being IFS'd.
16912 echo "$f";;
16913 *) # Relative
16914 if test -f "$f"; then
16915 # Build tree
16916 echo "$f"
16917 elif test -f "$srcdir/$f"; then
16918 # Source tree
16919 echo "$srcdir/$f"
16920 else
16921 # /dev/null tree
16922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16923 echo "$as_me: error: cannot find input file: $f" >&2;}
16924 { (exit 1); exit 1; }; }
16925 fi;;
16926 esac
16927 done` || { (exit 1); exit 1; }
16928 # Remove the trailing spaces.
16929 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16930
16931 _ACEOF
16932
16933 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16934 # `conftest.undefs', that substitutes the proper values into
16935 # config.h.in to produce config.h. The first handles `#define'
16936 # templates, and the second `#undef' templates.
16937 # And first: Protect against being on the right side of a sed subst in
16938 # config.status. Protect against being in an unquoted here document
16939 # in config.status.
16940 rm -f conftest.defines conftest.undefs
16941 # Using a here document instead of a string reduces the quoting nightmare.
16942 # Putting comments in sed scripts is not portable.
16943 #
16944 # `end' is used to avoid that the second main sed command (meant for
16945 # 0-ary CPP macros) applies to n-ary macro definitions.
16946 # See the Autoconf documentation for `clear'.
16947 cat >confdef2sed.sed <<\_ACEOF
16948 s/[\\&,]/\\&/g
16949 s,[\\$`],\\&,g
16950 t clear
16951 : clear
16952 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16953 t end
16954 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16955 : end
16956 _ACEOF
16957 # If some macros were called several times there might be several times
16958 # the same #defines, which is useless. Nevertheless, we may not want to
16959 # sort them, since we want the *last* AC-DEFINE to be honored.
16960 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16961 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16962 rm -f confdef2sed.sed
16963
16964 # This sed command replaces #undef with comments. This is necessary, for
16965 # example, in the case of _POSIX_SOURCE, which is predefined and required
16966 # on some systems where configure will not decide to define it.
16967 cat >>conftest.undefs <<\_ACEOF
16968 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16969 _ACEOF
16970
16971 # Break up conftest.defines because some shells have a limit on the size
16972 # of here documents, and old seds have small limits too (100 cmds).
16973 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16974 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16975 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16976 echo ' :' >>$CONFIG_STATUS
16977 rm -f conftest.tail
16978 while grep . conftest.defines >/dev/null
16979 do
16980 # Write a limited-size here document to $tmp/defines.sed.
16981 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16982 # Speed up: don't consider the non `#define' lines.
16983 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16984 # Work around the forget-to-reset-the-flag bug.
16985 echo 't clr' >>$CONFIG_STATUS
16986 echo ': clr' >>$CONFIG_STATUS
16987 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16988 echo 'CEOF
16989 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16990 rm -f $tmp/in
16991 mv $tmp/out $tmp/in
16992 ' >>$CONFIG_STATUS
16993 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16994 rm -f conftest.defines
16995 mv conftest.tail conftest.defines
16996 done
16997 rm -f conftest.defines
16998 echo ' fi # grep' >>$CONFIG_STATUS
16999 echo >>$CONFIG_STATUS
17000
17001 # Break up conftest.undefs because some shells have a limit on the size
17002 # of here documents, and old seds have small limits too (100 cmds).
17003 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17004 rm -f conftest.tail
17005 while grep . conftest.undefs >/dev/null
17006 do
17007 # Write a limited-size here document to $tmp/undefs.sed.
17008 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17009 # Speed up: don't consider the non `#undef'
17010 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17011 # Work around the forget-to-reset-the-flag bug.
17012 echo 't clr' >>$CONFIG_STATUS
17013 echo ': clr' >>$CONFIG_STATUS
17014 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17015 echo 'CEOF
17016 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17017 rm -f $tmp/in
17018 mv $tmp/out $tmp/in
17019 ' >>$CONFIG_STATUS
17020 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17021 rm -f conftest.undefs
17022 mv conftest.tail conftest.undefs
17023 done
17024 rm -f conftest.undefs
17025
17026 cat >>$CONFIG_STATUS <<\_ACEOF
17027 # Let's still pretend it is `configure' which instantiates (i.e., don't
17028 # use $as_me), people would be surprised to read:
17029 # /* config.h. Generated by config.status. */
17030 if test x"$ac_file" = x-; then
17031 echo "/* Generated by configure. */" >$tmp/config.h
17032 else
17033 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17034 fi
17035 cat $tmp/in >>$tmp/config.h
17036 rm -f $tmp/in
17037 if test x"$ac_file" != x-; then
17038 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17039 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17040 echo "$as_me: $ac_file is unchanged" >&6;}
17041 else
17042 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17044 X"$ac_file" : 'X\(//\)[^/]' \| \
17045 X"$ac_file" : 'X\(//\)$' \| \
17046 X"$ac_file" : 'X\(/\)' \| \
17047 . : '\(.\)' 2>/dev/null ||
17048 echo X"$ac_file" |
17049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17051 /^X\(\/\/\)$/{ s//\1/; q; }
17052 /^X\(\/\).*/{ s//\1/; q; }
17053 s/.*/./; q'`
17054 { if $as_mkdir_p; then
17055 mkdir -p "$ac_dir"
17056 else
17057 as_dir="$ac_dir"
17058 as_dirs=
17059 while test ! -d "$as_dir"; do
17060 as_dirs="$as_dir $as_dirs"
17061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17063 X"$as_dir" : 'X\(//\)[^/]' \| \
17064 X"$as_dir" : 'X\(//\)$' \| \
17065 X"$as_dir" : 'X\(/\)' \| \
17066 . : '\(.\)' 2>/dev/null ||
17067 echo X"$as_dir" |
17068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17070 /^X\(\/\/\)$/{ s//\1/; q; }
17071 /^X\(\/\).*/{ s//\1/; q; }
17072 s/.*/./; q'`
17073 done
17074 test ! -n "$as_dirs" || mkdir $as_dirs
17075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17076 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17077 { (exit 1); exit 1; }; }; }
17078
17079 rm -f $ac_file
17080 mv $tmp/config.h $ac_file
17081 fi
17082 else
17083 cat $tmp/config.h
17084 rm -f $tmp/config.h
17085 fi
17086 # Compute $ac_file's index in $config_headers.
17087 _am_stamp_count=1
17088 for _am_header in $config_headers :; do
17089 case $_am_header in
17090 $ac_file | $ac_file:* )
17091 break ;;
17092 * )
17093 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17094 esac
17095 done
17096 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17097 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17098 X$ac_file : 'X\(//\)[^/]' \| \
17099 X$ac_file : 'X\(//\)$' \| \
17100 X$ac_file : 'X\(/\)' \| \
17101 . : '\(.\)' 2>/dev/null ||
17102 echo X$ac_file |
17103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17105 /^X\(\/\/\)$/{ s//\1/; q; }
17106 /^X\(\/\).*/{ s//\1/; q; }
17107 s/.*/./; q'`/stamp-h$_am_stamp_count
17108 done
17109 _ACEOF
17110 cat >>$CONFIG_STATUS <<\_ACEOF
17111
17112 #
17113 # CONFIG_COMMANDS section.
17114 #
17115 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17116 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17117 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17118 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17119 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17120 X"$ac_dest" : 'X\(//\)[^/]' \| \
17121 X"$ac_dest" : 'X\(//\)$' \| \
17122 X"$ac_dest" : 'X\(/\)' \| \
17123 . : '\(.\)' 2>/dev/null ||
17124 echo X"$ac_dest" |
17125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17127 /^X\(\/\/\)$/{ s//\1/; q; }
17128 /^X\(\/\).*/{ s//\1/; q; }
17129 s/.*/./; q'`
17130 { if $as_mkdir_p; then
17131 mkdir -p "$ac_dir"
17132 else
17133 as_dir="$ac_dir"
17134 as_dirs=
17135 while test ! -d "$as_dir"; do
17136 as_dirs="$as_dir $as_dirs"
17137 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17139 X"$as_dir" : 'X\(//\)[^/]' \| \
17140 X"$as_dir" : 'X\(//\)$' \| \
17141 X"$as_dir" : 'X\(/\)' \| \
17142 . : '\(.\)' 2>/dev/null ||
17143 echo X"$as_dir" |
17144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17146 /^X\(\/\/\)$/{ s//\1/; q; }
17147 /^X\(\/\).*/{ s//\1/; q; }
17148 s/.*/./; q'`
17149 done
17150 test ! -n "$as_dirs" || mkdir $as_dirs
17151 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17152 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17153 { (exit 1); exit 1; }; }; }
17154
17155 ac_builddir=.
17156
17157 if test "$ac_dir" != .; then
17158 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17159 # A "../" for each directory in $ac_dir_suffix.
17160 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17161 else
17162 ac_dir_suffix= ac_top_builddir=
17163 fi
17164
17165 case $srcdir in
17166 .) # No --srcdir option. We are building in place.
17167 ac_srcdir=.
17168 if test -z "$ac_top_builddir"; then
17169 ac_top_srcdir=.
17170 else
17171 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17172 fi ;;
17173 [\\/]* | ?:[\\/]* ) # Absolute path.
17174 ac_srcdir=$srcdir$ac_dir_suffix;
17175 ac_top_srcdir=$srcdir ;;
17176 *) # Relative path.
17177 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17178 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17179 esac
17180
17181 # Do not use `cd foo && pwd` to compute absolute paths, because
17182 # the directories may not exist.
17183 case `pwd` in
17184 .) ac_abs_builddir="$ac_dir";;
17185 *)
17186 case "$ac_dir" in
17187 .) ac_abs_builddir=`pwd`;;
17188 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17189 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17190 esac;;
17191 esac
17192 case $ac_abs_builddir in
17193 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17194 *)
17195 case ${ac_top_builddir}. in
17196 .) ac_abs_top_builddir=$ac_abs_builddir;;
17197 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17198 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17199 esac;;
17200 esac
17201 case $ac_abs_builddir in
17202 .) ac_abs_srcdir=$ac_srcdir;;
17203 *)
17204 case $ac_srcdir in
17205 .) ac_abs_srcdir=$ac_abs_builddir;;
17206 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17207 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17208 esac;;
17209 esac
17210 case $ac_abs_builddir in
17211 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17212 *)
17213 case $ac_top_srcdir in
17214 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17215 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17216 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17217 esac;;
17218 esac
17219
17220
17221 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17222 echo "$as_me: executing $ac_dest commands" >&6;}
17223 case $ac_dest in
17224 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17225 # Strip MF so we end up with the name of the file.
17226 mf=`echo "$mf" | sed -e 's/:.*$//'`
17227 # Check whether this is an Automake generated Makefile or not.
17228 # We used to match only the files named `Makefile.in', but
17229 # some people rename them; so instead we look at the file content.
17230 # Grep'ing the first line is not enough: some people post-process
17231 # each Makefile.in and add a new line on top of each file to say so.
17232 # So let's grep whole file.
17233 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17234 dirpart=`(dirname "$mf") 2>/dev/null ||
17235 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236 X"$mf" : 'X\(//\)[^/]' \| \
17237 X"$mf" : 'X\(//\)$' \| \
17238 X"$mf" : 'X\(/\)' \| \
17239 . : '\(.\)' 2>/dev/null ||
17240 echo X"$mf" |
17241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17243 /^X\(\/\/\)$/{ s//\1/; q; }
17244 /^X\(\/\).*/{ s//\1/; q; }
17245 s/.*/./; q'`
17246 else
17247 continue
17248 fi
17249 # Extract the definition of DEPDIR, am__include, and am__quote
17250 # from the Makefile without running `make'.
17251 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17252 test -z "$DEPDIR" && continue
17253 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17254 test -z "am__include" && continue
17255 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17256 # When using ansi2knr, U may be empty or an underscore; expand it
17257 U=`sed -n 's/^U = //p' < "$mf"`
17258 # Find all dependency output files, they are included files with
17259 # $(DEPDIR) in their names. We invoke sed twice because it is the
17260 # simplest approach to changing $(DEPDIR) to its actual value in the
17261 # expansion.
17262 for file in `sed -n "
17263 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17264 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17265 # Make sure the directory exists.
17266 test -f "$dirpart/$file" && continue
17267 fdir=`(dirname "$file") 2>/dev/null ||
17268 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17269 X"$file" : 'X\(//\)[^/]' \| \
17270 X"$file" : 'X\(//\)$' \| \
17271 X"$file" : 'X\(/\)' \| \
17272 . : '\(.\)' 2>/dev/null ||
17273 echo X"$file" |
17274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17276 /^X\(\/\/\)$/{ s//\1/; q; }
17277 /^X\(\/\).*/{ s//\1/; q; }
17278 s/.*/./; q'`
17279 { if $as_mkdir_p; then
17280 mkdir -p $dirpart/$fdir
17281 else
17282 as_dir=$dirpart/$fdir
17283 as_dirs=
17284 while test ! -d "$as_dir"; do
17285 as_dirs="$as_dir $as_dirs"
17286 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17288 X"$as_dir" : 'X\(//\)[^/]' \| \
17289 X"$as_dir" : 'X\(//\)$' \| \
17290 X"$as_dir" : 'X\(/\)' \| \
17291 . : '\(.\)' 2>/dev/null ||
17292 echo X"$as_dir" |
17293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17295 /^X\(\/\/\)$/{ s//\1/; q; }
17296 /^X\(\/\).*/{ s//\1/; q; }
17297 s/.*/./; q'`
17298 done
17299 test ! -n "$as_dirs" || mkdir $as_dirs
17300 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17301 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17302 { (exit 1); exit 1; }; }; }
17303
17304 # echo "creating $dirpart/$file"
17305 echo '# dummy' > "$dirpart/$file"
17306 done
17307 done
17308 ;;
17309 libtool )
17310
17311 # See if we are running on zsh, and set the options which allow our
17312 # commands through without removal of \ escapes.
17313 if test -n "${ZSH_VERSION+set}" ; then
17314 setopt NO_GLOB_SUBST
17315 fi
17316
17317 cfgfile="${ofile}T"
17318 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17319 $RM "$cfgfile"
17320
17321 cat <<_LT_EOF >> "$cfgfile"
17322 #! $SHELL
17323
17324 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17325 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17327 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17328 #
17329 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17330 # 2006, 2007 Free Software Foundation, Inc.
17331 #
17332 # This file is part of GNU Libtool:
17333 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17334 #
17335 # This program is free software; you can redistribute it and/or modify
17336 # it under the terms of the GNU General Public License as published by
17337 # the Free Software Foundation; either version 2 of the License, or
17338 # (at your option) any later version.
17339 #
17340 # This program is distributed in the hope that it will be useful, but
17341 # WITHOUT ANY WARRANTY; without even the implied warranty of
17342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17343 # General Public License for more details.
17344 #
17345 # You should have received a copy of the GNU General Public License
17346 # along with this program; if not, a copy can be downloaded from
17347 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
17348 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17349 # MA 02110-1301, USA.
17350 #
17351 # As a special exception to the GNU General Public License, if you
17352 # distribute this file as part of a program that contains a
17353 # configuration script generated by Autoconf, you may include it under
17354 # the same distribution terms that you use for the rest of that program.
17355
17356
17357 # The names of the tagged configurations supported by this script.
17358 available_tags=""
17359
17360 # ### BEGIN LIBTOOL CONFIG
17361
17362 # Which release of libtool.m4 was used?
17363 macro_version=$macro_version
17364 macro_revision=$macro_revision
17365
17366 # Whether or not to build shared libraries.
17367 build_libtool_libs=$enable_shared
17368
17369 # Whether or not to build static libraries.
17370 build_old_libs=$enable_static
17371
17372 # What type of objects to build.
17373 pic_mode=$pic_mode
17374
17375 # Whether or not to optimize for fast installation.
17376 fast_install=$enable_fast_install
17377
17378 # The host system.
17379 host_alias=$host_alias
17380 host=$host
17381 host_os=$host_os
17382
17383 # The build system.
17384 build_alias=$build_alias
17385 build=$build
17386 build_os=$build_os
17387
17388 # A sed program that does not truncate output.
17389 SED=$lt_SED
17390
17391 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17392 Xsed="\$SED -e 1s/^X//"
17393
17394 # A grep program that handles long lines.
17395 GREP=$lt_GREP
17396
17397 # An ERE matcher.
17398 EGREP=$lt_EGREP
17399
17400 # A literal string matcher.
17401 FGREP=$lt_FGREP
17402
17403 # A BSD- or MS-compatible name lister.
17404 NM=$lt_NM
17405
17406 # Whether we need soft or hard links.
17407 LN_S=$lt_LN_S
17408
17409 # What is the maximum length of a command?
17410 max_cmd_len=$max_cmd_len
17411
17412 # Object file suffix (normally "o").
17413 objext=$ac_objext
17414
17415 # Executable file suffix (normally "").
17416 exeext=$exeext
17417
17418 # whether the shell understands "unset".
17419 lt_unset=$lt_unset
17420
17421 # turn spaces into newlines.
17422 SP2NL=$lt_lt_SP2NL
17423
17424 # turn newlines into spaces.
17425 NL2SP=$lt_lt_NL2SP
17426
17427 # How to create reloadable object files.
17428 reload_flag=$lt_reload_flag
17429 reload_cmds=$lt_reload_cmds
17430
17431 # Method to check whether dependent libraries are shared objects.
17432 deplibs_check_method=$lt_deplibs_check_method
17433
17434 # Command to use when deplibs_check_method == "file_magic".
17435 file_magic_cmd=$lt_file_magic_cmd
17436
17437 # The archiver.
17438 AR=$lt_AR
17439 AR_FLAGS=$lt_AR_FLAGS
17440
17441 # A symbol stripping program.
17442 STRIP=$lt_STRIP
17443
17444 # Commands used to install an old-style archive.
17445 RANLIB=$lt_RANLIB
17446 old_postinstall_cmds=$lt_old_postinstall_cmds
17447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17448
17449 # A C compiler.
17450 LTCC=$lt_CC
17451
17452 # LTCC compiler flags.
17453 LTCFLAGS=$lt_CFLAGS
17454
17455 # Take the output of nm and produce a listing of raw symbols and C names.
17456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17457
17458 # Transform the output of nm in a proper C declaration.
17459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17460
17461 # Transform the output of nm in a C name address pair.
17462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17463
17464 # The name of the directory that contains temporary libtool files.
17465 objdir=$objdir
17466
17467 # Shell to use when invoking shell scripts.
17468 SHELL=$lt_SHELL
17469
17470 # An echo program that does not interpret backslashes.
17471 ECHO=$lt_ECHO
17472
17473 # Used to examine libraries when file_magic_cmd begins with "file".
17474 MAGIC_CMD=$MAGIC_CMD
17475
17476 # Must we lock files when doing compilation?
17477 need_locks=$lt_need_locks
17478
17479 # Old archive suffix (normally "a").
17480 libext=$libext
17481
17482 # Shared library suffix (normally ".so").
17483 shrext_cmds=$lt_shrext_cmds
17484
17485 # The commands to extract the exported symbol list from a shared archive.
17486 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17487
17488 # Variables whose values should be saved in libtool wrapper scripts and
17489 # restored at link time.
17490 variables_saved_for_relink=$lt_variables_saved_for_relink
17491
17492 # Do we need the "lib" prefix for modules?
17493 need_lib_prefix=$need_lib_prefix
17494
17495 # Do we need a version for libraries?
17496 need_version=$need_version
17497
17498 # Library versioning type.
17499 version_type=$version_type
17500
17501 # Shared library runtime path variable.
17502 runpath_var=$runpath_var
17503
17504 # Shared library path variable.
17505 shlibpath_var=$shlibpath_var
17506
17507 # Is shlibpath searched before the hard-coded library search path?
17508 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17509
17510 # Format of library name prefix.
17511 libname_spec=$lt_libname_spec
17512
17513 # List of archive names. First name is the real one, the rest are links.
17514 # The last name is the one that the linker finds with -lNAME
17515 library_names_spec=$lt_library_names_spec
17516
17517 # The coded name of the library, if different from the real name.
17518 soname_spec=$lt_soname_spec
17519
17520 # Command to use after installation of a shared archive.
17521 postinstall_cmds=$lt_postinstall_cmds
17522
17523 # Command to use after uninstallation of a shared archive.
17524 postuninstall_cmds=$lt_postuninstall_cmds
17525
17526 # Commands used to finish a libtool library installation in a directory.
17527 finish_cmds=$lt_finish_cmds
17528
17529 # As "finish_cmds", except a single script fragment to be evaled but
17530 # not shown.
17531 finish_eval=$lt_finish_eval
17532
17533 # Whether we should hardcode library paths into libraries.
17534 hardcode_into_libs=$hardcode_into_libs
17535
17536 # Compile-time system search path for libraries.
17537 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17538
17539 # Run-time system search path for libraries.
17540 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17541
17542 # Whether dlopen is supported.
17543 dlopen_support=$enable_dlopen
17544
17545 # Whether dlopen of programs is supported.
17546 dlopen_self=$enable_dlopen_self
17547
17548 # Whether dlopen of statically linked programs is supported.
17549 dlopen_self_static=$enable_dlopen_self_static
17550
17551 # Commands to strip libraries.
17552 old_striplib=$lt_old_striplib
17553 striplib=$lt_striplib
17554
17555
17556 # The linker used to build libraries.
17557 LD=$lt_LD
17558
17559 # Commands used to build an old-style archive.
17560 old_archive_cmds=$lt_old_archive_cmds
17561
17562 # A language specific compiler.
17563 CC=$lt_compiler
17564
17565 # Is the compiler the GNU compiler?
17566 with_gcc=$GCC
17567
17568 # Compiler flag to turn off builtin functions.
17569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17570
17571 # How to pass a linker flag through the compiler.
17572 wl=$lt_lt_prog_compiler_wl
17573
17574 # Additional compiler flags for building library objects.
17575 pic_flag=$lt_lt_prog_compiler_pic
17576
17577 # Compiler flag to prevent dynamic linking.
17578 link_static_flag=$lt_lt_prog_compiler_static
17579
17580 # Does compiler simultaneously support -c and -o options?
17581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17582
17583 # Whether or not to add -lc for building shared libraries.
17584 build_libtool_need_lc=$archive_cmds_need_lc
17585
17586 # Whether or not to disallow shared libs when runtime libs are static.
17587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17588
17589 # Compiler flag to allow reflexive dlopens.
17590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17591
17592 # Compiler flag to generate shared objects directly from archives.
17593 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17594
17595 # Whether the compiler copes with passing no objects directly.
17596 compiler_needs_object=$lt_compiler_needs_object
17597
17598 # Create an old-style archive from a shared archive.
17599 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17600
17601 # Create a temporary old-style archive to link instead of a shared archive.
17602 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17603
17604 # Commands used to build a shared archive.
17605 archive_cmds=$lt_archive_cmds
17606 archive_expsym_cmds=$lt_archive_expsym_cmds
17607
17608 # Commands used to build a loadable module if different from building
17609 # a shared archive.
17610 module_cmds=$lt_module_cmds
17611 module_expsym_cmds=$lt_module_expsym_cmds
17612
17613 # Whether we are building with GNU ld or not.
17614 with_gnu_ld=$lt_with_gnu_ld
17615
17616 # Flag that allows shared libraries with undefined symbols to be built.
17617 allow_undefined_flag=$lt_allow_undefined_flag
17618
17619 # Flag that enforces no undefined symbols.
17620 no_undefined_flag=$lt_no_undefined_flag
17621
17622 # Flag to hardcode \$libdir into a binary during linking.
17623 # This must work even if \$libdir does not exist
17624 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17625
17626 # If ld is used when linking, flag to hardcode \$libdir into a binary
17627 # during linking. This must work even if \$libdir does not exist.
17628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17629
17630 # Whether we need a single "-rpath" flag with a separated argument.
17631 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17632
17633 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17634 # DIR into the resulting binary.
17635 hardcode_direct=$hardcode_direct
17636
17637 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17638 # DIR into the resulting binary and the resulting library dependency is
17639 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17640 # library is relocated.
17641 hardcode_direct_absolute=$hardcode_direct_absolute
17642
17643 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17644 # into the resulting binary.
17645 hardcode_minus_L=$hardcode_minus_L
17646
17647 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17648 # into the resulting binary.
17649 hardcode_shlibpath_var=$hardcode_shlibpath_var
17650
17651 # Set to "yes" if building a shared library automatically hardcodes DIR
17652 # into the library and all subsequent libraries and executables linked
17653 # against it.
17654 hardcode_automatic=$hardcode_automatic
17655
17656 # Set to yes if linker adds runtime paths of dependent libraries
17657 # to runtime path list.
17658 inherit_rpath=$inherit_rpath
17659
17660 # Whether libtool must link a program against all its dependency libraries.
17661 link_all_deplibs=$link_all_deplibs
17662
17663 # Fix the shell variable \$srcfile for the compiler.
17664 fix_srcfile_path=$lt_fix_srcfile_path
17665
17666 # Set to "yes" if exported symbols are required.
17667 always_export_symbols=$always_export_symbols
17668
17669 # The commands to list exported symbols.
17670 export_symbols_cmds=$lt_export_symbols_cmds
17671
17672 # Symbols that should not be listed in the preloaded symbols.
17673 exclude_expsyms=$lt_exclude_expsyms
17674
17675 # Symbols that must always be exported.
17676 include_expsyms=$lt_include_expsyms
17677
17678 # Commands necessary for linking programs (against libraries) with templates.
17679 prelink_cmds=$lt_prelink_cmds
17680
17681 # Specify filename containing input files.
17682 file_list_spec=$lt_file_list_spec
17683
17684 # How to hardcode a shared library path into an executable.
17685 hardcode_action=$hardcode_action
17686
17687 # ### END LIBTOOL CONFIG
17688
17689 _LT_EOF
17690
17691 case $host_os in
17692 aix3*)
17693 cat <<\_LT_EOF >> "$cfgfile"
17694 # AIX sometimes has problems with the GCC collect2 program. For some
17695 # reason, if we set the COLLECT_NAMES environment variable, the problems
17696 # vanish in a puff of smoke.
17697 if test "X${COLLECT_NAMES+set}" != Xset; then
17698 COLLECT_NAMES=
17699 export COLLECT_NAMES
17700 fi
17701 _LT_EOF
17702 ;;
17703 esac
17704
17705
17706 ltmain="$ac_aux_dir/ltmain.sh"
17707
17708
17709 # We use sed instead of cat because bash on DJGPP gets confused if
17710 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17711 # text mode, it properly converts lines to CR/LF. This bash problem
17712 # is reportedly fixed, but why not run on old versions too?
17713 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17714 || (rm -f "$cfgfile"; exit 1)
17715
17716 case $xsi_shell in
17717 yes)
17718 cat << \_LT_EOF >> "$cfgfile"
17719 # func_dirname file append nondir_replacement
17720 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17721 # otherwise set result to NONDIR_REPLACEMENT.
17722 func_dirname ()
17723 {
17724 case ${1} in
17725 */*) func_dirname_result="${1%/*}${2}" ;;
17726 * ) func_dirname_result="${3}" ;;
17727 esac
17728 }
17729
17730 # func_basename file
17731 func_basename ()
17732 {
17733 func_basename_result="${1##*/}"
17734 }
17735
17736 # func_stripname prefix suffix name
17737 # strip PREFIX and SUFFIX off of NAME.
17738 # PREFIX and SUFFIX must not contain globbing or regex special
17739 # characters, hashes, percent signs, but SUFFIX may contain a leading
17740 # dot (in which case that matches only a dot).
17741 func_stripname ()
17742 {
17743 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17744 # positional parameters, so assign one to ordinary parameter first.
17745 func_stripname_result=${3}
17746 func_stripname_result=${func_stripname_result#"${1}"}
17747 func_stripname_result=${func_stripname_result%"${2}"}
17748 }
17749
17750 # func_opt_split
17751 func_opt_split ()
17752 {
17753 func_opt_split_opt=${1%%=*}
17754 func_opt_split_arg=${1#*=}
17755 }
17756
17757 # func_lo2o object
17758 func_lo2o ()
17759 {
17760 case ${1} in
17761 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17762 *) func_lo2o_result=${1} ;;
17763 esac
17764 }
17765 _LT_EOF
17766 ;;
17767 *) # Bourne compatible functions.
17768 cat << \_LT_EOF >> "$cfgfile"
17769 # func_dirname file append nondir_replacement
17770 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17771 # otherwise set result to NONDIR_REPLACEMENT.
17772 func_dirname ()
17773 {
17774 # Extract subdirectory from the argument.
17775 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17776 if test "X$func_dirname_result" = "X${1}"; then
17777 func_dirname_result="${3}"
17778 else
17779 func_dirname_result="$func_dirname_result${2}"
17780 fi
17781 }
17782
17783 # func_basename file
17784 func_basename ()
17785 {
17786 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17787 }
17788
17789 # func_stripname prefix suffix name
17790 # strip PREFIX and SUFFIX off of NAME.
17791 # PREFIX and SUFFIX must not contain globbing or regex special
17792 # characters, hashes, percent signs, but SUFFIX may contain a leading
17793 # dot (in which case that matches only a dot).
17794 # func_strip_suffix prefix name
17795 func_stripname ()
17796 {
17797 case ${2} in
17798 .*) func_stripname_result=`$ECHO "X${3}" \
17799 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17800 *) func_stripname_result=`$ECHO "X${3}" \
17801 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17802 esac
17803 }
17804
17805 # sed scripts:
17806 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17807 my_sed_long_arg='1s/^-[^=]*=//'
17808
17809 # func_opt_split
17810 func_opt_split ()
17811 {
17812 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17813 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17814 }
17815
17816 # func_lo2o object
17817 func_lo2o ()
17818 {
17819 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17820 }
17821 _LT_EOF
17822 esac
17823
17824 case $lt_shell_append in
17825 yes)
17826 cat << \_LT_EOF >> "$cfgfile"
17827
17828 # func_append var value
17829 # Append VALUE to the end of shell variable VAR.
17830 func_append ()
17831 {
17832 eval "$1+=\$2"
17833 }
17834 _LT_EOF
17835 ;;
17836 *)
17837 cat << \_LT_EOF >> "$cfgfile"
17838
17839 # func_append var value
17840 # Append VALUE to the end of shell variable VAR.
17841 func_append ()
17842 {
17843 eval "$1=\$$1\$2"
17844 }
17845 _LT_EOF
17846 ;;
17847 esac
17848
17849
17850 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17851 || (rm -f "$cfgfile"; exit 1)
17852
17853 mv -f "$cfgfile" "$ofile" ||
17854 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17855 chmod +x "$ofile"
17856
17857 ;;
17858 default-1 )
17859 for ac_file in $CONFIG_FILES; do
17860 # Support "outfile[:infile[:infile...]]"
17861 case "$ac_file" in
17862 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17863 esac
17864 # PO directories have a Makefile.in generated from Makefile.in.in.
17865 case "$ac_file" in */Makefile.in)
17866 # Adjust a relative srcdir.
17867 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17868 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17869 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17870 # In autoconf-2.13 it is called $ac_given_srcdir.
17871 # In autoconf-2.50 it is called $srcdir.
17872 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17873 case "$ac_given_srcdir" in
17874 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17875 /*) top_srcdir="$ac_given_srcdir" ;;
17876 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17877 esac
17878 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17879 rm -f "$ac_dir/POTFILES"
17880 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17881 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17882 POMAKEFILEDEPS="POTFILES.in"
17883 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17884 # on $ac_dir but don't depend on user-specified configuration
17885 # parameters.
17886 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17887 # The LINGUAS file contains the set of available languages.
17888 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17889 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17890 fi
17891 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17892 # Hide the ALL_LINGUAS assigment from automake.
17893 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17894 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17895 else
17896 # The set of available languages was given in configure.in.
17897 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17898 fi
17899 case "$ac_given_srcdir" in
17900 .) srcdirpre= ;;
17901 *) srcdirpre='$(srcdir)/' ;;
17902 esac
17903 POFILES=
17904 GMOFILES=
17905 UPDATEPOFILES=
17906 DUMMYPOFILES=
17907 for lang in $ALL_LINGUAS; do
17908 POFILES="$POFILES $srcdirpre$lang.po"
17909 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17910 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17911 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17912 done
17913 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17914 # environment variable.
17915 INST_LINGUAS=
17916 if test -n "$ALL_LINGUAS"; then
17917 for presentlang in $ALL_LINGUAS; do
17918 useit=no
17919 if test "%UNSET%" != "$LINGUAS"; then
17920 desiredlanguages="$LINGUAS"
17921 else
17922 desiredlanguages="$ALL_LINGUAS"
17923 fi
17924 for desiredlang in $desiredlanguages; do
17925 # Use the presentlang catalog if desiredlang is
17926 # a. equal to presentlang, or
17927 # b. a variant of presentlang (because in this case,
17928 # presentlang can be used as a fallback for messages
17929 # which are not translated in the desiredlang catalog).
17930 case "$desiredlang" in
17931 "$presentlang"*) useit=yes;;
17932 esac
17933 done
17934 if test $useit = yes; then
17935 INST_LINGUAS="$INST_LINGUAS $presentlang"
17936 fi
17937 done
17938 fi
17939 CATALOGS=
17940 if test -n "$INST_LINGUAS"; then
17941 for lang in $INST_LINGUAS; do
17942 CATALOGS="$CATALOGS $lang.gmo"
17943 done
17944 fi
17945 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17946 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"
17947 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17948 if test -f "$f"; then
17949 case "$f" in
17950 *.orig | *.bak | *~) ;;
17951 *) cat "$f" >> "$ac_dir/Makefile" ;;
17952 esac
17953 fi
17954 done
17955 fi
17956 ;;
17957 esac
17958 done ;;
17959 esac
17960 done
17961 _ACEOF
17962
17963 cat >>$CONFIG_STATUS <<\_ACEOF
17964
17965 { (exit 0); exit 0; }
17966 _ACEOF
17967 chmod +x $CONFIG_STATUS
17968 ac_clean_files=$ac_clean_files_save
17969
17970
17971 # configure is writing to config.log, and then calls config.status.
17972 # config.status does its own redirection, appending to config.log.
17973 # Unfortunately, on DOS this fails, as config.log is still kept open
17974 # by configure, so config.status won't be able to write to it; its
17975 # output is simply discarded. So we exec the FD to /dev/null,
17976 # effectively closing config.log, so it can be properly (re)opened and
17977 # appended to by config.status. When coming back to configure, we
17978 # need to make the FD available again.
17979 if test "$no_create" != yes; then
17980 ac_cs_success=:
17981 ac_config_status_args=
17982 test "$silent" = yes &&
17983 ac_config_status_args="$ac_config_status_args --quiet"
17984 exec 5>/dev/null
17985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17986 exec 5>>config.log
17987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17988 # would make configure fail if this is the last instruction.
17989 $ac_cs_success || { (exit 1); exit 1; }
17990 fi
17991
This page took 0.437339 seconds and 4 git commands to generate.