PR 6526
[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 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
1019 --disable-rpath do not hardcode runtime library paths
1020
1021 Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 --with-gnu-ld assume the C compiler uses GNU ld default=no
1028 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1029 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1030
1031 Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1038 CPP C preprocessor
1039
1040 Use these variables to override the choices made by `configure' or to help
1041 it to find libraries and programs with nonstandard names/locations.
1042
1043 _ACEOF
1044 fi
1045
1046 if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1048 ac_popdir=`pwd`
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1051 ac_builddir=.
1052
1053 if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057 else
1058 ac_dir_suffix= ac_top_builddir=
1059 fi
1060
1061 case $srcdir in
1062 .) # No --srcdir option. We are building in place.
1063 ac_srcdir=.
1064 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=.
1066 else
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1068 fi ;;
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1072 *) # Relative path.
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1075 esac
1076
1077 # Do not use `cd foo && pwd` to compute absolute paths, because
1078 # the directories may not exist.
1079 case `pwd` in
1080 .) ac_abs_builddir="$ac_dir";;
1081 *)
1082 case "$ac_dir" in
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1090 *)
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 esac;;
1096 esac
1097 case $ac_abs_builddir in
1098 .) ac_abs_srcdir=$ac_srcdir;;
1099 *)
1100 case $ac_srcdir in
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 esac;;
1105 esac
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1108 *)
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113 esac;;
1114 esac
1115
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 fi
1131 cd $ac_popdir
1132 done
1133 fi
1134
1135 test -n "$ac_init_help" && exit 0
1136 if $ac_init_version; then
1137 cat <<\_ACEOF
1138
1139 Copyright (C) 2003 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143 exit 0
1144 fi
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1149
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.59. Invocation command line was
1152
1153 $ $0 $@
1154
1155 _ACEOF
1156 {
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1161
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179 _ASUNAME
1180
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1183 do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187 done
1188
1189 } >&5
1190
1191 cat >&5 <<_ACEOF
1192
1193
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1197
1198 _ACEOF
1199
1200
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1212 do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269 {
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282 }
1283 echo
1284
1285 cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1335
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1340
1341 # Predefined preprocessor variables.
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1366
1367
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376 fi
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384 done
1385
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397 else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401 fi
1402
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1435 fi
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1453 fi
1454 done
1455 if $ac_cache_corrupted; then
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1463 fi
1464
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493 ac_aux_dir=
1494 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508 done
1509 if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513 fi
1514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 ac_cv_build_alias=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1544 build=$ac_cv_build
1545 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 ac_cv_host_alias=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563 fi
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1566 host=$ac_cv_host
1567 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 ac_cv_target_alias=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585 fi
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target=$ac_cv_target
1589 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
1600 ac_ext=c
1601 ac_cpp='$CPP $CPPFLAGS'
1602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$ac_cv_prog_CC"; then
1643 ac_ct_CC=$CC
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645 set dummy gcc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679 CC=$ac_ct_CC
1680 else
1681 CC="$ac_cv_prog_CC"
1682 fi
1683
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687 set dummy ${ac_tool_prefix}cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707 done
1708 done
1709
1710 fi
1711 fi
1712 CC=$ac_cv_prog_CC
1713 if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1719 fi
1720
1721 fi
1722 if test -z "$ac_cv_prog_CC"; then
1723 ac_ct_CC=$CC
1724 # Extract the first word of "cc", so it can be a program name with args.
1725 set dummy cc; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1736 do
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1744 fi
1745 done
1746 done
1747
1748 fi
1749 fi
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1754 else
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 fi
1758
1759 CC=$ac_ct_CC
1760 else
1761 CC="$ac_cv_prog_CC"
1762 fi
1763
1764 fi
1765 if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 else
1776 ac_prog_rejected=no
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1786 continue
1787 fi
1788 ac_cv_prog_CC="cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1791 fi
1792 done
1793 done
1794
1795 if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1798 shift
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1803 shift
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1805 fi
1806 fi
1807 fi
1808 fi
1809 CC=$ac_cv_prog_CC
1810 if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818 fi
1819 if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1821 for ac_prog in cl
1822 do
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1835 do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1843 fi
1844 done
1845 done
1846
1847 fi
1848 fi
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1856 fi
1857
1858 test -n "$CC" && break
1859 done
1860 fi
1861 if test -z "$CC"; then
1862 ac_ct_CC=$CC
1863 for ac_prog in cl
1864 do
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866 set dummy $ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1885 fi
1886 done
1887 done
1888
1889 fi
1890 fi
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1895 else
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1898 fi
1899
1900 test -n "$ac_ct_CC" && break
1901 done
1902
1903 CC=$ac_ct_CC
1904 fi
1905
1906 fi
1907
1908
1909 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }; }
1916
1917 # Provide some information about the compiler.
1918 echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920 ac_compiler=`set X $ac_compile; echo $2`
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936
1937 cat >conftest.$ac_ext <<_ACEOF
1938 /* confdefs.h. */
1939 _ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1943
1944 int
1945 main ()
1946 {
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1956 # of exeext.
1957 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967 # resort.
1968
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971 ac_cv_exeext=
1972 # b.out is created by i960 compilers.
1973 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974 do
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978 ;;
1979 conftest.$ac_ext )
1980 # This is the source file.
1981 ;;
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1993 * )
1994 break;;
1995 esac
1996 done
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&2;}
2007 { (exit 77); exit 77; }; }; }
2008 fi
2009
2010 ac_exeext=$ac_cv_exeext
2011 echo "$as_me:$LINENO: result: $ac_file" >&5
2012 echo "${ECHO_T}$ac_file" >&6
2013
2014 # Check the compiler produces executables we can run. If not, either
2015 # the compiler is broken, or we cross compile.
2016 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019 # If not cross compiling, check that we can run a simple program.
2020 if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&2;}
2040 { (exit 1); exit 1; }; }; }
2041 fi
2042 fi
2043 fi
2044 echo "$as_me:$LINENO: result: yes" >&5
2045 echo "${ECHO_T}yes" >&6
2046
2047 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048 ac_clean_files=$ac_clean_files_save
2049 # Check the compiler produces executables we can run. If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054 echo "${ECHO_T}$cross_compiling" >&6
2055
2056 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065 # work properly (i.e., refer to `conftest.exe'), while it won't with
2066 # `rm'.
2067 for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2069 case $ac_file in
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 export ac_cv_exeext
2073 break;;
2074 * ) break;;
2075 esac
2076 done
2077 else
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }; }
2085 fi
2086
2087 rm -f conftest$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089 echo "${ECHO_T}$ac_cv_exeext" >&6
2090
2091 rm -f conftest.$ac_ext
2092 EXEEXT=$ac_cv_exeext
2093 ac_exeext=$EXEEXT
2094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096 if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h. */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2105
2106 int
2107 main ()
2108 {
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 rm -f conftest.o conftest.obj
2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126 done
2127 else
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2130
2131 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }; }
2138 fi
2139
2140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2141 fi
2142 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143 echo "${ECHO_T}$ac_cv_objext" >&6
2144 OBJEXT=$ac_cv_objext
2145 ac_objext=$OBJEXT
2146 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h. */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2157
2158 int
2159 main ()
2160 {
2161 #ifndef __GNUC__
2162 choke me
2163 #endif
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_compiler_gnu=yes
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_compiler_gnu=no
2197 fi
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2200
2201 fi
2202 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2203 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2204 GCC=`test $ac_compiler_gnu = yes && echo yes`
2205 ac_test_CFLAGS=${CFLAGS+set}
2206 ac_save_CFLAGS=$CFLAGS
2207 CFLAGS="-g"
2208 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2209 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2210 if test "${ac_cv_prog_cc_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h. */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2219
2220 int
2221 main ()
2222 {
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2231 ac_status=$?
2232 grep -v '^ *+' conftest.er1 >conftest.err
2233 rm -f conftest.er1
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 (eval $ac_try) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2250 ac_cv_prog_cc_g=yes
2251 else
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 ac_cv_prog_cc_g=no
2256 fi
2257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258 fi
2259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2260 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2261 if test "$ac_test_CFLAGS" = set; then
2262 CFLAGS=$ac_save_CFLAGS
2263 elif test $ac_cv_prog_cc_g = yes; then
2264 if test "$GCC" = yes; then
2265 CFLAGS="-g -O2"
2266 else
2267 CFLAGS="-g"
2268 fi
2269 else
2270 if test "$GCC" = yes; then
2271 CFLAGS="-O2"
2272 else
2273 CFLAGS=
2274 fi
2275 fi
2276 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2277 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 ac_cv_prog_cc_stdc=no
2282 ac_save_CC=$CC
2283 cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h. */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2289 #include <stdarg.h>
2290 #include <stdio.h>
2291 #include <sys/types.h>
2292 #include <sys/stat.h>
2293 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2294 struct buf { int x; };
2295 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2296 static char *e (p, i)
2297 char **p;
2298 int i;
2299 {
2300 return p[i];
2301 }
2302 static char *f (char * (*g) (char **, int), char **p, ...)
2303 {
2304 char *s;
2305 va_list v;
2306 va_start (v,p);
2307 s = g (p, va_arg (v,int));
2308 va_end (v);
2309 return s;
2310 }
2311
2312 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2313 function prototypes and stuff, but not '\xHH' hex character constants.
2314 These don't provoke an error unfortunately, instead are silently treated
2315 as 'x'. The following induces an error, until -std1 is added to get
2316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2317 array size at least. It's necessary to write '\x00'==0 to get something
2318 that's true only with -std1. */
2319 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2320
2321 int test (int i, double x);
2322 struct s1 {int (*f) (int a);};
2323 struct s2 {int (*f) (double a);};
2324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2325 int argc;
2326 char **argv;
2327 int
2328 main ()
2329 {
2330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2331 ;
2332 return 0;
2333 }
2334 _ACEOF
2335 # Don't try gcc -ansi; that turns off useful extensions and
2336 # breaks some systems' header files.
2337 # AIX -qlanglvl=ansi
2338 # Ultrix and OSF/1 -std1
2339 # HP-UX 10.20 and later -Ae
2340 # HP-UX older versions -Aa -D_HPUX_SOURCE
2341 # SVR4 -Xc -D__EXTENSIONS__
2342 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2343 do
2344 CC="$ac_save_CC $ac_arg"
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cc_stdc=$ac_arg
2368 break
2369 else
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2372
2373 fi
2374 rm -f conftest.err conftest.$ac_objext
2375 done
2376 rm -f conftest.$ac_ext conftest.$ac_objext
2377 CC=$ac_save_CC
2378
2379 fi
2380
2381 case "x$ac_cv_prog_cc_stdc" in
2382 x|xno)
2383 echo "$as_me:$LINENO: result: none needed" >&5
2384 echo "${ECHO_T}none needed" >&6 ;;
2385 *)
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2387 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2388 CC="$CC $ac_cv_prog_cc_stdc" ;;
2389 esac
2390
2391 # Some people use a C++ compiler to compile C. Since we use `exit',
2392 # in C++ we need to declare it. In case someone uses the same compiler
2393 # for both compiling C and C++ we need to have the C++ compiler decide
2394 # the declaration of exit, since it's the most demanding environment.
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #ifndef __cplusplus
2397 choke me
2398 #endif
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 for ac_declaration in \
2423 '' \
2424 'extern "C" void std::exit (int) throw (); using std::exit;' \
2425 'extern "C" void std::exit (int); using std::exit;' \
2426 'extern "C" void exit (int) throw ();' \
2427 'extern "C" void exit (int);' \
2428 'void exit (int);'
2429 do
2430 cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h. */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2436 $ac_declaration
2437 #include <stdlib.h>
2438 int
2439 main ()
2440 {
2441 exit (42);
2442 ;
2443 return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 :
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 continue
2474 fi
2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h. */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2482 $ac_declaration
2483 int
2484 main ()
2485 {
2486 exit (42);
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 break
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 fi
2519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520 done
2521 rm -f conftest*
2522 if test -n "$ac_declaration"; then
2523 echo '#ifdef __cplusplus' >>confdefs.h
2524 echo $ac_declaration >>confdefs.h
2525 echo '#endif' >>confdefs.h
2526 fi
2527
2528 else
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532 fi
2533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2542 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2543 if test "${ac_cv_search_strerror+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 ac_func_search_save_LIBS=$LIBS
2547 ac_cv_search_strerror=no
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2554
2555 /* Override any gcc2 internal prototype to avoid an error. */
2556 #ifdef __cplusplus
2557 extern "C"
2558 #endif
2559 /* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2561 char strerror ();
2562 int
2563 main ()
2564 {
2565 strerror ();
2566 ;
2567 return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext conftest$ac_exeext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest$ac_exeext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_cv_search_strerror="none required"
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597 fi
2598 rm -f conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600 if test "$ac_cv_search_strerror" = no; then
2601 for ac_lib in cposix; do
2602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2609
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 #ifdef __cplusplus
2612 extern "C"
2613 #endif
2614 /* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616 char strerror ();
2617 int
2618 main ()
2619 {
2620 strerror ();
2621 ;
2622 return 0;
2623 }
2624 _ACEOF
2625 rm -f conftest.$ac_objext conftest$ac_exeext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_search_strerror="-l$ac_lib"
2648 break
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2652
2653 fi
2654 rm -f conftest.err conftest.$ac_objext \
2655 conftest$ac_exeext conftest.$ac_ext
2656 done
2657 fi
2658 LIBS=$ac_func_search_save_LIBS
2659 fi
2660 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2661 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2662 if test "$ac_cv_search_strerror" != no; then
2663 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2664
2665 fi
2666
2667
2668 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2669 am__api_version="1.9"
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2676 # AIX /bin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2685 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2686 if test -z "$INSTALL"; then
2687 if test "${ac_cv_path_install+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696 case $as_dir/ in
2697 ./ | .// | /cC/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2700 /usr/ucb/* ) ;;
2701 *)
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2711 :
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2715 :
2716 else
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2728 fi
2729 fi
2730 fi
2731 done
2732 done
2733 ;;
2734 esac
2735 done
2736
2737 rm -rf conftest.one conftest.two conftest.dir
2738
2739 fi
2740 if test "${ac_cv_path_install+set}" = set; then
2741 INSTALL=$ac_cv_path_install
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL=$ac_install_sh
2748 fi
2749 fi
2750 echo "$as_me:$LINENO: result: $INSTALL" >&5
2751 echo "${ECHO_T}$INSTALL" >&6
2752
2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754 # It thinks the first close brace ends the variable substitution.
2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2758
2759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
2761 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2762 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2763 # Just in case
2764 sleep 1
2765 echo timestamp > conftest.file
2766 # Do `set' in a subshell so we don't clobber the current shell's
2767 # arguments. Must try -L first in case configure is actually a
2768 # symlink; some systems play weird games with the mod time of symlinks
2769 # (eg FreeBSD returns the mod time of the symlink's containing
2770 # directory).
2771 if (
2772 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2773 if test "$*" = "X"; then
2774 # -L didn't work.
2775 set X `ls -t $srcdir/configure conftest.file`
2776 fi
2777 rm -f conftest.file
2778 if test "$*" != "X $srcdir/configure conftest.file" \
2779 && test "$*" != "X conftest.file $srcdir/configure"; then
2780
2781 # If neither matched, then we have a broken ls. This can happen
2782 # if, for instance, CONFIG_SHELL is bash and it inherits a
2783 # broken ls alias from the environment. This has actually
2784 # happened. Such a system could not be considered "sane".
2785 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2786 alias in your environment" >&5
2787 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2788 alias in your environment" >&2;}
2789 { (exit 1); exit 1; }; }
2790 fi
2791
2792 test "$2" = conftest.file
2793 )
2794 then
2795 # Ok.
2796 :
2797 else
2798 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2799 Check your system clock" >&5
2800 echo "$as_me: error: newly created file is older than distributed files!
2801 Check your system clock" >&2;}
2802 { (exit 1); exit 1; }; }
2803 fi
2804 echo "$as_me:$LINENO: result: yes" >&5
2805 echo "${ECHO_T}yes" >&6
2806 test "$program_prefix" != NONE &&
2807 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2808 # Use a double $ so make ignores it.
2809 test "$program_suffix" != NONE &&
2810 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2811 # Double any \ or $. echo might interpret backslashes.
2812 # By default was `s,x,x', remove it if useless.
2813 cat <<\_ACEOF >conftest.sed
2814 s/[\\$]/&&/g;s/;s,x,x,$//
2815 _ACEOF
2816 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2817 rm conftest.sed
2818
2819 # expand $ac_aux_dir to an absolute path
2820 am_aux_dir=`cd $ac_aux_dir && pwd`
2821
2822 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2823 # Use eval to expand $SHELL
2824 if eval "$MISSING --run true"; then
2825 am_missing_run="$MISSING --run "
2826 else
2827 am_missing_run=
2828 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2829 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2830 fi
2831
2832 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2833 # We used to keeping the `.' as first argument, in order to
2834 # allow $(mkdir_p) to be used without argument. As in
2835 # $(mkdir_p) $(somedir)
2836 # where $(somedir) is conditionally defined. However this is wrong
2837 # for two reasons:
2838 # 1. if the package is installed by a user who cannot write `.'
2839 # make install will fail,
2840 # 2. the above comment should most certainly read
2841 # $(mkdir_p) $(DESTDIR)$(somedir)
2842 # so it does not work when $(somedir) is undefined and
2843 # $(DESTDIR) is not.
2844 # To support the latter case, we have to write
2845 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2846 # so the `.' trick is pointless.
2847 mkdir_p='mkdir -p --'
2848 else
2849 # On NextStep and OpenStep, the `mkdir' command does not
2850 # recognize any option. It will interpret all options as
2851 # directories to create, and then abort because `.' already
2852 # exists.
2853 for d in ./-p ./--version;
2854 do
2855 test -d $d && rmdir $d
2856 done
2857 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2858 if test -f "$ac_aux_dir/mkinstalldirs"; then
2859 mkdir_p='$(mkinstalldirs)'
2860 else
2861 mkdir_p='$(install_sh) -d'
2862 fi
2863 fi
2864
2865 for ac_prog in gawk mawk nawk awk
2866 do
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868 set dummy $ac_prog; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_AWK+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 if test -n "$AWK"; then
2875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_AWK="$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888 done
2889 done
2890
2891 fi
2892 fi
2893 AWK=$ac_cv_prog_AWK
2894 if test -n "$AWK"; then
2895 echo "$as_me:$LINENO: result: $AWK" >&5
2896 echo "${ECHO_T}$AWK" >&6
2897 else
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900 fi
2901
2902 test -n "$AWK" && break
2903 done
2904
2905 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2907 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2908 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 cat >conftest.make <<\_ACEOF
2912 all:
2913 @echo 'ac_maketemp="$(MAKE)"'
2914 _ACEOF
2915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2916 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2917 if test -n "$ac_maketemp"; then
2918 eval ac_cv_prog_make_${ac_make}_set=yes
2919 else
2920 eval ac_cv_prog_make_${ac_make}_set=no
2921 fi
2922 rm -f conftest.make
2923 fi
2924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2927 SET_MAKE=
2928 else
2929 echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6
2931 SET_MAKE="MAKE=${MAKE-make}"
2932 fi
2933
2934 rm -rf .tst 2>/dev/null
2935 mkdir .tst 2>/dev/null
2936 if test -d .tst; then
2937 am__leading_dot=.
2938 else
2939 am__leading_dot=_
2940 fi
2941 rmdir .tst 2>/dev/null
2942
2943 DEPDIR="${am__leading_dot}deps"
2944
2945 ac_config_commands="$ac_config_commands depfiles"
2946
2947
2948 am_make=${MAKE-make}
2949 cat > confinc << 'END'
2950 am__doit:
2951 @echo done
2952 .PHONY: am__doit
2953 END
2954 # If we don't find an include directive, just comment out the code.
2955 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2957 am__include="#"
2958 am__quote=
2959 _am_result=none
2960 # First try GNU make style include.
2961 echo "include confinc" > confmf
2962 # We grep out `Entering directory' and `Leaving directory'
2963 # messages which can occur if `w' ends up in MAKEFLAGS.
2964 # In particular we don't look at `^make:' because GNU make might
2965 # be invoked under some other name (usually "gmake"), in which
2966 # case it prints its new name instead of `make'.
2967 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2968 am__include=include
2969 am__quote=
2970 _am_result=GNU
2971 fi
2972 # Now try BSD make style include.
2973 if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
2977 am__quote="\""
2978 _am_result=BSD
2979 fi
2980 fi
2981
2982
2983 echo "$as_me:$LINENO: result: $_am_result" >&5
2984 echo "${ECHO_T}$_am_result" >&6
2985 rm -f confinc confmf
2986
2987 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988 if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2990
2991 fi;
2992 if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2995 fi
2996
2997
2998 if test "x$enable_dependency_tracking" != xno; then
2999 AMDEP_TRUE=
3000 AMDEP_FALSE='#'
3001 else
3002 AMDEP_TRUE='#'
3003 AMDEP_FALSE=
3004 fi
3005
3006
3007
3008 # test to see if srcdir already configured
3009 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3010 test -f $srcdir/config.status; then
3011 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3012 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3013 { (exit 1); exit 1; }; }
3014 fi
3015
3016 # test whether we have cygpath
3017 if test -z "$CYGPATH_W"; then
3018 if (cygpath --version) >/dev/null 2>/dev/null; then
3019 CYGPATH_W='cygpath -w'
3020 else
3021 CYGPATH_W=echo
3022 fi
3023 fi
3024
3025
3026 # Define the identity of the package.
3027 PACKAGE=binutils
3028 VERSION=${BFD_VERSION}
3029
3030
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE "$PACKAGE"
3033 _ACEOF
3034
3035
3036 cat >>confdefs.h <<_ACEOF
3037 #define VERSION "$VERSION"
3038 _ACEOF
3039
3040 # Some tools Automake needs.
3041
3042 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3043
3044
3045 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3046
3047
3048 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3049
3050
3051 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3052
3053
3054 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3055
3056 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3057
3058 # Installed binaries are usually stripped using `strip' when the user
3059 # run `make install-strip'. However `strip' might not be the right
3060 # tool to use in cross-compilation environments, therefore Automake
3061 # will honor the `STRIP' environment variable to overrule this program.
3062 if test "$cross_compiling" != no; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}strip; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_STRIP+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 if test -n "$STRIP"; then
3072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087
3088 fi
3089 fi
3090 STRIP=$ac_cv_prog_STRIP
3091 if test -n "$STRIP"; then
3092 echo "$as_me:$LINENO: result: $STRIP" >&5
3093 echo "${ECHO_T}$STRIP" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 fi
3098
3099 fi
3100 if test -z "$ac_cv_prog_STRIP"; then
3101 ac_ct_STRIP=$STRIP
3102 # Extract the first word of "strip", so it can be a program name with args.
3103 set dummy strip; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 if test -n "$ac_ct_STRIP"; then
3110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_STRIP="strip"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125
3126 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3127 fi
3128 fi
3129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3130 if test -n "$ac_ct_STRIP"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3132 echo "${ECHO_T}$ac_ct_STRIP" >&6
3133 else
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3136 fi
3137
3138 STRIP=$ac_ct_STRIP
3139 else
3140 STRIP="$ac_cv_prog_STRIP"
3141 fi
3142
3143 fi
3144 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3145
3146 # We need awk for the "check" target. The system "awk" is bad on
3147 # some platforms.
3148 # Always define AMTAR for backward compatibility.
3149
3150 AMTAR=${AMTAR-"${am_missing_run}tar"}
3151
3152 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3153
3154
3155
3156
3157 depcc="$CC" am_compiler_list=
3158
3159 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3160 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3161 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3165 # We make a subdir and do the tests there. Otherwise we can end up
3166 # making bogus files that we don't know about and never remove. For
3167 # instance it was reported that on HP-UX the gcc test will end up
3168 # making a dummy file named `D' -- because `-MD' means `put the output
3169 # in D'.
3170 mkdir conftest.dir
3171 # Copy depcomp to subdir because otherwise we won't find it if we're
3172 # using a relative directory.
3173 cp "$am_depcomp" conftest.dir
3174 cd conftest.dir
3175 # We will build objects and dependencies in a subdirectory because
3176 # it helps to detect inapplicable dependency modes. For instance
3177 # both Tru64's cc and ICC support -MD to output dependencies as a
3178 # side effect of compilation, but ICC will put the dependencies in
3179 # the current directory while Tru64 will put them in the object
3180 # directory.
3181 mkdir sub
3182
3183 am_cv_CC_dependencies_compiler_type=none
3184 if test "$am_compiler_list" = ""; then
3185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3186 fi
3187 for depmode in $am_compiler_list; do
3188 # Setup a source with many dependencies, because some compilers
3189 # like to wrap large dependency lists on column 80 (with \), and
3190 # we should not choose a depcomp mode which is confused by this.
3191 #
3192 # We need to recreate these files for each test, as the compiler may
3193 # overwrite some of them when testing with obscure command lines.
3194 # This happens at least with the AIX C compiler.
3195 : > sub/conftest.c
3196 for i in 1 2 3 4 5 6; do
3197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3198 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3199 # Solaris 8's {/usr,}/bin/sh.
3200 touch sub/conftst$i.h
3201 done
3202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3203
3204 case $depmode in
3205 nosideeffect)
3206 # after this tag, mechanisms are not by side-effect, so they'll
3207 # only be used when explicitly requested
3208 if test "x$enable_dependency_tracking" = xyes; then
3209 continue
3210 else
3211 break
3212 fi
3213 ;;
3214 none) break ;;
3215 esac
3216 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3217 # mode. It turns out that the SunPro C++ compiler does not properly
3218 # handle `-M -o', and we need to detect this.
3219 if depmode=$depmode \
3220 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3222 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3223 >/dev/null 2>conftest.err &&
3224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3225 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3227 # icc doesn't choke on unknown options, it will just issue warnings
3228 # or remarks (even with -Werror). So we grep stderr for any message
3229 # that says an option was ignored or not supported.
3230 # When given -MP, icc 7.0 and 7.1 complain thusly:
3231 # icc: Command line warning: ignoring option '-M'; no argument required
3232 # The diagnosis changed in icc 8.0:
3233 # icc: Command line remark: option '-MP' not supported
3234 if (grep 'ignoring option' conftest.err ||
3235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3236 am_cv_CC_dependencies_compiler_type=$depmode
3237 break
3238 fi
3239 fi
3240 done
3241
3242 cd ..
3243 rm -rf conftest.dir
3244 else
3245 am_cv_CC_dependencies_compiler_type=none
3246 fi
3247
3248 fi
3249 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3250 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3251 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3252
3253
3254
3255 if
3256 test "x$enable_dependency_tracking" != xno \
3257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3258 am__fastdepCC_TRUE=
3259 am__fastdepCC_FALSE='#'
3260 else
3261 am__fastdepCC_TRUE='#'
3262 am__fastdepCC_FALSE=
3263 fi
3264
3265
3266
3267
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 echo "$as_me:$LINENO: result: $CC" >&5
3303 echo "${ECHO_T}$CC" >&6
3304 else
3305 echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307 fi
3308
3309 fi
3310 if test -z "$ac_cv_prog_CC"; then
3311 ac_ct_CC=$CC
3312 # Extract the first word of "gcc", so it can be a program name with args.
3313 set dummy gcc; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_CC="gcc"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335
3336 fi
3337 fi
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3341 echo "${ECHO_T}$ac_ct_CC" >&6
3342 else
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3345 fi
3346
3347 CC=$ac_ct_CC
3348 else
3349 CC="$ac_cv_prog_CC"
3350 fi
3351
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355 set dummy ${ac_tool_prefix}cc; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_prog_CC+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_CC="${ac_tool_prefix}cc"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382 echo "$as_me:$LINENO: result: $CC" >&5
3383 echo "${ECHO_T}$CC" >&6
3384 else
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3387 fi
3388
3389 fi
3390 if test -z "$ac_cv_prog_CC"; then
3391 ac_ct_CC=$CC
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 echo "$as_me:$LINENO: checking for $ac_word" >&5
3395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="cc"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415
3416 fi
3417 fi
3418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419 if test -n "$ac_ct_CC"; then
3420 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3421 echo "${ECHO_T}$ac_ct_CC" >&6
3422 else
3423 echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6
3425 fi
3426
3427 CC=$ac_ct_CC
3428 else
3429 CC="$ac_cv_prog_CC"
3430 fi
3431
3432 fi
3433 if test -z "$CC"; then
3434 # Extract the first word of "cc", so it can be a program name with args.
3435 set dummy cc; ac_word=$2
3436 echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_prog_CC+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 ac_prog_rejected=no
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3453 ac_prog_rejected=yes
3454 continue
3455 fi
3456 ac_cv_prog_CC="cc"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462
3463 if test $ac_prog_rejected = yes; then
3464 # We found a bogon in the path, so make sure we never use it.
3465 set dummy $ac_cv_prog_CC
3466 shift
3467 if test $# != 0; then
3468 # We chose a different compiler from the bogus one.
3469 # However, it has the same basename, so the bogon will be chosen
3470 # first if we set CC to just the basename; use the full file name.
3471 shift
3472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3473 fi
3474 fi
3475 fi
3476 fi
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 echo "$as_me:$LINENO: result: $CC" >&5
3480 echo "${ECHO_T}$CC" >&6
3481 else
3482 echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6
3484 fi
3485
3486 fi
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl
3490 do
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3495 if test "${ac_cv_prog_CC+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514
3515 fi
3516 fi
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519 echo "$as_me:$LINENO: result: $CC" >&5
3520 echo "${ECHO_T}$CC" >&6
3521 else
3522 echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3524 fi
3525
3526 test -n "$CC" && break
3527 done
3528 fi
3529 if test -z "$CC"; then
3530 ac_ct_CC=$CC
3531 for ac_prog in cl
3532 do
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_CC="$ac_prog"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556
3557 fi
3558 fi
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3562 echo "${ECHO_T}$ac_ct_CC" >&6
3563 else
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566 fi
3567
3568 test -n "$ac_ct_CC" && break
3569 done
3570
3571 CC=$ac_ct_CC
3572 fi
3573
3574 fi
3575
3576
3577 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3578 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&5
3581 echo "$as_me: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&2;}
3583 { (exit 1); exit 1; }; }; }
3584
3585 # Provide some information about the compiler.
3586 echo "$as_me:$LINENO:" \
3587 "checking for C compiler version" >&5
3588 ac_compiler=`set X $ac_compile; echo $2`
3589 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3590 (eval $ac_compiler --version </dev/null >&5) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }
3594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3595 (eval $ac_compiler -v </dev/null >&5) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3600 (eval $ac_compiler -V </dev/null >&5) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }
3604
3605 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616
3617 int
3618 main ()
3619 {
3620 #ifndef __GNUC__
3621 choke me
3622 #endif
3623
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_compiler_gnu=yes
3651 else
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 ac_compiler_gnu=no
3656 fi
3657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659
3660 fi
3661 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3662 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3663 GCC=`test $ac_compiler_gnu = yes && echo yes`
3664 ac_test_CFLAGS=${CFLAGS+set}
3665 ac_save_CFLAGS=$CFLAGS
3666 CFLAGS="-g"
3667 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3669 if test "${ac_cv_prog_cc_g+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 rm -f conftest.$ac_objext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_cv_prog_cc_g=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 ac_cv_prog_cc_g=no
3715 fi
3716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3717 fi
3718 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3719 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3720 if test "$ac_test_CFLAGS" = set; then
3721 CFLAGS=$ac_save_CFLAGS
3722 elif test $ac_cv_prog_cc_g = yes; then
3723 if test "$GCC" = yes; then
3724 CFLAGS="-g -O2"
3725 else
3726 CFLAGS="-g"
3727 fi
3728 else
3729 if test "$GCC" = yes; then
3730 CFLAGS="-O2"
3731 else
3732 CFLAGS=
3733 fi
3734 fi
3735 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3736 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3737 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 ac_cv_prog_cc_stdc=no
3741 ac_save_CC=$CC
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <stdarg.h>
3749 #include <stdio.h>
3750 #include <sys/types.h>
3751 #include <sys/stat.h>
3752 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3753 struct buf { int x; };
3754 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3755 static char *e (p, i)
3756 char **p;
3757 int i;
3758 {
3759 return p[i];
3760 }
3761 static char *f (char * (*g) (char **, int), char **p, ...)
3762 {
3763 char *s;
3764 va_list v;
3765 va_start (v,p);
3766 s = g (p, va_arg (v,int));
3767 va_end (v);
3768 return s;
3769 }
3770
3771 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3772 function prototypes and stuff, but not '\xHH' hex character constants.
3773 These don't provoke an error unfortunately, instead are silently treated
3774 as 'x'. The following induces an error, until -std1 is added to get
3775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3776 array size at least. It's necessary to write '\x00'==0 to get something
3777 that's true only with -std1. */
3778 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3779
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 int argc;
3785 char **argv;
3786 int
3787 main ()
3788 {
3789 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 # Don't try gcc -ansi; that turns off useful extensions and
3795 # breaks some systems' header files.
3796 # AIX -qlanglvl=ansi
3797 # Ultrix and OSF/1 -std1
3798 # HP-UX 10.20 and later -Ae
3799 # HP-UX older versions -Aa -D_HPUX_SOURCE
3800 # SVR4 -Xc -D__EXTENSIONS__
3801 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3802 do
3803 CC="$ac_save_CC $ac_arg"
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_cv_prog_cc_stdc=$ac_arg
3827 break
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 fi
3833 rm -f conftest.err conftest.$ac_objext
3834 done
3835 rm -f conftest.$ac_ext conftest.$ac_objext
3836 CC=$ac_save_CC
3837
3838 fi
3839
3840 case "x$ac_cv_prog_cc_stdc" in
3841 x|xno)
3842 echo "$as_me:$LINENO: result: none needed" >&5
3843 echo "${ECHO_T}none needed" >&6 ;;
3844 *)
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3846 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3847 CC="$CC $ac_cv_prog_cc_stdc" ;;
3848 esac
3849
3850 # Some people use a C++ compiler to compile C. Since we use `exit',
3851 # in C++ we need to declare it. In case someone uses the same compiler
3852 # for both compiling C and C++ we need to have the C++ compiler decide
3853 # the declaration of exit, since it's the most demanding environment.
3854 cat >conftest.$ac_ext <<_ACEOF
3855 #ifndef __cplusplus
3856 choke me
3857 #endif
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 for ac_declaration in \
3882 '' \
3883 'extern "C" void std::exit (int) throw (); using std::exit;' \
3884 'extern "C" void std::exit (int); using std::exit;' \
3885 'extern "C" void exit (int) throw ();' \
3886 'extern "C" void exit (int);' \
3887 'void exit (int);'
3888 do
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 $ac_declaration
3896 #include <stdlib.h>
3897 int
3898 main ()
3899 {
3900 exit (42);
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 :
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 continue
3933 fi
3934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 $ac_declaration
3942 int
3943 main ()
3944 {
3945 exit (42);
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_c_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 break
3973 else
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 fi
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 done
3980 rm -f conftest*
3981 if test -n "$ac_declaration"; then
3982 echo '#ifdef __cplusplus' >>confdefs.h
3983 echo $ac_declaration >>confdefs.h
3984 echo '#endif' >>confdefs.h
3985 fi
3986
3987 else
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 fi
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998
3999
4000 cat >>confdefs.h <<\_ACEOF
4001 #define _GNU_SOURCE 1
4002 _ACEOF
4003
4004
4005 ac_ext=c
4006 ac_cpp='$CPP $CPPFLAGS'
4007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4011 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4012 # On Suns, sometimes $CPP names a directory.
4013 if test -n "$CPP" && test -d "$CPP"; then
4014 CPP=
4015 fi
4016 if test -z "$CPP"; then
4017 if test "${ac_cv_prog_CPP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 # Double quotes because CPP needs to be expanded
4021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4022 do
4023 ac_preproc_ok=false
4024 for ac_c_preproc_warn_flag in '' yes
4025 do
4026 # Use a header file that comes with gcc, so configuring glibc
4027 # with a fresh cross-compiler works.
4028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4029 # <limits.h> exists even on freestanding compilers.
4030 # On the NeXT, cc -E runs the code through the compiler's parser,
4031 # not just through cpp. "Syntax error" is here to catch this case.
4032 cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h. */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038 #ifdef __STDC__
4039 # include <limits.h>
4040 #else
4041 # include <assert.h>
4042 #endif
4043 Syntax error
4044 _ACEOF
4045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } >/dev/null; then
4053 if test -s conftest.err; then
4054 ac_cpp_err=$ac_c_preproc_warn_flag
4055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4056 else
4057 ac_cpp_err=
4058 fi
4059 else
4060 ac_cpp_err=yes
4061 fi
4062 if test -z "$ac_cpp_err"; then
4063 :
4064 else
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 # Broken: fails on valid input.
4069 continue
4070 fi
4071 rm -f conftest.err conftest.$ac_ext
4072
4073 # OK, works on sane cases. Now check whether non-existent headers
4074 # can be detected and how.
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h. */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #include <ac_nonexistent.h>
4082 _ACEOF
4083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } >/dev/null; then
4091 if test -s conftest.err; then
4092 ac_cpp_err=$ac_c_preproc_warn_flag
4093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4094 else
4095 ac_cpp_err=
4096 fi
4097 else
4098 ac_cpp_err=yes
4099 fi
4100 if test -z "$ac_cpp_err"; then
4101 # Broken: success on invalid input.
4102 continue
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 # Passes both tests.
4108 ac_preproc_ok=:
4109 break
4110 fi
4111 rm -f conftest.err conftest.$ac_ext
4112
4113 done
4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115 rm -f conftest.err conftest.$ac_ext
4116 if $ac_preproc_ok; then
4117 break
4118 fi
4119
4120 done
4121 ac_cv_prog_CPP=$CPP
4122
4123 fi
4124 CPP=$ac_cv_prog_CPP
4125 else
4126 ac_cv_prog_CPP=$CPP
4127 fi
4128 echo "$as_me:$LINENO: result: $CPP" >&5
4129 echo "${ECHO_T}$CPP" >&6
4130 ac_preproc_ok=false
4131 for ac_c_preproc_warn_flag in '' yes
4132 do
4133 # Use a header file that comes with gcc, so configuring glibc
4134 # with a fresh cross-compiler works.
4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 # <limits.h> exists even on freestanding compilers.
4137 # On the NeXT, cc -E runs the code through the compiler's parser,
4138 # not just through cpp. "Syntax error" is here to catch this case.
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #ifdef __STDC__
4146 # include <limits.h>
4147 #else
4148 # include <assert.h>
4149 #endif
4150 Syntax error
4151 _ACEOF
4152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } >/dev/null; then
4160 if test -s conftest.err; then
4161 ac_cpp_err=$ac_c_preproc_warn_flag
4162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4163 else
4164 ac_cpp_err=
4165 fi
4166 else
4167 ac_cpp_err=yes
4168 fi
4169 if test -z "$ac_cpp_err"; then
4170 :
4171 else
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175 # Broken: fails on valid input.
4176 continue
4177 fi
4178 rm -f conftest.err conftest.$ac_ext
4179
4180 # OK, works on sane cases. Now check whether non-existent headers
4181 # can be detected and how.
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } >/dev/null; then
4198 if test -s conftest.err; then
4199 ac_cpp_err=$ac_c_preproc_warn_flag
4200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4201 else
4202 ac_cpp_err=
4203 fi
4204 else
4205 ac_cpp_err=yes
4206 fi
4207 if test -z "$ac_cpp_err"; then
4208 # Broken: success on invalid input.
4209 continue
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 # Passes both tests.
4215 ac_preproc_ok=:
4216 break
4217 fi
4218 rm -f conftest.err conftest.$ac_ext
4219
4220 done
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then
4224 :
4225 else
4226 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4227 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details." >&5
4230 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&2;}
4232 { (exit 1); exit 1; }; }; }
4233 fi
4234
4235 ac_ext=c
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240
4241
4242 echo "$as_me:$LINENO: checking for egrep" >&5
4243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4244 if test "${ac_cv_prog_egrep+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4248 then ac_cv_prog_egrep='grep -E'
4249 else ac_cv_prog_egrep='egrep'
4250 fi
4251 fi
4252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4254 EGREP=$ac_cv_prog_egrep
4255
4256
4257 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4259 if test "${ac_cv_header_stdc+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h. */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268 #include <stdlib.h>
4269 #include <stdarg.h>
4270 #include <string.h>
4271 #include <float.h>
4272
4273 int
4274 main ()
4275 {
4276
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_header_stdc=yes
4304 else
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308 ac_cv_header_stdc=no
4309 fi
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311
4312 if test $ac_cv_header_stdc = yes; then
4313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <string.h>
4321
4322 _ACEOF
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324 $EGREP "memchr" >/dev/null 2>&1; then
4325 :
4326 else
4327 ac_cv_header_stdc=no
4328 fi
4329 rm -f conftest*
4330
4331 fi
4332
4333 if test $ac_cv_header_stdc = yes; then
4334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h. */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 #include <stdlib.h>
4342
4343 _ACEOF
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "free" >/dev/null 2>&1; then
4346 :
4347 else
4348 ac_cv_header_stdc=no
4349 fi
4350 rm -f conftest*
4351
4352 fi
4353
4354 if test $ac_cv_header_stdc = yes; then
4355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4356 if test "$cross_compiling" = yes; then
4357 :
4358 else
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h. */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 #include <ctype.h>
4366 #if ((' ' & 0x0FF) == 0x020)
4367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4369 #else
4370 # define ISLOWER(c) \
4371 (('a' <= (c) && (c) <= 'i') \
4372 || ('j' <= (c) && (c) <= 'r') \
4373 || ('s' <= (c) && (c) <= 'z'))
4374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4375 #endif
4376
4377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4378 int
4379 main ()
4380 {
4381 int i;
4382 for (i = 0; i < 256; i++)
4383 if (XOR (islower (i), ISLOWER (i))
4384 || toupper (i) != TOUPPER (i))
4385 exit(2);
4386 exit (0);
4387 }
4388 _ACEOF
4389 rm -f conftest$ac_exeext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4391 (eval $ac_link) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 :
4401 else
4402 echo "$as_me: program exited with status $ac_status" >&5
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 ( exit $ac_status )
4407 ac_cv_header_stdc=no
4408 fi
4409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4410 fi
4411 fi
4412 fi
4413 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4414 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4415 if test $ac_cv_header_stdc = yes; then
4416
4417 cat >>confdefs.h <<\_ACEOF
4418 #define STDC_HEADERS 1
4419 _ACEOF
4420
4421 fi
4422
4423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4434 inttypes.h stdint.h unistd.h
4435 do
4436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4437 echo "$as_me:$LINENO: checking for $ac_header" >&5
4438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 $ac_includes_default
4449
4450 #include <$ac_header>
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag"
4462 || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 eval "$as_ac_Header=yes"
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 eval "$as_ac_Header=no"
4480 fi
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4482 fi
4483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4486 cat >>confdefs.h <<_ACEOF
4487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4488 _ACEOF
4489
4490 fi
4491
4492 done
4493
4494
4495
4496 if test "${ac_cv_header_minix_config_h+set}" = set; then
4497 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4498 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4499 if test "${ac_cv_header_minix_config_h+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 fi
4502 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4503 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4504 else
4505 # Is the header compilable?
4506 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4507 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 $ac_includes_default
4515 #include <minix/config.h>
4516 _ACEOF
4517 rm -f conftest.$ac_objext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>conftest.er1
4520 ac_status=$?
4521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -z "$ac_c_werror_flag"
4527 || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 (eval $ac_try) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_header_compiler=yes
4540 else
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 ac_header_compiler=no
4545 fi
4546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4548 echo "${ECHO_T}$ac_header_compiler" >&6
4549
4550 # Is the header present?
4551 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4552 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 #include <minix/config.h>
4560 _ACEOF
4561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } >/dev/null; then
4569 if test -s conftest.err; then
4570 ac_cpp_err=$ac_c_preproc_warn_flag
4571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4572 else
4573 ac_cpp_err=
4574 fi
4575 else
4576 ac_cpp_err=yes
4577 fi
4578 if test -z "$ac_cpp_err"; then
4579 ac_header_preproc=yes
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 ac_header_preproc=no
4585 fi
4586 rm -f conftest.err conftest.$ac_ext
4587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4588 echo "${ECHO_T}$ac_header_preproc" >&6
4589
4590 # So? What about this header?
4591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4592 yes:no: )
4593 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4594 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4596 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4597 ac_header_preproc=yes
4598 ;;
4599 no:yes:* )
4600 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4601 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4603 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4605 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4607 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4611 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4612 (
4613 cat <<\_ASBOX
4614 ## ------------------------------------------ ##
4615 ## Report this to the AC_PACKAGE_NAME lists. ##
4616 ## ------------------------------------------ ##
4617 _ASBOX
4618 ) |
4619 sed "s/^/$as_me: WARNING: /" >&2
4620 ;;
4621 esac
4622 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4623 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4624 if test "${ac_cv_header_minix_config_h+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 ac_cv_header_minix_config_h=$ac_header_preproc
4628 fi
4629 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4630 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4631
4632 fi
4633 if test $ac_cv_header_minix_config_h = yes; then
4634 MINIX=yes
4635 else
4636 MINIX=
4637 fi
4638
4639
4640 if test "$MINIX" = yes; then
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define _POSIX_SOURCE 1
4644 _ACEOF
4645
4646
4647 cat >>confdefs.h <<\_ACEOF
4648 #define _POSIX_1_SOURCE 2
4649 _ACEOF
4650
4651
4652 cat >>confdefs.h <<\_ACEOF
4653 #define _MINIX 1
4654 _ACEOF
4655
4656 fi
4657
4658
4659
4660 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4661 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4662 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665 cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h. */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671
4672 # define __EXTENSIONS__ 1
4673 $ac_includes_default
4674 int
4675 main ()
4676 {
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_safe_to_define___extensions__=yes
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709 ac_cv_safe_to_define___extensions__=no
4710 fi
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4714 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4715 test $ac_cv_safe_to_define___extensions__ = yes &&
4716 cat >>confdefs.h <<\_ACEOF
4717 #define __EXTENSIONS__ 1
4718 _ACEOF
4719
4720 cat >>confdefs.h <<\_ACEOF
4721 #define _ALL_SOURCE 1
4722 _ACEOF
4723
4724 cat >>confdefs.h <<\_ACEOF
4725 #define _GNU_SOURCE 1
4726 _ACEOF
4727
4728 cat >>confdefs.h <<\_ACEOF
4729 #define _POSIX_PTHREAD_SEMANTICS 1
4730 _ACEOF
4731
4732 cat >>confdefs.h <<\_ACEOF
4733 #define _TANDEM_SOURCE 1
4734 _ACEOF
4735
4736
4737
4738
4739 macro_version='2.1a'
4740 macro_revision='1.2435'
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753 ltmain="$ac_aux_dir/ltmain.sh"
4754
4755 # Set options
4756
4757 enable_dlopen=no
4758
4759
4760 enable_win32_dll=no
4761
4762
4763 # Check whether --enable-shared or --disable-shared was given.
4764 if test "${enable_shared+set}" = set; then
4765 enableval="$enable_shared"
4766 p=${PACKAGE-default}
4767 case $enableval in
4768 yes) enable_shared=yes ;;
4769 no) enable_shared=no ;;
4770 *)
4771 enable_shared=no
4772 # Look at the argument we got. We use all the common list separators.
4773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4774 for pkg in $enableval; do
4775 IFS="$lt_save_ifs"
4776 if test "X$pkg" = "X$p"; then
4777 enable_shared=yes
4778 fi
4779 done
4780 IFS="$lt_save_ifs"
4781 ;;
4782 esac
4783 else
4784 enable_shared=yes
4785 fi;
4786
4787
4788
4789
4790
4791
4792
4793
4794 # Check whether --enable-static or --disable-static was given.
4795 if test "${enable_static+set}" = set; then
4796 enableval="$enable_static"
4797 p=${PACKAGE-default}
4798 case $enableval in
4799 yes) enable_static=yes ;;
4800 no) enable_static=no ;;
4801 *)
4802 enable_static=no
4803 # Look at the argument we got. We use all the common list separators.
4804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4805 for pkg in $enableval; do
4806 IFS="$lt_save_ifs"
4807 if test "X$pkg" = "X$p"; then
4808 enable_static=yes
4809 fi
4810 done
4811 IFS="$lt_save_ifs"
4812 ;;
4813 esac
4814 else
4815 enable_static=yes
4816 fi;
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 # Check whether --with-pic or --without-pic was given.
4827 if test "${with_pic+set}" = set; then
4828 withval="$with_pic"
4829 pic_mode="$withval"
4830 else
4831 pic_mode=default
4832 fi;
4833
4834 test -z "$pic_mode" && pic_mode=default
4835
4836
4837
4838
4839
4840
4841
4842 # Check whether --enable-fast-install or --disable-fast-install was given.
4843 if test "${enable_fast_install+set}" = set; then
4844 enableval="$enable_fast_install"
4845 p=${PACKAGE-default}
4846 case $enableval in
4847 yes) enable_fast_install=yes ;;
4848 no) enable_fast_install=no ;;
4849 *)
4850 enable_fast_install=no
4851 # Look at the argument we got. We use all the common list separators.
4852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4853 for pkg in $enableval; do
4854 IFS="$lt_save_ifs"
4855 if test "X$pkg" = "X$p"; then
4856 enable_fast_install=yes
4857 fi
4858 done
4859 IFS="$lt_save_ifs"
4860 ;;
4861 esac
4862 else
4863 enable_fast_install=yes
4864 fi;
4865
4866
4867
4868
4869
4870
4871
4872
4873 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4874 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4875 if test "${lt_cv_path_SED+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 # Loop through the user's path and test for sed and gsed.
4879 # Then use that list of sed's as ones to test for truncation.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for lt_ac_prog in sed gsed; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4888 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4889 fi
4890 done
4891 done
4892 done
4893 IFS=$as_save_IFS
4894 lt_ac_max=0
4895 lt_ac_count=0
4896 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4897 # along with /bin/sed that truncates output.
4898 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4899 test ! -f $lt_ac_sed && continue
4900 cat /dev/null > conftest.in
4901 lt_ac_count=0
4902 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4903 # Check for GNU sed and select it if it is found.
4904 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4905 lt_cv_path_SED=$lt_ac_sed
4906 break
4907 fi
4908 while true; do
4909 cat conftest.in conftest.in >conftest.tmp
4910 mv conftest.tmp conftest.in
4911 cp conftest.in conftest.nl
4912 echo >>conftest.nl
4913 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4914 cmp -s conftest.out conftest.nl || break
4915 # 10000 chars as input seems more than enough
4916 test $lt_ac_count -gt 10 && break
4917 lt_ac_count=`expr $lt_ac_count + 1`
4918 if test $lt_ac_count -gt $lt_ac_max; then
4919 lt_ac_max=$lt_ac_count
4920 lt_cv_path_SED=$lt_ac_sed
4921 fi
4922 done
4923 done
4924
4925 fi
4926
4927 SED=$lt_cv_path_SED
4928
4929 echo "$as_me:$LINENO: result: $SED" >&5
4930 echo "${ECHO_T}$SED" >&6
4931
4932 test -z "$SED" && SED=sed
4933 Xsed="$SED -e 1s/^X//"
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945 echo "$as_me:$LINENO: checking for fgrep" >&5
4946 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4947 if test "${ac_cv_prog_fgrep+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4951 then ac_cv_prog_fgrep='grep -F'
4952 else ac_cv_prog_fgrep='fgrep'
4953 fi
4954 fi
4955 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4956 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4957 FGREP=$ac_cv_prog_fgrep
4958
4959
4960 test -z "$GREP" && GREP=grep
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4981 if test "${with_gnu_ld+set}" = set; then
4982 withval="$with_gnu_ld"
4983 test "$withval" = no || with_gnu_ld=yes
4984 else
4985 with_gnu_ld=no
4986 fi;
4987 ac_prog=ld
4988 if test "$GCC" = yes; then
4989 # Check if gcc -print-prog-name=ld gives a path.
4990 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4991 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4992 case $host in
4993 *-*-mingw*)
4994 # gcc leaves a trailing carriage return which upsets mingw
4995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4996 *)
4997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4998 esac
4999 case $ac_prog in
5000 # Accept absolute paths.
5001 [\\/]* | ?:[\\/]*)
5002 re_direlt='/[^/][^/]*/\.\./'
5003 # Canonicalize the pathname of ld
5004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5007 done
5008 test -z "$LD" && LD="$ac_prog"
5009 ;;
5010 "")
5011 # If it fails, then pretend we aren't using GCC.
5012 ac_prog=ld
5013 ;;
5014 *)
5015 # If it is relative, then search for the first ld in PATH.
5016 with_gnu_ld=unknown
5017 ;;
5018 esac
5019 elif test "$with_gnu_ld" = yes; then
5020 echo "$as_me:$LINENO: checking for GNU ld" >&5
5021 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5022 else
5023 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5024 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5025 fi
5026 if test "${lt_cv_path_LD+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029 if test -z "$LD"; then
5030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031 for ac_dir in $PATH; do
5032 IFS="$lt_save_ifs"
5033 test -z "$ac_dir" && ac_dir=.
5034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5035 lt_cv_path_LD="$ac_dir/$ac_prog"
5036 # Check to see if the program is GNU ld. I'd rather use --version,
5037 # but apparently some variants of GNU ld only accept -v.
5038 # Break only if it was the GNU/non-GNU ld that we prefer.
5039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5040 *GNU* | *'with BFD'*)
5041 test "$with_gnu_ld" != no && break
5042 ;;
5043 *)
5044 test "$with_gnu_ld" != yes && break
5045 ;;
5046 esac
5047 fi
5048 done
5049 IFS="$lt_save_ifs"
5050 else
5051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5052 fi
5053 fi
5054
5055 LD="$lt_cv_path_LD"
5056 if test -n "$LD"; then
5057 echo "$as_me:$LINENO: result: $LD" >&5
5058 echo "${ECHO_T}$LD" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5062 fi
5063 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5064 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5065 { (exit 1); exit 1; }; }
5066 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5067 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5068 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5072 case `$LD -v 2>&1 </dev/null` in
5073 *GNU* | *'with BFD'*)
5074 lt_cv_prog_gnu_ld=yes
5075 ;;
5076 *)
5077 lt_cv_prog_gnu_ld=no
5078 ;;
5079 esac
5080 fi
5081 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5082 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5083 with_gnu_ld=$lt_cv_prog_gnu_ld
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5095 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5096 if test "${lt_cv_path_NM+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099 if test -n "$NM"; then
5100 # Let the user override the test.
5101 lt_cv_path_NM="$NM"
5102 else
5103 lt_nm_to_check="${ac_tool_prefix}nm"
5104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5105 lt_nm_to_check="$lt_nm_to_check nm"
5106 fi
5107 for lt_tmp_nm in $lt_nm_to_check; do
5108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5110 IFS="$lt_save_ifs"
5111 test -z "$ac_dir" && ac_dir=.
5112 tmp_nm="$ac_dir/$lt_tmp_nm"
5113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5114 # Check to see if the nm accepts a BSD-compat flag.
5115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5116 # nm: unknown option "B" ignored
5117 # Tru64's nm complains that /dev/null is an invalid object file
5118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5119 */dev/null* | *'Invalid file or object type'*)
5120 lt_cv_path_NM="$tmp_nm -B"
5121 break
5122 ;;
5123 *)
5124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5125 */dev/null*)
5126 lt_cv_path_NM="$tmp_nm -p"
5127 break
5128 ;;
5129 *)
5130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5131 continue # so that we can try to find one that supports BSD flags
5132 ;;
5133 esac
5134 ;;
5135 esac
5136 fi
5137 done
5138 IFS="$lt_save_ifs"
5139 done
5140 : ${lt_cv_path_NM=no}
5141 fi
5142 fi
5143 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5144 echo "${ECHO_T}$lt_cv_path_NM" >&6
5145 if test "$lt_cv_path_NM" != "no"; then
5146 NM="$lt_cv_path_NM"
5147 else
5148 # Didn't find any BSD compatible name lister, look for dumpbin.
5149 if test -n "$ac_tool_prefix"; then
5150 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5151 do
5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 if test -n "$DUMPBIN"; then
5160 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175
5176 fi
5177 fi
5178 DUMPBIN=$ac_cv_prog_DUMPBIN
5179 if test -n "$DUMPBIN"; then
5180 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5181 echo "${ECHO_T}$DUMPBIN" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5185 fi
5186
5187 test -n "$DUMPBIN" && break
5188 done
5189 fi
5190 if test -z "$DUMPBIN"; then
5191 ac_ct_DUMPBIN=$DUMPBIN
5192 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5193 do
5194 # Extract the first word of "$ac_prog", so it can be a program name with args.
5195 set dummy $ac_prog; ac_word=$2
5196 echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 if test -n "$ac_ct_DUMPBIN"; then
5202 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217
5218 fi
5219 fi
5220 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5221 if test -n "$ac_ct_DUMPBIN"; then
5222 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5223 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5224 else
5225 echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5227 fi
5228
5229 test -n "$ac_ct_DUMPBIN" && break
5230 done
5231 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5232
5233 DUMPBIN=$ac_ct_DUMPBIN
5234 fi
5235
5236
5237 if test "$DUMPBIN" != ":"; then
5238 NM="$DUMPBIN"
5239 fi
5240 fi
5241 test -z "$NM" && NM=nm
5242
5243
5244
5245
5246
5247
5248 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5249 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5250 if test "${lt_cv_nm_interface+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 lt_cv_nm_interface="BSD nm"
5254 echo "int some_variable = 0;" > conftest.$ac_ext
5255 (eval echo "\"\$as_me:5255: $ac_compile\"" >&5)
5256 (eval "$ac_compile" 2>conftest.err)
5257 cat conftest.err >&5
5258 (eval echo "\"\$as_me:5258: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5260 cat conftest.err >&5
5261 (eval echo "\"\$as_me:5261: output\"" >&5)
5262 cat conftest.out >&5
5263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5264 lt_cv_nm_interface="MS dumpbin"
5265 fi
5266 rm -f conftest*
5267 fi
5268 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5269 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5270
5271 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5272 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5273 LN_S=$as_ln_s
5274 if test "$LN_S" = "ln -s"; then
5275 echo "$as_me:$LINENO: result: yes" >&5
5276 echo "${ECHO_T}yes" >&6
5277 else
5278 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5279 echo "${ECHO_T}no, using $LN_S" >&6
5280 fi
5281
5282 # find the maximum length of command line arguments
5283 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5284 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5285 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 i=0
5289 teststring="ABCD"
5290
5291 case $build_os in
5292 msdosdjgpp*)
5293 # On DJGPP, this test can blow up pretty badly due to problems in libc
5294 # (any single argument exceeding 2000 bytes causes a buffer overrun
5295 # during glob expansion). Even if it were fixed, the result of this
5296 # check would be larger than it should be.
5297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5298 ;;
5299
5300 gnu*)
5301 # Under GNU Hurd, this test is not required because there is
5302 # no limit to the length of command line arguments.
5303 # Libtool will interpret -1 as no limit whatsoever
5304 lt_cv_sys_max_cmd_len=-1;
5305 ;;
5306
5307 cygwin* | mingw*)
5308 # On Win9x/ME, this test blows up -- it succeeds, but takes
5309 # about 5 minutes as the teststring grows exponentially.
5310 # Worse, since 9x/ME are not pre-emptively multitasking,
5311 # you end up with a "frozen" computer, even though with patience
5312 # the test eventually succeeds (with a max line length of 256k).
5313 # Instead, let's just punt: use the minimum linelength reported by
5314 # all of the supported platforms: 8192 (on NT/2K/XP).
5315 lt_cv_sys_max_cmd_len=8192;
5316 ;;
5317
5318 amigaos*)
5319 # On AmigaOS with pdksh, this test takes hours, literally.
5320 # So we just punt and use a minimum line length of 8192.
5321 lt_cv_sys_max_cmd_len=8192;
5322 ;;
5323
5324 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5325 # This has been around since 386BSD, at least. Likely further.
5326 if test -x /sbin/sysctl; then
5327 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5328 elif test -x /usr/sbin/sysctl; then
5329 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5330 else
5331 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5332 fi
5333 # And add a safety zone
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5336 ;;
5337
5338 interix*)
5339 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5340 lt_cv_sys_max_cmd_len=196608
5341 ;;
5342
5343 osf*)
5344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5346 # nice to cause kernel panics so lets avoid the loop below.
5347 # First set a reasonable default.
5348 lt_cv_sys_max_cmd_len=16384
5349 #
5350 if test -x /sbin/sysconfig; then
5351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5352 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5353 esac
5354 fi
5355 ;;
5356 sco3.2v5*)
5357 lt_cv_sys_max_cmd_len=102400
5358 ;;
5359 sysv5* | sco5v6* | sysv4.2uw2*)
5360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5361 if test -n "$kargmax"; then
5362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5363 else
5364 lt_cv_sys_max_cmd_len=32768
5365 fi
5366 ;;
5367 *)
5368 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5369 if test -n $lt_cv_sys_max_cmd_len; then
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5372 else
5373 # Make teststring a little bigger before we do anything with it.
5374 # a 1K string should be a reasonable start.
5375 for i in 1 2 3 4 5 6 7 8 ; do
5376 teststring=$teststring$teststring
5377 done
5378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5379 # If test is not a shell built-in, we'll probably end up computing a
5380 # maximum length that is only half of the actual maximum length, but
5381 # we can't tell.
5382 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5383 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5384 test $i != 17 # 1/2 MB should be enough
5385 do
5386 i=`expr $i + 1`
5387 teststring=$teststring$teststring
5388 done
5389 # Only check the string length outside the loop.
5390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5391 teststring=
5392 # Add a significant safety factor because C++ compilers can tack on
5393 # massive amounts of additional arguments before passing them to the
5394 # linker. It appears as though 1/2 is a usable value.
5395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5396 fi
5397 ;;
5398 esac
5399
5400 fi
5401
5402 if test -n $lt_cv_sys_max_cmd_len ; then
5403 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5404 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5405 else
5406 echo "$as_me:$LINENO: result: none" >&5
5407 echo "${ECHO_T}none" >&6
5408 fi
5409 max_cmd_len=$lt_cv_sys_max_cmd_len
5410
5411
5412
5413
5414
5415
5416
5417 : ${CP="cp -f"}
5418 : ${MV="mv -f"}
5419 : ${RM="rm -f"}
5420
5421 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5422 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5423 # Try some XSI features
5424 xsi_shell=no
5425 ( _lt_dummy="a/b/c"
5426 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5427 = c,a/b,, ) >/dev/null 2>&1 \
5428 && xsi_shell=yes
5429 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5430 echo "${ECHO_T}$xsi_shell" >&6
5431
5432
5433 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5434 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5435 lt_shell_append=no
5436 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5437 >/dev/null 2>&1 \
5438 && lt_shell_append=yes
5439 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5440 echo "${ECHO_T}$lt_shell_append" >&6
5441
5442
5443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5444 lt_unset=unset
5445 else
5446 lt_unset=false
5447 fi
5448
5449
5450
5451
5452
5453 # test EBCDIC or ASCII
5454 case `echo X|tr X '\101'` in
5455 A) # ASCII based system
5456 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5457 lt_SP2NL='tr \040 \012'
5458 lt_NL2SP='tr \015\012 \040\040'
5459 ;;
5460 *) # EBCDIC based system
5461 lt_SP2NL='tr \100 \n'
5462 lt_NL2SP='tr \r\n \100\100'
5463 ;;
5464 esac
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5475 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5476 if test "${lt_cv_ld_reload_flag+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 lt_cv_ld_reload_flag='-r'
5480 fi
5481 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5482 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5483 reload_flag=$lt_cv_ld_reload_flag
5484 case $reload_flag in
5485 "" | " "*) ;;
5486 *) reload_flag=" $reload_flag" ;;
5487 esac
5488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5489 case $host_os in
5490 darwin*)
5491 if test "$GCC" = yes; then
5492 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5493 else
5494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5495 fi
5496 ;;
5497 esac
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5509 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5510 if test "${lt_cv_deplibs_check_method+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 lt_cv_file_magic_cmd='$MAGIC_CMD'
5514 lt_cv_file_magic_test_file=
5515 lt_cv_deplibs_check_method='unknown'
5516 # Need to set the preceding variable on all platforms that support
5517 # interlibrary dependencies.
5518 # 'none' -- dependencies not supported.
5519 # `unknown' -- same as none, but documents that we really don't know.
5520 # 'pass_all' -- all dependencies passed with no checks.
5521 # 'test_compile' -- check by making test program.
5522 # 'file_magic [[regex]]' -- check by looking for files in library path
5523 # which responds to the $file_magic_cmd with a given extended regex.
5524 # If you have `file' or equivalent on your system and you're not sure
5525 # whether `pass_all' will *always* work, you probably want this one.
5526
5527 case $host_os in
5528 aix[4-9]*)
5529 lt_cv_deplibs_check_method=pass_all
5530 ;;
5531
5532 beos*)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535
5536 bsdi[45]*)
5537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5538 lt_cv_file_magic_cmd='/usr/bin/file -L'
5539 lt_cv_file_magic_test_file=/shlib/libc.so
5540 ;;
5541
5542 cygwin*)
5543 # func_win32_libid is a shell function defined in ltmain.sh
5544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545 lt_cv_file_magic_cmd='func_win32_libid'
5546 ;;
5547
5548 mingw* | pw32*)
5549 # Base MSYS/MinGW do not provide the 'file' command needed by
5550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5551 # unless we find 'file', for example because we are cross-compiling.
5552 if ( file / ) >/dev/null 2>&1; then
5553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5554 lt_cv_file_magic_cmd='func_win32_libid'
5555 else
5556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5557 lt_cv_file_magic_cmd='$OBJDUMP -f'
5558 fi
5559 ;;
5560
5561 darwin* | rhapsody*)
5562 lt_cv_deplibs_check_method=pass_all
5563 ;;
5564
5565 freebsd* | dragonfly*)
5566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5567 case $host_cpu in
5568 i*86 )
5569 # Not sure whether the presence of OpenBSD here was a mistake.
5570 # Let's accept both of them until this is cleared up.
5571 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5572 lt_cv_file_magic_cmd=/usr/bin/file
5573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5574 ;;
5575 esac
5576 else
5577 lt_cv_deplibs_check_method=pass_all
5578 fi
5579 ;;
5580
5581 gnu*)
5582 lt_cv_deplibs_check_method=pass_all
5583 ;;
5584
5585 hpux10.20* | hpux11*)
5586 lt_cv_file_magic_cmd=/usr/bin/file
5587 case $host_cpu in
5588 ia64*)
5589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5590 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5591 ;;
5592 hppa*64*)
5593 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]'
5594 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5595 ;;
5596 *)
5597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5598 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5599 ;;
5600 esac
5601 ;;
5602
5603 interix[3-9]*)
5604 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5606 ;;
5607
5608 irix5* | irix6* | nonstopux*)
5609 case $LD in
5610 *-32|*"-32 ") libmagic=32-bit;;
5611 *-n32|*"-n32 ") libmagic=N32;;
5612 *-64|*"-64 ") libmagic=64-bit;;
5613 *) libmagic=never-match;;
5614 esac
5615 lt_cv_deplibs_check_method=pass_all
5616 ;;
5617
5618 # This must be Linux ELF.
5619 linux* | k*bsd*-gnu)
5620 lt_cv_deplibs_check_method=pass_all
5621 ;;
5622
5623 netbsd*)
5624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5626 else
5627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5628 fi
5629 ;;
5630
5631 newos6*)
5632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5633 lt_cv_file_magic_cmd=/usr/bin/file
5634 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5635 ;;
5636
5637 *nto* | *qnx*)
5638 lt_cv_deplibs_check_method=pass_all
5639 ;;
5640
5641 openbsd*)
5642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5644 else
5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5646 fi
5647 ;;
5648
5649 osf3* | osf4* | osf5*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 rdos*)
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656
5657 solaris*)
5658 lt_cv_deplibs_check_method=pass_all
5659 ;;
5660
5661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5662 lt_cv_deplibs_check_method=pass_all
5663 ;;
5664
5665 sysv4 | sysv4.3*)
5666 case $host_vendor in
5667 motorola)
5668 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]'
5669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5670 ;;
5671 ncr)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674 sequent)
5675 lt_cv_file_magic_cmd='/bin/file'
5676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5677 ;;
5678 sni)
5679 lt_cv_file_magic_cmd='/bin/file'
5680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5681 lt_cv_file_magic_test_file=/lib/libc.so
5682 ;;
5683 siemens)
5684 lt_cv_deplibs_check_method=pass_all
5685 ;;
5686 pc)
5687 lt_cv_deplibs_check_method=pass_all
5688 ;;
5689 esac
5690 ;;
5691
5692 tpf*)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695 esac
5696
5697 fi
5698 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5699 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5700 file_magic_cmd=$lt_cv_file_magic_cmd
5701 deplibs_check_method=$lt_cv_deplibs_check_method
5702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}ar; ac_word=$2
5718 echo "$as_me:$LINENO: checking for $ac_word" >&5
5719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720 if test "${ac_cv_prog_AR+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723 if test -n "$AR"; then
5724 ac_cv_prog_AR="$AR" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_AR="${ac_tool_prefix}ar"
5734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737 done
5738 done
5739
5740 fi
5741 fi
5742 AR=$ac_cv_prog_AR
5743 if test -n "$AR"; then
5744 echo "$as_me:$LINENO: result: $AR" >&5
5745 echo "${ECHO_T}$AR" >&6
5746 else
5747 echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5749 fi
5750
5751 fi
5752 if test -z "$ac_cv_prog_AR"; then
5753 ac_ct_AR=$AR
5754 # Extract the first word of "ar", so it can be a program name with args.
5755 set dummy ar; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 if test -n "$ac_ct_AR"; then
5762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_ac_ct_AR="ar"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775 done
5776 done
5777
5778 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5779 fi
5780 fi
5781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5782 if test -n "$ac_ct_AR"; then
5783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5784 echo "${ECHO_T}$ac_ct_AR" >&6
5785 else
5786 echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5788 fi
5789
5790 AR=$ac_ct_AR
5791 else
5792 AR="$ac_cv_prog_AR"
5793 fi
5794
5795 test -z "$AR" && AR=ar
5796 test -z "$AR_FLAGS" && AR_FLAGS=cru
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}strip; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_prog_STRIP+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 if test -n "$STRIP"; then
5817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830 done
5831 done
5832
5833 fi
5834 fi
5835 STRIP=$ac_cv_prog_STRIP
5836 if test -n "$STRIP"; then
5837 echo "$as_me:$LINENO: result: $STRIP" >&5
5838 echo "${ECHO_T}$STRIP" >&6
5839 else
5840 echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5842 fi
5843
5844 fi
5845 if test -z "$ac_cv_prog_STRIP"; then
5846 ac_ct_STRIP=$STRIP
5847 # Extract the first word of "strip", so it can be a program name with args.
5848 set dummy strip; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854 if test -n "$ac_ct_STRIP"; then
5855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_ac_ct_STRIP="strip"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868 done
5869 done
5870
5871 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5872 fi
5873 fi
5874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5875 if test -n "$ac_ct_STRIP"; then
5876 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5877 echo "${ECHO_T}$ac_ct_STRIP" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5881 fi
5882
5883 STRIP=$ac_ct_STRIP
5884 else
5885 STRIP="$ac_cv_prog_STRIP"
5886 fi
5887
5888 test -z "$STRIP" && STRIP=:
5889
5890
5891
5892
5893
5894
5895 if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5898 echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900 if test "${ac_cv_prog_RANLIB+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 if test -n "$RANLIB"; then
5904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917 done
5918 done
5919
5920 fi
5921 fi
5922 RANLIB=$ac_cv_prog_RANLIB
5923 if test -n "$RANLIB"; then
5924 echo "$as_me:$LINENO: result: $RANLIB" >&5
5925 echo "${ECHO_T}$RANLIB" >&6
5926 else
5927 echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6
5929 fi
5930
5931 fi
5932 if test -z "$ac_cv_prog_RANLIB"; then
5933 ac_ct_RANLIB=$RANLIB
5934 # Extract the first word of "ranlib", so it can be a program name with args.
5935 set dummy ranlib; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941 if test -n "$ac_ct_RANLIB"; then
5942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_ac_ct_RANLIB="ranlib"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955 done
5956 done
5957
5958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5959 fi
5960 fi
5961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5962 if test -n "$ac_ct_RANLIB"; then
5963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5965 else
5966 echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5968 fi
5969
5970 RANLIB=$ac_ct_RANLIB
5971 else
5972 RANLIB="$ac_cv_prog_RANLIB"
5973 fi
5974
5975 test -z "$RANLIB" && RANLIB=:
5976
5977
5978
5979
5980
5981
5982 # Determine commands to create old-style static archives.
5983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5984 old_postinstall_cmds='chmod 644 $oldlib'
5985 old_postuninstall_cmds=
5986
5987 if test -n "$RANLIB"; then
5988 case $host_os in
5989 openbsd*)
5990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5991 ;;
5992 *)
5993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5994 ;;
5995 esac
5996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5997 fi
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032 # If no C compiler was specified, use CC.
6033 LTCC=${LTCC-"$CC"}
6034
6035 # If no C compiler flags were specified, use CFLAGS.
6036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6037
6038 # Allow CC to be a program name with arguments.
6039 compiler=$CC
6040
6041
6042 # Check for command to grab the raw symbol name followed by C symbol from nm.
6043 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6044 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048
6049 # These are sane defaults that work on at least a few old systems.
6050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6051
6052 # Character class describing NM global symbol codes.
6053 symcode='[BCDEGRST]'
6054
6055 # Regexp to match symbols that can be accessed directly from C.
6056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6057
6058 # Define system-specific variables.
6059 case $host_os in
6060 aix*)
6061 symcode='[BCDT]'
6062 ;;
6063 cygwin* | mingw* | pw32*)
6064 symcode='[ABCDGISTW]'
6065 ;;
6066 hpux*)
6067 if test "$host_cpu" = ia64; then
6068 symcode='[ABCDEGRST]'
6069 fi
6070 ;;
6071 irix* | nonstopux*)
6072 symcode='[BCDEGRST]'
6073 ;;
6074 osf*)
6075 symcode='[BCDEGQRST]'
6076 ;;
6077 solaris*)
6078 symcode='[BDRT]'
6079 ;;
6080 sco3.2v5*)
6081 symcode='[DT]'
6082 ;;
6083 sysv4.2uw2*)
6084 symcode='[DT]'
6085 ;;
6086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6087 symcode='[ABDT]'
6088 ;;
6089 sysv4)
6090 symcode='[DFNSTU]'
6091 ;;
6092 esac
6093
6094 # If we're using GNU nm, then use its standard symbol codes.
6095 case `$NM -V 2>&1` in
6096 *GNU* | *'with BFD'*)
6097 symcode='[ABCDGIRSTW]' ;;
6098 esac
6099
6100 # Transform an extracted symbol line into a proper C declaration.
6101 # Some systems (esp. on ia64) link data and code symbols differently,
6102 # so use this general approach.
6103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6104
6105 # Transform an extracted symbol line into symbol name and symbol address
6106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6107
6108 # Handle CRLF in mingw tool chain
6109 opt_cr=
6110 case $build_os in
6111 mingw*)
6112 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6113 ;;
6114 esac
6115
6116 # Try without a prefix underscore, then with it.
6117 for ac_symprfx in "" "_"; do
6118
6119 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6120 symxfrm="\\1 $ac_symprfx\\2 \\2"
6121
6122 # Write the raw and C identifiers.
6123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6124 # Fake it for dumpbin and say T for any non-static function
6125 # and D for any global variable.
6126 # Also find C++ and __fastcall symbols from MSVC++,
6127 # which start with @ or ?.
6128 lt_cv_sys_global_symbol_pipe="$AWK '"\
6129 " {last_section=section; section=\$ 3};"\
6130 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6131 " \$ 0!~/External *\|/{next};"\
6132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6133 " {if(hide[section]) next};"\
6134 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6135 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6136 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6137 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6138 " ' prfx=^$ac_symprfx"
6139 else
6140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6141 fi
6142
6143 # Check to see that the pipe works correctly.
6144 pipe_works=no
6145
6146 rm -f conftest*
6147 cat > conftest.$ac_ext <<_LT_EOF
6148 #ifdef __cplusplus
6149 extern "C" {
6150 #endif
6151 char nm_test_var;
6152 void nm_test_func(void);
6153 void nm_test_func(void){}
6154 #ifdef __cplusplus
6155 }
6156 #endif
6157 int main(){nm_test_var='a';nm_test_func();return(0);}
6158 _LT_EOF
6159
6160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161 (eval $ac_compile) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; then
6165 # Now try to grab the symbols.
6166 nlist=conftest.nm
6167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } && test -s "$nlist"; then
6172 # Try sorting and uniquifying the output.
6173 if sort "$nlist" | uniq > "$nlist"T; then
6174 mv -f "$nlist"T "$nlist"
6175 else
6176 rm -f "$nlist"T
6177 fi
6178
6179 # Make sure that we snagged all the symbols we need.
6180 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6181 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6182 cat <<_LT_EOF > conftest.$ac_ext
6183 #ifdef __cplusplus
6184 extern "C" {
6185 #endif
6186
6187 _LT_EOF
6188 # Now generate the symbol file.
6189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6190
6191 cat <<_LT_EOF >> conftest.$ac_ext
6192
6193 /* The mapping between symbol names and symbols. */
6194 const struct {
6195 const char *name;
6196 void *address;
6197 }
6198 lt__PROGRAM__LTX_preloaded_symbols[] =
6199 {
6200 { "@PROGRAM@", (void *) 0 },
6201 _LT_EOF
6202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6203 cat <<\_LT_EOF >> conftest.$ac_ext
6204 {0, (void *) 0}
6205 };
6206
6207 /* This works around a problem in FreeBSD linker */
6208 #ifdef FREEBSD_WORKAROUND
6209 static const void *lt_preloaded_setup() {
6210 return lt__PROGRAM__LTX_preloaded_symbols;
6211 }
6212 #endif
6213
6214 #ifdef __cplusplus
6215 }
6216 #endif
6217 _LT_EOF
6218 # Now try linking the two files.
6219 mv conftest.$ac_objext conftstm.$ac_objext
6220 lt_save_LIBS="$LIBS"
6221 lt_save_CFLAGS="$CFLAGS"
6222 LIBS="conftstm.$ac_objext"
6223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6229 pipe_works=yes
6230 fi
6231 LIBS="$lt_save_LIBS"
6232 CFLAGS="$lt_save_CFLAGS"
6233 else
6234 echo "cannot find nm_test_func in $nlist" >&5
6235 fi
6236 else
6237 echo "cannot find nm_test_var in $nlist" >&5
6238 fi
6239 else
6240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6241 fi
6242 else
6243 echo "$progname: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6245 fi
6246 rm -f conftest* conftst*
6247
6248 # Do not use the global_symbol_pipe unless it works.
6249 if test "$pipe_works" = yes; then
6250 break
6251 else
6252 lt_cv_sys_global_symbol_pipe=
6253 fi
6254 done
6255
6256 fi
6257
6258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6259 lt_cv_sys_global_symbol_to_cdecl=
6260 fi
6261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6262 echo "$as_me:$LINENO: result: failed" >&5
6263 echo "${ECHO_T}failed" >&6
6264 else
6265 echo "$as_me:$LINENO: result: ok" >&5
6266 echo "${ECHO_T}ok" >&6
6267 fi
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6286 if test "${enable_libtool_lock+set}" = set; then
6287 enableval="$enable_libtool_lock"
6288
6289 fi;
6290 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6291
6292 # Some flags need to be propagated to the compiler or linker for good
6293 # libtool support.
6294 case $host in
6295 ia64-*-hpux*)
6296 # Find out which ABI we are using.
6297 echo 'int i;' > conftest.$ac_ext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299 (eval $ac_compile) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; then
6303 case `/usr/bin/file conftest.$ac_objext` in
6304 *ELF-32*)
6305 HPUX_IA64_MODE="32"
6306 ;;
6307 *ELF-64*)
6308 HPUX_IA64_MODE="64"
6309 ;;
6310 esac
6311 fi
6312 rm -rf conftest*
6313 ;;
6314 *-*-irix6*)
6315 # Find out which ABI we are using.
6316 echo '#line 6316 "configure"' > conftest.$ac_ext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; then
6322 if test "$lt_cv_prog_gnu_ld" = yes; then
6323 case `/usr/bin/file conftest.$ac_objext` in
6324 *32-bit*)
6325 LD="${LD-ld} -melf32bsmip"
6326 ;;
6327 *N32*)
6328 LD="${LD-ld} -melf32bmipn32"
6329 ;;
6330 *64-bit*)
6331 LD="${LD-ld} -melf64bmip"
6332 ;;
6333 esac
6334 else
6335 case `/usr/bin/file conftest.$ac_objext` in
6336 *32-bit*)
6337 LD="${LD-ld} -32"
6338 ;;
6339 *N32*)
6340 LD="${LD-ld} -n32"
6341 ;;
6342 *64-bit*)
6343 LD="${LD-ld} -64"
6344 ;;
6345 esac
6346 fi
6347 fi
6348 rm -rf conftest*
6349 ;;
6350
6351 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6352 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6353 # Find out which ABI we are using.
6354 echo 'int i;' > conftest.$ac_ext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; then
6360 case `/usr/bin/file conftest.o` in
6361 *32-bit*)
6362 case $host in
6363 x86_64-*kfreebsd*-gnu)
6364 LD="${LD-ld} -m elf_i386_fbsd"
6365 ;;
6366 x86_64-*linux*)
6367 LD="${LD-ld} -m elf_i386"
6368 ;;
6369 ppc64-*linux*|powerpc64-*linux*)
6370 LD="${LD-ld} -m elf32ppclinux"
6371 ;;
6372 s390x-*linux*)
6373 LD="${LD-ld} -m elf_s390"
6374 ;;
6375 sparc64-*linux*)
6376 LD="${LD-ld} -m elf32_sparc"
6377 ;;
6378 esac
6379 ;;
6380 *64-bit*)
6381 case $host in
6382 x86_64-*kfreebsd*-gnu)
6383 LD="${LD-ld} -m elf_x86_64_fbsd"
6384 ;;
6385 x86_64-*linux*)
6386 LD="${LD-ld} -m elf_x86_64"
6387 ;;
6388 ppc*-*linux*|powerpc*-*linux*)
6389 LD="${LD-ld} -m elf64ppc"
6390 ;;
6391 s390*-*linux*|s390*-*tpf*)
6392 LD="${LD-ld} -m elf64_s390"
6393 ;;
6394 sparc*-*linux*)
6395 LD="${LD-ld} -m elf64_sparc"
6396 ;;
6397 esac
6398 ;;
6399 esac
6400 fi
6401 rm -rf conftest*
6402 ;;
6403
6404 *-*-sco3.2v5*)
6405 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6406 SAVE_CFLAGS="$CFLAGS"
6407 CFLAGS="$CFLAGS -belf"
6408 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6409 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6410 if test "${lt_cv_cc_needs_belf+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 ac_ext=c
6414 ac_cpp='$CPP $CPPFLAGS'
6415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425
6426 int
6427 main ()
6428 {
6429
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_c_werror_flag"
6444 || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest$ac_exeext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 lt_cv_cc_needs_belf=yes
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 lt_cv_cc_needs_belf=no
6462 fi
6463 rm -f conftest.err conftest.$ac_objext \
6464 conftest$ac_exeext conftest.$ac_ext
6465 ac_ext=c
6466 ac_cpp='$CPP $CPPFLAGS'
6467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470
6471 fi
6472 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6473 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6474 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6476 CFLAGS="$SAVE_CFLAGS"
6477 fi
6478 ;;
6479 sparc*-*solaris*)
6480 # Find out which ABI we are using.
6481 echo 'int i;' > conftest.$ac_ext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; then
6487 case `/usr/bin/file conftest.o` in
6488 *64-bit*)
6489 case $lt_cv_prog_gnu_ld in
6490 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6491 *) LD="${LD-ld} -64" ;;
6492 esac
6493 ;;
6494 esac
6495 fi
6496 rm -rf conftest*
6497 ;;
6498 esac
6499
6500 need_locks="$enable_libtool_lock"
6501
6502
6503 for ac_header in dlfcn.h
6504 do
6505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 echo "$as_me:$LINENO: checking for $ac_header" >&5
6507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6518
6519 #include <$ac_header>
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 eval "$as_ac_Header=yes"
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 eval "$as_ac_Header=no"
6549 fi
6550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551 fi
6552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6557 _ACEOF
6558
6559 fi
6560
6561 done
6562
6563
6564
6565 # This can be used to rebuild libtool when needed
6566 LIBTOOL_DEPS="$ltmain"
6567
6568 # Always use our own libtool.
6569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595 test -z "$LN_S" && LN_S="ln -s"
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610 if test -n "${ZSH_VERSION+set}" ; then
6611 setopt NO_GLOB_SUBST
6612 fi
6613
6614 echo "$as_me:$LINENO: checking for objdir" >&5
6615 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6616 if test "${lt_cv_objdir+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 rm -f .libs 2>/dev/null
6620 mkdir .libs 2>/dev/null
6621 if test -d .libs; then
6622 lt_cv_objdir=.libs
6623 else
6624 # MS-DOS does not allow filenames that begin with a dot.
6625 lt_cv_objdir=_libs
6626 fi
6627 rmdir .libs 2>/dev/null
6628 fi
6629 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6630 echo "${ECHO_T}$lt_cv_objdir" >&6
6631 objdir=$lt_cv_objdir
6632
6633
6634
6635
6636
6637 cat >>confdefs.h <<_ACEOF
6638 #define LT_OBJDIR "$lt_cv_objdir/"
6639 _ACEOF
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657 case $host_os in
6658 aix3*)
6659 # AIX sometimes has problems with the GCC collect2 program. For some
6660 # reason, if we set the COLLECT_NAMES environment variable, the problems
6661 # vanish in a puff of smoke.
6662 if test "X${COLLECT_NAMES+set}" != Xset; then
6663 COLLECT_NAMES=
6664 export COLLECT_NAMES
6665 fi
6666 ;;
6667 esac
6668
6669 # Sed substitution that helps us do robust quoting. It backslashifies
6670 # metacharacters that are still active within double-quoted strings.
6671 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6672
6673 # Same as above, but do not quote variable references.
6674 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6675
6676 # Sed substitution to delay expansion of an escaped shell variable in a
6677 # double_quote_subst'ed string.
6678 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6679
6680 # Sed substitution to delay expansion of an escaped single quote.
6681 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6682
6683 # Sed substitution to avoid accidental globbing in evaled expressions
6684 no_glob_subst='s/\*/\\\*/g'
6685
6686 # Global variables:
6687 ofile=libtool
6688 can_build_shared=yes
6689
6690 # All known linkers require a `.a' archive for static linking (except MSVC,
6691 # which needs '.lib').
6692 libext=a
6693
6694 with_gnu_ld="$lt_cv_prog_gnu_ld"
6695
6696 old_CC="$CC"
6697 old_CFLAGS="$CFLAGS"
6698
6699 # Set sane defaults for various variables
6700 test -z "$CC" && CC=cc
6701 test -z "$LTCC" && LTCC=$CC
6702 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6703 test -z "$LD" && LD=ld
6704 test -z "$ac_objext" && ac_objext=o
6705
6706 for cc_temp in $compiler""; do
6707 case $cc_temp in
6708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6710 \-*) ;;
6711 *) break;;
6712 esac
6713 done
6714 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6715
6716
6717 # Only perform the check for file, if the check method requires it
6718 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6719 case $deplibs_check_method in
6720 file_magic*)
6721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6722 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6723 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6724 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 case $MAGIC_CMD in
6728 [\\/*] | ?:[\\/]*)
6729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6730 ;;
6731 *)
6732 lt_save_MAGIC_CMD="$MAGIC_CMD"
6733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6735 for ac_dir in $ac_dummy; do
6736 IFS="$lt_save_ifs"
6737 test -z "$ac_dir" && ac_dir=.
6738 if test -f $ac_dir/${ac_tool_prefix}file; then
6739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6740 if test -n "$file_magic_test_file"; then
6741 case $deplibs_check_method in
6742 "file_magic "*)
6743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6746 $EGREP "$file_magic_regex" > /dev/null; then
6747 :
6748 else
6749 cat <<_LT_EOF 1>&2
6750
6751 *** Warning: the command libtool uses to detect shared libraries,
6752 *** $file_magic_cmd, produces output that libtool cannot recognize.
6753 *** The result is that libtool may fail to recognize shared libraries
6754 *** as such. This will affect the creation of libtool libraries that
6755 *** depend on shared libraries, but programs linked with such libtool
6756 *** libraries will work regardless of this problem. Nevertheless, you
6757 *** may want to report the problem to your system manager and/or to
6758 *** bug-libtool@gnu.org
6759
6760 _LT_EOF
6761 fi ;;
6762 esac
6763 fi
6764 break
6765 fi
6766 done
6767 IFS="$lt_save_ifs"
6768 MAGIC_CMD="$lt_save_MAGIC_CMD"
6769 ;;
6770 esac
6771 fi
6772
6773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6774 if test -n "$MAGIC_CMD"; then
6775 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6776 echo "${ECHO_T}$MAGIC_CMD" >&6
6777 else
6778 echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6
6780 fi
6781
6782
6783
6784
6785
6786 if test -z "$lt_cv_path_MAGIC_CMD"; then
6787 if test -n "$ac_tool_prefix"; then
6788 echo "$as_me:$LINENO: checking for file" >&5
6789 echo $ECHO_N "checking for file... $ECHO_C" >&6
6790 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 case $MAGIC_CMD in
6794 [\\/*] | ?:[\\/]*)
6795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6796 ;;
6797 *)
6798 lt_save_MAGIC_CMD="$MAGIC_CMD"
6799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6801 for ac_dir in $ac_dummy; do
6802 IFS="$lt_save_ifs"
6803 test -z "$ac_dir" && ac_dir=.
6804 if test -f $ac_dir/file; then
6805 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6806 if test -n "$file_magic_test_file"; then
6807 case $deplibs_check_method in
6808 "file_magic "*)
6809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6812 $EGREP "$file_magic_regex" > /dev/null; then
6813 :
6814 else
6815 cat <<_LT_EOF 1>&2
6816
6817 *** Warning: the command libtool uses to detect shared libraries,
6818 *** $file_magic_cmd, produces output that libtool cannot recognize.
6819 *** The result is that libtool may fail to recognize shared libraries
6820 *** as such. This will affect the creation of libtool libraries that
6821 *** depend on shared libraries, but programs linked with such libtool
6822 *** libraries will work regardless of this problem. Nevertheless, you
6823 *** may want to report the problem to your system manager and/or to
6824 *** bug-libtool@gnu.org
6825
6826 _LT_EOF
6827 fi ;;
6828 esac
6829 fi
6830 break
6831 fi
6832 done
6833 IFS="$lt_save_ifs"
6834 MAGIC_CMD="$lt_save_MAGIC_CMD"
6835 ;;
6836 esac
6837 fi
6838
6839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6840 if test -n "$MAGIC_CMD"; then
6841 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6842 echo "${ECHO_T}$MAGIC_CMD" >&6
6843 else
6844 echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6
6846 fi
6847
6848
6849 else
6850 MAGIC_CMD=:
6851 fi
6852 fi
6853
6854 fi
6855 ;;
6856 esac
6857
6858 # Use C for the default configuration in the libtool script
6859
6860 lt_save_CC="$CC"
6861 ac_ext=c
6862 ac_cpp='$CPP $CPPFLAGS'
6863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6866
6867
6868 # Source file extension for C test sources.
6869 ac_ext=c
6870
6871 # Object file extension for compiled C test sources.
6872 objext=o
6873 objext=$objext
6874
6875 # Code to be used in simple compile tests
6876 lt_simple_compile_test_code="int some_variable = 0;"
6877
6878 # Code to be used in simple link tests
6879 lt_simple_link_test_code='int main(){return(0);}'
6880
6881
6882
6883
6884
6885
6886
6887 # If no C compiler was specified, use CC.
6888 LTCC=${LTCC-"$CC"}
6889
6890 # If no C compiler flags were specified, use CFLAGS.
6891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6892
6893 # Allow CC to be a program name with arguments.
6894 compiler=$CC
6895
6896 # Save the default compiler, since it gets overwritten when the other
6897 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6898 compiler_DEFAULT=$CC
6899
6900 # save warnings/boilerplate of simple test code
6901 ac_outfile=conftest.$ac_objext
6902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6904 _lt_compiler_boilerplate=`cat conftest.err`
6905 $RM conftest*
6906
6907 ac_outfile=conftest.$ac_objext
6908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6910 _lt_linker_boilerplate=`cat conftest.err`
6911 $RM conftest*
6912
6913
6914 ## CAVEAT EMPTOR:
6915 ## There is no encapsulation within the following macros, do not change
6916 ## the running order or otherwise move them around unless you know exactly
6917 ## what you are doing...
6918 if test -n "$compiler"; then
6919
6920 lt_prog_compiler_no_builtin_flag=
6921
6922 if test "$GCC" = yes; then
6923 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6924
6925 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6926 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6927 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 lt_cv_prog_compiler_rtti_exceptions=no
6931 ac_outfile=conftest.$ac_objext
6932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6933 lt_compiler_flag="-fno-rtti -fno-exceptions"
6934 # Insert the option either (1) after the last *FLAGS variable, or
6935 # (2) before a word containing "conftest.", or (3) at the end.
6936 # Note that $ac_compile itself does not contain backslashes and begins
6937 # with a dollar sign (not a hyphen), so the echo should work correctly.
6938 # The option is referenced via a variable to avoid confusing sed.
6939 lt_compile=`echo "$ac_compile" | $SED \
6940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6942 -e 's:$: $lt_compiler_flag:'`
6943 (eval echo "\"\$as_me:6943: $lt_compile\"" >&5)
6944 (eval "$lt_compile" 2>conftest.err)
6945 ac_status=$?
6946 cat conftest.err >&5
6947 echo "$as_me:6947: \$? = $ac_status" >&5
6948 if (exit $ac_status) && test -s "$ac_outfile"; then
6949 # The compiler can only warn and ignore the option if not recognized
6950 # So say no if there are warnings other than the usual output.
6951 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6954 lt_cv_prog_compiler_rtti_exceptions=yes
6955 fi
6956 fi
6957 $RM conftest*
6958
6959 fi
6960 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6961 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6962
6963 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6964 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6965 else
6966 :
6967 fi
6968
6969 fi
6970
6971
6972
6973
6974
6975
6976 lt_prog_compiler_wl=
6977 lt_prog_compiler_pic=
6978 lt_prog_compiler_static=
6979
6980 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6981 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6982
6983 if test "$GCC" = yes; then
6984 lt_prog_compiler_wl='-Wl,'
6985 lt_prog_compiler_static='-static'
6986
6987 case $host_os in
6988 aix*)
6989 # All AIX code is PIC.
6990 if test "$host_cpu" = ia64; then
6991 # AIX 5 now supports IA64 processor
6992 lt_prog_compiler_static='-Bstatic'
6993 fi
6994 ;;
6995
6996 amigaos*)
6997 if test "$host_cpu" = m68k; then
6998 # FIXME: we need at least 68020 code to build shared libraries, but
6999 # adding the `-m68020' flag to GCC prevents building anything better,
7000 # like `-m68040'.
7001 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7002 fi
7003 ;;
7004
7005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7006 # PIC is the default for these OSes.
7007 ;;
7008
7009 mingw* | cygwin* | pw32* | os2*)
7010 # This hack is so that the source file can tell whether it is being
7011 # built for inclusion in a dll (and should export symbols for example).
7012 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7013 # (--disable-auto-import) libraries
7014 lt_prog_compiler_pic='-DDLL_EXPORT'
7015 ;;
7016
7017 darwin* | rhapsody*)
7018 # PIC is the default on this platform
7019 # Common symbols not allowed in MH_DYLIB files
7020 lt_prog_compiler_pic='-fno-common'
7021 ;;
7022
7023 hpux*)
7024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7025 # not for PA HP-UX.
7026 case $host_cpu in
7027 hppa*64*|ia64*)
7028 # +Z the default
7029 ;;
7030 *)
7031 lt_prog_compiler_pic='-fPIC'
7032 ;;
7033 esac
7034 ;;
7035
7036 interix[3-9]*)
7037 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7038 # Instead, we relocate shared libraries at runtime.
7039 ;;
7040
7041 msdosdjgpp*)
7042 # Just because we use GCC doesn't mean we suddenly get shared libraries
7043 # on systems that don't support them.
7044 lt_prog_compiler_can_build_shared=no
7045 enable_shared=no
7046 ;;
7047
7048 *nto* | *qnx*)
7049 # QNX uses GNU C++, but need to define -shared option too, otherwise
7050 # it will coredump.
7051 lt_prog_compiler_pic='-fPIC -shared'
7052 ;;
7053
7054 sysv4*MP*)
7055 if test -d /usr/nec; then
7056 lt_prog_compiler_pic=-Kconform_pic
7057 fi
7058 ;;
7059
7060 *)
7061 lt_prog_compiler_pic='-fPIC'
7062 ;;
7063 esac
7064 else
7065 # PORTME Check for flag to pass linker flags through the system compiler.
7066 case $host_os in
7067 aix*)
7068 lt_prog_compiler_wl='-Wl,'
7069 if test "$host_cpu" = ia64; then
7070 # AIX 5 now supports IA64 processor
7071 lt_prog_compiler_static='-Bstatic'
7072 else
7073 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7074 fi
7075 ;;
7076 darwin*)
7077 # PIC is the default on this platform
7078 # Common symbols not allowed in MH_DYLIB files
7079 case $cc_basename in
7080 xlc*)
7081 lt_prog_compiler_pic='-qnocommon'
7082 lt_prog_compiler_wl='-Wl,'
7083 ;;
7084 esac
7085 ;;
7086
7087 mingw* | cygwin* | pw32* | os2*)
7088 # This hack is so that the source file can tell whether it is being
7089 # built for inclusion in a dll (and should export symbols for example).
7090 lt_prog_compiler_pic='-DDLL_EXPORT'
7091 ;;
7092
7093 hpux9* | hpux10* | hpux11*)
7094 lt_prog_compiler_wl='-Wl,'
7095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7096 # not for PA HP-UX.
7097 case $host_cpu in
7098 hppa*64*|ia64*)
7099 # +Z the default
7100 ;;
7101 *)
7102 lt_prog_compiler_pic='+Z'
7103 ;;
7104 esac
7105 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7106 lt_prog_compiler_static='${wl}-a ${wl}archive'
7107 ;;
7108
7109 irix5* | irix6* | nonstopux*)
7110 lt_prog_compiler_wl='-Wl,'
7111 # PIC (with -KPIC) is the default.
7112 lt_prog_compiler_static='-non_shared'
7113 ;;
7114
7115 linux* | k*bsd*-gnu)
7116 case $cc_basename in
7117 icc* | ecc*)
7118 lt_prog_compiler_wl='-Wl,'
7119 lt_prog_compiler_pic='-KPIC'
7120 lt_prog_compiler_static='-static'
7121 ;;
7122 pgcc* | pgf77* | pgf90* | pgf95*)
7123 # Portland Group compilers (*not* the Pentium gcc compiler,
7124 # which looks to be a dead project)
7125 lt_prog_compiler_wl='-Wl,'
7126 lt_prog_compiler_pic='-fpic'
7127 lt_prog_compiler_static='-Bstatic'
7128 ;;
7129 ccc*)
7130 lt_prog_compiler_wl='-Wl,'
7131 # All Alpha code is PIC.
7132 lt_prog_compiler_static='-non_shared'
7133 ;;
7134 *)
7135 case `$CC -V 2>&1 | sed 5q` in
7136 *Sun\ C*)
7137 # Sun C 5.9
7138 lt_prog_compiler_pic='-KPIC'
7139 lt_prog_compiler_static='-Bstatic'
7140 lt_prog_compiler_wl='-Wl,'
7141 ;;
7142 *Sun\ F*)
7143 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7144 lt_prog_compiler_pic='-KPIC'
7145 lt_prog_compiler_static='-Bstatic'
7146 lt_prog_compiler_wl=''
7147 ;;
7148 esac
7149 ;;
7150 esac
7151 ;;
7152
7153 newsos6)
7154 lt_prog_compiler_pic='-KPIC'
7155 lt_prog_compiler_static='-Bstatic'
7156 ;;
7157
7158 *nto* | *qnx*)
7159 # QNX uses GNU C++, but need to define -shared option too, otherwise
7160 # it will coredump.
7161 lt_prog_compiler_pic='-fPIC -shared'
7162 ;;
7163
7164 osf3* | osf4* | osf5*)
7165 lt_prog_compiler_wl='-Wl,'
7166 # All OSF/1 code is PIC.
7167 lt_prog_compiler_static='-non_shared'
7168 ;;
7169
7170 rdos*)
7171 lt_prog_compiler_static='-non_shared'
7172 ;;
7173
7174 solaris*)
7175 lt_prog_compiler_pic='-KPIC'
7176 lt_prog_compiler_static='-Bstatic'
7177 case $cc_basename in
7178 f77* | f90* | f95*)
7179 lt_prog_compiler_wl='-Qoption ld ';;
7180 *)
7181 lt_prog_compiler_wl='-Wl,';;
7182 esac
7183 ;;
7184
7185 sunos4*)
7186 lt_prog_compiler_wl='-Qoption ld '
7187 lt_prog_compiler_pic='-PIC'
7188 lt_prog_compiler_static='-Bstatic'
7189 ;;
7190
7191 sysv4 | sysv4.2uw2* | sysv4.3*)
7192 lt_prog_compiler_wl='-Wl,'
7193 lt_prog_compiler_pic='-KPIC'
7194 lt_prog_compiler_static='-Bstatic'
7195 ;;
7196
7197 sysv4*MP*)
7198 if test -d /usr/nec ;then
7199 lt_prog_compiler_pic='-Kconform_pic'
7200 lt_prog_compiler_static='-Bstatic'
7201 fi
7202 ;;
7203
7204 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7205 lt_prog_compiler_wl='-Wl,'
7206 lt_prog_compiler_pic='-KPIC'
7207 lt_prog_compiler_static='-Bstatic'
7208 ;;
7209
7210 unicos*)
7211 lt_prog_compiler_wl='-Wl,'
7212 lt_prog_compiler_can_build_shared=no
7213 ;;
7214
7215 uts4*)
7216 lt_prog_compiler_pic='-pic'
7217 lt_prog_compiler_static='-Bstatic'
7218 ;;
7219
7220 *)
7221 lt_prog_compiler_can_build_shared=no
7222 ;;
7223 esac
7224 fi
7225
7226 case $host_os in
7227 # For platforms which do not support PIC, -DPIC is meaningless:
7228 *djgpp*)
7229 lt_prog_compiler_pic=
7230 ;;
7231 *)
7232 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7233 ;;
7234 esac
7235 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7236 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7237
7238
7239
7240
7241
7242
7243 #
7244 # Check to make sure the PIC flag actually works.
7245 #
7246 if test -n "$lt_prog_compiler_pic"; then
7247 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7249 if test "${lt_prog_compiler_pic_works+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 lt_prog_compiler_pic_works=no
7253 ac_outfile=conftest.$ac_objext
7254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7255 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7256 # Insert the option either (1) after the last *FLAGS variable, or
7257 # (2) before a word containing "conftest.", or (3) at the end.
7258 # Note that $ac_compile itself does not contain backslashes and begins
7259 # with a dollar sign (not a hyphen), so the echo should work correctly.
7260 # The option is referenced via a variable to avoid confusing sed.
7261 lt_compile=`echo "$ac_compile" | $SED \
7262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7264 -e 's:$: $lt_compiler_flag:'`
7265 (eval echo "\"\$as_me:7265: $lt_compile\"" >&5)
7266 (eval "$lt_compile" 2>conftest.err)
7267 ac_status=$?
7268 cat conftest.err >&5
7269 echo "$as_me:7269: \$? = $ac_status" >&5
7270 if (exit $ac_status) && test -s "$ac_outfile"; then
7271 # The compiler can only warn and ignore the option if not recognized
7272 # So say no if there are warnings other than the usual output.
7273 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7276 lt_prog_compiler_pic_works=yes
7277 fi
7278 fi
7279 $RM conftest*
7280
7281 fi
7282 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7283 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7284
7285 if test x"$lt_prog_compiler_pic_works" = xyes; then
7286 case $lt_prog_compiler_pic in
7287 "" | " "*) ;;
7288 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7289 esac
7290 else
7291 lt_prog_compiler_pic=
7292 lt_prog_compiler_can_build_shared=no
7293 fi
7294
7295 fi
7296
7297
7298
7299
7300
7301
7302 #
7303 # Check to make sure the static flag actually works.
7304 #
7305 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7306 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7307 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7308 if test "${lt_prog_compiler_static_works+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 lt_prog_compiler_static_works=no
7312 save_LDFLAGS="$LDFLAGS"
7313 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7314 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7315 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7316 # The linker can only warn and ignore the option if not recognized
7317 # So say no if there are warnings
7318 if test -s conftest.err; then
7319 # Append any errors to the config.log.
7320 cat conftest.err 1>&5
7321 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7323 if diff conftest.exp conftest.er2 >/dev/null; then
7324 lt_prog_compiler_static_works=yes
7325 fi
7326 else
7327 lt_prog_compiler_static_works=yes
7328 fi
7329 fi
7330 $RM conftest*
7331 LDFLAGS="$save_LDFLAGS"
7332
7333 fi
7334 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7335 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7336
7337 if test x"$lt_prog_compiler_static_works" = xyes; then
7338 :
7339 else
7340 lt_prog_compiler_static=
7341 fi
7342
7343
7344
7345
7346
7347
7348
7349 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7350 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7351 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 lt_cv_prog_compiler_c_o=no
7355 $RM -r conftest 2>/dev/null
7356 mkdir conftest
7357 cd conftest
7358 mkdir out
7359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7360
7361 lt_compiler_flag="-o out/conftest2.$ac_objext"
7362 # Insert the option either (1) after the last *FLAGS variable, or
7363 # (2) before a word containing "conftest.", or (3) at the end.
7364 # Note that $ac_compile itself does not contain backslashes and begins
7365 # with a dollar sign (not a hyphen), so the echo should work correctly.
7366 lt_compile=`echo "$ac_compile" | $SED \
7367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7369 -e 's:$: $lt_compiler_flag:'`
7370 (eval echo "\"\$as_me:7370: $lt_compile\"" >&5)
7371 (eval "$lt_compile" 2>out/conftest.err)
7372 ac_status=$?
7373 cat out/conftest.err >&5
7374 echo "$as_me:7374: \$? = $ac_status" >&5
7375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7376 then
7377 # The compiler can only warn and ignore the option if not recognized
7378 # So say no if there are warnings
7379 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7382 lt_cv_prog_compiler_c_o=yes
7383 fi
7384 fi
7385 chmod u+w . 2>&5
7386 $RM conftest*
7387 # SGI C++ compiler will create directory out/ii_files/ for
7388 # template instantiation
7389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7390 $RM out/* && rmdir out
7391 cd ..
7392 $RM -r conftest
7393 $RM conftest*
7394
7395 fi
7396 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7397 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7398
7399
7400
7401
7402
7403
7404 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7405 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7406 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409 lt_cv_prog_compiler_c_o=no
7410 $RM -r conftest 2>/dev/null
7411 mkdir conftest
7412 cd conftest
7413 mkdir out
7414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7415
7416 lt_compiler_flag="-o out/conftest2.$ac_objext"
7417 # Insert the option either (1) after the last *FLAGS variable, or
7418 # (2) before a word containing "conftest.", or (3) at the end.
7419 # Note that $ac_compile itself does not contain backslashes and begins
7420 # with a dollar sign (not a hyphen), so the echo should work correctly.
7421 lt_compile=`echo "$ac_compile" | $SED \
7422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7424 -e 's:$: $lt_compiler_flag:'`
7425 (eval echo "\"\$as_me:7425: $lt_compile\"" >&5)
7426 (eval "$lt_compile" 2>out/conftest.err)
7427 ac_status=$?
7428 cat out/conftest.err >&5
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7431 then
7432 # The compiler can only warn and ignore the option if not recognized
7433 # So say no if there are warnings
7434 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7437 lt_cv_prog_compiler_c_o=yes
7438 fi
7439 fi
7440 chmod u+w . 2>&5
7441 $RM conftest*
7442 # SGI C++ compiler will create directory out/ii_files/ for
7443 # template instantiation
7444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7445 $RM out/* && rmdir out
7446 cd ..
7447 $RM -r conftest
7448 $RM conftest*
7449
7450 fi
7451 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7452 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7453
7454
7455
7456
7457 hard_links="nottested"
7458 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7459 # do not overwrite the value of need_locks provided by the user
7460 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7461 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7462 hard_links=yes
7463 $RM conftest*
7464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7465 touch conftest.a
7466 ln conftest.a conftest.b 2>&5 || hard_links=no
7467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7468 echo "$as_me:$LINENO: result: $hard_links" >&5
7469 echo "${ECHO_T}$hard_links" >&6
7470 if test "$hard_links" = no; then
7471 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7472 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7473 need_locks=warn
7474 fi
7475 else
7476 need_locks=no
7477 fi
7478
7479
7480
7481
7482
7483
7484 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7485 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7486
7487 runpath_var=
7488 allow_undefined_flag=
7489 always_export_symbols=no
7490 archive_cmds=
7491 archive_expsym_cmds=
7492 compiler_needs_object=no
7493 enable_shared_with_static_runtimes=no
7494 export_dynamic_flag_spec=
7495 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7496 hardcode_automatic=no
7497 hardcode_direct=no
7498 hardcode_direct_absolute=no
7499 hardcode_libdir_flag_spec=
7500 hardcode_libdir_flag_spec_ld=
7501 hardcode_libdir_separator=
7502 hardcode_minus_L=no
7503 hardcode_shlibpath_var=unsupported
7504 inherit_rpath=no
7505 link_all_deplibs=unknown
7506 module_cmds=
7507 module_expsym_cmds=
7508 old_archive_from_new_cmds=
7509 old_archive_from_expsyms_cmds=
7510 thread_safe_flag_spec=
7511 whole_archive_flag_spec=
7512 # include_expsyms should be a list of space-separated symbols to be *always*
7513 # included in the symbol list
7514 include_expsyms=
7515 # exclude_expsyms can be an extended regexp of symbols to exclude
7516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7518 # as well as any symbol that contains `d'.
7519 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7521 # platforms (ab)use it in PIC code, but their linkers get confused if
7522 # the symbol is explicitly referenced. Since portable code cannot
7523 # rely on this symbol name, it's probably fine to never include it in
7524 # preloaded symbol tables.
7525 extract_expsyms_cmds=
7526
7527 case $host_os in
7528 cygwin* | mingw* | pw32*)
7529 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7530 # When not using gcc, we currently assume that we are using
7531 # Microsoft Visual C++.
7532 if test "$GCC" != yes; then
7533 with_gnu_ld=no
7534 fi
7535 ;;
7536 interix*)
7537 # we just hope/assume this is gcc and not c89 (= MSVC++)
7538 with_gnu_ld=yes
7539 ;;
7540 openbsd*)
7541 with_gnu_ld=no
7542 ;;
7543 esac
7544
7545 ld_shlibs=yes
7546 if test "$with_gnu_ld" = yes; then
7547 # If archive_cmds runs LD, not CC, wlarc should be empty
7548 wlarc='${wl}'
7549
7550 # Set some defaults for GNU ld with shared library support. These
7551 # are reset later if shared libraries are not supported. Putting them
7552 # here allows them to be overridden if necessary.
7553 runpath_var=LD_RUN_PATH
7554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7555 export_dynamic_flag_spec='${wl}--export-dynamic'
7556 # ancient GNU ld didn't support --whole-archive et. al.
7557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7559 else
7560 whole_archive_flag_spec=
7561 fi
7562 supports_anon_versioning=no
7563 case `$LD -v 2>&1` in
7564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7567 *\ 2.11.*) ;; # other 2.11 versions
7568 *) supports_anon_versioning=yes ;;
7569 esac
7570
7571 # See if GNU ld supports shared libraries.
7572 case $host_os in
7573 aix[3-9]*)
7574 # On AIX/PPC, the GNU linker is very broken
7575 if test "$host_cpu" != ia64; then
7576 ld_shlibs=no
7577 cat <<_LT_EOF 1>&2
7578
7579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7580 *** to be unable to reliably create shared libraries on AIX.
7581 *** Therefore, libtool is disabling shared libraries support. If you
7582 *** really care for shared libraries, you may want to modify your PATH
7583 *** so that a non-GNU linker is found, and then restart.
7584
7585 _LT_EOF
7586 fi
7587 ;;
7588
7589 amigaos*)
7590 if test "$host_cpu" = m68k; then
7591 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)'
7592 hardcode_libdir_flag_spec='-L$libdir'
7593 hardcode_minus_L=yes
7594 fi
7595
7596 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7597 # that the semantics of dynamic libraries on AmigaOS, at least up
7598 # to version 4, is to share data among multiple programs linked
7599 # with the same dynamic library. Since this doesn't match the
7600 # behavior of shared libraries on other platforms, we can't use
7601 # them.
7602 ld_shlibs=no
7603 ;;
7604
7605 beos*)
7606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7607 allow_undefined_flag=unsupported
7608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7609 # support --undefined. This deserves some investigation. FIXME
7610 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7611 else
7612 ld_shlibs=no
7613 fi
7614 ;;
7615
7616 cygwin* | mingw* | pw32*)
7617 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7618 # as there is no search path for DLLs.
7619 hardcode_libdir_flag_spec='-L$libdir'
7620 allow_undefined_flag=unsupported
7621 always_export_symbols=no
7622 enable_shared_with_static_runtimes=yes
7623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7624
7625 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7627 # If the export-symbols file already is a .def file (1st line
7628 # is EXPORTS), use it as is; otherwise, prepend...
7629 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7630 cp $export_symbols $output_objdir/$soname.def;
7631 else
7632 echo EXPORTS > $output_objdir/$soname.def;
7633 cat $export_symbols >> $output_objdir/$soname.def;
7634 fi~
7635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7636 else
7637 ld_shlibs=no
7638 fi
7639 ;;
7640
7641 interix[3-9]*)
7642 hardcode_direct=no
7643 hardcode_shlibpath_var=no
7644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7645 export_dynamic_flag_spec='${wl}-E'
7646 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7647 # Instead, shared libraries are loaded at an image base (0x10000000 by
7648 # default) and relocated if they conflict, which is a slow very memory
7649 # consuming and fragmenting process. To avoid this, we pick a random,
7650 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7651 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7653 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'
7654 ;;
7655
7656 gnu* | linux* | tpf* | k*bsd*-gnu)
7657 tmp_diet=no
7658 if test "$host_os" = linux-dietlibc; then
7659 case $cc_basename in
7660 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7661 esac
7662 fi
7663 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7664 && test "$tmp_diet" = no
7665 then
7666 tmp_addflag=
7667 case $cc_basename,$host_cpu in
7668 pgcc*) # Portland Group C compiler
7669 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'
7670 tmp_addflag=' $pic_flag'
7671 ;;
7672 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7673 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'
7674 tmp_addflag=' $pic_flag -Mnomain' ;;
7675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7676 tmp_addflag=' -i_dynamic' ;;
7677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7678 tmp_addflag=' -i_dynamic -nofor_main' ;;
7679 ifc* | ifort*) # Intel Fortran compiler
7680 tmp_addflag=' -nofor_main' ;;
7681 esac
7682 case `$CC -V 2>&1 | sed 5q` in
7683 *Sun\ C*) # Sun C 5.9
7684 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'
7685 compiler_needs_object=yes
7686 tmp_sharedflag='-G' ;;
7687 *Sun\ F*) # Sun Fortran 8.3
7688 tmp_sharedflag='-G' ;;
7689 *)
7690 tmp_sharedflag='-shared' ;;
7691 esac
7692 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693
7694 if test "x$supports_anon_versioning" = xyes; then
7695 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7697 echo "local: *; };" >> $output_objdir/$libname.ver~
7698 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7699 fi
7700 else
7701 ld_shlibs=no
7702 fi
7703 ;;
7704
7705 netbsd*)
7706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7707 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7708 wlarc=
7709 else
7710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7712 fi
7713 ;;
7714
7715 solaris*)
7716 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7717 ld_shlibs=no
7718 cat <<_LT_EOF 1>&2
7719
7720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7721 *** create shared libraries on Solaris systems. Therefore, libtool
7722 *** is disabling shared libraries support. We urge you to upgrade GNU
7723 *** binutils to release 2.9.1 or newer. Another option is to modify
7724 *** your PATH or compiler configuration so that the native linker is
7725 *** used, and then restart.
7726
7727 _LT_EOF
7728 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7731 else
7732 ld_shlibs=no
7733 fi
7734 ;;
7735
7736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7737 case `$LD -v 2>&1` in
7738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7739 ld_shlibs=no
7740 cat <<_LT_EOF 1>&2
7741
7742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7743 *** reliably create shared libraries on SCO systems. Therefore, libtool
7744 *** is disabling shared libraries support. We urge you to upgrade GNU
7745 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7746 *** your PATH or compiler configuration so that the native linker is
7747 *** used, and then restart.
7748
7749 _LT_EOF
7750 ;;
7751 *)
7752 # For security reasons, it is highly recommended that you always
7753 # use absolute paths for naming shared libraries, and exclude the
7754 # DT_RUNPATH tag from executables and libraries. But doing so
7755 # requires that you compile everything twice, which is a pain.
7756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7760 else
7761 ld_shlibs=no
7762 fi
7763 ;;
7764 esac
7765 ;;
7766
7767 sunos4*)
7768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7769 wlarc=
7770 hardcode_direct=yes
7771 hardcode_shlibpath_var=no
7772 ;;
7773
7774 *)
7775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7778 else
7779 ld_shlibs=no
7780 fi
7781 ;;
7782 esac
7783
7784 if test "$ld_shlibs" = no; then
7785 runpath_var=
7786 hardcode_libdir_flag_spec=
7787 export_dynamic_flag_spec=
7788 whole_archive_flag_spec=
7789 fi
7790 else
7791 # PORTME fill in a description of your system's linker (not GNU ld)
7792 case $host_os in
7793 aix3*)
7794 allow_undefined_flag=unsupported
7795 always_export_symbols=yes
7796 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'
7797 # Note: this linker hardcodes the directories in LIBPATH if there
7798 # are no directories specified by -L.
7799 hardcode_minus_L=yes
7800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7801 # Neither direct hardcoding nor static linking is supported with a
7802 # broken collect2.
7803 hardcode_direct=unsupported
7804 fi
7805 ;;
7806
7807 aix[4-9]*)
7808 if test "$host_cpu" = ia64; then
7809 # On IA64, the linker does run time linking by default, so we don't
7810 # have to do anything special.
7811 aix_use_runtimelinking=no
7812 exp_sym_flag='-Bexport'
7813 no_entry_flag=""
7814 else
7815 # If we're using GNU nm, then we don't want the "-C" option.
7816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7817 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7818 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'
7819 else
7820 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'
7821 fi
7822 aix_use_runtimelinking=no
7823
7824 # Test if we are trying to use run time linking or normal
7825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7826 # need to do runtime linking.
7827 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7828 for ld_flag in $LDFLAGS; do
7829 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7830 aix_use_runtimelinking=yes
7831 break
7832 fi
7833 done
7834 ;;
7835 esac
7836
7837 exp_sym_flag='-bexport'
7838 no_entry_flag='-bnoentry'
7839 fi
7840
7841 # When large executables or shared objects are built, AIX ld can
7842 # have problems creating the table of contents. If linking a library
7843 # or program results in "error TOC overflow" add -mminimal-toc to
7844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7846
7847 archive_cmds=''
7848 hardcode_direct=yes
7849 hardcode_direct_absolute=yes
7850 hardcode_libdir_separator=':'
7851 link_all_deplibs=yes
7852 file_list_spec='${wl}-f,'
7853
7854 if test "$GCC" = yes; then
7855 case $host_os in aix4.[012]|aix4.[012].*)
7856 # We only want to do this on AIX 4.2 and lower, the check
7857 # below for broken collect2 doesn't work under 4.3+
7858 collect2name=`${CC} -print-prog-name=collect2`
7859 if test -f "$collect2name" &&
7860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7861 then
7862 # We have reworked collect2
7863 :
7864 else
7865 # We have old collect2
7866 hardcode_direct=unsupported
7867 # It fails to find uninstalled libraries when the uninstalled
7868 # path is not listed in the libpath. Setting hardcode_minus_L
7869 # to unsupported forces relinking
7870 hardcode_minus_L=yes
7871 hardcode_libdir_flag_spec='-L$libdir'
7872 hardcode_libdir_separator=
7873 fi
7874 ;;
7875 esac
7876 shared_flag='-shared'
7877 if test "$aix_use_runtimelinking" = yes; then
7878 shared_flag="$shared_flag "'${wl}-G'
7879 fi
7880 else
7881 # not using gcc
7882 if test "$host_cpu" = ia64; then
7883 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7884 # chokes on -Wl,-G. The following line is correct:
7885 shared_flag='-G'
7886 else
7887 if test "$aix_use_runtimelinking" = yes; then
7888 shared_flag='${wl}-G'
7889 else
7890 shared_flag='${wl}-bM:SRE'
7891 fi
7892 fi
7893 fi
7894
7895 # It seems that -bexpall does not export symbols beginning with
7896 # underscore (_), so it is better to generate a list of symbols to export.
7897 always_export_symbols=yes
7898 if test "$aix_use_runtimelinking" = yes; then
7899 # Warning - without using the other runtime loading flags (-brtl),
7900 # -berok will link without error, but may produce a broken library.
7901 allow_undefined_flag='-berok'
7902 # Determine the default libpath from the value encoded in an
7903 # empty executable.
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910
7911 int
7912 main ()
7913 {
7914
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -z "$ac_c_werror_flag"
7929 || test ! -s conftest.err'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; } &&
7935 { ac_try='test -s conftest$ac_exeext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7941
7942 lt_aix_libpath_sed='
7943 /Import File Strings/,/^$/ {
7944 /^0/ {
7945 s/^0 *\(.*\)$/\1/
7946 p
7947 }
7948 }'
7949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7950 # Check for a 64-bit object if we didn't find anything.
7951 if test -z "$aix_libpath"; then
7952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7953 fi
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 fi
7959 rm -f conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7962
7963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7964 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"
7965 else
7966 if test "$host_cpu" = ia64; then
7967 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7968 allow_undefined_flag="-z nodefs"
7969 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"
7970 else
7971 # Determine the default libpath from the value encoded in an
7972 # empty executable.
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979
7980 int
7981 main ()
7982 {
7983
7984 ;
7985 return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010
8011 lt_aix_libpath_sed='
8012 /Import File Strings/,/^$/ {
8013 /^0/ {
8014 s/^0 *\(.*\)$/\1/
8015 p
8016 }
8017 }'
8018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8019 # Check for a 64-bit object if we didn't find anything.
8020 if test -z "$aix_libpath"; then
8021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8022 fi
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 fi
8028 rm -f conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8031
8032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8033 # Warning - without using the other run time loading flags,
8034 # -berok will link without error, but may produce a broken library.
8035 no_undefined_flag=' ${wl}-bernotok'
8036 allow_undefined_flag=' ${wl}-berok'
8037 # Exported symbols can be pulled into shared objects from archives
8038 whole_archive_flag_spec='$convenience'
8039 archive_cmds_need_lc=yes
8040 # This is similar to how AIX traditionally builds its shared libraries.
8041 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'
8042 fi
8043 fi
8044 ;;
8045
8046 amigaos*)
8047 if test "$host_cpu" = m68k; then
8048 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)'
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_minus_L=yes
8051 fi
8052 # see comment about different semantics on the GNU ld section
8053 ld_shlibs=no
8054 ;;
8055
8056 bsdi[45]*)
8057 export_dynamic_flag_spec=-rdynamic
8058 ;;
8059
8060 cygwin* | mingw* | pw32*)
8061 # When not using gcc, we currently assume that we are using
8062 # Microsoft Visual C++.
8063 # hardcode_libdir_flag_spec is actually meaningless, as there is
8064 # no search path for DLLs.
8065 hardcode_libdir_flag_spec=' '
8066 allow_undefined_flag=unsupported
8067 # Tell ltmain to make .lib files, not .a files.
8068 libext=lib
8069 # Tell ltmain to make .dll files, not .so files.
8070 shrext_cmds=".dll"
8071 # FIXME: Setting linknames here is a bad hack.
8072 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8073 # The linker will automatically build a .lib file if we build a DLL.
8074 old_archive_from_new_cmds='true'
8075 # FIXME: Should let the user specify the lib program.
8076 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8077 fix_srcfile_path='`cygpath -w "$srcfile"`'
8078 enable_shared_with_static_runtimes=yes
8079 ;;
8080
8081 darwin* | rhapsody*)
8082 case $host_os in
8083 rhapsody* | darwin1.[012])
8084 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8085 ;;
8086 *) # Darwin 1.3 on
8087 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8088 10.[012])
8089 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8090 ;;
8091 10.*)
8092 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8093 ;;
8094 esac
8095 ;;
8096 esac
8097 archive_cmds_need_lc=no
8098 hardcode_direct=no
8099 hardcode_automatic=yes
8100 hardcode_shlibpath_var=unsupported
8101 whole_archive_flag_spec=''
8102 link_all_deplibs=yes
8103 if test "$GCC" = yes ; then
8104 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107 lt_cv_apple_cc_single_mod=no
8108 if test -z "${LT_MULTI_MODULE}"; then
8109 # By default we will add the -single_module flag. You can override
8110 # by either setting the environment variable LT_MULTI_MODULE
8111 # non-empty at configure time, or by adding -multi-module to the
8112 # link flags.
8113 echo "int foo(void){return 1;}" > conftest.c
8114 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8115 -dynamiclib ${wl}-single_module conftest.c
8116 if test -f libconftest.dylib; then
8117 lt_cv_apple_cc_single_mod=yes
8118 rm libconftest.dylib
8119 fi
8120 rm conftest.$ac_ext
8121 fi
8122 fi
8123
8124 output_verbose_link_cmd=echo
8125 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8126 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8127 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}'
8128 else
8129 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8130 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}'
8131 fi
8132 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8133 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}'
8134 else
8135 case $cc_basename in
8136 xlc*)
8137 output_verbose_link_cmd=echo
8138 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8139 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8140 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8141 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}'
8142 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}'
8143 ;;
8144 *)
8145 ld_shlibs=no
8146 ;;
8147 esac
8148 fi
8149 ;;
8150
8151 dgux*)
8152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8153 hardcode_libdir_flag_spec='-L$libdir'
8154 hardcode_shlibpath_var=no
8155 ;;
8156
8157 freebsd1*)
8158 ld_shlibs=no
8159 ;;
8160
8161 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8162 # support. Future versions do this automatically, but an explicit c++rt0.o
8163 # does not break anything, and helps significantly (at the cost of a little
8164 # extra space).
8165 freebsd2.2*)
8166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8167 hardcode_libdir_flag_spec='-R$libdir'
8168 hardcode_direct=yes
8169 hardcode_shlibpath_var=no
8170 ;;
8171
8172 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8173 freebsd2*)
8174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8175 hardcode_direct=yes
8176 hardcode_minus_L=yes
8177 hardcode_shlibpath_var=no
8178 ;;
8179
8180 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8181 freebsd* | dragonfly*)
8182 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8183 hardcode_libdir_flag_spec='-R$libdir'
8184 hardcode_direct=yes
8185 hardcode_shlibpath_var=no
8186 ;;
8187
8188 hpux9*)
8189 if test "$GCC" = yes; then
8190 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'
8191 else
8192 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'
8193 fi
8194 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8195 hardcode_libdir_separator=:
8196 hardcode_direct=yes
8197
8198 # hardcode_minus_L: Not really in the search PATH,
8199 # but as the default location of the library.
8200 hardcode_minus_L=yes
8201 export_dynamic_flag_spec='${wl}-E'
8202 ;;
8203
8204 hpux10*)
8205 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207 else
8208 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8209 fi
8210 if test "$with_gnu_ld" = no; then
8211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8212 hardcode_libdir_flag_spec_ld='+b $libdir'
8213 hardcode_libdir_separator=:
8214 hardcode_direct=yes
8215 hardcode_direct_absolute=yes
8216 export_dynamic_flag_spec='${wl}-E'
8217 # hardcode_minus_L: Not really in the search PATH,
8218 # but as the default location of the library.
8219 hardcode_minus_L=yes
8220 fi
8221 ;;
8222
8223 hpux11*)
8224 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8225 case $host_cpu in
8226 hppa*64*)
8227 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8228 ;;
8229 ia64*)
8230 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8231 ;;
8232 *)
8233 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234 ;;
8235 esac
8236 else
8237 case $host_cpu in
8238 hppa*64*)
8239 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8240 ;;
8241 ia64*)
8242 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8243 ;;
8244 *)
8245 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8246 ;;
8247 esac
8248 fi
8249 if test "$with_gnu_ld" = no; then
8250 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8251 hardcode_libdir_separator=:
8252
8253 case $host_cpu in
8254 hppa*64*|ia64*)
8255 hardcode_direct=no
8256 hardcode_shlibpath_var=no
8257 ;;
8258 *)
8259 hardcode_direct=yes
8260 hardcode_direct_absolute=yes
8261 export_dynamic_flag_spec='${wl}-E'
8262
8263 # hardcode_minus_L: Not really in the search PATH,
8264 # but as the default location of the library.
8265 hardcode_minus_L=yes
8266 ;;
8267 esac
8268 fi
8269 ;;
8270
8271 irix5* | irix6* | nonstopux*)
8272 if test "$GCC" = yes; then
8273 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'
8274 # Try to use the -exported_symbol ld option, if it does not
8275 # work, assume that -exports_file does not work either and
8276 # implicitly export all symbols.
8277 save_LDFLAGS="$LDFLAGS"
8278 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8279 cat >conftest.$ac_ext <<_ACEOF
8280 int foo(void) {}
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 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'
8305
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 fi
8311 rm -f conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 LDFLAGS="$save_LDFLAGS"
8314 else
8315 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'
8316 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'
8317 fi
8318 archive_cmds_need_lc='no'
8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320 hardcode_libdir_separator=:
8321 inherit_rpath=yes
8322 link_all_deplibs=yes
8323 ;;
8324
8325 netbsd*)
8326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8328 else
8329 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8330 fi
8331 hardcode_libdir_flag_spec='-R$libdir'
8332 hardcode_direct=yes
8333 hardcode_shlibpath_var=no
8334 ;;
8335
8336 newsos6)
8337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338 hardcode_direct=yes
8339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340 hardcode_libdir_separator=:
8341 hardcode_shlibpath_var=no
8342 ;;
8343
8344 *nto* | *qnx*)
8345 ;;
8346
8347 openbsd*)
8348 hardcode_direct=yes
8349 hardcode_shlibpath_var=no
8350 hardcode_direct_absolute=yes
8351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8352 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8355 export_dynamic_flag_spec='${wl}-E'
8356 else
8357 case $host_os in
8358 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8360 hardcode_libdir_flag_spec='-R$libdir'
8361 ;;
8362 *)
8363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8364 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8365 ;;
8366 esac
8367 fi
8368 ;;
8369
8370 os2*)
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_minus_L=yes
8373 allow_undefined_flag=unsupported
8374 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'
8375 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8376 ;;
8377
8378 osf3*)
8379 if test "$GCC" = yes; then
8380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8381 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'
8382 else
8383 allow_undefined_flag=' -expect_unresolved \*'
8384 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'
8385 fi
8386 archive_cmds_need_lc='no'
8387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8388 hardcode_libdir_separator=:
8389 ;;
8390
8391 osf4* | osf5*) # as osf3* with the addition of -msym flag
8392 if test "$GCC" = yes; then
8393 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8394 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'
8395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8396 else
8397 allow_undefined_flag=' -expect_unresolved \*'
8398 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'
8399 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~
8400 $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'
8401
8402 # Both c and cxx compiler support -rpath directly
8403 hardcode_libdir_flag_spec='-rpath $libdir'
8404 fi
8405 archive_cmds_need_lc='no'
8406 hardcode_libdir_separator=:
8407 ;;
8408
8409 solaris*)
8410 no_undefined_flag=' -z defs'
8411 if test "$GCC" = yes; then
8412 wlarc='${wl}'
8413 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8415 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8416 else
8417 case `$CC -V 2>&1` in
8418 *"Compilers 5.0"*)
8419 wlarc=''
8420 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8423 ;;
8424 *)
8425 wlarc='${wl}'
8426 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8428 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8429 ;;
8430 esac
8431 fi
8432 hardcode_libdir_flag_spec='-R$libdir'
8433 hardcode_shlibpath_var=no
8434 case $host_os in
8435 solaris2.[0-5] | solaris2.[0-5].*) ;;
8436 *)
8437 # The compiler driver will combine and reorder linker options,
8438 # but understands `-z linker_flag'. GCC discards it without `$wl',
8439 # but is careful enough not to reorder.
8440 # Supported since Solaris 2.6 (maybe 2.5.1?)
8441 if test "$GCC" = yes; then
8442 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8443 else
8444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8445 fi
8446 ;;
8447 esac
8448 link_all_deplibs=yes
8449 ;;
8450
8451 sunos4*)
8452 if test "x$host_vendor" = xsequent; then
8453 # Use $CC to link under sequent, because it throws in some extra .o
8454 # files that make .init and .fini sections work.
8455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8456 else
8457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8458 fi
8459 hardcode_libdir_flag_spec='-L$libdir'
8460 hardcode_direct=yes
8461 hardcode_minus_L=yes
8462 hardcode_shlibpath_var=no
8463 ;;
8464
8465 sysv4)
8466 case $host_vendor in
8467 sni)
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_direct=yes # is this really true???
8470 ;;
8471 siemens)
8472 ## LD is ld it makes a PLAMLIB
8473 ## CC just makes a GrossModule.
8474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8475 reload_cmds='$CC -r -o $output$reload_objs'
8476 hardcode_direct=no
8477 ;;
8478 motorola)
8479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8481 ;;
8482 esac
8483 runpath_var='LD_RUN_PATH'
8484 hardcode_shlibpath_var=no
8485 ;;
8486
8487 sysv4.3*)
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_shlibpath_var=no
8490 export_dynamic_flag_spec='-Bexport'
8491 ;;
8492
8493 sysv4*MP*)
8494 if test -d /usr/nec; then
8495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8496 hardcode_shlibpath_var=no
8497 runpath_var=LD_RUN_PATH
8498 hardcode_runpath_var=yes
8499 ld_shlibs=yes
8500 fi
8501 ;;
8502
8503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8504 no_undefined_flag='${wl}-z,text'
8505 archive_cmds_need_lc=no
8506 hardcode_shlibpath_var=no
8507 runpath_var='LD_RUN_PATH'
8508
8509 if test "$GCC" = yes; then
8510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 else
8513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8515 fi
8516 ;;
8517
8518 sysv5* | sco3.2v5* | sco5v6*)
8519 # Note: We can NOT use -z defs as we might desire, because we do not
8520 # link with -lc, and that would cause any symbols used from libc to
8521 # always be unresolved, which means just about no library would
8522 # ever link correctly. If we're not using GNU ld we use -z text
8523 # though, which does catch some bad symbols but isn't as heavy-handed
8524 # as -z defs.
8525 no_undefined_flag='${wl}-z,text'
8526 allow_undefined_flag='${wl}-z,nodefs'
8527 archive_cmds_need_lc=no
8528 hardcode_shlibpath_var=no
8529 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8530 hardcode_libdir_separator=':'
8531 link_all_deplibs=yes
8532 export_dynamic_flag_spec='${wl}-Bexport'
8533 runpath_var='LD_RUN_PATH'
8534
8535 if test "$GCC" = yes; then
8536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 else
8539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8541 fi
8542 ;;
8543
8544 uts4*)
8545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 hardcode_shlibpath_var=no
8548 ;;
8549
8550 *)
8551 ld_shlibs=no
8552 ;;
8553 esac
8554
8555 if test x$host_vendor = xsni; then
8556 case $host in
8557 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8558 export_dynamic_flag_spec='${wl}-Blargedynsym'
8559 ;;
8560 esac
8561 fi
8562 fi
8563
8564 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8565 echo "${ECHO_T}$ld_shlibs" >&6
8566 test "$ld_shlibs" = no && can_build_shared=no
8567
8568 with_gnu_ld=$with_gnu_ld
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584 #
8585 # Do we need to explicitly link libc?
8586 #
8587 case "x$archive_cmds_need_lc" in
8588 x|xyes)
8589 # Assume -lc should be added
8590 archive_cmds_need_lc=yes
8591
8592 if test "$enable_shared" = yes && test "$GCC" = yes; then
8593 case $archive_cmds in
8594 *'~'*)
8595 # FIXME: we may have to deal with multi-command sequences.
8596 ;;
8597 '$CC '*)
8598 # Test whether the compiler implicitly links with -lc since on some
8599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8600 # to ld, don't add -lc before -lgcc.
8601 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8602 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8603 $RM conftest*
8604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8605
8606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8607 (eval $ac_compile) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } 2>conftest.err; then
8611 soname=conftest
8612 lib=conftest
8613 libobjs=conftest.$ac_objext
8614 deplibs=
8615 wl=$lt_prog_compiler_wl
8616 pic_flag=$lt_prog_compiler_pic
8617 compiler_flags=-v
8618 linker_flags=-v
8619 verstring=
8620 output_objdir=.
8621 libname=conftest
8622 lt_save_allow_undefined_flag=$allow_undefined_flag
8623 allow_undefined_flag=
8624 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8625 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }
8629 then
8630 archive_cmds_need_lc=no
8631 else
8632 archive_cmds_need_lc=yes
8633 fi
8634 allow_undefined_flag=$lt_save_allow_undefined_flag
8635 else
8636 cat conftest.err 1>&5
8637 fi
8638 $RM conftest*
8639 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8640 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8641 ;;
8642 esac
8643 fi
8644 ;;
8645 esac
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8804 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8805 withGCC=$GCC
8806 if test "$withGCC" = yes; then
8807 case $host_os in
8808 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8809 *) lt_awk_arg="/^libraries:/" ;;
8810 esac
8811 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8812 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8813 # if the path contains ";" then we assume it to be the separator
8814 # otherwise default to the standard path separator (i.e. ":") - it is
8815 # assumed that no part of a normal pathname contains ";" but that should
8816 # okay in the real world where ";" in dirpaths is itself problematic.
8817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8818 else
8819 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8820 fi
8821 # Ok, now we have the path, separated by spaces, we can step through it
8822 # and add multilib dir if necessary.
8823 lt_tmp_lt_search_path_spec=
8824 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8825 for lt_sys_path in $lt_search_path_spec; do
8826 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8828 else
8829 test -d "$lt_sys_path" && \
8830 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8831 fi
8832 done
8833 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8834 BEGIN {RS=" "; FS="/|\n";} {
8835 lt_foo="";
8836 lt_count=0;
8837 for (lt_i = NF; lt_i > 0; lt_i--) {
8838 if ($lt_i != "" && $lt_i != ".") {
8839 if ($lt_i == "..") {
8840 lt_count++;
8841 } else {
8842 if (lt_count == 0) {
8843 lt_foo="/" $lt_i lt_foo;
8844 } else {
8845 lt_count--;
8846 }
8847 }
8848 }
8849 }
8850 if (lt_foo != "") { lt_freq[lt_foo]++; }
8851 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8852 }'`
8853 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8854 else
8855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8856 fi
8857 library_names_spec=
8858 libname_spec='lib$name'
8859 soname_spec=
8860 shrext_cmds=".so"
8861 postinstall_cmds=
8862 postuninstall_cmds=
8863 finish_cmds=
8864 finish_eval=
8865 shlibpath_var=
8866 shlibpath_overrides_runpath=unknown
8867 version_type=none
8868 dynamic_linker="$host_os ld.so"
8869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8870 need_lib_prefix=unknown
8871 hardcode_into_libs=no
8872
8873 # when you set need_version to no, make sure it does not cause -set_version
8874 # flags to be left without arguments
8875 need_version=unknown
8876
8877 case $host_os in
8878 aix3*)
8879 version_type=linux
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8881 shlibpath_var=LIBPATH
8882
8883 # AIX 3 has no versioning support, so we append a major version to the name.
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 ;;
8886
8887 aix[4-9]*)
8888 version_type=linux
8889 need_lib_prefix=no
8890 need_version=no
8891 hardcode_into_libs=yes
8892 if test "$host_cpu" = ia64; then
8893 # AIX 5 supports IA64
8894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 else
8897 # With GCC up to 2.95.x, collect2 would create an import file
8898 # for dependence libraries. The import file would start with
8899 # the line `#! .'. This would cause the generated library to
8900 # depend on `.', always an invalid library. This was fixed in
8901 # development snapshots of GCC prior to 3.0.
8902 case $host_os in
8903 aix4 | aix4.[01] | aix4.[01].*)
8904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8905 echo ' yes '
8906 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8907 :
8908 else
8909 can_build_shared=no
8910 fi
8911 ;;
8912 esac
8913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8914 # soname into executable. Probably we can add versioning support to
8915 # collect2, so additional links can be useful in future.
8916 if test "$aix_use_runtimelinking" = yes; then
8917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8918 # instead of lib<name>.a to let people know that these are not
8919 # typical AIX shared libraries.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 else
8922 # We preserve .a as extension for shared libraries through AIX4.2
8923 # and later when we are not doing run time linking.
8924 library_names_spec='${libname}${release}.a $libname.a'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 fi
8927 shlibpath_var=LIBPATH
8928 fi
8929 ;;
8930
8931 amigaos*)
8932 if test "$host_cpu" = m68k; then
8933 library_names_spec='$libname.ixlibrary $libname.a'
8934 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8935 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'
8936 else
8937 dynamic_linker=no
8938 fi
8939 ;;
8940
8941 beos*)
8942 library_names_spec='${libname}${shared_ext}'
8943 dynamic_linker="$host_os ld.so"
8944 shlibpath_var=LIBRARY_PATH
8945 ;;
8946
8947 bsdi[45]*)
8948 version_type=linux
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8956 # the default ld.so.conf also contains /usr/contrib/lib and
8957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8958 # libtool to hard-code these into programs
8959 ;;
8960
8961 cygwin* | mingw* | pw32*)
8962 version_type=windows
8963 shrext_cmds=".dll"
8964 need_version=no
8965 need_lib_prefix=no
8966
8967 case $withGCC,$host_os in
8968 yes,cygwin* | yes,mingw* | yes,pw32*)
8969 library_names_spec='$libname.dll.a'
8970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8971 postinstall_cmds='base_file=`basename \${file}`~
8972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8973 dldir=$destdir/`dirname \$dlpath`~
8974 test -d \$dldir || mkdir -p \$dldir~
8975 $install_prog $dir/$dlname \$dldir/$dlname~
8976 chmod a+x \$dldir/$dlname~
8977 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8978 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8979 fi'
8980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8981 dlpath=$dir/\$dldll~
8982 $RM \$dlpath'
8983 shlibpath_overrides_runpath=yes
8984
8985 case $host_os in
8986 cygwin*)
8987 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8988 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8989 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8990 ;;
8991 mingw*)
8992 # MinGW DLLs use traditional 'lib' prefix
8993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8994 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8995 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8996 # It is most probably a Windows format PATH printed by
8997 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8998 # path with ; separators, and with drive letters. We can handle the
8999 # drive letters (cygwin fileutils understands them), so leave them,
9000 # especially as we might pass files found there to a mingw objdump,
9001 # which wouldn't understand a cygwinified path. Ahh.
9002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9003 else
9004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9005 fi
9006 ;;
9007 pw32*)
9008 # pw32 DLLs use 'pw' prefix rather than 'lib'
9009 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9010 ;;
9011 esac
9012 ;;
9013
9014 *)
9015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9016 ;;
9017 esac
9018 dynamic_linker='Win32 ld.exe'
9019 # FIXME: first we should search . and the directory the executable is in
9020 shlibpath_var=PATH
9021 ;;
9022
9023 darwin* | rhapsody*)
9024 dynamic_linker="$host_os dyld"
9025 version_type=darwin
9026 need_lib_prefix=no
9027 need_version=no
9028 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9029 soname_spec='${libname}${release}${major}$shared_ext'
9030 shlibpath_overrides_runpath=yes
9031 shlibpath_var=DYLD_LIBRARY_PATH
9032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9033
9034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9036 ;;
9037
9038 dgux*)
9039 version_type=linux
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 ;;
9046
9047 freebsd1*)
9048 dynamic_linker=no
9049 ;;
9050
9051 freebsd* | dragonfly*)
9052 # DragonFly does not have aout. When/if they implement a new
9053 # versioning mechanism, adjust this.
9054 if test -x /usr/bin/objformat; then
9055 objformat=`/usr/bin/objformat`
9056 else
9057 case $host_os in
9058 freebsd[123]*) objformat=aout ;;
9059 *) objformat=elf ;;
9060 esac
9061 fi
9062 version_type=freebsd-$objformat
9063 case $version_type in
9064 freebsd-elf*)
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9066 need_version=no
9067 need_lib_prefix=no
9068 ;;
9069 freebsd-*)
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9071 need_version=yes
9072 ;;
9073 esac
9074 shlibpath_var=LD_LIBRARY_PATH
9075 case $host_os in
9076 freebsd2*)
9077 shlibpath_overrides_runpath=yes
9078 ;;
9079 freebsd3.[01]* | freebsdelf3.[01]*)
9080 shlibpath_overrides_runpath=yes
9081 hardcode_into_libs=yes
9082 ;;
9083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9085 shlibpath_overrides_runpath=no
9086 hardcode_into_libs=yes
9087 ;;
9088 *) # from 4.6 on, and DragonFly
9089 shlibpath_overrides_runpath=yes
9090 hardcode_into_libs=yes
9091 ;;
9092 esac
9093 ;;
9094
9095 gnu*)
9096 version_type=linux
9097 need_lib_prefix=no
9098 need_version=no
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 hardcode_into_libs=yes
9103 ;;
9104
9105 hpux9* | hpux10* | hpux11*)
9106 # Give a soname corresponding to the major version so that dld.sl refuses to
9107 # link against other versions.
9108 version_type=sunos
9109 need_lib_prefix=no
9110 need_version=no
9111 case $host_cpu in
9112 ia64*)
9113 shrext_cmds='.so'
9114 hardcode_into_libs=yes
9115 dynamic_linker="$host_os dld.so"
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 if test "X$HPUX_IA64_MODE" = X32; then
9121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9122 else
9123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9124 fi
9125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9126 ;;
9127 hppa*64*)
9128 shrext_cmds='.sl'
9129 hardcode_into_libs=yes
9130 dynamic_linker="$host_os dld.sl"
9131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9137 ;;
9138 *)
9139 shrext_cmds='.sl'
9140 dynamic_linker="$host_os dld.sl"
9141 shlibpath_var=SHLIB_PATH
9142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 ;;
9146 esac
9147 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9148 postinstall_cmds='chmod 555 $lib'
9149 ;;
9150
9151 interix[3-9]*)
9152 version_type=linux
9153 need_lib_prefix=no
9154 need_version=no
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=no
9160 hardcode_into_libs=yes
9161 ;;
9162
9163 irix5* | irix6* | nonstopux*)
9164 case $host_os in
9165 nonstopux*) version_type=nonstopux ;;
9166 *)
9167 if test "$lt_cv_prog_gnu_ld" = yes; then
9168 version_type=linux
9169 else
9170 version_type=irix
9171 fi ;;
9172 esac
9173 need_lib_prefix=no
9174 need_version=no
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9177 case $host_os in
9178 irix5* | nonstopux*)
9179 libsuff= shlibsuff=
9180 ;;
9181 *)
9182 case $LD in # libtool.m4 will add one of these switches to LD
9183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9184 libsuff= shlibsuff= libmagic=32-bit;;
9185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9186 libsuff=32 shlibsuff=N32 libmagic=N32;;
9187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9189 *) libsuff= shlibsuff= libmagic=never-match;;
9190 esac
9191 ;;
9192 esac
9193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9194 shlibpath_overrides_runpath=no
9195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9197 hardcode_into_libs=yes
9198 ;;
9199
9200 # No shared lib support for Linux oldld, aout, or coff.
9201 linux*oldld* | linux*aout* | linux*coff*)
9202 dynamic_linker=no
9203 ;;
9204
9205 # This must be Linux ELF.
9206 linux* | k*bsd*-gnu)
9207 version_type=linux
9208 need_lib_prefix=no
9209 need_version=no
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=no
9215 # Some binutils ld are patched to set DT_RUNPATH
9216 save_LDFLAGS=$LDFLAGS
9217 save_libdir=$libdir
9218 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9219 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h. */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226
9227 int
9228 main ()
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>conftest.er1
9238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -z "$ac_c_werror_flag"
9245 || test ! -s conftest.err'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 (eval $ac_try) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; } &&
9251 { ac_try='test -s conftest$ac_exeext'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 (eval $ac_try) 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
9257 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9258 shlibpath_overrides_runpath=yes
9259 fi
9260
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 fi
9266 rm -f conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LDFLAGS=$save_LDFLAGS
9269 libdir=$save_libdir
9270
9271 # This implies no fast_install, which is unacceptable.
9272 # Some rework will be needed to allow for fast_install
9273 # before this can be enabled.
9274 hardcode_into_libs=yes
9275
9276 # Append ld.so.conf contents to the search path
9277 if test -f /etc/ld.so.conf; then
9278 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' ' '`
9279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9280 fi
9281
9282 # We used to test for /lib/ld.so.1 and disable shared libraries on
9283 # powerpc, because MkLinux only supported shared libraries with the
9284 # GNU dynamic linker. Since this was broken with cross compilers,
9285 # most powerpc-linux boxes support dynamic linking these days and
9286 # people can always --disable-shared, the test was removed, and we
9287 # assume the GNU/Linux dynamic linker is in use.
9288 dynamic_linker='GNU/Linux ld.so'
9289 ;;
9290
9291 netbsd*)
9292 version_type=sunos
9293 need_lib_prefix=no
9294 need_version=no
9295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298 dynamic_linker='NetBSD (a.out) ld.so'
9299 else
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 dynamic_linker='NetBSD ld.elf_so'
9303 fi
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 ;;
9308
9309 newsos6)
9310 version_type=linux
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9314 ;;
9315
9316 *nto* | *qnx*)
9317 version_type=qnx
9318 need_lib_prefix=no
9319 need_version=no
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=no
9324 hardcode_into_libs=yes
9325 dynamic_linker='ldqnx.so'
9326 ;;
9327
9328 openbsd*)
9329 version_type=sunos
9330 sys_lib_dlsearch_path_spec="/usr/lib"
9331 need_lib_prefix=no
9332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9333 case $host_os in
9334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9335 *) need_version=no ;;
9336 esac
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9341 case $host_os in
9342 openbsd2.[89] | openbsd2.[89].*)
9343 shlibpath_overrides_runpath=no
9344 ;;
9345 *)
9346 shlibpath_overrides_runpath=yes
9347 ;;
9348 esac
9349 else
9350 shlibpath_overrides_runpath=yes
9351 fi
9352 ;;
9353
9354 os2*)
9355 libname_spec='$name'
9356 shrext_cmds=".dll"
9357 need_lib_prefix=no
9358 library_names_spec='$libname${shared_ext} $libname.a'
9359 dynamic_linker='OS/2 ld.exe'
9360 shlibpath_var=LIBPATH
9361 ;;
9362
9363 osf3* | osf4* | osf5*)
9364 version_type=osf
9365 need_lib_prefix=no
9366 need_version=no
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9372 ;;
9373
9374 rdos*)
9375 dynamic_linker=no
9376 ;;
9377
9378 solaris*)
9379 version_type=linux
9380 need_lib_prefix=no
9381 need_version=no
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=yes
9386 hardcode_into_libs=yes
9387 # ldd complains unless libraries are executable
9388 postinstall_cmds='chmod +x $lib'
9389 ;;
9390
9391 sunos4*)
9392 version_type=sunos
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9395 shlibpath_var=LD_LIBRARY_PATH
9396 shlibpath_overrides_runpath=yes
9397 if test "$with_gnu_ld" = yes; then
9398 need_lib_prefix=no
9399 fi
9400 need_version=yes
9401 ;;
9402
9403 sysv4 | sysv4.3*)
9404 version_type=linux
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 case $host_vendor in
9409 sni)
9410 shlibpath_overrides_runpath=no
9411 need_lib_prefix=no
9412 runpath_var=LD_RUN_PATH
9413 ;;
9414 siemens)
9415 need_lib_prefix=no
9416 ;;
9417 motorola)
9418 need_lib_prefix=no
9419 need_version=no
9420 shlibpath_overrides_runpath=no
9421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9422 ;;
9423 esac
9424 ;;
9425
9426 sysv4*MP*)
9427 if test -d /usr/nec ;then
9428 version_type=linux
9429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9430 soname_spec='$libname${shared_ext}.$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 fi
9433 ;;
9434
9435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9436 version_type=freebsd-elf
9437 need_lib_prefix=no
9438 need_version=no
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9443 hardcode_into_libs=yes
9444 if test "$with_gnu_ld" = yes; then
9445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9446 else
9447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9448 case $host_os in
9449 sco3.2v5*)
9450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9451 ;;
9452 esac
9453 fi
9454 sys_lib_dlsearch_path_spec='/usr/lib'
9455 ;;
9456
9457 tpf*)
9458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9459 version_type=linux
9460 need_lib_prefix=no
9461 need_version=no
9462 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 ;;
9467
9468 uts4*)
9469 version_type=linux
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 ;;
9474
9475 *)
9476 dynamic_linker=no
9477 ;;
9478 esac
9479 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9480 echo "${ECHO_T}$dynamic_linker" >&6
9481 test "$dynamic_linker" = no && can_build_shared=no
9482
9483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9484 if test "$GCC" = yes; then
9485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9486 fi
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9575 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9576 hardcode_action=
9577 if test -n "$hardcode_libdir_flag_spec" ||
9578 test -n "$runpath_var" ||
9579 test "X$hardcode_automatic" = "Xyes" ; then
9580
9581 # We can hardcode non-existent directories.
9582 if test "$hardcode_direct" != no &&
9583 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9584 # have to relink, otherwise we might link with an installed library
9585 # when we should be linking with a yet-to-be-installed one
9586 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9587 test "$hardcode_minus_L" != no; then
9588 # Linking always hardcodes the temporary library directory.
9589 hardcode_action=relink
9590 else
9591 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9592 hardcode_action=immediate
9593 fi
9594 else
9595 # We cannot hardcode anything, or else we can only hardcode existing
9596 # directories.
9597 hardcode_action=unsupported
9598 fi
9599 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9600 echo "${ECHO_T}$hardcode_action" >&6
9601
9602 if test "$hardcode_action" = relink ||
9603 test "$inherit_rpath" = yes; then
9604 # Fast installation is not supported
9605 enable_fast_install=no
9606 elif test "$shlibpath_overrides_runpath" = yes ||
9607 test "$enable_shared" = no; then
9608 # Fast installation is not necessary
9609 enable_fast_install=needless
9610 fi
9611
9612
9613
9614
9615
9616
9617 if test "x$enable_dlopen" != xyes; then
9618 enable_dlopen=unknown
9619 enable_dlopen_self=unknown
9620 enable_dlopen_self_static=unknown
9621 else
9622 lt_cv_dlopen=no
9623 lt_cv_dlopen_libs=
9624
9625 case $host_os in
9626 beos*)
9627 lt_cv_dlopen="load_add_on"
9628 lt_cv_dlopen_libs=
9629 lt_cv_dlopen_self=yes
9630 ;;
9631
9632 mingw* | pw32*)
9633 lt_cv_dlopen="LoadLibrary"
9634 lt_cv_dlopen_libs=
9635 ;;
9636
9637 cygwin*)
9638 lt_cv_dlopen="dlopen"
9639 lt_cv_dlopen_libs=
9640 ;;
9641
9642 darwin*)
9643 # if libdl is installed we need to link against it
9644 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-ldl $LIBS"
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657
9658 /* Override any gcc2 internal prototype to avoid an error. */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9664 char dlopen ();
9665 int
9666 main ()
9667 {
9668 dlopen ();
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_dl_dlopen=yes
9696 else
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_lib_dl_dlopen=no
9701 fi
9702 rm -f conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 LIBS=$ac_check_lib_save_LIBS
9705 fi
9706 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9707 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9708 if test $ac_cv_lib_dl_dlopen = yes; then
9709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9710 else
9711
9712 lt_cv_dlopen="dyld"
9713 lt_cv_dlopen_libs=
9714 lt_cv_dlopen_self=yes
9715
9716 fi
9717
9718 ;;
9719
9720 *)
9721 echo "$as_me:$LINENO: checking for shl_load" >&5
9722 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9723 if test "${ac_cv_func_shl_load+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h. */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define shl_load innocuous_shl_load
9735
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char shl_load (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9740
9741 #ifdef __STDC__
9742 # include <limits.h>
9743 #else
9744 # include <assert.h>
9745 #endif
9746
9747 #undef shl_load
9748
9749 /* Override any gcc2 internal prototype to avoid an error. */
9750 #ifdef __cplusplus
9751 extern "C"
9752 {
9753 #endif
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9756 char shl_load ();
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9761 choke me
9762 #else
9763 char (*f) () = shl_load;
9764 #endif
9765 #ifdef __cplusplus
9766 }
9767 #endif
9768
9769 int
9770 main ()
9771 {
9772 return f != shl_load;
9773 ;
9774 return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_func_shl_load=yes
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ac_cv_func_shl_load=no
9805 fi
9806 rm -f conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 fi
9809 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9810 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9811 if test $ac_cv_func_shl_load = yes; then
9812 lt_cv_dlopen="shl_load"
9813 else
9814 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9815 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9816 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819 ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-ldld $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827
9828 /* Override any gcc2 internal prototype to avoid an error. */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9834 char shl_load ();
9835 int
9836 main ()
9837 {
9838 shl_load ();
9839 ;
9840 return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_lib_dld_shl_load=yes
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ac_cv_lib_dld_shl_load=no
9871 fi
9872 rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9875 fi
9876 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9877 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9878 if test $ac_cv_lib_dld_shl_load = yes; then
9879 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9880 else
9881 echo "$as_me:$LINENO: checking for dlopen" >&5
9882 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9883 if test "${ac_cv_func_dlopen+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 cat >conftest.$ac_ext <<_ACEOF
9887 /* confdefs.h. */
9888 _ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9894 #define dlopen innocuous_dlopen
9895
9896 /* System header to define __stub macros and hopefully few prototypes,
9897 which can conflict with char dlopen (); below.
9898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9899 <limits.h> exists even on freestanding compilers. */
9900
9901 #ifdef __STDC__
9902 # include <limits.h>
9903 #else
9904 # include <assert.h>
9905 #endif
9906
9907 #undef dlopen
9908
9909 /* Override any gcc2 internal prototype to avoid an error. */
9910 #ifdef __cplusplus
9911 extern "C"
9912 {
9913 #endif
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9916 char dlopen ();
9917 /* The GNU C library defines this for functions which it implements
9918 to always fail with ENOSYS. Some functions are actually named
9919 something starting with __ and the normal name is an alias. */
9920 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9921 choke me
9922 #else
9923 char (*f) () = dlopen;
9924 #endif
9925 #ifdef __cplusplus
9926 }
9927 #endif
9928
9929 int
9930 main ()
9931 {
9932 return f != dlopen;
9933 ;
9934 return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag"
9947 || test ! -s conftest.err'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 (eval $ac_try) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9959 ac_cv_func_dlopen=yes
9960 else
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964 ac_cv_func_dlopen=no
9965 fi
9966 rm -f conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968 fi
9969 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9970 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9971 if test $ac_cv_func_dlopen = yes; then
9972 lt_cv_dlopen="dlopen"
9973 else
9974 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9975 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9976 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 ac_check_lib_save_LIBS=$LIBS
9980 LIBS="-ldl $LIBS"
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987
9988 /* Override any gcc2 internal prototype to avoid an error. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9994 char dlopen ();
9995 int
9996 main ()
9997 {
9998 dlopen ();
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_cv_lib_dl_dlopen=yes
10026 else
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 ac_cv_lib_dl_dlopen=no
10031 fi
10032 rm -f conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 LIBS=$ac_check_lib_save_LIBS
10035 fi
10036 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10038 if test $ac_cv_lib_dl_dlopen = yes; then
10039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10040 else
10041 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10042 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10043 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046 ac_check_lib_save_LIBS=$LIBS
10047 LIBS="-lsvld $LIBS"
10048 cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h. */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054
10055 /* Override any gcc2 internal prototype to avoid an error. */
10056 #ifdef __cplusplus
10057 extern "C"
10058 #endif
10059 /* We use char because int might match the return type of a gcc2
10060 builtin and then its argument prototype would still apply. */
10061 char dlopen ();
10062 int
10063 main ()
10064 {
10065 dlopen ();
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072 (eval $ac_link) 2>conftest.er1
10073 ac_status=$?
10074 grep -v '^ *+' conftest.er1 >conftest.err
10075 rm -f conftest.er1
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -z "$ac_c_werror_flag"
10080 || test ! -s conftest.err'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest$ac_exeext'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; }; then
10092 ac_cv_lib_svld_dlopen=yes
10093 else
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10096
10097 ac_cv_lib_svld_dlopen=no
10098 fi
10099 rm -f conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10101 LIBS=$ac_check_lib_save_LIBS
10102 fi
10103 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10104 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10105 if test $ac_cv_lib_svld_dlopen = yes; then
10106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10107 else
10108 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10109 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10110 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113 ac_check_lib_save_LIBS=$LIBS
10114 LIBS="-ldld $LIBS"
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121
10122 /* Override any gcc2 internal prototype to avoid an error. */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 /* We use char because int might match the return type of a gcc2
10127 builtin and then its argument prototype would still apply. */
10128 char dld_link ();
10129 int
10130 main ()
10131 {
10132 dld_link ();
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag"
10147 || test ! -s conftest.err'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10159 ac_cv_lib_dld_dld_link=yes
10160 else
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164 ac_cv_lib_dld_dld_link=no
10165 fi
10166 rm -f conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10169 fi
10170 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10171 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10172 if test $ac_cv_lib_dld_dld_link = yes; then
10173 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10174 fi
10175
10176
10177 fi
10178
10179
10180 fi
10181
10182
10183 fi
10184
10185
10186 fi
10187
10188
10189 fi
10190
10191 ;;
10192 esac
10193
10194 if test "x$lt_cv_dlopen" != xno; then
10195 enable_dlopen=yes
10196 else
10197 enable_dlopen=no
10198 fi
10199
10200 case $lt_cv_dlopen in
10201 dlopen)
10202 save_CPPFLAGS="$CPPFLAGS"
10203 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10204
10205 save_LDFLAGS="$LDFLAGS"
10206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10207
10208 save_LIBS="$LIBS"
10209 LIBS="$lt_cv_dlopen_libs $LIBS"
10210
10211 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10212 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10213 if test "${lt_cv_dlopen_self+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216 if test "$cross_compiling" = yes; then :
10217 lt_cv_dlopen_self=cross
10218 else
10219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10220 lt_status=$lt_dlunknown
10221 cat > conftest.$ac_ext <<_LT_EOF
10222 #line 10222 "configure"
10223 #include "confdefs.h"
10224
10225 #if HAVE_DLFCN_H
10226 #include <dlfcn.h>
10227 #endif
10228
10229 #include <stdio.h>
10230
10231 #ifdef RTLD_GLOBAL
10232 # define LT_DLGLOBAL RTLD_GLOBAL
10233 #else
10234 # ifdef DL_GLOBAL
10235 # define LT_DLGLOBAL DL_GLOBAL
10236 # else
10237 # define LT_DLGLOBAL 0
10238 # endif
10239 #endif
10240
10241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10242 find out it does not work in some platform. */
10243 #ifndef LT_DLLAZY_OR_NOW
10244 # ifdef RTLD_LAZY
10245 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10246 # else
10247 # ifdef DL_LAZY
10248 # define LT_DLLAZY_OR_NOW DL_LAZY
10249 # else
10250 # ifdef RTLD_NOW
10251 # define LT_DLLAZY_OR_NOW RTLD_NOW
10252 # else
10253 # ifdef DL_NOW
10254 # define LT_DLLAZY_OR_NOW DL_NOW
10255 # else
10256 # define LT_DLLAZY_OR_NOW 0
10257 # endif
10258 # endif
10259 # endif
10260 # endif
10261 #endif
10262
10263 #ifdef __cplusplus
10264 extern "C" void exit (int);
10265 #endif
10266
10267 void fnord() { int i=42;}
10268 int main ()
10269 {
10270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10271 int status = $lt_dlunknown;
10272
10273 if (self)
10274 {
10275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10277 /* dlclose (self); */
10278 }
10279 else
10280 puts (dlerror ());
10281
10282 exit (status);
10283 }
10284 _LT_EOF
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10290 (./conftest; exit; ) >&5 2>/dev/null
10291 lt_status=$?
10292 case x$lt_status in
10293 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10294 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10295 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10296 esac
10297 else :
10298 # compilation failed
10299 lt_cv_dlopen_self=no
10300 fi
10301 fi
10302 rm -fr conftest*
10303
10304
10305 fi
10306 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10307 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10308
10309 if test "x$lt_cv_dlopen_self" = xyes; then
10310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10311 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10312 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10313 if test "${lt_cv_dlopen_self_static+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316 if test "$cross_compiling" = yes; then :
10317 lt_cv_dlopen_self_static=cross
10318 else
10319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10320 lt_status=$lt_dlunknown
10321 cat > conftest.$ac_ext <<_LT_EOF
10322 #line 10322 "configure"
10323 #include "confdefs.h"
10324
10325 #if HAVE_DLFCN_H
10326 #include <dlfcn.h>
10327 #endif
10328
10329 #include <stdio.h>
10330
10331 #ifdef RTLD_GLOBAL
10332 # define LT_DLGLOBAL RTLD_GLOBAL
10333 #else
10334 # ifdef DL_GLOBAL
10335 # define LT_DLGLOBAL DL_GLOBAL
10336 # else
10337 # define LT_DLGLOBAL 0
10338 # endif
10339 #endif
10340
10341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10342 find out it does not work in some platform. */
10343 #ifndef LT_DLLAZY_OR_NOW
10344 # ifdef RTLD_LAZY
10345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10346 # else
10347 # ifdef DL_LAZY
10348 # define LT_DLLAZY_OR_NOW DL_LAZY
10349 # else
10350 # ifdef RTLD_NOW
10351 # define LT_DLLAZY_OR_NOW RTLD_NOW
10352 # else
10353 # ifdef DL_NOW
10354 # define LT_DLLAZY_OR_NOW DL_NOW
10355 # else
10356 # define LT_DLLAZY_OR_NOW 0
10357 # endif
10358 # endif
10359 # endif
10360 # endif
10361 #endif
10362
10363 #ifdef __cplusplus
10364 extern "C" void exit (int);
10365 #endif
10366
10367 void fnord() { int i=42;}
10368 int main ()
10369 {
10370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10371 int status = $lt_dlunknown;
10372
10373 if (self)
10374 {
10375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10377 /* dlclose (self); */
10378 }
10379 else
10380 puts (dlerror ());
10381
10382 exit (status);
10383 }
10384 _LT_EOF
10385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10386 (eval $ac_link) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10390 (./conftest; exit; ) >&5 2>/dev/null
10391 lt_status=$?
10392 case x$lt_status in
10393 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10394 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10395 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10396 esac
10397 else :
10398 # compilation failed
10399 lt_cv_dlopen_self_static=no
10400 fi
10401 fi
10402 rm -fr conftest*
10403
10404
10405 fi
10406 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10407 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10408 fi
10409
10410 CPPFLAGS="$save_CPPFLAGS"
10411 LDFLAGS="$save_LDFLAGS"
10412 LIBS="$save_LIBS"
10413 ;;
10414 esac
10415
10416 case $lt_cv_dlopen_self in
10417 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10418 *) enable_dlopen_self=unknown ;;
10419 esac
10420
10421 case $lt_cv_dlopen_self_static in
10422 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10423 *) enable_dlopen_self_static=unknown ;;
10424 esac
10425 fi
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443 striplib=
10444 old_striplib=
10445 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10446 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10447 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10448 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10449 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10450 echo "$as_me:$LINENO: result: yes" >&5
10451 echo "${ECHO_T}yes" >&6
10452 else
10453 # FIXME - insert some real tests, host_os isn't really good enough
10454 case $host_os in
10455 darwin*)
10456 if test -n "$STRIP" ; then
10457 striplib="$STRIP -x"
10458 old_striplib="$STRIP -S"
10459 echo "$as_me:$LINENO: result: yes" >&5
10460 echo "${ECHO_T}yes" >&6
10461 else
10462 echo "$as_me:$LINENO: result: no" >&5
10463 echo "${ECHO_T}no" >&6
10464 fi
10465 ;;
10466 *)
10467 echo "$as_me:$LINENO: result: no" >&5
10468 echo "${ECHO_T}no" >&6
10469 ;;
10470 esac
10471 fi
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484 # Report which library types will actually be built
10485 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10486 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10487 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10488 echo "${ECHO_T}$can_build_shared" >&6
10489
10490 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10491 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10492 test "$can_build_shared" = "no" && enable_shared=no
10493
10494 # On AIX, shared libraries and static libraries use the same namespace, and
10495 # are all built from PIC.
10496 case $host_os in
10497 aix3*)
10498 test "$enable_shared" = yes && enable_static=no
10499 if test -n "$RANLIB"; then
10500 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10501 postinstall_cmds='$RANLIB $lib'
10502 fi
10503 ;;
10504
10505 aix[4-9]*)
10506 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10507 test "$enable_shared" = yes && enable_static=no
10508 fi
10509 ;;
10510 esac
10511 echo "$as_me:$LINENO: result: $enable_shared" >&5
10512 echo "${ECHO_T}$enable_shared" >&6
10513
10514 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10515 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10516 # Make sure either enable_shared or enable_static is yes.
10517 test "$enable_shared" = yes || enable_static=yes
10518 echo "$as_me:$LINENO: result: $enable_static" >&5
10519 echo "${ECHO_T}$enable_static" >&6
10520
10521
10522
10523
10524 fi
10525 ac_ext=c
10526 ac_cpp='$CPP $CPPFLAGS'
10527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10530
10531 CC="$lt_save_CC"
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545 ac_config_commands="$ac_config_commands libtool"
10546
10547
10548
10549
10550 # Only expand once:
10551
10552
10553
10554 # Check whether --enable-targets or --disable-targets was given.
10555 if test "${enable_targets+set}" = set; then
10556 enableval="$enable_targets"
10557 case "${enableval}" in
10558 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10559 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10560 { (exit 1); exit 1; }; }
10561 ;;
10562 no) enable_targets= ;;
10563 *) enable_targets=$enableval ;;
10564 esac
10565 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10566 if test "${enable_commonbfdlib+set}" = set; then
10567 enableval="$enable_commonbfdlib"
10568 case "${enableval}" in
10569 yes) commonbfdlib=true ;;
10570 no) commonbfdlib=false ;;
10571 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10572 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10573 { (exit 1); exit 1; }; } ;;
10574 esac
10575 fi;
10576
10577 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10578
10579 # Check whether --enable-werror or --disable-werror was given.
10580 if test "${enable_werror+set}" = set; then
10581 enableval="$enable_werror"
10582 case "${enableval}" in
10583 yes | y) ERROR_ON_WARNING="yes" ;;
10584 no | n) ERROR_ON_WARNING="no" ;;
10585 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10586 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10587 { (exit 1); exit 1; }; } ;;
10588 esac
10589 fi;
10590
10591 # Enable -Wno-format by default when using gcc on mingw
10592 case "${host}" in
10593 *-*-mingw32*)
10594 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10595 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10596 fi
10597 ;;
10598 *) ;;
10599 esac
10600
10601 # Enable -Werror by default when using gcc
10602 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10603 ERROR_ON_WARNING=yes
10604 fi
10605
10606 NO_WERROR=
10607 if test "${ERROR_ON_WARNING}" = yes ; then
10608 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10609 NO_WERROR="-Wno-error"
10610 fi
10611
10612 if test "${GCC}" = yes ; then
10613 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10614 fi
10615
10616 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10617 if test "${enable_build_warnings+set}" = set; then
10618 enableval="$enable_build_warnings"
10619 case "${enableval}" in
10620 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10621 no) if test "${GCC}" = yes ; then
10622 WARN_CFLAGS="-w"
10623 fi;;
10624 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10625 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10626 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10627 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10628 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10629 esac
10630 fi;
10631
10632 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10633 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10634 fi
10635
10636
10637
10638
10639
10640 ac_config_headers="$ac_config_headers config.h:config.in"
10641
10642
10643 if test -z "$target" ; then
10644 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10645 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10646 { (exit 1); exit 1; }; }
10647 fi
10648 if test -z "$host" ; then
10649 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10650 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10651 { (exit 1); exit 1; }; }
10652 fi
10653
10654 for ac_prog in 'bison -y' byacc
10655 do
10656 # Extract the first word of "$ac_prog", so it can be a program name with args.
10657 set dummy $ac_prog; ac_word=$2
10658 echo "$as_me:$LINENO: checking for $ac_word" >&5
10659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660 if test "${ac_cv_prog_YACC+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 if test -n "$YACC"; then
10664 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10665 else
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10668 do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_YACC="$ac_prog"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10676 fi
10677 done
10678 done
10679
10680 fi
10681 fi
10682 YACC=$ac_cv_prog_YACC
10683 if test -n "$YACC"; then
10684 echo "$as_me:$LINENO: result: $YACC" >&5
10685 echo "${ECHO_T}$YACC" >&6
10686 else
10687 echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6
10689 fi
10690
10691 test -n "$YACC" && break
10692 done
10693 test -n "$YACC" || YACC="yacc"
10694
10695 for ac_prog in flex lex
10696 do
10697 # Extract the first word of "$ac_prog", so it can be a program name with args.
10698 set dummy $ac_prog; ac_word=$2
10699 echo "$as_me:$LINENO: checking for $ac_word" >&5
10700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10701 if test "${ac_cv_prog_LEX+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704 if test -n "$LEX"; then
10705 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10706 else
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10709 do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10714 ac_cv_prog_LEX="$ac_prog"
10715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718 done
10719 done
10720
10721 fi
10722 fi
10723 LEX=$ac_cv_prog_LEX
10724 if test -n "$LEX"; then
10725 echo "$as_me:$LINENO: result: $LEX" >&5
10726 echo "${ECHO_T}$LEX" >&6
10727 else
10728 echo "$as_me:$LINENO: result: no" >&5
10729 echo "${ECHO_T}no" >&6
10730 fi
10731
10732 test -n "$LEX" && break
10733 done
10734 test -n "$LEX" || LEX=":"
10735
10736 if test -z "$LEXLIB"
10737 then
10738 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10739 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10740 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 ac_check_lib_save_LIBS=$LIBS
10744 LIBS="-lfl $LIBS"
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751
10752 /* Override any gcc2 internal prototype to avoid an error. */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 /* We use char because int might match the return type of a gcc2
10757 builtin and then its argument prototype would still apply. */
10758 char yywrap ();
10759 int
10760 main ()
10761 {
10762 yywrap ();
10763 ;
10764 return 0;
10765 }
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag"
10777 || test ! -s conftest.err'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest$ac_exeext'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 ac_cv_lib_fl_yywrap=yes
10790 else
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10793
10794 ac_cv_lib_fl_yywrap=no
10795 fi
10796 rm -f conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10799 fi
10800 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10801 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10802 if test $ac_cv_lib_fl_yywrap = yes; then
10803 LEXLIB="-lfl"
10804 else
10805 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10806 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10807 if test "${ac_cv_lib_l_yywrap+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 else
10810 ac_check_lib_save_LIBS=$LIBS
10811 LIBS="-ll $LIBS"
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818
10819 /* Override any gcc2 internal prototype to avoid an error. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 /* We use char because int might match the return type of a gcc2
10824 builtin and then its argument prototype would still apply. */
10825 char yywrap ();
10826 int
10827 main ()
10828 {
10829 yywrap ();
10830 ;
10831 return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag"
10844 || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest$ac_exeext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 ac_cv_lib_l_yywrap=yes
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861 ac_cv_lib_l_yywrap=no
10862 fi
10863 rm -f conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10866 fi
10867 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10868 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10869 if test $ac_cv_lib_l_yywrap = yes; then
10870 LEXLIB="-ll"
10871 fi
10872
10873 fi
10874
10875 fi
10876
10877 if test "x$LEX" != "x:"; then
10878 echo "$as_me:$LINENO: checking lex output file root" >&5
10879 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10880 if test "${ac_cv_prog_lex_root+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883 # The minimal lex program is just a single line: %%. But some broken lexes
10884 # (Solaris, I think it was) want two %% lines, so accommodate them.
10885 cat >conftest.l <<_ACEOF
10886 %%
10887 %%
10888 _ACEOF
10889 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10890 (eval $LEX conftest.l) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }
10894 if test -f lex.yy.c; then
10895 ac_cv_prog_lex_root=lex.yy
10896 elif test -f lexyy.c; then
10897 ac_cv_prog_lex_root=lexyy
10898 else
10899 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10900 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10901 { (exit 1); exit 1; }; }
10902 fi
10903 fi
10904 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10905 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10906 rm -f conftest.l
10907 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10908
10909 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10910 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10911 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914 # POSIX says lex can declare yytext either as a pointer or an array; the
10915 # default is implementation-dependent. Figure out which it is, since
10916 # not all implementations provide the %pointer and %array declarations.
10917 ac_cv_prog_lex_yytext_pointer=no
10918 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10919 ac_save_LIBS=$LIBS
10920 LIBS="$LIBS $LEXLIB"
10921 cat >conftest.$ac_ext <<_ACEOF
10922 `cat $LEX_OUTPUT_ROOT.c`
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest$ac_exeext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 ac_cv_prog_lex_yytext_pointer=yes
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 fi
10952 rm -f conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_save_LIBS
10955 rm -f "${LEX_OUTPUT_ROOT}.c"
10956
10957 fi
10958 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10959 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10960 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10961
10962 cat >>confdefs.h <<\_ACEOF
10963 #define YYTEXT_POINTER 1
10964 _ACEOF
10965
10966 fi
10967
10968 fi
10969 if test "$LEX" = :; then
10970 LEX=${am_missing_run}flex
10971 fi
10972
10973 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
10974 # If we haven't got the data from the intl directory,
10975 # assume NLS is disabled.
10976 USE_NLS=no
10977 LIBINTL=
10978 LIBINTL_DEP=
10979 INCINTL=
10980 XGETTEXT=
10981 GMSGFMT=
10982 POSUB=
10983
10984 if test -f ../intl/config.intl; then
10985 . ../intl/config.intl
10986 fi
10987 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10988 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10989 if test x"$USE_NLS" != xyes; then
10990 echo "$as_me:$LINENO: result: no" >&5
10991 echo "${ECHO_T}no" >&6
10992 else
10993 echo "$as_me:$LINENO: result: yes" >&5
10994 echo "${ECHO_T}yes" >&6
10995
10996 cat >>confdefs.h <<\_ACEOF
10997 #define ENABLE_NLS 1
10998 _ACEOF
10999
11000
11001 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11002 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11003 # Look for .po and .gmo files in the source directory.
11004 CATALOGS=
11005 XLINGUAS=
11006 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11007 # If there aren't any .gmo files the shell will give us the
11008 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11009 # weeded out.
11010 case "$cat" in *\**)
11011 continue;;
11012 esac
11013 # The quadruple backslash is collapsed to a double backslash
11014 # by the backticks, then collapsed again by the double quotes,
11015 # leaving us with one backslash in the sed expression (right
11016 # before the dot that mustn't act as a wildcard).
11017 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11018 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11019 # The user is allowed to set LINGUAS to a list of languages to
11020 # install catalogs for. If it's empty that means "all of them."
11021 if test "x$LINGUAS" = x; then
11022 CATALOGS="$CATALOGS $cat"
11023 XLINGUAS="$XLINGUAS $lang"
11024 else
11025 case "$LINGUAS" in *$lang*)
11026 CATALOGS="$CATALOGS $cat"
11027 XLINGUAS="$XLINGUAS $lang"
11028 ;;
11029 esac
11030 fi
11031 done
11032 LINGUAS="$XLINGUAS"
11033 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11034 echo "${ECHO_T}$LINGUAS" >&6
11035
11036
11037 DATADIRNAME=share
11038
11039 INSTOBJEXT=.mo
11040
11041 GENCAT=gencat
11042
11043 CATOBJEXT=.gmo
11044
11045 fi
11046
11047 MKINSTALLDIRS=
11048 if test -n "$ac_aux_dir"; then
11049 case "$ac_aux_dir" in
11050 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11051 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11052 esac
11053 fi
11054 if test -z "$MKINSTALLDIRS"; then
11055 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11056 fi
11057
11058
11059
11060 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11061 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11062 # Check whether --enable-nls or --disable-nls was given.
11063 if test "${enable_nls+set}" = set; then
11064 enableval="$enable_nls"
11065 USE_NLS=$enableval
11066 else
11067 USE_NLS=yes
11068 fi;
11069 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11070 echo "${ECHO_T}$USE_NLS" >&6
11071
11072
11073
11074
11075
11076
11077 # Prepare PATH_SEPARATOR.
11078 # The user is always right.
11079 if test "${PATH_SEPARATOR+set}" != set; then
11080 echo "#! /bin/sh" >conf$$.sh
11081 echo "exit 0" >>conf$$.sh
11082 chmod +x conf$$.sh
11083 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11084 PATH_SEPARATOR=';'
11085 else
11086 PATH_SEPARATOR=:
11087 fi
11088 rm -f conf$$.sh
11089 fi
11090
11091 # Find out how to test for executable files. Don't use a zero-byte file,
11092 # as systems may use methods other than mode bits to determine executability.
11093 cat >conf$$.file <<_ASEOF
11094 #! /bin/sh
11095 exit 0
11096 _ASEOF
11097 chmod +x conf$$.file
11098 if test -x conf$$.file >/dev/null 2>&1; then
11099 ac_executable_p="test -x"
11100 else
11101 ac_executable_p="test -f"
11102 fi
11103 rm -f conf$$.file
11104
11105 # Extract the first word of "msgfmt", so it can be a program name with args.
11106 set dummy msgfmt; ac_word=$2
11107 echo "$as_me:$LINENO: checking for $ac_word" >&5
11108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11109 if test "${ac_cv_path_MSGFMT+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112 case "$MSGFMT" in
11113 [\\/]* | ?:[\\/]*)
11114 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11115 ;;
11116 *)
11117 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11118 for ac_dir in $PATH; do
11119 IFS="$ac_save_IFS"
11120 test -z "$ac_dir" && ac_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11123 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11124 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11125 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11126 break 2
11127 fi
11128 fi
11129 done
11130 done
11131 IFS="$ac_save_IFS"
11132 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11133 ;;
11134 esac
11135 fi
11136 MSGFMT="$ac_cv_path_MSGFMT"
11137 if test "$MSGFMT" != ":"; then
11138 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11139 echo "${ECHO_T}$MSGFMT" >&6
11140 else
11141 echo "$as_me:$LINENO: result: no" >&5
11142 echo "${ECHO_T}no" >&6
11143 fi
11144
11145 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11146 set dummy gmsgfmt; ac_word=$2
11147 echo "$as_me:$LINENO: checking for $ac_word" >&5
11148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11149 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152 case $GMSGFMT in
11153 [\\/]* | ?:[\\/]*)
11154 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11155 ;;
11156 *)
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11159 do
11160 IFS=$as_save_IFS
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11164 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11166 break 2
11167 fi
11168 done
11169 done
11170
11171 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11172 ;;
11173 esac
11174 fi
11175 GMSGFMT=$ac_cv_path_GMSGFMT
11176
11177 if test -n "$GMSGFMT"; then
11178 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11179 echo "${ECHO_T}$GMSGFMT" >&6
11180 else
11181 echo "$as_me:$LINENO: result: no" >&5
11182 echo "${ECHO_T}no" >&6
11183 fi
11184
11185
11186
11187 # Prepare PATH_SEPARATOR.
11188 # The user is always right.
11189 if test "${PATH_SEPARATOR+set}" != set; then
11190 echo "#! /bin/sh" >conf$$.sh
11191 echo "exit 0" >>conf$$.sh
11192 chmod +x conf$$.sh
11193 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11194 PATH_SEPARATOR=';'
11195 else
11196 PATH_SEPARATOR=:
11197 fi
11198 rm -f conf$$.sh
11199 fi
11200
11201 # Find out how to test for executable files. Don't use a zero-byte file,
11202 # as systems may use methods other than mode bits to determine executability.
11203 cat >conf$$.file <<_ASEOF
11204 #! /bin/sh
11205 exit 0
11206 _ASEOF
11207 chmod +x conf$$.file
11208 if test -x conf$$.file >/dev/null 2>&1; then
11209 ac_executable_p="test -x"
11210 else
11211 ac_executable_p="test -f"
11212 fi
11213 rm -f conf$$.file
11214
11215 # Extract the first word of "xgettext", so it can be a program name with args.
11216 set dummy xgettext; ac_word=$2
11217 echo "$as_me:$LINENO: checking for $ac_word" >&5
11218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11219 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222 case "$XGETTEXT" in
11223 [\\/]* | ?:[\\/]*)
11224 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11225 ;;
11226 *)
11227 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11228 for ac_dir in $PATH; do
11229 IFS="$ac_save_IFS"
11230 test -z "$ac_dir" && ac_dir=.
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11233 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11234 (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
11235 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11236 break 2
11237 fi
11238 fi
11239 done
11240 done
11241 IFS="$ac_save_IFS"
11242 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11243 ;;
11244 esac
11245 fi
11246 XGETTEXT="$ac_cv_path_XGETTEXT"
11247 if test "$XGETTEXT" != ":"; then
11248 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11249 echo "${ECHO_T}$XGETTEXT" >&6
11250 else
11251 echo "$as_me:$LINENO: result: no" >&5
11252 echo "${ECHO_T}no" >&6
11253 fi
11254
11255 rm -f messages.po
11256
11257
11258 # Prepare PATH_SEPARATOR.
11259 # The user is always right.
11260 if test "${PATH_SEPARATOR+set}" != set; then
11261 echo "#! /bin/sh" >conf$$.sh
11262 echo "exit 0" >>conf$$.sh
11263 chmod +x conf$$.sh
11264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11265 PATH_SEPARATOR=';'
11266 else
11267 PATH_SEPARATOR=:
11268 fi
11269 rm -f conf$$.sh
11270 fi
11271
11272 # Find out how to test for executable files. Don't use a zero-byte file,
11273 # as systems may use methods other than mode bits to determine executability.
11274 cat >conf$$.file <<_ASEOF
11275 #! /bin/sh
11276 exit 0
11277 _ASEOF
11278 chmod +x conf$$.file
11279 if test -x conf$$.file >/dev/null 2>&1; then
11280 ac_executable_p="test -x"
11281 else
11282 ac_executable_p="test -f"
11283 fi
11284 rm -f conf$$.file
11285
11286 # Extract the first word of "msgmerge", so it can be a program name with args.
11287 set dummy msgmerge; ac_word=$2
11288 echo "$as_me:$LINENO: checking for $ac_word" >&5
11289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11290 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293 case "$MSGMERGE" in
11294 [\\/]* | ?:[\\/]*)
11295 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11296 ;;
11297 *)
11298 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11299 for ac_dir in $PATH; do
11300 IFS="$ac_save_IFS"
11301 test -z "$ac_dir" && ac_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11304 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11305 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11306 break 2
11307 fi
11308 fi
11309 done
11310 done
11311 IFS="$ac_save_IFS"
11312 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11313 ;;
11314 esac
11315 fi
11316 MSGMERGE="$ac_cv_path_MSGMERGE"
11317 if test "$MSGMERGE" != ":"; then
11318 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11319 echo "${ECHO_T}$MSGMERGE" >&6
11320 else
11321 echo "$as_me:$LINENO: result: no" >&5
11322 echo "${ECHO_T}no" >&6
11323 fi
11324
11325
11326 if test "$GMSGFMT" != ":"; then
11327 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11328 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11329 : ;
11330 else
11331 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11332 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11333 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11334 GMSGFMT=":"
11335 fi
11336 fi
11337
11338 if test "$XGETTEXT" != ":"; then
11339 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11340 (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
11341 : ;
11342 else
11343 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11344 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11345 XGETTEXT=":"
11346 fi
11347 rm -f messages.po
11348 fi
11349
11350 ac_config_commands="$ac_config_commands default-1"
11351
11352
11353
11354 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11355 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11356 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11357 if test "${enable_maintainer_mode+set}" = set; then
11358 enableval="$enable_maintainer_mode"
11359 USE_MAINTAINER_MODE=$enableval
11360 else
11361 USE_MAINTAINER_MODE=no
11362 fi;
11363 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11364 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11365
11366
11367 if test $USE_MAINTAINER_MODE = yes; then
11368 MAINTAINER_MODE_TRUE=
11369 MAINTAINER_MODE_FALSE='#'
11370 else
11371 MAINTAINER_MODE_TRUE='#'
11372 MAINTAINER_MODE_FALSE=
11373 fi
11374
11375 MAINT=$MAINTAINER_MODE_TRUE
11376
11377
11378
11379
11380 if false; then
11381 GENINSRC_NEVER_TRUE=
11382 GENINSRC_NEVER_FALSE='#'
11383 else
11384 GENINSRC_NEVER_TRUE='#'
11385 GENINSRC_NEVER_FALSE=
11386 fi
11387
11388
11389 if test -n "$EXEEXT"; then
11390
11391 cat >>confdefs.h <<\_ACEOF
11392 #define HAVE_EXECUTABLE_SUFFIX 1
11393 _ACEOF
11394
11395 fi
11396
11397 cat >>confdefs.h <<_ACEOF
11398 #define EXECUTABLE_SUFFIX "${EXEEXT}"
11399 _ACEOF
11400
11401
11402 # host-specific stuff:
11403
11404 HDEFINES=
11405
11406 . ${srcdir}/../bfd/configure.host
11407
11408
11409 AR=${AR-ar}
11410
11411 if test -n "$ac_tool_prefix"; then
11412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11414 echo "$as_me:$LINENO: checking for $ac_word" >&5
11415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11416 if test "${ac_cv_prog_RANLIB+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 if test -n "$RANLIB"; then
11420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11421 else
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11424 do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11432 fi
11433 done
11434 done
11435
11436 fi
11437 fi
11438 RANLIB=$ac_cv_prog_RANLIB
11439 if test -n "$RANLIB"; then
11440 echo "$as_me:$LINENO: result: $RANLIB" >&5
11441 echo "${ECHO_T}$RANLIB" >&6
11442 else
11443 echo "$as_me:$LINENO: result: no" >&5
11444 echo "${ECHO_T}no" >&6
11445 fi
11446
11447 fi
11448 if test -z "$ac_cv_prog_RANLIB"; then
11449 ac_ct_RANLIB=$RANLIB
11450 # Extract the first word of "ranlib", so it can be a program name with args.
11451 set dummy ranlib; ac_word=$2
11452 echo "$as_me:$LINENO: checking for $ac_word" >&5
11453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457 if test -n "$ac_ct_RANLIB"; then
11458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11459 else
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH
11462 do
11463 IFS=$as_save_IFS
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11467 ac_cv_prog_ac_ct_RANLIB="ranlib"
11468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 break 2
11470 fi
11471 done
11472 done
11473
11474 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11475 fi
11476 fi
11477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11478 if test -n "$ac_ct_RANLIB"; then
11479 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11480 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11481 else
11482 echo "$as_me:$LINENO: result: no" >&5
11483 echo "${ECHO_T}no" >&6
11484 fi
11485
11486 RANLIB=$ac_ct_RANLIB
11487 else
11488 RANLIB="$ac_cv_prog_RANLIB"
11489 fi
11490
11491 # Find a good install program. We prefer a C program (faster),
11492 # so one script is as good as another. But avoid the broken or
11493 # incompatible versions:
11494 # SysV /etc/install, /usr/sbin/install
11495 # SunOS /usr/etc/install
11496 # IRIX /sbin/install
11497 # AIX /bin/install
11498 # AmigaOS /C/install, which installs bootblocks on floppy discs
11499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11502 # OS/2's system install, which has a completely different semantic
11503 # ./install, which can be erroneously created by make from ./install.sh.
11504 # Reject install programs that cannot install multiple files.
11505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11507 if test -z "$INSTALL"; then
11508 if test "${ac_cv_path_install+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11513 do
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 # Account for people who put trailing slashes in PATH elements.
11517 case $as_dir/ in
11518 ./ | .// | /cC/* | \
11519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11521 /usr/ucb/* ) ;;
11522 *)
11523 # OSF1 and SCO ODT 3.0 have their own names for install.
11524 # Don't use installbsd from OSF since it installs stuff as root
11525 # by default.
11526 for ac_prog in ginstall scoinst install; do
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11529 if test $ac_prog = install &&
11530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11531 # AIX install. It has an incompatible calling convention.
11532 :
11533 elif test $ac_prog = install &&
11534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11535 # program-specific install script used by HP pwplus--don't use.
11536 :
11537 else
11538 rm -rf conftest.one conftest.two conftest.dir
11539 echo one > conftest.one
11540 echo two > conftest.two
11541 mkdir conftest.dir
11542 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11543 test -s conftest.one && test -s conftest.two &&
11544 test -s conftest.dir/conftest.one &&
11545 test -s conftest.dir/conftest.two
11546 then
11547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11548 break 3
11549 fi
11550 fi
11551 fi
11552 done
11553 done
11554 ;;
11555 esac
11556 done
11557
11558 rm -rf conftest.one conftest.two conftest.dir
11559
11560 fi
11561 if test "${ac_cv_path_install+set}" = set; then
11562 INSTALL=$ac_cv_path_install
11563 else
11564 # As a last resort, use the slow shell script. Don't cache a
11565 # value for INSTALL within a source directory, because that will
11566 # break other packages using the cache if that directory is
11567 # removed, or if the value is a relative name.
11568 INSTALL=$ac_install_sh
11569 fi
11570 fi
11571 echo "$as_me:$LINENO: result: $INSTALL" >&5
11572 echo "${ECHO_T}$INSTALL" >&6
11573
11574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11575 # It thinks the first close brace ends the variable substitution.
11576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11577
11578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11579
11580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11581
11582
11583 # Put a plausible default for CC_FOR_BUILD in Makefile.
11584 if test -z "$CC_FOR_BUILD"; then
11585 if test "x$cross_compiling" = "xno"; then
11586 CC_FOR_BUILD='$(CC)'
11587 else
11588 CC_FOR_BUILD=gcc
11589 fi
11590 fi
11591
11592 # Also set EXEEXT_FOR_BUILD.
11593 if test "x$cross_compiling" = "xno"; then
11594 EXEEXT_FOR_BUILD='$(EXEEXT)'
11595 else
11596 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11597 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11598 if test "${bfd_cv_build_exeext+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 rm -f conftest*
11602 echo 'int main () { return 0; }' > conftest.c
11603 bfd_cv_build_exeext=
11604 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11605 for file in conftest.*; do
11606 case $file in
11607 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11608 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11609 esac
11610 done
11611 rm -f conftest*
11612 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11613 fi
11614 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11615 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11616 EXEEXT_FOR_BUILD=""
11617 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11618 fi
11619
11620
11621 DEMANGLER_NAME=c++filt
11622 case "${host}" in
11623 *-*-go32* | *-*-msdos*)
11624 DEMANGLER_NAME=cxxfilt
11625 esac
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
11637 do
11638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11640 echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 fi
11645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11647 else
11648 # Is the header compilable?
11649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 $ac_includes_default
11658 #include <$ac_header>
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 (eval $ac_compile) 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag"
11670 || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_header_compiler=yes
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 ac_header_compiler=no
11688 fi
11689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11691 echo "${ECHO_T}$ac_header_compiler" >&6
11692
11693 # Is the header present?
11694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11696 cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h. */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702 #include <$ac_header>
11703 _ACEOF
11704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } >/dev/null; then
11712 if test -s conftest.err; then
11713 ac_cpp_err=$ac_c_preproc_warn_flag
11714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11715 else
11716 ac_cpp_err=
11717 fi
11718 else
11719 ac_cpp_err=yes
11720 fi
11721 if test -z "$ac_cpp_err"; then
11722 ac_header_preproc=yes
11723 else
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 ac_header_preproc=no
11728 fi
11729 rm -f conftest.err conftest.$ac_ext
11730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11731 echo "${ECHO_T}$ac_header_preproc" >&6
11732
11733 # So? What about this header?
11734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11735 yes:no: )
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11740 ac_header_preproc=yes
11741 ;;
11742 no:yes:* )
11743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11755 (
11756 cat <<\_ASBOX
11757 ## ------------------------------------------ ##
11758 ## Report this to the AC_PACKAGE_NAME lists. ##
11759 ## ------------------------------------------ ##
11760 _ASBOX
11761 ) |
11762 sed "s/^/$as_me: WARNING: /" >&2
11763 ;;
11764 esac
11765 echo "$as_me:$LINENO: checking for $ac_header" >&5
11766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 eval "$as_ac_Header=\$ac_header_preproc"
11771 fi
11772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11774
11775 fi
11776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11777 cat >>confdefs.h <<_ACEOF
11778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11779 _ACEOF
11780
11781 fi
11782
11783 done
11784
11785 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11786 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11787 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 #include <sys/types.h>
11797 #include <sys/wait.h>
11798 #ifndef WEXITSTATUS
11799 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11800 #endif
11801 #ifndef WIFEXITED
11802 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11803 #endif
11804
11805 int
11806 main ()
11807 {
11808 int s;
11809 wait (&s);
11810 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11811 ;
11812 return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817 (eval $ac_compile) 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_c_werror_flag"
11825 || test ! -s conftest.err'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest.$ac_objext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_header_sys_wait_h=yes
11838 else
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842 ac_cv_header_sys_wait_h=no
11843 fi
11844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11845 fi
11846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11847 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11848 if test $ac_cv_header_sys_wait_h = yes; then
11849
11850 cat >>confdefs.h <<\_ACEOF
11851 #define HAVE_SYS_WAIT_H 1
11852 _ACEOF
11853
11854 fi
11855
11856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11857 # for constant arguments. Useless!
11858 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11859 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11860 if test "${ac_cv_working_alloca_h+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <alloca.h>
11870 int
11871 main ()
11872 {
11873 char *p = (char *) alloca (2 * sizeof (int));
11874 ;
11875 return 0;
11876 }
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag"
11888 || test ! -s conftest.err'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_working_alloca_h=yes
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 ac_cv_working_alloca_h=no
11906 fi
11907 rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 fi
11910 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11911 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11912 if test $ac_cv_working_alloca_h = yes; then
11913
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_ALLOCA_H 1
11916 _ACEOF
11917
11918 fi
11919
11920 echo "$as_me:$LINENO: checking for alloca" >&5
11921 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11922 if test "${ac_cv_func_alloca_works+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 #ifdef __GNUC__
11932 # define alloca __builtin_alloca
11933 #else
11934 # ifdef _MSC_VER
11935 # include <malloc.h>
11936 # define alloca _alloca
11937 # else
11938 # if HAVE_ALLOCA_H
11939 # include <alloca.h>
11940 # else
11941 # ifdef _AIX
11942 #pragma alloca
11943 # else
11944 # ifndef alloca /* predefined by HP cc +Olibcalls */
11945 char *alloca ();
11946 # endif
11947 # endif
11948 # endif
11949 # endif
11950 #endif
11951
11952 int
11953 main ()
11954 {
11955 char *p = (char *) alloca (1);
11956 ;
11957 return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag"
11970 || test ! -s conftest.err'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_func_alloca_works=yes
11983 else
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 ac_cv_func_alloca_works=no
11988 fi
11989 rm -f conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991 fi
11992 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11993 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11994
11995 if test $ac_cv_func_alloca_works = yes; then
11996
11997 cat >>confdefs.h <<\_ACEOF
11998 #define HAVE_ALLOCA 1
11999 _ACEOF
12000
12001 else
12002 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12003 # that cause trouble. Some versions do not even contain alloca or
12004 # contain a buggy version. If you still want to use their alloca,
12005 # use ar to extract alloca.o from them instead of compiling alloca.c.
12006
12007 ALLOCA=alloca.$ac_objext
12008
12009 cat >>confdefs.h <<\_ACEOF
12010 #define C_ALLOCA 1
12011 _ACEOF
12012
12013
12014 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12015 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12016 if test "${ac_cv_os_cray+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019 cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h. */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025 #if defined(CRAY) && ! defined(CRAY2)
12026 webecray
12027 #else
12028 wenotbecray
12029 #endif
12030
12031 _ACEOF
12032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12033 $EGREP "webecray" >/dev/null 2>&1; then
12034 ac_cv_os_cray=yes
12035 else
12036 ac_cv_os_cray=no
12037 fi
12038 rm -f conftest*
12039
12040 fi
12041 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12042 echo "${ECHO_T}$ac_cv_os_cray" >&6
12043 if test $ac_cv_os_cray = yes; then
12044 for ac_func in _getb67 GETB67 getb67; do
12045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12046 echo "$as_me:$LINENO: checking for $ac_func" >&5
12047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12048 if eval "test \"\${$as_ac_var+set}\" = set"; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051 cat >conftest.$ac_ext <<_ACEOF
12052 /* confdefs.h. */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12059 #define $ac_func innocuous_$ac_func
12060
12061 /* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char $ac_func (); below.
12063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 <limits.h> exists even on freestanding compilers. */
12065
12066 #ifdef __STDC__
12067 # include <limits.h>
12068 #else
12069 # include <assert.h>
12070 #endif
12071
12072 #undef $ac_func
12073
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 #ifdef __cplusplus
12076 extern "C"
12077 {
12078 #endif
12079 /* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12081 char $ac_func ();
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12086 choke me
12087 #else
12088 char (*f) () = $ac_func;
12089 #endif
12090 #ifdef __cplusplus
12091 }
12092 #endif
12093
12094 int
12095 main ()
12096 {
12097 return f != $ac_func;
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 eval "$as_ac_var=no"
12130 fi
12131 rm -f conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 fi
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12136 if test `eval echo '${'$as_ac_var'}'` = yes; then
12137
12138 cat >>confdefs.h <<_ACEOF
12139 #define CRAY_STACKSEG_END $ac_func
12140 _ACEOF
12141
12142 break
12143 fi
12144
12145 done
12146 fi
12147
12148 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12149 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12150 if test "${ac_cv_c_stack_direction+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 if test "$cross_compiling" = yes; then
12154 ac_cv_c_stack_direction=0
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 int
12163 find_stack_direction ()
12164 {
12165 static char *addr = 0;
12166 auto char dummy;
12167 if (addr == 0)
12168 {
12169 addr = &dummy;
12170 return find_stack_direction ();
12171 }
12172 else
12173 return (&dummy > addr) ? 1 : -1;
12174 }
12175
12176 int
12177 main ()
12178 {
12179 exit (find_stack_direction () < 0);
12180 }
12181 _ACEOF
12182 rm -f conftest$ac_exeext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184 (eval $ac_link) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 ac_cv_c_stack_direction=1
12194 else
12195 echo "$as_me: program exited with status $ac_status" >&5
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199 ( exit $ac_status )
12200 ac_cv_c_stack_direction=-1
12201 fi
12202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12203 fi
12204 fi
12205 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12206 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12207
12208 cat >>confdefs.h <<_ACEOF
12209 #define STACK_DIRECTION $ac_cv_c_stack_direction
12210 _ACEOF
12211
12212
12213 fi
12214
12215
12216
12217
12218
12219
12220 for ac_func in sbrk utimes setmode getc_unlocked strcoll
12221 do
12222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 echo "$as_me:$LINENO: checking for $ac_func" >&5
12224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12225 if eval "test \"\${$as_ac_var+set}\" = set"; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236 #define $ac_func innocuous_$ac_func
12237
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char $ac_func (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12242
12243 #ifdef __STDC__
12244 # include <limits.h>
12245 #else
12246 # include <assert.h>
12247 #endif
12248
12249 #undef $ac_func
12250
12251 /* Override any gcc2 internal prototype to avoid an error. */
12252 #ifdef __cplusplus
12253 extern "C"
12254 {
12255 #endif
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258 char $ac_func ();
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263 choke me
12264 #else
12265 char (*f) () = $ac_func;
12266 #endif
12267 #ifdef __cplusplus
12268 }
12269 #endif
12270
12271 int
12272 main ()
12273 {
12274 return f != $ac_func;
12275 ;
12276 return 0;
12277 }
12278 _ACEOF
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag"
12289 || test ! -s conftest.err'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 eval "$as_ac_var=yes"
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306 eval "$as_ac_var=no"
12307 fi
12308 rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 fi
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316 _ACEOF
12317
12318 fi
12319 done
12320
12321 echo "$as_me:$LINENO: checking for mkstemp" >&5
12322 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12323 if test "${ac_cv_func_mkstemp+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12334 #define mkstemp innocuous_mkstemp
12335
12336 /* System header to define __stub macros and hopefully few prototypes,
12337 which can conflict with char mkstemp (); below.
12338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12339 <limits.h> exists even on freestanding compilers. */
12340
12341 #ifdef __STDC__
12342 # include <limits.h>
12343 #else
12344 # include <assert.h>
12345 #endif
12346
12347 #undef mkstemp
12348
12349 /* Override any gcc2 internal prototype to avoid an error. */
12350 #ifdef __cplusplus
12351 extern "C"
12352 {
12353 #endif
12354 /* We use char because int might match the return type of a gcc2
12355 builtin and then its argument prototype would still apply. */
12356 char mkstemp ();
12357 /* The GNU C library defines this for functions which it implements
12358 to always fail with ENOSYS. Some functions are actually named
12359 something starting with __ and the normal name is an alias. */
12360 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12361 choke me
12362 #else
12363 char (*f) () = mkstemp;
12364 #endif
12365 #ifdef __cplusplus
12366 }
12367 #endif
12368
12369 int
12370 main ()
12371 {
12372 return f != mkstemp;
12373 ;
12374 return 0;
12375 }
12376 _ACEOF
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_func_mkstemp=yes
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404 ac_cv_func_mkstemp=no
12405 fi
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 fi
12409 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12410 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12411 if test $ac_cv_func_mkstemp = yes; then
12412
12413 cat >>confdefs.h <<\_ACEOF
12414 #define HAVE_MKSTEMP 1
12415 _ACEOF
12416
12417 fi
12418
12419 echo "$as_me:$LINENO: checking for mkdtemp" >&5
12420 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12421 if test "${ac_cv_func_mkdtemp+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12432 #define mkdtemp innocuous_mkdtemp
12433
12434 /* System header to define __stub macros and hopefully few prototypes,
12435 which can conflict with char mkdtemp (); below.
12436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437 <limits.h> exists even on freestanding compilers. */
12438
12439 #ifdef __STDC__
12440 # include <limits.h>
12441 #else
12442 # include <assert.h>
12443 #endif
12444
12445 #undef mkdtemp
12446
12447 /* Override any gcc2 internal prototype to avoid an error. */
12448 #ifdef __cplusplus
12449 extern "C"
12450 {
12451 #endif
12452 /* We use char because int might match the return type of a gcc2
12453 builtin and then its argument prototype would still apply. */
12454 char mkdtemp ();
12455 /* The GNU C library defines this for functions which it implements
12456 to always fail with ENOSYS. Some functions are actually named
12457 something starting with __ and the normal name is an alias. */
12458 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12459 choke me
12460 #else
12461 char (*f) () = mkdtemp;
12462 #endif
12463 #ifdef __cplusplus
12464 }
12465 #endif
12466
12467 int
12468 main ()
12469 {
12470 return f != mkdtemp;
12471 ;
12472 return 0;
12473 }
12474 _ACEOF
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -z "$ac_c_werror_flag"
12485 || test ! -s conftest.err'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest$ac_exeext'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 ac_cv_func_mkdtemp=yes
12498 else
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502 ac_cv_func_mkdtemp=no
12503 fi
12504 rm -f conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 fi
12507 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12508 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12509 if test $ac_cv_func_mkdtemp = yes; then
12510
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_MKDTEMP 1
12513 _ACEOF
12514
12515 fi
12516
12517
12518 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12519 # needs to be defined for it
12520 echo "$as_me:$LINENO: checking for fopen64" >&5
12521 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12522 if test "${bu_cv_have_fopen64+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525 cat >conftest.$ac_ext <<_ACEOF
12526 /* confdefs.h. */
12527 _ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 #include <stdio.h>
12532 int
12533 main ()
12534 {
12535 FILE *f = fopen64 ("/tmp/foo","r");
12536 ;
12537 return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 bu_cv_have_fopen64=yes
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 saved_CPPFLAGS=$CPPFLAGS
12568 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12569 cat >conftest.$ac_ext <<_ACEOF
12570 /* confdefs.h. */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12575 #include <stdio.h>
12576 int
12577 main ()
12578 {
12579 FILE *f = fopen64 ("/tmp/foo","r");
12580 ;
12581 return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586 (eval $ac_link) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 bu_cv_have_fopen64=no
12612 fi
12613 rm -f conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 CPPFLAGS=$saved_CPPFLAGS
12616 fi
12617 rm -f conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12619 fi
12620
12621 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12622 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12623 if test "$bu_cv_have_fopen64" != no; then
12624
12625 cat >>confdefs.h <<\_ACEOF
12626 #define HAVE_FOPEN64 1
12627 _ACEOF
12628
12629 fi
12630 echo "$as_me:$LINENO: checking for stat64" >&5
12631 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12632 if test "${bu_cv_have_stat64+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 #include <sys/stat.h>
12642 int
12643 main ()
12644 {
12645 struct stat64 st; stat64 ("/tmp/foo", &st);
12646 ;
12647 return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -z "$ac_c_werror_flag"
12660 || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest$ac_exeext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 bu_cv_have_stat64=yes
12673 else
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 saved_CPPFLAGS=$CPPFLAGS
12678 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685 #include <sys/stat.h>
12686 int
12687 main ()
12688 {
12689 struct stat64 st; stat64 ("/tmp/foo", &st);
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -z "$ac_c_werror_flag"
12704 || test ! -s conftest.err'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest$ac_exeext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12717 else
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 bu_cv_have_stat64=no
12722 fi
12723 rm -f conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 CPPFLAGS=$saved_CPPFLAGS
12726 fi
12727 rm -f conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729 fi
12730
12731 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12732 echo "${ECHO_T}$bu_cv_have_stat64" >&6
12733 if test "$bu_cv_have_stat64" != no; then
12734
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_STAT64 1
12737 _ACEOF
12738
12739 fi
12740 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12741 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12742
12743 cat >>confdefs.h <<\_ACEOF
12744 #define _LARGEFILE64_SOURCE 1
12745 _ACEOF
12746
12747 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12748 fi
12749
12750 # Some systems have frexp only in -lm, not in -lc.
12751 echo "$as_me:$LINENO: checking for library containing frexp" >&5
12752 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12753 if test "${ac_cv_search_frexp+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756 ac_func_search_save_LIBS=$LIBS
12757 ac_cv_search_frexp=no
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764
12765 /* Override any gcc2 internal prototype to avoid an error. */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12771 char frexp ();
12772 int
12773 main ()
12774 {
12775 frexp ();
12776 ;
12777 return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_search_frexp="none required"
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807 fi
12808 rm -f conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810 if test "$ac_cv_search_frexp" = no; then
12811 for ac_lib in m; do
12812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12813 cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h. */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819
12820 /* Override any gcc2 internal prototype to avoid an error. */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 /* We use char because int might match the return type of a gcc2
12825 builtin and then its argument prototype would still apply. */
12826 char frexp ();
12827 int
12828 main ()
12829 {
12830 frexp ();
12831 ;
12832 return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag"
12845 || test ! -s conftest.err'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12857 ac_cv_search_frexp="-l$ac_lib"
12858 break
12859 else
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 fi
12864 rm -f conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12866 done
12867 fi
12868 LIBS=$ac_func_search_save_LIBS
12869 fi
12870 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12871 echo "${ECHO_T}$ac_cv_search_frexp" >&6
12872 if test "$ac_cv_search_frexp" != no; then
12873 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
12874
12875 fi
12876
12877
12878 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12879 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12880 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <time.h>
12890 int
12891 main ()
12892 {
12893 time_t i;
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 rm -f conftest.$ac_objext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest.$ac_objext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 bu_cv_decl_time_t_time_h=yes
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925 bu_cv_decl_time_t_time_h=no
12926 fi
12927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12928 fi
12929
12930 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12931 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
12932 if test $bu_cv_decl_time_t_time_h = yes; then
12933
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_TIME_T_IN_TIME_H 1
12936 _ACEOF
12937
12938 fi
12939
12940 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12941 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12942 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 #include <sys/types.h>
12952 int
12953 main ()
12954 {
12955 time_t i;
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>conftest.er1
12963 ac_status=$?
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -z "$ac_c_werror_flag"
12970 || test ! -s conftest.err'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 bu_cv_decl_time_t_types_h=yes
12983 else
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12986
12987 bu_cv_decl_time_t_types_h=no
12988 fi
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12990 fi
12991
12992 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12993 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
12994 if test $bu_cv_decl_time_t_types_h = yes; then
12995
12996 cat >>confdefs.h <<\_ACEOF
12997 #define HAVE_TIME_T_IN_TYPES_H 1
12998 _ACEOF
12999
13000 fi
13001
13002 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13003 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13004 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h. */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 #include <unistd.h>
13014 int
13015 main ()
13016 {
13017 extern int getopt (int, char *const*, const char *);
13018 ;
13019 return 0;
13020 }
13021 _ACEOF
13022 rm -f conftest.$ac_objext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag"
13032 || test ! -s conftest.err'
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); }; } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 bu_cv_decl_getopt_unistd_h=yes
13045 else
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13048
13049 bu_cv_decl_getopt_unistd_h=no
13050 fi
13051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13052 fi
13053
13054 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
13055 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
13056 if test $bu_cv_decl_getopt_unistd_h = yes; then
13057
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_DECL_GETOPT 1
13060 _ACEOF
13061
13062 fi
13063
13064 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13065 # by default.
13066 echo "$as_me:$LINENO: checking for utime.h" >&5
13067 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
13068 if test "${bu_cv_header_utime_h+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 #include <sys/types.h>
13078 #ifdef HAVE_TIME_H
13079 #include <time.h>
13080 #endif
13081 #include <utime.h>
13082 int
13083 main ()
13084 {
13085 struct utimbuf s;
13086 ;
13087 return 0;
13088 }
13089 _ACEOF
13090 rm -f conftest.$ac_objext
13091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13092 (eval $ac_compile) 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -z "$ac_c_werror_flag"
13100 || test ! -s conftest.err'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; } &&
13106 { ac_try='test -s conftest.$ac_objext'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13112 bu_cv_header_utime_h=yes
13113 else
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 bu_cv_header_utime_h=no
13118 fi
13119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13120 fi
13121
13122 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
13123 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
13124 if test $bu_cv_header_utime_h = yes; then
13125
13126 cat >>confdefs.h <<\_ACEOF
13127 #define HAVE_GOOD_UTIME_H 1
13128 _ACEOF
13129
13130 fi
13131
13132 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
13133 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
13134 if test "${ac_cv_have_decl_fprintf+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h. */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 $ac_includes_default
13144 int
13145 main ()
13146 {
13147 #ifndef fprintf
13148 char *p = (char *) fprintf;
13149 #endif
13150
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag"
13165 || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_have_decl_fprintf=yes
13178 else
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_cv_have_decl_fprintf=no
13183 fi
13184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13185 fi
13186 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
13187 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
13188 if test $ac_cv_have_decl_fprintf = yes; then
13189
13190 cat >>confdefs.h <<_ACEOF
13191 #define HAVE_DECL_FPRINTF 1
13192 _ACEOF
13193
13194
13195 else
13196 cat >>confdefs.h <<_ACEOF
13197 #define HAVE_DECL_FPRINTF 0
13198 _ACEOF
13199
13200
13201 fi
13202 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
13203 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
13204 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13214 int
13215 main ()
13216 {
13217 #ifndef stpcpy
13218 char *p = (char *) stpcpy;
13219 #endif
13220
13221 ;
13222 return 0;
13223 }
13224 _ACEOF
13225 rm -f conftest.$ac_objext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227 (eval $ac_compile) 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag"
13235 || test ! -s conftest.err'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest.$ac_objext'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247 ac_cv_have_decl_stpcpy=yes
13248 else
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 ac_cv_have_decl_stpcpy=no
13253 fi
13254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13255 fi
13256 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
13257 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
13258 if test $ac_cv_have_decl_stpcpy = yes; then
13259
13260 cat >>confdefs.h <<_ACEOF
13261 #define HAVE_DECL_STPCPY 1
13262 _ACEOF
13263
13264
13265 else
13266 cat >>confdefs.h <<_ACEOF
13267 #define HAVE_DECL_STPCPY 0
13268 _ACEOF
13269
13270
13271 fi
13272 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13273 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13274 if test "${ac_cv_have_decl_strstr+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277 cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h. */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 $ac_includes_default
13284 int
13285 main ()
13286 {
13287 #ifndef strstr
13288 char *p = (char *) strstr;
13289 #endif
13290
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag"
13305 || test ! -s conftest.err'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try='test -s conftest.$ac_objext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_cv_have_decl_strstr=yes
13318 else
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322 ac_cv_have_decl_strstr=no
13323 fi
13324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13325 fi
13326 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13327 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13328 if test $ac_cv_have_decl_strstr = yes; then
13329
13330 cat >>confdefs.h <<_ACEOF
13331 #define HAVE_DECL_STRSTR 1
13332 _ACEOF
13333
13334
13335 else
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_DECL_STRSTR 0
13338 _ACEOF
13339
13340
13341 fi
13342 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13343 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13344 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h. */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 $ac_includes_default
13354 int
13355 main ()
13356 {
13357 #ifndef sbrk
13358 char *p = (char *) sbrk;
13359 #endif
13360
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag"
13375 || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_have_decl_sbrk=yes
13388 else
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 ac_cv_have_decl_sbrk=no
13393 fi
13394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13395 fi
13396 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13397 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13398 if test $ac_cv_have_decl_sbrk = yes; then
13399
13400 cat >>confdefs.h <<_ACEOF
13401 #define HAVE_DECL_SBRK 1
13402 _ACEOF
13403
13404
13405 else
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_DECL_SBRK 0
13408 _ACEOF
13409
13410
13411 fi
13412 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13413 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13414 if test "${ac_cv_have_decl_getenv+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13424 int
13425 main ()
13426 {
13427 #ifndef getenv
13428 char *p = (char *) getenv;
13429 #endif
13430
13431 ;
13432 return 0;
13433 }
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13437 (eval $ac_compile) 2>conftest.er1
13438 ac_status=$?
13439 grep -v '^ *+' conftest.er1 >conftest.err
13440 rm -f conftest.er1
13441 cat conftest.err >&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
13444 { ac_try='test -z "$ac_c_werror_flag"
13445 || test ! -s conftest.err'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_have_decl_getenv=yes
13458 else
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 ac_cv_have_decl_getenv=no
13463 fi
13464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13465 fi
13466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13467 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13468 if test $ac_cv_have_decl_getenv = yes; then
13469
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_DECL_GETENV 1
13472 _ACEOF
13473
13474
13475 else
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_DECL_GETENV 0
13478 _ACEOF
13479
13480
13481 fi
13482 echo "$as_me:$LINENO: checking whether environ is declared" >&5
13483 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13484 if test "${ac_cv_have_decl_environ+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487 cat >conftest.$ac_ext <<_ACEOF
13488 /* confdefs.h. */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 $ac_includes_default
13494 int
13495 main ()
13496 {
13497 #ifndef environ
13498 char *p = (char *) environ;
13499 #endif
13500
13501 ;
13502 return 0;
13503 }
13504 _ACEOF
13505 rm -f conftest.$ac_objext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507 (eval $ac_compile) 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_have_decl_environ=yes
13528 else
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 ac_cv_have_decl_environ=no
13533 fi
13534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13537 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13538 if test $ac_cv_have_decl_environ = yes; then
13539
13540 cat >>confdefs.h <<_ACEOF
13541 #define HAVE_DECL_ENVIRON 1
13542 _ACEOF
13543
13544
13545 else
13546 cat >>confdefs.h <<_ACEOF
13547 #define HAVE_DECL_ENVIRON 0
13548 _ACEOF
13549
13550
13551 fi
13552 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13553 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13554 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 $ac_includes_default
13564 int
13565 main ()
13566 {
13567 #ifndef getc_unlocked
13568 char *p = (char *) getc_unlocked;
13569 #endif
13570
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_have_decl_getc_unlocked=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 ac_cv_have_decl_getc_unlocked=no
13603 fi
13604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13605 fi
13606 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13607 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13608 if test $ac_cv_have_decl_getc_unlocked = yes; then
13609
13610 cat >>confdefs.h <<_ACEOF
13611 #define HAVE_DECL_GETC_UNLOCKED 1
13612 _ACEOF
13613
13614
13615 else
13616 cat >>confdefs.h <<_ACEOF
13617 #define HAVE_DECL_GETC_UNLOCKED 0
13618 _ACEOF
13619
13620
13621 fi
13622 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13623 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13624 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 else
13627 cat >conftest.$ac_ext <<_ACEOF
13628 /* confdefs.h. */
13629 _ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h. */
13633 $ac_includes_default
13634 int
13635 main ()
13636 {
13637 #ifndef snprintf
13638 char *p = (char *) snprintf;
13639 #endif
13640
13641 ;
13642 return 0;
13643 }
13644 _ACEOF
13645 rm -f conftest.$ac_objext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647 (eval $ac_compile) 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_c_werror_flag"
13655 || test ! -s conftest.err'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 ac_cv_have_decl_snprintf=yes
13668 else
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_cv_have_decl_snprintf=no
13673 fi
13674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13675 fi
13676 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13677 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13678 if test $ac_cv_have_decl_snprintf = yes; then
13679
13680 cat >>confdefs.h <<_ACEOF
13681 #define HAVE_DECL_SNPRINTF 1
13682 _ACEOF
13683
13684
13685 else
13686 cat >>confdefs.h <<_ACEOF
13687 #define HAVE_DECL_SNPRINTF 0
13688 _ACEOF
13689
13690
13691 fi
13692 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13693 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13694 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697 cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h. */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13704 int
13705 main ()
13706 {
13707 #ifndef vsnprintf
13708 char *p = (char *) vsnprintf;
13709 #endif
13710
13711 ;
13712 return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest.$ac_objext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_have_decl_vsnprintf=yes
13738 else
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ac_cv_have_decl_vsnprintf=no
13743 fi
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13745 fi
13746 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13747 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13748 if test $ac_cv_have_decl_vsnprintf = yes; then
13749
13750 cat >>confdefs.h <<_ACEOF
13751 #define HAVE_DECL_VSNPRINTF 1
13752 _ACEOF
13753
13754
13755 else
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_DECL_VSNPRINTF 0
13758 _ACEOF
13759
13760
13761 fi
13762
13763
13764
13765 # Link in zlib if we can. This allows us to read compressed debug
13766 # sections. This is used only by readelf.c (objdump uses bfd for
13767 # reading compressed sections).
13768 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
13769 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
13770 if test "${ac_cv_search_zlibVersion+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 ac_func_search_save_LIBS=$LIBS
13774 ac_cv_search_zlibVersion=no
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781
13782 /* Override any gcc2 internal prototype to avoid an error. */
13783 #ifdef __cplusplus
13784 extern "C"
13785 #endif
13786 /* We use char because int might match the return type of a gcc2
13787 builtin and then its argument prototype would still apply. */
13788 char zlibVersion ();
13789 int
13790 main ()
13791 {
13792 zlibVersion ();
13793 ;
13794 return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag"
13807 || test ! -s conftest.err'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest$ac_exeext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_search_zlibVersion="none required"
13820 else
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 fi
13825 rm -f conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
13827 if test "$ac_cv_search_zlibVersion" = no; then
13828 for ac_lib in z; do
13829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836
13837 /* Override any gcc2 internal prototype to avoid an error. */
13838 #ifdef __cplusplus
13839 extern "C"
13840 #endif
13841 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13843 char zlibVersion ();
13844 int
13845 main ()
13846 {
13847 zlibVersion ();
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854 (eval $ac_link) 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest$ac_exeext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_search_zlibVersion="-l$ac_lib"
13875 break
13876 else
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13879
13880 fi
13881 rm -f conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 done
13884 fi
13885 LIBS=$ac_func_search_save_LIBS
13886 fi
13887 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
13888 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
13889 if test "$ac_cv_search_zlibVersion" != no; then
13890 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
13891
13892 for ac_header in zlib.h
13893 do
13894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13896 echo "$as_me:$LINENO: checking for $ac_header" >&5
13897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 fi
13901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13903 else
13904 # Is the header compilable?
13905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h. */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 $ac_includes_default
13914 #include <$ac_header>
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13918 (eval $ac_compile) 2>conftest.er1
13919 ac_status=$?
13920 grep -v '^ *+' conftest.er1 >conftest.err
13921 rm -f conftest.er1
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } &&
13925 { ac_try='test -z "$ac_c_werror_flag"
13926 || test ! -s conftest.err'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest.$ac_objext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_header_compiler=yes
13939 else
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13942
13943 ac_header_compiler=no
13944 fi
13945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13947 echo "${ECHO_T}$ac_header_compiler" >&6
13948
13949 # Is the header present?
13950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13958 #include <$ac_header>
13959 _ACEOF
13960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } >/dev/null; then
13968 if test -s conftest.err; then
13969 ac_cpp_err=$ac_c_preproc_warn_flag
13970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13971 else
13972 ac_cpp_err=
13973 fi
13974 else
13975 ac_cpp_err=yes
13976 fi
13977 if test -z "$ac_cpp_err"; then
13978 ac_header_preproc=yes
13979 else
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 ac_header_preproc=no
13984 fi
13985 rm -f conftest.err conftest.$ac_ext
13986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13987 echo "${ECHO_T}$ac_header_preproc" >&6
13988
13989 # So? What about this header?
13990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13991 yes:no: )
13992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13996 ac_header_preproc=yes
13997 ;;
13998 no:yes:* )
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14011 (
14012 cat <<\_ASBOX
14013 ## ------------------------------------------ ##
14014 ## Report this to the AC_PACKAGE_NAME lists. ##
14015 ## ------------------------------------------ ##
14016 _ASBOX
14017 ) |
14018 sed "s/^/$as_me: WARNING: /" >&2
14019 ;;
14020 esac
14021 echo "$as_me:$LINENO: checking for $ac_header" >&5
14022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026 eval "$as_ac_Header=\$ac_header_preproc"
14027 fi
14028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14030
14031 fi
14032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14033 cat >>confdefs.h <<_ACEOF
14034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14035 _ACEOF
14036
14037 fi
14038
14039 done
14040
14041 fi
14042
14043
14044
14045 case "${host}" in
14046 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14047
14048 cat >>confdefs.h <<\_ACEOF
14049 #define USE_BINARY_FOPEN 1
14050 _ACEOF
14051 ;;
14052 esac
14053
14054 # target-specific stuff:
14055
14056 # Canonicalize the secondary target names.
14057 if test -n "$enable_targets"; then
14058 for targ in `echo $enable_targets | sed 's/,/ /g'`
14059 do
14060 result=`$ac_config_sub $targ 2>/dev/null`
14061 if test -n "$result"; then
14062 canon_targets="$canon_targets $result"
14063 else
14064 # Allow targets that config.sub doesn't recognize, like "all".
14065 canon_targets="$canon_targets $targ"
14066 fi
14067 done
14068 fi
14069
14070 if test "${ac_cv_header_iconv_h+set}" = set; then
14071 echo "$as_me:$LINENO: checking for iconv.h" >&5
14072 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14073 if test "${ac_cv_header_iconv_h+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 fi
14076 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14077 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14078 else
14079 # Is the header compilable?
14080 echo "$as_me:$LINENO: checking iconv.h usability" >&5
14081 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h. */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 $ac_includes_default
14089 #include <iconv.h>
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093 (eval $ac_compile) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_header_compiler=yes
14114 else
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ac_header_compiler=no
14119 fi
14120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14122 echo "${ECHO_T}$ac_header_compiler" >&6
14123
14124 # Is the header present?
14125 echo "$as_me:$LINENO: checking iconv.h presence" >&5
14126 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h. */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 #include <iconv.h>
14134 _ACEOF
14135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } >/dev/null; then
14143 if test -s conftest.err; then
14144 ac_cpp_err=$ac_c_preproc_warn_flag
14145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14146 else
14147 ac_cpp_err=
14148 fi
14149 else
14150 ac_cpp_err=yes
14151 fi
14152 if test -z "$ac_cpp_err"; then
14153 ac_header_preproc=yes
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158 ac_header_preproc=no
14159 fi
14160 rm -f conftest.err conftest.$ac_ext
14161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14162 echo "${ECHO_T}$ac_header_preproc" >&6
14163
14164 # So? What about this header?
14165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14166 yes:no: )
14167 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
14168 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
14170 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
14171 ac_header_preproc=yes
14172 ;;
14173 no:yes:* )
14174 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
14175 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
14177 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
14179 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
14181 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
14183 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
14185 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
14186 (
14187 cat <<\_ASBOX
14188 ## ------------------------------------------ ##
14189 ## Report this to the AC_PACKAGE_NAME lists. ##
14190 ## ------------------------------------------ ##
14191 _ASBOX
14192 ) |
14193 sed "s/^/$as_me: WARNING: /" >&2
14194 ;;
14195 esac
14196 echo "$as_me:$LINENO: checking for iconv.h" >&5
14197 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14198 if test "${ac_cv_header_iconv_h+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 ac_cv_header_iconv_h=$ac_header_preproc
14202 fi
14203 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14204 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14205
14206 fi
14207
14208
14209
14210 if test "X$prefix" = "XNONE"; then
14211 acl_final_prefix="$ac_default_prefix"
14212 else
14213 acl_final_prefix="$prefix"
14214 fi
14215 if test "X$exec_prefix" = "XNONE"; then
14216 acl_final_exec_prefix='${prefix}'
14217 else
14218 acl_final_exec_prefix="$exec_prefix"
14219 fi
14220 acl_save_prefix="$prefix"
14221 prefix="$acl_final_prefix"
14222 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14223 prefix="$acl_save_prefix"
14224
14225
14226 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14227 if test "${with_gnu_ld+set}" = set; then
14228 withval="$with_gnu_ld"
14229 test "$withval" = no || with_gnu_ld=yes
14230 else
14231 with_gnu_ld=no
14232 fi;
14233 # Prepare PATH_SEPARATOR.
14234 # The user is always right.
14235 if test "${PATH_SEPARATOR+set}" != set; then
14236 echo "#! /bin/sh" >conf$$.sh
14237 echo "exit 0" >>conf$$.sh
14238 chmod +x conf$$.sh
14239 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14240 PATH_SEPARATOR=';'
14241 else
14242 PATH_SEPARATOR=:
14243 fi
14244 rm -f conf$$.sh
14245 fi
14246 ac_prog=ld
14247 if test "$GCC" = yes; then
14248 # Check if gcc -print-prog-name=ld gives a path.
14249 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
14250 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
14251 case $host in
14252 *-*-mingw*)
14253 # gcc leaves a trailing carriage return which upsets mingw
14254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14255 *)
14256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14257 esac
14258 case $ac_prog in
14259 # Accept absolute paths.
14260 [\\/]* | [A-Za-z]:[\\/]*)
14261 re_direlt='/[^/][^/]*/\.\./'
14262 # Canonicalize the path of ld
14263 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14264 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14265 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14266 done
14267 test -z "$LD" && LD="$ac_prog"
14268 ;;
14269 "")
14270 # If it fails, then pretend we aren't using GCC.
14271 ac_prog=ld
14272 ;;
14273 *)
14274 # If it is relative, then search for the first ld in PATH.
14275 with_gnu_ld=unknown
14276 ;;
14277 esac
14278 elif test "$with_gnu_ld" = yes; then
14279 echo "$as_me:$LINENO: checking for GNU ld" >&5
14280 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14281 else
14282 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14283 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14284 fi
14285 if test "${acl_cv_path_LD+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288 if test -z "$LD"; then
14289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14290 for ac_dir in $PATH; do
14291 test -z "$ac_dir" && ac_dir=.
14292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14293 acl_cv_path_LD="$ac_dir/$ac_prog"
14294 # Check to see if the program is GNU ld. I'd rather use --version,
14295 # but apparently some GNU ld's only accept -v.
14296 # Break only if it was the GNU/non-GNU ld that we prefer.
14297 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14298 test "$with_gnu_ld" != no && break
14299 else
14300 test "$with_gnu_ld" != yes && break
14301 fi
14302 fi
14303 done
14304 IFS="$ac_save_ifs"
14305 else
14306 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14307 fi
14308 fi
14309
14310 LD="$acl_cv_path_LD"
14311 if test -n "$LD"; then
14312 echo "$as_me:$LINENO: result: $LD" >&5
14313 echo "${ECHO_T}$LD" >&6
14314 else
14315 echo "$as_me:$LINENO: result: no" >&5
14316 echo "${ECHO_T}no" >&6
14317 fi
14318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14320 { (exit 1); exit 1; }; }
14321 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14323 if test "${acl_cv_prog_gnu_ld+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14327 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14328 acl_cv_prog_gnu_ld=yes
14329 else
14330 acl_cv_prog_gnu_ld=no
14331 fi
14332 fi
14333 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14334 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
14335 with_gnu_ld=$acl_cv_prog_gnu_ld
14336
14337
14338
14339 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14340 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
14341 if test "${acl_cv_rpath+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 else
14344
14345 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14346 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14347 . ./conftest.sh
14348 rm -f ./conftest.sh
14349 acl_cv_rpath=done
14350
14351 fi
14352 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14353 echo "${ECHO_T}$acl_cv_rpath" >&6
14354 wl="$acl_cv_wl"
14355 libext="$acl_cv_libext"
14356 shlibext="$acl_cv_shlibext"
14357 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14358 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14359 hardcode_direct="$acl_cv_hardcode_direct"
14360 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14361 # Check whether --enable-rpath or --disable-rpath was given.
14362 if test "${enable_rpath+set}" = set; then
14363 enableval="$enable_rpath"
14364 :
14365 else
14366 enable_rpath=yes
14367 fi;
14368
14369
14370
14371
14372
14373
14374
14375 use_additional=yes
14376
14377 acl_save_prefix="$prefix"
14378 prefix="$acl_final_prefix"
14379 acl_save_exec_prefix="$exec_prefix"
14380 exec_prefix="$acl_final_exec_prefix"
14381
14382 eval additional_includedir=\"$includedir\"
14383 eval additional_libdir=\"$libdir\"
14384
14385 exec_prefix="$acl_save_exec_prefix"
14386 prefix="$acl_save_prefix"
14387
14388
14389 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14390 if test "${with_libiconv_prefix+set}" = set; then
14391 withval="$with_libiconv_prefix"
14392
14393 if test "X$withval" = "Xno"; then
14394 use_additional=no
14395 else
14396 if test "X$withval" = "X"; then
14397
14398 acl_save_prefix="$prefix"
14399 prefix="$acl_final_prefix"
14400 acl_save_exec_prefix="$exec_prefix"
14401 exec_prefix="$acl_final_exec_prefix"
14402
14403 eval additional_includedir=\"$includedir\"
14404 eval additional_libdir=\"$libdir\"
14405
14406 exec_prefix="$acl_save_exec_prefix"
14407 prefix="$acl_save_prefix"
14408
14409 else
14410 additional_includedir="$withval/include"
14411 additional_libdir="$withval/lib"
14412 fi
14413 fi
14414
14415 fi;
14416 LIBICONV=
14417 LTLIBICONV=
14418 INCICONV=
14419 rpathdirs=
14420 ltrpathdirs=
14421 names_already_handled=
14422 names_next_round='iconv '
14423 while test -n "$names_next_round"; do
14424 names_this_round="$names_next_round"
14425 names_next_round=
14426 for name in $names_this_round; do
14427 already_handled=
14428 for n in $names_already_handled; do
14429 if test "$n" = "$name"; then
14430 already_handled=yes
14431 break
14432 fi
14433 done
14434 if test -z "$already_handled"; then
14435 names_already_handled="$names_already_handled $name"
14436 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14437 eval value=\"\$HAVE_LIB$uppername\"
14438 if test -n "$value"; then
14439 if test "$value" = yes; then
14440 eval value=\"\$LIB$uppername\"
14441 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14442 eval value=\"\$LTLIB$uppername\"
14443 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14444 else
14445 :
14446 fi
14447 else
14448 found_dir=
14449 found_la=
14450 found_so=
14451 found_a=
14452 if test $use_additional = yes; then
14453 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14454 found_dir="$additional_libdir"
14455 found_so="$additional_libdir/lib$name.$shlibext"
14456 if test -f "$additional_libdir/lib$name.la"; then
14457 found_la="$additional_libdir/lib$name.la"
14458 fi
14459 else
14460 if test -f "$additional_libdir/lib$name.$libext"; then
14461 found_dir="$additional_libdir"
14462 found_a="$additional_libdir/lib$name.$libext"
14463 if test -f "$additional_libdir/lib$name.la"; then
14464 found_la="$additional_libdir/lib$name.la"
14465 fi
14466 fi
14467 fi
14468 fi
14469 if test "X$found_dir" = "X"; then
14470 for x in $LDFLAGS $LTLIBICONV; do
14471
14472 acl_save_prefix="$prefix"
14473 prefix="$acl_final_prefix"
14474 acl_save_exec_prefix="$exec_prefix"
14475 exec_prefix="$acl_final_exec_prefix"
14476 eval x=\"$x\"
14477 exec_prefix="$acl_save_exec_prefix"
14478 prefix="$acl_save_prefix"
14479
14480 case "$x" in
14481 -L*)
14482 dir=`echo "X$x" | sed -e 's/^X-L//'`
14483 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14484 found_dir="$dir"
14485 found_so="$dir/lib$name.$shlibext"
14486 if test -f "$dir/lib$name.la"; then
14487 found_la="$dir/lib$name.la"
14488 fi
14489 else
14490 if test -f "$dir/lib$name.$libext"; then
14491 found_dir="$dir"
14492 found_a="$dir/lib$name.$libext"
14493 if test -f "$dir/lib$name.la"; then
14494 found_la="$dir/lib$name.la"
14495 fi
14496 fi
14497 fi
14498 ;;
14499 esac
14500 if test "X$found_dir" != "X"; then
14501 break
14502 fi
14503 done
14504 fi
14505 if test "X$found_dir" != "X"; then
14506 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14507 if test "X$found_so" != "X"; then
14508 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14510 else
14511 haveit=
14512 for x in $ltrpathdirs; do
14513 if test "X$x" = "X$found_dir"; then
14514 haveit=yes
14515 break
14516 fi
14517 done
14518 if test -z "$haveit"; then
14519 ltrpathdirs="$ltrpathdirs $found_dir"
14520 fi
14521 if test "$hardcode_direct" = yes; then
14522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14523 else
14524 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14525 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14526 haveit=
14527 for x in $rpathdirs; do
14528 if test "X$x" = "X$found_dir"; then
14529 haveit=yes
14530 break
14531 fi
14532 done
14533 if test -z "$haveit"; then
14534 rpathdirs="$rpathdirs $found_dir"
14535 fi
14536 else
14537 haveit=
14538 for x in $LDFLAGS $LIBICONV; do
14539
14540 acl_save_prefix="$prefix"
14541 prefix="$acl_final_prefix"
14542 acl_save_exec_prefix="$exec_prefix"
14543 exec_prefix="$acl_final_exec_prefix"
14544 eval x=\"$x\"
14545 exec_prefix="$acl_save_exec_prefix"
14546 prefix="$acl_save_prefix"
14547
14548 if test "X$x" = "X-L$found_dir"; then
14549 haveit=yes
14550 break
14551 fi
14552 done
14553 if test -z "$haveit"; then
14554 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14555 fi
14556 if test "$hardcode_minus_L" != no; then
14557 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14558 else
14559 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14560 fi
14561 fi
14562 fi
14563 fi
14564 else
14565 if test "X$found_a" != "X"; then
14566 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14567 else
14568 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14569 fi
14570 fi
14571 additional_includedir=
14572 case "$found_dir" in
14573 */lib | */lib/)
14574 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14575 additional_includedir="$basedir/include"
14576 ;;
14577 esac
14578 if test "X$additional_includedir" != "X"; then
14579 if test "X$additional_includedir" != "X/usr/include"; then
14580 haveit=
14581 if test "X$additional_includedir" = "X/usr/local/include"; then
14582 if test -n "$GCC"; then
14583 case $host_os in
14584 linux*) haveit=yes;;
14585 esac
14586 fi
14587 fi
14588 if test -z "$haveit"; then
14589 for x in $CPPFLAGS $INCICONV; do
14590
14591 acl_save_prefix="$prefix"
14592 prefix="$acl_final_prefix"
14593 acl_save_exec_prefix="$exec_prefix"
14594 exec_prefix="$acl_final_exec_prefix"
14595 eval x=\"$x\"
14596 exec_prefix="$acl_save_exec_prefix"
14597 prefix="$acl_save_prefix"
14598
14599 if test "X$x" = "X-I$additional_includedir"; then
14600 haveit=yes
14601 break
14602 fi
14603 done
14604 if test -z "$haveit"; then
14605 if test -d "$additional_includedir"; then
14606 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14607 fi
14608 fi
14609 fi
14610 fi
14611 fi
14612 if test -n "$found_la"; then
14613 save_libdir="$libdir"
14614 case "$found_la" in
14615 */* | *\\*) . "$found_la" ;;
14616 *) . "./$found_la" ;;
14617 esac
14618 libdir="$save_libdir"
14619 for dep in $dependency_libs; do
14620 case "$dep" in
14621 -L*)
14622 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14623 if test "X$additional_libdir" != "X/usr/lib"; then
14624 haveit=
14625 if test "X$additional_libdir" = "X/usr/local/lib"; then
14626 if test -n "$GCC"; then
14627 case $host_os in
14628 linux*) haveit=yes;;
14629 esac
14630 fi
14631 fi
14632 if test -z "$haveit"; then
14633 haveit=
14634 for x in $LDFLAGS $LIBICONV; do
14635
14636 acl_save_prefix="$prefix"
14637 prefix="$acl_final_prefix"
14638 acl_save_exec_prefix="$exec_prefix"
14639 exec_prefix="$acl_final_exec_prefix"
14640 eval x=\"$x\"
14641 exec_prefix="$acl_save_exec_prefix"
14642 prefix="$acl_save_prefix"
14643
14644 if test "X$x" = "X-L$additional_libdir"; then
14645 haveit=yes
14646 break
14647 fi
14648 done
14649 if test -z "$haveit"; then
14650 if test -d "$additional_libdir"; then
14651 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14652 fi
14653 fi
14654 haveit=
14655 for x in $LDFLAGS $LTLIBICONV; do
14656
14657 acl_save_prefix="$prefix"
14658 prefix="$acl_final_prefix"
14659 acl_save_exec_prefix="$exec_prefix"
14660 exec_prefix="$acl_final_exec_prefix"
14661 eval x=\"$x\"
14662 exec_prefix="$acl_save_exec_prefix"
14663 prefix="$acl_save_prefix"
14664
14665 if test "X$x" = "X-L$additional_libdir"; then
14666 haveit=yes
14667 break
14668 fi
14669 done
14670 if test -z "$haveit"; then
14671 if test -d "$additional_libdir"; then
14672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14673 fi
14674 fi
14675 fi
14676 fi
14677 ;;
14678 -R*)
14679 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14680 if test "$enable_rpath" != no; then
14681 haveit=
14682 for x in $rpathdirs; do
14683 if test "X$x" = "X$dir"; then
14684 haveit=yes
14685 break
14686 fi
14687 done
14688 if test -z "$haveit"; then
14689 rpathdirs="$rpathdirs $dir"
14690 fi
14691 haveit=
14692 for x in $ltrpathdirs; do
14693 if test "X$x" = "X$dir"; then
14694 haveit=yes
14695 break
14696 fi
14697 done
14698 if test -z "$haveit"; then
14699 ltrpathdirs="$ltrpathdirs $dir"
14700 fi
14701 fi
14702 ;;
14703 -l*)
14704 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14705 ;;
14706 *.la)
14707 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14708 ;;
14709 *)
14710 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14712 ;;
14713 esac
14714 done
14715 fi
14716 else
14717 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14719 fi
14720 fi
14721 fi
14722 done
14723 done
14724 if test "X$rpathdirs" != "X"; then
14725 if test -n "$hardcode_libdir_separator"; then
14726 alldirs=
14727 for found_dir in $rpathdirs; do
14728 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14729 done
14730 acl_save_libdir="$libdir"
14731 libdir="$alldirs"
14732 eval flag=\"$hardcode_libdir_flag_spec\"
14733 libdir="$acl_save_libdir"
14734 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14735 else
14736 for found_dir in $rpathdirs; do
14737 acl_save_libdir="$libdir"
14738 libdir="$found_dir"
14739 eval flag=\"$hardcode_libdir_flag_spec\"
14740 libdir="$acl_save_libdir"
14741 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14742 done
14743 fi
14744 fi
14745 if test "X$ltrpathdirs" != "X"; then
14746 for found_dir in $ltrpathdirs; do
14747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14748 done
14749 fi
14750
14751
14752
14753
14754
14755
14756
14757 am_save_CPPFLAGS="$CPPFLAGS"
14758
14759 for element in $INCICONV; do
14760 haveit=
14761 for x in $CPPFLAGS; do
14762
14763 acl_save_prefix="$prefix"
14764 prefix="$acl_final_prefix"
14765 acl_save_exec_prefix="$exec_prefix"
14766 exec_prefix="$acl_final_exec_prefix"
14767 eval x=\"$x\"
14768 exec_prefix="$acl_save_exec_prefix"
14769 prefix="$acl_save_prefix"
14770
14771 if test "X$x" = "X$element"; then
14772 haveit=yes
14773 break
14774 fi
14775 done
14776 if test -z "$haveit"; then
14777 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14778 fi
14779 done
14780
14781
14782 echo "$as_me:$LINENO: checking for iconv" >&5
14783 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14784 if test "${am_cv_func_iconv+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787
14788 am_cv_func_iconv="no, consider installing GNU libiconv"
14789 am_cv_lib_iconv=no
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h. */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <stdlib.h>
14797 #include <iconv.h>
14798 int
14799 main ()
14800 {
14801 iconv_t cd = iconv_open("","");
14802 iconv(cd,NULL,NULL,NULL,NULL);
14803 iconv_close(cd);
14804 ;
14805 return 0;
14806 }
14807 _ACEOF
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810 (eval $ac_link) 2>conftest.er1
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -z "$ac_c_werror_flag"
14818 || test ! -s conftest.err'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; } &&
14824 { ac_try='test -s conftest$ac_exeext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 am_cv_func_iconv=yes
14831 else
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 fi
14836 rm -f conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 if test "$am_cv_func_iconv" != yes; then
14839 am_save_LIBS="$LIBS"
14840 LIBS="$LIBS $LIBICONV"
14841 cat >conftest.$ac_ext <<_ACEOF
14842 /* confdefs.h. */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 #include <stdlib.h>
14848 #include <iconv.h>
14849 int
14850 main ()
14851 {
14852 iconv_t cd = iconv_open("","");
14853 iconv(cd,NULL,NULL,NULL,NULL);
14854 iconv_close(cd);
14855 ;
14856 return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861 (eval $ac_link) 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag"
14869 || test ! -s conftest.err'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try='test -s conftest$ac_exeext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 am_cv_lib_iconv=yes
14882 am_cv_func_iconv=yes
14883 else
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887 fi
14888 rm -f conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 LIBS="$am_save_LIBS"
14891 fi
14892
14893 fi
14894 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14895 echo "${ECHO_T}$am_cv_func_iconv" >&6
14896 if test "$am_cv_func_iconv" = yes; then
14897
14898 cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_ICONV 1
14900 _ACEOF
14901
14902 fi
14903 if test "$am_cv_lib_iconv" = yes; then
14904 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14905 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14906 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14907 echo "${ECHO_T}$LIBICONV" >&6
14908 else
14909 CPPFLAGS="$am_save_CPPFLAGS"
14910 LIBICONV=
14911 LTLIBICONV=
14912 fi
14913
14914
14915
14916 if test "$am_cv_func_iconv" = yes; then
14917 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14918 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14919 if test "${am_cv_proto_iconv+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922
14923 cat >conftest.$ac_ext <<_ACEOF
14924 /* confdefs.h. */
14925 _ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14929
14930 #include <stdlib.h>
14931 #include <iconv.h>
14932 extern
14933 #ifdef __cplusplus
14934 "C"
14935 #endif
14936 #if defined(__STDC__) || defined(__cplusplus)
14937 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14938 #else
14939 size_t iconv();
14940 #endif
14941
14942 int
14943 main ()
14944 {
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag"
14960 || test ! -s conftest.err'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest.$ac_objext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 am_cv_proto_iconv_arg1=""
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977 am_cv_proto_iconv_arg1="const"
14978 fi
14979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14980 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);"
14981 fi
14982
14983 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14984 echo "$as_me:$LINENO: result: ${ac_t:-
14985 }$am_cv_proto_iconv" >&5
14986 echo "${ECHO_T}${ac_t:-
14987 }$am_cv_proto_iconv" >&6
14988
14989 cat >>confdefs.h <<_ACEOF
14990 #define ICONV_CONST $am_cv_proto_iconv_arg1
14991 _ACEOF
14992
14993 fi
14994
14995
14996 all_targets=false
14997 BUILD_NLMCONV=
14998 NLMCONV_DEFS=
14999 BUILD_SRCONV=
15000 BUILD_DLLTOOL=
15001 DLLTOOL_DEFS=
15002 DLLTOOL_DEFAULT=
15003 BUILD_WINDRES=
15004 BUILD_WINDMC=
15005 BUILD_DLLWRAP=
15006 BUILD_MISC=
15007 BUILD_INSTALL_MISC=
15008 OBJDUMP_DEFS=
15009
15010 for targ in $target $canon_targets
15011 do
15012 if test "x$targ" = "xall"; then
15013 all_targets=true
15014 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15015 BUILD_SRCONV='$(SRCONV_PROG)'
15016 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
15017 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15018 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15019 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15020 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15021 if test -z "$DLLTOOL_DEFAULT"; then
15022 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15023 fi
15024 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15025 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15026 else
15027 case $targ in
15028 i[3-7]86*-*-netware*)
15029 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15030 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
15031 ;;
15032 alpha*-*-netware*)
15033 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15034 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
15035 ;;
15036 powerpc*-*-netware*)
15037 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15038 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
15039 ;;
15040 sparc*-*-netware*)
15041 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15042 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
15043 ;;
15044 esac
15045 case $targ in
15046 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
15047 esac
15048 case $targ in
15049 arm-epoc-pe*)
15050 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15051 if test -z "$DLLTOOL_DEFAULT"; then
15052 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
15053 fi
15054 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
15055 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15056 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15057 ;;
15058 arm-wince-pe* | arm-*-wince)
15059 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15060 if test -z "$DLLTOOL_DEFAULT"; then
15061 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
15062 fi
15063 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
15064 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15065 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15066 ;;
15067 arm-*-pe*)
15068 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15069 if test -z "$DLLTOOL_DEFAULT"; then
15070 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15071 fi
15072 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15073 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15074 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15075 ;;
15076 thumb-*-pe*)
15077 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15078 if test -z "$DLLTOOL_DEFAULT"; then
15079 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15080 fi
15081 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15082 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15083 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15084 ;;
15085 x86_64-*-mingw*)
15086 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15087 if test -z "$DLLTOOL_DEFAULT"; then
15088 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
15089 fi
15090 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15091 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15092 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15093 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15094 ;;
15095 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
15096 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15097 if test -z "$DLLTOOL_DEFAULT"; then
15098 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15099 fi
15100 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15101 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15102 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15103 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15104 ;;
15105 i[3-7]86-*-interix)
15106 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
15107 if test -z "$DLLTOOL_DEFAULT"; then
15108 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15109 fi
15110 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15111 ;;
15112 powerpc*-aix5.[01])
15113 ;;
15114 powerpc*-aix5.*)
15115 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15116 ;;
15117 powerpc*-*-pe* | powerpc*-*-cygwin*)
15118 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15119 if test -z "$DLLTOOL_DEFAULT"; then
15120 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15121 fi
15122 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15123 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15124 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15125 ;;
15126 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
15127 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
15128 ;;
15129 sh*-*-pe)
15130 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15131 if test -z "$DLLTOOL_DEFAULT"; then
15132 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15133 fi
15134 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15135 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15136 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15137 ;;
15138 spu-*-*)
15139 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15140 ;;
15141 mips*-*-pe)
15142 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15143 if test -z "$DLLTOOL_DEFAULT"; then
15144 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15145 fi
15146 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15147 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15148 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15149 ;;
15150 mcore-*-pe)
15151 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15152 if test -z "$DLLTOOL_DEFAULT"; then
15153 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15154 fi
15155 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15156 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15157 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15158 ;;
15159 mcore-*-elf)
15160 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15161 if test -z "$DLLTOOL_DEFAULT"; then
15162 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15163 fi
15164 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
15165 ;;
15166 mep-*)
15167 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15168 ;;
15169 esac
15170 fi
15171 done
15172
15173 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15174
15175 if test "${with_windres+set}" = set; then
15176 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15177 fi
15178
15179 if test "${with_windmc+set}" = set; then
15180 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15181 fi
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196 cat >>confdefs.h <<_ACEOF
15197 #define TARGET "${target}"
15198 _ACEOF
15199
15200
15201 targ=$target
15202 . $srcdir/../bfd/config.bfd
15203 if test "x$targ_underscore" = "xyes"; then
15204 UNDERSCORE=1
15205 else
15206 UNDERSCORE=0
15207 fi
15208
15209 cat >>confdefs.h <<_ACEOF
15210 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15211 _ACEOF
15212
15213
15214 # Emulation
15215 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
15216 do
15217 # Canonicalize the secondary target names.
15218 result=`$ac_config_sub $targ_alias 2>/dev/null`
15219 if test -n "$result"; then
15220 targ=$result
15221 else
15222 targ=$targ_alias
15223 fi
15224
15225 . ${srcdir}/configure.tgt
15226
15227 EMULATION=$targ_emul
15228 EMULATION_VECTOR=$targ_emul_vector
15229 done
15230
15231
15232
15233
15234 # Required for html and install-html
15235
15236
15237
15238
15239 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15240 cat >confcache <<\_ACEOF
15241 # This file is a shell script that caches the results of configure
15242 # tests run on this system so they can be shared between configure
15243 # scripts and configure runs, see configure's option --config-cache.
15244 # It is not useful on other systems. If it contains results you don't
15245 # want to keep, you may remove or edit it.
15246 #
15247 # config.status only pays attention to the cache file if you give it
15248 # the --recheck option to rerun configure.
15249 #
15250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15252 # following values.
15253
15254 _ACEOF
15255
15256 # The following way of writing the cache mishandles newlines in values,
15257 # but we know of no workaround that is simple, portable, and efficient.
15258 # So, don't put newlines in cache variables' values.
15259 # Ultrix sh set writes to stderr and can't be redirected directly,
15260 # and sets the high bit in the cache file unless we assign to the vars.
15261 {
15262 (set) 2>&1 |
15263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15264 *ac_space=\ *)
15265 # `set' does not quote correctly, so add quotes (double-quote
15266 # substitution turns \\\\ into \\, and sed turns \\ into \).
15267 sed -n \
15268 "s/'/'\\\\''/g;
15269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15270 ;;
15271 *)
15272 # `set' quotes correctly as required by POSIX, so do not add quotes.
15273 sed -n \
15274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15275 ;;
15276 esac;
15277 } |
15278 sed '
15279 t clear
15280 : clear
15281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15282 t end
15283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15284 : end' >>confcache
15285 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15286 if test -w $cache_file; then
15287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15288 cat confcache >$cache_file
15289 else
15290 echo "not updating unwritable cache $cache_file"
15291 fi
15292 fi
15293 rm -f confcache
15294
15295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15296 # Let make expand exec_prefix.
15297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15298
15299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15301 # trailing colons and then remove the whole line if VPATH becomes empty
15302 # (actually we leave an empty line to preserve line numbers).
15303 if test "x$srcdir" = x.; then
15304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15305 s/:*\$(srcdir):*/:/;
15306 s/:*\${srcdir}:*/:/;
15307 s/:*@srcdir@:*/:/;
15308 s/^\([^=]*=[ ]*\):*/\1/;
15309 s/:*$//;
15310 s/^[^=]*=[ ]*$//;
15311 }'
15312 fi
15313
15314 DEFS=-DHAVE_CONFIG_H
15315
15316 ac_libobjs=
15317 ac_ltlibobjs=
15318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15319 # 1. Remove the extension, and $U if already installed.
15320 ac_i=`echo "$ac_i" |
15321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15322 # 2. Add them.
15323 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15324 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15325 done
15326 LIBOBJS=$ac_libobjs
15327
15328 LTLIBOBJS=$ac_ltlibobjs
15329
15330
15331 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15332 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15333 Usually this means the macro was only invoked conditionally." >&5
15334 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15335 Usually this means the macro was only invoked conditionally." >&2;}
15336 { (exit 1); exit 1; }; }
15337 fi
15338 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15339 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15340 Usually this means the macro was only invoked conditionally." >&5
15341 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15342 Usually this means the macro was only invoked conditionally." >&2;}
15343 { (exit 1); exit 1; }; }
15344 fi
15345 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15346 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15347 Usually this means the macro was only invoked conditionally." >&5
15348 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15349 Usually this means the macro was only invoked conditionally." >&2;}
15350 { (exit 1); exit 1; }; }
15351 fi
15352 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15353 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15354 Usually this means the macro was only invoked conditionally." >&5
15355 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15356 Usually this means the macro was only invoked conditionally." >&2;}
15357 { (exit 1); exit 1; }; }
15358 fi
15359
15360 : ${CONFIG_STATUS=./config.status}
15361 ac_clean_files_save=$ac_clean_files
15362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15363 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15364 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15365 cat >$CONFIG_STATUS <<_ACEOF
15366 #! $SHELL
15367 # Generated by $as_me.
15368 # Run this file to recreate the current configuration.
15369 # Compiler output produced by configure, useful for debugging
15370 # configure, is in config.log if it exists.
15371
15372 debug=false
15373 ac_cs_recheck=false
15374 ac_cs_silent=false
15375 SHELL=\${CONFIG_SHELL-$SHELL}
15376 _ACEOF
15377
15378 cat >>$CONFIG_STATUS <<\_ACEOF
15379 ## --------------------- ##
15380 ## M4sh Initialization. ##
15381 ## --------------------- ##
15382
15383 # Be Bourne compatible
15384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15385 emulate sh
15386 NULLCMD=:
15387 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15388 # is contrary to our usage. Disable this feature.
15389 alias -g '${1+"$@"}'='"$@"'
15390 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15391 set -o posix
15392 fi
15393 DUALCASE=1; export DUALCASE # for MKS sh
15394
15395 # Support unset when possible.
15396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15397 as_unset=unset
15398 else
15399 as_unset=false
15400 fi
15401
15402
15403 # Work around bugs in pre-3.0 UWIN ksh.
15404 $as_unset ENV MAIL MAILPATH
15405 PS1='$ '
15406 PS2='> '
15407 PS4='+ '
15408
15409 # NLS nuisances.
15410 for as_var in \
15411 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15412 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15413 LC_TELEPHONE LC_TIME
15414 do
15415 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15416 eval $as_var=C; export $as_var
15417 else
15418 $as_unset $as_var
15419 fi
15420 done
15421
15422 # Required to use basename.
15423 if expr a : '\(a\)' >/dev/null 2>&1; then
15424 as_expr=expr
15425 else
15426 as_expr=false
15427 fi
15428
15429 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15430 as_basename=basename
15431 else
15432 as_basename=false
15433 fi
15434
15435
15436 # Name of the executable.
15437 as_me=`$as_basename "$0" ||
15438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15439 X"$0" : 'X\(//\)$' \| \
15440 X"$0" : 'X\(/\)$' \| \
15441 . : '\(.\)' 2>/dev/null ||
15442 echo X/"$0" |
15443 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15444 /^X\/\(\/\/\)$/{ s//\1/; q; }
15445 /^X\/\(\/\).*/{ s//\1/; q; }
15446 s/.*/./; q'`
15447
15448
15449 # PATH needs CR, and LINENO needs CR and PATH.
15450 # Avoid depending upon Character Ranges.
15451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15454 as_cr_digits='0123456789'
15455 as_cr_alnum=$as_cr_Letters$as_cr_digits
15456
15457 # The user is always right.
15458 if test "${PATH_SEPARATOR+set}" != set; then
15459 echo "#! /bin/sh" >conf$$.sh
15460 echo "exit 0" >>conf$$.sh
15461 chmod +x conf$$.sh
15462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15463 PATH_SEPARATOR=';'
15464 else
15465 PATH_SEPARATOR=:
15466 fi
15467 rm -f conf$$.sh
15468 fi
15469
15470
15471 as_lineno_1=$LINENO
15472 as_lineno_2=$LINENO
15473 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15474 test "x$as_lineno_1" != "x$as_lineno_2" &&
15475 test "x$as_lineno_3" = "x$as_lineno_2" || {
15476 # Find who we are. Look in the path if we contain no path at all
15477 # relative or not.
15478 case $0 in
15479 *[\\/]* ) as_myself=$0 ;;
15480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15481 for as_dir in $PATH
15482 do
15483 IFS=$as_save_IFS
15484 test -z "$as_dir" && as_dir=.
15485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15486 done
15487
15488 ;;
15489 esac
15490 # We did not find ourselves, most probably we were run as `sh COMMAND'
15491 # in which case we are not to be found in the path.
15492 if test "x$as_myself" = x; then
15493 as_myself=$0
15494 fi
15495 if test ! -f "$as_myself"; then
15496 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15497 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15498 { (exit 1); exit 1; }; }
15499 fi
15500 case $CONFIG_SHELL in
15501 '')
15502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15503 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15504 do
15505 IFS=$as_save_IFS
15506 test -z "$as_dir" && as_dir=.
15507 for as_base in sh bash ksh sh5; do
15508 case $as_dir in
15509 /*)
15510 if ("$as_dir/$as_base" -c '
15511 as_lineno_1=$LINENO
15512 as_lineno_2=$LINENO
15513 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15514 test "x$as_lineno_1" != "x$as_lineno_2" &&
15515 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15516 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15517 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15518 CONFIG_SHELL=$as_dir/$as_base
15519 export CONFIG_SHELL
15520 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15521 fi;;
15522 esac
15523 done
15524 done
15525 ;;
15526 esac
15527
15528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15529 # uniformly replaced by the line number. The first 'sed' inserts a
15530 # line-number line before each line; the second 'sed' does the real
15531 # work. The second script uses 'N' to pair each line-number line
15532 # with the numbered line, and appends trailing '-' during
15533 # substitution so that $LINENO is not a special case at line end.
15534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15535 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15536 sed '=' <$as_myself |
15537 sed '
15538 N
15539 s,$,-,
15540 : loop
15541 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15542 t loop
15543 s,-$,,
15544 s,^['$as_cr_digits']*\n,,
15545 ' >$as_me.lineno &&
15546 chmod +x $as_me.lineno ||
15547 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15548 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15549 { (exit 1); exit 1; }; }
15550
15551 # Don't try to exec as it changes $[0], causing all sort of problems
15552 # (the dirname of $[0] is not the place where we might find the
15553 # original and so on. Autoconf is especially sensible to this).
15554 . ./$as_me.lineno
15555 # Exit status is that of the last command.
15556 exit
15557 }
15558
15559
15560 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15561 *c*,-n*) ECHO_N= ECHO_C='
15562 ' ECHO_T=' ' ;;
15563 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15564 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15565 esac
15566
15567 if expr a : '\(a\)' >/dev/null 2>&1; then
15568 as_expr=expr
15569 else
15570 as_expr=false
15571 fi
15572
15573 rm -f conf$$ conf$$.exe conf$$.file
15574 echo >conf$$.file
15575 if ln -s conf$$.file conf$$ 2>/dev/null; then
15576 # We could just check for DJGPP; but this test a) works b) is more generic
15577 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15578 if test -f conf$$.exe; then
15579 # Don't use ln at all; we don't have any links
15580 as_ln_s='cp -p'
15581 else
15582 as_ln_s='ln -s'
15583 fi
15584 elif ln conf$$.file conf$$ 2>/dev/null; then
15585 as_ln_s=ln
15586 else
15587 as_ln_s='cp -p'
15588 fi
15589 rm -f conf$$ conf$$.exe conf$$.file
15590
15591 if mkdir -p . 2>/dev/null; then
15592 as_mkdir_p=:
15593 else
15594 test -d ./-p && rmdir ./-p
15595 as_mkdir_p=false
15596 fi
15597
15598 as_executable_p="test -f"
15599
15600 # Sed expression to map a string onto a valid CPP name.
15601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15602
15603 # Sed expression to map a string onto a valid variable name.
15604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15605
15606
15607 # IFS
15608 # We need space, tab and new line, in precisely that order.
15609 as_nl='
15610 '
15611 IFS=" $as_nl"
15612
15613 # CDPATH.
15614 $as_unset CDPATH
15615
15616 exec 6>&1
15617
15618 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15619 # report actual input values of CONFIG_FILES etc. instead of their
15620 # values after options handling. Logging --version etc. is OK.
15621 exec 5>>config.log
15622 {
15623 echo
15624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15625 ## Running $as_me. ##
15626 _ASBOX
15627 } >&5
15628 cat >&5 <<_CSEOF
15629
15630 This file was extended by $as_me, which was
15631 generated by GNU Autoconf 2.59. Invocation command line was
15632
15633 CONFIG_FILES = $CONFIG_FILES
15634 CONFIG_HEADERS = $CONFIG_HEADERS
15635 CONFIG_LINKS = $CONFIG_LINKS
15636 CONFIG_COMMANDS = $CONFIG_COMMANDS
15637 $ $0 $@
15638
15639 _CSEOF
15640 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15641 echo >&5
15642 _ACEOF
15643
15644 # Files that config.status was made for.
15645 if test -n "$ac_config_files"; then
15646 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15647 fi
15648
15649 if test -n "$ac_config_headers"; then
15650 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15651 fi
15652
15653 if test -n "$ac_config_links"; then
15654 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15655 fi
15656
15657 if test -n "$ac_config_commands"; then
15658 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15659 fi
15660
15661 cat >>$CONFIG_STATUS <<\_ACEOF
15662
15663 ac_cs_usage="\
15664 \`$as_me' instantiates files from templates according to the
15665 current configuration.
15666
15667 Usage: $0 [OPTIONS] [FILE]...
15668
15669 -h, --help print this help, then exit
15670 -V, --version print version number, then exit
15671 -q, --quiet do not print progress messages
15672 -d, --debug don't remove temporary files
15673 --recheck update $as_me by reconfiguring in the same conditions
15674 --file=FILE[:TEMPLATE]
15675 instantiate the configuration file FILE
15676 --header=FILE[:TEMPLATE]
15677 instantiate the configuration header FILE
15678
15679 Configuration files:
15680 $config_files
15681
15682 Configuration headers:
15683 $config_headers
15684
15685 Configuration commands:
15686 $config_commands
15687
15688 Report bugs to <bug-autoconf@gnu.org>."
15689 _ACEOF
15690
15691 cat >>$CONFIG_STATUS <<_ACEOF
15692 ac_cs_version="\\
15693 config.status
15694 configured by $0, generated by GNU Autoconf 2.59,
15695 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15696
15697 Copyright (C) 2003 Free Software Foundation, Inc.
15698 This config.status script is free software; the Free Software Foundation
15699 gives unlimited permission to copy, distribute and modify it."
15700 srcdir=$srcdir
15701 INSTALL="$INSTALL"
15702 _ACEOF
15703
15704 cat >>$CONFIG_STATUS <<\_ACEOF
15705 # If no file are specified by the user, then we need to provide default
15706 # value. By we need to know if files were specified by the user.
15707 ac_need_defaults=:
15708 while test $# != 0
15709 do
15710 case $1 in
15711 --*=*)
15712 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15713 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15714 ac_shift=:
15715 ;;
15716 -*)
15717 ac_option=$1
15718 ac_optarg=$2
15719 ac_shift=shift
15720 ;;
15721 *) # This is not an option, so the user has probably given explicit
15722 # arguments.
15723 ac_option=$1
15724 ac_need_defaults=false;;
15725 esac
15726
15727 case $ac_option in
15728 # Handling of the options.
15729 _ACEOF
15730 cat >>$CONFIG_STATUS <<\_ACEOF
15731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15732 ac_cs_recheck=: ;;
15733 --version | --vers* | -V )
15734 echo "$ac_cs_version"; exit 0 ;;
15735 --he | --h)
15736 # Conflict between --help and --header
15737 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15738 Try \`$0 --help' for more information." >&5
15739 echo "$as_me: error: ambiguous option: $1
15740 Try \`$0 --help' for more information." >&2;}
15741 { (exit 1); exit 1; }; };;
15742 --help | --hel | -h )
15743 echo "$ac_cs_usage"; exit 0 ;;
15744 --debug | --d* | -d )
15745 debug=: ;;
15746 --file | --fil | --fi | --f )
15747 $ac_shift
15748 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15749 ac_need_defaults=false;;
15750 --header | --heade | --head | --hea )
15751 $ac_shift
15752 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15753 ac_need_defaults=false;;
15754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15756 ac_cs_silent=: ;;
15757
15758 # This is an error.
15759 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15760 Try \`$0 --help' for more information." >&5
15761 echo "$as_me: error: unrecognized option: $1
15762 Try \`$0 --help' for more information." >&2;}
15763 { (exit 1); exit 1; }; } ;;
15764
15765 *) ac_config_targets="$ac_config_targets $1" ;;
15766
15767 esac
15768 shift
15769 done
15770
15771 ac_configure_extra_args=
15772
15773 if $ac_cs_silent; then
15774 exec 6>/dev/null
15775 ac_configure_extra_args="$ac_configure_extra_args --silent"
15776 fi
15777
15778 _ACEOF
15779 cat >>$CONFIG_STATUS <<_ACEOF
15780 if \$ac_cs_recheck; then
15781 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15782 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15783 fi
15784
15785 _ACEOF
15786
15787 cat >>$CONFIG_STATUS <<_ACEOF
15788 #
15789 # INIT-COMMANDS section.
15790 #
15791
15792 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15793
15794
15795 # The HP-UX ksh and POSIX shell print the target directory to stdout
15796 # if CDPATH is set.
15797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15798
15799 sed_quote_subst='$sed_quote_subst'
15800 double_quote_subst='$double_quote_subst'
15801 delay_variable_subst='$delay_variable_subst'
15802 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15803 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15804 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15805 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15806 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15807 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15808 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15809 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15810 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15811 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15812 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15813 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15814 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15815 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15816 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15817 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15818 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15819 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15820 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15821 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15822 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15823 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15824 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15825 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15826 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15827 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15828 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15829 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15830 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15831 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15832 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15833 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15834 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15835 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15836 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15837 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15838 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15839 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15840 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15841 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15842 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15843 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15844 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15845 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"`'
15846 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15847 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15848 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15849 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15850 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15851 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15852 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15853 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15854 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15855 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15856 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15857 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15858 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15859 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15860 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15861 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15862 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15863 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15864 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15865 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15866 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15867 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15868 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15869 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15870 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15871 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15872 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15873 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15874 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15875 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15876 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15877 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15878 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15879 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15880 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15881 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15882 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15883 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15884 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15885 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15886 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15887 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15888 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15889 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15890 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15891 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15892 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15893 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15894 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15895 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15896 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15897 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15898 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15899 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15900 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15901 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15902 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15903 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15904 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15905 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15906 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15907 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15908 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15909 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15910 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15911 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15912 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15913
15914 LTCC='$LTCC'
15915 LTCFLAGS='$LTCFLAGS'
15916 compiler='$compiler_DEFAULT'
15917
15918 # Quote evaled strings.
15919 for var in SED \
15920 GREP \
15921 EGREP \
15922 FGREP \
15923 LD \
15924 NM \
15925 LN_S \
15926 lt_SP2NL \
15927 lt_NL2SP \
15928 reload_flag \
15929 deplibs_check_method \
15930 file_magic_cmd \
15931 AR \
15932 AR_FLAGS \
15933 STRIP \
15934 RANLIB \
15935 CC \
15936 CFLAGS \
15937 compiler \
15938 lt_cv_sys_global_symbol_pipe \
15939 lt_cv_sys_global_symbol_to_cdecl \
15940 lt_cv_sys_global_symbol_to_c_name_address \
15941 SHELL \
15942 ECHO \
15943 lt_prog_compiler_no_builtin_flag \
15944 lt_prog_compiler_wl \
15945 lt_prog_compiler_pic \
15946 lt_prog_compiler_static \
15947 lt_cv_prog_compiler_c_o \
15948 need_locks \
15949 shrext_cmds \
15950 export_dynamic_flag_spec \
15951 whole_archive_flag_spec \
15952 compiler_needs_object \
15953 with_gnu_ld \
15954 allow_undefined_flag \
15955 no_undefined_flag \
15956 hardcode_libdir_flag_spec \
15957 hardcode_libdir_flag_spec_ld \
15958 hardcode_libdir_separator \
15959 fix_srcfile_path \
15960 exclude_expsyms \
15961 include_expsyms \
15962 file_list_spec \
15963 variables_saved_for_relink \
15964 libname_spec \
15965 library_names_spec \
15966 soname_spec \
15967 finish_eval \
15968 old_striplib \
15969 striplib; do
15970 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15971 *[\\\\\\\`\\"\\\$]*)
15972 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15973 ;;
15974 *)
15975 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15976 ;;
15977 esac
15978 done
15979
15980 # Double-quote double-evaled strings.
15981 for var in reload_cmds \
15982 old_postinstall_cmds \
15983 old_postuninstall_cmds \
15984 old_archive_cmds \
15985 extract_expsyms_cmds \
15986 old_archive_from_new_cmds \
15987 old_archive_from_expsyms_cmds \
15988 archive_cmds \
15989 archive_expsym_cmds \
15990 module_cmds \
15991 module_expsym_cmds \
15992 export_symbols_cmds \
15993 prelink_cmds \
15994 postinstall_cmds \
15995 postuninstall_cmds \
15996 finish_cmds \
15997 sys_lib_search_path_spec \
15998 sys_lib_dlsearch_path_spec; do
15999 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16000 *[\\\\\\\`\\"\\\$]*)
16001 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16002 ;;
16003 *)
16004 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16005 ;;
16006 esac
16007 done
16008
16009 # Fix-up fallback echo if it was mangled by the above quoting rules.
16010 case \$lt_ECHO in
16011 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16012 ;;
16013 esac
16014
16015 ac_aux_dir='$ac_aux_dir'
16016 xsi_shell='$xsi_shell'
16017 lt_shell_append='$lt_shell_append'
16018
16019 # See if we are running on zsh, and set the options which allow our
16020 # commands through without removal of \ escapes INIT.
16021 if test -n "\${ZSH_VERSION+set}" ; then
16022 setopt NO_GLOB_SUBST
16023 fi
16024
16025
16026 PACKAGE='$PACKAGE'
16027 VERSION='$VERSION'
16028 TIMESTAMP='$TIMESTAMP'
16029 RM='$RM'
16030 ofile='$ofile'
16031
16032
16033
16034 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16035 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16036 # from automake.
16037 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16038 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16039 LINGUAS="${LINGUAS-%UNSET%}"
16040
16041
16042 _ACEOF
16043
16044
16045
16046 cat >>$CONFIG_STATUS <<\_ACEOF
16047 for ac_config_target in $ac_config_targets
16048 do
16049 case "$ac_config_target" in
16050 # Handling of arguments.
16051 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16052 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16053 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16054 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16055 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16056 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16057 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16060 { (exit 1); exit 1; }; };;
16061 esac
16062 done
16063
16064 # If the user did not use the arguments to specify the items to instantiate,
16065 # then the envvar interface is used. Set only those that are not.
16066 # We use the long form for the default assignment because of an extremely
16067 # bizarre bug on SunOS 4.1.3.
16068 if $ac_need_defaults; then
16069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16072 fi
16073
16074 # Have a temporary directory for convenience. Make it in the build tree
16075 # simply because there is no reason to put it here, and in addition,
16076 # creating and moving files from /tmp can sometimes cause problems.
16077 # Create a temporary directory, and hook for its removal unless debugging.
16078 $debug ||
16079 {
16080 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16081 trap '{ (exit 1); exit 1; }' 1 2 13 15
16082 }
16083
16084 # Create a (secure) tmp directory for tmp files.
16085
16086 {
16087 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16088 test -n "$tmp" && test -d "$tmp"
16089 } ||
16090 {
16091 tmp=./confstat$$-$RANDOM
16092 (umask 077 && mkdir $tmp)
16093 } ||
16094 {
16095 echo "$me: cannot create a temporary directory in ." >&2
16096 { (exit 1); exit 1; }
16097 }
16098
16099 _ACEOF
16100
16101 cat >>$CONFIG_STATUS <<_ACEOF
16102
16103 #
16104 # CONFIG_FILES section.
16105 #
16106
16107 # No need to generate the scripts if there are no CONFIG_FILES.
16108 # This happens for instance when ./config.status config.h
16109 if test -n "\$CONFIG_FILES"; then
16110 # Protect against being on the right side of a sed subst in config.status.
16111 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16112 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16113 s,@SHELL@,$SHELL,;t t
16114 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16115 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16116 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16117 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16118 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16119 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16120 s,@exec_prefix@,$exec_prefix,;t t
16121 s,@prefix@,$prefix,;t t
16122 s,@program_transform_name@,$program_transform_name,;t t
16123 s,@bindir@,$bindir,;t t
16124 s,@sbindir@,$sbindir,;t t
16125 s,@libexecdir@,$libexecdir,;t t
16126 s,@datadir@,$datadir,;t t
16127 s,@sysconfdir@,$sysconfdir,;t t
16128 s,@sharedstatedir@,$sharedstatedir,;t t
16129 s,@localstatedir@,$localstatedir,;t t
16130 s,@libdir@,$libdir,;t t
16131 s,@includedir@,$includedir,;t t
16132 s,@oldincludedir@,$oldincludedir,;t t
16133 s,@infodir@,$infodir,;t t
16134 s,@mandir@,$mandir,;t t
16135 s,@build_alias@,$build_alias,;t t
16136 s,@host_alias@,$host_alias,;t t
16137 s,@target_alias@,$target_alias,;t t
16138 s,@DEFS@,$DEFS,;t t
16139 s,@ECHO_C@,$ECHO_C,;t t
16140 s,@ECHO_N@,$ECHO_N,;t t
16141 s,@ECHO_T@,$ECHO_T,;t t
16142 s,@LIBS@,$LIBS,;t t
16143 s,@build@,$build,;t t
16144 s,@build_cpu@,$build_cpu,;t t
16145 s,@build_vendor@,$build_vendor,;t t
16146 s,@build_os@,$build_os,;t t
16147 s,@host@,$host,;t t
16148 s,@host_cpu@,$host_cpu,;t t
16149 s,@host_vendor@,$host_vendor,;t t
16150 s,@host_os@,$host_os,;t t
16151 s,@target@,$target,;t t
16152 s,@target_cpu@,$target_cpu,;t t
16153 s,@target_vendor@,$target_vendor,;t t
16154 s,@target_os@,$target_os,;t t
16155 s,@CC@,$CC,;t t
16156 s,@CFLAGS@,$CFLAGS,;t t
16157 s,@LDFLAGS@,$LDFLAGS,;t t
16158 s,@CPPFLAGS@,$CPPFLAGS,;t t
16159 s,@ac_ct_CC@,$ac_ct_CC,;t t
16160 s,@EXEEXT@,$EXEEXT,;t t
16161 s,@OBJEXT@,$OBJEXT,;t t
16162 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16163 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16164 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16165 s,@CYGPATH_W@,$CYGPATH_W,;t t
16166 s,@PACKAGE@,$PACKAGE,;t t
16167 s,@VERSION@,$VERSION,;t t
16168 s,@ACLOCAL@,$ACLOCAL,;t t
16169 s,@AUTOCONF@,$AUTOCONF,;t t
16170 s,@AUTOMAKE@,$AUTOMAKE,;t t
16171 s,@AUTOHEADER@,$AUTOHEADER,;t t
16172 s,@MAKEINFO@,$MAKEINFO,;t t
16173 s,@install_sh@,$install_sh,;t t
16174 s,@STRIP@,$STRIP,;t t
16175 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16176 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16177 s,@mkdir_p@,$mkdir_p,;t t
16178 s,@AWK@,$AWK,;t t
16179 s,@SET_MAKE@,$SET_MAKE,;t t
16180 s,@am__leading_dot@,$am__leading_dot,;t t
16181 s,@AMTAR@,$AMTAR,;t t
16182 s,@am__tar@,$am__tar,;t t
16183 s,@am__untar@,$am__untar,;t t
16184 s,@DEPDIR@,$DEPDIR,;t t
16185 s,@am__include@,$am__include,;t t
16186 s,@am__quote@,$am__quote,;t t
16187 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16188 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16189 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16190 s,@CCDEPMODE@,$CCDEPMODE,;t t
16191 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16192 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16193 s,@CPP@,$CPP,;t t
16194 s,@EGREP@,$EGREP,;t t
16195 s,@LIBTOOL@,$LIBTOOL,;t t
16196 s,@SED@,$SED,;t t
16197 s,@FGREP@,$FGREP,;t t
16198 s,@GREP@,$GREP,;t t
16199 s,@LD@,$LD,;t t
16200 s,@DUMPBIN@,$DUMPBIN,;t t
16201 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
16202 s,@NM@,$NM,;t t
16203 s,@LN_S@,$LN_S,;t t
16204 s,@AR@,$AR,;t t
16205 s,@ac_ct_AR@,$ac_ct_AR,;t t
16206 s,@RANLIB@,$RANLIB,;t t
16207 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16208 s,@lt_ECHO@,$lt_ECHO,;t t
16209 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
16210 s,@NO_WERROR@,$NO_WERROR,;t t
16211 s,@YACC@,$YACC,;t t
16212 s,@LEX@,$LEX,;t t
16213 s,@LEXLIB@,$LEXLIB,;t t
16214 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16215 s,@USE_NLS@,$USE_NLS,;t t
16216 s,@LIBINTL@,$LIBINTL,;t t
16217 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16218 s,@INCINTL@,$INCINTL,;t t
16219 s,@XGETTEXT@,$XGETTEXT,;t t
16220 s,@GMSGFMT@,$GMSGFMT,;t t
16221 s,@POSUB@,$POSUB,;t t
16222 s,@CATALOGS@,$CATALOGS,;t t
16223 s,@DATADIRNAME@,$DATADIRNAME,;t t
16224 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16225 s,@GENCAT@,$GENCAT,;t t
16226 s,@CATOBJEXT@,$CATOBJEXT,;t t
16227 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16228 s,@MSGFMT@,$MSGFMT,;t t
16229 s,@MSGMERGE@,$MSGMERGE,;t t
16230 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16231 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16232 s,@MAINT@,$MAINT,;t t
16233 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
16234 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
16235 s,@HDEFINES@,$HDEFINES,;t t
16236 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16237 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
16238 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
16239 s,@ALLOCA@,$ALLOCA,;t t
16240 s,@LIBICONV@,$LIBICONV,;t t
16241 s,@LTLIBICONV@,$LTLIBICONV,;t t
16242 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
16243 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
16244 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
16245 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
16246 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
16247 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
16248 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
16249 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
16250 s,@BUILD_MISC@,$BUILD_MISC,;t t
16251 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
16252 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
16253 s,@EMULATION@,$EMULATION,;t t
16254 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
16255 s,@datarootdir@,$datarootdir,;t t
16256 s,@docdir@,$docdir,;t t
16257 s,@htmldir@,$htmldir,;t t
16258 s,@LIBOBJS@,$LIBOBJS,;t t
16259 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16260 CEOF
16261
16262 _ACEOF
16263
16264 cat >>$CONFIG_STATUS <<\_ACEOF
16265 # Split the substitutions into bite-sized pieces for seds with
16266 # small command number limits, like on Digital OSF/1 and HP-UX.
16267 ac_max_sed_lines=48
16268 ac_sed_frag=1 # Number of current file.
16269 ac_beg=1 # First line for current file.
16270 ac_end=$ac_max_sed_lines # Line after last line for current file.
16271 ac_more_lines=:
16272 ac_sed_cmds=
16273 while $ac_more_lines; do
16274 if test $ac_beg -gt 1; then
16275 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16276 else
16277 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16278 fi
16279 if test ! -s $tmp/subs.frag; then
16280 ac_more_lines=false
16281 else
16282 # The purpose of the label and of the branching condition is to
16283 # speed up the sed processing (if there are no `@' at all, there
16284 # is no need to browse any of the substitutions).
16285 # These are the two extra sed commands mentioned above.
16286 (echo ':t
16287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16288 if test -z "$ac_sed_cmds"; then
16289 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16290 else
16291 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16292 fi
16293 ac_sed_frag=`expr $ac_sed_frag + 1`
16294 ac_beg=$ac_end
16295 ac_end=`expr $ac_end + $ac_max_sed_lines`
16296 fi
16297 done
16298 if test -z "$ac_sed_cmds"; then
16299 ac_sed_cmds=cat
16300 fi
16301 fi # test -n "$CONFIG_FILES"
16302
16303 _ACEOF
16304 cat >>$CONFIG_STATUS <<\_ACEOF
16305 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16307 case $ac_file in
16308 - | *:- | *:-:* ) # input from stdin
16309 cat >$tmp/stdin
16310 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16312 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16314 * ) ac_file_in=$ac_file.in ;;
16315 esac
16316
16317 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16318 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16320 X"$ac_file" : 'X\(//\)[^/]' \| \
16321 X"$ac_file" : 'X\(//\)$' \| \
16322 X"$ac_file" : 'X\(/\)' \| \
16323 . : '\(.\)' 2>/dev/null ||
16324 echo X"$ac_file" |
16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16327 /^X\(\/\/\)$/{ s//\1/; q; }
16328 /^X\(\/\).*/{ s//\1/; q; }
16329 s/.*/./; q'`
16330 { if $as_mkdir_p; then
16331 mkdir -p "$ac_dir"
16332 else
16333 as_dir="$ac_dir"
16334 as_dirs=
16335 while test ! -d "$as_dir"; do
16336 as_dirs="$as_dir $as_dirs"
16337 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16339 X"$as_dir" : 'X\(//\)[^/]' \| \
16340 X"$as_dir" : 'X\(//\)$' \| \
16341 X"$as_dir" : 'X\(/\)' \| \
16342 . : '\(.\)' 2>/dev/null ||
16343 echo X"$as_dir" |
16344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16346 /^X\(\/\/\)$/{ s//\1/; q; }
16347 /^X\(\/\).*/{ s//\1/; q; }
16348 s/.*/./; q'`
16349 done
16350 test ! -n "$as_dirs" || mkdir $as_dirs
16351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16353 { (exit 1); exit 1; }; }; }
16354
16355 ac_builddir=.
16356
16357 if test "$ac_dir" != .; then
16358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16359 # A "../" for each directory in $ac_dir_suffix.
16360 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16361 else
16362 ac_dir_suffix= ac_top_builddir=
16363 fi
16364
16365 case $srcdir in
16366 .) # No --srcdir option. We are building in place.
16367 ac_srcdir=.
16368 if test -z "$ac_top_builddir"; then
16369 ac_top_srcdir=.
16370 else
16371 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16372 fi ;;
16373 [\\/]* | ?:[\\/]* ) # Absolute path.
16374 ac_srcdir=$srcdir$ac_dir_suffix;
16375 ac_top_srcdir=$srcdir ;;
16376 *) # Relative path.
16377 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16378 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16379 esac
16380
16381 # Do not use `cd foo && pwd` to compute absolute paths, because
16382 # the directories may not exist.
16383 case `pwd` in
16384 .) ac_abs_builddir="$ac_dir";;
16385 *)
16386 case "$ac_dir" in
16387 .) ac_abs_builddir=`pwd`;;
16388 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16389 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16390 esac;;
16391 esac
16392 case $ac_abs_builddir in
16393 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16394 *)
16395 case ${ac_top_builddir}. in
16396 .) ac_abs_top_builddir=$ac_abs_builddir;;
16397 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16398 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16399 esac;;
16400 esac
16401 case $ac_abs_builddir in
16402 .) ac_abs_srcdir=$ac_srcdir;;
16403 *)
16404 case $ac_srcdir in
16405 .) ac_abs_srcdir=$ac_abs_builddir;;
16406 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16407 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16408 esac;;
16409 esac
16410 case $ac_abs_builddir in
16411 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16412 *)
16413 case $ac_top_srcdir in
16414 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16415 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16416 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16417 esac;;
16418 esac
16419
16420
16421 case $INSTALL in
16422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16423 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16424 esac
16425
16426 if test x"$ac_file" != x-; then
16427 { echo "$as_me:$LINENO: creating $ac_file" >&5
16428 echo "$as_me: creating $ac_file" >&6;}
16429 rm -f "$ac_file"
16430 fi
16431 # Let's still pretend it is `configure' which instantiates (i.e., don't
16432 # use $as_me), people would be surprised to read:
16433 # /* config.h. Generated by config.status. */
16434 if test x"$ac_file" = x-; then
16435 configure_input=
16436 else
16437 configure_input="$ac_file. "
16438 fi
16439 configure_input=$configure_input"Generated from `echo $ac_file_in |
16440 sed 's,.*/,,'` by configure."
16441
16442 # First look for the input files in the build tree, otherwise in the
16443 # src tree.
16444 ac_file_inputs=`IFS=:
16445 for f in $ac_file_in; do
16446 case $f in
16447 -) echo $tmp/stdin ;;
16448 [\\/$]*)
16449 # Absolute (can't be DOS-style, as IFS=:)
16450 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16451 echo "$as_me: error: cannot find input file: $f" >&2;}
16452 { (exit 1); exit 1; }; }
16453 echo "$f";;
16454 *) # Relative
16455 if test -f "$f"; then
16456 # Build tree
16457 echo "$f"
16458 elif test -f "$srcdir/$f"; then
16459 # Source tree
16460 echo "$srcdir/$f"
16461 else
16462 # /dev/null tree
16463 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16464 echo "$as_me: error: cannot find input file: $f" >&2;}
16465 { (exit 1); exit 1; }; }
16466 fi;;
16467 esac
16468 done` || { (exit 1); exit 1; }
16469 _ACEOF
16470 cat >>$CONFIG_STATUS <<_ACEOF
16471 sed "$ac_vpsub
16472 $extrasub
16473 _ACEOF
16474 cat >>$CONFIG_STATUS <<\_ACEOF
16475 :t
16476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16477 s,@configure_input@,$configure_input,;t t
16478 s,@srcdir@,$ac_srcdir,;t t
16479 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16480 s,@top_srcdir@,$ac_top_srcdir,;t t
16481 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16482 s,@builddir@,$ac_builddir,;t t
16483 s,@abs_builddir@,$ac_abs_builddir,;t t
16484 s,@top_builddir@,$ac_top_builddir,;t t
16485 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16486 s,@INSTALL@,$ac_INSTALL,;t t
16487 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16488 rm -f $tmp/stdin
16489 if test x"$ac_file" != x-; then
16490 mv $tmp/out $ac_file
16491 else
16492 cat $tmp/out
16493 rm -f $tmp/out
16494 fi
16495
16496 done
16497 _ACEOF
16498 cat >>$CONFIG_STATUS <<\_ACEOF
16499
16500 #
16501 # CONFIG_HEADER section.
16502 #
16503
16504 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16505 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16506 #
16507 # ac_d sets the value in "#define NAME VALUE" lines.
16508 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16509 ac_dB='[ ].*$,\1#\2'
16510 ac_dC=' '
16511 ac_dD=',;t'
16512 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16513 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16514 ac_uB='$,\1#\2define\3'
16515 ac_uC=' '
16516 ac_uD=',;t'
16517
16518 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16520 case $ac_file in
16521 - | *:- | *:-:* ) # input from stdin
16522 cat >$tmp/stdin
16523 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16525 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16527 * ) ac_file_in=$ac_file.in ;;
16528 esac
16529
16530 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16531 echo "$as_me: creating $ac_file" >&6;}
16532
16533 # First look for the input files in the build tree, otherwise in the
16534 # src tree.
16535 ac_file_inputs=`IFS=:
16536 for f in $ac_file_in; do
16537 case $f in
16538 -) echo $tmp/stdin ;;
16539 [\\/$]*)
16540 # Absolute (can't be DOS-style, as IFS=:)
16541 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16542 echo "$as_me: error: cannot find input file: $f" >&2;}
16543 { (exit 1); exit 1; }; }
16544 # Do quote $f, to prevent DOS paths from being IFS'd.
16545 echo "$f";;
16546 *) # Relative
16547 if test -f "$f"; then
16548 # Build tree
16549 echo "$f"
16550 elif test -f "$srcdir/$f"; then
16551 # Source tree
16552 echo "$srcdir/$f"
16553 else
16554 # /dev/null tree
16555 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16556 echo "$as_me: error: cannot find input file: $f" >&2;}
16557 { (exit 1); exit 1; }; }
16558 fi;;
16559 esac
16560 done` || { (exit 1); exit 1; }
16561 # Remove the trailing spaces.
16562 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16563
16564 _ACEOF
16565
16566 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16567 # `conftest.undefs', that substitutes the proper values into
16568 # config.h.in to produce config.h. The first handles `#define'
16569 # templates, and the second `#undef' templates.
16570 # And first: Protect against being on the right side of a sed subst in
16571 # config.status. Protect against being in an unquoted here document
16572 # in config.status.
16573 rm -f conftest.defines conftest.undefs
16574 # Using a here document instead of a string reduces the quoting nightmare.
16575 # Putting comments in sed scripts is not portable.
16576 #
16577 # `end' is used to avoid that the second main sed command (meant for
16578 # 0-ary CPP macros) applies to n-ary macro definitions.
16579 # See the Autoconf documentation for `clear'.
16580 cat >confdef2sed.sed <<\_ACEOF
16581 s/[\\&,]/\\&/g
16582 s,[\\$`],\\&,g
16583 t clear
16584 : clear
16585 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16586 t end
16587 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16588 : end
16589 _ACEOF
16590 # If some macros were called several times there might be several times
16591 # the same #defines, which is useless. Nevertheless, we may not want to
16592 # sort them, since we want the *last* AC-DEFINE to be honored.
16593 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16594 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16595 rm -f confdef2sed.sed
16596
16597 # This sed command replaces #undef with comments. This is necessary, for
16598 # example, in the case of _POSIX_SOURCE, which is predefined and required
16599 # on some systems where configure will not decide to define it.
16600 cat >>conftest.undefs <<\_ACEOF
16601 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16602 _ACEOF
16603
16604 # Break up conftest.defines because some shells have a limit on the size
16605 # of here documents, and old seds have small limits too (100 cmds).
16606 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16607 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16608 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16609 echo ' :' >>$CONFIG_STATUS
16610 rm -f conftest.tail
16611 while grep . conftest.defines >/dev/null
16612 do
16613 # Write a limited-size here document to $tmp/defines.sed.
16614 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16615 # Speed up: don't consider the non `#define' lines.
16616 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16617 # Work around the forget-to-reset-the-flag bug.
16618 echo 't clr' >>$CONFIG_STATUS
16619 echo ': clr' >>$CONFIG_STATUS
16620 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16621 echo 'CEOF
16622 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16623 rm -f $tmp/in
16624 mv $tmp/out $tmp/in
16625 ' >>$CONFIG_STATUS
16626 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16627 rm -f conftest.defines
16628 mv conftest.tail conftest.defines
16629 done
16630 rm -f conftest.defines
16631 echo ' fi # grep' >>$CONFIG_STATUS
16632 echo >>$CONFIG_STATUS
16633
16634 # Break up conftest.undefs because some shells have a limit on the size
16635 # of here documents, and old seds have small limits too (100 cmds).
16636 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16637 rm -f conftest.tail
16638 while grep . conftest.undefs >/dev/null
16639 do
16640 # Write a limited-size here document to $tmp/undefs.sed.
16641 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16642 # Speed up: don't consider the non `#undef'
16643 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16644 # Work around the forget-to-reset-the-flag bug.
16645 echo 't clr' >>$CONFIG_STATUS
16646 echo ': clr' >>$CONFIG_STATUS
16647 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16648 echo 'CEOF
16649 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16650 rm -f $tmp/in
16651 mv $tmp/out $tmp/in
16652 ' >>$CONFIG_STATUS
16653 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16654 rm -f conftest.undefs
16655 mv conftest.tail conftest.undefs
16656 done
16657 rm -f conftest.undefs
16658
16659 cat >>$CONFIG_STATUS <<\_ACEOF
16660 # Let's still pretend it is `configure' which instantiates (i.e., don't
16661 # use $as_me), people would be surprised to read:
16662 # /* config.h. Generated by config.status. */
16663 if test x"$ac_file" = x-; then
16664 echo "/* Generated by configure. */" >$tmp/config.h
16665 else
16666 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16667 fi
16668 cat $tmp/in >>$tmp/config.h
16669 rm -f $tmp/in
16670 if test x"$ac_file" != x-; then
16671 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16672 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16673 echo "$as_me: $ac_file is unchanged" >&6;}
16674 else
16675 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16677 X"$ac_file" : 'X\(//\)[^/]' \| \
16678 X"$ac_file" : 'X\(//\)$' \| \
16679 X"$ac_file" : 'X\(/\)' \| \
16680 . : '\(.\)' 2>/dev/null ||
16681 echo X"$ac_file" |
16682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16684 /^X\(\/\/\)$/{ s//\1/; q; }
16685 /^X\(\/\).*/{ s//\1/; q; }
16686 s/.*/./; q'`
16687 { if $as_mkdir_p; then
16688 mkdir -p "$ac_dir"
16689 else
16690 as_dir="$ac_dir"
16691 as_dirs=
16692 while test ! -d "$as_dir"; do
16693 as_dirs="$as_dir $as_dirs"
16694 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16696 X"$as_dir" : 'X\(//\)[^/]' \| \
16697 X"$as_dir" : 'X\(//\)$' \| \
16698 X"$as_dir" : 'X\(/\)' \| \
16699 . : '\(.\)' 2>/dev/null ||
16700 echo X"$as_dir" |
16701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16703 /^X\(\/\/\)$/{ s//\1/; q; }
16704 /^X\(\/\).*/{ s//\1/; q; }
16705 s/.*/./; q'`
16706 done
16707 test ! -n "$as_dirs" || mkdir $as_dirs
16708 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16709 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16710 { (exit 1); exit 1; }; }; }
16711
16712 rm -f $ac_file
16713 mv $tmp/config.h $ac_file
16714 fi
16715 else
16716 cat $tmp/config.h
16717 rm -f $tmp/config.h
16718 fi
16719 # Compute $ac_file's index in $config_headers.
16720 _am_stamp_count=1
16721 for _am_header in $config_headers :; do
16722 case $_am_header in
16723 $ac_file | $ac_file:* )
16724 break ;;
16725 * )
16726 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16727 esac
16728 done
16729 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16730 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16731 X$ac_file : 'X\(//\)[^/]' \| \
16732 X$ac_file : 'X\(//\)$' \| \
16733 X$ac_file : 'X\(/\)' \| \
16734 . : '\(.\)' 2>/dev/null ||
16735 echo X$ac_file |
16736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16738 /^X\(\/\/\)$/{ s//\1/; q; }
16739 /^X\(\/\).*/{ s//\1/; q; }
16740 s/.*/./; q'`/stamp-h$_am_stamp_count
16741 done
16742 _ACEOF
16743 cat >>$CONFIG_STATUS <<\_ACEOF
16744
16745 #
16746 # CONFIG_COMMANDS section.
16747 #
16748 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16749 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16750 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16751 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16752 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16753 X"$ac_dest" : 'X\(//\)[^/]' \| \
16754 X"$ac_dest" : 'X\(//\)$' \| \
16755 X"$ac_dest" : 'X\(/\)' \| \
16756 . : '\(.\)' 2>/dev/null ||
16757 echo X"$ac_dest" |
16758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16760 /^X\(\/\/\)$/{ s//\1/; q; }
16761 /^X\(\/\).*/{ s//\1/; q; }
16762 s/.*/./; q'`
16763 { if $as_mkdir_p; then
16764 mkdir -p "$ac_dir"
16765 else
16766 as_dir="$ac_dir"
16767 as_dirs=
16768 while test ! -d "$as_dir"; do
16769 as_dirs="$as_dir $as_dirs"
16770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16772 X"$as_dir" : 'X\(//\)[^/]' \| \
16773 X"$as_dir" : 'X\(//\)$' \| \
16774 X"$as_dir" : 'X\(/\)' \| \
16775 . : '\(.\)' 2>/dev/null ||
16776 echo X"$as_dir" |
16777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16779 /^X\(\/\/\)$/{ s//\1/; q; }
16780 /^X\(\/\).*/{ s//\1/; q; }
16781 s/.*/./; q'`
16782 done
16783 test ! -n "$as_dirs" || mkdir $as_dirs
16784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16786 { (exit 1); exit 1; }; }; }
16787
16788 ac_builddir=.
16789
16790 if test "$ac_dir" != .; then
16791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16792 # A "../" for each directory in $ac_dir_suffix.
16793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16794 else
16795 ac_dir_suffix= ac_top_builddir=
16796 fi
16797
16798 case $srcdir in
16799 .) # No --srcdir option. We are building in place.
16800 ac_srcdir=.
16801 if test -z "$ac_top_builddir"; then
16802 ac_top_srcdir=.
16803 else
16804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16805 fi ;;
16806 [\\/]* | ?:[\\/]* ) # Absolute path.
16807 ac_srcdir=$srcdir$ac_dir_suffix;
16808 ac_top_srcdir=$srcdir ;;
16809 *) # Relative path.
16810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16812 esac
16813
16814 # Do not use `cd foo && pwd` to compute absolute paths, because
16815 # the directories may not exist.
16816 case `pwd` in
16817 .) ac_abs_builddir="$ac_dir";;
16818 *)
16819 case "$ac_dir" in
16820 .) ac_abs_builddir=`pwd`;;
16821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16822 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16823 esac;;
16824 esac
16825 case $ac_abs_builddir in
16826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16827 *)
16828 case ${ac_top_builddir}. in
16829 .) ac_abs_top_builddir=$ac_abs_builddir;;
16830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16832 esac;;
16833 esac
16834 case $ac_abs_builddir in
16835 .) ac_abs_srcdir=$ac_srcdir;;
16836 *)
16837 case $ac_srcdir in
16838 .) ac_abs_srcdir=$ac_abs_builddir;;
16839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16841 esac;;
16842 esac
16843 case $ac_abs_builddir in
16844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16845 *)
16846 case $ac_top_srcdir in
16847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16850 esac;;
16851 esac
16852
16853
16854 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16855 echo "$as_me: executing $ac_dest commands" >&6;}
16856 case $ac_dest in
16857 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16858 # Strip MF so we end up with the name of the file.
16859 mf=`echo "$mf" | sed -e 's/:.*$//'`
16860 # Check whether this is an Automake generated Makefile or not.
16861 # We used to match only the files named `Makefile.in', but
16862 # some people rename them; so instead we look at the file content.
16863 # Grep'ing the first line is not enough: some people post-process
16864 # each Makefile.in and add a new line on top of each file to say so.
16865 # So let's grep whole file.
16866 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16867 dirpart=`(dirname "$mf") 2>/dev/null ||
16868 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16869 X"$mf" : 'X\(//\)[^/]' \| \
16870 X"$mf" : 'X\(//\)$' \| \
16871 X"$mf" : 'X\(/\)' \| \
16872 . : '\(.\)' 2>/dev/null ||
16873 echo X"$mf" |
16874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16876 /^X\(\/\/\)$/{ s//\1/; q; }
16877 /^X\(\/\).*/{ s//\1/; q; }
16878 s/.*/./; q'`
16879 else
16880 continue
16881 fi
16882 # Extract the definition of DEPDIR, am__include, and am__quote
16883 # from the Makefile without running `make'.
16884 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16885 test -z "$DEPDIR" && continue
16886 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16887 test -z "am__include" && continue
16888 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16889 # When using ansi2knr, U may be empty or an underscore; expand it
16890 U=`sed -n 's/^U = //p' < "$mf"`
16891 # Find all dependency output files, they are included files with
16892 # $(DEPDIR) in their names. We invoke sed twice because it is the
16893 # simplest approach to changing $(DEPDIR) to its actual value in the
16894 # expansion.
16895 for file in `sed -n "
16896 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16897 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16898 # Make sure the directory exists.
16899 test -f "$dirpart/$file" && continue
16900 fdir=`(dirname "$file") 2>/dev/null ||
16901 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16902 X"$file" : 'X\(//\)[^/]' \| \
16903 X"$file" : 'X\(//\)$' \| \
16904 X"$file" : 'X\(/\)' \| \
16905 . : '\(.\)' 2>/dev/null ||
16906 echo X"$file" |
16907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16909 /^X\(\/\/\)$/{ s//\1/; q; }
16910 /^X\(\/\).*/{ s//\1/; q; }
16911 s/.*/./; q'`
16912 { if $as_mkdir_p; then
16913 mkdir -p $dirpart/$fdir
16914 else
16915 as_dir=$dirpart/$fdir
16916 as_dirs=
16917 while test ! -d "$as_dir"; do
16918 as_dirs="$as_dir $as_dirs"
16919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16921 X"$as_dir" : 'X\(//\)[^/]' \| \
16922 X"$as_dir" : 'X\(//\)$' \| \
16923 X"$as_dir" : 'X\(/\)' \| \
16924 . : '\(.\)' 2>/dev/null ||
16925 echo X"$as_dir" |
16926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16928 /^X\(\/\/\)$/{ s//\1/; q; }
16929 /^X\(\/\).*/{ s//\1/; q; }
16930 s/.*/./; q'`
16931 done
16932 test ! -n "$as_dirs" || mkdir $as_dirs
16933 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16934 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16935 { (exit 1); exit 1; }; }; }
16936
16937 # echo "creating $dirpart/$file"
16938 echo '# dummy' > "$dirpart/$file"
16939 done
16940 done
16941 ;;
16942 libtool )
16943
16944 # See if we are running on zsh, and set the options which allow our
16945 # commands through without removal of \ escapes.
16946 if test -n "${ZSH_VERSION+set}" ; then
16947 setopt NO_GLOB_SUBST
16948 fi
16949
16950 cfgfile="${ofile}T"
16951 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16952 $RM "$cfgfile"
16953
16954 cat <<_LT_EOF >> "$cfgfile"
16955 #! $SHELL
16956
16957 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16958 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16960 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16961 #
16962 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16963 # 2006, 2007 Free Software Foundation, Inc.
16964 #
16965 # This file is part of GNU Libtool:
16966 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16967 #
16968 # This program is free software; you can redistribute it and/or modify
16969 # it under the terms of the GNU General Public License as published by
16970 # the Free Software Foundation; either version 2 of the License, or
16971 # (at your option) any later version.
16972 #
16973 # This program is distributed in the hope that it will be useful, but
16974 # WITHOUT ANY WARRANTY; without even the implied warranty of
16975 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16976 # General Public License for more details.
16977 #
16978 # You should have received a copy of the GNU General Public License
16979 # along with this program; if not, a copy can be downloaded from
16980 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16981 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16982 # MA 02110-1301, USA.
16983 #
16984 # As a special exception to the GNU General Public License, if you
16985 # distribute this file as part of a program that contains a
16986 # configuration script generated by Autoconf, you may include it under
16987 # the same distribution terms that you use for the rest of that program.
16988
16989
16990 # The names of the tagged configurations supported by this script.
16991 available_tags=""
16992
16993 # ### BEGIN LIBTOOL CONFIG
16994
16995 # Which release of libtool.m4 was used?
16996 macro_version=$macro_version
16997 macro_revision=$macro_revision
16998
16999 # Whether or not to build shared libraries.
17000 build_libtool_libs=$enable_shared
17001
17002 # Whether or not to build static libraries.
17003 build_old_libs=$enable_static
17004
17005 # What type of objects to build.
17006 pic_mode=$pic_mode
17007
17008 # Whether or not to optimize for fast installation.
17009 fast_install=$enable_fast_install
17010
17011 # The host system.
17012 host_alias=$host_alias
17013 host=$host
17014 host_os=$host_os
17015
17016 # The build system.
17017 build_alias=$build_alias
17018 build=$build
17019 build_os=$build_os
17020
17021 # A sed program that does not truncate output.
17022 SED=$lt_SED
17023
17024 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17025 Xsed="\$SED -e 1s/^X//"
17026
17027 # A grep program that handles long lines.
17028 GREP=$lt_GREP
17029
17030 # An ERE matcher.
17031 EGREP=$lt_EGREP
17032
17033 # A literal string matcher.
17034 FGREP=$lt_FGREP
17035
17036 # A BSD- or MS-compatible name lister.
17037 NM=$lt_NM
17038
17039 # Whether we need soft or hard links.
17040 LN_S=$lt_LN_S
17041
17042 # What is the maximum length of a command?
17043 max_cmd_len=$max_cmd_len
17044
17045 # Object file suffix (normally "o").
17046 objext=$ac_objext
17047
17048 # Executable file suffix (normally "").
17049 exeext=$exeext
17050
17051 # whether the shell understands "unset".
17052 lt_unset=$lt_unset
17053
17054 # turn spaces into newlines.
17055 SP2NL=$lt_lt_SP2NL
17056
17057 # turn newlines into spaces.
17058 NL2SP=$lt_lt_NL2SP
17059
17060 # How to create reloadable object files.
17061 reload_flag=$lt_reload_flag
17062 reload_cmds=$lt_reload_cmds
17063
17064 # Method to check whether dependent libraries are shared objects.
17065 deplibs_check_method=$lt_deplibs_check_method
17066
17067 # Command to use when deplibs_check_method == "file_magic".
17068 file_magic_cmd=$lt_file_magic_cmd
17069
17070 # The archiver.
17071 AR=$lt_AR
17072 AR_FLAGS=$lt_AR_FLAGS
17073
17074 # A symbol stripping program.
17075 STRIP=$lt_STRIP
17076
17077 # Commands used to install an old-style archive.
17078 RANLIB=$lt_RANLIB
17079 old_postinstall_cmds=$lt_old_postinstall_cmds
17080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17081
17082 # A C compiler.
17083 LTCC=$lt_CC
17084
17085 # LTCC compiler flags.
17086 LTCFLAGS=$lt_CFLAGS
17087
17088 # Take the output of nm and produce a listing of raw symbols and C names.
17089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17090
17091 # Transform the output of nm in a proper C declaration.
17092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17093
17094 # Transform the output of nm in a C name address pair.
17095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17096
17097 # The name of the directory that contains temporary libtool files.
17098 objdir=$objdir
17099
17100 # Shell to use when invoking shell scripts.
17101 SHELL=$lt_SHELL
17102
17103 # An echo program that does not interpret backslashes.
17104 ECHO=$lt_ECHO
17105
17106 # Used to examine libraries when file_magic_cmd begins with "file".
17107 MAGIC_CMD=$MAGIC_CMD
17108
17109 # Must we lock files when doing compilation?
17110 need_locks=$lt_need_locks
17111
17112 # Old archive suffix (normally "a").
17113 libext=$libext
17114
17115 # Shared library suffix (normally ".so").
17116 shrext_cmds=$lt_shrext_cmds
17117
17118 # The commands to extract the exported symbol list from a shared archive.
17119 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17120
17121 # Variables whose values should be saved in libtool wrapper scripts and
17122 # restored at link time.
17123 variables_saved_for_relink=$lt_variables_saved_for_relink
17124
17125 # Do we need the "lib" prefix for modules?
17126 need_lib_prefix=$need_lib_prefix
17127
17128 # Do we need a version for libraries?
17129 need_version=$need_version
17130
17131 # Library versioning type.
17132 version_type=$version_type
17133
17134 # Shared library runtime path variable.
17135 runpath_var=$runpath_var
17136
17137 # Shared library path variable.
17138 shlibpath_var=$shlibpath_var
17139
17140 # Is shlibpath searched before the hard-coded library search path?
17141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17142
17143 # Format of library name prefix.
17144 libname_spec=$lt_libname_spec
17145
17146 # List of archive names. First name is the real one, the rest are links.
17147 # The last name is the one that the linker finds with -lNAME
17148 library_names_spec=$lt_library_names_spec
17149
17150 # The coded name of the library, if different from the real name.
17151 soname_spec=$lt_soname_spec
17152
17153 # Command to use after installation of a shared archive.
17154 postinstall_cmds=$lt_postinstall_cmds
17155
17156 # Command to use after uninstallation of a shared archive.
17157 postuninstall_cmds=$lt_postuninstall_cmds
17158
17159 # Commands used to finish a libtool library installation in a directory.
17160 finish_cmds=$lt_finish_cmds
17161
17162 # As "finish_cmds", except a single script fragment to be evaled but
17163 # not shown.
17164 finish_eval=$lt_finish_eval
17165
17166 # Whether we should hardcode library paths into libraries.
17167 hardcode_into_libs=$hardcode_into_libs
17168
17169 # Compile-time system search path for libraries.
17170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17171
17172 # Run-time system search path for libraries.
17173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17174
17175 # Whether dlopen is supported.
17176 dlopen_support=$enable_dlopen
17177
17178 # Whether dlopen of programs is supported.
17179 dlopen_self=$enable_dlopen_self
17180
17181 # Whether dlopen of statically linked programs is supported.
17182 dlopen_self_static=$enable_dlopen_self_static
17183
17184 # Commands to strip libraries.
17185 old_striplib=$lt_old_striplib
17186 striplib=$lt_striplib
17187
17188
17189 # The linker used to build libraries.
17190 LD=$lt_LD
17191
17192 # Commands used to build an old-style archive.
17193 old_archive_cmds=$lt_old_archive_cmds
17194
17195 # A language specific compiler.
17196 CC=$lt_compiler
17197
17198 # Is the compiler the GNU compiler?
17199 with_gcc=$GCC
17200
17201 # Compiler flag to turn off builtin functions.
17202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17203
17204 # How to pass a linker flag through the compiler.
17205 wl=$lt_lt_prog_compiler_wl
17206
17207 # Additional compiler flags for building library objects.
17208 pic_flag=$lt_lt_prog_compiler_pic
17209
17210 # Compiler flag to prevent dynamic linking.
17211 link_static_flag=$lt_lt_prog_compiler_static
17212
17213 # Does compiler simultaneously support -c and -o options?
17214 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17215
17216 # Whether or not to add -lc for building shared libraries.
17217 build_libtool_need_lc=$archive_cmds_need_lc
17218
17219 # Whether or not to disallow shared libs when runtime libs are static.
17220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17221
17222 # Compiler flag to allow reflexive dlopens.
17223 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17224
17225 # Compiler flag to generate shared objects directly from archives.
17226 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17227
17228 # Whether the compiler copes with passing no objects directly.
17229 compiler_needs_object=$lt_compiler_needs_object
17230
17231 # Create an old-style archive from a shared archive.
17232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17233
17234 # Create a temporary old-style archive to link instead of a shared archive.
17235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17236
17237 # Commands used to build a shared archive.
17238 archive_cmds=$lt_archive_cmds
17239 archive_expsym_cmds=$lt_archive_expsym_cmds
17240
17241 # Commands used to build a loadable module if different from building
17242 # a shared archive.
17243 module_cmds=$lt_module_cmds
17244 module_expsym_cmds=$lt_module_expsym_cmds
17245
17246 # Whether we are building with GNU ld or not.
17247 with_gnu_ld=$lt_with_gnu_ld
17248
17249 # Flag that allows shared libraries with undefined symbols to be built.
17250 allow_undefined_flag=$lt_allow_undefined_flag
17251
17252 # Flag that enforces no undefined symbols.
17253 no_undefined_flag=$lt_no_undefined_flag
17254
17255 # Flag to hardcode \$libdir into a binary during linking.
17256 # This must work even if \$libdir does not exist
17257 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17258
17259 # If ld is used when linking, flag to hardcode \$libdir into a binary
17260 # during linking. This must work even if \$libdir does not exist.
17261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17262
17263 # Whether we need a single "-rpath" flag with a separated argument.
17264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17265
17266 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17267 # DIR into the resulting binary.
17268 hardcode_direct=$hardcode_direct
17269
17270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17271 # DIR into the resulting binary and the resulting library dependency is
17272 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17273 # library is relocated.
17274 hardcode_direct_absolute=$hardcode_direct_absolute
17275
17276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17277 # into the resulting binary.
17278 hardcode_minus_L=$hardcode_minus_L
17279
17280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17281 # into the resulting binary.
17282 hardcode_shlibpath_var=$hardcode_shlibpath_var
17283
17284 # Set to "yes" if building a shared library automatically hardcodes DIR
17285 # into the library and all subsequent libraries and executables linked
17286 # against it.
17287 hardcode_automatic=$hardcode_automatic
17288
17289 # Set to yes if linker adds runtime paths of dependent libraries
17290 # to runtime path list.
17291 inherit_rpath=$inherit_rpath
17292
17293 # Whether libtool must link a program against all its dependency libraries.
17294 link_all_deplibs=$link_all_deplibs
17295
17296 # Fix the shell variable \$srcfile for the compiler.
17297 fix_srcfile_path=$lt_fix_srcfile_path
17298
17299 # Set to "yes" if exported symbols are required.
17300 always_export_symbols=$always_export_symbols
17301
17302 # The commands to list exported symbols.
17303 export_symbols_cmds=$lt_export_symbols_cmds
17304
17305 # Symbols that should not be listed in the preloaded symbols.
17306 exclude_expsyms=$lt_exclude_expsyms
17307
17308 # Symbols that must always be exported.
17309 include_expsyms=$lt_include_expsyms
17310
17311 # Commands necessary for linking programs (against libraries) with templates.
17312 prelink_cmds=$lt_prelink_cmds
17313
17314 # Specify filename containing input files.
17315 file_list_spec=$lt_file_list_spec
17316
17317 # How to hardcode a shared library path into an executable.
17318 hardcode_action=$hardcode_action
17319
17320 # ### END LIBTOOL CONFIG
17321
17322 _LT_EOF
17323
17324 case $host_os in
17325 aix3*)
17326 cat <<\_LT_EOF >> "$cfgfile"
17327 # AIX sometimes has problems with the GCC collect2 program. For some
17328 # reason, if we set the COLLECT_NAMES environment variable, the problems
17329 # vanish in a puff of smoke.
17330 if test "X${COLLECT_NAMES+set}" != Xset; then
17331 COLLECT_NAMES=
17332 export COLLECT_NAMES
17333 fi
17334 _LT_EOF
17335 ;;
17336 esac
17337
17338
17339 ltmain="$ac_aux_dir/ltmain.sh"
17340
17341
17342 # We use sed instead of cat because bash on DJGPP gets confused if
17343 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17344 # text mode, it properly converts lines to CR/LF. This bash problem
17345 # is reportedly fixed, but why not run on old versions too?
17346 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17347 || (rm -f "$cfgfile"; exit 1)
17348
17349 case $xsi_shell in
17350 yes)
17351 cat << \_LT_EOF >> "$cfgfile"
17352 # func_dirname file append nondir_replacement
17353 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17354 # otherwise set result to NONDIR_REPLACEMENT.
17355 func_dirname ()
17356 {
17357 case ${1} in
17358 */*) func_dirname_result="${1%/*}${2}" ;;
17359 * ) func_dirname_result="${3}" ;;
17360 esac
17361 }
17362
17363 # func_basename file
17364 func_basename ()
17365 {
17366 func_basename_result="${1##*/}"
17367 }
17368
17369 # func_stripname prefix suffix name
17370 # strip PREFIX and SUFFIX off of NAME.
17371 # PREFIX and SUFFIX must not contain globbing or regex special
17372 # characters, hashes, percent signs, but SUFFIX may contain a leading
17373 # dot (in which case that matches only a dot).
17374 func_stripname ()
17375 {
17376 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17377 # positional parameters, so assign one to ordinary parameter first.
17378 func_stripname_result=${3}
17379 func_stripname_result=${func_stripname_result#"${1}"}
17380 func_stripname_result=${func_stripname_result%"${2}"}
17381 }
17382
17383 # func_opt_split
17384 func_opt_split ()
17385 {
17386 func_opt_split_opt=${1%%=*}
17387 func_opt_split_arg=${1#*=}
17388 }
17389
17390 # func_lo2o object
17391 func_lo2o ()
17392 {
17393 case ${1} in
17394 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17395 *) func_lo2o_result=${1} ;;
17396 esac
17397 }
17398 _LT_EOF
17399 ;;
17400 *) # Bourne compatible functions.
17401 cat << \_LT_EOF >> "$cfgfile"
17402 # func_dirname file append nondir_replacement
17403 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17404 # otherwise set result to NONDIR_REPLACEMENT.
17405 func_dirname ()
17406 {
17407 # Extract subdirectory from the argument.
17408 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17409 if test "X$func_dirname_result" = "X${1}"; then
17410 func_dirname_result="${3}"
17411 else
17412 func_dirname_result="$func_dirname_result${2}"
17413 fi
17414 }
17415
17416 # func_basename file
17417 func_basename ()
17418 {
17419 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17420 }
17421
17422 # func_stripname prefix suffix name
17423 # strip PREFIX and SUFFIX off of NAME.
17424 # PREFIX and SUFFIX must not contain globbing or regex special
17425 # characters, hashes, percent signs, but SUFFIX may contain a leading
17426 # dot (in which case that matches only a dot).
17427 # func_strip_suffix prefix name
17428 func_stripname ()
17429 {
17430 case ${2} in
17431 .*) func_stripname_result=`$ECHO "X${3}" \
17432 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17433 *) func_stripname_result=`$ECHO "X${3}" \
17434 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17435 esac
17436 }
17437
17438 # sed scripts:
17439 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17440 my_sed_long_arg='1s/^-[^=]*=//'
17441
17442 # func_opt_split
17443 func_opt_split ()
17444 {
17445 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17446 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17447 }
17448
17449 # func_lo2o object
17450 func_lo2o ()
17451 {
17452 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17453 }
17454 _LT_EOF
17455 esac
17456
17457 case $lt_shell_append in
17458 yes)
17459 cat << \_LT_EOF >> "$cfgfile"
17460
17461 # func_append var value
17462 # Append VALUE to the end of shell variable VAR.
17463 func_append ()
17464 {
17465 eval "$1+=\$2"
17466 }
17467 _LT_EOF
17468 ;;
17469 *)
17470 cat << \_LT_EOF >> "$cfgfile"
17471
17472 # func_append var value
17473 # Append VALUE to the end of shell variable VAR.
17474 func_append ()
17475 {
17476 eval "$1=\$$1\$2"
17477 }
17478 _LT_EOF
17479 ;;
17480 esac
17481
17482
17483 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17484 || (rm -f "$cfgfile"; exit 1)
17485
17486 mv -f "$cfgfile" "$ofile" ||
17487 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17488 chmod +x "$ofile"
17489
17490 ;;
17491 default-1 )
17492 for ac_file in $CONFIG_FILES; do
17493 # Support "outfile[:infile[:infile...]]"
17494 case "$ac_file" in
17495 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17496 esac
17497 # PO directories have a Makefile.in generated from Makefile.in.in.
17498 case "$ac_file" in */Makefile.in)
17499 # Adjust a relative srcdir.
17500 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17501 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17502 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17503 # In autoconf-2.13 it is called $ac_given_srcdir.
17504 # In autoconf-2.50 it is called $srcdir.
17505 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17506 case "$ac_given_srcdir" in
17507 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17508 /*) top_srcdir="$ac_given_srcdir" ;;
17509 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17510 esac
17511 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17512 rm -f "$ac_dir/POTFILES"
17513 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17514 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17515 POMAKEFILEDEPS="POTFILES.in"
17516 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17517 # on $ac_dir but don't depend on user-specified configuration
17518 # parameters.
17519 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17520 # The LINGUAS file contains the set of available languages.
17521 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17522 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17523 fi
17524 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17525 # Hide the ALL_LINGUAS assigment from automake.
17526 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17527 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17528 else
17529 # The set of available languages was given in configure.in.
17530 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17531 fi
17532 case "$ac_given_srcdir" in
17533 .) srcdirpre= ;;
17534 *) srcdirpre='$(srcdir)/' ;;
17535 esac
17536 POFILES=
17537 GMOFILES=
17538 UPDATEPOFILES=
17539 DUMMYPOFILES=
17540 for lang in $ALL_LINGUAS; do
17541 POFILES="$POFILES $srcdirpre$lang.po"
17542 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17543 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17544 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17545 done
17546 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17547 # environment variable.
17548 INST_LINGUAS=
17549 if test -n "$ALL_LINGUAS"; then
17550 for presentlang in $ALL_LINGUAS; do
17551 useit=no
17552 if test "%UNSET%" != "$LINGUAS"; then
17553 desiredlanguages="$LINGUAS"
17554 else
17555 desiredlanguages="$ALL_LINGUAS"
17556 fi
17557 for desiredlang in $desiredlanguages; do
17558 # Use the presentlang catalog if desiredlang is
17559 # a. equal to presentlang, or
17560 # b. a variant of presentlang (because in this case,
17561 # presentlang can be used as a fallback for messages
17562 # which are not translated in the desiredlang catalog).
17563 case "$desiredlang" in
17564 "$presentlang"*) useit=yes;;
17565 esac
17566 done
17567 if test $useit = yes; then
17568 INST_LINGUAS="$INST_LINGUAS $presentlang"
17569 fi
17570 done
17571 fi
17572 CATALOGS=
17573 if test -n "$INST_LINGUAS"; then
17574 for lang in $INST_LINGUAS; do
17575 CATALOGS="$CATALOGS $lang.gmo"
17576 done
17577 fi
17578 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17579 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"
17580 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17581 if test -f "$f"; then
17582 case "$f" in
17583 *.orig | *.bak | *~) ;;
17584 *) cat "$f" >> "$ac_dir/Makefile" ;;
17585 esac
17586 fi
17587 done
17588 fi
17589 ;;
17590 esac
17591 done ;;
17592 esac
17593 done
17594 _ACEOF
17595
17596 cat >>$CONFIG_STATUS <<\_ACEOF
17597
17598 { (exit 0); exit 0; }
17599 _ACEOF
17600 chmod +x $CONFIG_STATUS
17601 ac_clean_files=$ac_clean_files_save
17602
17603
17604 # configure is writing to config.log, and then calls config.status.
17605 # config.status does its own redirection, appending to config.log.
17606 # Unfortunately, on DOS this fails, as config.log is still kept open
17607 # by configure, so config.status won't be able to write to it; its
17608 # output is simply discarded. So we exec the FD to /dev/null,
17609 # effectively closing config.log, so it can be properly (re)opened and
17610 # appended to by config.status. When coming back to configure, we
17611 # need to make the FD available again.
17612 if test "$no_create" != yes; then
17613 ac_cs_success=:
17614 ac_config_status_args=
17615 test "$silent" = yes &&
17616 ac_config_status_args="$ac_config_status_args --quiet"
17617 exec 5>/dev/null
17618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17619 exec 5>>config.log
17620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17621 # would make configure fail if this is the last instruction.
17622 $ac_cs_success || { (exit 1); exit 1; }
17623 fi
17624
This page took 0.495306 seconds and 5 git commands to generate.