* gdbthread.h: Add comments.
[binutils-gdb.git] / gas / 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="as.h"
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 GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB 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 ALLOCA LIBM 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 besides the primary
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-checking enable run-time checks
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
1020
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
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1036
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1039
1040 _ACEOF
1041 fi
1042
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055 ac_dir_suffix= ac_top_builddir=
1056 fi
1057
1058 case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1073
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1078 *)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1096 *)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111 esac
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134 cat <<\_ACEOF
1135
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1139 _ACEOF
1140 exit 0
1141 fi
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1146
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1149
1150 $ $0 $@
1151
1152 _ACEOF
1153 {
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1158
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176 _ASUNAME
1177
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1180 do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184 done
1185
1186 } >&5
1187
1188 cat >&5 <<_ACEOF
1189
1190
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1194
1195 _ACEOF
1196
1197
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1209 do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266 {
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279 }
1280 echo
1281
1282 cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1332
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1337
1338 # Predefined preprocessor variables.
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1363
1364
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373 fi
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381 done
1382
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394 else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398 fi
1399
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1432 fi
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451 done
1452 if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460 fi
1461
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490 ac_aux_dir=
1491 for ac_dir in .. $srcdir/..; do
1492 if test -f $ac_dir/install-sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install-sh -c"
1495 break
1496 elif test -f $ac_dir/install.sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install.sh -c"
1499 break
1500 elif test -f $ac_dir/shtool; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/shtool install -c"
1503 break
1504 fi
1505 done
1506 if test -z "$ac_aux_dir"; then
1507 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1508 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1509 { (exit 1); exit 1; }; }
1510 fi
1511 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514
1515 # Make sure we can run config.sub.
1516 $ac_config_sub sun4 >/dev/null 2>&1 ||
1517 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519 { (exit 1); exit 1; }; }
1520
1521 echo "$as_me:$LINENO: checking build system type" >&5
1522 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523 if test "${ac_cv_build+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 ac_cv_build_alias=$build_alias
1527 test -z "$ac_cv_build_alias" &&
1528 ac_cv_build_alias=`$ac_config_guess`
1529 test -z "$ac_cv_build_alias" &&
1530 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532 { (exit 1); exit 1; }; }
1533 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1537
1538 fi
1539 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540 echo "${ECHO_T}$ac_cv_build" >&6
1541 build=$ac_cv_build
1542 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547 echo "$as_me:$LINENO: checking host system type" >&5
1548 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549 if test "${ac_cv_host+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 ac_cv_host_alias=$host_alias
1553 test -z "$ac_cv_host_alias" &&
1554 ac_cv_host_alias=$ac_cv_build_alias
1555 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560 fi
1561 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562 echo "${ECHO_T}$ac_cv_host" >&6
1563 host=$ac_cv_host
1564 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569 echo "$as_me:$LINENO: checking target system type" >&5
1570 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1571 if test "${ac_cv_target+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 ac_cv_target_alias=$target_alias
1575 test "x$ac_cv_target_alias" = "x" &&
1576 ac_cv_target_alias=$ac_cv_host_alias
1577 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1578 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1579 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582 fi
1583 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1584 echo "${ECHO_T}$ac_cv_target" >&6
1585 target=$ac_cv_target
1586 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
1590
1591 # The aliases save the names the user supplied, while $host etc.
1592 # will get canonicalized.
1593 test -n "$target_alias" &&
1594 test "$program_prefix$program_suffix$program_transform_name" = \
1595 NONENONEs,x,x, &&
1596 program_prefix=${target_alias}-
1597 ac_ext=c
1598 ac_cpp='$CPP $CPPFLAGS'
1599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1612 else
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624 done
1625 done
1626
1627 fi
1628 fi
1629 CC=$ac_cv_prog_CC
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1633 else
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1636 fi
1637
1638 fi
1639 if test -z "$ac_cv_prog_CC"; then
1640 ac_ct_CC=$CC
1641 # Extract the first word of "gcc", so it can be a program name with args.
1642 set dummy gcc; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CC="gcc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662 done
1663 done
1664
1665 fi
1666 fi
1667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668 if test -n "$ac_ct_CC"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670 echo "${ECHO_T}$ac_ct_CC" >&6
1671 else
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 CC=$ac_ct_CC
1677 else
1678 CC="$ac_cv_prog_CC"
1679 fi
1680
1681 if test -z "$CC"; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}cc; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC="${ac_tool_prefix}cc"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704 done
1705 done
1706
1707 fi
1708 fi
1709 CC=$ac_cv_prog_CC
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1713 else
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718 fi
1719 if test -z "$ac_cv_prog_CC"; then
1720 ac_ct_CC=$CC
1721 # Extract the first word of "cc", so it can be a program name with args.
1722 set dummy cc; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="cc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742 done
1743 done
1744
1745 fi
1746 fi
1747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748 if test -n "$ac_ct_CC"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750 echo "${ECHO_T}$ac_ct_CC" >&6
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756 CC=$ac_ct_CC
1757 else
1758 CC="$ac_cv_prog_CC"
1759 fi
1760
1761 fi
1762 if test -z "$CC"; then
1763 # Extract the first word of "cc", so it can be a program name with args.
1764 set dummy cc; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770 if test -n "$CC"; then
1771 ac_cv_prog_CC="$CC" # Let the user override the test.
1772 else
1773 ac_prog_rejected=no
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1782 ac_prog_rejected=yes
1783 continue
1784 fi
1785 ac_cv_prog_CC="cc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1788 fi
1789 done
1790 done
1791
1792 if test $ac_prog_rejected = yes; then
1793 # We found a bogon in the path, so make sure we never use it.
1794 set dummy $ac_cv_prog_CC
1795 shift
1796 if test $# != 0; then
1797 # We chose a different compiler from the bogus one.
1798 # However, it has the same basename, so the bogon will be chosen
1799 # first if we set CC to just the basename; use the full file name.
1800 shift
1801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1802 fi
1803 fi
1804 fi
1805 fi
1806 CC=$ac_cv_prog_CC
1807 if test -n "$CC"; then
1808 echo "$as_me:$LINENO: result: $CC" >&5
1809 echo "${ECHO_T}$CC" >&6
1810 else
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815 fi
1816 if test -z "$CC"; then
1817 if test -n "$ac_tool_prefix"; then
1818 for ac_prog in cl
1819 do
1820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 test -n "$CC" && break
1856 done
1857 fi
1858 if test -z "$CC"; then
1859 ac_ct_CC=$CC
1860 for ac_prog in cl
1861 do
1862 # Extract the first word of "$ac_prog", so it can be a program name with args.
1863 set dummy $ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$ac_ct_CC"; then
1870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_ac_ct_CC="$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889 if test -n "$ac_ct_CC"; then
1890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891 echo "${ECHO_T}$ac_ct_CC" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897 test -n "$ac_ct_CC" && break
1898 done
1899
1900 CC=$ac_ct_CC
1901 fi
1902
1903 fi
1904
1905
1906 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1907 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1908 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: no acceptable C compiler found in \$PATH
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }; }
1913
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933
1934 cat >conftest.$ac_ext <<_ACEOF
1935 /* confdefs.h. */
1936 _ACEOF
1937 cat confdefs.h >>conftest.$ac_ext
1938 cat >>conftest.$ac_ext <<_ACEOF
1939 /* end confdefs.h. */
1940
1941 int
1942 main ()
1943 {
1944
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 ac_clean_files_save=$ac_clean_files
1950 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1951 # Try to create an executable without -o first, disregard a.out.
1952 # It will help us diagnose broken compilers, and finding out an intuition
1953 # of exeext.
1954 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1955 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1956 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1957 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1958 (eval $ac_link_default) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; then
1962 # Find the output, starting from the most likely. This scheme is
1963 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1964 # resort.
1965
1966 # Be careful to initialize this variable, since it used to be cached.
1967 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1968 ac_cv_exeext=
1969 # b.out is created by i960 compilers.
1970 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1971 do
1972 test -f "$ac_file" || continue
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1975 ;;
1976 conftest.$ac_ext )
1977 # This is the source file.
1978 ;;
1979 [ab].out )
1980 # We found the default executable, but exeext='' is most
1981 # certainly right.
1982 break;;
1983 *.* )
1984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 # FIXME: I believe we export ac_cv_exeext for Libtool,
1986 # but it would be cool to find out if it's true. Does anybody
1987 # maintain Libtool? --akim.
1988 export ac_cv_exeext
1989 break;;
1990 * )
1991 break;;
1992 esac
1993 done
1994 else
1995 echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2001 See \`config.log' for more details." >&5
2002 echo "$as_me: error: C compiler cannot create executables
2003 See \`config.log' for more details." >&2;}
2004 { (exit 77); exit 77; }; }; }
2005 fi
2006
2007 ac_exeext=$ac_cv_exeext
2008 echo "$as_me:$LINENO: result: $ac_file" >&5
2009 echo "${ECHO_T}$ac_file" >&6
2010
2011 # Check the compiler produces executables we can run. If not, either
2012 # the compiler is broken, or we cross compile.
2013 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2014 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2015 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2016 # If not cross compiling, check that we can run a simple program.
2017 if test "$cross_compiling" != yes; then
2018 if { ac_try='./$ac_file'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 (eval $ac_try) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2024 cross_compiling=no
2025 else
2026 if test "$cross_compiling" = maybe; then
2027 cross_compiling=yes
2028 else
2029 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2030 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2032 If you meant to cross compile, use \`--host'.
2033 See \`config.log' for more details." >&5
2034 echo "$as_me: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }; }
2038 fi
2039 fi
2040 fi
2041 echo "$as_me:$LINENO: result: yes" >&5
2042 echo "${ECHO_T}yes" >&6
2043
2044 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2045 ac_clean_files=$ac_clean_files_save
2046 # Check the compiler produces executables we can run. If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2050 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2051 echo "${ECHO_T}$cross_compiling" >&6
2052
2053 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2056 (eval $ac_link) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; then
2060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2062 # work properly (i.e., refer to `conftest.exe'), while it won't with
2063 # `rm'.
2064 for ac_file in conftest.exe conftest conftest.*; do
2065 test -f "$ac_file" || continue
2066 case $ac_file in
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2069 export ac_cv_exeext
2070 break;;
2071 * ) break;;
2072 esac
2073 done
2074 else
2075 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2080 See \`config.log' for more details." >&2;}
2081 { (exit 1); exit 1; }; }; }
2082 fi
2083
2084 rm -f conftest$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2086 echo "${ECHO_T}$ac_cv_exeext" >&6
2087
2088 rm -f conftest.$ac_ext
2089 EXEEXT=$ac_cv_exeext
2090 ac_exeext=$EXEEXT
2091 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2092 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2093 if test "${ac_cv_objext+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 cat >conftest.$ac_ext <<_ACEOF
2097 /* confdefs.h. */
2098 _ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h. */
2102
2103 int
2104 main ()
2105 {
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 rm -f conftest.o conftest.obj
2112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2118 case $ac_file in
2119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2121 break;;
2122 esac
2123 done
2124 else
2125 echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2129 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }; }
2135 fi
2136
2137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2138 fi
2139 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2140 echo "${ECHO_T}$ac_cv_objext" >&6
2141 OBJEXT=$ac_cv_objext
2142 ac_objext=$OBJEXT
2143 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 cat >conftest.$ac_ext <<_ACEOF
2149 /* confdefs.h. */
2150 _ACEOF
2151 cat confdefs.h >>conftest.$ac_ext
2152 cat >>conftest.$ac_ext <<_ACEOF
2153 /* end confdefs.h. */
2154
2155 int
2156 main ()
2157 {
2158 #ifndef __GNUC__
2159 choke me
2160 #endif
2161
2162 ;
2163 return 0;
2164 }
2165 _ACEOF
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2169 ac_status=$?
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_compiler_gnu=yes
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_compiler_gnu=no
2194 fi
2195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2197
2198 fi
2199 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2201 GCC=`test $ac_compiler_gnu = yes && echo yes`
2202 ac_test_CFLAGS=${CFLAGS+set}
2203 ac_save_CFLAGS=$CFLAGS
2204 CFLAGS="-g"
2205 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2206 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2207 if test "${ac_cv_prog_cc_g+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h. */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2216
2217 int
2218 main ()
2219 {
2220
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2228 ac_status=$?
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 ac_cv_prog_cc_g=yes
2248 else
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_cv_prog_cc_g=no
2253 fi
2254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2258 if test "$ac_test_CFLAGS" = set; then
2259 CFLAGS=$ac_save_CFLAGS
2260 elif test $ac_cv_prog_cc_g = yes; then
2261 if test "$GCC" = yes; then
2262 CFLAGS="-g -O2"
2263 else
2264 CFLAGS="-g"
2265 fi
2266 else
2267 if test "$GCC" = yes; then
2268 CFLAGS="-O2"
2269 else
2270 CFLAGS=
2271 fi
2272 fi
2273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 ac_cv_prog_cc_stdc=no
2279 ac_save_CC=$CC
2280 cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h. */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2286 #include <stdarg.h>
2287 #include <stdio.h>
2288 #include <sys/types.h>
2289 #include <sys/stat.h>
2290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2291 struct buf { int x; };
2292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2293 static char *e (p, i)
2294 char **p;
2295 int i;
2296 {
2297 return p[i];
2298 }
2299 static char *f (char * (*g) (char **, int), char **p, ...)
2300 {
2301 char *s;
2302 va_list v;
2303 va_start (v,p);
2304 s = g (p, va_arg (v,int));
2305 va_end (v);
2306 return s;
2307 }
2308
2309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2310 function prototypes and stuff, but not '\xHH' hex character constants.
2311 These don't provoke an error unfortunately, instead are silently treated
2312 as 'x'. The following induces an error, until -std1 is added to get
2313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2314 array size at least. It's necessary to write '\x00'==0 to get something
2315 that's true only with -std1. */
2316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2317
2318 int test (int i, double x);
2319 struct s1 {int (*f) (int a);};
2320 struct s2 {int (*f) (double a);};
2321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2322 int argc;
2323 char **argv;
2324 int
2325 main ()
2326 {
2327 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 # Don't try gcc -ansi; that turns off useful extensions and
2333 # breaks some systems' header files.
2334 # AIX -qlanglvl=ansi
2335 # Ultrix and OSF/1 -std1
2336 # HP-UX 10.20 and later -Ae
2337 # HP-UX older versions -Aa -D_HPUX_SOURCE
2338 # SVR4 -Xc -D__EXTENSIONS__
2339 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2340 do
2341 CC="$ac_save_CC $ac_arg"
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2365 break
2366 else
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 fi
2371 rm -f conftest.err conftest.$ac_objext
2372 done
2373 rm -f conftest.$ac_ext conftest.$ac_objext
2374 CC=$ac_save_CC
2375
2376 fi
2377
2378 case "x$ac_cv_prog_cc_stdc" in
2379 x|xno)
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381 echo "${ECHO_T}none needed" >&6 ;;
2382 *)
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2386 esac
2387
2388 # Some people use a C++ compiler to compile C. Since we use `exit',
2389 # in C++ we need to declare it. In case someone uses the same compiler
2390 # for both compiling C and C++ we need to have the C++ compiler decide
2391 # the declaration of exit, since it's the most demanding environment.
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #ifndef __cplusplus
2394 choke me
2395 #endif
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 for ac_declaration in \
2420 '' \
2421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2425 'void exit (int);'
2426 do
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2433 $ac_declaration
2434 #include <stdlib.h>
2435 int
2436 main ()
2437 {
2438 exit (42);
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 :
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 continue
2471 fi
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2479 $ac_declaration
2480 int
2481 main ()
2482 {
2483 exit (42);
2484 ;
2485 return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2491 ac_status=$?
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 break
2511 else
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 fi
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517 done
2518 rm -f conftest*
2519 if test -n "$ac_declaration"; then
2520 echo '#ifdef __cplusplus' >>confdefs.h
2521 echo $ac_declaration >>confdefs.h
2522 echo '#endif' >>confdefs.h
2523 fi
2524
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 fi
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
2537
2538 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2539 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2540 if test "${ac_cv_search_strerror+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 ac_func_search_save_LIBS=$LIBS
2544 ac_cv_search_strerror=no
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2551
2552 /* Override any gcc2 internal prototype to avoid an error. */
2553 #ifdef __cplusplus
2554 extern "C"
2555 #endif
2556 /* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2558 char strerror ();
2559 int
2560 main ()
2561 {
2562 strerror ();
2563 ;
2564 return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext conftest$ac_exeext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2569 (eval $ac_link) 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag"
2577 || test ! -s conftest.err'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest$ac_exeext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2589 ac_cv_search_strerror="none required"
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 fi
2595 rm -f conftest.err conftest.$ac_objext \
2596 conftest$ac_exeext conftest.$ac_ext
2597 if test "$ac_cv_search_strerror" = no; then
2598 for ac_lib in cposix; do
2599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606
2607 /* Override any gcc2 internal prototype to avoid an error. */
2608 #ifdef __cplusplus
2609 extern "C"
2610 #endif
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2613 char strerror ();
2614 int
2615 main ()
2616 {
2617 strerror ();
2618 ;
2619 return 0;
2620 }
2621 _ACEOF
2622 rm -f conftest.$ac_objext conftest$ac_exeext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2624 (eval $ac_link) 2>conftest.er1
2625 ac_status=$?
2626 grep -v '^ *+' conftest.er1 >conftest.err
2627 rm -f conftest.er1
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_search_strerror="-l$ac_lib"
2645 break
2646 else
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 fi
2651 rm -f conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2653 done
2654 fi
2655 LIBS=$ac_func_search_save_LIBS
2656 fi
2657 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2658 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2659 if test "$ac_cv_search_strerror" != no; then
2660 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2661
2662 fi
2663
2664
2665 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2666 am__api_version="1.9"
2667 # Find a good install program. We prefer a C program (faster),
2668 # so one script is as good as another. But avoid the broken or
2669 # incompatible versions:
2670 # SysV /etc/install, /usr/sbin/install
2671 # SunOS /usr/etc/install
2672 # IRIX /sbin/install
2673 # AIX /bin/install
2674 # AmigaOS /C/install, which installs bootblocks on floppy discs
2675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2678 # OS/2's system install, which has a completely different semantic
2679 # ./install, which can be erroneously created by make from ./install.sh.
2680 # Reject install programs that cannot install multiple files.
2681 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2682 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2683 if test -z "$INSTALL"; then
2684 if test "${ac_cv_path_install+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 # Account for people who put trailing slashes in PATH elements.
2693 case $as_dir/ in
2694 ./ | .// | /cC/* | \
2695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2696 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2697 /usr/ucb/* ) ;;
2698 *)
2699 # OSF1 and SCO ODT 3.0 have their own names for install.
2700 # Don't use installbsd from OSF since it installs stuff as root
2701 # by default.
2702 for ac_prog in ginstall scoinst install; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2705 if test $ac_prog = install &&
2706 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707 # AIX install. It has an incompatible calling convention.
2708 :
2709 elif test $ac_prog = install &&
2710 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # program-specific install script used by HP pwplus--don't use.
2712 :
2713 else
2714 rm -rf conftest.one conftest.two conftest.dir
2715 echo one > conftest.one
2716 echo two > conftest.two
2717 mkdir conftest.dir
2718 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2719 test -s conftest.one && test -s conftest.two &&
2720 test -s conftest.dir/conftest.one &&
2721 test -s conftest.dir/conftest.two
2722 then
2723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2724 break 3
2725 fi
2726 fi
2727 fi
2728 done
2729 done
2730 ;;
2731 esac
2732 done
2733
2734 rm -rf conftest.one conftest.two conftest.dir
2735
2736 fi
2737 if test "${ac_cv_path_install+set}" = set; then
2738 INSTALL=$ac_cv_path_install
2739 else
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for INSTALL within a source directory, because that will
2742 # break other packages using the cache if that directory is
2743 # removed, or if the value is a relative name.
2744 INSTALL=$ac_install_sh
2745 fi
2746 fi
2747 echo "$as_me:$LINENO: result: $INSTALL" >&5
2748 echo "${ECHO_T}$INSTALL" >&6
2749
2750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2751 # It thinks the first close brace ends the variable substitution.
2752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2753
2754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2755
2756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2757
2758 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2759 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2760 # Just in case
2761 sleep 1
2762 echo timestamp > conftest.file
2763 # Do `set' in a subshell so we don't clobber the current shell's
2764 # arguments. Must try -L first in case configure is actually a
2765 # symlink; some systems play weird games with the mod time of symlinks
2766 # (eg FreeBSD returns the mod time of the symlink's containing
2767 # directory).
2768 if (
2769 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2770 if test "$*" = "X"; then
2771 # -L didn't work.
2772 set X `ls -t $srcdir/configure conftest.file`
2773 fi
2774 rm -f conftest.file
2775 if test "$*" != "X $srcdir/configure conftest.file" \
2776 && test "$*" != "X conftest.file $srcdir/configure"; then
2777
2778 # If neither matched, then we have a broken ls. This can happen
2779 # if, for instance, CONFIG_SHELL is bash and it inherits a
2780 # broken ls alias from the environment. This has actually
2781 # happened. Such a system could not be considered "sane".
2782 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2783 alias in your environment" >&5
2784 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2785 alias in your environment" >&2;}
2786 { (exit 1); exit 1; }; }
2787 fi
2788
2789 test "$2" = conftest.file
2790 )
2791 then
2792 # Ok.
2793 :
2794 else
2795 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2796 Check your system clock" >&5
2797 echo "$as_me: error: newly created file is older than distributed files!
2798 Check your system clock" >&2;}
2799 { (exit 1); exit 1; }; }
2800 fi
2801 echo "$as_me:$LINENO: result: yes" >&5
2802 echo "${ECHO_T}yes" >&6
2803 test "$program_prefix" != NONE &&
2804 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2805 # Use a double $ so make ignores it.
2806 test "$program_suffix" != NONE &&
2807 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2808 # Double any \ or $. echo might interpret backslashes.
2809 # By default was `s,x,x', remove it if useless.
2810 cat <<\_ACEOF >conftest.sed
2811 s/[\\$]/&&/g;s/;s,x,x,$//
2812 _ACEOF
2813 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2814 rm conftest.sed
2815
2816 # expand $ac_aux_dir to an absolute path
2817 am_aux_dir=`cd $ac_aux_dir && pwd`
2818
2819 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2820 # Use eval to expand $SHELL
2821 if eval "$MISSING --run true"; then
2822 am_missing_run="$MISSING --run "
2823 else
2824 am_missing_run=
2825 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2826 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2827 fi
2828
2829 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2830 # We used to keeping the `.' as first argument, in order to
2831 # allow $(mkdir_p) to be used without argument. As in
2832 # $(mkdir_p) $(somedir)
2833 # where $(somedir) is conditionally defined. However this is wrong
2834 # for two reasons:
2835 # 1. if the package is installed by a user who cannot write `.'
2836 # make install will fail,
2837 # 2. the above comment should most certainly read
2838 # $(mkdir_p) $(DESTDIR)$(somedir)
2839 # so it does not work when $(somedir) is undefined and
2840 # $(DESTDIR) is not.
2841 # To support the latter case, we have to write
2842 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2843 # so the `.' trick is pointless.
2844 mkdir_p='mkdir -p --'
2845 else
2846 # On NextStep and OpenStep, the `mkdir' command does not
2847 # recognize any option. It will interpret all options as
2848 # directories to create, and then abort because `.' already
2849 # exists.
2850 for d in ./-p ./--version;
2851 do
2852 test -d $d && rmdir $d
2853 done
2854 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2855 if test -f "$ac_aux_dir/mkinstalldirs"; then
2856 mkdir_p='$(mkinstalldirs)'
2857 else
2858 mkdir_p='$(install_sh) -d'
2859 fi
2860 fi
2861
2862 for ac_prog in gawk mawk nawk awk
2863 do
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868 if test "${ac_cv_prog_AWK+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_AWK="$ac_prog"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887
2888 fi
2889 fi
2890 AWK=$ac_cv_prog_AWK
2891 if test -n "$AWK"; then
2892 echo "$as_me:$LINENO: result: $AWK" >&5
2893 echo "${ECHO_T}$AWK" >&6
2894 else
2895 echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2897 fi
2898
2899 test -n "$AWK" && break
2900 done
2901
2902 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2904 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2905 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 cat >conftest.make <<\_ACEOF
2909 all:
2910 @echo 'ac_maketemp="$(MAKE)"'
2911 _ACEOF
2912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2913 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2914 if test -n "$ac_maketemp"; then
2915 eval ac_cv_prog_make_${ac_make}_set=yes
2916 else
2917 eval ac_cv_prog_make_${ac_make}_set=no
2918 fi
2919 rm -f conftest.make
2920 fi
2921 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2922 echo "$as_me:$LINENO: result: yes" >&5
2923 echo "${ECHO_T}yes" >&6
2924 SET_MAKE=
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2928 SET_MAKE="MAKE=${MAKE-make}"
2929 fi
2930
2931 rm -rf .tst 2>/dev/null
2932 mkdir .tst 2>/dev/null
2933 if test -d .tst; then
2934 am__leading_dot=.
2935 else
2936 am__leading_dot=_
2937 fi
2938 rmdir .tst 2>/dev/null
2939
2940 DEPDIR="${am__leading_dot}deps"
2941
2942 ac_config_commands="$ac_config_commands depfiles"
2943
2944
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2947 am__doit:
2948 @echo done
2949 .PHONY: am__doit
2950 END
2951 # If we don't find an include directive, just comment out the code.
2952 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2953 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2954 am__include="#"
2955 am__quote=
2956 _am_result=none
2957 # First try GNU make style include.
2958 echo "include confinc" > confmf
2959 # We grep out `Entering directory' and `Leaving directory'
2960 # messages which can occur if `w' ends up in MAKEFLAGS.
2961 # In particular we don't look at `^make:' because GNU make might
2962 # be invoked under some other name (usually "gmake"), in which
2963 # case it prints its new name instead of `make'.
2964 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2965 am__include=include
2966 am__quote=
2967 _am_result=GNU
2968 fi
2969 # Now try BSD make style include.
2970 if test "$am__include" = "#"; then
2971 echo '.include "confinc"' > confmf
2972 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2973 am__include=.include
2974 am__quote="\""
2975 _am_result=BSD
2976 fi
2977 fi
2978
2979
2980 echo "$as_me:$LINENO: result: $_am_result" >&5
2981 echo "${ECHO_T}$_am_result" >&6
2982 rm -f confinc confmf
2983
2984 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2985 if test "${enable_dependency_tracking+set}" = set; then
2986 enableval="$enable_dependency_tracking"
2987
2988 fi;
2989 if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2991 AMDEPBACKSLASH='\'
2992 fi
2993
2994
2995 if test "x$enable_dependency_tracking" != xno; then
2996 AMDEP_TRUE=
2997 AMDEP_FALSE='#'
2998 else
2999 AMDEP_TRUE='#'
3000 AMDEP_FALSE=
3001 fi
3002
3003
3004
3005 # test to see if srcdir already configured
3006 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3007 test -f $srcdir/config.status; then
3008 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3009 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3010 { (exit 1); exit 1; }; }
3011 fi
3012
3013 # test whether we have cygpath
3014 if test -z "$CYGPATH_W"; then
3015 if (cygpath --version) >/dev/null 2>/dev/null; then
3016 CYGPATH_W='cygpath -w'
3017 else
3018 CYGPATH_W=echo
3019 fi
3020 fi
3021
3022
3023 # Define the identity of the package.
3024 PACKAGE=gas
3025 VERSION=${BFD_VERSION}
3026
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE "$PACKAGE"
3030 _ACEOF
3031
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define VERSION "$VERSION"
3035 _ACEOF
3036
3037 # Some tools Automake needs.
3038
3039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3040
3041
3042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3043
3044
3045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3046
3047
3048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3049
3050
3051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3052
3053 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3054
3055 # Installed binaries are usually stripped using `strip' when the user
3056 # run `make install-strip'. However `strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the `STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}strip; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_STRIP+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084
3085 fi
3086 fi
3087 STRIP=$ac_cv_prog_STRIP
3088 if test -n "$STRIP"; then
3089 echo "$as_me:$LINENO: result: $STRIP" >&5
3090 echo "${ECHO_T}$STRIP" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3094 fi
3095
3096 fi
3097 if test -z "$ac_cv_prog_STRIP"; then
3098 ac_ct_STRIP=$STRIP
3099 # Extract the first word of "strip", so it can be a program name with args.
3100 set dummy strip; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 if test -n "$ac_ct_STRIP"; then
3107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_STRIP="strip"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122
3123 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3124 fi
3125 fi
3126 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3127 if test -n "$ac_ct_STRIP"; then
3128 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3129 echo "${ECHO_T}$ac_ct_STRIP" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3133 fi
3134
3135 STRIP=$ac_ct_STRIP
3136 else
3137 STRIP="$ac_cv_prog_STRIP"
3138 fi
3139
3140 fi
3141 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3142
3143 # We need awk for the "check" target. The system "awk" is bad on
3144 # some platforms.
3145 # Always define AMTAR for backward compatibility.
3146
3147 AMTAR=${AMTAR-"${am_missing_run}tar"}
3148
3149 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3150
3151
3152
3153
3154 depcc="$CC" am_compiler_list=
3155
3156 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3157 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3162 # We make a subdir and do the tests there. Otherwise we can end up
3163 # making bogus files that we don't know about and never remove. For
3164 # instance it was reported that on HP-UX the gcc test will end up
3165 # making a dummy file named `D' -- because `-MD' means `put the output
3166 # in D'.
3167 mkdir conftest.dir
3168 # Copy depcomp to subdir because otherwise we won't find it if we're
3169 # using a relative directory.
3170 cp "$am_depcomp" conftest.dir
3171 cd conftest.dir
3172 # We will build objects and dependencies in a subdirectory because
3173 # it helps to detect inapplicable dependency modes. For instance
3174 # both Tru64's cc and ICC support -MD to output dependencies as a
3175 # side effect of compilation, but ICC will put the dependencies in
3176 # the current directory while Tru64 will put them in the object
3177 # directory.
3178 mkdir sub
3179
3180 am_cv_CC_dependencies_compiler_type=none
3181 if test "$am_compiler_list" = ""; then
3182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3183 fi
3184 for depmode in $am_compiler_list; do
3185 # Setup a source with many dependencies, because some compilers
3186 # like to wrap large dependency lists on column 80 (with \), and
3187 # we should not choose a depcomp mode which is confused by this.
3188 #
3189 # We need to recreate these files for each test, as the compiler may
3190 # overwrite some of them when testing with obscure command lines.
3191 # This happens at least with the AIX C compiler.
3192 : > sub/conftest.c
3193 for i in 1 2 3 4 5 6; do
3194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3196 # Solaris 8's {/usr,}/bin/sh.
3197 touch sub/conftst$i.h
3198 done
3199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3200
3201 case $depmode in
3202 nosideeffect)
3203 # after this tag, mechanisms are not by side-effect, so they'll
3204 # only be used when explicitly requested
3205 if test "x$enable_dependency_tracking" = xyes; then
3206 continue
3207 else
3208 break
3209 fi
3210 ;;
3211 none) break ;;
3212 esac
3213 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3214 # mode. It turns out that the SunPro C++ compiler does not properly
3215 # handle `-M -o', and we need to detect this.
3216 if depmode=$depmode \
3217 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3219 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3220 >/dev/null 2>conftest.err &&
3221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3222 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3224 # icc doesn't choke on unknown options, it will just issue warnings
3225 # or remarks (even with -Werror). So we grep stderr for any message
3226 # that says an option was ignored or not supported.
3227 # When given -MP, icc 7.0 and 7.1 complain thusly:
3228 # icc: Command line warning: ignoring option '-M'; no argument required
3229 # The diagnosis changed in icc 8.0:
3230 # icc: Command line remark: option '-MP' not supported
3231 if (grep 'ignoring option' conftest.err ||
3232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3233 am_cv_CC_dependencies_compiler_type=$depmode
3234 break
3235 fi
3236 fi
3237 done
3238
3239 cd ..
3240 rm -rf conftest.dir
3241 else
3242 am_cv_CC_dependencies_compiler_type=none
3243 fi
3244
3245 fi
3246 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3247 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3249
3250
3251
3252 if
3253 test "x$enable_dependency_tracking" != xno \
3254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3255 am__fastdepCC_TRUE=
3256 am__fastdepCC_FALSE='#'
3257 else
3258 am__fastdepCC_TRUE='#'
3259 am__fastdepCC_FALSE=
3260 fi
3261
3262
3263
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_prog_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294
3295 fi
3296 fi
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299 echo "$as_me:$LINENO: result: $CC" >&5
3300 echo "${ECHO_T}$CC" >&6
3301 else
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3304 fi
3305
3306 fi
3307 if test -z "$ac_cv_prog_CC"; then
3308 ac_ct_CC=$CC
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332
3333 fi
3334 fi
3335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3336 if test -n "$ac_ct_CC"; then
3337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3338 echo "${ECHO_T}$ac_ct_CC" >&6
3339 else
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3342 fi
3343
3344 CC=$ac_ct_CC
3345 else
3346 CC="$ac_cv_prog_CC"
3347 fi
3348
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_CC+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="${ac_tool_prefix}cc"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 echo "$as_me:$LINENO: result: $CC" >&5
3380 echo "${ECHO_T}$CC" >&6
3381 else
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386 fi
3387 if test -z "$ac_cv_prog_CC"; then
3388 ac_ct_CC=$CC
3389 # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_CC="cc"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412
3413 fi
3414 fi
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3418 echo "${ECHO_T}$ac_ct_CC" >&6
3419 else
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424 CC=$ac_ct_CC
3425 else
3426 CC="$ac_cv_prog_CC"
3427 fi
3428
3429 fi
3430 if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_CC+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441 ac_prog_rejected=no
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3451 continue
3452 fi
3453 ac_cv_prog_CC="cc"
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457 done
3458 done
3459
3460 if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy $ac_cv_prog_CC
3463 shift
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3468 shift
3469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3470 fi
3471 fi
3472 fi
3473 fi
3474 CC=$ac_cv_prog_CC
3475 if test -n "$CC"; then
3476 echo "$as_me:$LINENO: result: $CC" >&5
3477 echo "${ECHO_T}$CC" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481 fi
3482
3483 fi
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in cl
3487 do
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511
3512 fi
3513 fi
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516 echo "$as_me:$LINENO: result: $CC" >&5
3517 echo "${ECHO_T}$CC" >&6
3518 else
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 fi
3522
3523 test -n "$CC" && break
3524 done
3525 fi
3526 if test -z "$CC"; then
3527 ac_ct_CC=$CC
3528 for ac_prog in cl
3529 do
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test -n "$ac_ct_CC"; then
3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_ac_ct_CC="$ac_prog"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551 done
3552 done
3553
3554 fi
3555 fi
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3559 echo "${ECHO_T}$ac_ct_CC" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3563 fi
3564
3565 test -n "$ac_ct_CC" && break
3566 done
3567
3568 CC=$ac_ct_CC
3569 fi
3570
3571 fi
3572
3573
3574 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3575 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details." >&5
3578 echo "$as_me: error: no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details." >&2;}
3580 { (exit 1); exit 1; }; }; }
3581
3582 # Provide some information about the compiler.
3583 echo "$as_me:$LINENO:" \
3584 "checking for C compiler version" >&5
3585 ac_compiler=`set X $ac_compile; echo $2`
3586 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3587 (eval $ac_compiler --version </dev/null >&5) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3592 (eval $ac_compiler -v </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3597 (eval $ac_compiler -V </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601
3602 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617 #ifndef __GNUC__
3618 choke me
3619 #endif
3620
3621 ;
3622 return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 ac_compiler_gnu=yes
3648 else
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 ac_compiler_gnu=no
3653 fi
3654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3656
3657 fi
3658 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3660 GCC=`test $ac_compiler_gnu = yes && echo yes`
3661 ac_test_CFLAGS=${CFLAGS+set}
3662 ac_save_CFLAGS=$CFLAGS
3663 CFLAGS="-g"
3664 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3666 if test "${ac_cv_prog_cc_g+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675
3676 int
3677 main ()
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 rm -f conftest.$ac_objext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686 (eval $ac_compile) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 ac_cv_prog_cc_g=yes
3707 else
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 ac_cv_prog_cc_g=no
3712 fi
3713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3714 fi
3715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3721 CFLAGS="-g -O2"
3722 else
3723 CFLAGS="-g"
3724 fi
3725 else
3726 if test "$GCC" = yes; then
3727 CFLAGS="-O2"
3728 else
3729 CFLAGS=
3730 fi
3731 fi
3732 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3733 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3734 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 ac_cv_prog_cc_stdc=no
3738 ac_save_CC=$CC
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #include <stdarg.h>
3746 #include <stdio.h>
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3753 char **p;
3754 int i;
3755 {
3756 return p[i];
3757 }
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3759 {
3760 char *s;
3761 va_list v;
3762 va_start (v,p);
3763 s = g (p, va_arg (v,int));
3764 va_end (v);
3765 return s;
3766 }
3767
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std1 is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std1. */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776
3777 int test (int i, double x);
3778 struct s1 {int (*f) (int a);};
3779 struct s2 {int (*f) (double a);};
3780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3781 int argc;
3782 char **argv;
3783 int
3784 main ()
3785 {
3786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 # Don't try gcc -ansi; that turns off useful extensions and
3792 # breaks some systems' header files.
3793 # AIX -qlanglvl=ansi
3794 # Ultrix and OSF/1 -std1
3795 # HP-UX 10.20 and later -Ae
3796 # HP-UX older versions -Aa -D_HPUX_SOURCE
3797 # SVR4 -Xc -D__EXTENSIONS__
3798 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3799 do
3800 CC="$ac_save_CC $ac_arg"
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cc_stdc=$ac_arg
3824 break
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 fi
3830 rm -f conftest.err conftest.$ac_objext
3831 done
3832 rm -f conftest.$ac_ext conftest.$ac_objext
3833 CC=$ac_save_CC
3834
3835 fi
3836
3837 case "x$ac_cv_prog_cc_stdc" in
3838 x|xno)
3839 echo "$as_me:$LINENO: result: none needed" >&5
3840 echo "${ECHO_T}none needed" >&6 ;;
3841 *)
3842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3843 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3844 CC="$CC $ac_cv_prog_cc_stdc" ;;
3845 esac
3846
3847 # Some people use a C++ compiler to compile C. Since we use `exit',
3848 # in C++ we need to declare it. In case someone uses the same compiler
3849 # for both compiling C and C++ we need to have the C++ compiler decide
3850 # the declaration of exit, since it's the most demanding environment.
3851 cat >conftest.$ac_ext <<_ACEOF
3852 #ifndef __cplusplus
3853 choke me
3854 #endif
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 for ac_declaration in \
3879 '' \
3880 'extern "C" void std::exit (int) throw (); using std::exit;' \
3881 'extern "C" void std::exit (int); using std::exit;' \
3882 'extern "C" void exit (int) throw ();' \
3883 'extern "C" void exit (int);' \
3884 'void exit (int);'
3885 do
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 $ac_declaration
3893 #include <stdlib.h>
3894 int
3895 main ()
3896 {
3897 exit (42);
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 rm -f conftest.$ac_objext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 :
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 continue
3930 fi
3931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932 cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 $ac_declaration
3939 int
3940 main ()
3941 {
3942 exit (42);
3943 ;
3944 return 0;
3945 }
3946 _ACEOF
3947 rm -f conftest.$ac_objext
3948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3949 (eval $ac_compile) 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag"
3957 || test ! -s conftest.err'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest.$ac_objext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 break
3970 else
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974 fi
3975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3976 done
3977 rm -f conftest*
3978 if test -n "$ac_declaration"; then
3979 echo '#ifdef __cplusplus' >>confdefs.h
3980 echo $ac_declaration >>confdefs.h
3981 echo '#endif' >>confdefs.h
3982 fi
3983
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 fi
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995
3996
3997 cat >>confdefs.h <<\_ACEOF
3998 #define _GNU_SOURCE 1
3999 _ACEOF
4000
4001
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4008 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4009 # On Suns, sometimes $CPP names a directory.
4010 if test -n "$CPP" && test -d "$CPP"; then
4011 CPP=
4012 fi
4013 if test -z "$CPP"; then
4014 if test "${ac_cv_prog_CPP+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 # Double quotes because CPP needs to be expanded
4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4019 do
4020 ac_preproc_ok=false
4021 for ac_c_preproc_warn_flag in '' yes
4022 do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
4029 cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h. */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 #ifdef __STDC__
4036 # include <limits.h>
4037 #else
4038 # include <assert.h>
4039 #endif
4040 Syntax error
4041 _ACEOF
4042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4044 ac_status=$?
4045 grep -v '^ *+' conftest.er1 >conftest.err
4046 rm -f conftest.er1
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } >/dev/null; then
4050 if test -s conftest.err; then
4051 ac_cpp_err=$ac_c_preproc_warn_flag
4052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4053 else
4054 ac_cpp_err=
4055 fi
4056 else
4057 ac_cpp_err=yes
4058 fi
4059 if test -z "$ac_cpp_err"; then
4060 :
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 # Broken: fails on valid input.
4066 continue
4067 fi
4068 rm -f conftest.err conftest.$ac_ext
4069
4070 # OK, works on sane cases. Now check whether non-existent headers
4071 # can be detected and how.
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 #include <ac_nonexistent.h>
4079 _ACEOF
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4091 else
4092 ac_cpp_err=
4093 fi
4094 else
4095 ac_cpp_err=yes
4096 fi
4097 if test -z "$ac_cpp_err"; then
4098 # Broken: success on invalid input.
4099 continue
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 # Passes both tests.
4105 ac_preproc_ok=:
4106 break
4107 fi
4108 rm -f conftest.err conftest.$ac_ext
4109
4110 done
4111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112 rm -f conftest.err conftest.$ac_ext
4113 if $ac_preproc_ok; then
4114 break
4115 fi
4116
4117 done
4118 ac_cv_prog_CPP=$CPP
4119
4120 fi
4121 CPP=$ac_cv_prog_CPP
4122 else
4123 ac_cv_prog_CPP=$CPP
4124 fi
4125 echo "$as_me:$LINENO: result: $CPP" >&5
4126 echo "${ECHO_T}$CPP" >&6
4127 ac_preproc_ok=false
4128 for ac_c_preproc_warn_flag in '' yes
4129 do
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147 Syntax error
4148 _ACEOF
4149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null; then
4157 if test -s conftest.err; then
4158 ac_cpp_err=$ac_c_preproc_warn_flag
4159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4160 else
4161 ac_cpp_err=
4162 fi
4163 else
4164 ac_cpp_err=yes
4165 fi
4166 if test -z "$ac_cpp_err"; then
4167 :
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 # Broken: fails on valid input.
4173 continue
4174 fi
4175 rm -f conftest.err conftest.$ac_ext
4176
4177 # OK, works on sane cases. Now check whether non-existent headers
4178 # can be detected and how.
4179 cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h. */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4186 _ACEOF
4187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev/null; then
4195 if test -s conftest.err; then
4196 ac_cpp_err=$ac_c_preproc_warn_flag
4197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4198 else
4199 ac_cpp_err=
4200 fi
4201 else
4202 ac_cpp_err=yes
4203 fi
4204 if test -z "$ac_cpp_err"; then
4205 # Broken: success on invalid input.
4206 continue
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 # Passes both tests.
4212 ac_preproc_ok=:
4213 break
4214 fi
4215 rm -f conftest.err conftest.$ac_ext
4216
4217 done
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then
4221 :
4222 else
4223 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4224 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log' for more details." >&5
4227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4228 See \`config.log' for more details." >&2;}
4229 { (exit 1); exit 1; }; }; }
4230 fi
4231
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238
4239 echo "$as_me:$LINENO: checking for egrep" >&5
4240 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4241 if test "${ac_cv_prog_egrep+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4245 then ac_cv_prog_egrep='grep -E'
4246 else ac_cv_prog_egrep='egrep'
4247 fi
4248 fi
4249 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4250 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4251 EGREP=$ac_cv_prog_egrep
4252
4253
4254 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4255 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4256 if test "${ac_cv_header_stdc+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <stdlib.h>
4266 #include <stdarg.h>
4267 #include <string.h>
4268 #include <float.h>
4269
4270 int
4271 main ()
4272 {
4273
4274 ;
4275 return 0;
4276 }
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_cv_header_stdc=yes
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ac_cv_header_stdc=no
4306 fi
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308
4309 if test $ac_cv_header_stdc = yes; then
4310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <string.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then
4322 :
4323 else
4324 ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329
4330 if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <stdlib.h>
4339
4340 _ACEOF
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342 $EGREP "free" >/dev/null 2>&1; then
4343 :
4344 else
4345 ac_cv_header_stdc=no
4346 fi
4347 rm -f conftest*
4348
4349 fi
4350
4351 if test $ac_cv_header_stdc = yes; then
4352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4353 if test "$cross_compiling" = yes; then
4354 :
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <ctype.h>
4363 #if ((' ' & 0x0FF) == 0x020)
4364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4366 #else
4367 # define ISLOWER(c) \
4368 (('a' <= (c) && (c) <= 'i') \
4369 || ('j' <= (c) && (c) <= 'r') \
4370 || ('s' <= (c) && (c) <= 'z'))
4371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4372 #endif
4373
4374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4375 int
4376 main ()
4377 {
4378 int i;
4379 for (i = 0; i < 256; i++)
4380 if (XOR (islower (i), ISLOWER (i))
4381 || toupper (i) != TOUPPER (i))
4382 exit(2);
4383 exit (0);
4384 }
4385 _ACEOF
4386 rm -f conftest$ac_exeext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388 (eval $ac_link) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 :
4398 else
4399 echo "$as_me: program exited with status $ac_status" >&5
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 ( exit $ac_status )
4404 ac_cv_header_stdc=no
4405 fi
4406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 fi
4409 fi
4410 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4412 if test $ac_cv_header_stdc = yes; then
4413
4414 cat >>confdefs.h <<\_ACEOF
4415 #define STDC_HEADERS 1
4416 _ACEOF
4417
4418 fi
4419
4420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4431 inttypes.h stdint.h unistd.h
4432 do
4433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434 echo "$as_me:$LINENO: checking for $ac_header" >&5
4435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 $ac_includes_default
4446
4447 #include <$ac_header>
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag"
4459 || test ! -s conftest.err'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 eval "$as_ac_Header=yes"
4472 else
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 eval "$as_ac_Header=no"
4477 fi
4478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4479 fi
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4483 cat >>confdefs.h <<_ACEOF
4484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4485 _ACEOF
4486
4487 fi
4488
4489 done
4490
4491
4492
4493 if test "${ac_cv_header_minix_config_h+set}" = set; then
4494 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4495 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4496 if test "${ac_cv_header_minix_config_h+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 fi
4499 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4500 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4501 else
4502 # Is the header compilable?
4503 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4504 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 $ac_includes_default
4512 #include <minix/config.h>
4513 _ACEOF
4514 rm -f conftest.$ac_objext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516 (eval $ac_compile) 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag"
4524 || test ! -s conftest.err'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 ac_header_compiler=yes
4537 else
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541 ac_header_compiler=no
4542 fi
4543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4545 echo "${ECHO_T}$ac_header_compiler" >&6
4546
4547 # Is the header present?
4548 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4549 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #include <minix/config.h>
4557 _ACEOF
4558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } >/dev/null; then
4566 if test -s conftest.err; then
4567 ac_cpp_err=$ac_c_preproc_warn_flag
4568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4569 else
4570 ac_cpp_err=
4571 fi
4572 else
4573 ac_cpp_err=yes
4574 fi
4575 if test -z "$ac_cpp_err"; then
4576 ac_header_preproc=yes
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 ac_header_preproc=no
4582 fi
4583 rm -f conftest.err conftest.$ac_ext
4584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4585 echo "${ECHO_T}$ac_header_preproc" >&6
4586
4587 # So? What about this header?
4588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4589 yes:no: )
4590 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4591 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4593 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4594 ac_header_preproc=yes
4595 ;;
4596 no:yes:* )
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4598 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4600 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4602 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4604 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4606 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4608 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4609 (
4610 cat <<\_ASBOX
4611 ## ------------------------------------------ ##
4612 ## Report this to the AC_PACKAGE_NAME lists. ##
4613 ## ------------------------------------------ ##
4614 _ASBOX
4615 ) |
4616 sed "s/^/$as_me: WARNING: /" >&2
4617 ;;
4618 esac
4619 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4620 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4621 if test "${ac_cv_header_minix_config_h+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 ac_cv_header_minix_config_h=$ac_header_preproc
4625 fi
4626 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4627 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4628
4629 fi
4630 if test $ac_cv_header_minix_config_h = yes; then
4631 MINIX=yes
4632 else
4633 MINIX=
4634 fi
4635
4636
4637 if test "$MINIX" = yes; then
4638
4639 cat >>confdefs.h <<\_ACEOF
4640 #define _POSIX_SOURCE 1
4641 _ACEOF
4642
4643
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _POSIX_1_SOURCE 2
4646 _ACEOF
4647
4648
4649 cat >>confdefs.h <<\_ACEOF
4650 #define _MINIX 1
4651 _ACEOF
4652
4653 fi
4654
4655
4656
4657 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4658 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4659 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h. */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668
4669 # define __EXTENSIONS__ 1
4670 $ac_includes_default
4671 int
4672 main ()
4673 {
4674
4675 ;
4676 return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_cv_safe_to_define___extensions__=yes
4702 else
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ac_cv_safe_to_define___extensions__=no
4707 fi
4708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709 fi
4710 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4711 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4712 test $ac_cv_safe_to_define___extensions__ = yes &&
4713 cat >>confdefs.h <<\_ACEOF
4714 #define __EXTENSIONS__ 1
4715 _ACEOF
4716
4717 cat >>confdefs.h <<\_ACEOF
4718 #define _ALL_SOURCE 1
4719 _ACEOF
4720
4721 cat >>confdefs.h <<\_ACEOF
4722 #define _GNU_SOURCE 1
4723 _ACEOF
4724
4725 cat >>confdefs.h <<\_ACEOF
4726 #define _POSIX_PTHREAD_SEMANTICS 1
4727 _ACEOF
4728
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _TANDEM_SOURCE 1
4731 _ACEOF
4732
4733
4734
4735
4736
4737 macro_version='2.1a'
4738 macro_revision='1.2435'
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751 ltmain="$ac_aux_dir/ltmain.sh"
4752
4753 # Set options
4754
4755 enable_dlopen=no
4756
4757
4758 enable_win32_dll=no
4759
4760
4761 # Check whether --enable-shared or --disable-shared was given.
4762 if test "${enable_shared+set}" = set; then
4763 enableval="$enable_shared"
4764 p=${PACKAGE-default}
4765 case $enableval in
4766 yes) enable_shared=yes ;;
4767 no) enable_shared=no ;;
4768 *)
4769 enable_shared=no
4770 # Look at the argument we got. We use all the common list separators.
4771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4772 for pkg in $enableval; do
4773 IFS="$lt_save_ifs"
4774 if test "X$pkg" = "X$p"; then
4775 enable_shared=yes
4776 fi
4777 done
4778 IFS="$lt_save_ifs"
4779 ;;
4780 esac
4781 else
4782 enable_shared=yes
4783 fi;
4784
4785
4786
4787
4788
4789
4790
4791
4792 # Check whether --enable-static or --disable-static was given.
4793 if test "${enable_static+set}" = set; then
4794 enableval="$enable_static"
4795 p=${PACKAGE-default}
4796 case $enableval in
4797 yes) enable_static=yes ;;
4798 no) enable_static=no ;;
4799 *)
4800 enable_static=no
4801 # Look at the argument we got. We use all the common list separators.
4802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4803 for pkg in $enableval; do
4804 IFS="$lt_save_ifs"
4805 if test "X$pkg" = "X$p"; then
4806 enable_static=yes
4807 fi
4808 done
4809 IFS="$lt_save_ifs"
4810 ;;
4811 esac
4812 else
4813 enable_static=yes
4814 fi;
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824 # Check whether --with-pic or --without-pic was given.
4825 if test "${with_pic+set}" = set; then
4826 withval="$with_pic"
4827 pic_mode="$withval"
4828 else
4829 pic_mode=default
4830 fi;
4831
4832 test -z "$pic_mode" && pic_mode=default
4833
4834
4835
4836
4837
4838
4839
4840 # Check whether --enable-fast-install or --disable-fast-install was given.
4841 if test "${enable_fast_install+set}" = set; then
4842 enableval="$enable_fast_install"
4843 p=${PACKAGE-default}
4844 case $enableval in
4845 yes) enable_fast_install=yes ;;
4846 no) enable_fast_install=no ;;
4847 *)
4848 enable_fast_install=no
4849 # Look at the argument we got. We use all the common list separators.
4850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4851 for pkg in $enableval; do
4852 IFS="$lt_save_ifs"
4853 if test "X$pkg" = "X$p"; then
4854 enable_fast_install=yes
4855 fi
4856 done
4857 IFS="$lt_save_ifs"
4858 ;;
4859 esac
4860 else
4861 enable_fast_install=yes
4862 fi;
4863
4864
4865
4866
4867
4868
4869
4870
4871 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4872 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4873 if test "${lt_cv_path_SED+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876 # Loop through the user's path and test for sed and gsed.
4877 # Then use that list of sed's as ones to test for truncation.
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for lt_ac_prog in sed gsed; do
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4886 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4887 fi
4888 done
4889 done
4890 done
4891 IFS=$as_save_IFS
4892 lt_ac_max=0
4893 lt_ac_count=0
4894 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4895 # along with /bin/sed that truncates output.
4896 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4897 test ! -f $lt_ac_sed && continue
4898 cat /dev/null > conftest.in
4899 lt_ac_count=0
4900 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4901 # Check for GNU sed and select it if it is found.
4902 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4903 lt_cv_path_SED=$lt_ac_sed
4904 break
4905 fi
4906 while true; do
4907 cat conftest.in conftest.in >conftest.tmp
4908 mv conftest.tmp conftest.in
4909 cp conftest.in conftest.nl
4910 echo >>conftest.nl
4911 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4912 cmp -s conftest.out conftest.nl || break
4913 # 10000 chars as input seems more than enough
4914 test $lt_ac_count -gt 10 && break
4915 lt_ac_count=`expr $lt_ac_count + 1`
4916 if test $lt_ac_count -gt $lt_ac_max; then
4917 lt_ac_max=$lt_ac_count
4918 lt_cv_path_SED=$lt_ac_sed
4919 fi
4920 done
4921 done
4922
4923 fi
4924
4925 SED=$lt_cv_path_SED
4926
4927 echo "$as_me:$LINENO: result: $SED" >&5
4928 echo "${ECHO_T}$SED" >&6
4929
4930 test -z "$SED" && SED=sed
4931 Xsed="$SED -e 1s/^X//"
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943 echo "$as_me:$LINENO: checking for fgrep" >&5
4944 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4945 if test "${ac_cv_prog_fgrep+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4949 then ac_cv_prog_fgrep='grep -F'
4950 else ac_cv_prog_fgrep='fgrep'
4951 fi
4952 fi
4953 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4954 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4955 FGREP=$ac_cv_prog_fgrep
4956
4957
4958 test -z "$GREP" && GREP=grep
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4979 if test "${with_gnu_ld+set}" = set; then
4980 withval="$with_gnu_ld"
4981 test "$withval" = no || with_gnu_ld=yes
4982 else
4983 with_gnu_ld=no
4984 fi;
4985 ac_prog=ld
4986 if test "$GCC" = yes; then
4987 # Check if gcc -print-prog-name=ld gives a path.
4988 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4989 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4990 case $host in
4991 *-*-mingw*)
4992 # gcc leaves a trailing carriage return which upsets mingw
4993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4994 *)
4995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4996 esac
4997 case $ac_prog in
4998 # Accept absolute paths.
4999 [\\/]* | ?:[\\/]*)
5000 re_direlt='/[^/][^/]*/\.\./'
5001 # Canonicalize the pathname of ld
5002 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5003 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5004 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5005 done
5006 test -z "$LD" && LD="$ac_prog"
5007 ;;
5008 "")
5009 # If it fails, then pretend we aren't using GCC.
5010 ac_prog=ld
5011 ;;
5012 *)
5013 # If it is relative, then search for the first ld in PATH.
5014 with_gnu_ld=unknown
5015 ;;
5016 esac
5017 elif test "$with_gnu_ld" = yes; then
5018 echo "$as_me:$LINENO: checking for GNU ld" >&5
5019 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5020 else
5021 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5022 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5023 fi
5024 if test "${lt_cv_path_LD+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 if test -z "$LD"; then
5028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5029 for ac_dir in $PATH; do
5030 IFS="$lt_save_ifs"
5031 test -z "$ac_dir" && ac_dir=.
5032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5033 lt_cv_path_LD="$ac_dir/$ac_prog"
5034 # Check to see if the program is GNU ld. I'd rather use --version,
5035 # but apparently some variants of GNU ld only accept -v.
5036 # Break only if it was the GNU/non-GNU ld that we prefer.
5037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5038 *GNU* | *'with BFD'*)
5039 test "$with_gnu_ld" != no && break
5040 ;;
5041 *)
5042 test "$with_gnu_ld" != yes && break
5043 ;;
5044 esac
5045 fi
5046 done
5047 IFS="$lt_save_ifs"
5048 else
5049 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5050 fi
5051 fi
5052
5053 LD="$lt_cv_path_LD"
5054 if test -n "$LD"; then
5055 echo "$as_me:$LINENO: result: $LD" >&5
5056 echo "${ECHO_T}$LD" >&6
5057 else
5058 echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6
5060 fi
5061 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5062 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5063 { (exit 1); exit 1; }; }
5064 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5065 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5066 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5070 case `$LD -v 2>&1 </dev/null` in
5071 *GNU* | *'with BFD'*)
5072 lt_cv_prog_gnu_ld=yes
5073 ;;
5074 *)
5075 lt_cv_prog_gnu_ld=no
5076 ;;
5077 esac
5078 fi
5079 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5080 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5081 with_gnu_ld=$lt_cv_prog_gnu_ld
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5093 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5094 if test "${lt_cv_path_NM+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 if test -n "$NM"; then
5098 # Let the user override the test.
5099 lt_cv_path_NM="$NM"
5100 else
5101 lt_nm_to_check="${ac_tool_prefix}nm"
5102 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5103 lt_nm_to_check="$lt_nm_to_check nm"
5104 fi
5105 for lt_tmp_nm in $lt_nm_to_check; do
5106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5107 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5108 IFS="$lt_save_ifs"
5109 test -z "$ac_dir" && ac_dir=.
5110 tmp_nm="$ac_dir/$lt_tmp_nm"
5111 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5112 # Check to see if the nm accepts a BSD-compat flag.
5113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5114 # nm: unknown option "B" ignored
5115 # Tru64's nm complains that /dev/null is an invalid object file
5116 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5117 */dev/null* | *'Invalid file or object type'*)
5118 lt_cv_path_NM="$tmp_nm -B"
5119 break
5120 ;;
5121 *)
5122 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5123 */dev/null*)
5124 lt_cv_path_NM="$tmp_nm -p"
5125 break
5126 ;;
5127 *)
5128 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5129 continue # so that we can try to find one that supports BSD flags
5130 ;;
5131 esac
5132 ;;
5133 esac
5134 fi
5135 done
5136 IFS="$lt_save_ifs"
5137 done
5138 : ${lt_cv_path_NM=no}
5139 fi
5140 fi
5141 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5142 echo "${ECHO_T}$lt_cv_path_NM" >&6
5143 if test "$lt_cv_path_NM" != "no"; then
5144 NM="$lt_cv_path_NM"
5145 else
5146 # Didn't find any BSD compatible name lister, look for dumpbin.
5147 if test -n "$ac_tool_prefix"; then
5148 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5149 do
5150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5152 echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 if test -n "$DUMPBIN"; then
5158 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173
5174 fi
5175 fi
5176 DUMPBIN=$ac_cv_prog_DUMPBIN
5177 if test -n "$DUMPBIN"; then
5178 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5179 echo "${ECHO_T}$DUMPBIN" >&6
5180 else
5181 echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5183 fi
5184
5185 test -n "$DUMPBIN" && break
5186 done
5187 fi
5188 if test -z "$DUMPBIN"; then
5189 ac_ct_DUMPBIN=$DUMPBIN
5190 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5191 do
5192 # Extract the first word of "$ac_prog", so it can be a program name with args.
5193 set dummy $ac_prog; ac_word=$2
5194 echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 if test -n "$ac_ct_DUMPBIN"; then
5200 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213 done
5214 done
5215
5216 fi
5217 fi
5218 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5219 if test -n "$ac_ct_DUMPBIN"; then
5220 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5221 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5225 fi
5226
5227 test -n "$ac_ct_DUMPBIN" && break
5228 done
5229 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5230
5231 DUMPBIN=$ac_ct_DUMPBIN
5232 fi
5233
5234
5235 if test "$DUMPBIN" != ":"; then
5236 NM="$DUMPBIN"
5237 fi
5238 fi
5239 test -z "$NM" && NM=nm
5240
5241
5242
5243
5244
5245
5246 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5247 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5248 if test "${lt_cv_nm_interface+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251 lt_cv_nm_interface="BSD nm"
5252 echo "int some_variable = 0;" > conftest.$ac_ext
5253 (eval echo "\"\$as_me:5253: $ac_compile\"" >&5)
5254 (eval "$ac_compile" 2>conftest.err)
5255 cat conftest.err >&5
5256 (eval echo "\"\$as_me:5256: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5257 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5258 cat conftest.err >&5
5259 (eval echo "\"\$as_me:5259: output\"" >&5)
5260 cat conftest.out >&5
5261 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5262 lt_cv_nm_interface="MS dumpbin"
5263 fi
5264 rm -f conftest*
5265 fi
5266 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5267 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5268
5269 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5270 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5271 LN_S=$as_ln_s
5272 if test "$LN_S" = "ln -s"; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274 echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5277 echo "${ECHO_T}no, using $LN_S" >&6
5278 fi
5279
5280 # find the maximum length of command line arguments
5281 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5282 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5283 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 i=0
5287 teststring="ABCD"
5288
5289 case $build_os in
5290 msdosdjgpp*)
5291 # On DJGPP, this test can blow up pretty badly due to problems in libc
5292 # (any single argument exceeding 2000 bytes causes a buffer overrun
5293 # during glob expansion). Even if it were fixed, the result of this
5294 # check would be larger than it should be.
5295 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5296 ;;
5297
5298 gnu*)
5299 # Under GNU Hurd, this test is not required because there is
5300 # no limit to the length of command line arguments.
5301 # Libtool will interpret -1 as no limit whatsoever
5302 lt_cv_sys_max_cmd_len=-1;
5303 ;;
5304
5305 cygwin* | mingw*)
5306 # On Win9x/ME, this test blows up -- it succeeds, but takes
5307 # about 5 minutes as the teststring grows exponentially.
5308 # Worse, since 9x/ME are not pre-emptively multitasking,
5309 # you end up with a "frozen" computer, even though with patience
5310 # the test eventually succeeds (with a max line length of 256k).
5311 # Instead, let's just punt: use the minimum linelength reported by
5312 # all of the supported platforms: 8192 (on NT/2K/XP).
5313 lt_cv_sys_max_cmd_len=8192;
5314 ;;
5315
5316 amigaos*)
5317 # On AmigaOS with pdksh, this test takes hours, literally.
5318 # So we just punt and use a minimum line length of 8192.
5319 lt_cv_sys_max_cmd_len=8192;
5320 ;;
5321
5322 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5323 # This has been around since 386BSD, at least. Likely further.
5324 if test -x /sbin/sysctl; then
5325 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5326 elif test -x /usr/sbin/sysctl; then
5327 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5328 else
5329 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5330 fi
5331 # And add a safety zone
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5334 ;;
5335
5336 interix*)
5337 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5338 lt_cv_sys_max_cmd_len=196608
5339 ;;
5340
5341 osf*)
5342 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5343 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5344 # nice to cause kernel panics so lets avoid the loop below.
5345 # First set a reasonable default.
5346 lt_cv_sys_max_cmd_len=16384
5347 #
5348 if test -x /sbin/sysconfig; then
5349 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5350 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5351 esac
5352 fi
5353 ;;
5354 sco3.2v5*)
5355 lt_cv_sys_max_cmd_len=102400
5356 ;;
5357 sysv5* | sco5v6* | sysv4.2uw2*)
5358 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5359 if test -n "$kargmax"; then
5360 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5361 else
5362 lt_cv_sys_max_cmd_len=32768
5363 fi
5364 ;;
5365 *)
5366 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5367 if test -n $lt_cv_sys_max_cmd_len; then
5368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5370 else
5371 # Make teststring a little bigger before we do anything with it.
5372 # a 1K string should be a reasonable start.
5373 for i in 1 2 3 4 5 6 7 8 ; do
5374 teststring=$teststring$teststring
5375 done
5376 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5377 # If test is not a shell built-in, we'll probably end up computing a
5378 # maximum length that is only half of the actual maximum length, but
5379 # we can't tell.
5380 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5381 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5382 test $i != 17 # 1/2 MB should be enough
5383 do
5384 i=`expr $i + 1`
5385 teststring=$teststring$teststring
5386 done
5387 # Only check the string length outside the loop.
5388 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5389 teststring=
5390 # Add a significant safety factor because C++ compilers can tack on
5391 # massive amounts of additional arguments before passing them to the
5392 # linker. It appears as though 1/2 is a usable value.
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5394 fi
5395 ;;
5396 esac
5397
5398 fi
5399
5400 if test -n $lt_cv_sys_max_cmd_len ; then
5401 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5402 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5403 else
5404 echo "$as_me:$LINENO: result: none" >&5
5405 echo "${ECHO_T}none" >&6
5406 fi
5407 max_cmd_len=$lt_cv_sys_max_cmd_len
5408
5409
5410
5411
5412
5413
5414
5415 : ${CP="cp -f"}
5416 : ${MV="mv -f"}
5417 : ${RM="rm -f"}
5418
5419 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5420 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5421 # Try some XSI features
5422 xsi_shell=no
5423 ( _lt_dummy="a/b/c"
5424 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5425 = c,a/b,, ) >/dev/null 2>&1 \
5426 && xsi_shell=yes
5427 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5428 echo "${ECHO_T}$xsi_shell" >&6
5429
5430
5431 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5432 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5433 lt_shell_append=no
5434 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5435 >/dev/null 2>&1 \
5436 && lt_shell_append=yes
5437 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5438 echo "${ECHO_T}$lt_shell_append" >&6
5439
5440
5441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5442 lt_unset=unset
5443 else
5444 lt_unset=false
5445 fi
5446
5447
5448
5449
5450
5451 # test EBCDIC or ASCII
5452 case `echo X|tr X '\101'` in
5453 A) # ASCII based system
5454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5455 lt_SP2NL='tr \040 \012'
5456 lt_NL2SP='tr \015\012 \040\040'
5457 ;;
5458 *) # EBCDIC based system
5459 lt_SP2NL='tr \100 \n'
5460 lt_NL2SP='tr \r\n \100\100'
5461 ;;
5462 esac
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5473 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5474 if test "${lt_cv_ld_reload_flag+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 lt_cv_ld_reload_flag='-r'
5478 fi
5479 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5480 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5481 reload_flag=$lt_cv_ld_reload_flag
5482 case $reload_flag in
5483 "" | " "*) ;;
5484 *) reload_flag=" $reload_flag" ;;
5485 esac
5486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5487 case $host_os in
5488 darwin*)
5489 if test "$GCC" = yes; then
5490 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5491 else
5492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5493 fi
5494 ;;
5495 esac
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5507 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5508 if test "${lt_cv_deplibs_check_method+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 lt_cv_file_magic_cmd='$MAGIC_CMD'
5512 lt_cv_file_magic_test_file=
5513 lt_cv_deplibs_check_method='unknown'
5514 # Need to set the preceding variable on all platforms that support
5515 # interlibrary dependencies.
5516 # 'none' -- dependencies not supported.
5517 # `unknown' -- same as none, but documents that we really don't know.
5518 # 'pass_all' -- all dependencies passed with no checks.
5519 # 'test_compile' -- check by making test program.
5520 # 'file_magic [[regex]]' -- check by looking for files in library path
5521 # which responds to the $file_magic_cmd with a given extended regex.
5522 # If you have `file' or equivalent on your system and you're not sure
5523 # whether `pass_all' will *always* work, you probably want this one.
5524
5525 case $host_os in
5526 aix[4-9]*)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529
5530 beos*)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533
5534 bsdi[45]*)
5535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5536 lt_cv_file_magic_cmd='/usr/bin/file -L'
5537 lt_cv_file_magic_test_file=/shlib/libc.so
5538 ;;
5539
5540 cygwin*)
5541 # func_win32_libid is a shell function defined in ltmain.sh
5542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5543 lt_cv_file_magic_cmd='func_win32_libid'
5544 ;;
5545
5546 mingw* | pw32*)
5547 # Base MSYS/MinGW do not provide the 'file' command needed by
5548 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5549 # unless we find 'file', for example because we are cross-compiling.
5550 if ( file / ) >/dev/null 2>&1; then
5551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5552 lt_cv_file_magic_cmd='func_win32_libid'
5553 else
5554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5555 lt_cv_file_magic_cmd='$OBJDUMP -f'
5556 fi
5557 ;;
5558
5559 darwin* | rhapsody*)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562
5563 freebsd* | dragonfly*)
5564 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5565 case $host_cpu in
5566 i*86 )
5567 # Not sure whether the presence of OpenBSD here was a mistake.
5568 # Let's accept both of them until this is cleared up.
5569 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5570 lt_cv_file_magic_cmd=/usr/bin/file
5571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5572 ;;
5573 esac
5574 else
5575 lt_cv_deplibs_check_method=pass_all
5576 fi
5577 ;;
5578
5579 gnu*)
5580 lt_cv_deplibs_check_method=pass_all
5581 ;;
5582
5583 hpux10.20* | hpux11*)
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 case $host_cpu in
5586 ia64*)
5587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5588 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5589 ;;
5590 hppa*64*)
5591 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]'
5592 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5593 ;;
5594 *)
5595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5596 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5597 ;;
5598 esac
5599 ;;
5600
5601 interix[3-9]*)
5602 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5604 ;;
5605
5606 irix5* | irix6* | nonstopux*)
5607 case $LD in
5608 *-32|*"-32 ") libmagic=32-bit;;
5609 *-n32|*"-n32 ") libmagic=N32;;
5610 *-64|*"-64 ") libmagic=64-bit;;
5611 *) libmagic=never-match;;
5612 esac
5613 lt_cv_deplibs_check_method=pass_all
5614 ;;
5615
5616 # This must be Linux ELF.
5617 linux* | k*bsd*-gnu)
5618 lt_cv_deplibs_check_method=pass_all
5619 ;;
5620
5621 netbsd*)
5622 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624 else
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5626 fi
5627 ;;
5628
5629 newos6*)
5630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5631 lt_cv_file_magic_cmd=/usr/bin/file
5632 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5633 ;;
5634
5635 *nto* | *qnx*)
5636 lt_cv_deplibs_check_method=pass_all
5637 ;;
5638
5639 openbsd*)
5640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5642 else
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5644 fi
5645 ;;
5646
5647 osf3* | osf4* | osf5*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650
5651 rdos*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655 solaris*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662
5663 sysv4 | sysv4.3*)
5664 case $host_vendor in
5665 motorola)
5666 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]'
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5668 ;;
5669 ncr)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672 sequent)
5673 lt_cv_file_magic_cmd='/bin/file'
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5675 ;;
5676 sni)
5677 lt_cv_file_magic_cmd='/bin/file'
5678 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5679 lt_cv_file_magic_test_file=/lib/libc.so
5680 ;;
5681 siemens)
5682 lt_cv_deplibs_check_method=pass_all
5683 ;;
5684 pc)
5685 lt_cv_deplibs_check_method=pass_all
5686 ;;
5687 esac
5688 ;;
5689
5690 tpf*)
5691 lt_cv_deplibs_check_method=pass_all
5692 ;;
5693 esac
5694
5695 fi
5696 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5697 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5698 file_magic_cmd=$lt_cv_file_magic_cmd
5699 deplibs_check_method=$lt_cv_deplibs_check_method
5700 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}ar; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_AR+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 if test -n "$AR"; then
5722 ac_cv_prog_AR="$AR" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_AR="${ac_tool_prefix}ar"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735 done
5736 done
5737
5738 fi
5739 fi
5740 AR=$ac_cv_prog_AR
5741 if test -n "$AR"; then
5742 echo "$as_me:$LINENO: result: $AR" >&5
5743 echo "${ECHO_T}$AR" >&6
5744 else
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747 fi
5748
5749 fi
5750 if test -z "$ac_cv_prog_AR"; then
5751 ac_ct_AR=$AR
5752 # Extract the first word of "ar", so it can be a program name with args.
5753 set dummy ar; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 if test -n "$ac_ct_AR"; then
5760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_AR="ar"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775
5776 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5777 fi
5778 fi
5779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5780 if test -n "$ac_ct_AR"; then
5781 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5782 echo "${ECHO_T}$ac_ct_AR" >&6
5783 else
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5786 fi
5787
5788 AR=$ac_ct_AR
5789 else
5790 AR="$ac_cv_prog_AR"
5791 fi
5792
5793 test -z "$AR" && AR=ar
5794 test -z "$AR_FLAGS" && AR_FLAGS=cru
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}strip; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_prog_STRIP+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 if test -n "$STRIP"; then
5815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828 done
5829 done
5830
5831 fi
5832 fi
5833 STRIP=$ac_cv_prog_STRIP
5834 if test -n "$STRIP"; then
5835 echo "$as_me:$LINENO: result: $STRIP" >&5
5836 echo "${ECHO_T}$STRIP" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5840 fi
5841
5842 fi
5843 if test -z "$ac_cv_prog_STRIP"; then
5844 ac_ct_STRIP=$STRIP
5845 # Extract the first word of "strip", so it can be a program name with args.
5846 set dummy strip; ac_word=$2
5847 echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852 if test -n "$ac_ct_STRIP"; then
5853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_ac_ct_STRIP="strip"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868
5869 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5870 fi
5871 fi
5872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5873 if test -n "$ac_ct_STRIP"; then
5874 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5875 echo "${ECHO_T}$ac_ct_STRIP" >&6
5876 else
5877 echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5879 fi
5880
5881 STRIP=$ac_ct_STRIP
5882 else
5883 STRIP="$ac_cv_prog_STRIP"
5884 fi
5885
5886 test -z "$STRIP" && STRIP=:
5887
5888
5889
5890
5891
5892
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5896 echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898 if test "${ac_cv_prog_RANLIB+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 if test -n "$RANLIB"; then
5902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917
5918 fi
5919 fi
5920 RANLIB=$ac_cv_prog_RANLIB
5921 if test -n "$RANLIB"; then
5922 echo "$as_me:$LINENO: result: $RANLIB" >&5
5923 echo "${ECHO_T}$RANLIB" >&6
5924 else
5925 echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6
5927 fi
5928
5929 fi
5930 if test -z "$ac_cv_prog_RANLIB"; then
5931 ac_ct_RANLIB=$RANLIB
5932 # Extract the first word of "ranlib", so it can be a program name with args.
5933 set dummy ranlib; ac_word=$2
5934 echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5936 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 if test -n "$ac_ct_RANLIB"; then
5940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_ac_ct_RANLIB="ranlib"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5952 fi
5953 done
5954 done
5955
5956 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5957 fi
5958 fi
5959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5960 if test -n "$ac_ct_RANLIB"; then
5961 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5962 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5963 else
5964 echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5966 fi
5967
5968 RANLIB=$ac_ct_RANLIB
5969 else
5970 RANLIB="$ac_cv_prog_RANLIB"
5971 fi
5972
5973 test -z "$RANLIB" && RANLIB=:
5974
5975
5976
5977
5978
5979
5980 # Determine commands to create old-style static archives.
5981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5982 old_postinstall_cmds='chmod 644 $oldlib'
5983 old_postuninstall_cmds=
5984
5985 if test -n "$RANLIB"; then
5986 case $host_os in
5987 openbsd*)
5988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5989 ;;
5990 *)
5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5992 ;;
5993 esac
5994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5995 fi
5996
5997
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 # If no C compiler was specified, use CC.
6031 LTCC=${LTCC-"$CC"}
6032
6033 # If no C compiler flags were specified, use CFLAGS.
6034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6035
6036 # Allow CC to be a program name with arguments.
6037 compiler=$CC
6038
6039
6040 # Check for command to grab the raw symbol name followed by C symbol from nm.
6041 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6042 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6043 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046
6047 # These are sane defaults that work on at least a few old systems.
6048 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6049
6050 # Character class describing NM global symbol codes.
6051 symcode='[BCDEGRST]'
6052
6053 # Regexp to match symbols that can be accessed directly from C.
6054 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6055
6056 # Define system-specific variables.
6057 case $host_os in
6058 aix*)
6059 symcode='[BCDT]'
6060 ;;
6061 cygwin* | mingw* | pw32*)
6062 symcode='[ABCDGISTW]'
6063 ;;
6064 hpux*)
6065 if test "$host_cpu" = ia64; then
6066 symcode='[ABCDEGRST]'
6067 fi
6068 ;;
6069 irix* | nonstopux*)
6070 symcode='[BCDEGRST]'
6071 ;;
6072 osf*)
6073 symcode='[BCDEGQRST]'
6074 ;;
6075 solaris*)
6076 symcode='[BDRT]'
6077 ;;
6078 sco3.2v5*)
6079 symcode='[DT]'
6080 ;;
6081 sysv4.2uw2*)
6082 symcode='[DT]'
6083 ;;
6084 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6085 symcode='[ABDT]'
6086 ;;
6087 sysv4)
6088 symcode='[DFNSTU]'
6089 ;;
6090 esac
6091
6092 # If we're using GNU nm, then use its standard symbol codes.
6093 case `$NM -V 2>&1` in
6094 *GNU* | *'with BFD'*)
6095 symcode='[ABCDGIRSTW]' ;;
6096 esac
6097
6098 # Transform an extracted symbol line into a proper C declaration.
6099 # Some systems (esp. on ia64) link data and code symbols differently,
6100 # so use this general approach.
6101 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6102
6103 # Transform an extracted symbol line into symbol name and symbol address
6104 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6105
6106 # Handle CRLF in mingw tool chain
6107 opt_cr=
6108 case $build_os in
6109 mingw*)
6110 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6111 ;;
6112 esac
6113
6114 # Try without a prefix underscore, then with it.
6115 for ac_symprfx in "" "_"; do
6116
6117 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6118 symxfrm="\\1 $ac_symprfx\\2 \\2"
6119
6120 # Write the raw and C identifiers.
6121 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6122 # Fake it for dumpbin and say T for any non-static function
6123 # and D for any global variable.
6124 # Also find C++ and __fastcall symbols from MSVC++,
6125 # which start with @ or ?.
6126 lt_cv_sys_global_symbol_pipe="$AWK '"\
6127 " {last_section=section; section=\$ 3};"\
6128 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6129 " \$ 0!~/External *\|/{next};"\
6130 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6131 " {if(hide[section]) next};"\
6132 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6133 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6134 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6135 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6136 " ' prfx=^$ac_symprfx"
6137 else
6138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6139 fi
6140
6141 # Check to see that the pipe works correctly.
6142 pipe_works=no
6143
6144 rm -f conftest*
6145 cat > conftest.$ac_ext <<_LT_EOF
6146 #ifdef __cplusplus
6147 extern "C" {
6148 #endif
6149 char nm_test_var;
6150 void nm_test_func(void);
6151 void nm_test_func(void){}
6152 #ifdef __cplusplus
6153 }
6154 #endif
6155 int main(){nm_test_var='a';nm_test_func();return(0);}
6156 _LT_EOF
6157
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; then
6163 # Now try to grab the symbols.
6164 nlist=conftest.nm
6165 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6166 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && test -s "$nlist"; then
6170 # Try sorting and uniquifying the output.
6171 if sort "$nlist" | uniq > "$nlist"T; then
6172 mv -f "$nlist"T "$nlist"
6173 else
6174 rm -f "$nlist"T
6175 fi
6176
6177 # Make sure that we snagged all the symbols we need.
6178 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6179 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6180 cat <<_LT_EOF > conftest.$ac_ext
6181 #ifdef __cplusplus
6182 extern "C" {
6183 #endif
6184
6185 _LT_EOF
6186 # Now generate the symbol file.
6187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6188
6189 cat <<_LT_EOF >> conftest.$ac_ext
6190
6191 /* The mapping between symbol names and symbols. */
6192 const struct {
6193 const char *name;
6194 void *address;
6195 }
6196 lt__PROGRAM__LTX_preloaded_symbols[] =
6197 {
6198 { "@PROGRAM@", (void *) 0 },
6199 _LT_EOF
6200 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6201 cat <<\_LT_EOF >> conftest.$ac_ext
6202 {0, (void *) 0}
6203 };
6204
6205 /* This works around a problem in FreeBSD linker */
6206 #ifdef FREEBSD_WORKAROUND
6207 static const void *lt_preloaded_setup() {
6208 return lt__PROGRAM__LTX_preloaded_symbols;
6209 }
6210 #endif
6211
6212 #ifdef __cplusplus
6213 }
6214 #endif
6215 _LT_EOF
6216 # Now try linking the two files.
6217 mv conftest.$ac_objext conftstm.$ac_objext
6218 lt_save_LIBS="$LIBS"
6219 lt_save_CFLAGS="$CFLAGS"
6220 LIBS="conftstm.$ac_objext"
6221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6223 (eval $ac_link) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6227 pipe_works=yes
6228 fi
6229 LIBS="$lt_save_LIBS"
6230 CFLAGS="$lt_save_CFLAGS"
6231 else
6232 echo "cannot find nm_test_func in $nlist" >&5
6233 fi
6234 else
6235 echo "cannot find nm_test_var in $nlist" >&5
6236 fi
6237 else
6238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6239 fi
6240 else
6241 echo "$progname: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 fi
6244 rm -f conftest* conftst*
6245
6246 # Do not use the global_symbol_pipe unless it works.
6247 if test "$pipe_works" = yes; then
6248 break
6249 else
6250 lt_cv_sys_global_symbol_pipe=
6251 fi
6252 done
6253
6254 fi
6255
6256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6257 lt_cv_sys_global_symbol_to_cdecl=
6258 fi
6259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6260 echo "$as_me:$LINENO: result: failed" >&5
6261 echo "${ECHO_T}failed" >&6
6262 else
6263 echo "$as_me:$LINENO: result: ok" >&5
6264 echo "${ECHO_T}ok" >&6
6265 fi
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6284 if test "${enable_libtool_lock+set}" = set; then
6285 enableval="$enable_libtool_lock"
6286
6287 fi;
6288 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6289
6290 # Some flags need to be propagated to the compiler or linker for good
6291 # libtool support.
6292 case $host in
6293 ia64-*-hpux*)
6294 # Find out which ABI we are using.
6295 echo 'int i;' > conftest.$ac_ext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; then
6301 case `/usr/bin/file conftest.$ac_objext` in
6302 *ELF-32*)
6303 HPUX_IA64_MODE="32"
6304 ;;
6305 *ELF-64*)
6306 HPUX_IA64_MODE="64"
6307 ;;
6308 esac
6309 fi
6310 rm -rf conftest*
6311 ;;
6312 *-*-irix6*)
6313 # Find out which ABI we are using.
6314 echo '#line 6314 "configure"' > conftest.$ac_ext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316 (eval $ac_compile) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; then
6320 if test "$lt_cv_prog_gnu_ld" = yes; then
6321 case `/usr/bin/file conftest.$ac_objext` in
6322 *32-bit*)
6323 LD="${LD-ld} -melf32bsmip"
6324 ;;
6325 *N32*)
6326 LD="${LD-ld} -melf32bmipn32"
6327 ;;
6328 *64-bit*)
6329 LD="${LD-ld} -melf64bmip"
6330 ;;
6331 esac
6332 else
6333 case `/usr/bin/file conftest.$ac_objext` in
6334 *32-bit*)
6335 LD="${LD-ld} -32"
6336 ;;
6337 *N32*)
6338 LD="${LD-ld} -n32"
6339 ;;
6340 *64-bit*)
6341 LD="${LD-ld} -64"
6342 ;;
6343 esac
6344 fi
6345 fi
6346 rm -rf conftest*
6347 ;;
6348
6349 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6350 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6351 # Find out which ABI we are using.
6352 echo 'int i;' > conftest.$ac_ext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; then
6358 case `/usr/bin/file conftest.o` in
6359 *32-bit*)
6360 case $host in
6361 x86_64-*kfreebsd*-gnu)
6362 LD="${LD-ld} -m elf_i386_fbsd"
6363 ;;
6364 x86_64-*linux*)
6365 LD="${LD-ld} -m elf_i386"
6366 ;;
6367 ppc64-*linux*|powerpc64-*linux*)
6368 LD="${LD-ld} -m elf32ppclinux"
6369 ;;
6370 s390x-*linux*)
6371 LD="${LD-ld} -m elf_s390"
6372 ;;
6373 sparc64-*linux*)
6374 LD="${LD-ld} -m elf32_sparc"
6375 ;;
6376 esac
6377 ;;
6378 *64-bit*)
6379 case $host in
6380 x86_64-*kfreebsd*-gnu)
6381 LD="${LD-ld} -m elf_x86_64_fbsd"
6382 ;;
6383 x86_64-*linux*)
6384 LD="${LD-ld} -m elf_x86_64"
6385 ;;
6386 ppc*-*linux*|powerpc*-*linux*)
6387 LD="${LD-ld} -m elf64ppc"
6388 ;;
6389 s390*-*linux*|s390*-*tpf*)
6390 LD="${LD-ld} -m elf64_s390"
6391 ;;
6392 sparc*-*linux*)
6393 LD="${LD-ld} -m elf64_sparc"
6394 ;;
6395 esac
6396 ;;
6397 esac
6398 fi
6399 rm -rf conftest*
6400 ;;
6401
6402 *-*-sco3.2v5*)
6403 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6404 SAVE_CFLAGS="$CFLAGS"
6405 CFLAGS="$CFLAGS -belf"
6406 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6407 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6408 if test "${lt_cv_cc_needs_belf+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 ac_ext=c
6412 ac_cpp='$CPP $CPPFLAGS'
6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423
6424 int
6425 main ()
6426 {
6427
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 lt_cv_cc_needs_belf=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 lt_cv_cc_needs_belf=no
6460 fi
6461 rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6463 ac_ext=c
6464 ac_cpp='$CPP $CPPFLAGS'
6465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6468
6469 fi
6470 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6471 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6474 CFLAGS="$SAVE_CFLAGS"
6475 fi
6476 ;;
6477 sparc*-*solaris*)
6478 # Find out which ABI we are using.
6479 echo 'int i;' > conftest.$ac_ext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; then
6485 case `/usr/bin/file conftest.o` in
6486 *64-bit*)
6487 case $lt_cv_prog_gnu_ld in
6488 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6489 *) LD="${LD-ld} -64" ;;
6490 esac
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496 esac
6497
6498 need_locks="$enable_libtool_lock"
6499
6500
6501 for ac_header in dlfcn.h
6502 do
6503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6516
6517 #include <$ac_header>
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest.$ac_objext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 eval "$as_ac_Header=yes"
6542 else
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 eval "$as_ac_Header=no"
6547 fi
6548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6549 fi
6550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6553 cat >>confdefs.h <<_ACEOF
6554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6555 _ACEOF
6556
6557 fi
6558
6559 done
6560
6561
6562
6563 # This can be used to rebuild libtool when needed
6564 LIBTOOL_DEPS="$ltmain"
6565
6566 # Always use our own libtool.
6567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593 test -z "$LN_S" && LN_S="ln -s"
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 if test -n "${ZSH_VERSION+set}" ; then
6609 setopt NO_GLOB_SUBST
6610 fi
6611
6612 echo "$as_me:$LINENO: checking for objdir" >&5
6613 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6614 if test "${lt_cv_objdir+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 rm -f .libs 2>/dev/null
6618 mkdir .libs 2>/dev/null
6619 if test -d .libs; then
6620 lt_cv_objdir=.libs
6621 else
6622 # MS-DOS does not allow filenames that begin with a dot.
6623 lt_cv_objdir=_libs
6624 fi
6625 rmdir .libs 2>/dev/null
6626 fi
6627 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6628 echo "${ECHO_T}$lt_cv_objdir" >&6
6629 objdir=$lt_cv_objdir
6630
6631
6632
6633
6634
6635 cat >>confdefs.h <<_ACEOF
6636 #define LT_OBJDIR "$lt_cv_objdir/"
6637 _ACEOF
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655 case $host_os in
6656 aix3*)
6657 # AIX sometimes has problems with the GCC collect2 program. For some
6658 # reason, if we set the COLLECT_NAMES environment variable, the problems
6659 # vanish in a puff of smoke.
6660 if test "X${COLLECT_NAMES+set}" != Xset; then
6661 COLLECT_NAMES=
6662 export COLLECT_NAMES
6663 fi
6664 ;;
6665 esac
6666
6667 # Sed substitution that helps us do robust quoting. It backslashifies
6668 # metacharacters that are still active within double-quoted strings.
6669 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6670
6671 # Same as above, but do not quote variable references.
6672 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6673
6674 # Sed substitution to delay expansion of an escaped shell variable in a
6675 # double_quote_subst'ed string.
6676 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6677
6678 # Sed substitution to delay expansion of an escaped single quote.
6679 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6680
6681 # Sed substitution to avoid accidental globbing in evaled expressions
6682 no_glob_subst='s/\*/\\\*/g'
6683
6684 # Global variables:
6685 ofile=libtool
6686 can_build_shared=yes
6687
6688 # All known linkers require a `.a' archive for static linking (except MSVC,
6689 # which needs '.lib').
6690 libext=a
6691
6692 with_gnu_ld="$lt_cv_prog_gnu_ld"
6693
6694 old_CC="$CC"
6695 old_CFLAGS="$CFLAGS"
6696
6697 # Set sane defaults for various variables
6698 test -z "$CC" && CC=cc
6699 test -z "$LTCC" && LTCC=$CC
6700 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6701 test -z "$LD" && LD=ld
6702 test -z "$ac_objext" && ac_objext=o
6703
6704 for cc_temp in $compiler""; do
6705 case $cc_temp in
6706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6708 \-*) ;;
6709 *) break;;
6710 esac
6711 done
6712 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6713
6714
6715 # Only perform the check for file, if the check method requires it
6716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6717 case $deplibs_check_method in
6718 file_magic*)
6719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6720 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6721 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6722 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 case $MAGIC_CMD in
6726 [\\/*] | ?:[\\/]*)
6727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6728 ;;
6729 *)
6730 lt_save_MAGIC_CMD="$MAGIC_CMD"
6731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6733 for ac_dir in $ac_dummy; do
6734 IFS="$lt_save_ifs"
6735 test -z "$ac_dir" && ac_dir=.
6736 if test -f $ac_dir/${ac_tool_prefix}file; then
6737 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6738 if test -n "$file_magic_test_file"; then
6739 case $deplibs_check_method in
6740 "file_magic "*)
6741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6744 $EGREP "$file_magic_regex" > /dev/null; then
6745 :
6746 else
6747 cat <<_LT_EOF 1>&2
6748
6749 *** Warning: the command libtool uses to detect shared libraries,
6750 *** $file_magic_cmd, produces output that libtool cannot recognize.
6751 *** The result is that libtool may fail to recognize shared libraries
6752 *** as such. This will affect the creation of libtool libraries that
6753 *** depend on shared libraries, but programs linked with such libtool
6754 *** libraries will work regardless of this problem. Nevertheless, you
6755 *** may want to report the problem to your system manager and/or to
6756 *** bug-libtool@gnu.org
6757
6758 _LT_EOF
6759 fi ;;
6760 esac
6761 fi
6762 break
6763 fi
6764 done
6765 IFS="$lt_save_ifs"
6766 MAGIC_CMD="$lt_save_MAGIC_CMD"
6767 ;;
6768 esac
6769 fi
6770
6771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6772 if test -n "$MAGIC_CMD"; then
6773 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6774 echo "${ECHO_T}$MAGIC_CMD" >&6
6775 else
6776 echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6
6778 fi
6779
6780
6781
6782
6783
6784 if test -z "$lt_cv_path_MAGIC_CMD"; then
6785 if test -n "$ac_tool_prefix"; then
6786 echo "$as_me:$LINENO: checking for file" >&5
6787 echo $ECHO_N "checking for file... $ECHO_C" >&6
6788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 case $MAGIC_CMD in
6792 [\\/*] | ?:[\\/]*)
6793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6794 ;;
6795 *)
6796 lt_save_MAGIC_CMD="$MAGIC_CMD"
6797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6799 for ac_dir in $ac_dummy; do
6800 IFS="$lt_save_ifs"
6801 test -z "$ac_dir" && ac_dir=.
6802 if test -f $ac_dir/file; then
6803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6804 if test -n "$file_magic_test_file"; then
6805 case $deplibs_check_method in
6806 "file_magic "*)
6807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6810 $EGREP "$file_magic_regex" > /dev/null; then
6811 :
6812 else
6813 cat <<_LT_EOF 1>&2
6814
6815 *** Warning: the command libtool uses to detect shared libraries,
6816 *** $file_magic_cmd, produces output that libtool cannot recognize.
6817 *** The result is that libtool may fail to recognize shared libraries
6818 *** as such. This will affect the creation of libtool libraries that
6819 *** depend on shared libraries, but programs linked with such libtool
6820 *** libraries will work regardless of this problem. Nevertheless, you
6821 *** may want to report the problem to your system manager and/or to
6822 *** bug-libtool@gnu.org
6823
6824 _LT_EOF
6825 fi ;;
6826 esac
6827 fi
6828 break
6829 fi
6830 done
6831 IFS="$lt_save_ifs"
6832 MAGIC_CMD="$lt_save_MAGIC_CMD"
6833 ;;
6834 esac
6835 fi
6836
6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838 if test -n "$MAGIC_CMD"; then
6839 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6840 echo "${ECHO_T}$MAGIC_CMD" >&6
6841 else
6842 echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6844 fi
6845
6846
6847 else
6848 MAGIC_CMD=:
6849 fi
6850 fi
6851
6852 fi
6853 ;;
6854 esac
6855
6856 # Use C for the default configuration in the libtool script
6857
6858 lt_save_CC="$CC"
6859 ac_ext=c
6860 ac_cpp='$CPP $CPPFLAGS'
6861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6864
6865
6866 # Source file extension for C test sources.
6867 ac_ext=c
6868
6869 # Object file extension for compiled C test sources.
6870 objext=o
6871 objext=$objext
6872
6873 # Code to be used in simple compile tests
6874 lt_simple_compile_test_code="int some_variable = 0;"
6875
6876 # Code to be used in simple link tests
6877 lt_simple_link_test_code='int main(){return(0);}'
6878
6879
6880
6881
6882
6883
6884
6885 # If no C compiler was specified, use CC.
6886 LTCC=${LTCC-"$CC"}
6887
6888 # If no C compiler flags were specified, use CFLAGS.
6889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6890
6891 # Allow CC to be a program name with arguments.
6892 compiler=$CC
6893
6894 # Save the default compiler, since it gets overwritten when the other
6895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6896 compiler_DEFAULT=$CC
6897
6898 # save warnings/boilerplate of simple test code
6899 ac_outfile=conftest.$ac_objext
6900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6902 _lt_compiler_boilerplate=`cat conftest.err`
6903 $RM conftest*
6904
6905 ac_outfile=conftest.$ac_objext
6906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6908 _lt_linker_boilerplate=`cat conftest.err`
6909 $RM conftest*
6910
6911
6912 ## CAVEAT EMPTOR:
6913 ## There is no encapsulation within the following macros, do not change
6914 ## the running order or otherwise move them around unless you know exactly
6915 ## what you are doing...
6916 if test -n "$compiler"; then
6917
6918 lt_prog_compiler_no_builtin_flag=
6919
6920 if test "$GCC" = yes; then
6921 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6922
6923 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6924 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6925 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 lt_cv_prog_compiler_rtti_exceptions=no
6929 ac_outfile=conftest.$ac_objext
6930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6931 lt_compiler_flag="-fno-rtti -fno-exceptions"
6932 # Insert the option either (1) after the last *FLAGS variable, or
6933 # (2) before a word containing "conftest.", or (3) at the end.
6934 # Note that $ac_compile itself does not contain backslashes and begins
6935 # with a dollar sign (not a hyphen), so the echo should work correctly.
6936 # The option is referenced via a variable to avoid confusing sed.
6937 lt_compile=`echo "$ac_compile" | $SED \
6938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940 -e 's:$: $lt_compiler_flag:'`
6941 (eval echo "\"\$as_me:6941: $lt_compile\"" >&5)
6942 (eval "$lt_compile" 2>conftest.err)
6943 ac_status=$?
6944 cat conftest.err >&5
6945 echo "$as_me:6945: \$? = $ac_status" >&5
6946 if (exit $ac_status) && test -s "$ac_outfile"; then
6947 # The compiler can only warn and ignore the option if not recognized
6948 # So say no if there are warnings other than the usual output.
6949 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6952 lt_cv_prog_compiler_rtti_exceptions=yes
6953 fi
6954 fi
6955 $RM conftest*
6956
6957 fi
6958 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6959 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6960
6961 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6962 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6963 else
6964 :
6965 fi
6966
6967 fi
6968
6969
6970
6971
6972
6973
6974 lt_prog_compiler_wl=
6975 lt_prog_compiler_pic=
6976 lt_prog_compiler_static=
6977
6978 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6979 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6980
6981 if test "$GCC" = yes; then
6982 lt_prog_compiler_wl='-Wl,'
6983 lt_prog_compiler_static='-static'
6984
6985 case $host_os in
6986 aix*)
6987 # All AIX code is PIC.
6988 if test "$host_cpu" = ia64; then
6989 # AIX 5 now supports IA64 processor
6990 lt_prog_compiler_static='-Bstatic'
6991 fi
6992 ;;
6993
6994 amigaos*)
6995 if test "$host_cpu" = m68k; then
6996 # FIXME: we need at least 68020 code to build shared libraries, but
6997 # adding the `-m68020' flag to GCC prevents building anything better,
6998 # like `-m68040'.
6999 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7000 fi
7001 ;;
7002
7003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7004 # PIC is the default for these OSes.
7005 ;;
7006
7007 mingw* | cygwin* | pw32* | os2*)
7008 # This hack is so that the source file can tell whether it is being
7009 # built for inclusion in a dll (and should export symbols for example).
7010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7011 # (--disable-auto-import) libraries
7012 lt_prog_compiler_pic='-DDLL_EXPORT'
7013 ;;
7014
7015 darwin* | rhapsody*)
7016 # PIC is the default on this platform
7017 # Common symbols not allowed in MH_DYLIB files
7018 lt_prog_compiler_pic='-fno-common'
7019 ;;
7020
7021 hpux*)
7022 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7023 # not for PA HP-UX.
7024 case $host_cpu in
7025 hppa*64*|ia64*)
7026 # +Z the default
7027 ;;
7028 *)
7029 lt_prog_compiler_pic='-fPIC'
7030 ;;
7031 esac
7032 ;;
7033
7034 interix[3-9]*)
7035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7036 # Instead, we relocate shared libraries at runtime.
7037 ;;
7038
7039 msdosdjgpp*)
7040 # Just because we use GCC doesn't mean we suddenly get shared libraries
7041 # on systems that don't support them.
7042 lt_prog_compiler_can_build_shared=no
7043 enable_shared=no
7044 ;;
7045
7046 *nto* | *qnx*)
7047 # QNX uses GNU C++, but need to define -shared option too, otherwise
7048 # it will coredump.
7049 lt_prog_compiler_pic='-fPIC -shared'
7050 ;;
7051
7052 sysv4*MP*)
7053 if test -d /usr/nec; then
7054 lt_prog_compiler_pic=-Kconform_pic
7055 fi
7056 ;;
7057
7058 *)
7059 lt_prog_compiler_pic='-fPIC'
7060 ;;
7061 esac
7062 else
7063 # PORTME Check for flag to pass linker flags through the system compiler.
7064 case $host_os in
7065 aix*)
7066 lt_prog_compiler_wl='-Wl,'
7067 if test "$host_cpu" = ia64; then
7068 # AIX 5 now supports IA64 processor
7069 lt_prog_compiler_static='-Bstatic'
7070 else
7071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7072 fi
7073 ;;
7074 darwin*)
7075 # PIC is the default on this platform
7076 # Common symbols not allowed in MH_DYLIB files
7077 case $cc_basename in
7078 xlc*)
7079 lt_prog_compiler_pic='-qnocommon'
7080 lt_prog_compiler_wl='-Wl,'
7081 ;;
7082 esac
7083 ;;
7084
7085 mingw* | cygwin* | pw32* | os2*)
7086 # This hack is so that the source file can tell whether it is being
7087 # built for inclusion in a dll (and should export symbols for example).
7088 lt_prog_compiler_pic='-DDLL_EXPORT'
7089 ;;
7090
7091 hpux9* | hpux10* | hpux11*)
7092 lt_prog_compiler_wl='-Wl,'
7093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7094 # not for PA HP-UX.
7095 case $host_cpu in
7096 hppa*64*|ia64*)
7097 # +Z the default
7098 ;;
7099 *)
7100 lt_prog_compiler_pic='+Z'
7101 ;;
7102 esac
7103 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7104 lt_prog_compiler_static='${wl}-a ${wl}archive'
7105 ;;
7106
7107 irix5* | irix6* | nonstopux*)
7108 lt_prog_compiler_wl='-Wl,'
7109 # PIC (with -KPIC) is the default.
7110 lt_prog_compiler_static='-non_shared'
7111 ;;
7112
7113 linux* | k*bsd*-gnu)
7114 case $cc_basename in
7115 icc* | ecc*)
7116 lt_prog_compiler_wl='-Wl,'
7117 lt_prog_compiler_pic='-KPIC'
7118 lt_prog_compiler_static='-static'
7119 ;;
7120 pgcc* | pgf77* | pgf90* | pgf95*)
7121 # Portland Group compilers (*not* the Pentium gcc compiler,
7122 # which looks to be a dead project)
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_pic='-fpic'
7125 lt_prog_compiler_static='-Bstatic'
7126 ;;
7127 ccc*)
7128 lt_prog_compiler_wl='-Wl,'
7129 # All Alpha code is PIC.
7130 lt_prog_compiler_static='-non_shared'
7131 ;;
7132 *)
7133 case `$CC -V 2>&1 | sed 5q` in
7134 *Sun\ C*)
7135 # Sun C 5.9
7136 lt_prog_compiler_pic='-KPIC'
7137 lt_prog_compiler_static='-Bstatic'
7138 lt_prog_compiler_wl='-Wl,'
7139 ;;
7140 *Sun\ F*)
7141 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7142 lt_prog_compiler_pic='-KPIC'
7143 lt_prog_compiler_static='-Bstatic'
7144 lt_prog_compiler_wl=''
7145 ;;
7146 esac
7147 ;;
7148 esac
7149 ;;
7150
7151 newsos6)
7152 lt_prog_compiler_pic='-KPIC'
7153 lt_prog_compiler_static='-Bstatic'
7154 ;;
7155
7156 *nto* | *qnx*)
7157 # QNX uses GNU C++, but need to define -shared option too, otherwise
7158 # it will coredump.
7159 lt_prog_compiler_pic='-fPIC -shared'
7160 ;;
7161
7162 osf3* | osf4* | osf5*)
7163 lt_prog_compiler_wl='-Wl,'
7164 # All OSF/1 code is PIC.
7165 lt_prog_compiler_static='-non_shared'
7166 ;;
7167
7168 rdos*)
7169 lt_prog_compiler_static='-non_shared'
7170 ;;
7171
7172 solaris*)
7173 lt_prog_compiler_pic='-KPIC'
7174 lt_prog_compiler_static='-Bstatic'
7175 case $cc_basename in
7176 f77* | f90* | f95*)
7177 lt_prog_compiler_wl='-Qoption ld ';;
7178 *)
7179 lt_prog_compiler_wl='-Wl,';;
7180 esac
7181 ;;
7182
7183 sunos4*)
7184 lt_prog_compiler_wl='-Qoption ld '
7185 lt_prog_compiler_pic='-PIC'
7186 lt_prog_compiler_static='-Bstatic'
7187 ;;
7188
7189 sysv4 | sysv4.2uw2* | sysv4.3*)
7190 lt_prog_compiler_wl='-Wl,'
7191 lt_prog_compiler_pic='-KPIC'
7192 lt_prog_compiler_static='-Bstatic'
7193 ;;
7194
7195 sysv4*MP*)
7196 if test -d /usr/nec ;then
7197 lt_prog_compiler_pic='-Kconform_pic'
7198 lt_prog_compiler_static='-Bstatic'
7199 fi
7200 ;;
7201
7202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7203 lt_prog_compiler_wl='-Wl,'
7204 lt_prog_compiler_pic='-KPIC'
7205 lt_prog_compiler_static='-Bstatic'
7206 ;;
7207
7208 unicos*)
7209 lt_prog_compiler_wl='-Wl,'
7210 lt_prog_compiler_can_build_shared=no
7211 ;;
7212
7213 uts4*)
7214 lt_prog_compiler_pic='-pic'
7215 lt_prog_compiler_static='-Bstatic'
7216 ;;
7217
7218 *)
7219 lt_prog_compiler_can_build_shared=no
7220 ;;
7221 esac
7222 fi
7223
7224 case $host_os in
7225 # For platforms which do not support PIC, -DPIC is meaningless:
7226 *djgpp*)
7227 lt_prog_compiler_pic=
7228 ;;
7229 *)
7230 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7231 ;;
7232 esac
7233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7234 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7235
7236
7237
7238
7239
7240
7241 #
7242 # Check to make sure the PIC flag actually works.
7243 #
7244 if test -n "$lt_prog_compiler_pic"; then
7245 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7246 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7247 if test "${lt_prog_compiler_pic_works+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 lt_prog_compiler_pic_works=no
7251 ac_outfile=conftest.$ac_objext
7252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7253 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7254 # Insert the option either (1) after the last *FLAGS variable, or
7255 # (2) before a word containing "conftest.", or (3) at the end.
7256 # Note that $ac_compile itself does not contain backslashes and begins
7257 # with a dollar sign (not a hyphen), so the echo should work correctly.
7258 # The option is referenced via a variable to avoid confusing sed.
7259 lt_compile=`echo "$ac_compile" | $SED \
7260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7262 -e 's:$: $lt_compiler_flag:'`
7263 (eval echo "\"\$as_me:7263: $lt_compile\"" >&5)
7264 (eval "$lt_compile" 2>conftest.err)
7265 ac_status=$?
7266 cat conftest.err >&5
7267 echo "$as_me:7267: \$? = $ac_status" >&5
7268 if (exit $ac_status) && test -s "$ac_outfile"; then
7269 # The compiler can only warn and ignore the option if not recognized
7270 # So say no if there are warnings other than the usual output.
7271 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7274 lt_prog_compiler_pic_works=yes
7275 fi
7276 fi
7277 $RM conftest*
7278
7279 fi
7280 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7281 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7282
7283 if test x"$lt_prog_compiler_pic_works" = xyes; then
7284 case $lt_prog_compiler_pic in
7285 "" | " "*) ;;
7286 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7287 esac
7288 else
7289 lt_prog_compiler_pic=
7290 lt_prog_compiler_can_build_shared=no
7291 fi
7292
7293 fi
7294
7295
7296
7297
7298
7299
7300 #
7301 # Check to make sure the static flag actually works.
7302 #
7303 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7304 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7305 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7306 if test "${lt_prog_compiler_static_works+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309 lt_prog_compiler_static_works=no
7310 save_LDFLAGS="$LDFLAGS"
7311 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7312 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7314 # The linker can only warn and ignore the option if not recognized
7315 # So say no if there are warnings
7316 if test -s conftest.err; then
7317 # Append any errors to the config.log.
7318 cat conftest.err 1>&5
7319 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7321 if diff conftest.exp conftest.er2 >/dev/null; then
7322 lt_prog_compiler_static_works=yes
7323 fi
7324 else
7325 lt_prog_compiler_static_works=yes
7326 fi
7327 fi
7328 $RM conftest*
7329 LDFLAGS="$save_LDFLAGS"
7330
7331 fi
7332 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7333 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7334
7335 if test x"$lt_prog_compiler_static_works" = xyes; then
7336 :
7337 else
7338 lt_prog_compiler_static=
7339 fi
7340
7341
7342
7343
7344
7345
7346
7347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7349 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 lt_cv_prog_compiler_c_o=no
7353 $RM -r conftest 2>/dev/null
7354 mkdir conftest
7355 cd conftest
7356 mkdir out
7357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7358
7359 lt_compiler_flag="-o out/conftest2.$ac_objext"
7360 # Insert the option either (1) after the last *FLAGS variable, or
7361 # (2) before a word containing "conftest.", or (3) at the end.
7362 # Note that $ac_compile itself does not contain backslashes and begins
7363 # with a dollar sign (not a hyphen), so the echo should work correctly.
7364 lt_compile=`echo "$ac_compile" | $SED \
7365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7367 -e 's:$: $lt_compiler_flag:'`
7368 (eval echo "\"\$as_me:7368: $lt_compile\"" >&5)
7369 (eval "$lt_compile" 2>out/conftest.err)
7370 ac_status=$?
7371 cat out/conftest.err >&5
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7374 then
7375 # The compiler can only warn and ignore the option if not recognized
7376 # So say no if there are warnings
7377 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7380 lt_cv_prog_compiler_c_o=yes
7381 fi
7382 fi
7383 chmod u+w . 2>&5
7384 $RM conftest*
7385 # SGI C++ compiler will create directory out/ii_files/ for
7386 # template instantiation
7387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7388 $RM out/* && rmdir out
7389 cd ..
7390 $RM -r conftest
7391 $RM conftest*
7392
7393 fi
7394 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7395 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7396
7397
7398
7399
7400
7401
7402 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7403 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7404 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 lt_cv_prog_compiler_c_o=no
7408 $RM -r conftest 2>/dev/null
7409 mkdir conftest
7410 cd conftest
7411 mkdir out
7412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7413
7414 lt_compiler_flag="-o out/conftest2.$ac_objext"
7415 # Insert the option either (1) after the last *FLAGS variable, or
7416 # (2) before a word containing "conftest.", or (3) at the end.
7417 # Note that $ac_compile itself does not contain backslashes and begins
7418 # with a dollar sign (not a hyphen), so the echo should work correctly.
7419 lt_compile=`echo "$ac_compile" | $SED \
7420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7422 -e 's:$: $lt_compiler_flag:'`
7423 (eval echo "\"\$as_me:7423: $lt_compile\"" >&5)
7424 (eval "$lt_compile" 2>out/conftest.err)
7425 ac_status=$?
7426 cat out/conftest.err >&5
7427 echo "$as_me:7427: \$? = $ac_status" >&5
7428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7429 then
7430 # The compiler can only warn and ignore the option if not recognized
7431 # So say no if there are warnings
7432 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7435 lt_cv_prog_compiler_c_o=yes
7436 fi
7437 fi
7438 chmod u+w . 2>&5
7439 $RM conftest*
7440 # SGI C++ compiler will create directory out/ii_files/ for
7441 # template instantiation
7442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7443 $RM out/* && rmdir out
7444 cd ..
7445 $RM -r conftest
7446 $RM conftest*
7447
7448 fi
7449 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7450 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7451
7452
7453
7454
7455 hard_links="nottested"
7456 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7457 # do not overwrite the value of need_locks provided by the user
7458 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7459 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7460 hard_links=yes
7461 $RM conftest*
7462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7463 touch conftest.a
7464 ln conftest.a conftest.b 2>&5 || hard_links=no
7465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7466 echo "$as_me:$LINENO: result: $hard_links" >&5
7467 echo "${ECHO_T}$hard_links" >&6
7468 if test "$hard_links" = no; then
7469 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7470 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7471 need_locks=warn
7472 fi
7473 else
7474 need_locks=no
7475 fi
7476
7477
7478
7479
7480
7481
7482 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7484
7485 runpath_var=
7486 allow_undefined_flag=
7487 always_export_symbols=no
7488 archive_cmds=
7489 archive_expsym_cmds=
7490 compiler_needs_object=no
7491 enable_shared_with_static_runtimes=no
7492 export_dynamic_flag_spec=
7493 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7494 hardcode_automatic=no
7495 hardcode_direct=no
7496 hardcode_direct_absolute=no
7497 hardcode_libdir_flag_spec=
7498 hardcode_libdir_flag_spec_ld=
7499 hardcode_libdir_separator=
7500 hardcode_minus_L=no
7501 hardcode_shlibpath_var=unsupported
7502 inherit_rpath=no
7503 link_all_deplibs=unknown
7504 module_cmds=
7505 module_expsym_cmds=
7506 old_archive_from_new_cmds=
7507 old_archive_from_expsyms_cmds=
7508 thread_safe_flag_spec=
7509 whole_archive_flag_spec=
7510 # include_expsyms should be a list of space-separated symbols to be *always*
7511 # included in the symbol list
7512 include_expsyms=
7513 # exclude_expsyms can be an extended regexp of symbols to exclude
7514 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7515 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7516 # as well as any symbol that contains `d'.
7517 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7518 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7519 # platforms (ab)use it in PIC code, but their linkers get confused if
7520 # the symbol is explicitly referenced. Since portable code cannot
7521 # rely on this symbol name, it's probably fine to never include it in
7522 # preloaded symbol tables.
7523 extract_expsyms_cmds=
7524
7525 case $host_os in
7526 cygwin* | mingw* | pw32*)
7527 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7528 # When not using gcc, we currently assume that we are using
7529 # Microsoft Visual C++.
7530 if test "$GCC" != yes; then
7531 with_gnu_ld=no
7532 fi
7533 ;;
7534 interix*)
7535 # we just hope/assume this is gcc and not c89 (= MSVC++)
7536 with_gnu_ld=yes
7537 ;;
7538 openbsd*)
7539 with_gnu_ld=no
7540 ;;
7541 esac
7542
7543 ld_shlibs=yes
7544 if test "$with_gnu_ld" = yes; then
7545 # If archive_cmds runs LD, not CC, wlarc should be empty
7546 wlarc='${wl}'
7547
7548 # Set some defaults for GNU ld with shared library support. These
7549 # are reset later if shared libraries are not supported. Putting them
7550 # here allows them to be overridden if necessary.
7551 runpath_var=LD_RUN_PATH
7552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7553 export_dynamic_flag_spec='${wl}--export-dynamic'
7554 # ancient GNU ld didn't support --whole-archive et. al.
7555 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7556 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7557 else
7558 whole_archive_flag_spec=
7559 fi
7560 supports_anon_versioning=no
7561 case `$LD -v 2>&1` in
7562 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7563 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7564 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7565 *\ 2.11.*) ;; # other 2.11 versions
7566 *) supports_anon_versioning=yes ;;
7567 esac
7568
7569 # See if GNU ld supports shared libraries.
7570 case $host_os in
7571 aix[3-9]*)
7572 # On AIX/PPC, the GNU linker is very broken
7573 if test "$host_cpu" != ia64; then
7574 ld_shlibs=no
7575 cat <<_LT_EOF 1>&2
7576
7577 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7578 *** to be unable to reliably create shared libraries on AIX.
7579 *** Therefore, libtool is disabling shared libraries support. If you
7580 *** really care for shared libraries, you may want to modify your PATH
7581 *** so that a non-GNU linker is found, and then restart.
7582
7583 _LT_EOF
7584 fi
7585 ;;
7586
7587 amigaos*)
7588 if test "$host_cpu" = m68k; then
7589 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)'
7590 hardcode_libdir_flag_spec='-L$libdir'
7591 hardcode_minus_L=yes
7592 fi
7593
7594 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7595 # that the semantics of dynamic libraries on AmigaOS, at least up
7596 # to version 4, is to share data among multiple programs linked
7597 # with the same dynamic library. Since this doesn't match the
7598 # behavior of shared libraries on other platforms, we can't use
7599 # them.
7600 ld_shlibs=no
7601 ;;
7602
7603 beos*)
7604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7605 allow_undefined_flag=unsupported
7606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7607 # support --undefined. This deserves some investigation. FIXME
7608 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7609 else
7610 ld_shlibs=no
7611 fi
7612 ;;
7613
7614 cygwin* | mingw* | pw32*)
7615 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7616 # as there is no search path for DLLs.
7617 hardcode_libdir_flag_spec='-L$libdir'
7618 allow_undefined_flag=unsupported
7619 always_export_symbols=no
7620 enable_shared_with_static_runtimes=yes
7621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7622
7623 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7625 # If the export-symbols file already is a .def file (1st line
7626 # is EXPORTS), use it as is; otherwise, prepend...
7627 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7628 cp $export_symbols $output_objdir/$soname.def;
7629 else
7630 echo EXPORTS > $output_objdir/$soname.def;
7631 cat $export_symbols >> $output_objdir/$soname.def;
7632 fi~
7633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7634 else
7635 ld_shlibs=no
7636 fi
7637 ;;
7638
7639 interix[3-9]*)
7640 hardcode_direct=no
7641 hardcode_shlibpath_var=no
7642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7643 export_dynamic_flag_spec='${wl}-E'
7644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7645 # Instead, shared libraries are loaded at an image base (0x10000000 by
7646 # default) and relocated if they conflict, which is a slow very memory
7647 # consuming and fragmenting process. To avoid this, we pick a random,
7648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7649 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7650 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7651 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'
7652 ;;
7653
7654 gnu* | linux* | tpf* | k*bsd*-gnu)
7655 tmp_diet=no
7656 if test "$host_os" = linux-dietlibc; then
7657 case $cc_basename in
7658 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7659 esac
7660 fi
7661 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7662 && test "$tmp_diet" = no
7663 then
7664 tmp_addflag=
7665 case $cc_basename,$host_cpu in
7666 pgcc*) # Portland Group C compiler
7667 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'
7668 tmp_addflag=' $pic_flag'
7669 ;;
7670 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7671 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'
7672 tmp_addflag=' $pic_flag -Mnomain' ;;
7673 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7674 tmp_addflag=' -i_dynamic' ;;
7675 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7676 tmp_addflag=' -i_dynamic -nofor_main' ;;
7677 ifc* | ifort*) # Intel Fortran compiler
7678 tmp_addflag=' -nofor_main' ;;
7679 esac
7680 case `$CC -V 2>&1 | sed 5q` in
7681 *Sun\ C*) # Sun C 5.9
7682 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'
7683 compiler_needs_object=yes
7684 tmp_sharedflag='-G' ;;
7685 *Sun\ F*) # Sun Fortran 8.3
7686 tmp_sharedflag='-G' ;;
7687 *)
7688 tmp_sharedflag='-shared' ;;
7689 esac
7690 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7691
7692 if test "x$supports_anon_versioning" = xyes; then
7693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7695 echo "local: *; };" >> $output_objdir/$libname.ver~
7696 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7697 fi
7698 else
7699 ld_shlibs=no
7700 fi
7701 ;;
7702
7703 netbsd*)
7704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7706 wlarc=
7707 else
7708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7710 fi
7711 ;;
7712
7713 solaris*)
7714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7715 ld_shlibs=no
7716 cat <<_LT_EOF 1>&2
7717
7718 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7719 *** create shared libraries on Solaris systems. Therefore, libtool
7720 *** is disabling shared libraries support. We urge you to upgrade GNU
7721 *** binutils to release 2.9.1 or newer. Another option is to modify
7722 *** your PATH or compiler configuration so that the native linker is
7723 *** used, and then restart.
7724
7725 _LT_EOF
7726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7729 else
7730 ld_shlibs=no
7731 fi
7732 ;;
7733
7734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7735 case `$LD -v 2>&1` in
7736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7737 ld_shlibs=no
7738 cat <<_LT_EOF 1>&2
7739
7740 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7741 *** reliably create shared libraries on SCO systems. Therefore, libtool
7742 *** is disabling shared libraries support. We urge you to upgrade GNU
7743 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7744 *** your PATH or compiler configuration so that the native linker is
7745 *** used, and then restart.
7746
7747 _LT_EOF
7748 ;;
7749 *)
7750 # For security reasons, it is highly recommended that you always
7751 # use absolute paths for naming shared libraries, and exclude the
7752 # DT_RUNPATH tag from executables and libraries. But doing so
7753 # requires that you compile everything twice, which is a pain.
7754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7758 else
7759 ld_shlibs=no
7760 fi
7761 ;;
7762 esac
7763 ;;
7764
7765 sunos4*)
7766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7767 wlarc=
7768 hardcode_direct=yes
7769 hardcode_shlibpath_var=no
7770 ;;
7771
7772 *)
7773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7776 else
7777 ld_shlibs=no
7778 fi
7779 ;;
7780 esac
7781
7782 if test "$ld_shlibs" = no; then
7783 runpath_var=
7784 hardcode_libdir_flag_spec=
7785 export_dynamic_flag_spec=
7786 whole_archive_flag_spec=
7787 fi
7788 else
7789 # PORTME fill in a description of your system's linker (not GNU ld)
7790 case $host_os in
7791 aix3*)
7792 allow_undefined_flag=unsupported
7793 always_export_symbols=yes
7794 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'
7795 # Note: this linker hardcodes the directories in LIBPATH if there
7796 # are no directories specified by -L.
7797 hardcode_minus_L=yes
7798 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7799 # Neither direct hardcoding nor static linking is supported with a
7800 # broken collect2.
7801 hardcode_direct=unsupported
7802 fi
7803 ;;
7804
7805 aix[4-9]*)
7806 if test "$host_cpu" = ia64; then
7807 # On IA64, the linker does run time linking by default, so we don't
7808 # have to do anything special.
7809 aix_use_runtimelinking=no
7810 exp_sym_flag='-Bexport'
7811 no_entry_flag=""
7812 else
7813 # If we're using GNU nm, then we don't want the "-C" option.
7814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7815 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7816 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'
7817 else
7818 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'
7819 fi
7820 aix_use_runtimelinking=no
7821
7822 # Test if we are trying to use run time linking or normal
7823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7824 # need to do runtime linking.
7825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7826 for ld_flag in $LDFLAGS; do
7827 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7828 aix_use_runtimelinking=yes
7829 break
7830 fi
7831 done
7832 ;;
7833 esac
7834
7835 exp_sym_flag='-bexport'
7836 no_entry_flag='-bnoentry'
7837 fi
7838
7839 # When large executables or shared objects are built, AIX ld can
7840 # have problems creating the table of contents. If linking a library
7841 # or program results in "error TOC overflow" add -mminimal-toc to
7842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7844
7845 archive_cmds=''
7846 hardcode_direct=yes
7847 hardcode_direct_absolute=yes
7848 hardcode_libdir_separator=':'
7849 link_all_deplibs=yes
7850 file_list_spec='${wl}-f,'
7851
7852 if test "$GCC" = yes; then
7853 case $host_os in aix4.[012]|aix4.[012].*)
7854 # We only want to do this on AIX 4.2 and lower, the check
7855 # below for broken collect2 doesn't work under 4.3+
7856 collect2name=`${CC} -print-prog-name=collect2`
7857 if test -f "$collect2name" &&
7858 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7859 then
7860 # We have reworked collect2
7861 :
7862 else
7863 # We have old collect2
7864 hardcode_direct=unsupported
7865 # It fails to find uninstalled libraries when the uninstalled
7866 # path is not listed in the libpath. Setting hardcode_minus_L
7867 # to unsupported forces relinking
7868 hardcode_minus_L=yes
7869 hardcode_libdir_flag_spec='-L$libdir'
7870 hardcode_libdir_separator=
7871 fi
7872 ;;
7873 esac
7874 shared_flag='-shared'
7875 if test "$aix_use_runtimelinking" = yes; then
7876 shared_flag="$shared_flag "'${wl}-G'
7877 fi
7878 else
7879 # not using gcc
7880 if test "$host_cpu" = ia64; then
7881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7882 # chokes on -Wl,-G. The following line is correct:
7883 shared_flag='-G'
7884 else
7885 if test "$aix_use_runtimelinking" = yes; then
7886 shared_flag='${wl}-G'
7887 else
7888 shared_flag='${wl}-bM:SRE'
7889 fi
7890 fi
7891 fi
7892
7893 # It seems that -bexpall does not export symbols beginning with
7894 # underscore (_), so it is better to generate a list of symbols to export.
7895 always_export_symbols=yes
7896 if test "$aix_use_runtimelinking" = yes; then
7897 # Warning - without using the other runtime loading flags (-brtl),
7898 # -berok will link without error, but may produce a broken library.
7899 allow_undefined_flag='-berok'
7900 # Determine the default libpath from the value encoded in an
7901 # empty executable.
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h. */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7908
7909 int
7910 main ()
7911 {
7912
7913 ;
7914 return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939
7940 lt_aix_libpath_sed='
7941 /Import File Strings/,/^$/ {
7942 /^0/ {
7943 s/^0 *\(.*\)$/\1/
7944 p
7945 }
7946 }'
7947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7948 # Check for a 64-bit object if we didn't find anything.
7949 if test -z "$aix_libpath"; then
7950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7951 fi
7952 else
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 fi
7957 rm -f conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7960
7961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7962 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"
7963 else
7964 if test "$host_cpu" = ia64; then
7965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7966 allow_undefined_flag="-z nodefs"
7967 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"
7968 else
7969 # Determine the default libpath from the value encoded in an
7970 # empty executable.
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h. */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7977
7978 int
7979 main ()
7980 {
7981
7982 ;
7983 return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest$ac_exeext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008
8009 lt_aix_libpath_sed='
8010 /Import File Strings/,/^$/ {
8011 /^0/ {
8012 s/^0 *\(.*\)$/\1/
8013 p
8014 }
8015 }'
8016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8017 # Check for a 64-bit object if we didn't find anything.
8018 if test -z "$aix_libpath"; then
8019 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8020 fi
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 fi
8026 rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8029
8030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8031 # Warning - without using the other run time loading flags,
8032 # -berok will link without error, but may produce a broken library.
8033 no_undefined_flag=' ${wl}-bernotok'
8034 allow_undefined_flag=' ${wl}-berok'
8035 # Exported symbols can be pulled into shared objects from archives
8036 whole_archive_flag_spec='$convenience'
8037 archive_cmds_need_lc=yes
8038 # This is similar to how AIX traditionally builds its shared libraries.
8039 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'
8040 fi
8041 fi
8042 ;;
8043
8044 amigaos*)
8045 if test "$host_cpu" = m68k; then
8046 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)'
8047 hardcode_libdir_flag_spec='-L$libdir'
8048 hardcode_minus_L=yes
8049 fi
8050 # see comment about different semantics on the GNU ld section
8051 ld_shlibs=no
8052 ;;
8053
8054 bsdi[45]*)
8055 export_dynamic_flag_spec=-rdynamic
8056 ;;
8057
8058 cygwin* | mingw* | pw32*)
8059 # When not using gcc, we currently assume that we are using
8060 # Microsoft Visual C++.
8061 # hardcode_libdir_flag_spec is actually meaningless, as there is
8062 # no search path for DLLs.
8063 hardcode_libdir_flag_spec=' '
8064 allow_undefined_flag=unsupported
8065 # Tell ltmain to make .lib files, not .a files.
8066 libext=lib
8067 # Tell ltmain to make .dll files, not .so files.
8068 shrext_cmds=".dll"
8069 # FIXME: Setting linknames here is a bad hack.
8070 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8071 # The linker will automatically build a .lib file if we build a DLL.
8072 old_archive_from_new_cmds='true'
8073 # FIXME: Should let the user specify the lib program.
8074 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8075 fix_srcfile_path='`cygpath -w "$srcfile"`'
8076 enable_shared_with_static_runtimes=yes
8077 ;;
8078
8079 darwin* | rhapsody*)
8080 case $host_os in
8081 rhapsody* | darwin1.[012])
8082 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8083 ;;
8084 *) # Darwin 1.3 on
8085 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8086 10.[012])
8087 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8088 ;;
8089 10.*)
8090 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8091 ;;
8092 esac
8093 ;;
8094 esac
8095 archive_cmds_need_lc=no
8096 hardcode_direct=no
8097 hardcode_automatic=yes
8098 hardcode_shlibpath_var=unsupported
8099 whole_archive_flag_spec=''
8100 link_all_deplibs=yes
8101 if test "$GCC" = yes ; then
8102 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 lt_cv_apple_cc_single_mod=no
8106 if test -z "${LT_MULTI_MODULE}"; then
8107 # By default we will add the -single_module flag. You can override
8108 # by either setting the environment variable LT_MULTI_MODULE
8109 # non-empty at configure time, or by adding -multi-module to the
8110 # link flags.
8111 echo "int foo(void){return 1;}" > conftest.c
8112 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113 -dynamiclib ${wl}-single_module conftest.c
8114 if test -f libconftest.dylib; then
8115 lt_cv_apple_cc_single_mod=yes
8116 rm libconftest.dylib
8117 fi
8118 rm conftest.$ac_ext
8119 fi
8120 fi
8121
8122 output_verbose_link_cmd=echo
8123 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8124 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8125 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}'
8126 else
8127 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8128 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}'
8129 fi
8130 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8131 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}'
8132 else
8133 case $cc_basename in
8134 xlc*)
8135 output_verbose_link_cmd=echo
8136 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8137 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8139 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}'
8140 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}'
8141 ;;
8142 *)
8143 ld_shlibs=no
8144 ;;
8145 esac
8146 fi
8147 ;;
8148
8149 dgux*)
8150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_libdir_flag_spec='-L$libdir'
8152 hardcode_shlibpath_var=no
8153 ;;
8154
8155 freebsd1*)
8156 ld_shlibs=no
8157 ;;
8158
8159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8160 # support. Future versions do this automatically, but an explicit c++rt0.o
8161 # does not break anything, and helps significantly (at the cost of a little
8162 # extra space).
8163 freebsd2.2*)
8164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8165 hardcode_libdir_flag_spec='-R$libdir'
8166 hardcode_direct=yes
8167 hardcode_shlibpath_var=no
8168 ;;
8169
8170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8171 freebsd2*)
8172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8173 hardcode_direct=yes
8174 hardcode_minus_L=yes
8175 hardcode_shlibpath_var=no
8176 ;;
8177
8178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8179 freebsd* | dragonfly*)
8180 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8181 hardcode_libdir_flag_spec='-R$libdir'
8182 hardcode_direct=yes
8183 hardcode_shlibpath_var=no
8184 ;;
8185
8186 hpux9*)
8187 if test "$GCC" = yes; then
8188 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'
8189 else
8190 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'
8191 fi
8192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8193 hardcode_libdir_separator=:
8194 hardcode_direct=yes
8195
8196 # hardcode_minus_L: Not really in the search PATH,
8197 # but as the default location of the library.
8198 hardcode_minus_L=yes
8199 export_dynamic_flag_spec='${wl}-E'
8200 ;;
8201
8202 hpux10*)
8203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8205 else
8206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8207 fi
8208 if test "$with_gnu_ld" = no; then
8209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8210 hardcode_libdir_flag_spec_ld='+b $libdir'
8211 hardcode_libdir_separator=:
8212 hardcode_direct=yes
8213 hardcode_direct_absolute=yes
8214 export_dynamic_flag_spec='${wl}-E'
8215 # hardcode_minus_L: Not really in the search PATH,
8216 # but as the default location of the library.
8217 hardcode_minus_L=yes
8218 fi
8219 ;;
8220
8221 hpux11*)
8222 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8223 case $host_cpu in
8224 hppa*64*)
8225 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8226 ;;
8227 ia64*)
8228 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8229 ;;
8230 *)
8231 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8232 ;;
8233 esac
8234 else
8235 case $host_cpu in
8236 hppa*64*)
8237 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8238 ;;
8239 ia64*)
8240 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8241 ;;
8242 *)
8243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8244 ;;
8245 esac
8246 fi
8247 if test "$with_gnu_ld" = no; then
8248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8249 hardcode_libdir_separator=:
8250
8251 case $host_cpu in
8252 hppa*64*|ia64*)
8253 hardcode_direct=no
8254 hardcode_shlibpath_var=no
8255 ;;
8256 *)
8257 hardcode_direct=yes
8258 hardcode_direct_absolute=yes
8259 export_dynamic_flag_spec='${wl}-E'
8260
8261 # hardcode_minus_L: Not really in the search PATH,
8262 # but as the default location of the library.
8263 hardcode_minus_L=yes
8264 ;;
8265 esac
8266 fi
8267 ;;
8268
8269 irix5* | irix6* | nonstopux*)
8270 if test "$GCC" = yes; then
8271 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'
8272 # Try to use the -exported_symbol ld option, if it does not
8273 # work, assume that -exports_file does not work either and
8274 # implicitly export all symbols.
8275 save_LDFLAGS="$LDFLAGS"
8276 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8277 cat >conftest.$ac_ext <<_ACEOF
8278 int foo(void) {}
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 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'
8303
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 fi
8309 rm -f conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 LDFLAGS="$save_LDFLAGS"
8312 else
8313 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'
8314 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'
8315 fi
8316 archive_cmds_need_lc='no'
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 hardcode_libdir_separator=:
8319 inherit_rpath=yes
8320 link_all_deplibs=yes
8321 ;;
8322
8323 netbsd*)
8324 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8326 else
8327 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8328 fi
8329 hardcode_libdir_flag_spec='-R$libdir'
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8332 ;;
8333
8334 newsos6)
8335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336 hardcode_direct=yes
8337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338 hardcode_libdir_separator=:
8339 hardcode_shlibpath_var=no
8340 ;;
8341
8342 *nto* | *qnx*)
8343 ;;
8344
8345 openbsd*)
8346 hardcode_direct=yes
8347 hardcode_shlibpath_var=no
8348 hardcode_direct_absolute=yes
8349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8351 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8353 export_dynamic_flag_spec='${wl}-E'
8354 else
8355 case $host_os in
8356 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8358 hardcode_libdir_flag_spec='-R$libdir'
8359 ;;
8360 *)
8361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8363 ;;
8364 esac
8365 fi
8366 ;;
8367
8368 os2*)
8369 hardcode_libdir_flag_spec='-L$libdir'
8370 hardcode_minus_L=yes
8371 allow_undefined_flag=unsupported
8372 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'
8373 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8374 ;;
8375
8376 osf3*)
8377 if test "$GCC" = yes; then
8378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8379 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'
8380 else
8381 allow_undefined_flag=' -expect_unresolved \*'
8382 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'
8383 fi
8384 archive_cmds_need_lc='no'
8385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386 hardcode_libdir_separator=:
8387 ;;
8388
8389 osf4* | osf5*) # as osf3* with the addition of -msym flag
8390 if test "$GCC" = yes; then
8391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8392 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'
8393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8394 else
8395 allow_undefined_flag=' -expect_unresolved \*'
8396 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'
8397 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~
8398 $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'
8399
8400 # Both c and cxx compiler support -rpath directly
8401 hardcode_libdir_flag_spec='-rpath $libdir'
8402 fi
8403 archive_cmds_need_lc='no'
8404 hardcode_libdir_separator=:
8405 ;;
8406
8407 solaris*)
8408 no_undefined_flag=' -z defs'
8409 if test "$GCC" = yes; then
8410 wlarc='${wl}'
8411 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8413 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8414 else
8415 case `$CC -V 2>&1` in
8416 *"Compilers 5.0"*)
8417 wlarc=''
8418 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8419 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8421 ;;
8422 *)
8423 wlarc='${wl}'
8424 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8426 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8427 ;;
8428 esac
8429 fi
8430 hardcode_libdir_flag_spec='-R$libdir'
8431 hardcode_shlibpath_var=no
8432 case $host_os in
8433 solaris2.[0-5] | solaris2.[0-5].*) ;;
8434 *)
8435 # The compiler driver will combine and reorder linker options,
8436 # but understands `-z linker_flag'. GCC discards it without `$wl',
8437 # but is careful enough not to reorder.
8438 # Supported since Solaris 2.6 (maybe 2.5.1?)
8439 if test "$GCC" = yes; then
8440 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8441 else
8442 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8443 fi
8444 ;;
8445 esac
8446 link_all_deplibs=yes
8447 ;;
8448
8449 sunos4*)
8450 if test "x$host_vendor" = xsequent; then
8451 # Use $CC to link under sequent, because it throws in some extra .o
8452 # files that make .init and .fini sections work.
8453 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8454 else
8455 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8456 fi
8457 hardcode_libdir_flag_spec='-L$libdir'
8458 hardcode_direct=yes
8459 hardcode_minus_L=yes
8460 hardcode_shlibpath_var=no
8461 ;;
8462
8463 sysv4)
8464 case $host_vendor in
8465 sni)
8466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_direct=yes # is this really true???
8468 ;;
8469 siemens)
8470 ## LD is ld it makes a PLAMLIB
8471 ## CC just makes a GrossModule.
8472 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8473 reload_cmds='$CC -r -o $output$reload_objs'
8474 hardcode_direct=no
8475 ;;
8476 motorola)
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8479 ;;
8480 esac
8481 runpath_var='LD_RUN_PATH'
8482 hardcode_shlibpath_var=no
8483 ;;
8484
8485 sysv4.3*)
8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487 hardcode_shlibpath_var=no
8488 export_dynamic_flag_spec='-Bexport'
8489 ;;
8490
8491 sysv4*MP*)
8492 if test -d /usr/nec; then
8493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8494 hardcode_shlibpath_var=no
8495 runpath_var=LD_RUN_PATH
8496 hardcode_runpath_var=yes
8497 ld_shlibs=yes
8498 fi
8499 ;;
8500
8501 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8502 no_undefined_flag='${wl}-z,text'
8503 archive_cmds_need_lc=no
8504 hardcode_shlibpath_var=no
8505 runpath_var='LD_RUN_PATH'
8506
8507 if test "$GCC" = yes; then
8508 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8509 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 else
8511 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 fi
8514 ;;
8515
8516 sysv5* | sco3.2v5* | sco5v6*)
8517 # Note: We can NOT use -z defs as we might desire, because we do not
8518 # link with -lc, and that would cause any symbols used from libc to
8519 # always be unresolved, which means just about no library would
8520 # ever link correctly. If we're not using GNU ld we use -z text
8521 # though, which does catch some bad symbols but isn't as heavy-handed
8522 # as -z defs.
8523 no_undefined_flag='${wl}-z,text'
8524 allow_undefined_flag='${wl}-z,nodefs'
8525 archive_cmds_need_lc=no
8526 hardcode_shlibpath_var=no
8527 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8528 hardcode_libdir_separator=':'
8529 link_all_deplibs=yes
8530 export_dynamic_flag_spec='${wl}-Bexport'
8531 runpath_var='LD_RUN_PATH'
8532
8533 if test "$GCC" = yes; then
8534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8535 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 else
8537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 fi
8540 ;;
8541
8542 uts4*)
8543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_libdir_flag_spec='-L$libdir'
8545 hardcode_shlibpath_var=no
8546 ;;
8547
8548 *)
8549 ld_shlibs=no
8550 ;;
8551 esac
8552
8553 if test x$host_vendor = xsni; then
8554 case $host in
8555 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8556 export_dynamic_flag_spec='${wl}-Blargedynsym'
8557 ;;
8558 esac
8559 fi
8560 fi
8561
8562 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8563 echo "${ECHO_T}$ld_shlibs" >&6
8564 test "$ld_shlibs" = no && can_build_shared=no
8565
8566 with_gnu_ld=$with_gnu_ld
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582 #
8583 # Do we need to explicitly link libc?
8584 #
8585 case "x$archive_cmds_need_lc" in
8586 x|xyes)
8587 # Assume -lc should be added
8588 archive_cmds_need_lc=yes
8589
8590 if test "$enable_shared" = yes && test "$GCC" = yes; then
8591 case $archive_cmds in
8592 *'~'*)
8593 # FIXME: we may have to deal with multi-command sequences.
8594 ;;
8595 '$CC '*)
8596 # Test whether the compiler implicitly links with -lc since on some
8597 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8598 # to ld, don't add -lc before -lgcc.
8599 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8600 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8601 $RM conftest*
8602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8603
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } 2>conftest.err; then
8609 soname=conftest
8610 lib=conftest
8611 libobjs=conftest.$ac_objext
8612 deplibs=
8613 wl=$lt_prog_compiler_wl
8614 pic_flag=$lt_prog_compiler_pic
8615 compiler_flags=-v
8616 linker_flags=-v
8617 verstring=
8618 output_objdir=.
8619 libname=conftest
8620 lt_save_allow_undefined_flag=$allow_undefined_flag
8621 allow_undefined_flag=
8622 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8623 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }
8627 then
8628 archive_cmds_need_lc=no
8629 else
8630 archive_cmds_need_lc=yes
8631 fi
8632 allow_undefined_flag=$lt_save_allow_undefined_flag
8633 else
8634 cat conftest.err 1>&5
8635 fi
8636 $RM conftest*
8637 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8638 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8639 ;;
8640 esac
8641 fi
8642 ;;
8643 esac
8644
8645
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8803 withGCC=$GCC
8804 if test "$withGCC" = yes; then
8805 case $host_os in
8806 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8807 *) lt_awk_arg="/^libraries:/" ;;
8808 esac
8809 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8810 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8811 # if the path contains ";" then we assume it to be the separator
8812 # otherwise default to the standard path separator (i.e. ":") - it is
8813 # assumed that no part of a normal pathname contains ";" but that should
8814 # okay in the real world where ";" in dirpaths is itself problematic.
8815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8816 else
8817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8818 fi
8819 # Ok, now we have the path, separated by spaces, we can step through it
8820 # and add multilib dir if necessary.
8821 lt_tmp_lt_search_path_spec=
8822 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8823 for lt_sys_path in $lt_search_path_spec; do
8824 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8825 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8826 else
8827 test -d "$lt_sys_path" && \
8828 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8829 fi
8830 done
8831 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8832 BEGIN {RS=" "; FS="/|\n";} {
8833 lt_foo="";
8834 lt_count=0;
8835 for (lt_i = NF; lt_i > 0; lt_i--) {
8836 if ($lt_i != "" && $lt_i != ".") {
8837 if ($lt_i == "..") {
8838 lt_count++;
8839 } else {
8840 if (lt_count == 0) {
8841 lt_foo="/" $lt_i lt_foo;
8842 } else {
8843 lt_count--;
8844 }
8845 }
8846 }
8847 }
8848 if (lt_foo != "") { lt_freq[lt_foo]++; }
8849 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8850 }'`
8851 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8852 else
8853 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8854 fi
8855 library_names_spec=
8856 libname_spec='lib$name'
8857 soname_spec=
8858 shrext_cmds=".so"
8859 postinstall_cmds=
8860 postuninstall_cmds=
8861 finish_cmds=
8862 finish_eval=
8863 shlibpath_var=
8864 shlibpath_overrides_runpath=unknown
8865 version_type=none
8866 dynamic_linker="$host_os ld.so"
8867 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8868 need_lib_prefix=unknown
8869 hardcode_into_libs=no
8870
8871 # when you set need_version to no, make sure it does not cause -set_version
8872 # flags to be left without arguments
8873 need_version=unknown
8874
8875 case $host_os in
8876 aix3*)
8877 version_type=linux
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8879 shlibpath_var=LIBPATH
8880
8881 # AIX 3 has no versioning support, so we append a major version to the name.
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 ;;
8884
8885 aix[4-9]*)
8886 version_type=linux
8887 need_lib_prefix=no
8888 need_version=no
8889 hardcode_into_libs=yes
8890 if test "$host_cpu" = ia64; then
8891 # AIX 5 supports IA64
8892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 else
8895 # With GCC up to 2.95.x, collect2 would create an import file
8896 # for dependence libraries. The import file would start with
8897 # the line `#! .'. This would cause the generated library to
8898 # depend on `.', always an invalid library. This was fixed in
8899 # development snapshots of GCC prior to 3.0.
8900 case $host_os in
8901 aix4 | aix4.[01] | aix4.[01].*)
8902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8903 echo ' yes '
8904 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8905 :
8906 else
8907 can_build_shared=no
8908 fi
8909 ;;
8910 esac
8911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8912 # soname into executable. Probably we can add versioning support to
8913 # collect2, so additional links can be useful in future.
8914 if test "$aix_use_runtimelinking" = yes; then
8915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8916 # instead of lib<name>.a to let people know that these are not
8917 # typical AIX shared libraries.
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 else
8920 # We preserve .a as extension for shared libraries through AIX4.2
8921 # and later when we are not doing run time linking.
8922 library_names_spec='${libname}${release}.a $libname.a'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 fi
8925 shlibpath_var=LIBPATH
8926 fi
8927 ;;
8928
8929 amigaos*)
8930 if test "$host_cpu" = m68k; then
8931 library_names_spec='$libname.ixlibrary $libname.a'
8932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8933 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'
8934 else
8935 dynamic_linker=no
8936 fi
8937 ;;
8938
8939 beos*)
8940 library_names_spec='${libname}${shared_ext}'
8941 dynamic_linker="$host_os ld.so"
8942 shlibpath_var=LIBRARY_PATH
8943 ;;
8944
8945 bsdi[45]*)
8946 version_type=linux
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8954 # the default ld.so.conf also contains /usr/contrib/lib and
8955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8956 # libtool to hard-code these into programs
8957 ;;
8958
8959 cygwin* | mingw* | pw32*)
8960 version_type=windows
8961 shrext_cmds=".dll"
8962 need_version=no
8963 need_lib_prefix=no
8964
8965 case $withGCC,$host_os in
8966 yes,cygwin* | yes,mingw* | yes,pw32*)
8967 library_names_spec='$libname.dll.a'
8968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8969 postinstall_cmds='base_file=`basename \${file}`~
8970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8971 dldir=$destdir/`dirname \$dlpath`~
8972 test -d \$dldir || mkdir -p \$dldir~
8973 $install_prog $dir/$dlname \$dldir/$dlname~
8974 chmod a+x \$dldir/$dlname~
8975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8977 fi'
8978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8979 dlpath=$dir/\$dldll~
8980 $RM \$dlpath'
8981 shlibpath_overrides_runpath=yes
8982
8983 case $host_os in
8984 cygwin*)
8985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8988 ;;
8989 mingw*)
8990 # MinGW DLLs use traditional 'lib' prefix
8991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8994 # It is most probably a Windows format PATH printed by
8995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8996 # path with ; separators, and with drive letters. We can handle the
8997 # drive letters (cygwin fileutils understands them), so leave them,
8998 # especially as we might pass files found there to a mingw objdump,
8999 # which wouldn't understand a cygwinified path. Ahh.
9000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9001 else
9002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9003 fi
9004 ;;
9005 pw32*)
9006 # pw32 DLLs use 'pw' prefix rather than 'lib'
9007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9008 ;;
9009 esac
9010 ;;
9011
9012 *)
9013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9014 ;;
9015 esac
9016 dynamic_linker='Win32 ld.exe'
9017 # FIXME: first we should search . and the directory the executable is in
9018 shlibpath_var=PATH
9019 ;;
9020
9021 darwin* | rhapsody*)
9022 dynamic_linker="$host_os dyld"
9023 version_type=darwin
9024 need_lib_prefix=no
9025 need_version=no
9026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9027 soname_spec='${libname}${release}${major}$shared_ext'
9028 shlibpath_overrides_runpath=yes
9029 shlibpath_var=DYLD_LIBRARY_PATH
9030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9031
9032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9034 ;;
9035
9036 dgux*)
9037 version_type=linux
9038 need_lib_prefix=no
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 ;;
9044
9045 freebsd1*)
9046 dynamic_linker=no
9047 ;;
9048
9049 freebsd* | dragonfly*)
9050 # DragonFly does not have aout. When/if they implement a new
9051 # versioning mechanism, adjust this.
9052 if test -x /usr/bin/objformat; then
9053 objformat=`/usr/bin/objformat`
9054 else
9055 case $host_os in
9056 freebsd[123]*) objformat=aout ;;
9057 *) objformat=elf ;;
9058 esac
9059 fi
9060 version_type=freebsd-$objformat
9061 case $version_type in
9062 freebsd-elf*)
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 need_version=no
9065 need_lib_prefix=no
9066 ;;
9067 freebsd-*)
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9069 need_version=yes
9070 ;;
9071 esac
9072 shlibpath_var=LD_LIBRARY_PATH
9073 case $host_os in
9074 freebsd2*)
9075 shlibpath_overrides_runpath=yes
9076 ;;
9077 freebsd3.[01]* | freebsdelf3.[01]*)
9078 shlibpath_overrides_runpath=yes
9079 hardcode_into_libs=yes
9080 ;;
9081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 ;;
9086 *) # from 4.6 on, and DragonFly
9087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9089 ;;
9090 esac
9091 ;;
9092
9093 gnu*)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 hardcode_into_libs=yes
9101 ;;
9102
9103 hpux9* | hpux10* | hpux11*)
9104 # Give a soname corresponding to the major version so that dld.sl refuses to
9105 # link against other versions.
9106 version_type=sunos
9107 need_lib_prefix=no
9108 need_version=no
9109 case $host_cpu in
9110 ia64*)
9111 shrext_cmds='.so'
9112 hardcode_into_libs=yes
9113 dynamic_linker="$host_os dld.so"
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 if test "X$HPUX_IA64_MODE" = X32; then
9119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9120 else
9121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9122 fi
9123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9124 ;;
9125 hppa*64*)
9126 shrext_cmds='.sl'
9127 hardcode_into_libs=yes
9128 dynamic_linker="$host_os dld.sl"
9129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9135 ;;
9136 *)
9137 shrext_cmds='.sl'
9138 dynamic_linker="$host_os dld.sl"
9139 shlibpath_var=SHLIB_PATH
9140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 ;;
9144 esac
9145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9146 postinstall_cmds='chmod 555 $lib'
9147 ;;
9148
9149 interix[3-9]*)
9150 version_type=linux
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=no
9158 hardcode_into_libs=yes
9159 ;;
9160
9161 irix5* | irix6* | nonstopux*)
9162 case $host_os in
9163 nonstopux*) version_type=nonstopux ;;
9164 *)
9165 if test "$lt_cv_prog_gnu_ld" = yes; then
9166 version_type=linux
9167 else
9168 version_type=irix
9169 fi ;;
9170 esac
9171 need_lib_prefix=no
9172 need_version=no
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9175 case $host_os in
9176 irix5* | nonstopux*)
9177 libsuff= shlibsuff=
9178 ;;
9179 *)
9180 case $LD in # libtool.m4 will add one of these switches to LD
9181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9182 libsuff= shlibsuff= libmagic=32-bit;;
9183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9184 libsuff=32 shlibsuff=N32 libmagic=N32;;
9185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9187 *) libsuff= shlibsuff= libmagic=never-match;;
9188 esac
9189 ;;
9190 esac
9191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9192 shlibpath_overrides_runpath=no
9193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9195 hardcode_into_libs=yes
9196 ;;
9197
9198 # No shared lib support for Linux oldld, aout, or coff.
9199 linux*oldld* | linux*aout* | linux*coff*)
9200 dynamic_linker=no
9201 ;;
9202
9203 # This must be Linux ELF.
9204 linux* | k*bsd*-gnu)
9205 version_type=linux
9206 need_lib_prefix=no
9207 need_version=no
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 # Some binutils ld are patched to set DT_RUNPATH
9214 save_LDFLAGS=$LDFLAGS
9215 save_libdir=$libdir
9216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h. */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224
9225 int
9226 main ()
9227 {
9228
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest$ac_exeext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9256 shlibpath_overrides_runpath=yes
9257 fi
9258
9259 else
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 fi
9264 rm -f conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 LDFLAGS=$save_LDFLAGS
9267 libdir=$save_libdir
9268
9269 # This implies no fast_install, which is unacceptable.
9270 # Some rework will be needed to allow for fast_install
9271 # before this can be enabled.
9272 hardcode_into_libs=yes
9273
9274 # Append ld.so.conf contents to the search path
9275 if test -f /etc/ld.so.conf; then
9276 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' ' '`
9277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9278 fi
9279
9280 # We used to test for /lib/ld.so.1 and disable shared libraries on
9281 # powerpc, because MkLinux only supported shared libraries with the
9282 # GNU dynamic linker. Since this was broken with cross compilers,
9283 # most powerpc-linux boxes support dynamic linking these days and
9284 # people can always --disable-shared, the test was removed, and we
9285 # assume the GNU/Linux dynamic linker is in use.
9286 dynamic_linker='GNU/Linux ld.so'
9287 ;;
9288
9289 netbsd*)
9290 version_type=sunos
9291 need_lib_prefix=no
9292 need_version=no
9293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9296 dynamic_linker='NetBSD (a.out) ld.so'
9297 else
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 dynamic_linker='NetBSD ld.elf_so'
9301 fi
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9305 ;;
9306
9307 newsos6)
9308 version_type=linux
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 ;;
9313
9314 *nto* | *qnx*)
9315 version_type=qnx
9316 need_lib_prefix=no
9317 need_version=no
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=no
9322 hardcode_into_libs=yes
9323 dynamic_linker='ldqnx.so'
9324 ;;
9325
9326 openbsd*)
9327 version_type=sunos
9328 sys_lib_dlsearch_path_spec="/usr/lib"
9329 need_lib_prefix=no
9330 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9331 case $host_os in
9332 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9333 *) need_version=no ;;
9334 esac
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9339 case $host_os in
9340 openbsd2.[89] | openbsd2.[89].*)
9341 shlibpath_overrides_runpath=no
9342 ;;
9343 *)
9344 shlibpath_overrides_runpath=yes
9345 ;;
9346 esac
9347 else
9348 shlibpath_overrides_runpath=yes
9349 fi
9350 ;;
9351
9352 os2*)
9353 libname_spec='$name'
9354 shrext_cmds=".dll"
9355 need_lib_prefix=no
9356 library_names_spec='$libname${shared_ext} $libname.a'
9357 dynamic_linker='OS/2 ld.exe'
9358 shlibpath_var=LIBPATH
9359 ;;
9360
9361 osf3* | osf4* | osf5*)
9362 version_type=osf
9363 need_lib_prefix=no
9364 need_version=no
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9370 ;;
9371
9372 rdos*)
9373 dynamic_linker=no
9374 ;;
9375
9376 solaris*)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes
9384 hardcode_into_libs=yes
9385 # ldd complains unless libraries are executable
9386 postinstall_cmds='chmod +x $lib'
9387 ;;
9388
9389 sunos4*)
9390 version_type=sunos
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9392 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes
9395 if test "$with_gnu_ld" = yes; then
9396 need_lib_prefix=no
9397 fi
9398 need_version=yes
9399 ;;
9400
9401 sysv4 | sysv4.3*)
9402 version_type=linux
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 case $host_vendor in
9407 sni)
9408 shlibpath_overrides_runpath=no
9409 need_lib_prefix=no
9410 runpath_var=LD_RUN_PATH
9411 ;;
9412 siemens)
9413 need_lib_prefix=no
9414 ;;
9415 motorola)
9416 need_lib_prefix=no
9417 need_version=no
9418 shlibpath_overrides_runpath=no
9419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9420 ;;
9421 esac
9422 ;;
9423
9424 sysv4*MP*)
9425 if test -d /usr/nec ;then
9426 version_type=linux
9427 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9428 soname_spec='$libname${shared_ext}.$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 fi
9431 ;;
9432
9433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9434 version_type=freebsd-elf
9435 need_lib_prefix=no
9436 need_version=no
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 shlibpath_overrides_runpath=yes
9441 hardcode_into_libs=yes
9442 if test "$with_gnu_ld" = yes; then
9443 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9444 else
9445 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9446 case $host_os in
9447 sco3.2v5*)
9448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9449 ;;
9450 esac
9451 fi
9452 sys_lib_dlsearch_path_spec='/usr/lib'
9453 ;;
9454
9455 tpf*)
9456 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9457 version_type=linux
9458 need_lib_prefix=no
9459 need_version=no
9460 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=no
9463 hardcode_into_libs=yes
9464 ;;
9465
9466 uts4*)
9467 version_type=linux
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 ;;
9472
9473 *)
9474 dynamic_linker=no
9475 ;;
9476 esac
9477 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9478 echo "${ECHO_T}$dynamic_linker" >&6
9479 test "$dynamic_linker" = no && can_build_shared=no
9480
9481 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9482 if test "$GCC" = yes; then
9483 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9484 fi
9485
9486
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9574 hardcode_action=
9575 if test -n "$hardcode_libdir_flag_spec" ||
9576 test -n "$runpath_var" ||
9577 test "X$hardcode_automatic" = "Xyes" ; then
9578
9579 # We can hardcode non-existent directories.
9580 if test "$hardcode_direct" != no &&
9581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9582 # have to relink, otherwise we might link with an installed library
9583 # when we should be linking with a yet-to-be-installed one
9584 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9585 test "$hardcode_minus_L" != no; then
9586 # Linking always hardcodes the temporary library directory.
9587 hardcode_action=relink
9588 else
9589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9590 hardcode_action=immediate
9591 fi
9592 else
9593 # We cannot hardcode anything, or else we can only hardcode existing
9594 # directories.
9595 hardcode_action=unsupported
9596 fi
9597 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9598 echo "${ECHO_T}$hardcode_action" >&6
9599
9600 if test "$hardcode_action" = relink ||
9601 test "$inherit_rpath" = yes; then
9602 # Fast installation is not supported
9603 enable_fast_install=no
9604 elif test "$shlibpath_overrides_runpath" = yes ||
9605 test "$enable_shared" = no; then
9606 # Fast installation is not necessary
9607 enable_fast_install=needless
9608 fi
9609
9610
9611
9612
9613
9614
9615 if test "x$enable_dlopen" != xyes; then
9616 enable_dlopen=unknown
9617 enable_dlopen_self=unknown
9618 enable_dlopen_self_static=unknown
9619 else
9620 lt_cv_dlopen=no
9621 lt_cv_dlopen_libs=
9622
9623 case $host_os in
9624 beos*)
9625 lt_cv_dlopen="load_add_on"
9626 lt_cv_dlopen_libs=
9627 lt_cv_dlopen_self=yes
9628 ;;
9629
9630 mingw* | pw32*)
9631 lt_cv_dlopen="LoadLibrary"
9632 lt_cv_dlopen_libs=
9633 ;;
9634
9635 cygwin*)
9636 lt_cv_dlopen="dlopen"
9637 lt_cv_dlopen_libs=
9638 ;;
9639
9640 darwin*)
9641 # if libdl is installed we need to link against it
9642 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9643 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9644 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647 ac_check_lib_save_LIBS=$LIBS
9648 LIBS="-ldl $LIBS"
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655
9656 /* Override any gcc2 internal prototype to avoid an error. */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9662 char dlopen ();
9663 int
9664 main ()
9665 {
9666 dlopen ();
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 ac_cv_lib_dl_dlopen=yes
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698 ac_cv_lib_dl_dlopen=no
9699 fi
9700 rm -f conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9703 fi
9704 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9706 if test $ac_cv_lib_dl_dlopen = yes; then
9707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9708 else
9709
9710 lt_cv_dlopen="dyld"
9711 lt_cv_dlopen_libs=
9712 lt_cv_dlopen_self=yes
9713
9714 fi
9715
9716 ;;
9717
9718 *)
9719 echo "$as_me:$LINENO: checking for shl_load" >&5
9720 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9721 if test "${ac_cv_func_shl_load+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9732 #define shl_load innocuous_shl_load
9733
9734 /* System header to define __stub macros and hopefully few prototypes,
9735 which can conflict with char shl_load (); below.
9736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 <limits.h> exists even on freestanding compilers. */
9738
9739 #ifdef __STDC__
9740 # include <limits.h>
9741 #else
9742 # include <assert.h>
9743 #endif
9744
9745 #undef shl_load
9746
9747 /* Override any gcc2 internal prototype to avoid an error. */
9748 #ifdef __cplusplus
9749 extern "C"
9750 {
9751 #endif
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char shl_load ();
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9759 choke me
9760 #else
9761 char (*f) () = shl_load;
9762 #endif
9763 #ifdef __cplusplus
9764 }
9765 #endif
9766
9767 int
9768 main ()
9769 {
9770 return f != shl_load;
9771 ;
9772 return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777 (eval $ac_link) 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag"
9785 || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 ac_cv_func_shl_load=yes
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802 ac_cv_func_shl_load=no
9803 fi
9804 rm -f conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806 fi
9807 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9808 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9809 if test $ac_cv_func_shl_load = yes; then
9810 lt_cv_dlopen="shl_load"
9811 else
9812 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9813 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9814 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 ac_check_lib_save_LIBS=$LIBS
9818 LIBS="-ldld $LIBS"
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825
9826 /* Override any gcc2 internal prototype to avoid an error. */
9827 #ifdef __cplusplus
9828 extern "C"
9829 #endif
9830 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9832 char shl_load ();
9833 int
9834 main ()
9835 {
9836 shl_load ();
9837 ;
9838 return 0;
9839 }
9840 _ACEOF
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest$ac_exeext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_lib_dld_shl_load=yes
9864 else
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 ac_cv_lib_dld_shl_load=no
9869 fi
9870 rm -f conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_lib_save_LIBS
9873 fi
9874 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9875 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9876 if test $ac_cv_lib_dld_shl_load = yes; then
9877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9878 else
9879 echo "$as_me:$LINENO: checking for dlopen" >&5
9880 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9881 if test "${ac_cv_func_dlopen+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9892 #define dlopen innocuous_dlopen
9893
9894 /* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char dlopen (); below.
9896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897 <limits.h> exists even on freestanding compilers. */
9898
9899 #ifdef __STDC__
9900 # include <limits.h>
9901 #else
9902 # include <assert.h>
9903 #endif
9904
9905 #undef dlopen
9906
9907 /* Override any gcc2 internal prototype to avoid an error. */
9908 #ifdef __cplusplus
9909 extern "C"
9910 {
9911 #endif
9912 /* We use char because int might match the return type of a gcc2
9913 builtin and then its argument prototype would still apply. */
9914 char dlopen ();
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9919 choke me
9920 #else
9921 char (*f) () = dlopen;
9922 #endif
9923 #ifdef __cplusplus
9924 }
9925 #endif
9926
9927 int
9928 main ()
9929 {
9930 return f != dlopen;
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937 (eval $ac_link) 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag"
9945 || test ! -s conftest.err'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 (eval $ac_try) 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_func_dlopen=yes
9958 else
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9961
9962 ac_cv_func_dlopen=no
9963 fi
9964 rm -f conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 fi
9967 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9968 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9969 if test $ac_cv_func_dlopen = yes; then
9970 lt_cv_dlopen="dlopen"
9971 else
9972 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9973 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 ac_check_lib_save_LIBS=$LIBS
9978 LIBS="-ldl $LIBS"
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985
9986 /* Override any gcc2 internal prototype to avoid an error. */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
9992 char dlopen ();
9993 int
9994 main ()
9995 {
9996 dlopen ();
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag"
10011 || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
10017 { ac_try='test -s conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_dl_dlopen=yes
10024 else
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 ac_cv_lib_dl_dlopen=no
10029 fi
10030 rm -f conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10033 fi
10034 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10036 if test $ac_cv_lib_dl_dlopen = yes; then
10037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10038 else
10039 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10040 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10041 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044 ac_check_lib_save_LIBS=$LIBS
10045 LIBS="-lsvld $LIBS"
10046 cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h. */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052
10053 /* Override any gcc2 internal prototype to avoid an error. */
10054 #ifdef __cplusplus
10055 extern "C"
10056 #endif
10057 /* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10059 char dlopen ();
10060 int
10061 main ()
10062 {
10063 dlopen ();
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest$ac_exeext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 ac_cv_lib_svld_dlopen=yes
10091 else
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095 ac_cv_lib_svld_dlopen=no
10096 fi
10097 rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 LIBS=$ac_check_lib_save_LIBS
10100 fi
10101 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10102 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10103 if test $ac_cv_lib_svld_dlopen = yes; then
10104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10105 else
10106 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10107 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10108 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-ldld $LIBS"
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119
10120 /* Override any gcc2 internal prototype to avoid an error. */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10126 char dld_link ();
10127 int
10128 main ()
10129 {
10130 dld_link ();
10131 ;
10132 return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137 (eval $ac_link) 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest$ac_exeext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_lib_dld_dld_link=yes
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_cv_lib_dld_dld_link=no
10163 fi
10164 rm -f conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10167 fi
10168 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10169 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10170 if test $ac_cv_lib_dld_dld_link = yes; then
10171 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10172 fi
10173
10174
10175 fi
10176
10177
10178 fi
10179
10180
10181 fi
10182
10183
10184 fi
10185
10186
10187 fi
10188
10189 ;;
10190 esac
10191
10192 if test "x$lt_cv_dlopen" != xno; then
10193 enable_dlopen=yes
10194 else
10195 enable_dlopen=no
10196 fi
10197
10198 case $lt_cv_dlopen in
10199 dlopen)
10200 save_CPPFLAGS="$CPPFLAGS"
10201 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10202
10203 save_LDFLAGS="$LDFLAGS"
10204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10205
10206 save_LIBS="$LIBS"
10207 LIBS="$lt_cv_dlopen_libs $LIBS"
10208
10209 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10210 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10211 if test "${lt_cv_dlopen_self+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214 if test "$cross_compiling" = yes; then :
10215 lt_cv_dlopen_self=cross
10216 else
10217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218 lt_status=$lt_dlunknown
10219 cat > conftest.$ac_ext <<_LT_EOF
10220 #line 10220 "configure"
10221 #include "confdefs.h"
10222
10223 #if HAVE_DLFCN_H
10224 #include <dlfcn.h>
10225 #endif
10226
10227 #include <stdio.h>
10228
10229 #ifdef RTLD_GLOBAL
10230 # define LT_DLGLOBAL RTLD_GLOBAL
10231 #else
10232 # ifdef DL_GLOBAL
10233 # define LT_DLGLOBAL DL_GLOBAL
10234 # else
10235 # define LT_DLGLOBAL 0
10236 # endif
10237 #endif
10238
10239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240 find out it does not work in some platform. */
10241 #ifndef LT_DLLAZY_OR_NOW
10242 # ifdef RTLD_LAZY
10243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10244 # else
10245 # ifdef DL_LAZY
10246 # define LT_DLLAZY_OR_NOW DL_LAZY
10247 # else
10248 # ifdef RTLD_NOW
10249 # define LT_DLLAZY_OR_NOW RTLD_NOW
10250 # else
10251 # ifdef DL_NOW
10252 # define LT_DLLAZY_OR_NOW DL_NOW
10253 # else
10254 # define LT_DLLAZY_OR_NOW 0
10255 # endif
10256 # endif
10257 # endif
10258 # endif
10259 #endif
10260
10261 #ifdef __cplusplus
10262 extern "C" void exit (int);
10263 #endif
10264
10265 void fnord() { int i=42;}
10266 int main ()
10267 {
10268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10269 int status = $lt_dlunknown;
10270
10271 if (self)
10272 {
10273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10274 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10275 /* dlclose (self); */
10276 }
10277 else
10278 puts (dlerror ());
10279
10280 exit (status);
10281 }
10282 _LT_EOF
10283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284 (eval $ac_link) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10288 (./conftest; exit; ) >&5 2>/dev/null
10289 lt_status=$?
10290 case x$lt_status in
10291 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10292 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10293 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10294 esac
10295 else :
10296 # compilation failed
10297 lt_cv_dlopen_self=no
10298 fi
10299 fi
10300 rm -fr conftest*
10301
10302
10303 fi
10304 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10305 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10306
10307 if test "x$lt_cv_dlopen_self" = xyes; then
10308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10309 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10310 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10311 if test "${lt_cv_dlopen_self_static+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 if test "$cross_compiling" = yes; then :
10315 lt_cv_dlopen_self_static=cross
10316 else
10317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10318 lt_status=$lt_dlunknown
10319 cat > conftest.$ac_ext <<_LT_EOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10322
10323 #if HAVE_DLFCN_H
10324 #include <dlfcn.h>
10325 #endif
10326
10327 #include <stdio.h>
10328
10329 #ifdef RTLD_GLOBAL
10330 # define LT_DLGLOBAL RTLD_GLOBAL
10331 #else
10332 # ifdef DL_GLOBAL
10333 # define LT_DLGLOBAL DL_GLOBAL
10334 # else
10335 # define LT_DLGLOBAL 0
10336 # endif
10337 #endif
10338
10339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10340 find out it does not work in some platform. */
10341 #ifndef LT_DLLAZY_OR_NOW
10342 # ifdef RTLD_LAZY
10343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10344 # else
10345 # ifdef DL_LAZY
10346 # define LT_DLLAZY_OR_NOW DL_LAZY
10347 # else
10348 # ifdef RTLD_NOW
10349 # define LT_DLLAZY_OR_NOW RTLD_NOW
10350 # else
10351 # ifdef DL_NOW
10352 # define LT_DLLAZY_OR_NOW DL_NOW
10353 # else
10354 # define LT_DLLAZY_OR_NOW 0
10355 # endif
10356 # endif
10357 # endif
10358 # endif
10359 #endif
10360
10361 #ifdef __cplusplus
10362 extern "C" void exit (int);
10363 #endif
10364
10365 void fnord() { int i=42;}
10366 int main ()
10367 {
10368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369 int status = $lt_dlunknown;
10370
10371 if (self)
10372 {
10373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375 /* dlclose (self); */
10376 }
10377 else
10378 puts (dlerror ());
10379
10380 exit (status);
10381 }
10382 _LT_EOF
10383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10388 (./conftest; exit; ) >&5 2>/dev/null
10389 lt_status=$?
10390 case x$lt_status in
10391 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10392 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10393 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10394 esac
10395 else :
10396 # compilation failed
10397 lt_cv_dlopen_self_static=no
10398 fi
10399 fi
10400 rm -fr conftest*
10401
10402
10403 fi
10404 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10405 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10406 fi
10407
10408 CPPFLAGS="$save_CPPFLAGS"
10409 LDFLAGS="$save_LDFLAGS"
10410 LIBS="$save_LIBS"
10411 ;;
10412 esac
10413
10414 case $lt_cv_dlopen_self in
10415 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10416 *) enable_dlopen_self=unknown ;;
10417 esac
10418
10419 case $lt_cv_dlopen_self_static in
10420 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10421 *) enable_dlopen_self_static=unknown ;;
10422 esac
10423 fi
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 striplib=
10442 old_striplib=
10443 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10444 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10445 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10446 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10447 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10448 echo "$as_me:$LINENO: result: yes" >&5
10449 echo "${ECHO_T}yes" >&6
10450 else
10451 # FIXME - insert some real tests, host_os isn't really good enough
10452 case $host_os in
10453 darwin*)
10454 if test -n "$STRIP" ; then
10455 striplib="$STRIP -x"
10456 old_striplib="$STRIP -S"
10457 echo "$as_me:$LINENO: result: yes" >&5
10458 echo "${ECHO_T}yes" >&6
10459 else
10460 echo "$as_me:$LINENO: result: no" >&5
10461 echo "${ECHO_T}no" >&6
10462 fi
10463 ;;
10464 *)
10465 echo "$as_me:$LINENO: result: no" >&5
10466 echo "${ECHO_T}no" >&6
10467 ;;
10468 esac
10469 fi
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482 # Report which library types will actually be built
10483 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10484 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10486 echo "${ECHO_T}$can_build_shared" >&6
10487
10488 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10489 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10490 test "$can_build_shared" = "no" && enable_shared=no
10491
10492 # On AIX, shared libraries and static libraries use the same namespace, and
10493 # are all built from PIC.
10494 case $host_os in
10495 aix3*)
10496 test "$enable_shared" = yes && enable_static=no
10497 if test -n "$RANLIB"; then
10498 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10499 postinstall_cmds='$RANLIB $lib'
10500 fi
10501 ;;
10502
10503 aix[4-9]*)
10504 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10505 test "$enable_shared" = yes && enable_static=no
10506 fi
10507 ;;
10508 esac
10509 echo "$as_me:$LINENO: result: $enable_shared" >&5
10510 echo "${ECHO_T}$enable_shared" >&6
10511
10512 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10513 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10514 # Make sure either enable_shared or enable_static is yes.
10515 test "$enable_shared" = yes || enable_static=yes
10516 echo "$as_me:$LINENO: result: $enable_static" >&5
10517 echo "${ECHO_T}$enable_static" >&6
10518
10519
10520
10521
10522 fi
10523 ac_ext=c
10524 ac_cpp='$CPP $CPPFLAGS'
10525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10528
10529 CC="$lt_save_CC"
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543 ac_config_commands="$ac_config_commands libtool"
10544
10545
10546
10547
10548 # Only expand once:
10549
10550
10551
10552 # Check whether --enable-targets or --disable-targets was given.
10553 if test "${enable_targets+set}" = set; then
10554 enableval="$enable_targets"
10555 case "${enableval}" in
10556 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10557 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10558 { (exit 1); exit 1; }; }
10559 ;;
10560 no) enable_targets= ;;
10561 *) enable_targets=$enableval ;;
10562 esac
10563 fi;
10564 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10565 if test "${enable_commonbfdlib+set}" = set; then
10566 enableval="$enable_commonbfdlib"
10567 case "${enableval}" in
10568 yes) commonbfdlib=true ;;
10569 no) commonbfdlib=false ;;
10570 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10571 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10572 { (exit 1); exit 1; }; } ;;
10573 esac
10574 fi;
10575 ac_checking=yes
10576 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10577 ac_checking=
10578 fi
10579 # Check whether --enable-checking or --disable-checking was given.
10580 if test "${enable_checking+set}" = set; then
10581 enableval="$enable_checking"
10582 case "${enableval}" in
10583 no|none) ac_checking= ;;
10584 *) ac_checking=yes ;;
10585 esac
10586 fi; if test x$ac_checking != x ; then
10587
10588 cat >>confdefs.h <<\_ACEOF
10589 #define ENABLE_CHECKING 1
10590 _ACEOF
10591
10592 fi
10593
10594 using_cgen=no
10595
10596
10597 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10598
10599 # Check whether --enable-werror or --disable-werror was given.
10600 if test "${enable_werror+set}" = set; then
10601 enableval="$enable_werror"
10602 case "${enableval}" in
10603 yes | y) ERROR_ON_WARNING="yes" ;;
10604 no | n) ERROR_ON_WARNING="no" ;;
10605 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10606 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10607 { (exit 1); exit 1; }; } ;;
10608 esac
10609 fi;
10610
10611 # Enable -Wno-format by default when using gcc on mingw
10612 case "${host}" in
10613 *-*-mingw32*)
10614 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10615 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10616 fi
10617 ;;
10618 *) ;;
10619 esac
10620
10621 # Enable -Werror by default when using gcc
10622 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10623 ERROR_ON_WARNING=yes
10624 fi
10625
10626 NO_WERROR=
10627 if test "${ERROR_ON_WARNING}" = yes ; then
10628 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10629 NO_WERROR="-Wno-error"
10630 fi
10631
10632 if test "${GCC}" = yes ; then
10633 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10634 fi
10635
10636 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10637 if test "${enable_build_warnings+set}" = set; then
10638 enableval="$enable_build_warnings"
10639 case "${enableval}" in
10640 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10641 no) if test "${GCC}" = yes ; then
10642 WARN_CFLAGS="-w"
10643 fi;;
10644 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10645 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10646 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10647 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10648 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10649 esac
10650 fi;
10651
10652 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10653 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10654 fi
10655
10656
10657
10658
10659
10660 # Generate a header file
10661 ac_config_headers="$ac_config_headers config.h:config.in"
10662
10663
10664 # If we are on a DOS filesystem, we must use gdb.ini rather than
10665 # .gdbinit.
10666 case "${host}" in
10667 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10668 GDBINIT="gdb.ini"
10669 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
10670
10671 ;;
10672 *)
10673 GDBINIT=".gdbinit"
10674 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
10675
10676 ;;
10677 esac
10678
10679
10680 #We need this for the host. BOUT header is in host order.
10681 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10682 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10683 if test "${ac_cv_c_bigendian+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686 # See if sys/param.h defines the BYTE_ORDER macro.
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h. */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 #include <sys/types.h>
10694 #include <sys/param.h>
10695
10696 int
10697 main ()
10698 {
10699 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10700 bogus endian macros
10701 #endif
10702
10703 ;
10704 return 0;
10705 }
10706 _ACEOF
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag"
10717 || test ! -s conftest.err'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; } &&
10723 { ac_try='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 # It does; now see whether it defined to BIG_ENDIAN or not.
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h. */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10736 #include <sys/types.h>
10737 #include <sys/param.h>
10738
10739 int
10740 main ()
10741 {
10742 #if BYTE_ORDER != BIG_ENDIAN
10743 not big endian
10744 #endif
10745
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10752 (eval $ac_compile) 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag"
10760 || test ! -s conftest.err'
10761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; } &&
10766 { ac_try='test -s conftest.$ac_objext'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10772 ac_cv_c_bigendian=yes
10773 else
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10776
10777 ac_cv_c_bigendian=no
10778 fi
10779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10780 else
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784 # It does not; compile a test program.
10785 if test "$cross_compiling" = yes; then
10786 # try to guess the endianness by grepping values into an object file
10787 ac_cv_c_bigendian=unknown
10788 cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h. */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10795 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10796 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10797 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10798 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10799 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10800 int
10801 main ()
10802 {
10803 _ascii (); _ebcdic ();
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag"
10818 || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10831 ac_cv_c_bigendian=yes
10832 fi
10833 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10834 if test "$ac_cv_c_bigendian" = unknown; then
10835 ac_cv_c_bigendian=no
10836 else
10837 # finding both strings is unlikely to happen, but who knows?
10838 ac_cv_c_bigendian=unknown
10839 fi
10840 fi
10841 else
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10844
10845 fi
10846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10847 else
10848 cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h. */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 int
10855 main ()
10856 {
10857 /* Are we little or big endian? From Harbison&Steele. */
10858 union
10859 {
10860 long l;
10861 char c[sizeof (long)];
10862 } u;
10863 u.l = 1;
10864 exit (u.c[sizeof (long) - 1] == 1);
10865 }
10866 _ACEOF
10867 rm -f conftest$ac_exeext
10868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10869 (eval $ac_link) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_c_bigendian=no
10879 else
10880 echo "$as_me: program exited with status $ac_status" >&5
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ( exit $ac_status )
10885 ac_cv_c_bigendian=yes
10886 fi
10887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10888 fi
10889 fi
10890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10891 fi
10892 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10893 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10894 case $ac_cv_c_bigendian in
10895 yes)
10896
10897 cat >>confdefs.h <<\_ACEOF
10898 #define WORDS_BIGENDIAN 1
10899 _ACEOF
10900 ;;
10901 no)
10902 ;;
10903 *)
10904 { { echo "$as_me:$LINENO: error: unknown endianness
10905 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10906 echo "$as_me: error: unknown endianness
10907 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10908 { (exit 1); exit 1; }; } ;;
10909 esac
10910
10911
10912 te_file=generic
10913
10914 # Makefile target for installing gas in $(tooldir)/bin.
10915 install_tooldir=install-exec-tooldir
10916
10917 canon_targets=""
10918 all_targets=no
10919 if test -n "$enable_targets" ; then
10920 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10921 if test $t = "all"; then
10922 all_targets=yes
10923 continue
10924 fi
10925 result=`$ac_config_sub $t 2>/dev/null`
10926 if test -n "$result" ; then
10927 canon_targets="$canon_targets $result"
10928 # else
10929 # # Permit "all", etc. We don't support it yet though.
10930 # canon_targets="$canon_targets $t"
10931 fi
10932 done
10933 _gas_uniq_list="$canon_targets"
10934 _gas_uniq_newlist=""
10935 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10936 case $_gas_uniq_i in
10937 _gas_uniq_dummy) ;;
10938 *) case " $_gas_uniq_newlist " in
10939 *" $_gas_uniq_i "*) ;;
10940 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10941 esac ;;
10942 esac
10943 done
10944 canon_targets=$_gas_uniq_newlist
10945
10946 fi
10947
10948 emulations=""
10949
10950 for this_target in $target $canon_targets ; do
10951
10952 targ=${this_target}
10953 . ${srcdir}/configure.tgt
10954
10955 case ${target_cpu} in
10956 crisv32)
10957
10958 cat >>confdefs.h <<_ACEOF
10959 #define DEFAULT_CRIS_ARCH $arch
10960 _ACEOF
10961
10962 ;;
10963 esac
10964
10965 if test ${this_target} = $target ; then
10966 target_cpu_type=${cpu_type}
10967 elif test ${target_cpu_type} != ${cpu_type} ; then
10968 continue
10969 fi
10970
10971 generic_target=${cpu_type}-${target_vendor}-${target_os}
10972 case ${generic_target} in
10973 i386-*-sco3.2v5*)
10974 if test ${this_target} = $target; then
10975
10976 cat >>confdefs.h <<\_ACEOF
10977 #define SCO_ELF 1
10978 _ACEOF
10979
10980 fi
10981 ;;
10982
10983 i386-*-msdosdjgpp* \
10984 | i386-*-go32* \
10985 | i386-go32-rtems*)
10986
10987 cat >>confdefs.h <<\_ACEOF
10988 #define STRICTCOFF 1
10989 _ACEOF
10990
10991 ;;
10992
10993 i860-*-*)
10994 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10995 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10996 ;;
10997
10998 mips-sony-bsd*)
10999 ;;
11000 mips-*-bsd*)
11001 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
11002 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
11003 { (exit 1); exit 1; }; }
11004 ;;
11005
11006 ppc-*-aix5.*)
11007
11008 cat >>confdefs.h <<\_ACEOF
11009 #define AIX_WEAK_SUPPORT 1
11010 _ACEOF
11011
11012 ;;
11013 ppc-*-linux-*)
11014 case "$endian" in
11015 big) ;;
11016 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
11017 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
11018 { (exit 1); exit 1; }; } ;;
11019 esac
11020 ;;
11021 ppc-*-solaris*)
11022 if test ${this_target} = $target; then
11023
11024 cat >>confdefs.h <<\_ACEOF
11025 #define TARGET_SOLARIS_COMMENT 1
11026 _ACEOF
11027
11028 fi
11029 if test x${endian} = xbig; then
11030 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
11031 echo "$as_me: error: Solaris must be configured little endian" >&2;}
11032 { (exit 1); exit 1; }; }
11033 fi
11034 ;;
11035
11036 sh*-*-symbianelf*)
11037
11038 cat >>confdefs.h <<\_ACEOF
11039 #define TARGET_SYMBIAN 1
11040 _ACEOF
11041
11042 ;;
11043 esac
11044
11045 if test ${this_target} = $target ; then
11046 endian_def=
11047 if test x${endian} = xbig; then
11048 endian_def=1
11049 elif test x${endian} = xlittle; then
11050 endian_def=0
11051 fi
11052 if test x${endian_def} != x; then
11053
11054 cat >>confdefs.h <<_ACEOF
11055 #define TARGET_BYTES_BIG_ENDIAN $endian_def
11056 _ACEOF
11057
11058 fi
11059 fi
11060
11061 # Other random stuff.
11062
11063 case ${cpu_type} in
11064 mips)
11065 # Set mips_cpu to the name of the default CPU.
11066 case ${target_cpu} in
11067 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11068 mips_cpu=from-abi
11069 ;;
11070 mipsisa32 | mipsisa32el)
11071 mips_cpu=mips32
11072 ;;
11073 mipsisa32r2 | mipsisa32r2el)
11074 mips_cpu=mips32r2
11075 ;;
11076 mipsisa64 | mipsisa64el)
11077 mips_cpu=mips64
11078 ;;
11079 mipsisa64r2 | mipsisa64r2el)
11080 mips_cpu=mips64r2
11081 ;;
11082 mipstx39 | mipstx39el)
11083 mips_cpu=r3900
11084 ;;
11085 mips64vr | mips64vrel)
11086 mips_cpu=vr4100
11087 ;;
11088 mipsisa32r2* | mipsisa64r2*)
11089 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11090 ;;
11091 mips64* | mipsisa64* | mipsisa32*)
11092 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11093 ;;
11094 *)
11095 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
11096 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
11097 { (exit 1); exit 1; }; }
11098 ;;
11099 esac
11100 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11101 # binaries. It's a GNU extension that some OSes don't understand.
11102 # The value only matters on ELF targets.
11103 case ${target} in
11104 *-*-irix*)
11105 use_e_mips_abi_o32=0
11106 ;;
11107 *)
11108 use_e_mips_abi_o32=1
11109 ;;
11110 esac
11111 # Decide whether to generate 32-bit or 64-bit code by default.
11112 # Used to resolve -march=from-abi when an embedded ABI is selected.
11113 case ${target} in
11114 mips64*-*-* | mipsisa64*-*-*)
11115 mips_default_64bit=1
11116 ;;
11117 *)
11118 mips_default_64bit=0
11119 ;;
11120 esac
11121 # Decide which ABI to target by default.
11122 case ${target} in
11123 mips64*-linux* | mips-sgi-irix6*)
11124 mips_default_abi=N32_ABI
11125 ;;
11126 mips*-linux*)
11127 mips_default_abi=O32_ABI
11128 ;;
11129 mips64*-openbsd*)
11130 mips_default_abi=N64_ABI
11131 ;;
11132 *)
11133 mips_default_abi=NO_ABI
11134 ;;
11135 esac
11136
11137 cat >>confdefs.h <<_ACEOF
11138 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11139 _ACEOF
11140
11141
11142 cat >>confdefs.h <<_ACEOF
11143 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11144 _ACEOF
11145
11146
11147 cat >>confdefs.h <<_ACEOF
11148 #define MIPS_DEFAULT_64BIT $mips_default_64bit
11149 _ACEOF
11150
11151
11152 cat >>confdefs.h <<_ACEOF
11153 #define MIPS_DEFAULT_ABI $mips_default_abi
11154 _ACEOF
11155
11156 ;;
11157 esac
11158
11159 # Do we need the opcodes library?
11160 case ${cpu_type} in
11161 vax | tic30)
11162 ;;
11163
11164 *)
11165 need_opcodes=yes
11166
11167 case "${enable_shared}" in
11168 yes) shared_opcodes=true ;;
11169 *opcodes*) shared_opcodes=true ;;
11170 *) shared_opcodes=false ;;
11171 esac
11172 ;;
11173 esac
11174
11175 # Any other special object files needed ?
11176 case ${cpu_type} in
11177
11178 bfin)
11179 echo ${extra_objects} | grep -s "bfin-parse.o"
11180 if test $? -ne 0 ; then
11181 extra_objects="$extra_objects bfin-parse.o"
11182 fi
11183
11184 echo ${extra_objects} | grep -s "bfin-lex.o"
11185 if test $? -ne 0 ; then
11186 extra_objects="$extra_objects bfin-lex.o"
11187 fi
11188 ;;
11189
11190 fr30 | ip2k | iq2000 | m32r | openrisc)
11191 using_cgen=yes
11192 ;;
11193
11194 m32c)
11195 using_cgen=yes
11196 ;;
11197 frv)
11198 using_cgen=yes
11199 ;;
11200 m68k)
11201 case ${extra_objects} in
11202 *m68k-parse.o*) ;;
11203 *) extra_objects="$extra_objects m68k-parse.o" ;;
11204 esac
11205 ;;
11206
11207 mep)
11208 using_cgen=yes
11209 ;;
11210
11211 mips)
11212 echo ${extra_objects} | grep -s "itbl-parse.o"
11213 if test $? -ne 0 ; then
11214 extra_objects="$extra_objects itbl-parse.o"
11215 fi
11216
11217 echo ${extra_objects} | grep -s "itbl-lex.o"
11218 if test $? -ne 0 ; then
11219 extra_objects="$extra_objects itbl-lex.o"
11220 fi
11221
11222 echo ${extra_objects} | grep -s "itbl-ops.o"
11223 if test $? -ne 0 ; then
11224 extra_objects="$extra_objects itbl-ops.o"
11225 fi
11226 ;;
11227
11228 mt)
11229 using_cgen=yes
11230 ;;
11231
11232 i386 | s390 | sparc)
11233 if test $this_target = $target ; then
11234
11235 cat >>confdefs.h <<_ACEOF
11236 #define DEFAULT_ARCH "${arch}"
11237 _ACEOF
11238
11239 fi
11240 ;;
11241
11242 xstormy16)
11243 using_cgen=yes
11244 ;;
11245
11246 xc16x)
11247 using_cgen=yes
11248 ;;
11249
11250 xtensa)
11251 echo ${extra_objects} | grep -s "xtensa-relax.o"
11252 if test $? -ne 0 ; then
11253 extra_objects="$extra_objects xtensa-relax.o"
11254 fi
11255 ;;
11256
11257 *)
11258 ;;
11259 esac
11260
11261 if test $using_cgen = yes ; then
11262 case "x${extra_objects}" in
11263 *cgen.o*) ;;
11264 *) extra_objects="$extra_objects cgen.o" ;;
11265 esac
11266 fi
11267
11268 # See if we really can support this configuration with the emulation code.
11269
11270 if test $this_target = $target ; then
11271 obj_format=$fmt
11272 te_file=$em
11273 fi
11274
11275 # From target name and format, produce a list of supported emulations.
11276
11277 case ${generic_target}-${fmt} in
11278 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11279 mips*-*-linux*-*) case "$endian" in
11280 big) emulation="mipsbelf mipslelf mipself" ;;
11281 *) emulation="mipslelf mipsbelf mipself" ;;
11282 esac ;;
11283 mips-*-lnews*-ecoff) ;;
11284 mips-*-*-ecoff) case "$endian" in
11285 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11286 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11287 esac ;;
11288 mips-*-*-elf) case "$endian" in
11289 big) emulation="mipsbelf mipslelf mipself" ;;
11290 *) emulation="mipslelf mipsbelf mipself" ;;
11291 esac ;;
11292 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11293 # i386-pc-pe-coff != i386-pc-coff.
11294 i386-*-pe-coff) ;;
11295 # Uncommenting the next line will turn on support for i386 AOUT
11296 # for the default linux configuration
11297 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11298 #
11299 i386-*-aout) emulation="i386aout" ;;
11300 i386-*-coff) emulation="i386coff" ;;
11301 i386-*-elf) emulation="i386elf" ;;
11302
11303 # Always all formats. The first stated emulation becomes the default.
11304 cris-*-*aout*) emulation="crisaout criself" ;;
11305 cris-*-*) emulation="criself crisaout" ;;
11306 esac
11307
11308 emulations="$emulations $emulation"
11309
11310 done
11311
11312 # Turn on all targets if possible
11313 if test ${all_targets} = "yes"; then
11314 case ${target_cpu_type} in
11315 i386)
11316 case ${obj_format} in
11317 aout)
11318 emulations="$emulations i386coff i386elf"
11319 ;;
11320 coff)
11321 emulations="$emulations i386aout i386elf"
11322 ;;
11323 elf)
11324 emulations="$emulations i386aout i386coff"
11325 ;;
11326 esac
11327 ;;
11328 x86_64)
11329 case ${obj_format} in
11330 aout)
11331 emulations="$emulations i386coff i386elf"
11332 ;;
11333 coff)
11334 emulations="$emulations i386aout i386elf"
11335 ;;
11336 elf)
11337 emulations="$emulations i386aout i386coff"
11338 ;;
11339 esac
11340 ;;
11341 esac
11342 fi
11343
11344 # Assign floating point type. Most processors with FP support
11345 # IEEE FP. On those that don't support FP at all, usually IEEE
11346 # is emulated.
11347 case ${target_cpu} in
11348 vax | pdp11 ) atof=vax ;;
11349 *) atof=ieee ;;
11350 esac
11351
11352 case "${obj_format}" in
11353 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11354 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11355 { (exit 1); exit 1; }; } ;;
11356 esac
11357
11358 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11359 cgen_cpu_prefix=""
11360 if test $using_cgen = yes ; then
11361 case ${target_cpu} in
11362 *) cgen_cpu_prefix=${target_cpu} ;;
11363 esac
11364
11365
11366 cat >>confdefs.h <<\_ACEOF
11367 #define USING_CGEN 1
11368 _ACEOF
11369
11370 fi
11371
11372
11373 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11374 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11375 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11376 { (exit 1); exit 1; }; }
11377 fi
11378
11379 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11380 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11381 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11382 { (exit 1); exit 1; }; }
11383 fi
11384
11385 # Some COFF configurations want these random other flags set.
11386 case ${obj_format} in
11387 coff)
11388 case ${target_cpu_type} in
11389 i386)
11390 cat >>confdefs.h <<\_ACEOF
11391 #define I386COFF 1
11392 _ACEOF
11393 ;;
11394 m68k)
11395 cat >>confdefs.h <<\_ACEOF
11396 #define M68KCOFF 1
11397 _ACEOF
11398 ;;
11399 m88k)
11400 cat >>confdefs.h <<\_ACEOF
11401 #define M88KCOFF 1
11402 _ACEOF
11403 ;;
11404 x86_64)
11405 cat >>confdefs.h <<\_ACEOF
11406 #define I386COFF 1
11407 _ACEOF
11408 ;;
11409 esac
11410 ;;
11411 esac
11412
11413 # Getting this done right is going to be a bitch. Each configuration specified
11414 # with --enable-targets=... should be checked for environment, format, cpu
11415 # setting.
11416 #
11417 # For each configuration, the necessary object file support code must be linked
11418 # in. This might be only one, it might be up to four. The necessary emulation
11419 # code needs to be provided, too.
11420 #
11421 # And then there's "--enable-targets=all"....
11422 #
11423 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11424
11425 formats="${obj_format}"
11426 emfiles=""
11427 EMULATIONS=""
11428 _gas_uniq_list="$emulations"
11429 _gas_uniq_newlist=""
11430 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11431 case $_gas_uniq_i in
11432 _gas_uniq_dummy) ;;
11433 *) case " $_gas_uniq_newlist " in
11434 *" $_gas_uniq_i "*) ;;
11435 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11436 esac ;;
11437 esac
11438 done
11439 emulations=$_gas_uniq_newlist
11440
11441 for em in . $emulations ; do
11442 case $em in
11443 .) continue ;;
11444 mipsbelf | mipslelf | mipself)
11445 fmt=elf file=mipself ;;
11446 mipsbecoff | mipslecoff | mipsecoff)
11447 fmt=ecoff file=mipsecoff ;;
11448 *coff)
11449 fmt=coff file=$em ;;
11450 *aout)
11451 fmt=aout file=$em ;;
11452 *elf)
11453 fmt=elf file=$em ;;
11454 esac
11455 formats="$formats $fmt"
11456 emfiles="$emfiles e-$file.o"
11457 EMULATIONS="$EMULATIONS &$em,"
11458 done
11459 _gas_uniq_list="$formats"
11460 _gas_uniq_newlist=""
11461 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11462 case $_gas_uniq_i in
11463 _gas_uniq_dummy) ;;
11464 *) case " $_gas_uniq_newlist " in
11465 *" $_gas_uniq_i "*) ;;
11466 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11467 esac ;;
11468 esac
11469 done
11470 formats=$_gas_uniq_newlist
11471
11472 _gas_uniq_list="$emfiles"
11473 _gas_uniq_newlist=""
11474 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11475 case $_gas_uniq_i in
11476 _gas_uniq_dummy) ;;
11477 *) case " $_gas_uniq_newlist " in
11478 *" $_gas_uniq_i "*) ;;
11479 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11480 esac ;;
11481 esac
11482 done
11483 emfiles=$_gas_uniq_newlist
11484
11485 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11486 for fmt in $formats ; do
11487 case $fmt in
11488 aout)
11489 cat >>confdefs.h <<\_ACEOF
11490 #define OBJ_MAYBE_AOUT 1
11491 _ACEOF
11492 ;;
11493 bout)
11494 cat >>confdefs.h <<\_ACEOF
11495 #define OBJ_MAYBE_BOUT 1
11496 _ACEOF
11497 ;;
11498 coff)
11499 cat >>confdefs.h <<\_ACEOF
11500 #define OBJ_MAYBE_COFF 1
11501 _ACEOF
11502 ;;
11503 ecoff)
11504 cat >>confdefs.h <<\_ACEOF
11505 #define OBJ_MAYBE_ECOFF 1
11506 _ACEOF
11507 ;;
11508 elf)
11509 cat >>confdefs.h <<\_ACEOF
11510 #define OBJ_MAYBE_ELF 1
11511 _ACEOF
11512 ;;
11513 generic)
11514 cat >>confdefs.h <<\_ACEOF
11515 #define OBJ_MAYBE_GENERIC 1
11516 _ACEOF
11517 ;;
11518 som)
11519 cat >>confdefs.h <<\_ACEOF
11520 #define OBJ_MAYBE_SOM 1
11521 _ACEOF
11522 ;;
11523 esac
11524 extra_objects="$extra_objects obj-$fmt.o"
11525 done
11526 obj_format=multi
11527 fi
11528 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11529 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11530 # e-mips* has more than one emulation per file, e-i386* has just one at the
11531 # moment. If only one emulation is specified, then don't define
11532 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11533 case "${obj_format}${emfiles}" in
11534 multi* | *mips*)
11535 extra_objects="$extra_objects $emfiles"
11536
11537 cat >>confdefs.h <<\_ACEOF
11538 #define USE_EMULATIONS 1
11539 _ACEOF
11540 ;;
11541 esac
11542 fi
11543
11544
11545 cat >>confdefs.h <<_ACEOF
11546 #define EMULATIONS $EMULATIONS
11547 _ACEOF
11548
11549
11550 cat >>confdefs.h <<_ACEOF
11551 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
11552 _ACEOF
11553
11554
11555 reject_dev_configs=yes
11556
11557 case ${reject_dev_configs}-${dev} in
11558 yes-yes) # Oops.
11559 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11560 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11561 { (exit 1); exit 1; }; }
11562 ;;
11563 esac
11564
11565
11566
11567
11568
11569
11570
11571 # do we need the opcodes library?
11572 case "${need_opcodes}" in
11573 yes)
11574 OPCODES_LIB=../opcodes/libopcodes.la
11575 ;;
11576 esac
11577
11578
11579
11580
11581 cat >>confdefs.h <<_ACEOF
11582 #define TARGET_ALIAS "${target_alias}"
11583 _ACEOF
11584
11585
11586 cat >>confdefs.h <<_ACEOF
11587 #define TARGET_CANONICAL "${target}"
11588 _ACEOF
11589
11590
11591 cat >>confdefs.h <<_ACEOF
11592 #define TARGET_CPU "${target_cpu}"
11593 _ACEOF
11594
11595
11596 cat >>confdefs.h <<_ACEOF
11597 #define TARGET_VENDOR "${target_vendor}"
11598 _ACEOF
11599
11600
11601 cat >>confdefs.h <<_ACEOF
11602 #define TARGET_OS "${target_os}"
11603 _ACEOF
11604
11605
11606 for ac_prog in 'bison -y' byacc
11607 do
11608 # Extract the first word of "$ac_prog", so it can be a program name with args.
11609 set dummy $ac_prog; ac_word=$2
11610 echo "$as_me:$LINENO: checking for $ac_word" >&5
11611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11612 if test "${ac_cv_prog_YACC+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615 if test -n "$YACC"; then
11616 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11617 else
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11620 do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11625 ac_cv_prog_YACC="$ac_prog"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11628 fi
11629 done
11630 done
11631
11632 fi
11633 fi
11634 YACC=$ac_cv_prog_YACC
11635 if test -n "$YACC"; then
11636 echo "$as_me:$LINENO: result: $YACC" >&5
11637 echo "${ECHO_T}$YACC" >&6
11638 else
11639 echo "$as_me:$LINENO: result: no" >&5
11640 echo "${ECHO_T}no" >&6
11641 fi
11642
11643 test -n "$YACC" && break
11644 done
11645 test -n "$YACC" || YACC="yacc"
11646
11647 for ac_prog in flex lex
11648 do
11649 # Extract the first word of "$ac_prog", so it can be a program name with args.
11650 set dummy $ac_prog; ac_word=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_LEX+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 if test -n "$LEX"; then
11657 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_LEX="$ac_prog"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670 done
11671 done
11672
11673 fi
11674 fi
11675 LEX=$ac_cv_prog_LEX
11676 if test -n "$LEX"; then
11677 echo "$as_me:$LINENO: result: $LEX" >&5
11678 echo "${ECHO_T}$LEX" >&6
11679 else
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11682 fi
11683
11684 test -n "$LEX" && break
11685 done
11686 test -n "$LEX" || LEX=":"
11687
11688 if test -z "$LEXLIB"
11689 then
11690 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11691 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11692 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695 ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-lfl $LIBS"
11697 cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h. */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11703
11704 /* Override any gcc2 internal prototype to avoid an error. */
11705 #ifdef __cplusplus
11706 extern "C"
11707 #endif
11708 /* We use char because int might match the return type of a gcc2
11709 builtin and then its argument prototype would still apply. */
11710 char yywrap ();
11711 int
11712 main ()
11713 {
11714 yywrap ();
11715 ;
11716 return 0;
11717 }
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_lib_fl_yywrap=yes
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746 ac_cv_lib_fl_yywrap=no
11747 fi
11748 rm -f conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750 LIBS=$ac_check_lib_save_LIBS
11751 fi
11752 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11753 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11754 if test $ac_cv_lib_fl_yywrap = yes; then
11755 LEXLIB="-lfl"
11756 else
11757 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11758 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11759 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762 ac_check_lib_save_LIBS=$LIBS
11763 LIBS="-ll $LIBS"
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770
11771 /* Override any gcc2 internal prototype to avoid an error. */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 /* We use char because int might match the return type of a gcc2
11776 builtin and then its argument prototype would still apply. */
11777 char yywrap ();
11778 int
11779 main ()
11780 {
11781 yywrap ();
11782 ;
11783 return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11788 (eval $ac_link) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag"
11796 || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest$ac_exeext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_cv_lib_l_yywrap=yes
11809 else
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813 ac_cv_lib_l_yywrap=no
11814 fi
11815 rm -f conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817 LIBS=$ac_check_lib_save_LIBS
11818 fi
11819 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11820 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11821 if test $ac_cv_lib_l_yywrap = yes; then
11822 LEXLIB="-ll"
11823 fi
11824
11825 fi
11826
11827 fi
11828
11829 if test "x$LEX" != "x:"; then
11830 echo "$as_me:$LINENO: checking lex output file root" >&5
11831 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11832 if test "${ac_cv_prog_lex_root+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835 # The minimal lex program is just a single line: %%. But some broken lexes
11836 # (Solaris, I think it was) want two %% lines, so accommodate them.
11837 cat >conftest.l <<_ACEOF
11838 %%
11839 %%
11840 _ACEOF
11841 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11842 (eval $LEX conftest.l) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }
11846 if test -f lex.yy.c; then
11847 ac_cv_prog_lex_root=lex.yy
11848 elif test -f lexyy.c; then
11849 ac_cv_prog_lex_root=lexyy
11850 else
11851 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11852 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11853 { (exit 1); exit 1; }; }
11854 fi
11855 fi
11856 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11857 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11858 rm -f conftest.l
11859 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11860
11861 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11862 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11863 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866 # POSIX says lex can declare yytext either as a pointer or an array; the
11867 # default is implementation-dependent. Figure out which it is, since
11868 # not all implementations provide the %pointer and %array declarations.
11869 ac_cv_prog_lex_yytext_pointer=no
11870 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11871 ac_save_LIBS=$LIBS
11872 LIBS="$LIBS $LEXLIB"
11873 cat >conftest.$ac_ext <<_ACEOF
11874 `cat $LEX_OUTPUT_ROOT.c`
11875 _ACEOF
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_prog_lex_yytext_pointer=yes
11899 else
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 fi
11904 rm -f conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_save_LIBS
11907 rm -f "${LEX_OUTPUT_ROOT}.c"
11908
11909 fi
11910 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11911 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11913
11914 cat >>confdefs.h <<\_ACEOF
11915 #define YYTEXT_POINTER 1
11916 _ACEOF
11917
11918 fi
11919
11920 fi
11921 if test "$LEX" = :; then
11922 LEX=${am_missing_run}flex
11923 fi
11924
11925 ALL_LINGUAS="fr tr es rw"
11926 # If we haven't got the data from the intl directory,
11927 # assume NLS is disabled.
11928 USE_NLS=no
11929 LIBINTL=
11930 LIBINTL_DEP=
11931 INCINTL=
11932 XGETTEXT=
11933 GMSGFMT=
11934 POSUB=
11935
11936 if test -f ../intl/config.intl; then
11937 . ../intl/config.intl
11938 fi
11939 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11940 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11941 if test x"$USE_NLS" != xyes; then
11942 echo "$as_me:$LINENO: result: no" >&5
11943 echo "${ECHO_T}no" >&6
11944 else
11945 echo "$as_me:$LINENO: result: yes" >&5
11946 echo "${ECHO_T}yes" >&6
11947
11948 cat >>confdefs.h <<\_ACEOF
11949 #define ENABLE_NLS 1
11950 _ACEOF
11951
11952
11953 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11954 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11955 # Look for .po and .gmo files in the source directory.
11956 CATALOGS=
11957 XLINGUAS=
11958 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11959 # If there aren't any .gmo files the shell will give us the
11960 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11961 # weeded out.
11962 case "$cat" in *\**)
11963 continue;;
11964 esac
11965 # The quadruple backslash is collapsed to a double backslash
11966 # by the backticks, then collapsed again by the double quotes,
11967 # leaving us with one backslash in the sed expression (right
11968 # before the dot that mustn't act as a wildcard).
11969 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11970 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11971 # The user is allowed to set LINGUAS to a list of languages to
11972 # install catalogs for. If it's empty that means "all of them."
11973 if test "x$LINGUAS" = x; then
11974 CATALOGS="$CATALOGS $cat"
11975 XLINGUAS="$XLINGUAS $lang"
11976 else
11977 case "$LINGUAS" in *$lang*)
11978 CATALOGS="$CATALOGS $cat"
11979 XLINGUAS="$XLINGUAS $lang"
11980 ;;
11981 esac
11982 fi
11983 done
11984 LINGUAS="$XLINGUAS"
11985 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11986 echo "${ECHO_T}$LINGUAS" >&6
11987
11988
11989 DATADIRNAME=share
11990
11991 INSTOBJEXT=.mo
11992
11993 GENCAT=gencat
11994
11995 CATOBJEXT=.gmo
11996
11997 fi
11998
11999 MKINSTALLDIRS=
12000 if test -n "$ac_aux_dir"; then
12001 case "$ac_aux_dir" in
12002 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12003 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12004 esac
12005 fi
12006 if test -z "$MKINSTALLDIRS"; then
12007 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12008 fi
12009
12010
12011
12012 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12013 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12014 # Check whether --enable-nls or --disable-nls was given.
12015 if test "${enable_nls+set}" = set; then
12016 enableval="$enable_nls"
12017 USE_NLS=$enableval
12018 else
12019 USE_NLS=yes
12020 fi;
12021 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12022 echo "${ECHO_T}$USE_NLS" >&6
12023
12024
12025
12026
12027
12028
12029 # Prepare PATH_SEPARATOR.
12030 # The user is always right.
12031 if test "${PATH_SEPARATOR+set}" != set; then
12032 echo "#! /bin/sh" >conf$$.sh
12033 echo "exit 0" >>conf$$.sh
12034 chmod +x conf$$.sh
12035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12036 PATH_SEPARATOR=';'
12037 else
12038 PATH_SEPARATOR=:
12039 fi
12040 rm -f conf$$.sh
12041 fi
12042
12043 # Find out how to test for executable files. Don't use a zero-byte file,
12044 # as systems may use methods other than mode bits to determine executability.
12045 cat >conf$$.file <<_ASEOF
12046 #! /bin/sh
12047 exit 0
12048 _ASEOF
12049 chmod +x conf$$.file
12050 if test -x conf$$.file >/dev/null 2>&1; then
12051 ac_executable_p="test -x"
12052 else
12053 ac_executable_p="test -f"
12054 fi
12055 rm -f conf$$.file
12056
12057 # Extract the first word of "msgfmt", so it can be a program name with args.
12058 set dummy msgfmt; ac_word=$2
12059 echo "$as_me:$LINENO: checking for $ac_word" >&5
12060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061 if test "${ac_cv_path_MSGFMT+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064 case "$MSGFMT" in
12065 [\\/]* | ?:[\\/]*)
12066 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12067 ;;
12068 *)
12069 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12070 for ac_dir in $PATH; do
12071 IFS="$ac_save_IFS"
12072 test -z "$ac_dir" && ac_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12075 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12076 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12077 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12078 break 2
12079 fi
12080 fi
12081 done
12082 done
12083 IFS="$ac_save_IFS"
12084 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12085 ;;
12086 esac
12087 fi
12088 MSGFMT="$ac_cv_path_MSGFMT"
12089 if test "$MSGFMT" != ":"; then
12090 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12091 echo "${ECHO_T}$MSGFMT" >&6
12092 else
12093 echo "$as_me:$LINENO: result: no" >&5
12094 echo "${ECHO_T}no" >&6
12095 fi
12096
12097 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12098 set dummy gmsgfmt; ac_word=$2
12099 echo "$as_me:$LINENO: checking for $ac_word" >&5
12100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12101 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 case $GMSGFMT in
12105 [\\/]* | ?:[\\/]*)
12106 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12107 ;;
12108 *)
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12119 fi
12120 done
12121 done
12122
12123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12124 ;;
12125 esac
12126 fi
12127 GMSGFMT=$ac_cv_path_GMSGFMT
12128
12129 if test -n "$GMSGFMT"; then
12130 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12131 echo "${ECHO_T}$GMSGFMT" >&6
12132 else
12133 echo "$as_me:$LINENO: result: no" >&5
12134 echo "${ECHO_T}no" >&6
12135 fi
12136
12137
12138
12139 # Prepare PATH_SEPARATOR.
12140 # The user is always right.
12141 if test "${PATH_SEPARATOR+set}" != set; then
12142 echo "#! /bin/sh" >conf$$.sh
12143 echo "exit 0" >>conf$$.sh
12144 chmod +x conf$$.sh
12145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12146 PATH_SEPARATOR=';'
12147 else
12148 PATH_SEPARATOR=:
12149 fi
12150 rm -f conf$$.sh
12151 fi
12152
12153 # Find out how to test for executable files. Don't use a zero-byte file,
12154 # as systems may use methods other than mode bits to determine executability.
12155 cat >conf$$.file <<_ASEOF
12156 #! /bin/sh
12157 exit 0
12158 _ASEOF
12159 chmod +x conf$$.file
12160 if test -x conf$$.file >/dev/null 2>&1; then
12161 ac_executable_p="test -x"
12162 else
12163 ac_executable_p="test -f"
12164 fi
12165 rm -f conf$$.file
12166
12167 # Extract the first word of "xgettext", so it can be a program name with args.
12168 set dummy xgettext; ac_word=$2
12169 echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 case "$XGETTEXT" in
12175 [\\/]* | ?:[\\/]*)
12176 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12177 ;;
12178 *)
12179 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12180 for ac_dir in $PATH; do
12181 IFS="$ac_save_IFS"
12182 test -z "$ac_dir" && ac_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12185 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12186 (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
12187 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12188 break 2
12189 fi
12190 fi
12191 done
12192 done
12193 IFS="$ac_save_IFS"
12194 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12195 ;;
12196 esac
12197 fi
12198 XGETTEXT="$ac_cv_path_XGETTEXT"
12199 if test "$XGETTEXT" != ":"; then
12200 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12201 echo "${ECHO_T}$XGETTEXT" >&6
12202 else
12203 echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6
12205 fi
12206
12207 rm -f messages.po
12208
12209
12210 # Prepare PATH_SEPARATOR.
12211 # The user is always right.
12212 if test "${PATH_SEPARATOR+set}" != set; then
12213 echo "#! /bin/sh" >conf$$.sh
12214 echo "exit 0" >>conf$$.sh
12215 chmod +x conf$$.sh
12216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12217 PATH_SEPARATOR=';'
12218 else
12219 PATH_SEPARATOR=:
12220 fi
12221 rm -f conf$$.sh
12222 fi
12223
12224 # Find out how to test for executable files. Don't use a zero-byte file,
12225 # as systems may use methods other than mode bits to determine executability.
12226 cat >conf$$.file <<_ASEOF
12227 #! /bin/sh
12228 exit 0
12229 _ASEOF
12230 chmod +x conf$$.file
12231 if test -x conf$$.file >/dev/null 2>&1; then
12232 ac_executable_p="test -x"
12233 else
12234 ac_executable_p="test -f"
12235 fi
12236 rm -f conf$$.file
12237
12238 # Extract the first word of "msgmerge", so it can be a program name with args.
12239 set dummy msgmerge; ac_word=$2
12240 echo "$as_me:$LINENO: checking for $ac_word" >&5
12241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12242 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 case "$MSGMERGE" in
12246 [\\/]* | ?:[\\/]*)
12247 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12248 ;;
12249 *)
12250 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12251 for ac_dir in $PATH; do
12252 IFS="$ac_save_IFS"
12253 test -z "$ac_dir" && ac_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12256 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12257 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12258 break 2
12259 fi
12260 fi
12261 done
12262 done
12263 IFS="$ac_save_IFS"
12264 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12265 ;;
12266 esac
12267 fi
12268 MSGMERGE="$ac_cv_path_MSGMERGE"
12269 if test "$MSGMERGE" != ":"; then
12270 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12271 echo "${ECHO_T}$MSGMERGE" >&6
12272 else
12273 echo "$as_me:$LINENO: result: no" >&5
12274 echo "${ECHO_T}no" >&6
12275 fi
12276
12277
12278 if test "$GMSGFMT" != ":"; then
12279 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12280 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12281 : ;
12282 else
12283 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12284 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12285 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12286 GMSGFMT=":"
12287 fi
12288 fi
12289
12290 if test "$XGETTEXT" != ":"; then
12291 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12292 (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
12293 : ;
12294 else
12295 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12296 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12297 XGETTEXT=":"
12298 fi
12299 rm -f messages.po
12300 fi
12301
12302 ac_config_commands="$ac_config_commands default-1"
12303
12304
12305
12306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12308 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12309 if test "${enable_maintainer_mode+set}" = set; then
12310 enableval="$enable_maintainer_mode"
12311 USE_MAINTAINER_MODE=$enableval
12312 else
12313 USE_MAINTAINER_MODE=no
12314 fi;
12315 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12317
12318
12319 if test $USE_MAINTAINER_MODE = yes; then
12320 MAINTAINER_MODE_TRUE=
12321 MAINTAINER_MODE_FALSE='#'
12322 else
12323 MAINTAINER_MODE_TRUE='#'
12324 MAINTAINER_MODE_FALSE=
12325 fi
12326
12327 MAINT=$MAINTAINER_MODE_TRUE
12328
12329
12330
12331
12332 if false; then
12333 GENINSRC_NEVER_TRUE=
12334 GENINSRC_NEVER_FALSE='#'
12335 else
12336 GENINSRC_NEVER_TRUE='#'
12337 GENINSRC_NEVER_FALSE=
12338 fi
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
12353 do
12354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12356 echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 fi
12361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12363 else
12364 # Is the header compilable?
12365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12374 #include <$ac_header>
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_header_compiler=yes
12399 else
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_header_compiler=no
12404 fi
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12407 echo "${ECHO_T}$ac_header_compiler" >&6
12408
12409 # Is the header present?
12410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 #include <$ac_header>
12419 _ACEOF
12420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null; then
12428 if test -s conftest.err; then
12429 ac_cpp_err=$ac_c_preproc_warn_flag
12430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12431 else
12432 ac_cpp_err=
12433 fi
12434 else
12435 ac_cpp_err=yes
12436 fi
12437 if test -z "$ac_cpp_err"; then
12438 ac_header_preproc=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_header_preproc=no
12444 fi
12445 rm -f conftest.err conftest.$ac_ext
12446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12447 echo "${ECHO_T}$ac_header_preproc" >&6
12448
12449 # So? What about this header?
12450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12451 yes:no: )
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12456 ac_header_preproc=yes
12457 ;;
12458 no:yes:* )
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12471 (
12472 cat <<\_ASBOX
12473 ## ------------------------------------------ ##
12474 ## Report this to the AC_PACKAGE_NAME lists. ##
12475 ## ------------------------------------------ ##
12476 _ASBOX
12477 ) |
12478 sed "s/^/$as_me: WARNING: /" >&2
12479 ;;
12480 esac
12481 echo "$as_me:$LINENO: checking for $ac_header" >&5
12482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486 eval "$as_ac_Header=\$ac_header_preproc"
12487 fi
12488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12490
12491 fi
12492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493 cat >>confdefs.h <<_ACEOF
12494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12495 _ACEOF
12496
12497 fi
12498
12499 done
12500
12501
12502 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
12503 # people who are not cross-compiling but are compiling cross-assemblers.
12504 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12505 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
12506 if test "${host}" = "${target}"; then
12507 cross_gas=no
12508 else
12509 cross_gas=yes
12510
12511 cat >>confdefs.h <<\_ACEOF
12512 #define CROSS_COMPILE 1
12513 _ACEOF
12514
12515 fi
12516 echo "$as_me:$LINENO: result: $cross_gas" >&5
12517 echo "${ECHO_T}$cross_gas" >&6
12518
12519 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12520 # for constant arguments. Useless!
12521 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12522 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12523 if test "${ac_cv_working_alloca_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <alloca.h>
12533 int
12534 main ()
12535 {
12536 char *p = (char *) alloca (2 * sizeof (int));
12537 ;
12538 return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_working_alloca_h=yes
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ac_cv_working_alloca_h=no
12569 fi
12570 rm -f conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 fi
12573 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12574 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12575 if test $ac_cv_working_alloca_h = yes; then
12576
12577 cat >>confdefs.h <<\_ACEOF
12578 #define HAVE_ALLOCA_H 1
12579 _ACEOF
12580
12581 fi
12582
12583 echo "$as_me:$LINENO: checking for alloca" >&5
12584 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12585 if test "${ac_cv_func_alloca_works+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 #ifdef __GNUC__
12595 # define alloca __builtin_alloca
12596 #else
12597 # ifdef _MSC_VER
12598 # include <malloc.h>
12599 # define alloca _alloca
12600 # else
12601 # if HAVE_ALLOCA_H
12602 # include <alloca.h>
12603 # else
12604 # ifdef _AIX
12605 #pragma alloca
12606 # else
12607 # ifndef alloca /* predefined by HP cc +Olibcalls */
12608 char *alloca ();
12609 # endif
12610 # endif
12611 # endif
12612 # endif
12613 #endif
12614
12615 int
12616 main ()
12617 {
12618 char *p = (char *) alloca (1);
12619 ;
12620 return 0;
12621 }
12622 _ACEOF
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625 (eval $ac_link) 2>conftest.er1
12626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_c_werror_flag"
12633 || test ! -s conftest.err'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_cv_func_alloca_works=yes
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12649
12650 ac_cv_func_alloca_works=no
12651 fi
12652 rm -f conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 fi
12655 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12656 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12657
12658 if test $ac_cv_func_alloca_works = yes; then
12659
12660 cat >>confdefs.h <<\_ACEOF
12661 #define HAVE_ALLOCA 1
12662 _ACEOF
12663
12664 else
12665 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12666 # that cause trouble. Some versions do not even contain alloca or
12667 # contain a buggy version. If you still want to use their alloca,
12668 # use ar to extract alloca.o from them instead of compiling alloca.c.
12669
12670 ALLOCA=alloca.$ac_objext
12671
12672 cat >>confdefs.h <<\_ACEOF
12673 #define C_ALLOCA 1
12674 _ACEOF
12675
12676
12677 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12678 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12679 if test "${ac_cv_os_cray+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h. */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 #if defined(CRAY) && ! defined(CRAY2)
12689 webecray
12690 #else
12691 wenotbecray
12692 #endif
12693
12694 _ACEOF
12695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12696 $EGREP "webecray" >/dev/null 2>&1; then
12697 ac_cv_os_cray=yes
12698 else
12699 ac_cv_os_cray=no
12700 fi
12701 rm -f conftest*
12702
12703 fi
12704 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12705 echo "${ECHO_T}$ac_cv_os_cray" >&6
12706 if test $ac_cv_os_cray = yes; then
12707 for ac_func in _getb67 GETB67 getb67; do
12708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709 echo "$as_me:$LINENO: checking for $ac_func" >&5
12710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12711 if eval "test \"\${$as_ac_var+set}\" = set"; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714 cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h. */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722 #define $ac_func innocuous_$ac_func
12723
12724 /* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
12728
12729 #ifdef __STDC__
12730 # include <limits.h>
12731 #else
12732 # include <assert.h>
12733 #endif
12734
12735 #undef $ac_func
12736
12737 /* Override any gcc2 internal prototype to avoid an error. */
12738 #ifdef __cplusplus
12739 extern "C"
12740 {
12741 #endif
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12744 char $ac_func ();
12745 /* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12749 choke me
12750 #else
12751 char (*f) () = $ac_func;
12752 #endif
12753 #ifdef __cplusplus
12754 }
12755 #endif
12756
12757 int
12758 main ()
12759 {
12760 return f != $ac_func;
12761 ;
12762 return 0;
12763 }
12764 _ACEOF
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>conftest.er1
12768 ac_status=$?
12769 grep -v '^ *+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_c_werror_flag"
12775 || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 eval "$as_ac_var=yes"
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 eval "$as_ac_var=no"
12793 fi
12794 rm -f conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 fi
12797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12799 if test `eval echo '${'$as_ac_var'}'` = yes; then
12800
12801 cat >>confdefs.h <<_ACEOF
12802 #define CRAY_STACKSEG_END $ac_func
12803 _ACEOF
12804
12805 break
12806 fi
12807
12808 done
12809 fi
12810
12811 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12812 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12813 if test "${ac_cv_c_stack_direction+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816 if test "$cross_compiling" = yes; then
12817 ac_cv_c_stack_direction=0
12818 else
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h. */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825 int
12826 find_stack_direction ()
12827 {
12828 static char *addr = 0;
12829 auto char dummy;
12830 if (addr == 0)
12831 {
12832 addr = &dummy;
12833 return find_stack_direction ();
12834 }
12835 else
12836 return (&dummy > addr) ? 1 : -1;
12837 }
12838
12839 int
12840 main ()
12841 {
12842 exit (find_stack_direction () < 0);
12843 }
12844 _ACEOF
12845 rm -f conftest$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_cv_c_stack_direction=1
12857 else
12858 echo "$as_me: program exited with status $ac_status" >&5
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862 ( exit $ac_status )
12863 ac_cv_c_stack_direction=-1
12864 fi
12865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12866 fi
12867 fi
12868 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12869 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12870
12871 cat >>confdefs.h <<_ACEOF
12872 #define STACK_DIRECTION $ac_cv_c_stack_direction
12873 _ACEOF
12874
12875
12876 fi
12877
12878 echo "$as_me:$LINENO: checking for inline" >&5
12879 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12880 if test "${ac_cv_c_inline+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 ac_cv_c_inline=no
12884 for ac_kw in inline __inline__ __inline; do
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h. */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 #ifndef __cplusplus
12892 typedef int foo_t;
12893 static $ac_kw foo_t static_foo () {return 0; }
12894 $ac_kw foo_t foo () {return 0; }
12895 #endif
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 ac_cv_c_inline=$ac_kw; break
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925 fi
12926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12927 done
12928
12929 fi
12930 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12931 echo "${ECHO_T}$ac_cv_c_inline" >&6
12932
12933
12934 case $ac_cv_c_inline in
12935 inline | yes) ;;
12936 *)
12937 case $ac_cv_c_inline in
12938 no) ac_val=;;
12939 *) ac_val=$ac_cv_c_inline;;
12940 esac
12941 cat >>confdefs.h <<_ACEOF
12942 #ifndef __cplusplus
12943 #define inline $ac_val
12944 #endif
12945 _ACEOF
12946 ;;
12947 esac
12948
12949
12950 # VMS doesn't have unlink.
12951
12952
12953 for ac_func in unlink remove
12954 do
12955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12956 echo "$as_me:$LINENO: checking for $ac_func" >&5
12957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12958 if eval "test \"\${$as_ac_var+set}\" = set"; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h. */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12969 #define $ac_func innocuous_$ac_func
12970
12971 /* System header to define __stub macros and hopefully few prototypes,
12972 which can conflict with char $ac_func (); below.
12973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12974 <limits.h> exists even on freestanding compilers. */
12975
12976 #ifdef __STDC__
12977 # include <limits.h>
12978 #else
12979 # include <assert.h>
12980 #endif
12981
12982 #undef $ac_func
12983
12984 /* Override any gcc2 internal prototype to avoid an error. */
12985 #ifdef __cplusplus
12986 extern "C"
12987 {
12988 #endif
12989 /* We use char because int might match the return type of a gcc2
12990 builtin and then its argument prototype would still apply. */
12991 char $ac_func ();
12992 /* The GNU C library defines this for functions which it implements
12993 to always fail with ENOSYS. Some functions are actually named
12994 something starting with __ and the normal name is an alias. */
12995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12996 choke me
12997 #else
12998 char (*f) () = $ac_func;
12999 #endif
13000 #ifdef __cplusplus
13001 }
13002 #endif
13003
13004 int
13005 main ()
13006 {
13007 return f != $ac_func;
13008 ;
13009 return 0;
13010 }
13011 _ACEOF
13012 rm -f conftest.$ac_objext conftest$ac_exeext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13014 (eval $ac_link) 2>conftest.er1
13015 ac_status=$?
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -z "$ac_c_werror_flag"
13022 || test ! -s conftest.err'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest$ac_exeext'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 eval "$as_ac_var=yes"
13035 else
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039 eval "$as_ac_var=no"
13040 fi
13041 rm -f conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043 fi
13044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13046 if test `eval echo '${'$as_ac_var'}'` = yes; then
13047 cat >>confdefs.h <<_ACEOF
13048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13049 _ACEOF
13050 break
13051 fi
13052 done
13053
13054
13055 # Some systems don't have sbrk().
13056
13057 for ac_func in sbrk
13058 do
13059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13060 echo "$as_me:$LINENO: checking for $ac_func" >&5
13061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13062 if eval "test \"\${$as_ac_var+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065 cat >conftest.$ac_ext <<_ACEOF
13066 /* confdefs.h. */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13073 #define $ac_func innocuous_$ac_func
13074
13075 /* System header to define __stub macros and hopefully few prototypes,
13076 which can conflict with char $ac_func (); below.
13077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13078 <limits.h> exists even on freestanding compilers. */
13079
13080 #ifdef __STDC__
13081 # include <limits.h>
13082 #else
13083 # include <assert.h>
13084 #endif
13085
13086 #undef $ac_func
13087
13088 /* Override any gcc2 internal prototype to avoid an error. */
13089 #ifdef __cplusplus
13090 extern "C"
13091 {
13092 #endif
13093 /* We use char because int might match the return type of a gcc2
13094 builtin and then its argument prototype would still apply. */
13095 char $ac_func ();
13096 /* The GNU C library defines this for functions which it implements
13097 to always fail with ENOSYS. Some functions are actually named
13098 something starting with __ and the normal name is an alias. */
13099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13100 choke me
13101 #else
13102 char (*f) () = $ac_func;
13103 #endif
13104 #ifdef __cplusplus
13105 }
13106 #endif
13107
13108 int
13109 main ()
13110 {
13111 return f != $ac_func;
13112 ;
13113 return 0;
13114 }
13115 _ACEOF
13116 rm -f conftest.$ac_objext conftest$ac_exeext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13118 (eval $ac_link) 2>conftest.er1
13119 ac_status=$?
13120 grep -v '^ *+' conftest.er1 >conftest.err
13121 rm -f conftest.er1
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -z "$ac_c_werror_flag"
13126 || test ! -s conftest.err'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest$ac_exeext'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 eval "$as_ac_var=yes"
13139 else
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13142
13143 eval "$as_ac_var=no"
13144 fi
13145 rm -f conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 fi
13148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13150 if test `eval echo '${'$as_ac_var'}'` = yes; then
13151 cat >>confdefs.h <<_ACEOF
13152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13153 _ACEOF
13154
13155 fi
13156 done
13157
13158
13159 # do we need the math library?
13160 case "${need_libm}" in
13161 yes)
13162 LIBM=
13163 case $host in
13164 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13165 # These system don't have libm, or don't need it
13166 ;;
13167 *-ncr-sysv4.3*)
13168 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
13169 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
13170 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-lmw $LIBS"
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h. */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181
13182 /* Override any gcc2 internal prototype to avoid an error. */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 /* We use char because int might match the return type of a gcc2
13187 builtin and then its argument prototype would still apply. */
13188 char _mwvalidcheckl ();
13189 int
13190 main ()
13191 {
13192 _mwvalidcheckl ();
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest$ac_exeext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_cv_lib_mw__mwvalidcheckl=yes
13220 else
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13223
13224 ac_cv_lib_mw__mwvalidcheckl=no
13225 fi
13226 rm -f conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13228 LIBS=$ac_check_lib_save_LIBS
13229 fi
13230 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13231 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
13232 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
13233 LIBM="-lmw"
13234 fi
13235
13236 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13237 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13238 if test "${ac_cv_lib_m_cos+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 ac_check_lib_save_LIBS=$LIBS
13242 LIBS="-lm $LIBS"
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249
13250 /* Override any gcc2 internal prototype to avoid an error. */
13251 #ifdef __cplusplus
13252 extern "C"
13253 #endif
13254 /* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13256 char cos ();
13257 int
13258 main ()
13259 {
13260 cos ();
13261 ;
13262 return 0;
13263 }
13264 _ACEOF
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267 (eval $ac_link) 2>conftest.er1
13268 ac_status=$?
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest$ac_exeext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_lib_m_cos=yes
13288 else
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292 ac_cv_lib_m_cos=no
13293 fi
13294 rm -f conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS
13297 fi
13298 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13299 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13300 if test $ac_cv_lib_m_cos = yes; then
13301 LIBM="$LIBM -lm"
13302 fi
13303
13304 ;;
13305 *)
13306 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13307 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13308 if test "${ac_cv_lib_m_cos+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311 ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-lm $LIBS"
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319
13320 /* Override any gcc2 internal prototype to avoid an error. */
13321 #ifdef __cplusplus
13322 extern "C"
13323 #endif
13324 /* We use char because int might match the return type of a gcc2
13325 builtin and then its argument prototype would still apply. */
13326 char cos ();
13327 int
13328 main ()
13329 {
13330 cos ();
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13337 (eval $ac_link) 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag"
13345 || test ! -s conftest.err'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest$ac_exeext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_lib_m_cos=yes
13358 else
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13361
13362 ac_cv_lib_m_cos=no
13363 fi
13364 rm -f conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13367 fi
13368 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13369 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13370 if test $ac_cv_lib_m_cos = yes; then
13371 LIBM="-lm"
13372 fi
13373
13374 ;;
13375 esac
13376
13377
13378
13379 ;;
13380 esac
13381
13382 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13383 # enough, but on some of those systems, the assert macro relies on requoting
13384 # working properly!
13385 echo "$as_me:$LINENO: checking for working assert macro" >&5
13386 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13387 if test "${gas_cv_assert_ok+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h. */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <assert.h>
13397 #include <stdio.h>
13398 int
13399 main ()
13400 {
13401
13402 /* check for requoting problems */
13403 static int a, b, c, d;
13404 static char *s;
13405 assert (!strcmp(s, "foo bar baz quux"));
13406 /* check for newline handling */
13407 assert (a == b
13408 || c == d);
13409
13410 ;
13411 return 0;
13412 }
13413 _ACEOF
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416 (eval $ac_link) 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest$ac_exeext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 gas_cv_assert_ok=yes
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441 gas_cv_assert_ok=no
13442 fi
13443 rm -f conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 fi
13446 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13447 echo "${ECHO_T}$gas_cv_assert_ok" >&6
13448 test $gas_cv_assert_ok = yes ||
13449 cat >>confdefs.h <<\_ACEOF
13450 #define BROKEN_ASSERT 1
13451 _ACEOF
13452
13453
13454
13455 # On some systems, the system header files may not declare malloc, realloc,
13456 # and free. There are places where gas needs these functions to have been
13457 # declared -- such as when taking their addresses.
13458 gas_test_headers="
13459 #ifdef HAVE_MEMORY_H
13460 #include <memory.h>
13461 #endif
13462 #ifdef HAVE_STRING_H
13463 #include <string.h>
13464 #else
13465 #ifdef HAVE_STRINGS_H
13466 #include <strings.h>
13467 #endif
13468 #endif
13469 #ifdef HAVE_STDLIB_H
13470 #include <stdlib.h>
13471 #endif
13472 #ifdef HAVE_UNISTD_H
13473 #include <unistd.h>
13474 #endif
13475 "
13476
13477 # Does errno.h declare errno, or do we have to add a separate declaration
13478 # for it?
13479
13480 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13481 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13482 if test "${gas_cv_decl_needed_errno+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491
13492 #ifdef HAVE_ERRNO_H
13493 #include <errno.h>
13494 #endif
13495
13496 int
13497 main ()
13498 {
13499
13500 typedef int f;
13501 f x;
13502 x = (f) errno;
13503
13504 ;
13505 return 0;
13506 }
13507 _ACEOF
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510 (eval $ac_link) 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag"
13518 || test ! -s conftest.err'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } &&
13524 { ac_try='test -s conftest$ac_exeext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 gas_cv_decl_needed_errno=no
13531 else
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535 gas_cv_decl_needed_errno=yes
13536 fi
13537 rm -f conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13539 fi
13540 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13541 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13542 if test $gas_cv_decl_needed_errno = yes; then
13543
13544 cat >>confdefs.h <<\_ACEOF
13545 #define NEED_DECLARATION_ERRNO 1
13546 _ACEOF
13547
13548 fi
13549
13550
13551 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13552 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13553 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 else
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h. */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <unistd.h>
13563 int
13564 main ()
13565 {
13566 extern int getopt (int, char *const*, const char *);
13567 ;
13568 return 0;
13569 }
13570 _ACEOF
13571 rm -f conftest.$ac_objext
13572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13573 (eval $ac_compile) 2>conftest.er1
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag"
13581 || test ! -s conftest.err'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 gas_cv_decl_getopt_unistd_h=yes
13594 else
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598 gas_cv_decl_getopt_unistd_h=no
13599 fi
13600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13601 fi
13602
13603 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13604 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13605 if test $gas_cv_decl_getopt_unistd_h = yes; then
13606
13607 cat >>confdefs.h <<\_ACEOF
13608 #define HAVE_DECL_GETOPT 1
13609 _ACEOF
13610
13611 fi
13612
13613
13614 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13615 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13616 if test "${gas_cv_decl_needed_environ+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h. */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 $gas_test_headers
13626 int
13627 main ()
13628 {
13629
13630 typedef char **f;
13631 f x;
13632 x = (f) environ;
13633
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13640 (eval $ac_link) 2>conftest.er1
13641 ac_status=$?
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest$ac_exeext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 gas_cv_decl_needed_environ=no
13661 else
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664
13665 gas_cv_decl_needed_environ=yes
13666 fi
13667 rm -f conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext conftest.$ac_ext
13669 fi
13670 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13671 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13672 if test $gas_cv_decl_needed_environ = yes; then
13673
13674 cat >>confdefs.h <<\_ACEOF
13675 #define NEED_DECLARATION_ENVIRON 1
13676 _ACEOF
13677
13678 fi
13679
13680
13681 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13682 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13683 if test "${gas_cv_decl_needed_ffs+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h. */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13692 $gas_test_headers
13693 int
13694 main ()
13695 {
13696
13697 typedef int (*f)(int);
13698 f x;
13699 x = (f) ffs;
13700
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707 (eval $ac_link) 2>conftest.er1
13708 ac_status=$?
13709 grep -v '^ *+' conftest.er1 >conftest.err
13710 rm -f conftest.er1
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest$ac_exeext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 gas_cv_decl_needed_ffs=no
13728 else
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 gas_cv_decl_needed_ffs=yes
13733 fi
13734 rm -f conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13736 fi
13737 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13738 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13739 if test $gas_cv_decl_needed_ffs = yes; then
13740
13741 cat >>confdefs.h <<\_ACEOF
13742 #define NEED_DECLARATION_FFS 1
13743 _ACEOF
13744
13745 fi
13746
13747
13748 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13749 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13750 if test "${gas_cv_decl_needed_free+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753 cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h. */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 $gas_test_headers
13760 int
13761 main ()
13762 {
13763
13764 typedef void (*f)();
13765 f x;
13766 x = (f) free;
13767
13768 ;
13769 return 0;
13770 }
13771 _ACEOF
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13774 (eval $ac_link) 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 gas_cv_decl_needed_free=no
13795 else
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 gas_cv_decl_needed_free=yes
13800 fi
13801 rm -f conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13803 fi
13804 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13805 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13806 if test $gas_cv_decl_needed_free = yes; then
13807
13808 cat >>confdefs.h <<\_ACEOF
13809 #define NEED_DECLARATION_FREE 1
13810 _ACEOF
13811
13812 fi
13813
13814
13815 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13816 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13817 if test "${gas_cv_decl_needed_malloc+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820 cat >conftest.$ac_ext <<_ACEOF
13821 /* confdefs.h. */
13822 _ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 $gas_test_headers
13827 int
13828 main ()
13829 {
13830
13831 typedef char *(*f)();
13832 f x;
13833 x = (f) malloc;
13834
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 gas_cv_decl_needed_malloc=no
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 gas_cv_decl_needed_malloc=yes
13867 fi
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 fi
13871 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13872 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13873 if test $gas_cv_decl_needed_malloc = yes; then
13874
13875 cat >>confdefs.h <<\_ACEOF
13876 #define NEED_DECLARATION_MALLOC 1
13877 _ACEOF
13878
13879 fi
13880
13881
13882 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13883 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13884 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887 cat >conftest.$ac_ext <<_ACEOF
13888 /* confdefs.h. */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 $gas_test_headers
13894 int
13895 main ()
13896 {
13897
13898 typedef char *(*f)();
13899 f x;
13900 x = (f) sbrk;
13901
13902 ;
13903 return 0;
13904 }
13905 _ACEOF
13906 rm -f conftest.$ac_objext conftest$ac_exeext
13907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13908 (eval $ac_link) 2>conftest.er1
13909 ac_status=$?
13910 grep -v '^ *+' conftest.er1 >conftest.err
13911 rm -f conftest.er1
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -z "$ac_c_werror_flag"
13916 || test ! -s conftest.err'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } &&
13922 { ac_try='test -s conftest$ac_exeext'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 gas_cv_decl_needed_sbrk=no
13929 else
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13932
13933 gas_cv_decl_needed_sbrk=yes
13934 fi
13935 rm -f conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13937 fi
13938 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13939 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13940 if test $gas_cv_decl_needed_sbrk = yes; then
13941
13942 cat >>confdefs.h <<\_ACEOF
13943 #define NEED_DECLARATION_SBRK 1
13944 _ACEOF
13945
13946 fi
13947
13948
13949 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13950 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13951 if test "${gas_cv_decl_needed_strstr+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 $gas_test_headers
13961 int
13962 main ()
13963 {
13964
13965 typedef char *(*f)();
13966 f x;
13967 x = (f) strstr;
13968
13969 ;
13970 return 0;
13971 }
13972 _ACEOF
13973 rm -f conftest.$ac_objext conftest$ac_exeext
13974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13975 (eval $ac_link) 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } &&
13982 { ac_try='test -z "$ac_c_werror_flag"
13983 || test ! -s conftest.err'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest$ac_exeext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 gas_cv_decl_needed_strstr=no
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000 gas_cv_decl_needed_strstr=yes
14001 fi
14002 rm -f conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
14004 fi
14005 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
14006 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
14007 if test $gas_cv_decl_needed_strstr = yes; then
14008
14009 cat >>confdefs.h <<\_ACEOF
14010 #define NEED_DECLARATION_STRSTR 1
14011 _ACEOF
14012
14013 fi
14014
14015
14016 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14017 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14018 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021 cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h. */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14027 $ac_includes_default
14028 int
14029 main ()
14030 {
14031 #ifndef vsnprintf
14032 char *p = (char *) vsnprintf;
14033 #endif
14034
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 rm -f conftest.$ac_objext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_have_decl_vsnprintf=yes
14062 else
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14065
14066 ac_cv_have_decl_vsnprintf=no
14067 fi
14068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14069 fi
14070 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14071 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14072 if test $ac_cv_have_decl_vsnprintf = yes; then
14073
14074 cat >>confdefs.h <<_ACEOF
14075 #define HAVE_DECL_VSNPRINTF 1
14076 _ACEOF
14077
14078
14079 else
14080 cat >>confdefs.h <<_ACEOF
14081 #define HAVE_DECL_VSNPRINTF 0
14082 _ACEOF
14083
14084
14085 fi
14086
14087
14088
14089
14090 case "${host}" in
14091 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14092
14093 cat >>confdefs.h <<\_ACEOF
14094 #define USE_BINARY_FOPEN 1
14095 _ACEOF
14096 ;;
14097 esac
14098
14099
14100
14101
14102
14103
14104
14105 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14106
14107 ac_config_commands="$ac_config_commands default"
14108
14109
14110 cat >confcache <<\_ACEOF
14111 # This file is a shell script that caches the results of configure
14112 # tests run on this system so they can be shared between configure
14113 # scripts and configure runs, see configure's option --config-cache.
14114 # It is not useful on other systems. If it contains results you don't
14115 # want to keep, you may remove or edit it.
14116 #
14117 # config.status only pays attention to the cache file if you give it
14118 # the --recheck option to rerun configure.
14119 #
14120 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14121 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14122 # following values.
14123
14124 _ACEOF
14125
14126 # The following way of writing the cache mishandles newlines in values,
14127 # but we know of no workaround that is simple, portable, and efficient.
14128 # So, don't put newlines in cache variables' values.
14129 # Ultrix sh set writes to stderr and can't be redirected directly,
14130 # and sets the high bit in the cache file unless we assign to the vars.
14131 {
14132 (set) 2>&1 |
14133 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14134 *ac_space=\ *)
14135 # `set' does not quote correctly, so add quotes (double-quote
14136 # substitution turns \\\\ into \\, and sed turns \\ into \).
14137 sed -n \
14138 "s/'/'\\\\''/g;
14139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14140 ;;
14141 *)
14142 # `set' quotes correctly as required by POSIX, so do not add quotes.
14143 sed -n \
14144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14145 ;;
14146 esac;
14147 } |
14148 sed '
14149 t clear
14150 : clear
14151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14152 t end
14153 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14154 : end' >>confcache
14155 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14156 if test -w $cache_file; then
14157 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14158 cat confcache >$cache_file
14159 else
14160 echo "not updating unwritable cache $cache_file"
14161 fi
14162 fi
14163 rm -f confcache
14164
14165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14166 # Let make expand exec_prefix.
14167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14168
14169 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14170 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14171 # trailing colons and then remove the whole line if VPATH becomes empty
14172 # (actually we leave an empty line to preserve line numbers).
14173 if test "x$srcdir" = x.; then
14174 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14175 s/:*\$(srcdir):*/:/;
14176 s/:*\${srcdir}:*/:/;
14177 s/:*@srcdir@:*/:/;
14178 s/^\([^=]*=[ ]*\):*/\1/;
14179 s/:*$//;
14180 s/^[^=]*=[ ]*$//;
14181 }'
14182 fi
14183
14184 DEFS=-DHAVE_CONFIG_H
14185
14186 ac_libobjs=
14187 ac_ltlibobjs=
14188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14189 # 1. Remove the extension, and $U if already installed.
14190 ac_i=`echo "$ac_i" |
14191 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14192 # 2. Add them.
14193 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14194 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14195 done
14196 LIBOBJS=$ac_libobjs
14197
14198 LTLIBOBJS=$ac_ltlibobjs
14199
14200
14201 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14202 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14203 Usually this means the macro was only invoked conditionally." >&5
14204 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14205 Usually this means the macro was only invoked conditionally." >&2;}
14206 { (exit 1); exit 1; }; }
14207 fi
14208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14209 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14210 Usually this means the macro was only invoked conditionally." >&5
14211 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14212 Usually this means the macro was only invoked conditionally." >&2;}
14213 { (exit 1); exit 1; }; }
14214 fi
14215 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14216 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14217 Usually this means the macro was only invoked conditionally." >&5
14218 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14219 Usually this means the macro was only invoked conditionally." >&2;}
14220 { (exit 1); exit 1; }; }
14221 fi
14222 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14223 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14224 Usually this means the macro was only invoked conditionally." >&5
14225 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14226 Usually this means the macro was only invoked conditionally." >&2;}
14227 { (exit 1); exit 1; }; }
14228 fi
14229
14230 : ${CONFIG_STATUS=./config.status}
14231 ac_clean_files_save=$ac_clean_files
14232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14235 cat >$CONFIG_STATUS <<_ACEOF
14236 #! $SHELL
14237 # Generated by $as_me.
14238 # Run this file to recreate the current configuration.
14239 # Compiler output produced by configure, useful for debugging
14240 # configure, is in config.log if it exists.
14241
14242 debug=false
14243 ac_cs_recheck=false
14244 ac_cs_silent=false
14245 SHELL=\${CONFIG_SHELL-$SHELL}
14246 _ACEOF
14247
14248 cat >>$CONFIG_STATUS <<\_ACEOF
14249 ## --------------------- ##
14250 ## M4sh Initialization. ##
14251 ## --------------------- ##
14252
14253 # Be Bourne compatible
14254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14255 emulate sh
14256 NULLCMD=:
14257 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14258 # is contrary to our usage. Disable this feature.
14259 alias -g '${1+"$@"}'='"$@"'
14260 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14261 set -o posix
14262 fi
14263 DUALCASE=1; export DUALCASE # for MKS sh
14264
14265 # Support unset when possible.
14266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14267 as_unset=unset
14268 else
14269 as_unset=false
14270 fi
14271
14272
14273 # Work around bugs in pre-3.0 UWIN ksh.
14274 $as_unset ENV MAIL MAILPATH
14275 PS1='$ '
14276 PS2='> '
14277 PS4='+ '
14278
14279 # NLS nuisances.
14280 for as_var in \
14281 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14282 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14283 LC_TELEPHONE LC_TIME
14284 do
14285 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14286 eval $as_var=C; export $as_var
14287 else
14288 $as_unset $as_var
14289 fi
14290 done
14291
14292 # Required to use basename.
14293 if expr a : '\(a\)' >/dev/null 2>&1; then
14294 as_expr=expr
14295 else
14296 as_expr=false
14297 fi
14298
14299 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14300 as_basename=basename
14301 else
14302 as_basename=false
14303 fi
14304
14305
14306 # Name of the executable.
14307 as_me=`$as_basename "$0" ||
14308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14309 X"$0" : 'X\(//\)$' \| \
14310 X"$0" : 'X\(/\)$' \| \
14311 . : '\(.\)' 2>/dev/null ||
14312 echo X/"$0" |
14313 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14314 /^X\/\(\/\/\)$/{ s//\1/; q; }
14315 /^X\/\(\/\).*/{ s//\1/; q; }
14316 s/.*/./; q'`
14317
14318
14319 # PATH needs CR, and LINENO needs CR and PATH.
14320 # Avoid depending upon Character Ranges.
14321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14324 as_cr_digits='0123456789'
14325 as_cr_alnum=$as_cr_Letters$as_cr_digits
14326
14327 # The user is always right.
14328 if test "${PATH_SEPARATOR+set}" != set; then
14329 echo "#! /bin/sh" >conf$$.sh
14330 echo "exit 0" >>conf$$.sh
14331 chmod +x conf$$.sh
14332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14333 PATH_SEPARATOR=';'
14334 else
14335 PATH_SEPARATOR=:
14336 fi
14337 rm -f conf$$.sh
14338 fi
14339
14340
14341 as_lineno_1=$LINENO
14342 as_lineno_2=$LINENO
14343 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14344 test "x$as_lineno_1" != "x$as_lineno_2" &&
14345 test "x$as_lineno_3" = "x$as_lineno_2" || {
14346 # Find who we are. Look in the path if we contain no path at all
14347 # relative or not.
14348 case $0 in
14349 *[\\/]* ) as_myself=$0 ;;
14350 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14352 do
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14356 done
14357
14358 ;;
14359 esac
14360 # We did not find ourselves, most probably we were run as `sh COMMAND'
14361 # in which case we are not to be found in the path.
14362 if test "x$as_myself" = x; then
14363 as_myself=$0
14364 fi
14365 if test ! -f "$as_myself"; then
14366 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14367 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14368 { (exit 1); exit 1; }; }
14369 fi
14370 case $CONFIG_SHELL in
14371 '')
14372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14374 do
14375 IFS=$as_save_IFS
14376 test -z "$as_dir" && as_dir=.
14377 for as_base in sh bash ksh sh5; do
14378 case $as_dir in
14379 /*)
14380 if ("$as_dir/$as_base" -c '
14381 as_lineno_1=$LINENO
14382 as_lineno_2=$LINENO
14383 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14384 test "x$as_lineno_1" != "x$as_lineno_2" &&
14385 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14386 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14387 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14388 CONFIG_SHELL=$as_dir/$as_base
14389 export CONFIG_SHELL
14390 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14391 fi;;
14392 esac
14393 done
14394 done
14395 ;;
14396 esac
14397
14398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14399 # uniformly replaced by the line number. The first 'sed' inserts a
14400 # line-number line before each line; the second 'sed' does the real
14401 # work. The second script uses 'N' to pair each line-number line
14402 # with the numbered line, and appends trailing '-' during
14403 # substitution so that $LINENO is not a special case at line end.
14404 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14405 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14406 sed '=' <$as_myself |
14407 sed '
14408 N
14409 s,$,-,
14410 : loop
14411 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14412 t loop
14413 s,-$,,
14414 s,^['$as_cr_digits']*\n,,
14415 ' >$as_me.lineno &&
14416 chmod +x $as_me.lineno ||
14417 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14418 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14419 { (exit 1); exit 1; }; }
14420
14421 # Don't try to exec as it changes $[0], causing all sort of problems
14422 # (the dirname of $[0] is not the place where we might find the
14423 # original and so on. Autoconf is especially sensible to this).
14424 . ./$as_me.lineno
14425 # Exit status is that of the last command.
14426 exit
14427 }
14428
14429
14430 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14431 *c*,-n*) ECHO_N= ECHO_C='
14432 ' ECHO_T=' ' ;;
14433 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14434 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14435 esac
14436
14437 if expr a : '\(a\)' >/dev/null 2>&1; then
14438 as_expr=expr
14439 else
14440 as_expr=false
14441 fi
14442
14443 rm -f conf$$ conf$$.exe conf$$.file
14444 echo >conf$$.file
14445 if ln -s conf$$.file conf$$ 2>/dev/null; then
14446 # We could just check for DJGPP; but this test a) works b) is more generic
14447 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14448 if test -f conf$$.exe; then
14449 # Don't use ln at all; we don't have any links
14450 as_ln_s='cp -p'
14451 else
14452 as_ln_s='ln -s'
14453 fi
14454 elif ln conf$$.file conf$$ 2>/dev/null; then
14455 as_ln_s=ln
14456 else
14457 as_ln_s='cp -p'
14458 fi
14459 rm -f conf$$ conf$$.exe conf$$.file
14460
14461 if mkdir -p . 2>/dev/null; then
14462 as_mkdir_p=:
14463 else
14464 test -d ./-p && rmdir ./-p
14465 as_mkdir_p=false
14466 fi
14467
14468 as_executable_p="test -f"
14469
14470 # Sed expression to map a string onto a valid CPP name.
14471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14472
14473 # Sed expression to map a string onto a valid variable name.
14474 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14475
14476
14477 # IFS
14478 # We need space, tab and new line, in precisely that order.
14479 as_nl='
14480 '
14481 IFS=" $as_nl"
14482
14483 # CDPATH.
14484 $as_unset CDPATH
14485
14486 exec 6>&1
14487
14488 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14489 # report actual input values of CONFIG_FILES etc. instead of their
14490 # values after options handling. Logging --version etc. is OK.
14491 exec 5>>config.log
14492 {
14493 echo
14494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14495 ## Running $as_me. ##
14496 _ASBOX
14497 } >&5
14498 cat >&5 <<_CSEOF
14499
14500 This file was extended by $as_me, which was
14501 generated by GNU Autoconf 2.59. Invocation command line was
14502
14503 CONFIG_FILES = $CONFIG_FILES
14504 CONFIG_HEADERS = $CONFIG_HEADERS
14505 CONFIG_LINKS = $CONFIG_LINKS
14506 CONFIG_COMMANDS = $CONFIG_COMMANDS
14507 $ $0 $@
14508
14509 _CSEOF
14510 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14511 echo >&5
14512 _ACEOF
14513
14514 # Files that config.status was made for.
14515 if test -n "$ac_config_files"; then
14516 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14517 fi
14518
14519 if test -n "$ac_config_headers"; then
14520 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14521 fi
14522
14523 if test -n "$ac_config_links"; then
14524 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14525 fi
14526
14527 if test -n "$ac_config_commands"; then
14528 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14529 fi
14530
14531 cat >>$CONFIG_STATUS <<\_ACEOF
14532
14533 ac_cs_usage="\
14534 \`$as_me' instantiates files from templates according to the
14535 current configuration.
14536
14537 Usage: $0 [OPTIONS] [FILE]...
14538
14539 -h, --help print this help, then exit
14540 -V, --version print version number, then exit
14541 -q, --quiet do not print progress messages
14542 -d, --debug don't remove temporary files
14543 --recheck update $as_me by reconfiguring in the same conditions
14544 --file=FILE[:TEMPLATE]
14545 instantiate the configuration file FILE
14546 --header=FILE[:TEMPLATE]
14547 instantiate the configuration header FILE
14548
14549 Configuration files:
14550 $config_files
14551
14552 Configuration headers:
14553 $config_headers
14554
14555 Configuration commands:
14556 $config_commands
14557
14558 Report bugs to <bug-autoconf@gnu.org>."
14559 _ACEOF
14560
14561 cat >>$CONFIG_STATUS <<_ACEOF
14562 ac_cs_version="\\
14563 config.status
14564 configured by $0, generated by GNU Autoconf 2.59,
14565 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14566
14567 Copyright (C) 2003 Free Software Foundation, Inc.
14568 This config.status script is free software; the Free Software Foundation
14569 gives unlimited permission to copy, distribute and modify it."
14570 srcdir=$srcdir
14571 INSTALL="$INSTALL"
14572 _ACEOF
14573
14574 cat >>$CONFIG_STATUS <<\_ACEOF
14575 # If no file are specified by the user, then we need to provide default
14576 # value. By we need to know if files were specified by the user.
14577 ac_need_defaults=:
14578 while test $# != 0
14579 do
14580 case $1 in
14581 --*=*)
14582 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14583 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14584 ac_shift=:
14585 ;;
14586 -*)
14587 ac_option=$1
14588 ac_optarg=$2
14589 ac_shift=shift
14590 ;;
14591 *) # This is not an option, so the user has probably given explicit
14592 # arguments.
14593 ac_option=$1
14594 ac_need_defaults=false;;
14595 esac
14596
14597 case $ac_option in
14598 # Handling of the options.
14599 _ACEOF
14600 cat >>$CONFIG_STATUS <<\_ACEOF
14601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14602 ac_cs_recheck=: ;;
14603 --version | --vers* | -V )
14604 echo "$ac_cs_version"; exit 0 ;;
14605 --he | --h)
14606 # Conflict between --help and --header
14607 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14608 Try \`$0 --help' for more information." >&5
14609 echo "$as_me: error: ambiguous option: $1
14610 Try \`$0 --help' for more information." >&2;}
14611 { (exit 1); exit 1; }; };;
14612 --help | --hel | -h )
14613 echo "$ac_cs_usage"; exit 0 ;;
14614 --debug | --d* | -d )
14615 debug=: ;;
14616 --file | --fil | --fi | --f )
14617 $ac_shift
14618 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14619 ac_need_defaults=false;;
14620 --header | --heade | --head | --hea )
14621 $ac_shift
14622 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14623 ac_need_defaults=false;;
14624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14626 ac_cs_silent=: ;;
14627
14628 # This is an error.
14629 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14630 Try \`$0 --help' for more information." >&5
14631 echo "$as_me: error: unrecognized option: $1
14632 Try \`$0 --help' for more information." >&2;}
14633 { (exit 1); exit 1; }; } ;;
14634
14635 *) ac_config_targets="$ac_config_targets $1" ;;
14636
14637 esac
14638 shift
14639 done
14640
14641 ac_configure_extra_args=
14642
14643 if $ac_cs_silent; then
14644 exec 6>/dev/null
14645 ac_configure_extra_args="$ac_configure_extra_args --silent"
14646 fi
14647
14648 _ACEOF
14649 cat >>$CONFIG_STATUS <<_ACEOF
14650 if \$ac_cs_recheck; then
14651 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14652 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14653 fi
14654
14655 _ACEOF
14656
14657 cat >>$CONFIG_STATUS <<_ACEOF
14658 #
14659 # INIT-COMMANDS section.
14660 #
14661
14662 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14663
14664
14665 # The HP-UX ksh and POSIX shell print the target directory to stdout
14666 # if CDPATH is set.
14667 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14668
14669 sed_quote_subst='$sed_quote_subst'
14670 double_quote_subst='$double_quote_subst'
14671 delay_variable_subst='$delay_variable_subst'
14672 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14673 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14674 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14675 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14676 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14677 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14678 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14679 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14680 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14681 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14682 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14683 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14684 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14685 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14686 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14687 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14688 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14689 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14690 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14691 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14692 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14693 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14694 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14695 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14696 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14697 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14698 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14699 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14700 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14701 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14702 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14703 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14704 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14705 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14706 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14707 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14708 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14709 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14710 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14711 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14712 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14713 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14714 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14715 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"`'
14716 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14717 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14718 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14719 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14720 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14721 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14722 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14723 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14724 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14725 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14726 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14727 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14728 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14729 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14730 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14731 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14732 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14733 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14734 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14735 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14736 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14737 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14738 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14739 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14740 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14741 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14742 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14743 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14744 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14745 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14746 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14747 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14748 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14749 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14750 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14751 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14752 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14753 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14754 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14755 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14756 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14757 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14758 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14759 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14760 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14761 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14762 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14763 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14764 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14765 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14766 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14767 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14768 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14769 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14770 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14771 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14773 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14774 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14775 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14776 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14777 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14778 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14779 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14780 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14781 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14782 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14783
14784 LTCC='$LTCC'
14785 LTCFLAGS='$LTCFLAGS'
14786 compiler='$compiler_DEFAULT'
14787
14788 # Quote evaled strings.
14789 for var in SED \
14790 GREP \
14791 EGREP \
14792 FGREP \
14793 LD \
14794 NM \
14795 LN_S \
14796 lt_SP2NL \
14797 lt_NL2SP \
14798 reload_flag \
14799 deplibs_check_method \
14800 file_magic_cmd \
14801 AR \
14802 AR_FLAGS \
14803 STRIP \
14804 RANLIB \
14805 CC \
14806 CFLAGS \
14807 compiler \
14808 lt_cv_sys_global_symbol_pipe \
14809 lt_cv_sys_global_symbol_to_cdecl \
14810 lt_cv_sys_global_symbol_to_c_name_address \
14811 SHELL \
14812 ECHO \
14813 lt_prog_compiler_no_builtin_flag \
14814 lt_prog_compiler_wl \
14815 lt_prog_compiler_pic \
14816 lt_prog_compiler_static \
14817 lt_cv_prog_compiler_c_o \
14818 need_locks \
14819 shrext_cmds \
14820 export_dynamic_flag_spec \
14821 whole_archive_flag_spec \
14822 compiler_needs_object \
14823 with_gnu_ld \
14824 allow_undefined_flag \
14825 no_undefined_flag \
14826 hardcode_libdir_flag_spec \
14827 hardcode_libdir_flag_spec_ld \
14828 hardcode_libdir_separator \
14829 fix_srcfile_path \
14830 exclude_expsyms \
14831 include_expsyms \
14832 file_list_spec \
14833 variables_saved_for_relink \
14834 libname_spec \
14835 library_names_spec \
14836 soname_spec \
14837 finish_eval \
14838 old_striplib \
14839 striplib; do
14840 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14841 *[\\\\\\\`\\"\\\$]*)
14842 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14843 ;;
14844 *)
14845 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14846 ;;
14847 esac
14848 done
14849
14850 # Double-quote double-evaled strings.
14851 for var in reload_cmds \
14852 old_postinstall_cmds \
14853 old_postuninstall_cmds \
14854 old_archive_cmds \
14855 extract_expsyms_cmds \
14856 old_archive_from_new_cmds \
14857 old_archive_from_expsyms_cmds \
14858 archive_cmds \
14859 archive_expsym_cmds \
14860 module_cmds \
14861 module_expsym_cmds \
14862 export_symbols_cmds \
14863 prelink_cmds \
14864 postinstall_cmds \
14865 postuninstall_cmds \
14866 finish_cmds \
14867 sys_lib_search_path_spec \
14868 sys_lib_dlsearch_path_spec; do
14869 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14870 *[\\\\\\\`\\"\\\$]*)
14871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14872 ;;
14873 *)
14874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14875 ;;
14876 esac
14877 done
14878
14879 # Fix-up fallback echo if it was mangled by the above quoting rules.
14880 case \$lt_ECHO in
14881 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14882 ;;
14883 esac
14884
14885 ac_aux_dir='$ac_aux_dir'
14886 xsi_shell='$xsi_shell'
14887 lt_shell_append='$lt_shell_append'
14888
14889 # See if we are running on zsh, and set the options which allow our
14890 # commands through without removal of \ escapes INIT.
14891 if test -n "\${ZSH_VERSION+set}" ; then
14892 setopt NO_GLOB_SUBST
14893 fi
14894
14895
14896 PACKAGE='$PACKAGE'
14897 VERSION='$VERSION'
14898 TIMESTAMP='$TIMESTAMP'
14899 RM='$RM'
14900 ofile='$ofile'
14901
14902
14903
14904 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14905 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14906 # from automake.
14907 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14908 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14909 LINGUAS="${LINGUAS-%UNSET%}"
14910
14911 target_cpu_type=${target_cpu_type}
14912 cgen_cpu_prefix=${cgen_cpu_prefix}
14913 obj_format=${obj_format}
14914 te_file=${te_file}
14915
14916 _ACEOF
14917
14918
14919
14920 cat >>$CONFIG_STATUS <<\_ACEOF
14921 for ac_config_target in $ac_config_targets
14922 do
14923 case "$ac_config_target" in
14924 # Handling of arguments.
14925 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14926 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14927 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14928 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14929 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14930 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14931 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14932 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14933 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14934 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14935 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14936 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14937 { (exit 1); exit 1; }; };;
14938 esac
14939 done
14940
14941 # If the user did not use the arguments to specify the items to instantiate,
14942 # then the envvar interface is used. Set only those that are not.
14943 # We use the long form for the default assignment because of an extremely
14944 # bizarre bug on SunOS 4.1.3.
14945 if $ac_need_defaults; then
14946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14949 fi
14950
14951 # Have a temporary directory for convenience. Make it in the build tree
14952 # simply because there is no reason to put it here, and in addition,
14953 # creating and moving files from /tmp can sometimes cause problems.
14954 # Create a temporary directory, and hook for its removal unless debugging.
14955 $debug ||
14956 {
14957 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14958 trap '{ (exit 1); exit 1; }' 1 2 13 15
14959 }
14960
14961 # Create a (secure) tmp directory for tmp files.
14962
14963 {
14964 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14965 test -n "$tmp" && test -d "$tmp"
14966 } ||
14967 {
14968 tmp=./confstat$$-$RANDOM
14969 (umask 077 && mkdir $tmp)
14970 } ||
14971 {
14972 echo "$me: cannot create a temporary directory in ." >&2
14973 { (exit 1); exit 1; }
14974 }
14975
14976 _ACEOF
14977
14978 cat >>$CONFIG_STATUS <<_ACEOF
14979
14980 #
14981 # CONFIG_FILES section.
14982 #
14983
14984 # No need to generate the scripts if there are no CONFIG_FILES.
14985 # This happens for instance when ./config.status config.h
14986 if test -n "\$CONFIG_FILES"; then
14987 # Protect against being on the right side of a sed subst in config.status.
14988 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14989 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14990 s,@SHELL@,$SHELL,;t t
14991 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14992 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14993 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14994 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14995 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14996 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14997 s,@exec_prefix@,$exec_prefix,;t t
14998 s,@prefix@,$prefix,;t t
14999 s,@program_transform_name@,$program_transform_name,;t t
15000 s,@bindir@,$bindir,;t t
15001 s,@sbindir@,$sbindir,;t t
15002 s,@libexecdir@,$libexecdir,;t t
15003 s,@datadir@,$datadir,;t t
15004 s,@sysconfdir@,$sysconfdir,;t t
15005 s,@sharedstatedir@,$sharedstatedir,;t t
15006 s,@localstatedir@,$localstatedir,;t t
15007 s,@libdir@,$libdir,;t t
15008 s,@includedir@,$includedir,;t t
15009 s,@oldincludedir@,$oldincludedir,;t t
15010 s,@infodir@,$infodir,;t t
15011 s,@mandir@,$mandir,;t t
15012 s,@build_alias@,$build_alias,;t t
15013 s,@host_alias@,$host_alias,;t t
15014 s,@target_alias@,$target_alias,;t t
15015 s,@DEFS@,$DEFS,;t t
15016 s,@ECHO_C@,$ECHO_C,;t t
15017 s,@ECHO_N@,$ECHO_N,;t t
15018 s,@ECHO_T@,$ECHO_T,;t t
15019 s,@LIBS@,$LIBS,;t t
15020 s,@build@,$build,;t t
15021 s,@build_cpu@,$build_cpu,;t t
15022 s,@build_vendor@,$build_vendor,;t t
15023 s,@build_os@,$build_os,;t t
15024 s,@host@,$host,;t t
15025 s,@host_cpu@,$host_cpu,;t t
15026 s,@host_vendor@,$host_vendor,;t t
15027 s,@host_os@,$host_os,;t t
15028 s,@target@,$target,;t t
15029 s,@target_cpu@,$target_cpu,;t t
15030 s,@target_vendor@,$target_vendor,;t t
15031 s,@target_os@,$target_os,;t t
15032 s,@CC@,$CC,;t t
15033 s,@CFLAGS@,$CFLAGS,;t t
15034 s,@LDFLAGS@,$LDFLAGS,;t t
15035 s,@CPPFLAGS@,$CPPFLAGS,;t t
15036 s,@ac_ct_CC@,$ac_ct_CC,;t t
15037 s,@EXEEXT@,$EXEEXT,;t t
15038 s,@OBJEXT@,$OBJEXT,;t t
15039 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15040 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15041 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15042 s,@CYGPATH_W@,$CYGPATH_W,;t t
15043 s,@PACKAGE@,$PACKAGE,;t t
15044 s,@VERSION@,$VERSION,;t t
15045 s,@ACLOCAL@,$ACLOCAL,;t t
15046 s,@AUTOCONF@,$AUTOCONF,;t t
15047 s,@AUTOMAKE@,$AUTOMAKE,;t t
15048 s,@AUTOHEADER@,$AUTOHEADER,;t t
15049 s,@MAKEINFO@,$MAKEINFO,;t t
15050 s,@install_sh@,$install_sh,;t t
15051 s,@STRIP@,$STRIP,;t t
15052 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15053 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15054 s,@mkdir_p@,$mkdir_p,;t t
15055 s,@AWK@,$AWK,;t t
15056 s,@SET_MAKE@,$SET_MAKE,;t t
15057 s,@am__leading_dot@,$am__leading_dot,;t t
15058 s,@AMTAR@,$AMTAR,;t t
15059 s,@am__tar@,$am__tar,;t t
15060 s,@am__untar@,$am__untar,;t t
15061 s,@DEPDIR@,$DEPDIR,;t t
15062 s,@am__include@,$am__include,;t t
15063 s,@am__quote@,$am__quote,;t t
15064 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15065 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15066 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15067 s,@CCDEPMODE@,$CCDEPMODE,;t t
15068 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15069 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15070 s,@CPP@,$CPP,;t t
15071 s,@EGREP@,$EGREP,;t t
15072 s,@LIBTOOL@,$LIBTOOL,;t t
15073 s,@SED@,$SED,;t t
15074 s,@FGREP@,$FGREP,;t t
15075 s,@GREP@,$GREP,;t t
15076 s,@LD@,$LD,;t t
15077 s,@DUMPBIN@,$DUMPBIN,;t t
15078 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15079 s,@NM@,$NM,;t t
15080 s,@LN_S@,$LN_S,;t t
15081 s,@AR@,$AR,;t t
15082 s,@ac_ct_AR@,$ac_ct_AR,;t t
15083 s,@RANLIB@,$RANLIB,;t t
15084 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15085 s,@lt_ECHO@,$lt_ECHO,;t t
15086 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15087 s,@NO_WERROR@,$NO_WERROR,;t t
15088 s,@GDBINIT@,$GDBINIT,;t t
15089 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
15090 s,@extra_objects@,$extra_objects,;t t
15091 s,@target_cpu_type@,$target_cpu_type,;t t
15092 s,@obj_format@,$obj_format,;t t
15093 s,@te_file@,$te_file,;t t
15094 s,@install_tooldir@,$install_tooldir,;t t
15095 s,@atof@,$atof,;t t
15096 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
15097 s,@YACC@,$YACC,;t t
15098 s,@LEX@,$LEX,;t t
15099 s,@LEXLIB@,$LEXLIB,;t t
15100 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15101 s,@USE_NLS@,$USE_NLS,;t t
15102 s,@LIBINTL@,$LIBINTL,;t t
15103 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15104 s,@INCINTL@,$INCINTL,;t t
15105 s,@XGETTEXT@,$XGETTEXT,;t t
15106 s,@GMSGFMT@,$GMSGFMT,;t t
15107 s,@POSUB@,$POSUB,;t t
15108 s,@CATALOGS@,$CATALOGS,;t t
15109 s,@DATADIRNAME@,$DATADIRNAME,;t t
15110 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15111 s,@GENCAT@,$GENCAT,;t t
15112 s,@CATOBJEXT@,$CATOBJEXT,;t t
15113 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15114 s,@MSGFMT@,$MSGFMT,;t t
15115 s,@MSGMERGE@,$MSGMERGE,;t t
15116 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15117 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15118 s,@MAINT@,$MAINT,;t t
15119 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15120 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15121 s,@ALLOCA@,$ALLOCA,;t t
15122 s,@LIBM@,$LIBM,;t t
15123 s,@datarootdir@,$datarootdir,;t t
15124 s,@docdir@,$docdir,;t t
15125 s,@htmldir@,$htmldir,;t t
15126 s,@LIBOBJS@,$LIBOBJS,;t t
15127 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15128 CEOF
15129
15130 _ACEOF
15131
15132 cat >>$CONFIG_STATUS <<\_ACEOF
15133 # Split the substitutions into bite-sized pieces for seds with
15134 # small command number limits, like on Digital OSF/1 and HP-UX.
15135 ac_max_sed_lines=48
15136 ac_sed_frag=1 # Number of current file.
15137 ac_beg=1 # First line for current file.
15138 ac_end=$ac_max_sed_lines # Line after last line for current file.
15139 ac_more_lines=:
15140 ac_sed_cmds=
15141 while $ac_more_lines; do
15142 if test $ac_beg -gt 1; then
15143 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15144 else
15145 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15146 fi
15147 if test ! -s $tmp/subs.frag; then
15148 ac_more_lines=false
15149 else
15150 # The purpose of the label and of the branching condition is to
15151 # speed up the sed processing (if there are no `@' at all, there
15152 # is no need to browse any of the substitutions).
15153 # These are the two extra sed commands mentioned above.
15154 (echo ':t
15155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15156 if test -z "$ac_sed_cmds"; then
15157 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15158 else
15159 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15160 fi
15161 ac_sed_frag=`expr $ac_sed_frag + 1`
15162 ac_beg=$ac_end
15163 ac_end=`expr $ac_end + $ac_max_sed_lines`
15164 fi
15165 done
15166 if test -z "$ac_sed_cmds"; then
15167 ac_sed_cmds=cat
15168 fi
15169 fi # test -n "$CONFIG_FILES"
15170
15171 _ACEOF
15172 cat >>$CONFIG_STATUS <<\_ACEOF
15173 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15175 case $ac_file in
15176 - | *:- | *:-:* ) # input from stdin
15177 cat >$tmp/stdin
15178 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15180 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15182 * ) ac_file_in=$ac_file.in ;;
15183 esac
15184
15185 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15186 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15188 X"$ac_file" : 'X\(//\)[^/]' \| \
15189 X"$ac_file" : 'X\(//\)$' \| \
15190 X"$ac_file" : 'X\(/\)' \| \
15191 . : '\(.\)' 2>/dev/null ||
15192 echo X"$ac_file" |
15193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15195 /^X\(\/\/\)$/{ s//\1/; q; }
15196 /^X\(\/\).*/{ s//\1/; q; }
15197 s/.*/./; q'`
15198 { if $as_mkdir_p; then
15199 mkdir -p "$ac_dir"
15200 else
15201 as_dir="$ac_dir"
15202 as_dirs=
15203 while test ! -d "$as_dir"; do
15204 as_dirs="$as_dir $as_dirs"
15205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15207 X"$as_dir" : 'X\(//\)[^/]' \| \
15208 X"$as_dir" : 'X\(//\)$' \| \
15209 X"$as_dir" : 'X\(/\)' \| \
15210 . : '\(.\)' 2>/dev/null ||
15211 echo X"$as_dir" |
15212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15214 /^X\(\/\/\)$/{ s//\1/; q; }
15215 /^X\(\/\).*/{ s//\1/; q; }
15216 s/.*/./; q'`
15217 done
15218 test ! -n "$as_dirs" || mkdir $as_dirs
15219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15220 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15221 { (exit 1); exit 1; }; }; }
15222
15223 ac_builddir=.
15224
15225 if test "$ac_dir" != .; then
15226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15227 # A "../" for each directory in $ac_dir_suffix.
15228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15229 else
15230 ac_dir_suffix= ac_top_builddir=
15231 fi
15232
15233 case $srcdir in
15234 .) # No --srcdir option. We are building in place.
15235 ac_srcdir=.
15236 if test -z "$ac_top_builddir"; then
15237 ac_top_srcdir=.
15238 else
15239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15240 fi ;;
15241 [\\/]* | ?:[\\/]* ) # Absolute path.
15242 ac_srcdir=$srcdir$ac_dir_suffix;
15243 ac_top_srcdir=$srcdir ;;
15244 *) # Relative path.
15245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15247 esac
15248
15249 # Do not use `cd foo && pwd` to compute absolute paths, because
15250 # the directories may not exist.
15251 case `pwd` in
15252 .) ac_abs_builddir="$ac_dir";;
15253 *)
15254 case "$ac_dir" in
15255 .) ac_abs_builddir=`pwd`;;
15256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15258 esac;;
15259 esac
15260 case $ac_abs_builddir in
15261 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15262 *)
15263 case ${ac_top_builddir}. in
15264 .) ac_abs_top_builddir=$ac_abs_builddir;;
15265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15267 esac;;
15268 esac
15269 case $ac_abs_builddir in
15270 .) ac_abs_srcdir=$ac_srcdir;;
15271 *)
15272 case $ac_srcdir in
15273 .) ac_abs_srcdir=$ac_abs_builddir;;
15274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15276 esac;;
15277 esac
15278 case $ac_abs_builddir in
15279 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15280 *)
15281 case $ac_top_srcdir in
15282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15285 esac;;
15286 esac
15287
15288
15289 case $INSTALL in
15290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15291 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15292 esac
15293
15294 if test x"$ac_file" != x-; then
15295 { echo "$as_me:$LINENO: creating $ac_file" >&5
15296 echo "$as_me: creating $ac_file" >&6;}
15297 rm -f "$ac_file"
15298 fi
15299 # Let's still pretend it is `configure' which instantiates (i.e., don't
15300 # use $as_me), people would be surprised to read:
15301 # /* config.h. Generated by config.status. */
15302 if test x"$ac_file" = x-; then
15303 configure_input=
15304 else
15305 configure_input="$ac_file. "
15306 fi
15307 configure_input=$configure_input"Generated from `echo $ac_file_in |
15308 sed 's,.*/,,'` by configure."
15309
15310 # First look for the input files in the build tree, otherwise in the
15311 # src tree.
15312 ac_file_inputs=`IFS=:
15313 for f in $ac_file_in; do
15314 case $f in
15315 -) echo $tmp/stdin ;;
15316 [\\/$]*)
15317 # Absolute (can't be DOS-style, as IFS=:)
15318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15319 echo "$as_me: error: cannot find input file: $f" >&2;}
15320 { (exit 1); exit 1; }; }
15321 echo "$f";;
15322 *) # Relative
15323 if test -f "$f"; then
15324 # Build tree
15325 echo "$f"
15326 elif test -f "$srcdir/$f"; then
15327 # Source tree
15328 echo "$srcdir/$f"
15329 else
15330 # /dev/null tree
15331 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15332 echo "$as_me: error: cannot find input file: $f" >&2;}
15333 { (exit 1); exit 1; }; }
15334 fi;;
15335 esac
15336 done` || { (exit 1); exit 1; }
15337 _ACEOF
15338 cat >>$CONFIG_STATUS <<_ACEOF
15339 sed "$ac_vpsub
15340 $extrasub
15341 _ACEOF
15342 cat >>$CONFIG_STATUS <<\_ACEOF
15343 :t
15344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15345 s,@configure_input@,$configure_input,;t t
15346 s,@srcdir@,$ac_srcdir,;t t
15347 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15348 s,@top_srcdir@,$ac_top_srcdir,;t t
15349 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15350 s,@builddir@,$ac_builddir,;t t
15351 s,@abs_builddir@,$ac_abs_builddir,;t t
15352 s,@top_builddir@,$ac_top_builddir,;t t
15353 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15354 s,@INSTALL@,$ac_INSTALL,;t t
15355 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15356 rm -f $tmp/stdin
15357 if test x"$ac_file" != x-; then
15358 mv $tmp/out $ac_file
15359 else
15360 cat $tmp/out
15361 rm -f $tmp/out
15362 fi
15363
15364 done
15365 _ACEOF
15366 cat >>$CONFIG_STATUS <<\_ACEOF
15367
15368 #
15369 # CONFIG_HEADER section.
15370 #
15371
15372 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15373 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15374 #
15375 # ac_d sets the value in "#define NAME VALUE" lines.
15376 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15377 ac_dB='[ ].*$,\1#\2'
15378 ac_dC=' '
15379 ac_dD=',;t'
15380 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15381 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15382 ac_uB='$,\1#\2define\3'
15383 ac_uC=' '
15384 ac_uD=',;t'
15385
15386 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15387 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15388 case $ac_file in
15389 - | *:- | *:-:* ) # input from stdin
15390 cat >$tmp/stdin
15391 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15393 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15395 * ) ac_file_in=$ac_file.in ;;
15396 esac
15397
15398 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15399 echo "$as_me: creating $ac_file" >&6;}
15400
15401 # First look for the input files in the build tree, otherwise in the
15402 # src tree.
15403 ac_file_inputs=`IFS=:
15404 for f in $ac_file_in; do
15405 case $f in
15406 -) echo $tmp/stdin ;;
15407 [\\/$]*)
15408 # Absolute (can't be DOS-style, as IFS=:)
15409 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15410 echo "$as_me: error: cannot find input file: $f" >&2;}
15411 { (exit 1); exit 1; }; }
15412 # Do quote $f, to prevent DOS paths from being IFS'd.
15413 echo "$f";;
15414 *) # Relative
15415 if test -f "$f"; then
15416 # Build tree
15417 echo "$f"
15418 elif test -f "$srcdir/$f"; then
15419 # Source tree
15420 echo "$srcdir/$f"
15421 else
15422 # /dev/null tree
15423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15424 echo "$as_me: error: cannot find input file: $f" >&2;}
15425 { (exit 1); exit 1; }; }
15426 fi;;
15427 esac
15428 done` || { (exit 1); exit 1; }
15429 # Remove the trailing spaces.
15430 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15431
15432 _ACEOF
15433
15434 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15435 # `conftest.undefs', that substitutes the proper values into
15436 # config.h.in to produce config.h. The first handles `#define'
15437 # templates, and the second `#undef' templates.
15438 # And first: Protect against being on the right side of a sed subst in
15439 # config.status. Protect against being in an unquoted here document
15440 # in config.status.
15441 rm -f conftest.defines conftest.undefs
15442 # Using a here document instead of a string reduces the quoting nightmare.
15443 # Putting comments in sed scripts is not portable.
15444 #
15445 # `end' is used to avoid that the second main sed command (meant for
15446 # 0-ary CPP macros) applies to n-ary macro definitions.
15447 # See the Autoconf documentation for `clear'.
15448 cat >confdef2sed.sed <<\_ACEOF
15449 s/[\\&,]/\\&/g
15450 s,[\\$`],\\&,g
15451 t clear
15452 : clear
15453 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15454 t end
15455 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15456 : end
15457 _ACEOF
15458 # If some macros were called several times there might be several times
15459 # the same #defines, which is useless. Nevertheless, we may not want to
15460 # sort them, since we want the *last* AC-DEFINE to be honored.
15461 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15462 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15463 rm -f confdef2sed.sed
15464
15465 # This sed command replaces #undef with comments. This is necessary, for
15466 # example, in the case of _POSIX_SOURCE, which is predefined and required
15467 # on some systems where configure will not decide to define it.
15468 cat >>conftest.undefs <<\_ACEOF
15469 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15470 _ACEOF
15471
15472 # Break up conftest.defines because some shells have a limit on the size
15473 # of here documents, and old seds have small limits too (100 cmds).
15474 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15475 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15476 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15477 echo ' :' >>$CONFIG_STATUS
15478 rm -f conftest.tail
15479 while grep . conftest.defines >/dev/null
15480 do
15481 # Write a limited-size here document to $tmp/defines.sed.
15482 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15483 # Speed up: don't consider the non `#define' lines.
15484 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15485 # Work around the forget-to-reset-the-flag bug.
15486 echo 't clr' >>$CONFIG_STATUS
15487 echo ': clr' >>$CONFIG_STATUS
15488 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15489 echo 'CEOF
15490 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15491 rm -f $tmp/in
15492 mv $tmp/out $tmp/in
15493 ' >>$CONFIG_STATUS
15494 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15495 rm -f conftest.defines
15496 mv conftest.tail conftest.defines
15497 done
15498 rm -f conftest.defines
15499 echo ' fi # grep' >>$CONFIG_STATUS
15500 echo >>$CONFIG_STATUS
15501
15502 # Break up conftest.undefs because some shells have a limit on the size
15503 # of here documents, and old seds have small limits too (100 cmds).
15504 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15505 rm -f conftest.tail
15506 while grep . conftest.undefs >/dev/null
15507 do
15508 # Write a limited-size here document to $tmp/undefs.sed.
15509 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15510 # Speed up: don't consider the non `#undef'
15511 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15512 # Work around the forget-to-reset-the-flag bug.
15513 echo 't clr' >>$CONFIG_STATUS
15514 echo ': clr' >>$CONFIG_STATUS
15515 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15516 echo 'CEOF
15517 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15518 rm -f $tmp/in
15519 mv $tmp/out $tmp/in
15520 ' >>$CONFIG_STATUS
15521 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15522 rm -f conftest.undefs
15523 mv conftest.tail conftest.undefs
15524 done
15525 rm -f conftest.undefs
15526
15527 cat >>$CONFIG_STATUS <<\_ACEOF
15528 # Let's still pretend it is `configure' which instantiates (i.e., don't
15529 # use $as_me), people would be surprised to read:
15530 # /* config.h. Generated by config.status. */
15531 if test x"$ac_file" = x-; then
15532 echo "/* Generated by configure. */" >$tmp/config.h
15533 else
15534 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15535 fi
15536 cat $tmp/in >>$tmp/config.h
15537 rm -f $tmp/in
15538 if test x"$ac_file" != x-; then
15539 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15540 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15541 echo "$as_me: $ac_file is unchanged" >&6;}
15542 else
15543 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15545 X"$ac_file" : 'X\(//\)[^/]' \| \
15546 X"$ac_file" : 'X\(//\)$' \| \
15547 X"$ac_file" : 'X\(/\)' \| \
15548 . : '\(.\)' 2>/dev/null ||
15549 echo X"$ac_file" |
15550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15552 /^X\(\/\/\)$/{ s//\1/; q; }
15553 /^X\(\/\).*/{ s//\1/; q; }
15554 s/.*/./; q'`
15555 { if $as_mkdir_p; then
15556 mkdir -p "$ac_dir"
15557 else
15558 as_dir="$ac_dir"
15559 as_dirs=
15560 while test ! -d "$as_dir"; do
15561 as_dirs="$as_dir $as_dirs"
15562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15564 X"$as_dir" : 'X\(//\)[^/]' \| \
15565 X"$as_dir" : 'X\(//\)$' \| \
15566 X"$as_dir" : 'X\(/\)' \| \
15567 . : '\(.\)' 2>/dev/null ||
15568 echo X"$as_dir" |
15569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15571 /^X\(\/\/\)$/{ s//\1/; q; }
15572 /^X\(\/\).*/{ s//\1/; q; }
15573 s/.*/./; q'`
15574 done
15575 test ! -n "$as_dirs" || mkdir $as_dirs
15576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15578 { (exit 1); exit 1; }; }; }
15579
15580 rm -f $ac_file
15581 mv $tmp/config.h $ac_file
15582 fi
15583 else
15584 cat $tmp/config.h
15585 rm -f $tmp/config.h
15586 fi
15587 # Compute $ac_file's index in $config_headers.
15588 _am_stamp_count=1
15589 for _am_header in $config_headers :; do
15590 case $_am_header in
15591 $ac_file | $ac_file:* )
15592 break ;;
15593 * )
15594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15595 esac
15596 done
15597 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15598 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15599 X$ac_file : 'X\(//\)[^/]' \| \
15600 X$ac_file : 'X\(//\)$' \| \
15601 X$ac_file : 'X\(/\)' \| \
15602 . : '\(.\)' 2>/dev/null ||
15603 echo X$ac_file |
15604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15606 /^X\(\/\/\)$/{ s//\1/; q; }
15607 /^X\(\/\).*/{ s//\1/; q; }
15608 s/.*/./; q'`/stamp-h$_am_stamp_count
15609 done
15610 _ACEOF
15611 cat >>$CONFIG_STATUS <<\_ACEOF
15612
15613 #
15614 # CONFIG_COMMANDS section.
15615 #
15616 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15617 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15618 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15619 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15620 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15621 X"$ac_dest" : 'X\(//\)[^/]' \| \
15622 X"$ac_dest" : 'X\(//\)$' \| \
15623 X"$ac_dest" : 'X\(/\)' \| \
15624 . : '\(.\)' 2>/dev/null ||
15625 echo X"$ac_dest" |
15626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15628 /^X\(\/\/\)$/{ s//\1/; q; }
15629 /^X\(\/\).*/{ s//\1/; q; }
15630 s/.*/./; q'`
15631 { if $as_mkdir_p; then
15632 mkdir -p "$ac_dir"
15633 else
15634 as_dir="$ac_dir"
15635 as_dirs=
15636 while test ! -d "$as_dir"; do
15637 as_dirs="$as_dir $as_dirs"
15638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15640 X"$as_dir" : 'X\(//\)[^/]' \| \
15641 X"$as_dir" : 'X\(//\)$' \| \
15642 X"$as_dir" : 'X\(/\)' \| \
15643 . : '\(.\)' 2>/dev/null ||
15644 echo X"$as_dir" |
15645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15647 /^X\(\/\/\)$/{ s//\1/; q; }
15648 /^X\(\/\).*/{ s//\1/; q; }
15649 s/.*/./; q'`
15650 done
15651 test ! -n "$as_dirs" || mkdir $as_dirs
15652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15654 { (exit 1); exit 1; }; }; }
15655
15656 ac_builddir=.
15657
15658 if test "$ac_dir" != .; then
15659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15660 # A "../" for each directory in $ac_dir_suffix.
15661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15662 else
15663 ac_dir_suffix= ac_top_builddir=
15664 fi
15665
15666 case $srcdir in
15667 .) # No --srcdir option. We are building in place.
15668 ac_srcdir=.
15669 if test -z "$ac_top_builddir"; then
15670 ac_top_srcdir=.
15671 else
15672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15673 fi ;;
15674 [\\/]* | ?:[\\/]* ) # Absolute path.
15675 ac_srcdir=$srcdir$ac_dir_suffix;
15676 ac_top_srcdir=$srcdir ;;
15677 *) # Relative path.
15678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15680 esac
15681
15682 # Do not use `cd foo && pwd` to compute absolute paths, because
15683 # the directories may not exist.
15684 case `pwd` in
15685 .) ac_abs_builddir="$ac_dir";;
15686 *)
15687 case "$ac_dir" in
15688 .) ac_abs_builddir=`pwd`;;
15689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15691 esac;;
15692 esac
15693 case $ac_abs_builddir in
15694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15695 *)
15696 case ${ac_top_builddir}. in
15697 .) ac_abs_top_builddir=$ac_abs_builddir;;
15698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15700 esac;;
15701 esac
15702 case $ac_abs_builddir in
15703 .) ac_abs_srcdir=$ac_srcdir;;
15704 *)
15705 case $ac_srcdir in
15706 .) ac_abs_srcdir=$ac_abs_builddir;;
15707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15709 esac;;
15710 esac
15711 case $ac_abs_builddir in
15712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15713 *)
15714 case $ac_top_srcdir in
15715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15718 esac;;
15719 esac
15720
15721
15722 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15723 echo "$as_me: executing $ac_dest commands" >&6;}
15724 case $ac_dest in
15725 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15726 # Strip MF so we end up with the name of the file.
15727 mf=`echo "$mf" | sed -e 's/:.*$//'`
15728 # Check whether this is an Automake generated Makefile or not.
15729 # We used to match only the files named `Makefile.in', but
15730 # some people rename them; so instead we look at the file content.
15731 # Grep'ing the first line is not enough: some people post-process
15732 # each Makefile.in and add a new line on top of each file to say so.
15733 # So let's grep whole file.
15734 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15735 dirpart=`(dirname "$mf") 2>/dev/null ||
15736 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15737 X"$mf" : 'X\(//\)[^/]' \| \
15738 X"$mf" : 'X\(//\)$' \| \
15739 X"$mf" : 'X\(/\)' \| \
15740 . : '\(.\)' 2>/dev/null ||
15741 echo X"$mf" |
15742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15744 /^X\(\/\/\)$/{ s//\1/; q; }
15745 /^X\(\/\).*/{ s//\1/; q; }
15746 s/.*/./; q'`
15747 else
15748 continue
15749 fi
15750 # Extract the definition of DEPDIR, am__include, and am__quote
15751 # from the Makefile without running `make'.
15752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15753 test -z "$DEPDIR" && continue
15754 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15755 test -z "am__include" && continue
15756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15757 # When using ansi2knr, U may be empty or an underscore; expand it
15758 U=`sed -n 's/^U = //p' < "$mf"`
15759 # Find all dependency output files, they are included files with
15760 # $(DEPDIR) in their names. We invoke sed twice because it is the
15761 # simplest approach to changing $(DEPDIR) to its actual value in the
15762 # expansion.
15763 for file in `sed -n "
15764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15766 # Make sure the directory exists.
15767 test -f "$dirpart/$file" && continue
15768 fdir=`(dirname "$file") 2>/dev/null ||
15769 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15770 X"$file" : 'X\(//\)[^/]' \| \
15771 X"$file" : 'X\(//\)$' \| \
15772 X"$file" : 'X\(/\)' \| \
15773 . : '\(.\)' 2>/dev/null ||
15774 echo X"$file" |
15775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15777 /^X\(\/\/\)$/{ s//\1/; q; }
15778 /^X\(\/\).*/{ s//\1/; q; }
15779 s/.*/./; q'`
15780 { if $as_mkdir_p; then
15781 mkdir -p $dirpart/$fdir
15782 else
15783 as_dir=$dirpart/$fdir
15784 as_dirs=
15785 while test ! -d "$as_dir"; do
15786 as_dirs="$as_dir $as_dirs"
15787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15789 X"$as_dir" : 'X\(//\)[^/]' \| \
15790 X"$as_dir" : 'X\(//\)$' \| \
15791 X"$as_dir" : 'X\(/\)' \| \
15792 . : '\(.\)' 2>/dev/null ||
15793 echo X"$as_dir" |
15794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15796 /^X\(\/\/\)$/{ s//\1/; q; }
15797 /^X\(\/\).*/{ s//\1/; q; }
15798 s/.*/./; q'`
15799 done
15800 test ! -n "$as_dirs" || mkdir $as_dirs
15801 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15802 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15803 { (exit 1); exit 1; }; }; }
15804
15805 # echo "creating $dirpart/$file"
15806 echo '# dummy' > "$dirpart/$file"
15807 done
15808 done
15809 ;;
15810 libtool )
15811
15812 # See if we are running on zsh, and set the options which allow our
15813 # commands through without removal of \ escapes.
15814 if test -n "${ZSH_VERSION+set}" ; then
15815 setopt NO_GLOB_SUBST
15816 fi
15817
15818 cfgfile="${ofile}T"
15819 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15820 $RM "$cfgfile"
15821
15822 cat <<_LT_EOF >> "$cfgfile"
15823 #! $SHELL
15824
15825 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15826 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15828 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15829 #
15830 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15831 # 2006, 2007 Free Software Foundation, Inc.
15832 #
15833 # This file is part of GNU Libtool:
15834 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15835 #
15836 # This program is free software; you can redistribute it and/or modify
15837 # it under the terms of the GNU General Public License as published by
15838 # the Free Software Foundation; either version 2 of the License, or
15839 # (at your option) any later version.
15840 #
15841 # This program is distributed in the hope that it will be useful, but
15842 # WITHOUT ANY WARRANTY; without even the implied warranty of
15843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15844 # General Public License for more details.
15845 #
15846 # You should have received a copy of the GNU General Public License
15847 # along with this program; if not, a copy can be downloaded from
15848 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15849 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15850 # MA 02110-1301, USA.
15851 #
15852 # As a special exception to the GNU General Public License, if you
15853 # distribute this file as part of a program that contains a
15854 # configuration script generated by Autoconf, you may include it under
15855 # the same distribution terms that you use for the rest of that program.
15856
15857
15858 # The names of the tagged configurations supported by this script.
15859 available_tags=""
15860
15861 # ### BEGIN LIBTOOL CONFIG
15862
15863 # Which release of libtool.m4 was used?
15864 macro_version=$macro_version
15865 macro_revision=$macro_revision
15866
15867 # Whether or not to build shared libraries.
15868 build_libtool_libs=$enable_shared
15869
15870 # Whether or not to build static libraries.
15871 build_old_libs=$enable_static
15872
15873 # What type of objects to build.
15874 pic_mode=$pic_mode
15875
15876 # Whether or not to optimize for fast installation.
15877 fast_install=$enable_fast_install
15878
15879 # The host system.
15880 host_alias=$host_alias
15881 host=$host
15882 host_os=$host_os
15883
15884 # The build system.
15885 build_alias=$build_alias
15886 build=$build
15887 build_os=$build_os
15888
15889 # A sed program that does not truncate output.
15890 SED=$lt_SED
15891
15892 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15893 Xsed="\$SED -e 1s/^X//"
15894
15895 # A grep program that handles long lines.
15896 GREP=$lt_GREP
15897
15898 # An ERE matcher.
15899 EGREP=$lt_EGREP
15900
15901 # A literal string matcher.
15902 FGREP=$lt_FGREP
15903
15904 # A BSD- or MS-compatible name lister.
15905 NM=$lt_NM
15906
15907 # Whether we need soft or hard links.
15908 LN_S=$lt_LN_S
15909
15910 # What is the maximum length of a command?
15911 max_cmd_len=$max_cmd_len
15912
15913 # Object file suffix (normally "o").
15914 objext=$ac_objext
15915
15916 # Executable file suffix (normally "").
15917 exeext=$exeext
15918
15919 # whether the shell understands "unset".
15920 lt_unset=$lt_unset
15921
15922 # turn spaces into newlines.
15923 SP2NL=$lt_lt_SP2NL
15924
15925 # turn newlines into spaces.
15926 NL2SP=$lt_lt_NL2SP
15927
15928 # How to create reloadable object files.
15929 reload_flag=$lt_reload_flag
15930 reload_cmds=$lt_reload_cmds
15931
15932 # Method to check whether dependent libraries are shared objects.
15933 deplibs_check_method=$lt_deplibs_check_method
15934
15935 # Command to use when deplibs_check_method == "file_magic".
15936 file_magic_cmd=$lt_file_magic_cmd
15937
15938 # The archiver.
15939 AR=$lt_AR
15940 AR_FLAGS=$lt_AR_FLAGS
15941
15942 # A symbol stripping program.
15943 STRIP=$lt_STRIP
15944
15945 # Commands used to install an old-style archive.
15946 RANLIB=$lt_RANLIB
15947 old_postinstall_cmds=$lt_old_postinstall_cmds
15948 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15949
15950 # A C compiler.
15951 LTCC=$lt_CC
15952
15953 # LTCC compiler flags.
15954 LTCFLAGS=$lt_CFLAGS
15955
15956 # Take the output of nm and produce a listing of raw symbols and C names.
15957 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15958
15959 # Transform the output of nm in a proper C declaration.
15960 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15961
15962 # Transform the output of nm in a C name address pair.
15963 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15964
15965 # The name of the directory that contains temporary libtool files.
15966 objdir=$objdir
15967
15968 # Shell to use when invoking shell scripts.
15969 SHELL=$lt_SHELL
15970
15971 # An echo program that does not interpret backslashes.
15972 ECHO=$lt_ECHO
15973
15974 # Used to examine libraries when file_magic_cmd begins with "file".
15975 MAGIC_CMD=$MAGIC_CMD
15976
15977 # Must we lock files when doing compilation?
15978 need_locks=$lt_need_locks
15979
15980 # Old archive suffix (normally "a").
15981 libext=$libext
15982
15983 # Shared library suffix (normally ".so").
15984 shrext_cmds=$lt_shrext_cmds
15985
15986 # The commands to extract the exported symbol list from a shared archive.
15987 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15988
15989 # Variables whose values should be saved in libtool wrapper scripts and
15990 # restored at link time.
15991 variables_saved_for_relink=$lt_variables_saved_for_relink
15992
15993 # Do we need the "lib" prefix for modules?
15994 need_lib_prefix=$need_lib_prefix
15995
15996 # Do we need a version for libraries?
15997 need_version=$need_version
15998
15999 # Library versioning type.
16000 version_type=$version_type
16001
16002 # Shared library runtime path variable.
16003 runpath_var=$runpath_var
16004
16005 # Shared library path variable.
16006 shlibpath_var=$shlibpath_var
16007
16008 # Is shlibpath searched before the hard-coded library search path?
16009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16010
16011 # Format of library name prefix.
16012 libname_spec=$lt_libname_spec
16013
16014 # List of archive names. First name is the real one, the rest are links.
16015 # The last name is the one that the linker finds with -lNAME
16016 library_names_spec=$lt_library_names_spec
16017
16018 # The coded name of the library, if different from the real name.
16019 soname_spec=$lt_soname_spec
16020
16021 # Command to use after installation of a shared archive.
16022 postinstall_cmds=$lt_postinstall_cmds
16023
16024 # Command to use after uninstallation of a shared archive.
16025 postuninstall_cmds=$lt_postuninstall_cmds
16026
16027 # Commands used to finish a libtool library installation in a directory.
16028 finish_cmds=$lt_finish_cmds
16029
16030 # As "finish_cmds", except a single script fragment to be evaled but
16031 # not shown.
16032 finish_eval=$lt_finish_eval
16033
16034 # Whether we should hardcode library paths into libraries.
16035 hardcode_into_libs=$hardcode_into_libs
16036
16037 # Compile-time system search path for libraries.
16038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16039
16040 # Run-time system search path for libraries.
16041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16042
16043 # Whether dlopen is supported.
16044 dlopen_support=$enable_dlopen
16045
16046 # Whether dlopen of programs is supported.
16047 dlopen_self=$enable_dlopen_self
16048
16049 # Whether dlopen of statically linked programs is supported.
16050 dlopen_self_static=$enable_dlopen_self_static
16051
16052 # Commands to strip libraries.
16053 old_striplib=$lt_old_striplib
16054 striplib=$lt_striplib
16055
16056
16057 # The linker used to build libraries.
16058 LD=$lt_LD
16059
16060 # Commands used to build an old-style archive.
16061 old_archive_cmds=$lt_old_archive_cmds
16062
16063 # A language specific compiler.
16064 CC=$lt_compiler
16065
16066 # Is the compiler the GNU compiler?
16067 with_gcc=$GCC
16068
16069 # Compiler flag to turn off builtin functions.
16070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16071
16072 # How to pass a linker flag through the compiler.
16073 wl=$lt_lt_prog_compiler_wl
16074
16075 # Additional compiler flags for building library objects.
16076 pic_flag=$lt_lt_prog_compiler_pic
16077
16078 # Compiler flag to prevent dynamic linking.
16079 link_static_flag=$lt_lt_prog_compiler_static
16080
16081 # Does compiler simultaneously support -c and -o options?
16082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16083
16084 # Whether or not to add -lc for building shared libraries.
16085 build_libtool_need_lc=$archive_cmds_need_lc
16086
16087 # Whether or not to disallow shared libs when runtime libs are static.
16088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16089
16090 # Compiler flag to allow reflexive dlopens.
16091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16092
16093 # Compiler flag to generate shared objects directly from archives.
16094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16095
16096 # Whether the compiler copes with passing no objects directly.
16097 compiler_needs_object=$lt_compiler_needs_object
16098
16099 # Create an old-style archive from a shared archive.
16100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16101
16102 # Create a temporary old-style archive to link instead of a shared archive.
16103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16104
16105 # Commands used to build a shared archive.
16106 archive_cmds=$lt_archive_cmds
16107 archive_expsym_cmds=$lt_archive_expsym_cmds
16108
16109 # Commands used to build a loadable module if different from building
16110 # a shared archive.
16111 module_cmds=$lt_module_cmds
16112 module_expsym_cmds=$lt_module_expsym_cmds
16113
16114 # Whether we are building with GNU ld or not.
16115 with_gnu_ld=$lt_with_gnu_ld
16116
16117 # Flag that allows shared libraries with undefined symbols to be built.
16118 allow_undefined_flag=$lt_allow_undefined_flag
16119
16120 # Flag that enforces no undefined symbols.
16121 no_undefined_flag=$lt_no_undefined_flag
16122
16123 # Flag to hardcode \$libdir into a binary during linking.
16124 # This must work even if \$libdir does not exist
16125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16126
16127 # If ld is used when linking, flag to hardcode \$libdir into a binary
16128 # during linking. This must work even if \$libdir does not exist.
16129 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16130
16131 # Whether we need a single "-rpath" flag with a separated argument.
16132 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16133
16134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16135 # DIR into the resulting binary.
16136 hardcode_direct=$hardcode_direct
16137
16138 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16139 # DIR into the resulting binary and the resulting library dependency is
16140 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16141 # library is relocated.
16142 hardcode_direct_absolute=$hardcode_direct_absolute
16143
16144 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16145 # into the resulting binary.
16146 hardcode_minus_L=$hardcode_minus_L
16147
16148 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16149 # into the resulting binary.
16150 hardcode_shlibpath_var=$hardcode_shlibpath_var
16151
16152 # Set to "yes" if building a shared library automatically hardcodes DIR
16153 # into the library and all subsequent libraries and executables linked
16154 # against it.
16155 hardcode_automatic=$hardcode_automatic
16156
16157 # Set to yes if linker adds runtime paths of dependent libraries
16158 # to runtime path list.
16159 inherit_rpath=$inherit_rpath
16160
16161 # Whether libtool must link a program against all its dependency libraries.
16162 link_all_deplibs=$link_all_deplibs
16163
16164 # Fix the shell variable \$srcfile for the compiler.
16165 fix_srcfile_path=$lt_fix_srcfile_path
16166
16167 # Set to "yes" if exported symbols are required.
16168 always_export_symbols=$always_export_symbols
16169
16170 # The commands to list exported symbols.
16171 export_symbols_cmds=$lt_export_symbols_cmds
16172
16173 # Symbols that should not be listed in the preloaded symbols.
16174 exclude_expsyms=$lt_exclude_expsyms
16175
16176 # Symbols that must always be exported.
16177 include_expsyms=$lt_include_expsyms
16178
16179 # Commands necessary for linking programs (against libraries) with templates.
16180 prelink_cmds=$lt_prelink_cmds
16181
16182 # Specify filename containing input files.
16183 file_list_spec=$lt_file_list_spec
16184
16185 # How to hardcode a shared library path into an executable.
16186 hardcode_action=$hardcode_action
16187
16188 # ### END LIBTOOL CONFIG
16189
16190 _LT_EOF
16191
16192 case $host_os in
16193 aix3*)
16194 cat <<\_LT_EOF >> "$cfgfile"
16195 # AIX sometimes has problems with the GCC collect2 program. For some
16196 # reason, if we set the COLLECT_NAMES environment variable, the problems
16197 # vanish in a puff of smoke.
16198 if test "X${COLLECT_NAMES+set}" != Xset; then
16199 COLLECT_NAMES=
16200 export COLLECT_NAMES
16201 fi
16202 _LT_EOF
16203 ;;
16204 esac
16205
16206
16207 ltmain="$ac_aux_dir/ltmain.sh"
16208
16209
16210 # We use sed instead of cat because bash on DJGPP gets confused if
16211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16212 # text mode, it properly converts lines to CR/LF. This bash problem
16213 # is reportedly fixed, but why not run on old versions too?
16214 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16215 || (rm -f "$cfgfile"; exit 1)
16216
16217 case $xsi_shell in
16218 yes)
16219 cat << \_LT_EOF >> "$cfgfile"
16220 # func_dirname file append nondir_replacement
16221 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16222 # otherwise set result to NONDIR_REPLACEMENT.
16223 func_dirname ()
16224 {
16225 case ${1} in
16226 */*) func_dirname_result="${1%/*}${2}" ;;
16227 * ) func_dirname_result="${3}" ;;
16228 esac
16229 }
16230
16231 # func_basename file
16232 func_basename ()
16233 {
16234 func_basename_result="${1##*/}"
16235 }
16236
16237 # func_stripname prefix suffix name
16238 # strip PREFIX and SUFFIX off of NAME.
16239 # PREFIX and SUFFIX must not contain globbing or regex special
16240 # characters, hashes, percent signs, but SUFFIX may contain a leading
16241 # dot (in which case that matches only a dot).
16242 func_stripname ()
16243 {
16244 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16245 # positional parameters, so assign one to ordinary parameter first.
16246 func_stripname_result=${3}
16247 func_stripname_result=${func_stripname_result#"${1}"}
16248 func_stripname_result=${func_stripname_result%"${2}"}
16249 }
16250
16251 # func_opt_split
16252 func_opt_split ()
16253 {
16254 func_opt_split_opt=${1%%=*}
16255 func_opt_split_arg=${1#*=}
16256 }
16257
16258 # func_lo2o object
16259 func_lo2o ()
16260 {
16261 case ${1} in
16262 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16263 *) func_lo2o_result=${1} ;;
16264 esac
16265 }
16266 _LT_EOF
16267 ;;
16268 *) # Bourne compatible functions.
16269 cat << \_LT_EOF >> "$cfgfile"
16270 # func_dirname file append nondir_replacement
16271 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16272 # otherwise set result to NONDIR_REPLACEMENT.
16273 func_dirname ()
16274 {
16275 # Extract subdirectory from the argument.
16276 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16277 if test "X$func_dirname_result" = "X${1}"; then
16278 func_dirname_result="${3}"
16279 else
16280 func_dirname_result="$func_dirname_result${2}"
16281 fi
16282 }
16283
16284 # func_basename file
16285 func_basename ()
16286 {
16287 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16288 }
16289
16290 # func_stripname prefix suffix name
16291 # strip PREFIX and SUFFIX off of NAME.
16292 # PREFIX and SUFFIX must not contain globbing or regex special
16293 # characters, hashes, percent signs, but SUFFIX may contain a leading
16294 # dot (in which case that matches only a dot).
16295 # func_strip_suffix prefix name
16296 func_stripname ()
16297 {
16298 case ${2} in
16299 .*) func_stripname_result=`$ECHO "X${3}" \
16300 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16301 *) func_stripname_result=`$ECHO "X${3}" \
16302 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16303 esac
16304 }
16305
16306 # sed scripts:
16307 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16308 my_sed_long_arg='1s/^-[^=]*=//'
16309
16310 # func_opt_split
16311 func_opt_split ()
16312 {
16313 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16314 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16315 }
16316
16317 # func_lo2o object
16318 func_lo2o ()
16319 {
16320 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16321 }
16322 _LT_EOF
16323 esac
16324
16325 case $lt_shell_append in
16326 yes)
16327 cat << \_LT_EOF >> "$cfgfile"
16328
16329 # func_append var value
16330 # Append VALUE to the end of shell variable VAR.
16331 func_append ()
16332 {
16333 eval "$1+=\$2"
16334 }
16335 _LT_EOF
16336 ;;
16337 *)
16338 cat << \_LT_EOF >> "$cfgfile"
16339
16340 # func_append var value
16341 # Append VALUE to the end of shell variable VAR.
16342 func_append ()
16343 {
16344 eval "$1=\$$1\$2"
16345 }
16346 _LT_EOF
16347 ;;
16348 esac
16349
16350
16351 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16352 || (rm -f "$cfgfile"; exit 1)
16353
16354 mv -f "$cfgfile" "$ofile" ||
16355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16356 chmod +x "$ofile"
16357
16358 ;;
16359 default-1 )
16360 for ac_file in $CONFIG_FILES; do
16361 # Support "outfile[:infile[:infile...]]"
16362 case "$ac_file" in
16363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16364 esac
16365 # PO directories have a Makefile.in generated from Makefile.in.in.
16366 case "$ac_file" in */Makefile.in)
16367 # Adjust a relative srcdir.
16368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16369 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16371 # In autoconf-2.13 it is called $ac_given_srcdir.
16372 # In autoconf-2.50 it is called $srcdir.
16373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16374 case "$ac_given_srcdir" in
16375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16376 /*) top_srcdir="$ac_given_srcdir" ;;
16377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16378 esac
16379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16380 rm -f "$ac_dir/POTFILES"
16381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16383 POMAKEFILEDEPS="POTFILES.in"
16384 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16385 # on $ac_dir but don't depend on user-specified configuration
16386 # parameters.
16387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16388 # The LINGUAS file contains the set of available languages.
16389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16391 fi
16392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16393 # Hide the ALL_LINGUAS assigment from automake.
16394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16396 else
16397 # The set of available languages was given in configure.in.
16398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16399 fi
16400 case "$ac_given_srcdir" in
16401 .) srcdirpre= ;;
16402 *) srcdirpre='$(srcdir)/' ;;
16403 esac
16404 POFILES=
16405 GMOFILES=
16406 UPDATEPOFILES=
16407 DUMMYPOFILES=
16408 for lang in $ALL_LINGUAS; do
16409 POFILES="$POFILES $srcdirpre$lang.po"
16410 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16411 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16412 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16413 done
16414 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16415 # environment variable.
16416 INST_LINGUAS=
16417 if test -n "$ALL_LINGUAS"; then
16418 for presentlang in $ALL_LINGUAS; do
16419 useit=no
16420 if test "%UNSET%" != "$LINGUAS"; then
16421 desiredlanguages="$LINGUAS"
16422 else
16423 desiredlanguages="$ALL_LINGUAS"
16424 fi
16425 for desiredlang in $desiredlanguages; do
16426 # Use the presentlang catalog if desiredlang is
16427 # a. equal to presentlang, or
16428 # b. a variant of presentlang (because in this case,
16429 # presentlang can be used as a fallback for messages
16430 # which are not translated in the desiredlang catalog).
16431 case "$desiredlang" in
16432 "$presentlang"*) useit=yes;;
16433 esac
16434 done
16435 if test $useit = yes; then
16436 INST_LINGUAS="$INST_LINGUAS $presentlang"
16437 fi
16438 done
16439 fi
16440 CATALOGS=
16441 if test -n "$INST_LINGUAS"; then
16442 for lang in $INST_LINGUAS; do
16443 CATALOGS="$CATALOGS $lang.gmo"
16444 done
16445 fi
16446 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16447 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"
16448 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16449 if test -f "$f"; then
16450 case "$f" in
16451 *.orig | *.bak | *~) ;;
16452 *) cat "$f" >> "$ac_dir/Makefile" ;;
16453 esac
16454 fi
16455 done
16456 fi
16457 ;;
16458 esac
16459 done ;;
16460 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16461 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16462 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16463 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16464 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16465 if test "x$cgen_cpu_prefix" != x ; then
16466 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16467 fi ;;
16468 esac
16469 done
16470 _ACEOF
16471
16472 cat >>$CONFIG_STATUS <<\_ACEOF
16473
16474 { (exit 0); exit 0; }
16475 _ACEOF
16476 chmod +x $CONFIG_STATUS
16477 ac_clean_files=$ac_clean_files_save
16478
16479
16480 # configure is writing to config.log, and then calls config.status.
16481 # config.status does its own redirection, appending to config.log.
16482 # Unfortunately, on DOS this fails, as config.log is still kept open
16483 # by configure, so config.status won't be able to write to it; its
16484 # output is simply discarded. So we exec the FD to /dev/null,
16485 # effectively closing config.log, so it can be properly (re)opened and
16486 # appended to by config.status. When coming back to configure, we
16487 # need to make the FD available again.
16488 if test "$no_create" != yes; then
16489 ac_cs_success=:
16490 ac_config_status_args=
16491 test "$silent" = yes &&
16492 ac_config_status_args="$ac_config_status_args --quiet"
16493 exec 5>/dev/null
16494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16495 exec 5>>config.log
16496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16497 # would make configure fail if this is the last instruction.
16498 $ac_cs_success || { (exit 1); exit 1; }
16499 fi
16500