a1594dd21a3e030f91fa7cc37c8f37e06b396719
[deliverable/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
1491 ac_aux_dir=
1492 for ac_dir in .. $srcdir/..; do
1493 if test -f $ac_dir/install-sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install-sh -c"
1496 break
1497 elif test -f $ac_dir/install.sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install.sh -c"
1500 break
1501 elif test -f $ac_dir/shtool; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/shtool install -c"
1504 break
1505 fi
1506 done
1507 if test -z "$ac_aux_dir"; then
1508 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1509 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1510 { (exit 1); exit 1; }; }
1511 fi
1512 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515
1516 # Make sure we can run config.sub.
1517 $ac_config_sub sun4 >/dev/null 2>&1 ||
1518 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1519 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1520 { (exit 1); exit 1; }; }
1521
1522 echo "$as_me:$LINENO: checking build system type" >&5
1523 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1524 if test "${ac_cv_build+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 ac_cv_build_alias=$build_alias
1528 test -z "$ac_cv_build_alias" &&
1529 ac_cv_build_alias=`$ac_config_guess`
1530 test -z "$ac_cv_build_alias" &&
1531 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1532 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1533 { (exit 1); exit 1; }; }
1534 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1535 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1536 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1537 { (exit 1); exit 1; }; }
1538
1539 fi
1540 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1541 echo "${ECHO_T}$ac_cv_build" >&6
1542 build=$ac_cv_build
1543 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546
1547
1548 echo "$as_me:$LINENO: checking host system type" >&5
1549 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1550 if test "${ac_cv_host+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 ac_cv_host_alias=$host_alias
1554 test -z "$ac_cv_host_alias" &&
1555 ac_cv_host_alias=$ac_cv_build_alias
1556 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1557 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1558 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1559 { (exit 1); exit 1; }; }
1560
1561 fi
1562 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1563 echo "${ECHO_T}$ac_cv_host" >&6
1564 host=$ac_cv_host
1565 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568
1569
1570 echo "$as_me:$LINENO: checking target system type" >&5
1571 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1572 if test "${ac_cv_target+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 ac_cv_target_alias=$target_alias
1576 test "x$ac_cv_target_alias" = "x" &&
1577 ac_cv_target_alias=$ac_cv_host_alias
1578 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1580 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1581 { (exit 1); exit 1; }; }
1582
1583 fi
1584 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1585 echo "${ECHO_T}$ac_cv_target" >&6
1586 target=$ac_cv_target
1587 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592 # The aliases save the names the user supplied, while $host etc.
1593 # will get canonicalized.
1594 test -n "$target_alias" &&
1595 test "$program_prefix$program_suffix$program_transform_name" = \
1596 NONENONEs,x,x, &&
1597 program_prefix=${target_alias}-
1598 ac_ext=c
1599 ac_cpp='$CPP $CPPFLAGS'
1600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641 ac_ct_CC=$CC
1642 # Extract the first word of "gcc", so it can be a program name with args.
1643 set dummy gcc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="gcc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1662 fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677 CC=$ac_ct_CC
1678 else
1679 CC="$ac_cv_prog_CC"
1680 fi
1681
1682 if test -z "$CC"; then
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_CC="${ac_tool_prefix}cc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1704 fi
1705 done
1706 done
1707
1708 fi
1709 fi
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719 fi
1720 if test -z "$ac_cv_prog_CC"; then
1721 ac_ct_CC=$CC
1722 # Extract the first word of "cc", so it can be a program name with args.
1723 set dummy cc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1742 fi
1743 done
1744 done
1745
1746 fi
1747 fi
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757 CC=$ac_ct_CC
1758 else
1759 CC="$ac_cv_prog_CC"
1760 fi
1761
1762 fi
1763 if test -z "$CC"; then
1764 # Extract the first word of "cc", so it can be a program name with args.
1765 set dummy cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 ac_prog_rejected=no
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1783 ac_prog_rejected=yes
1784 continue
1785 fi
1786 ac_cv_prog_CC="cc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790 done
1791 done
1792
1793 if test $ac_prog_rejected = yes; then
1794 # We found a bogon in the path, so make sure we never use it.
1795 set dummy $ac_cv_prog_CC
1796 shift
1797 if test $# != 0; then
1798 # We chose a different compiler from the bogus one.
1799 # However, it has the same basename, so the bogon will be chosen
1800 # first if we set CC to just the basename; use the full file name.
1801 shift
1802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1803 fi
1804 fi
1805 fi
1806 fi
1807 CC=$ac_cv_prog_CC
1808 if test -n "$CC"; then
1809 echo "$as_me:$LINENO: result: $CC" >&5
1810 echo "${ECHO_T}$CC" >&6
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 fi
1815
1816 fi
1817 if test -z "$CC"; then
1818 if test -n "$ac_tool_prefix"; then
1819 for ac_prog in cl
1820 do
1821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 CC=$ac_cv_prog_CC
1848 if test -n "$CC"; then
1849 echo "$as_me:$LINENO: result: $CC" >&5
1850 echo "${ECHO_T}$CC" >&6
1851 else
1852 echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856 test -n "$CC" && break
1857 done
1858 fi
1859 if test -z "$CC"; then
1860 ac_ct_CC=$CC
1861 for ac_prog in cl
1862 do
1863 # Extract the first word of "$ac_prog", so it can be a program name with args.
1864 set dummy $ac_prog; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="$ac_prog"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898 test -n "$ac_ct_CC" && break
1899 done
1900
1901 CC=$ac_ct_CC
1902 fi
1903
1904 fi
1905
1906
1907 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1908 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&2;}
1913 { (exit 1); exit 1; }; }; }
1914
1915 # Provide some information about the compiler.
1916 echo "$as_me:$LINENO:" \
1917 "checking for C compiler version" >&5
1918 ac_compiler=`set X $ac_compile; echo $2`
1919 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1920 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }
1924 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1925 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1930 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934
1935 cat >conftest.$ac_ext <<_ACEOF
1936 /* confdefs.h. */
1937 _ACEOF
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h. */
1941
1942 int
1943 main ()
1944 {
1945
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 ac_clean_files_save=$ac_clean_files
1951 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1952 # Try to create an executable without -o first, disregard a.out.
1953 # It will help us diagnose broken compilers, and finding out an intuition
1954 # of exeext.
1955 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1956 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1957 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1958 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1959 (eval $ac_link_default) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; then
1963 # Find the output, starting from the most likely. This scheme is
1964 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1965 # resort.
1966
1967 # Be careful to initialize this variable, since it used to be cached.
1968 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969 ac_cv_exeext=
1970 # b.out is created by i960 compilers.
1971 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1972 do
1973 test -f "$ac_file" || continue
1974 case $ac_file in
1975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1976 ;;
1977 conftest.$ac_ext )
1978 # This is the source file.
1979 ;;
1980 [ab].out )
1981 # We found the default executable, but exeext='' is most
1982 # certainly right.
1983 break;;
1984 *.* )
1985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986 # FIXME: I believe we export ac_cv_exeext for Libtool,
1987 # but it would be cool to find out if it's true. Does anybody
1988 # maintain Libtool? --akim.
1989 export ac_cv_exeext
1990 break;;
1991 * )
1992 break;;
1993 esac
1994 done
1995 else
1996 echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&2;}
2005 { (exit 77); exit 77; }; }; }
2006 fi
2007
2008 ac_exeext=$ac_cv_exeext
2009 echo "$as_me:$LINENO: result: $ac_file" >&5
2010 echo "${ECHO_T}$ac_file" >&6
2011
2012 # Check the compiler produces executables we can run. If not, either
2013 # the compiler is broken, or we cross compile.
2014 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017 # If not cross compiling, check that we can run a simple program.
2018 if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 cross_compiling=no
2026 else
2027 if test "$cross_compiling" = maybe; then
2028 cross_compiling=yes
2029 else
2030 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2033 If you meant to cross compile, use \`--host'.
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot run C compiled programs.
2036 If you meant to cross compile, use \`--host'.
2037 See \`config.log' for more details." >&2;}
2038 { (exit 1); exit 1; }; }; }
2039 fi
2040 fi
2041 fi
2042 echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6
2044
2045 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2046 ac_clean_files=$ac_clean_files_save
2047 # Check the compiler produces executables we can run. If not, either
2048 # the compiler is broken, or we cross compile.
2049 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2050 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2051 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2052 echo "${ECHO_T}$cross_compiling" >&6
2053
2054 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2055 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2057 (eval $ac_link) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; then
2061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2062 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2063 # work properly (i.e., refer to `conftest.exe'), while it won't with
2064 # `rm'.
2065 for ac_file in conftest.exe conftest conftest.*; do
2066 test -f "$ac_file" || continue
2067 case $ac_file in
2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2070 export ac_cv_exeext
2071 break;;
2072 * ) break;;
2073 esac
2074 done
2075 else
2076 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2077 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&2;}
2082 { (exit 1); exit 1; }; }; }
2083 fi
2084
2085 rm -f conftest$ac_cv_exeext
2086 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2087 echo "${ECHO_T}$ac_cv_exeext" >&6
2088
2089 rm -f conftest.$ac_ext
2090 EXEEXT=$ac_cv_exeext
2091 ac_exeext=$EXEEXT
2092 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2093 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2094 if test "${ac_cv_objext+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h. */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2103
2104 int
2105 main ()
2106 {
2107
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 rm -f conftest.o conftest.obj
2113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2114 (eval $ac_compile) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119 case $ac_file in
2120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2122 break;;
2123 esac
2124 done
2125 else
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2130 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }; }
2136 fi
2137
2138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2139 fi
2140 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2141 echo "${ECHO_T}$ac_cv_objext" >&6
2142 OBJEXT=$ac_cv_objext
2143 ac_objext=$OBJEXT
2144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h. */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2155
2156 int
2157 main ()
2158 {
2159 #ifndef __GNUC__
2160 choke me
2161 #endif
2162
2163 ;
2164 return 0;
2165 }
2166 _ACEOF
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_compiler_gnu=yes
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 ac_compiler_gnu=no
2195 fi
2196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2198
2199 fi
2200 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2201 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2202 GCC=`test $ac_compiler_gnu = yes && echo yes`
2203 ac_test_CFLAGS=${CFLAGS+set}
2204 ac_save_CFLAGS=$CFLAGS
2205 CFLAGS="-g"
2206 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_g+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h. */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2217
2218 int
2219 main ()
2220 {
2221
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 ac_cv_prog_cc_g=no
2254 fi
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259 if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261 elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2266 fi
2267 else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2272 fi
2273 fi
2274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 ac_cv_prog_cc_stdc=no
2280 ac_save_CC=$CC
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2287 #include <stdarg.h>
2288 #include <stdio.h>
2289 #include <sys/types.h>
2290 #include <sys/stat.h>
2291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292 struct buf { int x; };
2293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2295 char **p;
2296 int i;
2297 {
2298 return p[i];
2299 }
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2301 {
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2308 }
2309
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318
2319 int test (int i, double x);
2320 struct s1 {int (*f) (int a);};
2321 struct s2 {int (*f) (double a);};
2322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323 int argc;
2324 char **argv;
2325 int
2326 main ()
2327 {
2328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2329 ;
2330 return 0;
2331 }
2332 _ACEOF
2333 # Don't try gcc -ansi; that turns off useful extensions and
2334 # breaks some systems' header files.
2335 # AIX -qlanglvl=ansi
2336 # Ultrix and OSF/1 -std1
2337 # HP-UX 10.20 and later -Ae
2338 # HP-UX older versions -Aa -D_HPUX_SOURCE
2339 # SVR4 -Xc -D__EXTENSIONS__
2340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341 do
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag"
2353 || test ! -s conftest.err'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_cv_prog_cc_stdc=$ac_arg
2366 break
2367 else
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 fi
2372 rm -f conftest.err conftest.$ac_objext
2373 done
2374 rm -f conftest.$ac_ext conftest.$ac_objext
2375 CC=$ac_save_CC
2376
2377 fi
2378
2379 case "x$ac_cv_prog_cc_stdc" in
2380 x|xno)
2381 echo "$as_me:$LINENO: result: none needed" >&5
2382 echo "${ECHO_T}none needed" >&6 ;;
2383 *)
2384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386 CC="$CC $ac_cv_prog_cc_stdc" ;;
2387 esac
2388
2389 # Some people use a C++ compiler to compile C. Since we use `exit',
2390 # in C++ we need to declare it. In case someone uses the same compiler
2391 # for both compiling C and C++ we need to have the C++ compiler decide
2392 # the declaration of exit, since it's the most demanding environment.
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #ifndef __cplusplus
2395 choke me
2396 #endif
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 for ac_declaration in \
2421 '' \
2422 'extern "C" void std::exit (int) throw (); using std::exit;' \
2423 'extern "C" void std::exit (int); using std::exit;' \
2424 'extern "C" void exit (int) throw ();' \
2425 'extern "C" void exit (int);' \
2426 'void exit (int);'
2427 do
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2434 $ac_declaration
2435 #include <stdlib.h>
2436 int
2437 main ()
2438 {
2439 exit (42);
2440 ;
2441 return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 :
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 continue
2472 fi
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480 $ac_declaration
2481 int
2482 main ()
2483 {
2484 exit (42);
2485 ;
2486 return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag"
2499 || test ! -s conftest.err'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 break
2512 else
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515
2516 fi
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 done
2519 rm -f conftest*
2520 if test -n "$ac_declaration"; then
2521 echo '#ifdef __cplusplus' >>confdefs.h
2522 echo $ac_declaration >>confdefs.h
2523 echo '#endif' >>confdefs.h
2524 fi
2525
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 fi
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
2539 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2540 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2541 if test "${ac_cv_search_strerror+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 ac_func_search_save_LIBS=$LIBS
2545 ac_cv_search_strerror=no
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2552
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 #ifdef __cplusplus
2555 extern "C"
2556 #endif
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559 char strerror ();
2560 int
2561 main ()
2562 {
2563 strerror ();
2564 ;
2565 return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext conftest$ac_exeext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2570 (eval $ac_link) 2>conftest.er1
2571 ac_status=$?
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_c_werror_flag"
2578 || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest$ac_exeext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_cv_search_strerror="none required"
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 fi
2596 rm -f conftest.err conftest.$ac_objext \
2597 conftest$ac_exeext conftest.$ac_ext
2598 if test "$ac_cv_search_strerror" = no; then
2599 for ac_lib in cposix; do
2600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607
2608 /* Override any gcc2 internal prototype to avoid an error. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 /* We use char because int might match the return type of a gcc2
2613 builtin and then its argument prototype would still apply. */
2614 char strerror ();
2615 int
2616 main ()
2617 {
2618 strerror ();
2619 ;
2620 return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_search_strerror="-l$ac_lib"
2646 break
2647 else
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 fi
2652 rm -f conftest.err conftest.$ac_objext \
2653 conftest$ac_exeext conftest.$ac_ext
2654 done
2655 fi
2656 LIBS=$ac_func_search_save_LIBS
2657 fi
2658 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2659 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2660 if test "$ac_cv_search_strerror" != no; then
2661 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2662
2663 fi
2664
2665
2666 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2667 am__api_version="1.9"
2668 # Find a good install program. We prefer a C program (faster),
2669 # so one script is as good as another. But avoid the broken or
2670 # incompatible versions:
2671 # SysV /etc/install, /usr/sbin/install
2672 # SunOS /usr/etc/install
2673 # IRIX /sbin/install
2674 # AIX /bin/install
2675 # AmigaOS /C/install, which installs bootblocks on floppy discs
2676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2679 # OS/2's system install, which has a completely different semantic
2680 # ./install, which can be erroneously created by make from ./install.sh.
2681 # Reject install programs that cannot install multiple files.
2682 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2683 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2684 if test -z "$INSTALL"; then
2685 if test "${ac_cv_path_install+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 # Account for people who put trailing slashes in PATH elements.
2694 case $as_dir/ in
2695 ./ | .// | /cC/* | \
2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2698 /usr/ucb/* ) ;;
2699 *)
2700 # OSF1 and SCO ODT 3.0 have their own names for install.
2701 # Don't use installbsd from OSF since it installs stuff as root
2702 # by default.
2703 for ac_prog in ginstall scoinst install; do
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2706 if test $ac_prog = install &&
2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # AIX install. It has an incompatible calling convention.
2709 :
2710 elif test $ac_prog = install &&
2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # program-specific install script used by HP pwplus--don't use.
2713 :
2714 else
2715 rm -rf conftest.one conftest.two conftest.dir
2716 echo one > conftest.one
2717 echo two > conftest.two
2718 mkdir conftest.dir
2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2720 test -s conftest.one && test -s conftest.two &&
2721 test -s conftest.dir/conftest.one &&
2722 test -s conftest.dir/conftest.two
2723 then
2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2725 break 3
2726 fi
2727 fi
2728 fi
2729 done
2730 done
2731 ;;
2732 esac
2733 done
2734
2735 rm -rf conftest.one conftest.two conftest.dir
2736
2737 fi
2738 if test "${ac_cv_path_install+set}" = set; then
2739 INSTALL=$ac_cv_path_install
2740 else
2741 # As a last resort, use the slow shell script. Don't cache a
2742 # value for INSTALL within a source directory, because that will
2743 # break other packages using the cache if that directory is
2744 # removed, or if the value is a relative name.
2745 INSTALL=$ac_install_sh
2746 fi
2747 fi
2748 echo "$as_me:$LINENO: result: $INSTALL" >&5
2749 echo "${ECHO_T}$INSTALL" >&6
2750
2751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2752 # It thinks the first close brace ends the variable substitution.
2753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2754
2755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2756
2757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2758
2759 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2760 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2761 # Just in case
2762 sleep 1
2763 echo timestamp > conftest.file
2764 # Do `set' in a subshell so we don't clobber the current shell's
2765 # arguments. Must try -L first in case configure is actually a
2766 # symlink; some systems play weird games with the mod time of symlinks
2767 # (eg FreeBSD returns the mod time of the symlink's containing
2768 # directory).
2769 if (
2770 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2771 if test "$*" = "X"; then
2772 # -L didn't work.
2773 set X `ls -t $srcdir/configure conftest.file`
2774 fi
2775 rm -f conftest.file
2776 if test "$*" != "X $srcdir/configure conftest.file" \
2777 && test "$*" != "X conftest.file $srcdir/configure"; then
2778
2779 # If neither matched, then we have a broken ls. This can happen
2780 # if, for instance, CONFIG_SHELL is bash and it inherits a
2781 # broken ls alias from the environment. This has actually
2782 # happened. Such a system could not be considered "sane".
2783 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2784 alias in your environment" >&5
2785 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2786 alias in your environment" >&2;}
2787 { (exit 1); exit 1; }; }
2788 fi
2789
2790 test "$2" = conftest.file
2791 )
2792 then
2793 # Ok.
2794 :
2795 else
2796 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2797 Check your system clock" >&5
2798 echo "$as_me: error: newly created file is older than distributed files!
2799 Check your system clock" >&2;}
2800 { (exit 1); exit 1; }; }
2801 fi
2802 echo "$as_me:$LINENO: result: yes" >&5
2803 echo "${ECHO_T}yes" >&6
2804 test "$program_prefix" != NONE &&
2805 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2806 # Use a double $ so make ignores it.
2807 test "$program_suffix" != NONE &&
2808 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2809 # Double any \ or $. echo might interpret backslashes.
2810 # By default was `s,x,x', remove it if useless.
2811 cat <<\_ACEOF >conftest.sed
2812 s/[\\$]/&&/g;s/;s,x,x,$//
2813 _ACEOF
2814 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2815 rm conftest.sed
2816
2817 # expand $ac_aux_dir to an absolute path
2818 am_aux_dir=`cd $ac_aux_dir && pwd`
2819
2820 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2821 # Use eval to expand $SHELL
2822 if eval "$MISSING --run true"; then
2823 am_missing_run="$MISSING --run "
2824 else
2825 am_missing_run=
2826 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2827 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2828 fi
2829
2830 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2831 # We used to keeping the `.' as first argument, in order to
2832 # allow $(mkdir_p) to be used without argument. As in
2833 # $(mkdir_p) $(somedir)
2834 # where $(somedir) is conditionally defined. However this is wrong
2835 # for two reasons:
2836 # 1. if the package is installed by a user who cannot write `.'
2837 # make install will fail,
2838 # 2. the above comment should most certainly read
2839 # $(mkdir_p) $(DESTDIR)$(somedir)
2840 # so it does not work when $(somedir) is undefined and
2841 # $(DESTDIR) is not.
2842 # To support the latter case, we have to write
2843 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2844 # so the `.' trick is pointless.
2845 mkdir_p='mkdir -p --'
2846 else
2847 # On NextStep and OpenStep, the `mkdir' command does not
2848 # recognize any option. It will interpret all options as
2849 # directories to create, and then abort because `.' already
2850 # exists.
2851 for d in ./-p ./--version;
2852 do
2853 test -d $d && rmdir $d
2854 done
2855 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2856 if test -f "$ac_aux_dir/mkinstalldirs"; then
2857 mkdir_p='$(mkinstalldirs)'
2858 else
2859 mkdir_p='$(install_sh) -d'
2860 fi
2861 fi
2862
2863 for ac_prog in gawk mawk nawk awk
2864 do
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_AWK+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$AWK"; then
2873 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_AWK="$ac_prog"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886 done
2887 done
2888
2889 fi
2890 fi
2891 AWK=$ac_cv_prog_AWK
2892 if test -n "$AWK"; then
2893 echo "$as_me:$LINENO: result: $AWK" >&5
2894 echo "${ECHO_T}$AWK" >&6
2895 else
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898 fi
2899
2900 test -n "$AWK" && break
2901 done
2902
2903 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2905 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2906 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 cat >conftest.make <<\_ACEOF
2910 all:
2911 @echo 'ac_maketemp="$(MAKE)"'
2912 _ACEOF
2913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2915 if test -n "$ac_maketemp"; then
2916 eval ac_cv_prog_make_${ac_make}_set=yes
2917 else
2918 eval ac_cv_prog_make_${ac_make}_set=no
2919 fi
2920 rm -f conftest.make
2921 fi
2922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924 echo "${ECHO_T}yes" >&6
2925 SET_MAKE=
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2929 SET_MAKE="MAKE=${MAKE-make}"
2930 fi
2931
2932 rm -rf .tst 2>/dev/null
2933 mkdir .tst 2>/dev/null
2934 if test -d .tst; then
2935 am__leading_dot=.
2936 else
2937 am__leading_dot=_
2938 fi
2939 rmdir .tst 2>/dev/null
2940
2941 DEPDIR="${am__leading_dot}deps"
2942
2943 ac_config_commands="$ac_config_commands depfiles"
2944
2945
2946 am_make=${MAKE-make}
2947 cat > confinc << 'END'
2948 am__doit:
2949 @echo done
2950 .PHONY: am__doit
2951 END
2952 # If we don't find an include directive, just comment out the code.
2953 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2954 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2955 am__include="#"
2956 am__quote=
2957 _am_result=none
2958 # First try GNU make style include.
2959 echo "include confinc" > confmf
2960 # We grep out `Entering directory' and `Leaving directory'
2961 # messages which can occur if `w' ends up in MAKEFLAGS.
2962 # In particular we don't look at `^make:' because GNU make might
2963 # be invoked under some other name (usually "gmake"), in which
2964 # case it prints its new name instead of `make'.
2965 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2966 am__include=include
2967 am__quote=
2968 _am_result=GNU
2969 fi
2970 # Now try BSD make style include.
2971 if test "$am__include" = "#"; then
2972 echo '.include "confinc"' > confmf
2973 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2974 am__include=.include
2975 am__quote="\""
2976 _am_result=BSD
2977 fi
2978 fi
2979
2980
2981 echo "$as_me:$LINENO: result: $_am_result" >&5
2982 echo "${ECHO_T}$_am_result" >&6
2983 rm -f confinc confmf
2984
2985 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2986 if test "${enable_dependency_tracking+set}" = set; then
2987 enableval="$enable_dependency_tracking"
2988
2989 fi;
2990 if test "x$enable_dependency_tracking" != xno; then
2991 am_depcomp="$ac_aux_dir/depcomp"
2992 AMDEPBACKSLASH='\'
2993 fi
2994
2995
2996 if test "x$enable_dependency_tracking" != xno; then
2997 AMDEP_TRUE=
2998 AMDEP_FALSE='#'
2999 else
3000 AMDEP_TRUE='#'
3001 AMDEP_FALSE=
3002 fi
3003
3004
3005
3006 # test to see if srcdir already configured
3007 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3008 test -f $srcdir/config.status; then
3009 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3010 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3011 { (exit 1); exit 1; }; }
3012 fi
3013
3014 # test whether we have cygpath
3015 if test -z "$CYGPATH_W"; then
3016 if (cygpath --version) >/dev/null 2>/dev/null; then
3017 CYGPATH_W='cygpath -w'
3018 else
3019 CYGPATH_W=echo
3020 fi
3021 fi
3022
3023
3024 # Define the identity of the package.
3025 PACKAGE=gas
3026 VERSION=${BFD_VERSION}
3027
3028
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE "$PACKAGE"
3031 _ACEOF
3032
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define VERSION "$VERSION"
3036 _ACEOF
3037
3038 # Some tools Automake needs.
3039
3040 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041
3042
3043 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044
3045
3046 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047
3048
3049 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050
3051
3052 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053
3054 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3055
3056 # Installed binaries are usually stripped using `strip' when the user
3057 # run `make install-strip'. However `strip' might not be the right
3058 # tool to use in cross-compilation environments, therefore Automake
3059 # will honor the `STRIP' environment variable to overrule this program.
3060 if test "$cross_compiling" != no; then
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}strip; ac_word=$2
3064 echo "$as_me:$LINENO: checking for $ac_word" >&5
3065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066 if test "${ac_cv_prog_STRIP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 if test -n "$STRIP"; then
3070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085
3086 fi
3087 fi
3088 STRIP=$ac_cv_prog_STRIP
3089 if test -n "$STRIP"; then
3090 echo "$as_me:$LINENO: result: $STRIP" >&5
3091 echo "${ECHO_T}$STRIP" >&6
3092 else
3093 echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3095 fi
3096
3097 fi
3098 if test -z "$ac_cv_prog_STRIP"; then
3099 ac_ct_STRIP=$STRIP
3100 # Extract the first word of "strip", so it can be a program name with args.
3101 set dummy strip; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 if test -n "$ac_ct_STRIP"; then
3108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_STRIP="strip"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123
3124 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3125 fi
3126 fi
3127 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3128 if test -n "$ac_ct_STRIP"; then
3129 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3130 echo "${ECHO_T}$ac_ct_STRIP" >&6
3131 else
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3134 fi
3135
3136 STRIP=$ac_ct_STRIP
3137 else
3138 STRIP="$ac_cv_prog_STRIP"
3139 fi
3140
3141 fi
3142 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3143
3144 # We need awk for the "check" target. The system "awk" is bad on
3145 # some platforms.
3146 # Always define AMTAR for backward compatibility.
3147
3148 AMTAR=${AMTAR-"${am_missing_run}tar"}
3149
3150 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3151
3152
3153
3154
3155 depcc="$CC" am_compiler_list=
3156
3157 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3158 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3159 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3163 # We make a subdir and do the tests there. Otherwise we can end up
3164 # making bogus files that we don't know about and never remove. For
3165 # instance it was reported that on HP-UX the gcc test will end up
3166 # making a dummy file named `D' -- because `-MD' means `put the output
3167 # in D'.
3168 mkdir conftest.dir
3169 # Copy depcomp to subdir because otherwise we won't find it if we're
3170 # using a relative directory.
3171 cp "$am_depcomp" conftest.dir
3172 cd conftest.dir
3173 # We will build objects and dependencies in a subdirectory because
3174 # it helps to detect inapplicable dependency modes. For instance
3175 # both Tru64's cc and ICC support -MD to output dependencies as a
3176 # side effect of compilation, but ICC will put the dependencies in
3177 # the current directory while Tru64 will put them in the object
3178 # directory.
3179 mkdir sub
3180
3181 am_cv_CC_dependencies_compiler_type=none
3182 if test "$am_compiler_list" = ""; then
3183 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3184 fi
3185 for depmode in $am_compiler_list; do
3186 # Setup a source with many dependencies, because some compilers
3187 # like to wrap large dependency lists on column 80 (with \), and
3188 # we should not choose a depcomp mode which is confused by this.
3189 #
3190 # We need to recreate these files for each test, as the compiler may
3191 # overwrite some of them when testing with obscure command lines.
3192 # This happens at least with the AIX C compiler.
3193 : > sub/conftest.c
3194 for i in 1 2 3 4 5 6; do
3195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3197 # Solaris 8's {/usr,}/bin/sh.
3198 touch sub/conftst$i.h
3199 done
3200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3201
3202 case $depmode in
3203 nosideeffect)
3204 # after this tag, mechanisms are not by side-effect, so they'll
3205 # only be used when explicitly requested
3206 if test "x$enable_dependency_tracking" = xyes; then
3207 continue
3208 else
3209 break
3210 fi
3211 ;;
3212 none) break ;;
3213 esac
3214 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3215 # mode. It turns out that the SunPro C++ compiler does not properly
3216 # handle `-M -o', and we need to detect this.
3217 if depmode=$depmode \
3218 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3220 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3221 >/dev/null 2>conftest.err &&
3222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3223 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3225 # icc doesn't choke on unknown options, it will just issue warnings
3226 # or remarks (even with -Werror). So we grep stderr for any message
3227 # that says an option was ignored or not supported.
3228 # When given -MP, icc 7.0 and 7.1 complain thusly:
3229 # icc: Command line warning: ignoring option '-M'; no argument required
3230 # The diagnosis changed in icc 8.0:
3231 # icc: Command line remark: option '-MP' not supported
3232 if (grep 'ignoring option' conftest.err ||
3233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3234 am_cv_CC_dependencies_compiler_type=$depmode
3235 break
3236 fi
3237 fi
3238 done
3239
3240 cd ..
3241 rm -rf conftest.dir
3242 else
3243 am_cv_CC_dependencies_compiler_type=none
3244 fi
3245
3246 fi
3247 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3248 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3250
3251
3252
3253 if
3254 test "x$enable_dependency_tracking" != xno \
3255 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3256 am__fastdepCC_TRUE=
3257 am__fastdepCC_FALSE='#'
3258 else
3259 am__fastdepCC_TRUE='#'
3260 am__fastdepCC_FALSE=
3261 fi
3262
3263
3264
3265
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_prog_CC+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6
3302 else
3303 echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3305 fi
3306
3307 fi
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333
3334 fi
3335 fi
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339 echo "${ECHO_T}$ac_ct_CC" >&6
3340 else
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344
3345 CC=$ac_ct_CC
3346 else
3347 CC="$ac_cv_prog_CC"
3348 fi
3349
3350 if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}cc; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 echo "$as_me:$LINENO: result: $CC" >&5
3381 echo "${ECHO_T}$CC" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3385 fi
3386
3387 fi
3388 if test -z "$ac_cv_prog_CC"; then
3389 ac_ct_CC=$CC
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="cc"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411 done
3412 done
3413
3414 fi
3415 fi
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419 echo "${ECHO_T}$ac_ct_CC" >&6
3420 else
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3423 fi
3424
3425 CC=$ac_ct_CC
3426 else
3427 CC="$ac_cv_prog_CC"
3428 fi
3429
3430 fi
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3453 fi
3454 ac_cv_prog_CC="cc"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460
3461 if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3464 shift
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3469 shift
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3471 fi
3472 fi
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 echo "$as_me:$LINENO: result: $CC" >&5
3478 echo "${ECHO_T}$CC" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 fi
3483
3484 fi
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl
3488 do
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_prog_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510 done
3511 done
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 echo "$as_me:$LINENO: result: $CC" >&5
3518 echo "${ECHO_T}$CC" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3522 fi
3523
3524 test -n "$CC" && break
3525 done
3526 fi
3527 if test -z "$CC"; then
3528 ac_ct_CC=$CC
3529 for ac_prog in cl
3530 do
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554
3555 fi
3556 fi
3557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558 if test -n "$ac_ct_CC"; then
3559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3560 echo "${ECHO_T}$ac_ct_CC" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3564 fi
3565
3566 test -n "$ac_ct_CC" && break
3567 done
3568
3569 CC=$ac_ct_CC
3570 fi
3571
3572 fi
3573
3574
3575 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3576 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3578 See \`config.log' for more details." >&5
3579 echo "$as_me: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&2;}
3581 { (exit 1); exit 1; }; }; }
3582
3583 # Provide some information about the compiler.
3584 echo "$as_me:$LINENO:" \
3585 "checking for C compiler version" >&5
3586 ac_compiler=`set X $ac_compile; echo $2`
3587 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3588 (eval $ac_compiler --version </dev/null >&5) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3593 (eval $ac_compiler -v </dev/null >&5) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3598 (eval $ac_compiler -V </dev/null >&5) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602
3603 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3604 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3605 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614
3615 int
3616 main ()
3617 {
3618 #ifndef __GNUC__
3619 choke me
3620 #endif
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_compiler_gnu=yes
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 ac_compiler_gnu=no
3654 fi
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657
3658 fi
3659 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3660 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3661 GCC=`test $ac_compiler_gnu = yes && echo yes`
3662 ac_test_CFLAGS=${CFLAGS+set}
3663 ac_save_CFLAGS=$CFLAGS
3664 CFLAGS="-g"
3665 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3666 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3667 if test "${ac_cv_prog_cc_g+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676
3677 int
3678 main ()
3679 {
3680
3681 ;
3682 return 0;
3683 }
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_cv_prog_cc_g=yes
3708 else
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 ac_cv_prog_cc_g=no
3713 fi
3714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715 fi
3716 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3725 fi
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3731 fi
3732 fi
3733 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3734 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3735 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 ac_cv_prog_cc_stdc=no
3739 ac_save_CC=$CC
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754 char **p;
3755 int i;
3756 {
3757 return p[i];
3758 }
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3760 {
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3767 }
3768
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std1 is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std1. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3784 int
3785 main ()
3786 {
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 # Don't try gcc -ansi; that turns off useful extensions and
3793 # breaks some systems' header files.
3794 # AIX -qlanglvl=ansi
3795 # Ultrix and OSF/1 -std1
3796 # HP-UX 10.20 and later -Ae
3797 # HP-UX older versions -Aa -D_HPUX_SOURCE
3798 # SVR4 -Xc -D__EXTENSIONS__
3799 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800 do
3801 CC="$ac_save_CC $ac_arg"
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_cv_prog_cc_stdc=$ac_arg
3825 break
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 fi
3831 rm -f conftest.err conftest.$ac_objext
3832 done
3833 rm -f conftest.$ac_ext conftest.$ac_objext
3834 CC=$ac_save_CC
3835
3836 fi
3837
3838 case "x$ac_cv_prog_cc_stdc" in
3839 x|xno)
3840 echo "$as_me:$LINENO: result: none needed" >&5
3841 echo "${ECHO_T}none needed" >&6 ;;
3842 *)
3843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3844 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3845 CC="$CC $ac_cv_prog_cc_stdc" ;;
3846 esac
3847
3848 # Some people use a C++ compiler to compile C. Since we use `exit',
3849 # in C++ we need to declare it. In case someone uses the same compiler
3850 # for both compiling C and C++ we need to have the C++ compiler decide
3851 # the declaration of exit, since it's the most demanding environment.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #ifndef __cplusplus
3854 choke me
3855 #endif
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 for ac_declaration in \
3880 '' \
3881 'extern "C" void std::exit (int) throw (); using std::exit;' \
3882 'extern "C" void std::exit (int); using std::exit;' \
3883 'extern "C" void exit (int) throw ();' \
3884 'extern "C" void exit (int);' \
3885 'void exit (int);'
3886 do
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_declaration
3894 #include <stdlib.h>
3895 int
3896 main ()
3897 {
3898 exit (42);
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 :
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 continue
3931 fi
3932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 $ac_declaration
3940 int
3941 main ()
3942 {
3943 exit (42);
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_c_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 break
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 fi
3976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977 done
3978 rm -f conftest*
3979 if test -n "$ac_declaration"; then
3980 echo '#ifdef __cplusplus' >>confdefs.h
3981 echo $ac_declaration >>confdefs.h
3982 echo '#endif' >>confdefs.h
3983 fi
3984
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989 fi
3990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define _GNU_SOURCE 1
4000 _ACEOF
4001
4002
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4009 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4010 # On Suns, sometimes $CPP names a directory.
4011 if test -n "$CPP" && test -d "$CPP"; then
4012 CPP=
4013 fi
4014 if test -z "$CPP"; then
4015 if test "${ac_cv_prog_CPP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 # Double quotes because CPP needs to be expanded
4019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020 do
4021 ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4023 do
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 #ifdef __STDC__
4037 # include <limits.h>
4038 #else
4039 # include <assert.h>
4040 #endif
4041 Syntax error
4042 _ACEOF
4043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } >/dev/null; then
4051 if test -s conftest.err; then
4052 ac_cpp_err=$ac_c_preproc_warn_flag
4053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054 else
4055 ac_cpp_err=
4056 fi
4057 else
4058 ac_cpp_err=yes
4059 fi
4060 if test -z "$ac_cpp_err"; then
4061 :
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 # Broken: fails on valid input.
4067 continue
4068 fi
4069 rm -f conftest.err conftest.$ac_ext
4070
4071 # OK, works on sane cases. Now check whether non-existent headers
4072 # can be detected and how.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #include <ac_nonexistent.h>
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null; then
4089 if test -s conftest.err; then
4090 ac_cpp_err=$ac_c_preproc_warn_flag
4091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092 else
4093 ac_cpp_err=
4094 fi
4095 else
4096 ac_cpp_err=yes
4097 fi
4098 if test -z "$ac_cpp_err"; then
4099 # Broken: success on invalid input.
4100 continue
4101 else
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 # Passes both tests.
4106 ac_preproc_ok=:
4107 break
4108 fi
4109 rm -f conftest.err conftest.$ac_ext
4110
4111 done
4112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113 rm -f conftest.err conftest.$ac_ext
4114 if $ac_preproc_ok; then
4115 break
4116 fi
4117
4118 done
4119 ac_cv_prog_CPP=$CPP
4120
4121 fi
4122 CPP=$ac_cv_prog_CPP
4123 else
4124 ac_cv_prog_CPP=$CPP
4125 fi
4126 echo "$as_me:$LINENO: result: $CPP" >&5
4127 echo "${ECHO_T}$CPP" >&6
4128 ac_preproc_ok=false
4129 for ac_c_preproc_warn_flag in '' yes
4130 do
4131 # Use a header file that comes with gcc, so configuring glibc
4132 # with a fresh cross-compiler works.
4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 # <limits.h> exists even on freestanding compilers.
4135 # On the NeXT, cc -E runs the code through the compiler's parser,
4136 # not just through cpp. "Syntax error" is here to catch this case.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #ifdef __STDC__
4144 # include <limits.h>
4145 #else
4146 # include <assert.h>
4147 #endif
4148 Syntax error
4149 _ACEOF
4150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } >/dev/null; then
4158 if test -s conftest.err; then
4159 ac_cpp_err=$ac_c_preproc_warn_flag
4160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4161 else
4162 ac_cpp_err=
4163 fi
4164 else
4165 ac_cpp_err=yes
4166 fi
4167 if test -z "$ac_cpp_err"; then
4168 :
4169 else
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 # Broken: fails on valid input.
4174 continue
4175 fi
4176 rm -f conftest.err conftest.$ac_ext
4177
4178 # OK, works on sane cases. Now check whether non-existent headers
4179 # can be detected and how.
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #include <ac_nonexistent.h>
4187 _ACEOF
4188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } >/dev/null; then
4196 if test -s conftest.err; then
4197 ac_cpp_err=$ac_c_preproc_warn_flag
4198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4199 else
4200 ac_cpp_err=
4201 fi
4202 else
4203 ac_cpp_err=yes
4204 fi
4205 if test -z "$ac_cpp_err"; then
4206 # Broken: success on invalid input.
4207 continue
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 # Passes both tests.
4213 ac_preproc_ok=:
4214 break
4215 fi
4216 rm -f conftest.err conftest.$ac_ext
4217
4218 done
4219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220 rm -f conftest.err conftest.$ac_ext
4221 if $ac_preproc_ok; then
4222 :
4223 else
4224 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4225 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4227 See \`config.log' for more details." >&5
4228 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details." >&2;}
4230 { (exit 1); exit 1; }; }; }
4231 fi
4232
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
4239
4240 echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242 if test "${ac_cv_prog_egrep+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4246 then ac_cv_prog_egrep='grep -E'
4247 else ac_cv_prog_egrep='egrep'
4248 fi
4249 fi
4250 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4251 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4252 EGREP=$ac_cv_prog_egrep
4253
4254
4255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4257 if test "${ac_cv_header_stdc+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <stdlib.h>
4267 #include <stdarg.h>
4268 #include <string.h>
4269 #include <float.h>
4270
4271 int
4272 main ()
4273 {
4274
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag"
4289 || test ! -s conftest.err'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_cv_header_stdc=yes
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306 ac_cv_header_stdc=no
4307 fi
4308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4309
4310 if test $ac_cv_header_stdc = yes; then
4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <string.h>
4319
4320 _ACEOF
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "memchr" >/dev/null 2>&1; then
4323 :
4324 else
4325 ac_cv_header_stdc=no
4326 fi
4327 rm -f conftest*
4328
4329 fi
4330
4331 if test $ac_cv_header_stdc = yes; then
4332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h. */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <stdlib.h>
4340
4341 _ACEOF
4342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343 $EGREP "free" >/dev/null 2>&1; then
4344 :
4345 else
4346 ac_cv_header_stdc=no
4347 fi
4348 rm -f conftest*
4349
4350 fi
4351
4352 if test $ac_cv_header_stdc = yes; then
4353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354 if test "$cross_compiling" = yes; then
4355 :
4356 else
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <ctype.h>
4364 #if ((' ' & 0x0FF) == 0x020)
4365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 #else
4368 # define ISLOWER(c) \
4369 (('a' <= (c) && (c) <= 'i') \
4370 || ('j' <= (c) && (c) <= 'r') \
4371 || ('s' <= (c) && (c) <= 'z'))
4372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #endif
4374
4375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4376 int
4377 main ()
4378 {
4379 int i;
4380 for (i = 0; i < 256; i++)
4381 if (XOR (islower (i), ISLOWER (i))
4382 || toupper (i) != TOUPPER (i))
4383 exit(2);
4384 exit (0);
4385 }
4386 _ACEOF
4387 rm -f conftest$ac_exeext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389 (eval $ac_link) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 :
4399 else
4400 echo "$as_me: program exited with status $ac_status" >&5
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 ( exit $ac_status )
4405 ac_cv_header_stdc=no
4406 fi
4407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 fi
4410 fi
4411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4413 if test $ac_cv_header_stdc = yes; then
4414
4415 cat >>confdefs.h <<\_ACEOF
4416 #define STDC_HEADERS 1
4417 _ACEOF
4418
4419 fi
4420
4421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432 inttypes.h stdint.h unistd.h
4433 do
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4447
4448 #include <$ac_header>
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 eval "$as_ac_Header=yes"
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 eval "$as_ac_Header=no"
4478 fi
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480 fi
4481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4484 cat >>confdefs.h <<_ACEOF
4485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 _ACEOF
4487
4488 fi
4489
4490 done
4491
4492
4493
4494 if test "${ac_cv_header_minix_config_h+set}" = set; then
4495 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4496 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4497 if test "${ac_cv_header_minix_config_h+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 fi
4500 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4501 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4502 else
4503 # Is the header compilable?
4504 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4505 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 $ac_includes_default
4513 #include <minix/config.h>
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_header_compiler=yes
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ac_header_compiler=no
4543 fi
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4546 echo "${ECHO_T}$ac_header_compiler" >&6
4547
4548 # Is the header present?
4549 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4550 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #include <minix/config.h>
4558 _ACEOF
4559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } >/dev/null; then
4567 if test -s conftest.err; then
4568 ac_cpp_err=$ac_c_preproc_warn_flag
4569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4570 else
4571 ac_cpp_err=
4572 fi
4573 else
4574 ac_cpp_err=yes
4575 fi
4576 if test -z "$ac_cpp_err"; then
4577 ac_header_preproc=yes
4578 else
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4581
4582 ac_header_preproc=no
4583 fi
4584 rm -f conftest.err conftest.$ac_ext
4585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4586 echo "${ECHO_T}$ac_header_preproc" >&6
4587
4588 # So? What about this header?
4589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4590 yes:no: )
4591 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4592 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4594 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4595 ac_header_preproc=yes
4596 ;;
4597 no:yes:* )
4598 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4599 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4601 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4603 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4605 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4607 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4609 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4610 (
4611 cat <<\_ASBOX
4612 ## ------------------------------------------ ##
4613 ## Report this to the AC_PACKAGE_NAME lists. ##
4614 ## ------------------------------------------ ##
4615 _ASBOX
4616 ) |
4617 sed "s/^/$as_me: WARNING: /" >&2
4618 ;;
4619 esac
4620 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4621 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4622 if test "${ac_cv_header_minix_config_h+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 ac_cv_header_minix_config_h=$ac_header_preproc
4626 fi
4627 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4628 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4629
4630 fi
4631 if test $ac_cv_header_minix_config_h = yes; then
4632 MINIX=yes
4633 else
4634 MINIX=
4635 fi
4636
4637
4638 if test "$MINIX" = yes; then
4639
4640 cat >>confdefs.h <<\_ACEOF
4641 #define _POSIX_SOURCE 1
4642 _ACEOF
4643
4644
4645 cat >>confdefs.h <<\_ACEOF
4646 #define _POSIX_1_SOURCE 2
4647 _ACEOF
4648
4649
4650 cat >>confdefs.h <<\_ACEOF
4651 #define _MINIX 1
4652 _ACEOF
4653
4654 fi
4655
4656
4657
4658 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4659 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4660 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669
4670 # define __EXTENSIONS__ 1
4671 $ac_includes_default
4672 int
4673 main ()
4674 {
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_cv_safe_to_define___extensions__=yes
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 ac_cv_safe_to_define___extensions__=no
4708 fi
4709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4712 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4713 test $ac_cv_safe_to_define___extensions__ = yes &&
4714 cat >>confdefs.h <<\_ACEOF
4715 #define __EXTENSIONS__ 1
4716 _ACEOF
4717
4718 cat >>confdefs.h <<\_ACEOF
4719 #define _ALL_SOURCE 1
4720 _ACEOF
4721
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _GNU_SOURCE 1
4724 _ACEOF
4725
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _POSIX_PTHREAD_SEMANTICS 1
4728 _ACEOF
4729
4730 cat >>confdefs.h <<\_ACEOF
4731 #define _TANDEM_SOURCE 1
4732 _ACEOF
4733
4734
4735
4736
4737
4738 macro_version='2.1a'
4739 macro_revision='1.2435'
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752 ltmain="$ac_aux_dir/ltmain.sh"
4753
4754 # Set options
4755
4756 enable_dlopen=no
4757
4758
4759 enable_win32_dll=no
4760
4761
4762 # Check whether --enable-shared or --disable-shared was given.
4763 if test "${enable_shared+set}" = set; then
4764 enableval="$enable_shared"
4765 p=${PACKAGE-default}
4766 case $enableval in
4767 yes) enable_shared=yes ;;
4768 no) enable_shared=no ;;
4769 *)
4770 enable_shared=no
4771 # Look at the argument we got. We use all the common list separators.
4772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4773 for pkg in $enableval; do
4774 IFS="$lt_save_ifs"
4775 if test "X$pkg" = "X$p"; then
4776 enable_shared=yes
4777 fi
4778 done
4779 IFS="$lt_save_ifs"
4780 ;;
4781 esac
4782 else
4783 enable_shared=yes
4784 fi;
4785
4786
4787
4788
4789
4790
4791
4792
4793 # Check whether --enable-static or --disable-static was given.
4794 if test "${enable_static+set}" = set; then
4795 enableval="$enable_static"
4796 p=${PACKAGE-default}
4797 case $enableval in
4798 yes) enable_static=yes ;;
4799 no) enable_static=no ;;
4800 *)
4801 enable_static=no
4802 # Look at the argument we got. We use all the common list separators.
4803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804 for pkg in $enableval; do
4805 IFS="$lt_save_ifs"
4806 if test "X$pkg" = "X$p"; then
4807 enable_static=yes
4808 fi
4809 done
4810 IFS="$lt_save_ifs"
4811 ;;
4812 esac
4813 else
4814 enable_static=yes
4815 fi;
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825 # Check whether --with-pic or --without-pic was given.
4826 if test "${with_pic+set}" = set; then
4827 withval="$with_pic"
4828 pic_mode="$withval"
4829 else
4830 pic_mode=default
4831 fi;
4832
4833 test -z "$pic_mode" && pic_mode=default
4834
4835
4836
4837
4838
4839
4840
4841 # Check whether --enable-fast-install or --disable-fast-install was given.
4842 if test "${enable_fast_install+set}" = set; then
4843 enableval="$enable_fast_install"
4844 p=${PACKAGE-default}
4845 case $enableval in
4846 yes) enable_fast_install=yes ;;
4847 no) enable_fast_install=no ;;
4848 *)
4849 enable_fast_install=no
4850 # Look at the argument we got. We use all the common list separators.
4851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4852 for pkg in $enableval; do
4853 IFS="$lt_save_ifs"
4854 if test "X$pkg" = "X$p"; then
4855 enable_fast_install=yes
4856 fi
4857 done
4858 IFS="$lt_save_ifs"
4859 ;;
4860 esac
4861 else
4862 enable_fast_install=yes
4863 fi;
4864
4865
4866
4867
4868
4869
4870
4871
4872 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4873 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4874 if test "${lt_cv_path_SED+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 # Loop through the user's path and test for sed and gsed.
4878 # Then use that list of sed's as ones to test for truncation.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4881 do
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for lt_ac_prog in sed gsed; do
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4887 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4888 fi
4889 done
4890 done
4891 done
4892 IFS=$as_save_IFS
4893 lt_ac_max=0
4894 lt_ac_count=0
4895 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4896 # along with /bin/sed that truncates output.
4897 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4898 test ! -f $lt_ac_sed && continue
4899 cat /dev/null > conftest.in
4900 lt_ac_count=0
4901 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4902 # Check for GNU sed and select it if it is found.
4903 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4904 lt_cv_path_SED=$lt_ac_sed
4905 break
4906 fi
4907 while true; do
4908 cat conftest.in conftest.in >conftest.tmp
4909 mv conftest.tmp conftest.in
4910 cp conftest.in conftest.nl
4911 echo >>conftest.nl
4912 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4913 cmp -s conftest.out conftest.nl || break
4914 # 10000 chars as input seems more than enough
4915 test $lt_ac_count -gt 10 && break
4916 lt_ac_count=`expr $lt_ac_count + 1`
4917 if test $lt_ac_count -gt $lt_ac_max; then
4918 lt_ac_max=$lt_ac_count
4919 lt_cv_path_SED=$lt_ac_sed
4920 fi
4921 done
4922 done
4923
4924 fi
4925
4926 SED=$lt_cv_path_SED
4927
4928 echo "$as_me:$LINENO: result: $SED" >&5
4929 echo "${ECHO_T}$SED" >&6
4930
4931 test -z "$SED" && SED=sed
4932 Xsed="$SED -e 1s/^X//"
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944 echo "$as_me:$LINENO: checking for fgrep" >&5
4945 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4946 if test "${ac_cv_prog_fgrep+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4950 then ac_cv_prog_fgrep='grep -F'
4951 else ac_cv_prog_fgrep='fgrep'
4952 fi
4953 fi
4954 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4955 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4956 FGREP=$ac_cv_prog_fgrep
4957
4958
4959 test -z "$GREP" && GREP=grep
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4980 if test "${with_gnu_ld+set}" = set; then
4981 withval="$with_gnu_ld"
4982 test "$withval" = no || with_gnu_ld=yes
4983 else
4984 with_gnu_ld=no
4985 fi;
4986 ac_prog=ld
4987 if test "$GCC" = yes; then
4988 # Check if gcc -print-prog-name=ld gives a path.
4989 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4990 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4991 case $host in
4992 *-*-mingw*)
4993 # gcc leaves a trailing carriage return which upsets mingw
4994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4995 *)
4996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4997 esac
4998 case $ac_prog in
4999 # Accept absolute paths.
5000 [\\/]* | ?:[\\/]*)
5001 re_direlt='/[^/][^/]*/\.\./'
5002 # Canonicalize the pathname of ld
5003 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5004 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5005 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5006 done
5007 test -z "$LD" && LD="$ac_prog"
5008 ;;
5009 "")
5010 # If it fails, then pretend we aren't using GCC.
5011 ac_prog=ld
5012 ;;
5013 *)
5014 # If it is relative, then search for the first ld in PATH.
5015 with_gnu_ld=unknown
5016 ;;
5017 esac
5018 elif test "$with_gnu_ld" = yes; then
5019 echo "$as_me:$LINENO: checking for GNU ld" >&5
5020 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5021 else
5022 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5023 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5024 fi
5025 if test "${lt_cv_path_LD+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 if test -z "$LD"; then
5029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030 for ac_dir in $PATH; do
5031 IFS="$lt_save_ifs"
5032 test -z "$ac_dir" && ac_dir=.
5033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5034 lt_cv_path_LD="$ac_dir/$ac_prog"
5035 # Check to see if the program is GNU ld. I'd rather use --version,
5036 # but apparently some variants of GNU ld only accept -v.
5037 # Break only if it was the GNU/non-GNU ld that we prefer.
5038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5039 *GNU* | *'with BFD'*)
5040 test "$with_gnu_ld" != no && break
5041 ;;
5042 *)
5043 test "$with_gnu_ld" != yes && break
5044 ;;
5045 esac
5046 fi
5047 done
5048 IFS="$lt_save_ifs"
5049 else
5050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5051 fi
5052 fi
5053
5054 LD="$lt_cv_path_LD"
5055 if test -n "$LD"; then
5056 echo "$as_me:$LINENO: result: $LD" >&5
5057 echo "${ECHO_T}$LD" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6
5061 fi
5062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5064 { (exit 1); exit 1; }; }
5065 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5067 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5071 case `$LD -v 2>&1 </dev/null` in
5072 *GNU* | *'with BFD'*)
5073 lt_cv_prog_gnu_ld=yes
5074 ;;
5075 *)
5076 lt_cv_prog_gnu_ld=no
5077 ;;
5078 esac
5079 fi
5080 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5081 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5082 with_gnu_ld=$lt_cv_prog_gnu_ld
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5094 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5095 if test "${lt_cv_path_NM+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 if test -n "$NM"; then
5099 # Let the user override the test.
5100 lt_cv_path_NM="$NM"
5101 else
5102 lt_nm_to_check="${ac_tool_prefix}nm"
5103 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5104 lt_nm_to_check="$lt_nm_to_check nm"
5105 fi
5106 for lt_tmp_nm in $lt_nm_to_check; do
5107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109 IFS="$lt_save_ifs"
5110 test -z "$ac_dir" && ac_dir=.
5111 tmp_nm="$ac_dir/$lt_tmp_nm"
5112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5113 # Check to see if the nm accepts a BSD-compat flag.
5114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5115 # nm: unknown option "B" ignored
5116 # Tru64's nm complains that /dev/null is an invalid object file
5117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5118 */dev/null* | *'Invalid file or object type'*)
5119 lt_cv_path_NM="$tmp_nm -B"
5120 break
5121 ;;
5122 *)
5123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5124 */dev/null*)
5125 lt_cv_path_NM="$tmp_nm -p"
5126 break
5127 ;;
5128 *)
5129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5130 continue # so that we can try to find one that supports BSD flags
5131 ;;
5132 esac
5133 ;;
5134 esac
5135 fi
5136 done
5137 IFS="$lt_save_ifs"
5138 done
5139 : ${lt_cv_path_NM=no}
5140 fi
5141 fi
5142 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5143 echo "${ECHO_T}$lt_cv_path_NM" >&6
5144 if test "$lt_cv_path_NM" != "no"; then
5145 NM="$lt_cv_path_NM"
5146 else
5147 # Didn't find any BSD compatible name lister, look for dumpbin.
5148 if test -n "$ac_tool_prefix"; then
5149 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5150 do
5151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 if test -n "$DUMPBIN"; then
5159 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174
5175 fi
5176 fi
5177 DUMPBIN=$ac_cv_prog_DUMPBIN
5178 if test -n "$DUMPBIN"; then
5179 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5180 echo "${ECHO_T}$DUMPBIN" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6
5184 fi
5185
5186 test -n "$DUMPBIN" && break
5187 done
5188 fi
5189 if test -z "$DUMPBIN"; then
5190 ac_ct_DUMPBIN=$DUMPBIN
5191 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5192 do
5193 # Extract the first word of "$ac_prog", so it can be a program name with args.
5194 set dummy $ac_prog; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 if test -n "$ac_ct_DUMPBIN"; then
5201 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216
5217 fi
5218 fi
5219 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5220 if test -n "$ac_ct_DUMPBIN"; then
5221 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5222 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5226 fi
5227
5228 test -n "$ac_ct_DUMPBIN" && break
5229 done
5230 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5231
5232 DUMPBIN=$ac_ct_DUMPBIN
5233 fi
5234
5235
5236 if test "$DUMPBIN" != ":"; then
5237 NM="$DUMPBIN"
5238 fi
5239 fi
5240 test -z "$NM" && NM=nm
5241
5242
5243
5244
5245
5246
5247 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5248 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5249 if test "${lt_cv_nm_interface+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 lt_cv_nm_interface="BSD nm"
5253 echo "int some_variable = 0;" > conftest.$ac_ext
5254 (eval echo "\"\$as_me:5254: $ac_compile\"" >&5)
5255 (eval "$ac_compile" 2>conftest.err)
5256 cat conftest.err >&5
5257 (eval echo "\"\$as_me:5257: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5258 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5259 cat conftest.err >&5
5260 (eval echo "\"\$as_me:5260: output\"" >&5)
5261 cat conftest.out >&5
5262 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5263 lt_cv_nm_interface="MS dumpbin"
5264 fi
5265 rm -f conftest*
5266 fi
5267 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5268 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5269
5270 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5271 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5272 LN_S=$as_ln_s
5273 if test "$LN_S" = "ln -s"; then
5274 echo "$as_me:$LINENO: result: yes" >&5
5275 echo "${ECHO_T}yes" >&6
5276 else
5277 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5278 echo "${ECHO_T}no, using $LN_S" >&6
5279 fi
5280
5281 # find the maximum length of command line arguments
5282 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5283 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5284 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 i=0
5288 teststring="ABCD"
5289
5290 case $build_os in
5291 msdosdjgpp*)
5292 # On DJGPP, this test can blow up pretty badly due to problems in libc
5293 # (any single argument exceeding 2000 bytes causes a buffer overrun
5294 # during glob expansion). Even if it were fixed, the result of this
5295 # check would be larger than it should be.
5296 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5297 ;;
5298
5299 gnu*)
5300 # Under GNU Hurd, this test is not required because there is
5301 # no limit to the length of command line arguments.
5302 # Libtool will interpret -1 as no limit whatsoever
5303 lt_cv_sys_max_cmd_len=-1;
5304 ;;
5305
5306 cygwin* | mingw*)
5307 # On Win9x/ME, this test blows up -- it succeeds, but takes
5308 # about 5 minutes as the teststring grows exponentially.
5309 # Worse, since 9x/ME are not pre-emptively multitasking,
5310 # you end up with a "frozen" computer, even though with patience
5311 # the test eventually succeeds (with a max line length of 256k).
5312 # Instead, let's just punt: use the minimum linelength reported by
5313 # all of the supported platforms: 8192 (on NT/2K/XP).
5314 lt_cv_sys_max_cmd_len=8192;
5315 ;;
5316
5317 amigaos*)
5318 # On AmigaOS with pdksh, this test takes hours, literally.
5319 # So we just punt and use a minimum line length of 8192.
5320 lt_cv_sys_max_cmd_len=8192;
5321 ;;
5322
5323 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5324 # This has been around since 386BSD, at least. Likely further.
5325 if test -x /sbin/sysctl; then
5326 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5327 elif test -x /usr/sbin/sysctl; then
5328 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5329 else
5330 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5331 fi
5332 # And add a safety zone
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5335 ;;
5336
5337 interix*)
5338 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5339 lt_cv_sys_max_cmd_len=196608
5340 ;;
5341
5342 osf*)
5343 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5344 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5345 # nice to cause kernel panics so lets avoid the loop below.
5346 # First set a reasonable default.
5347 lt_cv_sys_max_cmd_len=16384
5348 #
5349 if test -x /sbin/sysconfig; then
5350 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5351 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352 esac
5353 fi
5354 ;;
5355 sco3.2v5*)
5356 lt_cv_sys_max_cmd_len=102400
5357 ;;
5358 sysv5* | sco5v6* | sysv4.2uw2*)
5359 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5360 if test -n "$kargmax"; then
5361 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5362 else
5363 lt_cv_sys_max_cmd_len=32768
5364 fi
5365 ;;
5366 *)
5367 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5368 if test -n $lt_cv_sys_max_cmd_len; then
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5371 else
5372 # Make teststring a little bigger before we do anything with it.
5373 # a 1K string should be a reasonable start.
5374 for i in 1 2 3 4 5 6 7 8 ; do
5375 teststring=$teststring$teststring
5376 done
5377 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5378 # If test is not a shell built-in, we'll probably end up computing a
5379 # maximum length that is only half of the actual maximum length, but
5380 # we can't tell.
5381 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5382 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5383 test $i != 17 # 1/2 MB should be enough
5384 do
5385 i=`expr $i + 1`
5386 teststring=$teststring$teststring
5387 done
5388 # Only check the string length outside the loop.
5389 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5390 teststring=
5391 # Add a significant safety factor because C++ compilers can tack on
5392 # massive amounts of additional arguments before passing them to the
5393 # linker. It appears as though 1/2 is a usable value.
5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5395 fi
5396 ;;
5397 esac
5398
5399 fi
5400
5401 if test -n $lt_cv_sys_max_cmd_len ; then
5402 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5403 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5404 else
5405 echo "$as_me:$LINENO: result: none" >&5
5406 echo "${ECHO_T}none" >&6
5407 fi
5408 max_cmd_len=$lt_cv_sys_max_cmd_len
5409
5410
5411
5412
5413
5414
5415
5416 : ${CP="cp -f"}
5417 : ${MV="mv -f"}
5418 : ${RM="rm -f"}
5419
5420 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5421 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5422 # Try some XSI features
5423 xsi_shell=no
5424 ( _lt_dummy="a/b/c"
5425 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5426 = c,a/b,, ) >/dev/null 2>&1 \
5427 && xsi_shell=yes
5428 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5429 echo "${ECHO_T}$xsi_shell" >&6
5430
5431
5432 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5433 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5434 lt_shell_append=no
5435 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5436 >/dev/null 2>&1 \
5437 && lt_shell_append=yes
5438 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5439 echo "${ECHO_T}$lt_shell_append" >&6
5440
5441
5442 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5443 lt_unset=unset
5444 else
5445 lt_unset=false
5446 fi
5447
5448
5449
5450
5451
5452 # test EBCDIC or ASCII
5453 case `echo X|tr X '\101'` in
5454 A) # ASCII based system
5455 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5456 lt_SP2NL='tr \040 \012'
5457 lt_NL2SP='tr \015\012 \040\040'
5458 ;;
5459 *) # EBCDIC based system
5460 lt_SP2NL='tr \100 \n'
5461 lt_NL2SP='tr \r\n \100\100'
5462 ;;
5463 esac
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5474 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5475 if test "${lt_cv_ld_reload_flag+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 lt_cv_ld_reload_flag='-r'
5479 fi
5480 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5481 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5482 reload_flag=$lt_cv_ld_reload_flag
5483 case $reload_flag in
5484 "" | " "*) ;;
5485 *) reload_flag=" $reload_flag" ;;
5486 esac
5487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5488 case $host_os in
5489 darwin*)
5490 if test "$GCC" = yes; then
5491 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5492 else
5493 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5494 fi
5495 ;;
5496 esac
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5508 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5509 if test "${lt_cv_deplibs_check_method+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 lt_cv_file_magic_cmd='$MAGIC_CMD'
5513 lt_cv_file_magic_test_file=
5514 lt_cv_deplibs_check_method='unknown'
5515 # Need to set the preceding variable on all platforms that support
5516 # interlibrary dependencies.
5517 # 'none' -- dependencies not supported.
5518 # `unknown' -- same as none, but documents that we really don't know.
5519 # 'pass_all' -- all dependencies passed with no checks.
5520 # 'test_compile' -- check by making test program.
5521 # 'file_magic [[regex]]' -- check by looking for files in library path
5522 # which responds to the $file_magic_cmd with a given extended regex.
5523 # If you have `file' or equivalent on your system and you're not sure
5524 # whether `pass_all' will *always* work, you probably want this one.
5525
5526 case $host_os in
5527 aix[4-9]*)
5528 lt_cv_deplibs_check_method=pass_all
5529 ;;
5530
5531 beos*)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5534
5535 bsdi[45]*)
5536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5537 lt_cv_file_magic_cmd='/usr/bin/file -L'
5538 lt_cv_file_magic_test_file=/shlib/libc.so
5539 ;;
5540
5541 cygwin*)
5542 # func_win32_libid is a shell function defined in ltmain.sh
5543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5544 lt_cv_file_magic_cmd='func_win32_libid'
5545 ;;
5546
5547 mingw* | pw32*)
5548 # Base MSYS/MinGW do not provide the 'file' command needed by
5549 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5550 # unless we find 'file', for example because we are cross-compiling.
5551 if ( file / ) >/dev/null 2>&1; then
5552 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5553 lt_cv_file_magic_cmd='func_win32_libid'
5554 else
5555 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5556 lt_cv_file_magic_cmd='$OBJDUMP -f'
5557 fi
5558 ;;
5559
5560 darwin* | rhapsody*)
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564 freebsd* | dragonfly*)
5565 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5566 case $host_cpu in
5567 i*86 )
5568 # Not sure whether the presence of OpenBSD here was a mistake.
5569 # Let's accept both of them until this is cleared up.
5570 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5571 lt_cv_file_magic_cmd=/usr/bin/file
5572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5573 ;;
5574 esac
5575 else
5576 lt_cv_deplibs_check_method=pass_all
5577 fi
5578 ;;
5579
5580 gnu*)
5581 lt_cv_deplibs_check_method=pass_all
5582 ;;
5583
5584 hpux10.20* | hpux11*)
5585 lt_cv_file_magic_cmd=/usr/bin/file
5586 case $host_cpu in
5587 ia64*)
5588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5590 ;;
5591 hppa*64*)
5592 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]'
5593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5594 ;;
5595 *)
5596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5598 ;;
5599 esac
5600 ;;
5601
5602 interix[3-9]*)
5603 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5605 ;;
5606
5607 irix5* | irix6* | nonstopux*)
5608 case $LD in
5609 *-32|*"-32 ") libmagic=32-bit;;
5610 *-n32|*"-n32 ") libmagic=N32;;
5611 *-64|*"-64 ") libmagic=64-bit;;
5612 *) libmagic=never-match;;
5613 esac
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616
5617 # This must be Linux ELF.
5618 linux* | k*bsd*-gnu)
5619 lt_cv_deplibs_check_method=pass_all
5620 ;;
5621
5622 netbsd*)
5623 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 else
5626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5627 fi
5628 ;;
5629
5630 newos6*)
5631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5632 lt_cv_file_magic_cmd=/usr/bin/file
5633 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5634 ;;
5635
5636 *nto* | *qnx*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639
5640 openbsd*)
5641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5643 else
5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5645 fi
5646 ;;
5647
5648 osf3* | osf4* | osf5*)
5649 lt_cv_deplibs_check_method=pass_all
5650 ;;
5651
5652 rdos*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 solaris*)
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
5659
5660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5661 lt_cv_deplibs_check_method=pass_all
5662 ;;
5663
5664 sysv4 | sysv4.3*)
5665 case $host_vendor in
5666 motorola)
5667 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]'
5668 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5669 ;;
5670 ncr)
5671 lt_cv_deplibs_check_method=pass_all
5672 ;;
5673 sequent)
5674 lt_cv_file_magic_cmd='/bin/file'
5675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5676 ;;
5677 sni)
5678 lt_cv_file_magic_cmd='/bin/file'
5679 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5680 lt_cv_file_magic_test_file=/lib/libc.so
5681 ;;
5682 siemens)
5683 lt_cv_deplibs_check_method=pass_all
5684 ;;
5685 pc)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688 esac
5689 ;;
5690
5691 tpf*)
5692 lt_cv_deplibs_check_method=pass_all
5693 ;;
5694 esac
5695
5696 fi
5697 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5698 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5699 file_magic_cmd=$lt_cv_file_magic_cmd
5700 deplibs_check_method=$lt_cv_deplibs_check_method
5701 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}ar; ac_word=$2
5717 echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719 if test "${ac_cv_prog_AR+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 if test -n "$AR"; then
5723 ac_cv_prog_AR="$AR" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_AR="${ac_tool_prefix}ar"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736 done
5737 done
5738
5739 fi
5740 fi
5741 AR=$ac_cv_prog_AR
5742 if test -n "$AR"; then
5743 echo "$as_me:$LINENO: result: $AR" >&5
5744 echo "${ECHO_T}$AR" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6
5748 fi
5749
5750 fi
5751 if test -z "$ac_cv_prog_AR"; then
5752 ac_ct_AR=$AR
5753 # Extract the first word of "ar", so it can be a program name with args.
5754 set dummy ar; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 if test -n "$ac_ct_AR"; then
5761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_ac_ct_AR="ar"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774 done
5775 done
5776
5777 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5778 fi
5779 fi
5780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781 if test -n "$ac_ct_AR"; then
5782 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5783 echo "${ECHO_T}$ac_ct_AR" >&6
5784 else
5785 echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5787 fi
5788
5789 AR=$ac_ct_AR
5790 else
5791 AR="$ac_cv_prog_AR"
5792 fi
5793
5794 test -z "$AR" && AR=ar
5795 test -z "$AR_FLAGS" && AR_FLAGS=cru
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}strip; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_STRIP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 if test -n "$STRIP"; then
5816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829 done
5830 done
5831
5832 fi
5833 fi
5834 STRIP=$ac_cv_prog_STRIP
5835 if test -n "$STRIP"; then
5836 echo "$as_me:$LINENO: result: $STRIP" >&5
5837 echo "${ECHO_T}$STRIP" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5841 fi
5842
5843 fi
5844 if test -z "$ac_cv_prog_STRIP"; then
5845 ac_ct_STRIP=$STRIP
5846 # Extract the first word of "strip", so it can be a program name with args.
5847 set dummy strip; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853 if test -n "$ac_ct_STRIP"; then
5854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_ac_ct_STRIP="strip"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867 done
5868 done
5869
5870 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5871 fi
5872 fi
5873 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874 if test -n "$ac_ct_STRIP"; then
5875 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5876 echo "${ECHO_T}$ac_ct_STRIP" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882 STRIP=$ac_ct_STRIP
5883 else
5884 STRIP="$ac_cv_prog_STRIP"
5885 fi
5886
5887 test -z "$STRIP" && STRIP=:
5888
5889
5890
5891
5892
5893
5894 if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5897 echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899 if test "${ac_cv_prog_RANLIB+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 if test -n "$RANLIB"; then
5903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918
5919 fi
5920 fi
5921 RANLIB=$ac_cv_prog_RANLIB
5922 if test -n "$RANLIB"; then
5923 echo "$as_me:$LINENO: result: $RANLIB" >&5
5924 echo "${ECHO_T}$RANLIB" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6
5928 fi
5929
5930 fi
5931 if test -z "$ac_cv_prog_RANLIB"; then
5932 ac_ct_RANLIB=$RANLIB
5933 # Extract the first word of "ranlib", so it can be a program name with args.
5934 set dummy ranlib; ac_word=$2
5935 echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 if test -n "$ac_ct_RANLIB"; then
5941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_ac_ct_RANLIB="ranlib"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956
5957 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5958 fi
5959 fi
5960 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5961 if test -n "$ac_ct_RANLIB"; then
5962 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5963 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5964 else
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968
5969 RANLIB=$ac_ct_RANLIB
5970 else
5971 RANLIB="$ac_cv_prog_RANLIB"
5972 fi
5973
5974 test -z "$RANLIB" && RANLIB=:
5975
5976
5977
5978
5979
5980
5981 # Determine commands to create old-style static archives.
5982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5983 old_postinstall_cmds='chmod 644 $oldlib'
5984 old_postuninstall_cmds=
5985
5986 if test -n "$RANLIB"; then
5987 case $host_os in
5988 openbsd*)
5989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5990 ;;
5991 *)
5992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5993 ;;
5994 esac
5995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5996 fi
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
6031 # If no C compiler was specified, use CC.
6032 LTCC=${LTCC-"$CC"}
6033
6034 # If no C compiler flags were specified, use CFLAGS.
6035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6036
6037 # Allow CC to be a program name with arguments.
6038 compiler=$CC
6039
6040
6041 # Check for command to grab the raw symbol name followed by C symbol from nm.
6042 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6043 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6044 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047
6048 # These are sane defaults that work on at least a few old systems.
6049 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6050
6051 # Character class describing NM global symbol codes.
6052 symcode='[BCDEGRST]'
6053
6054 # Regexp to match symbols that can be accessed directly from C.
6055 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6056
6057 # Define system-specific variables.
6058 case $host_os in
6059 aix*)
6060 symcode='[BCDT]'
6061 ;;
6062 cygwin* | mingw* | pw32*)
6063 symcode='[ABCDGISTW]'
6064 ;;
6065 hpux*)
6066 if test "$host_cpu" = ia64; then
6067 symcode='[ABCDEGRST]'
6068 fi
6069 ;;
6070 irix* | nonstopux*)
6071 symcode='[BCDEGRST]'
6072 ;;
6073 osf*)
6074 symcode='[BCDEGQRST]'
6075 ;;
6076 solaris*)
6077 symcode='[BDRT]'
6078 ;;
6079 sco3.2v5*)
6080 symcode='[DT]'
6081 ;;
6082 sysv4.2uw2*)
6083 symcode='[DT]'
6084 ;;
6085 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6086 symcode='[ABDT]'
6087 ;;
6088 sysv4)
6089 symcode='[DFNSTU]'
6090 ;;
6091 esac
6092
6093 # If we're using GNU nm, then use its standard symbol codes.
6094 case `$NM -V 2>&1` in
6095 *GNU* | *'with BFD'*)
6096 symcode='[ABCDGIRSTW]' ;;
6097 esac
6098
6099 # Transform an extracted symbol line into a proper C declaration.
6100 # Some systems (esp. on ia64) link data and code symbols differently,
6101 # so use this general approach.
6102 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6103
6104 # Transform an extracted symbol line into symbol name and symbol address
6105 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6106
6107 # Handle CRLF in mingw tool chain
6108 opt_cr=
6109 case $build_os in
6110 mingw*)
6111 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6112 ;;
6113 esac
6114
6115 # Try without a prefix underscore, then with it.
6116 for ac_symprfx in "" "_"; do
6117
6118 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6119 symxfrm="\\1 $ac_symprfx\\2 \\2"
6120
6121 # Write the raw and C identifiers.
6122 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6123 # Fake it for dumpbin and say T for any non-static function
6124 # and D for any global variable.
6125 # Also find C++ and __fastcall symbols from MSVC++,
6126 # which start with @ or ?.
6127 lt_cv_sys_global_symbol_pipe="$AWK '"\
6128 " {last_section=section; section=\$ 3};"\
6129 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6130 " \$ 0!~/External *\|/{next};"\
6131 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6132 " {if(hide[section]) next};"\
6133 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6134 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6135 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6136 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6137 " ' prfx=^$ac_symprfx"
6138 else
6139 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6140 fi
6141
6142 # Check to see that the pipe works correctly.
6143 pipe_works=no
6144
6145 rm -f conftest*
6146 cat > conftest.$ac_ext <<_LT_EOF
6147 #ifdef __cplusplus
6148 extern "C" {
6149 #endif
6150 char nm_test_var;
6151 void nm_test_func(void);
6152 void nm_test_func(void){}
6153 #ifdef __cplusplus
6154 }
6155 #endif
6156 int main(){nm_test_var='a';nm_test_func();return(0);}
6157 _LT_EOF
6158
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; then
6164 # Now try to grab the symbols.
6165 nlist=conftest.nm
6166 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6167 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && test -s "$nlist"; then
6171 # Try sorting and uniquifying the output.
6172 if sort "$nlist" | uniq > "$nlist"T; then
6173 mv -f "$nlist"T "$nlist"
6174 else
6175 rm -f "$nlist"T
6176 fi
6177
6178 # Make sure that we snagged all the symbols we need.
6179 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6180 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6181 cat <<_LT_EOF > conftest.$ac_ext
6182 #ifdef __cplusplus
6183 extern "C" {
6184 #endif
6185
6186 _LT_EOF
6187 # Now generate the symbol file.
6188 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6189
6190 cat <<_LT_EOF >> conftest.$ac_ext
6191
6192 /* The mapping between symbol names and symbols. */
6193 const struct {
6194 const char *name;
6195 void *address;
6196 }
6197 lt__PROGRAM__LTX_preloaded_symbols[] =
6198 {
6199 { "@PROGRAM@", (void *) 0 },
6200 _LT_EOF
6201 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6202 cat <<\_LT_EOF >> conftest.$ac_ext
6203 {0, (void *) 0}
6204 };
6205
6206 /* This works around a problem in FreeBSD linker */
6207 #ifdef FREEBSD_WORKAROUND
6208 static const void *lt_preloaded_setup() {
6209 return lt__PROGRAM__LTX_preloaded_symbols;
6210 }
6211 #endif
6212
6213 #ifdef __cplusplus
6214 }
6215 #endif
6216 _LT_EOF
6217 # Now try linking the two files.
6218 mv conftest.$ac_objext conftstm.$ac_objext
6219 lt_save_LIBS="$LIBS"
6220 lt_save_CFLAGS="$CFLAGS"
6221 LIBS="conftstm.$ac_objext"
6222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6228 pipe_works=yes
6229 fi
6230 LIBS="$lt_save_LIBS"
6231 CFLAGS="$lt_save_CFLAGS"
6232 else
6233 echo "cannot find nm_test_func in $nlist" >&5
6234 fi
6235 else
6236 echo "cannot find nm_test_var in $nlist" >&5
6237 fi
6238 else
6239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6240 fi
6241 else
6242 echo "$progname: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 fi
6245 rm -f conftest* conftst*
6246
6247 # Do not use the global_symbol_pipe unless it works.
6248 if test "$pipe_works" = yes; then
6249 break
6250 else
6251 lt_cv_sys_global_symbol_pipe=
6252 fi
6253 done
6254
6255 fi
6256
6257 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6258 lt_cv_sys_global_symbol_to_cdecl=
6259 fi
6260 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6261 echo "$as_me:$LINENO: result: failed" >&5
6262 echo "${ECHO_T}failed" >&6
6263 else
6264 echo "$as_me:$LINENO: result: ok" >&5
6265 echo "${ECHO_T}ok" >&6
6266 fi
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6285 if test "${enable_libtool_lock+set}" = set; then
6286 enableval="$enable_libtool_lock"
6287
6288 fi;
6289 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6290
6291 # Some flags need to be propagated to the compiler or linker for good
6292 # libtool support.
6293 case $host in
6294 ia64-*-hpux*)
6295 # Find out which ABI we are using.
6296 echo 'int i;' > conftest.$ac_ext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; then
6302 case `/usr/bin/file conftest.$ac_objext` in
6303 *ELF-32*)
6304 HPUX_IA64_MODE="32"
6305 ;;
6306 *ELF-64*)
6307 HPUX_IA64_MODE="64"
6308 ;;
6309 esac
6310 fi
6311 rm -rf conftest*
6312 ;;
6313 *-*-irix6*)
6314 # Find out which ABI we are using.
6315 echo '#line 6315 "configure"' > conftest.$ac_ext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; then
6321 if test "$lt_cv_prog_gnu_ld" = yes; then
6322 case `/usr/bin/file conftest.$ac_objext` in
6323 *32-bit*)
6324 LD="${LD-ld} -melf32bsmip"
6325 ;;
6326 *N32*)
6327 LD="${LD-ld} -melf32bmipn32"
6328 ;;
6329 *64-bit*)
6330 LD="${LD-ld} -melf64bmip"
6331 ;;
6332 esac
6333 else
6334 case `/usr/bin/file conftest.$ac_objext` in
6335 *32-bit*)
6336 LD="${LD-ld} -32"
6337 ;;
6338 *N32*)
6339 LD="${LD-ld} -n32"
6340 ;;
6341 *64-bit*)
6342 LD="${LD-ld} -64"
6343 ;;
6344 esac
6345 fi
6346 fi
6347 rm -rf conftest*
6348 ;;
6349
6350 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6351 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6352 # Find out which ABI we are using.
6353 echo 'int i;' > conftest.$ac_ext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; then
6359 case `/usr/bin/file conftest.o` in
6360 *32-bit*)
6361 case $host in
6362 x86_64-*kfreebsd*-gnu)
6363 LD="${LD-ld} -m elf_i386_fbsd"
6364 ;;
6365 x86_64-*linux*)
6366 LD="${LD-ld} -m elf_i386"
6367 ;;
6368 ppc64-*linux*|powerpc64-*linux*)
6369 LD="${LD-ld} -m elf32ppclinux"
6370 ;;
6371 s390x-*linux*)
6372 LD="${LD-ld} -m elf_s390"
6373 ;;
6374 sparc64-*linux*)
6375 LD="${LD-ld} -m elf32_sparc"
6376 ;;
6377 esac
6378 ;;
6379 *64-bit*)
6380 case $host in
6381 x86_64-*kfreebsd*-gnu)
6382 LD="${LD-ld} -m elf_x86_64_fbsd"
6383 ;;
6384 x86_64-*linux*)
6385 LD="${LD-ld} -m elf_x86_64"
6386 ;;
6387 ppc*-*linux*|powerpc*-*linux*)
6388 LD="${LD-ld} -m elf64ppc"
6389 ;;
6390 s390*-*linux*|s390*-*tpf*)
6391 LD="${LD-ld} -m elf64_s390"
6392 ;;
6393 sparc*-*linux*)
6394 LD="${LD-ld} -m elf64_sparc"
6395 ;;
6396 esac
6397 ;;
6398 esac
6399 fi
6400 rm -rf conftest*
6401 ;;
6402
6403 *-*-sco3.2v5*)
6404 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6405 SAVE_CFLAGS="$CFLAGS"
6406 CFLAGS="$CFLAGS -belf"
6407 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6408 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6409 if test "${lt_cv_cc_needs_belf+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 ac_ext=c
6413 ac_cpp='$CPP $CPPFLAGS'
6414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6417
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424
6425 int
6426 main ()
6427 {
6428
6429 ;
6430 return 0;
6431 }
6432 _ACEOF
6433 rm -f conftest.$ac_objext conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435 (eval $ac_link) 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -z "$ac_c_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest$ac_exeext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 lt_cv_cc_needs_belf=yes
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 lt_cv_cc_needs_belf=no
6461 fi
6462 rm -f conftest.err conftest.$ac_objext \
6463 conftest$ac_exeext conftest.$ac_ext
6464 ac_ext=c
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6469
6470 fi
6471 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6472 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6473 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6474 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6475 CFLAGS="$SAVE_CFLAGS"
6476 fi
6477 ;;
6478 sparc*-*solaris*)
6479 # Find out which ABI we are using.
6480 echo 'int i;' > conftest.$ac_ext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; then
6486 case `/usr/bin/file conftest.o` in
6487 *64-bit*)
6488 case $lt_cv_prog_gnu_ld in
6489 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6490 *) LD="${LD-ld} -64" ;;
6491 esac
6492 ;;
6493 esac
6494 fi
6495 rm -rf conftest*
6496 ;;
6497 esac
6498
6499 need_locks="$enable_libtool_lock"
6500
6501
6502 for ac_header in dlfcn.h
6503 do
6504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6505 echo "$as_me:$LINENO: checking for $ac_header" >&5
6506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
6517
6518 #include <$ac_header>
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 eval "$as_ac_Header=yes"
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 eval "$as_ac_Header=no"
6548 fi
6549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550 fi
6551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6554 cat >>confdefs.h <<_ACEOF
6555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6556 _ACEOF
6557
6558 fi
6559
6560 done
6561
6562
6563
6564 # This can be used to rebuild libtool when needed
6565 LIBTOOL_DEPS="$ltmain"
6566
6567 # Always use our own libtool.
6568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
6594 test -z "$LN_S" && LN_S="ln -s"
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609 if test -n "${ZSH_VERSION+set}" ; then
6610 setopt NO_GLOB_SUBST
6611 fi
6612
6613 echo "$as_me:$LINENO: checking for objdir" >&5
6614 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6615 if test "${lt_cv_objdir+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 rm -f .libs 2>/dev/null
6619 mkdir .libs 2>/dev/null
6620 if test -d .libs; then
6621 lt_cv_objdir=.libs
6622 else
6623 # MS-DOS does not allow filenames that begin with a dot.
6624 lt_cv_objdir=_libs
6625 fi
6626 rmdir .libs 2>/dev/null
6627 fi
6628 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6629 echo "${ECHO_T}$lt_cv_objdir" >&6
6630 objdir=$lt_cv_objdir
6631
6632
6633
6634
6635
6636 cat >>confdefs.h <<_ACEOF
6637 #define LT_OBJDIR "$lt_cv_objdir/"
6638 _ACEOF
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656 case $host_os in
6657 aix3*)
6658 # AIX sometimes has problems with the GCC collect2 program. For some
6659 # reason, if we set the COLLECT_NAMES environment variable, the problems
6660 # vanish in a puff of smoke.
6661 if test "X${COLLECT_NAMES+set}" != Xset; then
6662 COLLECT_NAMES=
6663 export COLLECT_NAMES
6664 fi
6665 ;;
6666 esac
6667
6668 # Sed substitution that helps us do robust quoting. It backslashifies
6669 # metacharacters that are still active within double-quoted strings.
6670 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6671
6672 # Same as above, but do not quote variable references.
6673 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6674
6675 # Sed substitution to delay expansion of an escaped shell variable in a
6676 # double_quote_subst'ed string.
6677 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6678
6679 # Sed substitution to delay expansion of an escaped single quote.
6680 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6681
6682 # Sed substitution to avoid accidental globbing in evaled expressions
6683 no_glob_subst='s/\*/\\\*/g'
6684
6685 # Global variables:
6686 ofile=libtool
6687 can_build_shared=yes
6688
6689 # All known linkers require a `.a' archive for static linking (except MSVC,
6690 # which needs '.lib').
6691 libext=a
6692
6693 with_gnu_ld="$lt_cv_prog_gnu_ld"
6694
6695 old_CC="$CC"
6696 old_CFLAGS="$CFLAGS"
6697
6698 # Set sane defaults for various variables
6699 test -z "$CC" && CC=cc
6700 test -z "$LTCC" && LTCC=$CC
6701 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6702 test -z "$LD" && LD=ld
6703 test -z "$ac_objext" && ac_objext=o
6704
6705 for cc_temp in $compiler""; do
6706 case $cc_temp in
6707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6709 \-*) ;;
6710 *) break;;
6711 esac
6712 done
6713 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6714
6715
6716 # Only perform the check for file, if the check method requires it
6717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6718 case $deplibs_check_method in
6719 file_magic*)
6720 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6721 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6722 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6723 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 case $MAGIC_CMD in
6727 [\\/*] | ?:[\\/]*)
6728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6729 ;;
6730 *)
6731 lt_save_MAGIC_CMD="$MAGIC_CMD"
6732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6734 for ac_dir in $ac_dummy; do
6735 IFS="$lt_save_ifs"
6736 test -z "$ac_dir" && ac_dir=.
6737 if test -f $ac_dir/${ac_tool_prefix}file; then
6738 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6739 if test -n "$file_magic_test_file"; then
6740 case $deplibs_check_method in
6741 "file_magic "*)
6742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6745 $EGREP "$file_magic_regex" > /dev/null; then
6746 :
6747 else
6748 cat <<_LT_EOF 1>&2
6749
6750 *** Warning: the command libtool uses to detect shared libraries,
6751 *** $file_magic_cmd, produces output that libtool cannot recognize.
6752 *** The result is that libtool may fail to recognize shared libraries
6753 *** as such. This will affect the creation of libtool libraries that
6754 *** depend on shared libraries, but programs linked with such libtool
6755 *** libraries will work regardless of this problem. Nevertheless, you
6756 *** may want to report the problem to your system manager and/or to
6757 *** bug-libtool@gnu.org
6758
6759 _LT_EOF
6760 fi ;;
6761 esac
6762 fi
6763 break
6764 fi
6765 done
6766 IFS="$lt_save_ifs"
6767 MAGIC_CMD="$lt_save_MAGIC_CMD"
6768 ;;
6769 esac
6770 fi
6771
6772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6773 if test -n "$MAGIC_CMD"; then
6774 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6775 echo "${ECHO_T}$MAGIC_CMD" >&6
6776 else
6777 echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6
6779 fi
6780
6781
6782
6783
6784
6785 if test -z "$lt_cv_path_MAGIC_CMD"; then
6786 if test -n "$ac_tool_prefix"; then
6787 echo "$as_me:$LINENO: checking for file" >&5
6788 echo $ECHO_N "checking for file... $ECHO_C" >&6
6789 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 case $MAGIC_CMD in
6793 [\\/*] | ?:[\\/]*)
6794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6795 ;;
6796 *)
6797 lt_save_MAGIC_CMD="$MAGIC_CMD"
6798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6800 for ac_dir in $ac_dummy; do
6801 IFS="$lt_save_ifs"
6802 test -z "$ac_dir" && ac_dir=.
6803 if test -f $ac_dir/file; then
6804 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6805 if test -n "$file_magic_test_file"; then
6806 case $deplibs_check_method in
6807 "file_magic "*)
6808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6811 $EGREP "$file_magic_regex" > /dev/null; then
6812 :
6813 else
6814 cat <<_LT_EOF 1>&2
6815
6816 *** Warning: the command libtool uses to detect shared libraries,
6817 *** $file_magic_cmd, produces output that libtool cannot recognize.
6818 *** The result is that libtool may fail to recognize shared libraries
6819 *** as such. This will affect the creation of libtool libraries that
6820 *** depend on shared libraries, but programs linked with such libtool
6821 *** libraries will work regardless of this problem. Nevertheless, you
6822 *** may want to report the problem to your system manager and/or to
6823 *** bug-libtool@gnu.org
6824
6825 _LT_EOF
6826 fi ;;
6827 esac
6828 fi
6829 break
6830 fi
6831 done
6832 IFS="$lt_save_ifs"
6833 MAGIC_CMD="$lt_save_MAGIC_CMD"
6834 ;;
6835 esac
6836 fi
6837
6838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6839 if test -n "$MAGIC_CMD"; then
6840 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6841 echo "${ECHO_T}$MAGIC_CMD" >&6
6842 else
6843 echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6
6845 fi
6846
6847
6848 else
6849 MAGIC_CMD=:
6850 fi
6851 fi
6852
6853 fi
6854 ;;
6855 esac
6856
6857 # Use C for the default configuration in the libtool script
6858
6859 lt_save_CC="$CC"
6860 ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865
6866
6867 # Source file extension for C test sources.
6868 ac_ext=c
6869
6870 # Object file extension for compiled C test sources.
6871 objext=o
6872 objext=$objext
6873
6874 # Code to be used in simple compile tests
6875 lt_simple_compile_test_code="int some_variable = 0;"
6876
6877 # Code to be used in simple link tests
6878 lt_simple_link_test_code='int main(){return(0);}'
6879
6880
6881
6882
6883
6884
6885
6886 # If no C compiler was specified, use CC.
6887 LTCC=${LTCC-"$CC"}
6888
6889 # If no C compiler flags were specified, use CFLAGS.
6890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891
6892 # Allow CC to be a program name with arguments.
6893 compiler=$CC
6894
6895 # Save the default compiler, since it gets overwritten when the other
6896 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6897 compiler_DEFAULT=$CC
6898
6899 # save warnings/boilerplate of simple test code
6900 ac_outfile=conftest.$ac_objext
6901 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6903 _lt_compiler_boilerplate=`cat conftest.err`
6904 $RM conftest*
6905
6906 ac_outfile=conftest.$ac_objext
6907 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6909 _lt_linker_boilerplate=`cat conftest.err`
6910 $RM conftest*
6911
6912
6913 ## CAVEAT EMPTOR:
6914 ## There is no encapsulation within the following macros, do not change
6915 ## the running order or otherwise move them around unless you know exactly
6916 ## what you are doing...
6917 if test -n "$compiler"; then
6918
6919 lt_prog_compiler_no_builtin_flag=
6920
6921 if test "$GCC" = yes; then
6922 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6923
6924 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6925 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6926 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 lt_cv_prog_compiler_rtti_exceptions=no
6930 ac_outfile=conftest.$ac_objext
6931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6932 lt_compiler_flag="-fno-rtti -fno-exceptions"
6933 # Insert the option either (1) after the last *FLAGS variable, or
6934 # (2) before a word containing "conftest.", or (3) at the end.
6935 # Note that $ac_compile itself does not contain backslashes and begins
6936 # with a dollar sign (not a hyphen), so the echo should work correctly.
6937 # The option is referenced via a variable to avoid confusing sed.
6938 lt_compile=`echo "$ac_compile" | $SED \
6939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6941 -e 's:$: $lt_compiler_flag:'`
6942 (eval echo "\"\$as_me:6942: $lt_compile\"" >&5)
6943 (eval "$lt_compile" 2>conftest.err)
6944 ac_status=$?
6945 cat conftest.err >&5
6946 echo "$as_me:6946: \$? = $ac_status" >&5
6947 if (exit $ac_status) && test -s "$ac_outfile"; then
6948 # The compiler can only warn and ignore the option if not recognized
6949 # So say no if there are warnings other than the usual output.
6950 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6953 lt_cv_prog_compiler_rtti_exceptions=yes
6954 fi
6955 fi
6956 $RM conftest*
6957
6958 fi
6959 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6960 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6961
6962 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6963 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6964 else
6965 :
6966 fi
6967
6968 fi
6969
6970
6971
6972
6973
6974
6975 lt_prog_compiler_wl=
6976 lt_prog_compiler_pic=
6977 lt_prog_compiler_static=
6978
6979 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6980 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6981
6982 if test "$GCC" = yes; then
6983 lt_prog_compiler_wl='-Wl,'
6984 lt_prog_compiler_static='-static'
6985
6986 case $host_os in
6987 aix*)
6988 # All AIX code is PIC.
6989 if test "$host_cpu" = ia64; then
6990 # AIX 5 now supports IA64 processor
6991 lt_prog_compiler_static='-Bstatic'
6992 fi
6993 ;;
6994
6995 amigaos*)
6996 if test "$host_cpu" = m68k; then
6997 # FIXME: we need at least 68020 code to build shared libraries, but
6998 # adding the `-m68020' flag to GCC prevents building anything better,
6999 # like `-m68040'.
7000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7001 fi
7002 ;;
7003
7004 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7005 # PIC is the default for these OSes.
7006 ;;
7007
7008 mingw* | cygwin* | pw32* | os2*)
7009 # This hack is so that the source file can tell whether it is being
7010 # built for inclusion in a dll (and should export symbols for example).
7011 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7012 # (--disable-auto-import) libraries
7013 lt_prog_compiler_pic='-DDLL_EXPORT'
7014 ;;
7015
7016 darwin* | rhapsody*)
7017 # PIC is the default on this platform
7018 # Common symbols not allowed in MH_DYLIB files
7019 lt_prog_compiler_pic='-fno-common'
7020 ;;
7021
7022 hpux*)
7023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7024 # not for PA HP-UX.
7025 case $host_cpu in
7026 hppa*64*|ia64*)
7027 # +Z the default
7028 ;;
7029 *)
7030 lt_prog_compiler_pic='-fPIC'
7031 ;;
7032 esac
7033 ;;
7034
7035 interix[3-9]*)
7036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7037 # Instead, we relocate shared libraries at runtime.
7038 ;;
7039
7040 msdosdjgpp*)
7041 # Just because we use GCC doesn't mean we suddenly get shared libraries
7042 # on systems that don't support them.
7043 lt_prog_compiler_can_build_shared=no
7044 enable_shared=no
7045 ;;
7046
7047 *nto* | *qnx*)
7048 # QNX uses GNU C++, but need to define -shared option too, otherwise
7049 # it will coredump.
7050 lt_prog_compiler_pic='-fPIC -shared'
7051 ;;
7052
7053 sysv4*MP*)
7054 if test -d /usr/nec; then
7055 lt_prog_compiler_pic=-Kconform_pic
7056 fi
7057 ;;
7058
7059 *)
7060 lt_prog_compiler_pic='-fPIC'
7061 ;;
7062 esac
7063 else
7064 # PORTME Check for flag to pass linker flags through the system compiler.
7065 case $host_os in
7066 aix*)
7067 lt_prog_compiler_wl='-Wl,'
7068 if test "$host_cpu" = ia64; then
7069 # AIX 5 now supports IA64 processor
7070 lt_prog_compiler_static='-Bstatic'
7071 else
7072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7073 fi
7074 ;;
7075 darwin*)
7076 # PIC is the default on this platform
7077 # Common symbols not allowed in MH_DYLIB files
7078 case $cc_basename in
7079 xlc*)
7080 lt_prog_compiler_pic='-qnocommon'
7081 lt_prog_compiler_wl='-Wl,'
7082 ;;
7083 esac
7084 ;;
7085
7086 mingw* | cygwin* | pw32* | os2*)
7087 # This hack is so that the source file can tell whether it is being
7088 # built for inclusion in a dll (and should export symbols for example).
7089 lt_prog_compiler_pic='-DDLL_EXPORT'
7090 ;;
7091
7092 hpux9* | hpux10* | hpux11*)
7093 lt_prog_compiler_wl='-Wl,'
7094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7095 # not for PA HP-UX.
7096 case $host_cpu in
7097 hppa*64*|ia64*)
7098 # +Z the default
7099 ;;
7100 *)
7101 lt_prog_compiler_pic='+Z'
7102 ;;
7103 esac
7104 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7105 lt_prog_compiler_static='${wl}-a ${wl}archive'
7106 ;;
7107
7108 irix5* | irix6* | nonstopux*)
7109 lt_prog_compiler_wl='-Wl,'
7110 # PIC (with -KPIC) is the default.
7111 lt_prog_compiler_static='-non_shared'
7112 ;;
7113
7114 linux* | k*bsd*-gnu)
7115 case $cc_basename in
7116 icc* | ecc*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_pic='-KPIC'
7119 lt_prog_compiler_static='-static'
7120 ;;
7121 pgcc* | pgf77* | pgf90* | pgf95*)
7122 # Portland Group compilers (*not* the Pentium gcc compiler,
7123 # which looks to be a dead project)
7124 lt_prog_compiler_wl='-Wl,'
7125 lt_prog_compiler_pic='-fpic'
7126 lt_prog_compiler_static='-Bstatic'
7127 ;;
7128 ccc*)
7129 lt_prog_compiler_wl='-Wl,'
7130 # All Alpha code is PIC.
7131 lt_prog_compiler_static='-non_shared'
7132 ;;
7133 *)
7134 case `$CC -V 2>&1 | sed 5q` in
7135 *Sun\ C*)
7136 # Sun C 5.9
7137 lt_prog_compiler_pic='-KPIC'
7138 lt_prog_compiler_static='-Bstatic'
7139 lt_prog_compiler_wl='-Wl,'
7140 ;;
7141 *Sun\ F*)
7142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7143 lt_prog_compiler_pic='-KPIC'
7144 lt_prog_compiler_static='-Bstatic'
7145 lt_prog_compiler_wl=''
7146 ;;
7147 esac
7148 ;;
7149 esac
7150 ;;
7151
7152 newsos6)
7153 lt_prog_compiler_pic='-KPIC'
7154 lt_prog_compiler_static='-Bstatic'
7155 ;;
7156
7157 *nto* | *qnx*)
7158 # QNX uses GNU C++, but need to define -shared option too, otherwise
7159 # it will coredump.
7160 lt_prog_compiler_pic='-fPIC -shared'
7161 ;;
7162
7163 osf3* | osf4* | osf5*)
7164 lt_prog_compiler_wl='-Wl,'
7165 # All OSF/1 code is PIC.
7166 lt_prog_compiler_static='-non_shared'
7167 ;;
7168
7169 rdos*)
7170 lt_prog_compiler_static='-non_shared'
7171 ;;
7172
7173 solaris*)
7174 lt_prog_compiler_pic='-KPIC'
7175 lt_prog_compiler_static='-Bstatic'
7176 case $cc_basename in
7177 f77* | f90* | f95*)
7178 lt_prog_compiler_wl='-Qoption ld ';;
7179 *)
7180 lt_prog_compiler_wl='-Wl,';;
7181 esac
7182 ;;
7183
7184 sunos4*)
7185 lt_prog_compiler_wl='-Qoption ld '
7186 lt_prog_compiler_pic='-PIC'
7187 lt_prog_compiler_static='-Bstatic'
7188 ;;
7189
7190 sysv4 | sysv4.2uw2* | sysv4.3*)
7191 lt_prog_compiler_wl='-Wl,'
7192 lt_prog_compiler_pic='-KPIC'
7193 lt_prog_compiler_static='-Bstatic'
7194 ;;
7195
7196 sysv4*MP*)
7197 if test -d /usr/nec ;then
7198 lt_prog_compiler_pic='-Kconform_pic'
7199 lt_prog_compiler_static='-Bstatic'
7200 fi
7201 ;;
7202
7203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7204 lt_prog_compiler_wl='-Wl,'
7205 lt_prog_compiler_pic='-KPIC'
7206 lt_prog_compiler_static='-Bstatic'
7207 ;;
7208
7209 unicos*)
7210 lt_prog_compiler_wl='-Wl,'
7211 lt_prog_compiler_can_build_shared=no
7212 ;;
7213
7214 uts4*)
7215 lt_prog_compiler_pic='-pic'
7216 lt_prog_compiler_static='-Bstatic'
7217 ;;
7218
7219 *)
7220 lt_prog_compiler_can_build_shared=no
7221 ;;
7222 esac
7223 fi
7224
7225 case $host_os in
7226 # For platforms which do not support PIC, -DPIC is meaningless:
7227 *djgpp*)
7228 lt_prog_compiler_pic=
7229 ;;
7230 *)
7231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7232 ;;
7233 esac
7234 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7235 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7236
7237
7238
7239
7240
7241
7242 #
7243 # Check to make sure the PIC flag actually works.
7244 #
7245 if test -n "$lt_prog_compiler_pic"; then
7246 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7248 if test "${lt_prog_compiler_pic_works+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 lt_prog_compiler_pic_works=no
7252 ac_outfile=conftest.$ac_objext
7253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7255 # Insert the option either (1) after the last *FLAGS variable, or
7256 # (2) before a word containing "conftest.", or (3) at the end.
7257 # Note that $ac_compile itself does not contain backslashes and begins
7258 # with a dollar sign (not a hyphen), so the echo should work correctly.
7259 # The option is referenced via a variable to avoid confusing sed.
7260 lt_compile=`echo "$ac_compile" | $SED \
7261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7263 -e 's:$: $lt_compiler_flag:'`
7264 (eval echo "\"\$as_me:7264: $lt_compile\"" >&5)
7265 (eval "$lt_compile" 2>conftest.err)
7266 ac_status=$?
7267 cat conftest.err >&5
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 if (exit $ac_status) && test -s "$ac_outfile"; then
7270 # The compiler can only warn and ignore the option if not recognized
7271 # So say no if there are warnings other than the usual output.
7272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7275 lt_prog_compiler_pic_works=yes
7276 fi
7277 fi
7278 $RM conftest*
7279
7280 fi
7281 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7282 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7283
7284 if test x"$lt_prog_compiler_pic_works" = xyes; then
7285 case $lt_prog_compiler_pic in
7286 "" | " "*) ;;
7287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7288 esac
7289 else
7290 lt_prog_compiler_pic=
7291 lt_prog_compiler_can_build_shared=no
7292 fi
7293
7294 fi
7295
7296
7297
7298
7299
7300
7301 #
7302 # Check to make sure the static flag actually works.
7303 #
7304 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7305 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7306 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7307 if test "${lt_prog_compiler_static_works+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 lt_prog_compiler_static_works=no
7311 save_LDFLAGS="$LDFLAGS"
7312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7315 # The linker can only warn and ignore the option if not recognized
7316 # So say no if there are warnings
7317 if test -s conftest.err; then
7318 # Append any errors to the config.log.
7319 cat conftest.err 1>&5
7320 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7322 if diff conftest.exp conftest.er2 >/dev/null; then
7323 lt_prog_compiler_static_works=yes
7324 fi
7325 else
7326 lt_prog_compiler_static_works=yes
7327 fi
7328 fi
7329 $RM conftest*
7330 LDFLAGS="$save_LDFLAGS"
7331
7332 fi
7333 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7334 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7335
7336 if test x"$lt_prog_compiler_static_works" = xyes; then
7337 :
7338 else
7339 lt_prog_compiler_static=
7340 fi
7341
7342
7343
7344
7345
7346
7347
7348 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 lt_cv_prog_compiler_c_o=no
7354 $RM -r conftest 2>/dev/null
7355 mkdir conftest
7356 cd conftest
7357 mkdir out
7358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7359
7360 lt_compiler_flag="-o out/conftest2.$ac_objext"
7361 # Insert the option either (1) after the last *FLAGS variable, or
7362 # (2) before a word containing "conftest.", or (3) at the end.
7363 # Note that $ac_compile itself does not contain backslashes and begins
7364 # with a dollar sign (not a hyphen), so the echo should work correctly.
7365 lt_compile=`echo "$ac_compile" | $SED \
7366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368 -e 's:$: $lt_compiler_flag:'`
7369 (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370 (eval "$lt_compile" 2>out/conftest.err)
7371 ac_status=$?
7372 cat out/conftest.err >&5
7373 echo "$as_me:7373: \$? = $ac_status" >&5
7374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7375 then
7376 # The compiler can only warn and ignore the option if not recognized
7377 # So say no if there are warnings
7378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7381 lt_cv_prog_compiler_c_o=yes
7382 fi
7383 fi
7384 chmod u+w . 2>&5
7385 $RM conftest*
7386 # SGI C++ compiler will create directory out/ii_files/ for
7387 # template instantiation
7388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7389 $RM out/* && rmdir out
7390 cd ..
7391 $RM -r conftest
7392 $RM conftest*
7393
7394 fi
7395 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7397
7398
7399
7400
7401
7402
7403 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7404 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 lt_cv_prog_compiler_c_o=no
7409 $RM -r conftest 2>/dev/null
7410 mkdir conftest
7411 cd conftest
7412 mkdir out
7413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414
7415 lt_compiler_flag="-o out/conftest2.$ac_objext"
7416 # Insert the option either (1) after the last *FLAGS variable, or
7417 # (2) before a word containing "conftest.", or (3) at the end.
7418 # Note that $ac_compile itself does not contain backslashes and begins
7419 # with a dollar sign (not a hyphen), so the echo should work correctly.
7420 lt_compile=`echo "$ac_compile" | $SED \
7421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423 -e 's:$: $lt_compiler_flag:'`
7424 (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7425 (eval "$lt_compile" 2>out/conftest.err)
7426 ac_status=$?
7427 cat out/conftest.err >&5
7428 echo "$as_me:7428: \$? = $ac_status" >&5
7429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7430 then
7431 # The compiler can only warn and ignore the option if not recognized
7432 # So say no if there are warnings
7433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7436 lt_cv_prog_compiler_c_o=yes
7437 fi
7438 fi
7439 chmod u+w . 2>&5
7440 $RM conftest*
7441 # SGI C++ compiler will create directory out/ii_files/ for
7442 # template instantiation
7443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7444 $RM out/* && rmdir out
7445 cd ..
7446 $RM -r conftest
7447 $RM conftest*
7448
7449 fi
7450 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7451 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7452
7453
7454
7455
7456 hard_links="nottested"
7457 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7458 # do not overwrite the value of need_locks provided by the user
7459 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7460 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7461 hard_links=yes
7462 $RM conftest*
7463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7464 touch conftest.a
7465 ln conftest.a conftest.b 2>&5 || hard_links=no
7466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7467 echo "$as_me:$LINENO: result: $hard_links" >&5
7468 echo "${ECHO_T}$hard_links" >&6
7469 if test "$hard_links" = no; then
7470 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7471 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7472 need_locks=warn
7473 fi
7474 else
7475 need_locks=no
7476 fi
7477
7478
7479
7480
7481
7482
7483 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7484 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7485
7486 runpath_var=
7487 allow_undefined_flag=
7488 always_export_symbols=no
7489 archive_cmds=
7490 archive_expsym_cmds=
7491 compiler_needs_object=no
7492 enable_shared_with_static_runtimes=no
7493 export_dynamic_flag_spec=
7494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7495 hardcode_automatic=no
7496 hardcode_direct=no
7497 hardcode_direct_absolute=no
7498 hardcode_libdir_flag_spec=
7499 hardcode_libdir_flag_spec_ld=
7500 hardcode_libdir_separator=
7501 hardcode_minus_L=no
7502 hardcode_shlibpath_var=unsupported
7503 inherit_rpath=no
7504 link_all_deplibs=unknown
7505 module_cmds=
7506 module_expsym_cmds=
7507 old_archive_from_new_cmds=
7508 old_archive_from_expsyms_cmds=
7509 thread_safe_flag_spec=
7510 whole_archive_flag_spec=
7511 # include_expsyms should be a list of space-separated symbols to be *always*
7512 # included in the symbol list
7513 include_expsyms=
7514 # exclude_expsyms can be an extended regexp of symbols to exclude
7515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7517 # as well as any symbol that contains `d'.
7518 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7520 # platforms (ab)use it in PIC code, but their linkers get confused if
7521 # the symbol is explicitly referenced. Since portable code cannot
7522 # rely on this symbol name, it's probably fine to never include it in
7523 # preloaded symbol tables.
7524 extract_expsyms_cmds=
7525
7526 case $host_os in
7527 cygwin* | mingw* | pw32*)
7528 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7529 # When not using gcc, we currently assume that we are using
7530 # Microsoft Visual C++.
7531 if test "$GCC" != yes; then
7532 with_gnu_ld=no
7533 fi
7534 ;;
7535 interix*)
7536 # we just hope/assume this is gcc and not c89 (= MSVC++)
7537 with_gnu_ld=yes
7538 ;;
7539 openbsd*)
7540 with_gnu_ld=no
7541 ;;
7542 esac
7543
7544 ld_shlibs=yes
7545 if test "$with_gnu_ld" = yes; then
7546 # If archive_cmds runs LD, not CC, wlarc should be empty
7547 wlarc='${wl}'
7548
7549 # Set some defaults for GNU ld with shared library support. These
7550 # are reset later if shared libraries are not supported. Putting them
7551 # here allows them to be overridden if necessary.
7552 runpath_var=LD_RUN_PATH
7553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7554 export_dynamic_flag_spec='${wl}--export-dynamic'
7555 # ancient GNU ld didn't support --whole-archive et. al.
7556 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7557 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7558 else
7559 whole_archive_flag_spec=
7560 fi
7561 supports_anon_versioning=no
7562 case `$LD -v 2>&1` in
7563 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7564 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7565 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7566 *\ 2.11.*) ;; # other 2.11 versions
7567 *) supports_anon_versioning=yes ;;
7568 esac
7569
7570 # See if GNU ld supports shared libraries.
7571 case $host_os in
7572 aix[3-9]*)
7573 # On AIX/PPC, the GNU linker is very broken
7574 if test "$host_cpu" != ia64; then
7575 ld_shlibs=no
7576 cat <<_LT_EOF 1>&2
7577
7578 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7579 *** to be unable to reliably create shared libraries on AIX.
7580 *** Therefore, libtool is disabling shared libraries support. If you
7581 *** really care for shared libraries, you may want to modify your PATH
7582 *** so that a non-GNU linker is found, and then restart.
7583
7584 _LT_EOF
7585 fi
7586 ;;
7587
7588 amigaos*)
7589 if test "$host_cpu" = m68k; then
7590 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)'
7591 hardcode_libdir_flag_spec='-L$libdir'
7592 hardcode_minus_L=yes
7593 fi
7594
7595 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7596 # that the semantics of dynamic libraries on AmigaOS, at least up
7597 # to version 4, is to share data among multiple programs linked
7598 # with the same dynamic library. Since this doesn't match the
7599 # behavior of shared libraries on other platforms, we can't use
7600 # them.
7601 ld_shlibs=no
7602 ;;
7603
7604 beos*)
7605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7606 allow_undefined_flag=unsupported
7607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7608 # support --undefined. This deserves some investigation. FIXME
7609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610 else
7611 ld_shlibs=no
7612 fi
7613 ;;
7614
7615 cygwin* | mingw* | pw32*)
7616 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7617 # as there is no search path for DLLs.
7618 hardcode_libdir_flag_spec='-L$libdir'
7619 allow_undefined_flag=unsupported
7620 always_export_symbols=no
7621 enable_shared_with_static_runtimes=yes
7622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7623
7624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7626 # If the export-symbols file already is a .def file (1st line
7627 # is EXPORTS), use it as is; otherwise, prepend...
7628 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7629 cp $export_symbols $output_objdir/$soname.def;
7630 else
7631 echo EXPORTS > $output_objdir/$soname.def;
7632 cat $export_symbols >> $output_objdir/$soname.def;
7633 fi~
7634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7635 else
7636 ld_shlibs=no
7637 fi
7638 ;;
7639
7640 interix[3-9]*)
7641 hardcode_direct=no
7642 hardcode_shlibpath_var=no
7643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7644 export_dynamic_flag_spec='${wl}-E'
7645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7646 # Instead, shared libraries are loaded at an image base (0x10000000 by
7647 # default) and relocated if they conflict, which is a slow very memory
7648 # consuming and fragmenting process. To avoid this, we pick a random,
7649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7652 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'
7653 ;;
7654
7655 gnu* | linux* | tpf* | k*bsd*-gnu)
7656 tmp_diet=no
7657 if test "$host_os" = linux-dietlibc; then
7658 case $cc_basename in
7659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7660 esac
7661 fi
7662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7663 && test "$tmp_diet" = no
7664 then
7665 tmp_addflag=
7666 case $cc_basename,$host_cpu in
7667 pgcc*) # Portland Group C compiler
7668 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'
7669 tmp_addflag=' $pic_flag'
7670 ;;
7671 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7672 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'
7673 tmp_addflag=' $pic_flag -Mnomain' ;;
7674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7675 tmp_addflag=' -i_dynamic' ;;
7676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7677 tmp_addflag=' -i_dynamic -nofor_main' ;;
7678 ifc* | ifort*) # Intel Fortran compiler
7679 tmp_addflag=' -nofor_main' ;;
7680 esac
7681 case `$CC -V 2>&1 | sed 5q` in
7682 *Sun\ C*) # Sun C 5.9
7683 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'
7684 compiler_needs_object=yes
7685 tmp_sharedflag='-G' ;;
7686 *Sun\ F*) # Sun Fortran 8.3
7687 tmp_sharedflag='-G' ;;
7688 *)
7689 tmp_sharedflag='-shared' ;;
7690 esac
7691 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692
7693 if test "x$supports_anon_versioning" = xyes; then
7694 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7696 echo "local: *; };" >> $output_objdir/$libname.ver~
7697 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7698 fi
7699 else
7700 ld_shlibs=no
7701 fi
7702 ;;
7703
7704 netbsd*)
7705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7706 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7707 wlarc=
7708 else
7709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711 fi
7712 ;;
7713
7714 solaris*)
7715 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7716 ld_shlibs=no
7717 cat <<_LT_EOF 1>&2
7718
7719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7720 *** create shared libraries on Solaris systems. Therefore, libtool
7721 *** is disabling shared libraries support. We urge you to upgrade GNU
7722 *** binutils to release 2.9.1 or newer. Another option is to modify
7723 *** your PATH or compiler configuration so that the native linker is
7724 *** used, and then restart.
7725
7726 _LT_EOF
7727 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7730 else
7731 ld_shlibs=no
7732 fi
7733 ;;
7734
7735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7736 case `$LD -v 2>&1` in
7737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7738 ld_shlibs=no
7739 cat <<_LT_EOF 1>&2
7740
7741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7742 *** reliably create shared libraries on SCO systems. Therefore, libtool
7743 *** is disabling shared libraries support. We urge you to upgrade GNU
7744 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7745 *** your PATH or compiler configuration so that the native linker is
7746 *** used, and then restart.
7747
7748 _LT_EOF
7749 ;;
7750 *)
7751 # For security reasons, it is highly recommended that you always
7752 # use absolute paths for naming shared libraries, and exclude the
7753 # DT_RUNPATH tag from executables and libraries. But doing so
7754 # requires that you compile everything twice, which is a pain.
7755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7759 else
7760 ld_shlibs=no
7761 fi
7762 ;;
7763 esac
7764 ;;
7765
7766 sunos4*)
7767 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7768 wlarc=
7769 hardcode_direct=yes
7770 hardcode_shlibpath_var=no
7771 ;;
7772
7773 *)
7774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7777 else
7778 ld_shlibs=no
7779 fi
7780 ;;
7781 esac
7782
7783 if test "$ld_shlibs" = no; then
7784 runpath_var=
7785 hardcode_libdir_flag_spec=
7786 export_dynamic_flag_spec=
7787 whole_archive_flag_spec=
7788 fi
7789 else
7790 # PORTME fill in a description of your system's linker (not GNU ld)
7791 case $host_os in
7792 aix3*)
7793 allow_undefined_flag=unsupported
7794 always_export_symbols=yes
7795 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'
7796 # Note: this linker hardcodes the directories in LIBPATH if there
7797 # are no directories specified by -L.
7798 hardcode_minus_L=yes
7799 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7800 # Neither direct hardcoding nor static linking is supported with a
7801 # broken collect2.
7802 hardcode_direct=unsupported
7803 fi
7804 ;;
7805
7806 aix[4-9]*)
7807 if test "$host_cpu" = ia64; then
7808 # On IA64, the linker does run time linking by default, so we don't
7809 # have to do anything special.
7810 aix_use_runtimelinking=no
7811 exp_sym_flag='-Bexport'
7812 no_entry_flag=""
7813 else
7814 # If we're using GNU nm, then we don't want the "-C" option.
7815 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7816 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7817 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'
7818 else
7819 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'
7820 fi
7821 aix_use_runtimelinking=no
7822
7823 # Test if we are trying to use run time linking or normal
7824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7825 # need to do runtime linking.
7826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7827 for ld_flag in $LDFLAGS; do
7828 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7829 aix_use_runtimelinking=yes
7830 break
7831 fi
7832 done
7833 ;;
7834 esac
7835
7836 exp_sym_flag='-bexport'
7837 no_entry_flag='-bnoentry'
7838 fi
7839
7840 # When large executables or shared objects are built, AIX ld can
7841 # have problems creating the table of contents. If linking a library
7842 # or program results in "error TOC overflow" add -mminimal-toc to
7843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7845
7846 archive_cmds=''
7847 hardcode_direct=yes
7848 hardcode_direct_absolute=yes
7849 hardcode_libdir_separator=':'
7850 link_all_deplibs=yes
7851 file_list_spec='${wl}-f,'
7852
7853 if test "$GCC" = yes; then
7854 case $host_os in aix4.[012]|aix4.[012].*)
7855 # We only want to do this on AIX 4.2 and lower, the check
7856 # below for broken collect2 doesn't work under 4.3+
7857 collect2name=`${CC} -print-prog-name=collect2`
7858 if test -f "$collect2name" &&
7859 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7860 then
7861 # We have reworked collect2
7862 :
7863 else
7864 # We have old collect2
7865 hardcode_direct=unsupported
7866 # It fails to find uninstalled libraries when the uninstalled
7867 # path is not listed in the libpath. Setting hardcode_minus_L
7868 # to unsupported forces relinking
7869 hardcode_minus_L=yes
7870 hardcode_libdir_flag_spec='-L$libdir'
7871 hardcode_libdir_separator=
7872 fi
7873 ;;
7874 esac
7875 shared_flag='-shared'
7876 if test "$aix_use_runtimelinking" = yes; then
7877 shared_flag="$shared_flag "'${wl}-G'
7878 fi
7879 else
7880 # not using gcc
7881 if test "$host_cpu" = ia64; then
7882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7883 # chokes on -Wl,-G. The following line is correct:
7884 shared_flag='-G'
7885 else
7886 if test "$aix_use_runtimelinking" = yes; then
7887 shared_flag='${wl}-G'
7888 else
7889 shared_flag='${wl}-bM:SRE'
7890 fi
7891 fi
7892 fi
7893
7894 # It seems that -bexpall does not export symbols beginning with
7895 # underscore (_), so it is better to generate a list of symbols to export.
7896 always_export_symbols=yes
7897 if test "$aix_use_runtimelinking" = yes; then
7898 # Warning - without using the other runtime loading flags (-brtl),
7899 # -berok will link without error, but may produce a broken library.
7900 allow_undefined_flag='-berok'
7901 # Determine the default libpath from the value encoded in an
7902 # empty executable.
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909
7910 int
7911 main ()
7912 {
7913
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag"
7928 || test ! -s conftest.err'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940
7941 lt_aix_libpath_sed='
7942 /Import File Strings/,/^$/ {
7943 /^0/ {
7944 s/^0 *\(.*\)$/\1/
7945 p
7946 }
7947 }'
7948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949 # Check for a 64-bit object if we didn't find anything.
7950 if test -z "$aix_libpath"; then
7951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952 fi
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 fi
7958 rm -f conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7961
7962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7963 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"
7964 else
7965 if test "$host_cpu" = ia64; then
7966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7967 allow_undefined_flag="-z nodefs"
7968 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"
7969 else
7970 # Determine the default libpath from the value encoded in an
7971 # empty executable.
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978
7979 int
7980 main ()
7981 {
7982
7983 ;
7984 return 0;
7985 }
7986 _ACEOF
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -z "$ac_c_werror_flag"
7997 || test ! -s conftest.err'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 (eval $ac_try) 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; } &&
8003 { ac_try='test -s conftest$ac_exeext'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 (eval $ac_try) 2>&5
8006 ac_status=$?
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
8009
8010 lt_aix_libpath_sed='
8011 /Import File Strings/,/^$/ {
8012 /^0/ {
8013 s/^0 *\(.*\)$/\1/
8014 p
8015 }
8016 }'
8017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8018 # Check for a 64-bit object if we didn't find anything.
8019 if test -z "$aix_libpath"; then
8020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8021 fi
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 fi
8027 rm -f conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8030
8031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8032 # Warning - without using the other run time loading flags,
8033 # -berok will link without error, but may produce a broken library.
8034 no_undefined_flag=' ${wl}-bernotok'
8035 allow_undefined_flag=' ${wl}-berok'
8036 # Exported symbols can be pulled into shared objects from archives
8037 whole_archive_flag_spec='$convenience'
8038 archive_cmds_need_lc=yes
8039 # This is similar to how AIX traditionally builds its shared libraries.
8040 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'
8041 fi
8042 fi
8043 ;;
8044
8045 amigaos*)
8046 if test "$host_cpu" = m68k; then
8047 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)'
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_minus_L=yes
8050 fi
8051 # see comment about different semantics on the GNU ld section
8052 ld_shlibs=no
8053 ;;
8054
8055 bsdi[45]*)
8056 export_dynamic_flag_spec=-rdynamic
8057 ;;
8058
8059 cygwin* | mingw* | pw32*)
8060 # When not using gcc, we currently assume that we are using
8061 # Microsoft Visual C++.
8062 # hardcode_libdir_flag_spec is actually meaningless, as there is
8063 # no search path for DLLs.
8064 hardcode_libdir_flag_spec=' '
8065 allow_undefined_flag=unsupported
8066 # Tell ltmain to make .lib files, not .a files.
8067 libext=lib
8068 # Tell ltmain to make .dll files, not .so files.
8069 shrext_cmds=".dll"
8070 # FIXME: Setting linknames here is a bad hack.
8071 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8072 # The linker will automatically build a .lib file if we build a DLL.
8073 old_archive_from_new_cmds='true'
8074 # FIXME: Should let the user specify the lib program.
8075 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8076 fix_srcfile_path='`cygpath -w "$srcfile"`'
8077 enable_shared_with_static_runtimes=yes
8078 ;;
8079
8080 darwin* | rhapsody*)
8081 case $host_os in
8082 rhapsody* | darwin1.[012])
8083 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8084 ;;
8085 *) # Darwin 1.3 on
8086 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8087 10.[012])
8088 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8089 ;;
8090 10.*)
8091 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8092 ;;
8093 esac
8094 ;;
8095 esac
8096 archive_cmds_need_lc=no
8097 hardcode_direct=no
8098 hardcode_automatic=yes
8099 hardcode_shlibpath_var=unsupported
8100 whole_archive_flag_spec=''
8101 link_all_deplibs=yes
8102 if test "$GCC" = yes ; then
8103 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 lt_cv_apple_cc_single_mod=no
8107 if test -z "${LT_MULTI_MODULE}"; then
8108 # By default we will add the -single_module flag. You can override
8109 # by either setting the environment variable LT_MULTI_MODULE
8110 # non-empty at configure time, or by adding -multi-module to the
8111 # link flags.
8112 echo "int foo(void){return 1;}" > conftest.c
8113 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114 -dynamiclib ${wl}-single_module conftest.c
8115 if test -f libconftest.dylib; then
8116 lt_cv_apple_cc_single_mod=yes
8117 rm libconftest.dylib
8118 fi
8119 rm conftest.$ac_ext
8120 fi
8121 fi
8122
8123 output_verbose_link_cmd=echo
8124 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8125 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8126 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}'
8127 else
8128 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8129 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}'
8130 fi
8131 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8132 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}'
8133 else
8134 case $cc_basename in
8135 xlc*)
8136 output_verbose_link_cmd=echo
8137 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8138 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8140 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}'
8141 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}'
8142 ;;
8143 *)
8144 ld_shlibs=no
8145 ;;
8146 esac
8147 fi
8148 ;;
8149
8150 dgux*)
8151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8152 hardcode_libdir_flag_spec='-L$libdir'
8153 hardcode_shlibpath_var=no
8154 ;;
8155
8156 freebsd1*)
8157 ld_shlibs=no
8158 ;;
8159
8160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8161 # support. Future versions do this automatically, but an explicit c++rt0.o
8162 # does not break anything, and helps significantly (at the cost of a little
8163 # extra space).
8164 freebsd2.2*)
8165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8166 hardcode_libdir_flag_spec='-R$libdir'
8167 hardcode_direct=yes
8168 hardcode_shlibpath_var=no
8169 ;;
8170
8171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8172 freebsd2*)
8173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8174 hardcode_direct=yes
8175 hardcode_minus_L=yes
8176 hardcode_shlibpath_var=no
8177 ;;
8178
8179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8180 freebsd* | dragonfly*)
8181 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8182 hardcode_libdir_flag_spec='-R$libdir'
8183 hardcode_direct=yes
8184 hardcode_shlibpath_var=no
8185 ;;
8186
8187 hpux9*)
8188 if test "$GCC" = yes; then
8189 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'
8190 else
8191 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'
8192 fi
8193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8194 hardcode_libdir_separator=:
8195 hardcode_direct=yes
8196
8197 # hardcode_minus_L: Not really in the search PATH,
8198 # but as the default location of the library.
8199 hardcode_minus_L=yes
8200 export_dynamic_flag_spec='${wl}-E'
8201 ;;
8202
8203 hpux10*)
8204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8205 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8206 else
8207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8208 fi
8209 if test "$with_gnu_ld" = no; then
8210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8211 hardcode_libdir_flag_spec_ld='+b $libdir'
8212 hardcode_libdir_separator=:
8213 hardcode_direct=yes
8214 hardcode_direct_absolute=yes
8215 export_dynamic_flag_spec='${wl}-E'
8216 # hardcode_minus_L: Not really in the search PATH,
8217 # but as the default location of the library.
8218 hardcode_minus_L=yes
8219 fi
8220 ;;
8221
8222 hpux11*)
8223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8224 case $host_cpu in
8225 hppa*64*)
8226 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8227 ;;
8228 ia64*)
8229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8230 ;;
8231 *)
8232 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8233 ;;
8234 esac
8235 else
8236 case $host_cpu in
8237 hppa*64*)
8238 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8239 ;;
8240 ia64*)
8241 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8242 ;;
8243 *)
8244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8245 ;;
8246 esac
8247 fi
8248 if test "$with_gnu_ld" = no; then
8249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8250 hardcode_libdir_separator=:
8251
8252 case $host_cpu in
8253 hppa*64*|ia64*)
8254 hardcode_direct=no
8255 hardcode_shlibpath_var=no
8256 ;;
8257 *)
8258 hardcode_direct=yes
8259 hardcode_direct_absolute=yes
8260 export_dynamic_flag_spec='${wl}-E'
8261
8262 # hardcode_minus_L: Not really in the search PATH,
8263 # but as the default location of the library.
8264 hardcode_minus_L=yes
8265 ;;
8266 esac
8267 fi
8268 ;;
8269
8270 irix5* | irix6* | nonstopux*)
8271 if test "$GCC" = yes; then
8272 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'
8273 # Try to use the -exported_symbol ld option, if it does not
8274 # work, assume that -exports_file does not work either and
8275 # implicitly export all symbols.
8276 save_LDFLAGS="$LDFLAGS"
8277 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8278 cat >conftest.$ac_ext <<_ACEOF
8279 int foo(void) {}
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag"
8291 || test ! -s conftest.err'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 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'
8304
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 fi
8310 rm -f conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LDFLAGS="$save_LDFLAGS"
8313 else
8314 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'
8315 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'
8316 fi
8317 archive_cmds_need_lc='no'
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 hardcode_libdir_separator=:
8320 inherit_rpath=yes
8321 link_all_deplibs=yes
8322 ;;
8323
8324 netbsd*)
8325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8327 else
8328 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8329 fi
8330 hardcode_libdir_flag_spec='-R$libdir'
8331 hardcode_direct=yes
8332 hardcode_shlibpath_var=no
8333 ;;
8334
8335 newsos6)
8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes
8338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8339 hardcode_libdir_separator=:
8340 hardcode_shlibpath_var=no
8341 ;;
8342
8343 *nto* | *qnx*)
8344 ;;
8345
8346 openbsd*)
8347 hardcode_direct=yes
8348 hardcode_shlibpath_var=no
8349 hardcode_direct_absolute=yes
8350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8352 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8354 export_dynamic_flag_spec='${wl}-E'
8355 else
8356 case $host_os in
8357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_libdir_flag_spec='-R$libdir'
8360 ;;
8361 *)
8362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8364 ;;
8365 esac
8366 fi
8367 ;;
8368
8369 os2*)
8370 hardcode_libdir_flag_spec='-L$libdir'
8371 hardcode_minus_L=yes
8372 allow_undefined_flag=unsupported
8373 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'
8374 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8375 ;;
8376
8377 osf3*)
8378 if test "$GCC" = yes; then
8379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8380 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'
8381 else
8382 allow_undefined_flag=' -expect_unresolved \*'
8383 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'
8384 fi
8385 archive_cmds_need_lc='no'
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 hardcode_libdir_separator=:
8388 ;;
8389
8390 osf4* | osf5*) # as osf3* with the addition of -msym flag
8391 if test "$GCC" = yes; then
8392 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393 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'
8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 else
8396 allow_undefined_flag=' -expect_unresolved \*'
8397 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'
8398 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~
8399 $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'
8400
8401 # Both c and cxx compiler support -rpath directly
8402 hardcode_libdir_flag_spec='-rpath $libdir'
8403 fi
8404 archive_cmds_need_lc='no'
8405 hardcode_libdir_separator=:
8406 ;;
8407
8408 solaris*)
8409 no_undefined_flag=' -z defs'
8410 if test "$GCC" = yes; then
8411 wlarc='${wl}'
8412 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8414 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8415 else
8416 case `$CC -V 2>&1` in
8417 *"Compilers 5.0"*)
8418 wlarc=''
8419 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8422 ;;
8423 *)
8424 wlarc='${wl}'
8425 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8426 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8427 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8428 ;;
8429 esac
8430 fi
8431 hardcode_libdir_flag_spec='-R$libdir'
8432 hardcode_shlibpath_var=no
8433 case $host_os in
8434 solaris2.[0-5] | solaris2.[0-5].*) ;;
8435 *)
8436 # The compiler driver will combine and reorder linker options,
8437 # but understands `-z linker_flag'. GCC discards it without `$wl',
8438 # but is careful enough not to reorder.
8439 # Supported since Solaris 2.6 (maybe 2.5.1?)
8440 if test "$GCC" = yes; then
8441 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8442 else
8443 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8444 fi
8445 ;;
8446 esac
8447 link_all_deplibs=yes
8448 ;;
8449
8450 sunos4*)
8451 if test "x$host_vendor" = xsequent; then
8452 # Use $CC to link under sequent, because it throws in some extra .o
8453 # files that make .init and .fini sections work.
8454 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8455 else
8456 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8457 fi
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_direct=yes
8460 hardcode_minus_L=yes
8461 hardcode_shlibpath_var=no
8462 ;;
8463
8464 sysv4)
8465 case $host_vendor in
8466 sni)
8467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468 hardcode_direct=yes # is this really true???
8469 ;;
8470 siemens)
8471 ## LD is ld it makes a PLAMLIB
8472 ## CC just makes a GrossModule.
8473 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8474 reload_cmds='$CC -r -o $output$reload_objs'
8475 hardcode_direct=no
8476 ;;
8477 motorola)
8478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8480 ;;
8481 esac
8482 runpath_var='LD_RUN_PATH'
8483 hardcode_shlibpath_var=no
8484 ;;
8485
8486 sysv4.3*)
8487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488 hardcode_shlibpath_var=no
8489 export_dynamic_flag_spec='-Bexport'
8490 ;;
8491
8492 sysv4*MP*)
8493 if test -d /usr/nec; then
8494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495 hardcode_shlibpath_var=no
8496 runpath_var=LD_RUN_PATH
8497 hardcode_runpath_var=yes
8498 ld_shlibs=yes
8499 fi
8500 ;;
8501
8502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8503 no_undefined_flag='${wl}-z,text'
8504 archive_cmds_need_lc=no
8505 hardcode_shlibpath_var=no
8506 runpath_var='LD_RUN_PATH'
8507
8508 if test "$GCC" = yes; then
8509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 else
8512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514 fi
8515 ;;
8516
8517 sysv5* | sco3.2v5* | sco5v6*)
8518 # Note: We can NOT use -z defs as we might desire, because we do not
8519 # link with -lc, and that would cause any symbols used from libc to
8520 # always be unresolved, which means just about no library would
8521 # ever link correctly. If we're not using GNU ld we use -z text
8522 # though, which does catch some bad symbols but isn't as heavy-handed
8523 # as -z defs.
8524 no_undefined_flag='${wl}-z,text'
8525 allow_undefined_flag='${wl}-z,nodefs'
8526 archive_cmds_need_lc=no
8527 hardcode_shlibpath_var=no
8528 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8529 hardcode_libdir_separator=':'
8530 link_all_deplibs=yes
8531 export_dynamic_flag_spec='${wl}-Bexport'
8532 runpath_var='LD_RUN_PATH'
8533
8534 if test "$GCC" = yes; then
8535 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 else
8538 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 fi
8541 ;;
8542
8543 uts4*)
8544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545 hardcode_libdir_flag_spec='-L$libdir'
8546 hardcode_shlibpath_var=no
8547 ;;
8548
8549 *)
8550 ld_shlibs=no
8551 ;;
8552 esac
8553
8554 if test x$host_vendor = xsni; then
8555 case $host in
8556 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8557 export_dynamic_flag_spec='${wl}-Blargedynsym'
8558 ;;
8559 esac
8560 fi
8561 fi
8562
8563 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8564 echo "${ECHO_T}$ld_shlibs" >&6
8565 test "$ld_shlibs" = no && can_build_shared=no
8566
8567 with_gnu_ld=$with_gnu_ld
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583 #
8584 # Do we need to explicitly link libc?
8585 #
8586 case "x$archive_cmds_need_lc" in
8587 x|xyes)
8588 # Assume -lc should be added
8589 archive_cmds_need_lc=yes
8590
8591 if test "$enable_shared" = yes && test "$GCC" = yes; then
8592 case $archive_cmds in
8593 *'~'*)
8594 # FIXME: we may have to deal with multi-command sequences.
8595 ;;
8596 '$CC '*)
8597 # Test whether the compiler implicitly links with -lc since on some
8598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8599 # to ld, don't add -lc before -lgcc.
8600 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8601 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8602 $RM conftest*
8603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } 2>conftest.err; then
8610 soname=conftest
8611 lib=conftest
8612 libobjs=conftest.$ac_objext
8613 deplibs=
8614 wl=$lt_prog_compiler_wl
8615 pic_flag=$lt_prog_compiler_pic
8616 compiler_flags=-v
8617 linker_flags=-v
8618 verstring=
8619 output_objdir=.
8620 libname=conftest
8621 lt_save_allow_undefined_flag=$allow_undefined_flag
8622 allow_undefined_flag=
8623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8624 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }
8628 then
8629 archive_cmds_need_lc=no
8630 else
8631 archive_cmds_need_lc=yes
8632 fi
8633 allow_undefined_flag=$lt_save_allow_undefined_flag
8634 else
8635 cat conftest.err 1>&5
8636 fi
8637 $RM conftest*
8638 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8639 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8640 ;;
8641 esac
8642 fi
8643 ;;
8644 esac
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
8802 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8804 withGCC=$GCC
8805 if test "$withGCC" = yes; then
8806 case $host_os in
8807 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8808 *) lt_awk_arg="/^libraries:/" ;;
8809 esac
8810 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8811 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8812 # if the path contains ";" then we assume it to be the separator
8813 # otherwise default to the standard path separator (i.e. ":") - it is
8814 # assumed that no part of a normal pathname contains ";" but that should
8815 # okay in the real world where ";" in dirpaths is itself problematic.
8816 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8817 else
8818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8819 fi
8820 # Ok, now we have the path, separated by spaces, we can step through it
8821 # and add multilib dir if necessary.
8822 lt_tmp_lt_search_path_spec=
8823 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8824 for lt_sys_path in $lt_search_path_spec; do
8825 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8827 else
8828 test -d "$lt_sys_path" && \
8829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8830 fi
8831 done
8832 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8833 BEGIN {RS=" "; FS="/|\n";} {
8834 lt_foo="";
8835 lt_count=0;
8836 for (lt_i = NF; lt_i > 0; lt_i--) {
8837 if ($lt_i != "" && $lt_i != ".") {
8838 if ($lt_i == "..") {
8839 lt_count++;
8840 } else {
8841 if (lt_count == 0) {
8842 lt_foo="/" $lt_i lt_foo;
8843 } else {
8844 lt_count--;
8845 }
8846 }
8847 }
8848 }
8849 if (lt_foo != "") { lt_freq[lt_foo]++; }
8850 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8851 }'`
8852 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8853 else
8854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8855 fi
8856 library_names_spec=
8857 libname_spec='lib$name'
8858 soname_spec=
8859 shrext_cmds=".so"
8860 postinstall_cmds=
8861 postuninstall_cmds=
8862 finish_cmds=
8863 finish_eval=
8864 shlibpath_var=
8865 shlibpath_overrides_runpath=unknown
8866 version_type=none
8867 dynamic_linker="$host_os ld.so"
8868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869 need_lib_prefix=unknown
8870 hardcode_into_libs=no
8871
8872 # when you set need_version to no, make sure it does not cause -set_version
8873 # flags to be left without arguments
8874 need_version=unknown
8875
8876 case $host_os in
8877 aix3*)
8878 version_type=linux
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880 shlibpath_var=LIBPATH
8881
8882 # AIX 3 has no versioning support, so we append a major version to the name.
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 ;;
8885
8886 aix[4-9]*)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 hardcode_into_libs=yes
8891 if test "$host_cpu" = ia64; then
8892 # AIX 5 supports IA64
8893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 else
8896 # With GCC up to 2.95.x, collect2 would create an import file
8897 # for dependence libraries. The import file would start with
8898 # the line `#! .'. This would cause the generated library to
8899 # depend on `.', always an invalid library. This was fixed in
8900 # development snapshots of GCC prior to 3.0.
8901 case $host_os in
8902 aix4 | aix4.[01] | aix4.[01].*)
8903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904 echo ' yes '
8905 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8906 :
8907 else
8908 can_build_shared=no
8909 fi
8910 ;;
8911 esac
8912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913 # soname into executable. Probably we can add versioning support to
8914 # collect2, so additional links can be useful in future.
8915 if test "$aix_use_runtimelinking" = yes; then
8916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8917 # instead of lib<name>.a to let people know that these are not
8918 # typical AIX shared libraries.
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 else
8921 # We preserve .a as extension for shared libraries through AIX4.2
8922 # and later when we are not doing run time linking.
8923 library_names_spec='${libname}${release}.a $libname.a'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 fi
8926 shlibpath_var=LIBPATH
8927 fi
8928 ;;
8929
8930 amigaos*)
8931 if test "$host_cpu" = m68k; then
8932 library_names_spec='$libname.ixlibrary $libname.a'
8933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8934 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'
8935 else
8936 dynamic_linker=no
8937 fi
8938 ;;
8939
8940 beos*)
8941 library_names_spec='${libname}${shared_ext}'
8942 dynamic_linker="$host_os ld.so"
8943 shlibpath_var=LIBRARY_PATH
8944 ;;
8945
8946 bsdi[45]*)
8947 version_type=linux
8948 need_version=no
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8954 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8955 # the default ld.so.conf also contains /usr/contrib/lib and
8956 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8957 # libtool to hard-code these into programs
8958 ;;
8959
8960 cygwin* | mingw* | pw32*)
8961 version_type=windows
8962 shrext_cmds=".dll"
8963 need_version=no
8964 need_lib_prefix=no
8965
8966 case $withGCC,$host_os in
8967 yes,cygwin* | yes,mingw* | yes,pw32*)
8968 library_names_spec='$libname.dll.a'
8969 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8970 postinstall_cmds='base_file=`basename \${file}`~
8971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8972 dldir=$destdir/`dirname \$dlpath`~
8973 test -d \$dldir || mkdir -p \$dldir~
8974 $install_prog $dir/$dlname \$dldir/$dlname~
8975 chmod a+x \$dldir/$dlname~
8976 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8977 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8978 fi'
8979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8980 dlpath=$dir/\$dldll~
8981 $RM \$dlpath'
8982 shlibpath_overrides_runpath=yes
8983
8984 case $host_os in
8985 cygwin*)
8986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8989 ;;
8990 mingw*)
8991 # MinGW DLLs use traditional 'lib' prefix
8992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8993 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8994 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8995 # It is most probably a Windows format PATH printed by
8996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8997 # path with ; separators, and with drive letters. We can handle the
8998 # drive letters (cygwin fileutils understands them), so leave them,
8999 # especially as we might pass files found there to a mingw objdump,
9000 # which wouldn't understand a cygwinified path. Ahh.
9001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9002 else
9003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9004 fi
9005 ;;
9006 pw32*)
9007 # pw32 DLLs use 'pw' prefix rather than 'lib'
9008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9009 ;;
9010 esac
9011 ;;
9012
9013 *)
9014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9015 ;;
9016 esac
9017 dynamic_linker='Win32 ld.exe'
9018 # FIXME: first we should search . and the directory the executable is in
9019 shlibpath_var=PATH
9020 ;;
9021
9022 darwin* | rhapsody*)
9023 dynamic_linker="$host_os dyld"
9024 version_type=darwin
9025 need_lib_prefix=no
9026 need_version=no
9027 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9028 soname_spec='${libname}${release}${major}$shared_ext'
9029 shlibpath_overrides_runpath=yes
9030 shlibpath_var=DYLD_LIBRARY_PATH
9031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9032
9033 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9035 ;;
9036
9037 dgux*)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 ;;
9045
9046 freebsd1*)
9047 dynamic_linker=no
9048 ;;
9049
9050 freebsd* | dragonfly*)
9051 # DragonFly does not have aout. When/if they implement a new
9052 # versioning mechanism, adjust this.
9053 if test -x /usr/bin/objformat; then
9054 objformat=`/usr/bin/objformat`
9055 else
9056 case $host_os in
9057 freebsd[123]*) objformat=aout ;;
9058 *) objformat=elf ;;
9059 esac
9060 fi
9061 version_type=freebsd-$objformat
9062 case $version_type in
9063 freebsd-elf*)
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9065 need_version=no
9066 need_lib_prefix=no
9067 ;;
9068 freebsd-*)
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9070 need_version=yes
9071 ;;
9072 esac
9073 shlibpath_var=LD_LIBRARY_PATH
9074 case $host_os in
9075 freebsd2*)
9076 shlibpath_overrides_runpath=yes
9077 ;;
9078 freebsd3.[01]* | freebsdelf3.[01]*)
9079 shlibpath_overrides_runpath=yes
9080 hardcode_into_libs=yes
9081 ;;
9082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9084 shlibpath_overrides_runpath=no
9085 hardcode_into_libs=yes
9086 ;;
9087 *) # from 4.6 on, and DragonFly
9088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9090 ;;
9091 esac
9092 ;;
9093
9094 gnu*)
9095 version_type=linux
9096 need_lib_prefix=no
9097 need_version=no
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 hardcode_into_libs=yes
9102 ;;
9103
9104 hpux9* | hpux10* | hpux11*)
9105 # Give a soname corresponding to the major version so that dld.sl refuses to
9106 # link against other versions.
9107 version_type=sunos
9108 need_lib_prefix=no
9109 need_version=no
9110 case $host_cpu in
9111 ia64*)
9112 shrext_cmds='.so'
9113 hardcode_into_libs=yes
9114 dynamic_linker="$host_os dld.so"
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 if test "X$HPUX_IA64_MODE" = X32; then
9120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9121 else
9122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9123 fi
9124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9125 ;;
9126 hppa*64*)
9127 shrext_cmds='.sl'
9128 hardcode_into_libs=yes
9129 dynamic_linker="$host_os dld.sl"
9130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9136 ;;
9137 *)
9138 shrext_cmds='.sl'
9139 dynamic_linker="$host_os dld.sl"
9140 shlibpath_var=SHLIB_PATH
9141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 ;;
9145 esac
9146 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9147 postinstall_cmds='chmod 555 $lib'
9148 ;;
9149
9150 interix[3-9]*)
9151 version_type=linux
9152 need_lib_prefix=no
9153 need_version=no
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=no
9159 hardcode_into_libs=yes
9160 ;;
9161
9162 irix5* | irix6* | nonstopux*)
9163 case $host_os in
9164 nonstopux*) version_type=nonstopux ;;
9165 *)
9166 if test "$lt_cv_prog_gnu_ld" = yes; then
9167 version_type=linux
9168 else
9169 version_type=irix
9170 fi ;;
9171 esac
9172 need_lib_prefix=no
9173 need_version=no
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 case $host_os in
9177 irix5* | nonstopux*)
9178 libsuff= shlibsuff=
9179 ;;
9180 *)
9181 case $LD in # libtool.m4 will add one of these switches to LD
9182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9183 libsuff= shlibsuff= libmagic=32-bit;;
9184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9185 libsuff=32 shlibsuff=N32 libmagic=N32;;
9186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9188 *) libsuff= shlibsuff= libmagic=never-match;;
9189 esac
9190 ;;
9191 esac
9192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9193 shlibpath_overrides_runpath=no
9194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9196 hardcode_into_libs=yes
9197 ;;
9198
9199 # No shared lib support for Linux oldld, aout, or coff.
9200 linux*oldld* | linux*aout* | linux*coff*)
9201 dynamic_linker=no
9202 ;;
9203
9204 # This must be Linux ELF.
9205 linux* | k*bsd*-gnu)
9206 version_type=linux
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 shlibpath_overrides_runpath=no
9214 # Some binutils ld are patched to set DT_RUNPATH
9215 save_LDFLAGS=$LDFLAGS
9216 save_libdir=$libdir
9217 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9218 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225
9226 int
9227 main ()
9228 {
9229
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9257 shlibpath_overrides_runpath=yes
9258 fi
9259
9260 else
9261 echo "$as_me: failed program was:" >&5
9262 sed 's/^/| /' conftest.$ac_ext >&5
9263
9264 fi
9265 rm -f conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LDFLAGS=$save_LDFLAGS
9268 libdir=$save_libdir
9269
9270 # This implies no fast_install, which is unacceptable.
9271 # Some rework will be needed to allow for fast_install
9272 # before this can be enabled.
9273 hardcode_into_libs=yes
9274
9275 # Append ld.so.conf contents to the search path
9276 if test -f /etc/ld.so.conf; then
9277 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' ' '`
9278 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9279 fi
9280
9281 # We used to test for /lib/ld.so.1 and disable shared libraries on
9282 # powerpc, because MkLinux only supported shared libraries with the
9283 # GNU dynamic linker. Since this was broken with cross compilers,
9284 # most powerpc-linux boxes support dynamic linking these days and
9285 # people can always --disable-shared, the test was removed, and we
9286 # assume the GNU/Linux dynamic linker is in use.
9287 dynamic_linker='GNU/Linux ld.so'
9288 ;;
9289
9290 netbsd*)
9291 version_type=sunos
9292 need_lib_prefix=no
9293 need_version=no
9294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9297 dynamic_linker='NetBSD (a.out) ld.so'
9298 else
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 dynamic_linker='NetBSD ld.elf_so'
9302 fi
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 hardcode_into_libs=yes
9306 ;;
9307
9308 newsos6)
9309 version_type=linux
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=yes
9313 ;;
9314
9315 *nto* | *qnx*)
9316 version_type=qnx
9317 need_lib_prefix=no
9318 need_version=no
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=no
9323 hardcode_into_libs=yes
9324 dynamic_linker='ldqnx.so'
9325 ;;
9326
9327 openbsd*)
9328 version_type=sunos
9329 sys_lib_dlsearch_path_spec="/usr/lib"
9330 need_lib_prefix=no
9331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9332 case $host_os in
9333 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9334 *) need_version=no ;;
9335 esac
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340 case $host_os in
9341 openbsd2.[89] | openbsd2.[89].*)
9342 shlibpath_overrides_runpath=no
9343 ;;
9344 *)
9345 shlibpath_overrides_runpath=yes
9346 ;;
9347 esac
9348 else
9349 shlibpath_overrides_runpath=yes
9350 fi
9351 ;;
9352
9353 os2*)
9354 libname_spec='$name'
9355 shrext_cmds=".dll"
9356 need_lib_prefix=no
9357 library_names_spec='$libname${shared_ext} $libname.a'
9358 dynamic_linker='OS/2 ld.exe'
9359 shlibpath_var=LIBPATH
9360 ;;
9361
9362 osf3* | osf4* | osf5*)
9363 version_type=osf
9364 need_lib_prefix=no
9365 need_version=no
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9371 ;;
9372
9373 rdos*)
9374 dynamic_linker=no
9375 ;;
9376
9377 solaris*)
9378 version_type=linux
9379 need_lib_prefix=no
9380 need_version=no
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=yes
9385 hardcode_into_libs=yes
9386 # ldd complains unless libraries are executable
9387 postinstall_cmds='chmod +x $lib'
9388 ;;
9389
9390 sunos4*)
9391 version_type=sunos
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 if test "$with_gnu_ld" = yes; then
9397 need_lib_prefix=no
9398 fi
9399 need_version=yes
9400 ;;
9401
9402 sysv4 | sysv4.3*)
9403 version_type=linux
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 case $host_vendor in
9408 sni)
9409 shlibpath_overrides_runpath=no
9410 need_lib_prefix=no
9411 runpath_var=LD_RUN_PATH
9412 ;;
9413 siemens)
9414 need_lib_prefix=no
9415 ;;
9416 motorola)
9417 need_lib_prefix=no
9418 need_version=no
9419 shlibpath_overrides_runpath=no
9420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9421 ;;
9422 esac
9423 ;;
9424
9425 sysv4*MP*)
9426 if test -d /usr/nec ;then
9427 version_type=linux
9428 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9429 soname_spec='$libname${shared_ext}.$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 fi
9432 ;;
9433
9434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9435 version_type=freebsd-elf
9436 need_lib_prefix=no
9437 need_version=no
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 shlibpath_var=LD_LIBRARY_PATH
9441 shlibpath_overrides_runpath=yes
9442 hardcode_into_libs=yes
9443 if test "$with_gnu_ld" = yes; then
9444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9445 else
9446 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9447 case $host_os in
9448 sco3.2v5*)
9449 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9450 ;;
9451 esac
9452 fi
9453 sys_lib_dlsearch_path_spec='/usr/lib'
9454 ;;
9455
9456 tpf*)
9457 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9458 version_type=linux
9459 need_lib_prefix=no
9460 need_version=no
9461 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=no
9464 hardcode_into_libs=yes
9465 ;;
9466
9467 uts4*)
9468 version_type=linux
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 shlibpath_var=LD_LIBRARY_PATH
9472 ;;
9473
9474 *)
9475 dynamic_linker=no
9476 ;;
9477 esac
9478 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9479 echo "${ECHO_T}$dynamic_linker" >&6
9480 test "$dynamic_linker" = no && can_build_shared=no
9481
9482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9483 if test "$GCC" = yes; then
9484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9485 fi
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
9573 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9574 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9575 hardcode_action=
9576 if test -n "$hardcode_libdir_flag_spec" ||
9577 test -n "$runpath_var" ||
9578 test "X$hardcode_automatic" = "Xyes" ; then
9579
9580 # We can hardcode non-existent directories.
9581 if test "$hardcode_direct" != no &&
9582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9583 # have to relink, otherwise we might link with an installed library
9584 # when we should be linking with a yet-to-be-installed one
9585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9586 test "$hardcode_minus_L" != no; then
9587 # Linking always hardcodes the temporary library directory.
9588 hardcode_action=relink
9589 else
9590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9591 hardcode_action=immediate
9592 fi
9593 else
9594 # We cannot hardcode anything, or else we can only hardcode existing
9595 # directories.
9596 hardcode_action=unsupported
9597 fi
9598 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9599 echo "${ECHO_T}$hardcode_action" >&6
9600
9601 if test "$hardcode_action" = relink ||
9602 test "$inherit_rpath" = yes; then
9603 # Fast installation is not supported
9604 enable_fast_install=no
9605 elif test "$shlibpath_overrides_runpath" = yes ||
9606 test "$enable_shared" = no; then
9607 # Fast installation is not necessary
9608 enable_fast_install=needless
9609 fi
9610
9611
9612
9613
9614
9615
9616 if test "x$enable_dlopen" != xyes; then
9617 enable_dlopen=unknown
9618 enable_dlopen_self=unknown
9619 enable_dlopen_self_static=unknown
9620 else
9621 lt_cv_dlopen=no
9622 lt_cv_dlopen_libs=
9623
9624 case $host_os in
9625 beos*)
9626 lt_cv_dlopen="load_add_on"
9627 lt_cv_dlopen_libs=
9628 lt_cv_dlopen_self=yes
9629 ;;
9630
9631 mingw* | pw32*)
9632 lt_cv_dlopen="LoadLibrary"
9633 lt_cv_dlopen_libs=
9634 ;;
9635
9636 cygwin*)
9637 lt_cv_dlopen="dlopen"
9638 lt_cv_dlopen_libs=
9639 ;;
9640
9641 darwin*)
9642 # if libdl is installed we need to link against it
9643 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 ac_check_lib_save_LIBS=$LIBS
9649 LIBS="-ldl $LIBS"
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656
9657 /* Override any gcc2 internal prototype to avoid an error. */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9663 char dlopen ();
9664 int
9665 main ()
9666 {
9667 dlopen ();
9668 ;
9669 return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9674 (eval $ac_link) 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag"
9682 || test ! -s conftest.err'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; } &&
9688 { ac_try='test -s conftest$ac_exeext'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 ac_cv_lib_dl_dlopen=yes
9695 else
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9698
9699 ac_cv_lib_dl_dlopen=no
9700 fi
9701 rm -f conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9704 fi
9705 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9707 if test $ac_cv_lib_dl_dlopen = yes; then
9708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9709 else
9710
9711 lt_cv_dlopen="dyld"
9712 lt_cv_dlopen_libs=
9713 lt_cv_dlopen_self=yes
9714
9715 fi
9716
9717 ;;
9718
9719 *)
9720 echo "$as_me:$LINENO: checking for shl_load" >&5
9721 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9722 if test "${ac_cv_func_shl_load+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define shl_load innocuous_shl_load
9734
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char shl_load (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9739
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9745
9746 #undef shl_load
9747
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 {
9752 #endif
9753 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755 char shl_load ();
9756 /* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9760 choke me
9761 #else
9762 char (*f) () = shl_load;
9763 #endif
9764 #ifdef __cplusplus
9765 }
9766 #endif
9767
9768 int
9769 main ()
9770 {
9771 return f != shl_load;
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_shl_load=yes
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_cv_func_shl_load=no
9804 fi
9805 rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 fi
9808 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9809 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9810 if test $ac_cv_func_shl_load = yes; then
9811 lt_cv_dlopen="shl_load"
9812 else
9813 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9814 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9815 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 ac_check_lib_save_LIBS=$LIBS
9819 LIBS="-ldld $LIBS"
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826
9827 /* Override any gcc2 internal prototype to avoid an error. */
9828 #ifdef __cplusplus
9829 extern "C"
9830 #endif
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833 char shl_load ();
9834 int
9835 main ()
9836 {
9837 shl_load ();
9838 ;
9839 return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -z "$ac_c_werror_flag"
9852 || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try='test -s conftest$ac_exeext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 (eval $ac_try) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_lib_dld_shl_load=yes
9865 else
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_cv_lib_dld_shl_load=no
9870 fi
9871 rm -f conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9874 fi
9875 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9876 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9877 if test $ac_cv_lib_dld_shl_load = yes; then
9878 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9879 else
9880 echo "$as_me:$LINENO: checking for dlopen" >&5
9881 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9882 if test "${ac_cv_func_dlopen+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define dlopen innocuous_dlopen
9894
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char dlopen (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9899
9900 #ifdef __STDC__
9901 # include <limits.h>
9902 #else
9903 # include <assert.h>
9904 #endif
9905
9906 #undef dlopen
9907
9908 /* Override any gcc2 internal prototype to avoid an error. */
9909 #ifdef __cplusplus
9910 extern "C"
9911 {
9912 #endif
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915 char dlopen ();
9916 /* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9920 choke me
9921 #else
9922 char (*f) () = dlopen;
9923 #endif
9924 #ifdef __cplusplus
9925 }
9926 #endif
9927
9928 int
9929 main ()
9930 {
9931 return f != dlopen;
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 ac_cv_func_dlopen=yes
9959 else
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 ac_cv_func_dlopen=no
9964 fi
9965 rm -f conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 fi
9968 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9969 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9970 if test $ac_cv_func_dlopen = yes; then
9971 lt_cv_dlopen="dlopen"
9972 else
9973 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 ac_check_lib_save_LIBS=$LIBS
9979 LIBS="-ldl $LIBS"
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986
9987 /* Override any gcc2 internal prototype to avoid an error. */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993 char dlopen ();
9994 int
9995 main ()
9996 {
9997 dlopen ();
9998 ;
9999 return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag"
10012 || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest$ac_exeext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 ac_cv_lib_dl_dlopen=yes
10025 else
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10028
10029 ac_cv_lib_dl_dlopen=no
10030 fi
10031 rm -f conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10034 fi
10035 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10036 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10037 if test $ac_cv_lib_dl_dlopen = yes; then
10038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10039 else
10040 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10041 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10042 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045 ac_check_lib_save_LIBS=$LIBS
10046 LIBS="-lsvld $LIBS"
10047 cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h. */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053
10054 /* Override any gcc2 internal prototype to avoid an error. */
10055 #ifdef __cplusplus
10056 extern "C"
10057 #endif
10058 /* We use char because int might match the return type of a gcc2
10059 builtin and then its argument prototype would still apply. */
10060 char dlopen ();
10061 int
10062 main ()
10063 {
10064 dlopen ();
10065 ;
10066 return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag"
10079 || test ! -s conftest.err'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest$ac_exeext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_lib_svld_dlopen=yes
10092 else
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_cv_lib_svld_dlopen=no
10097 fi
10098 rm -f conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100 LIBS=$ac_check_lib_save_LIBS
10101 fi
10102 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10103 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10104 if test $ac_cv_lib_svld_dlopen = yes; then
10105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10106 else
10107 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10108 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10109 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112 ac_check_lib_save_LIBS=$LIBS
10113 LIBS="-ldld $LIBS"
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120
10121 /* Override any gcc2 internal prototype to avoid an error. */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10127 char dld_link ();
10128 int
10129 main ()
10130 {
10131 dld_link ();
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138 (eval $ac_link) 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag"
10146 || test ! -s conftest.err'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 ac_cv_lib_dld_dld_link=yes
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 ac_cv_lib_dld_dld_link=no
10164 fi
10165 rm -f conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10168 fi
10169 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10171 if test $ac_cv_lib_dld_dld_link = yes; then
10172 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10173 fi
10174
10175
10176 fi
10177
10178
10179 fi
10180
10181
10182 fi
10183
10184
10185 fi
10186
10187
10188 fi
10189
10190 ;;
10191 esac
10192
10193 if test "x$lt_cv_dlopen" != xno; then
10194 enable_dlopen=yes
10195 else
10196 enable_dlopen=no
10197 fi
10198
10199 case $lt_cv_dlopen in
10200 dlopen)
10201 save_CPPFLAGS="$CPPFLAGS"
10202 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10203
10204 save_LDFLAGS="$LDFLAGS"
10205 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10206
10207 save_LIBS="$LIBS"
10208 LIBS="$lt_cv_dlopen_libs $LIBS"
10209
10210 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10211 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10212 if test "${lt_cv_dlopen_self+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215 if test "$cross_compiling" = yes; then :
10216 lt_cv_dlopen_self=cross
10217 else
10218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10219 lt_status=$lt_dlunknown
10220 cat > conftest.$ac_ext <<_LT_EOF
10221 #line 10221 "configure"
10222 #include "confdefs.h"
10223
10224 #if HAVE_DLFCN_H
10225 #include <dlfcn.h>
10226 #endif
10227
10228 #include <stdio.h>
10229
10230 #ifdef RTLD_GLOBAL
10231 # define LT_DLGLOBAL RTLD_GLOBAL
10232 #else
10233 # ifdef DL_GLOBAL
10234 # define LT_DLGLOBAL DL_GLOBAL
10235 # else
10236 # define LT_DLGLOBAL 0
10237 # endif
10238 #endif
10239
10240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10241 find out it does not work in some platform. */
10242 #ifndef LT_DLLAZY_OR_NOW
10243 # ifdef RTLD_LAZY
10244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10245 # else
10246 # ifdef DL_LAZY
10247 # define LT_DLLAZY_OR_NOW DL_LAZY
10248 # else
10249 # ifdef RTLD_NOW
10250 # define LT_DLLAZY_OR_NOW RTLD_NOW
10251 # else
10252 # ifdef DL_NOW
10253 # define LT_DLLAZY_OR_NOW DL_NOW
10254 # else
10255 # define LT_DLLAZY_OR_NOW 0
10256 # endif
10257 # endif
10258 # endif
10259 # endif
10260 #endif
10261
10262 #ifdef __cplusplus
10263 extern "C" void exit (int);
10264 #endif
10265
10266 void fnord() { int i=42;}
10267 int main ()
10268 {
10269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10270 int status = $lt_dlunknown;
10271
10272 if (self)
10273 {
10274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10276 /* dlclose (self); */
10277 }
10278 else
10279 puts (dlerror ());
10280
10281 exit (status);
10282 }
10283 _LT_EOF
10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285 (eval $ac_link) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10289 (./conftest; exit; ) >&5 2>/dev/null
10290 lt_status=$?
10291 case x$lt_status in
10292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10294 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10295 esac
10296 else :
10297 # compilation failed
10298 lt_cv_dlopen_self=no
10299 fi
10300 fi
10301 rm -fr conftest*
10302
10303
10304 fi
10305 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10306 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10307
10308 if test "x$lt_cv_dlopen_self" = xyes; then
10309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10310 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10311 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10312 if test "${lt_cv_dlopen_self_static+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 if test "$cross_compiling" = yes; then :
10316 lt_cv_dlopen_self_static=cross
10317 else
10318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10319 lt_status=$lt_dlunknown
10320 cat > conftest.$ac_ext <<_LT_EOF
10321 #line 10321 "configure"
10322 #include "confdefs.h"
10323
10324 #if HAVE_DLFCN_H
10325 #include <dlfcn.h>
10326 #endif
10327
10328 #include <stdio.h>
10329
10330 #ifdef RTLD_GLOBAL
10331 # define LT_DLGLOBAL RTLD_GLOBAL
10332 #else
10333 # ifdef DL_GLOBAL
10334 # define LT_DLGLOBAL DL_GLOBAL
10335 # else
10336 # define LT_DLGLOBAL 0
10337 # endif
10338 #endif
10339
10340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10341 find out it does not work in some platform. */
10342 #ifndef LT_DLLAZY_OR_NOW
10343 # ifdef RTLD_LAZY
10344 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10345 # else
10346 # ifdef DL_LAZY
10347 # define LT_DLLAZY_OR_NOW DL_LAZY
10348 # else
10349 # ifdef RTLD_NOW
10350 # define LT_DLLAZY_OR_NOW RTLD_NOW
10351 # else
10352 # ifdef DL_NOW
10353 # define LT_DLLAZY_OR_NOW DL_NOW
10354 # else
10355 # define LT_DLLAZY_OR_NOW 0
10356 # endif
10357 # endif
10358 # endif
10359 # endif
10360 #endif
10361
10362 #ifdef __cplusplus
10363 extern "C" void exit (int);
10364 #endif
10365
10366 void fnord() { int i=42;}
10367 int main ()
10368 {
10369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10370 int status = $lt_dlunknown;
10371
10372 if (self)
10373 {
10374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10376 /* dlclose (self); */
10377 }
10378 else
10379 puts (dlerror ());
10380
10381 exit (status);
10382 }
10383 _LT_EOF
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10389 (./conftest; exit; ) >&5 2>/dev/null
10390 lt_status=$?
10391 case x$lt_status in
10392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10394 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10395 esac
10396 else :
10397 # compilation failed
10398 lt_cv_dlopen_self_static=no
10399 fi
10400 fi
10401 rm -fr conftest*
10402
10403
10404 fi
10405 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10406 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10407 fi
10408
10409 CPPFLAGS="$save_CPPFLAGS"
10410 LDFLAGS="$save_LDFLAGS"
10411 LIBS="$save_LIBS"
10412 ;;
10413 esac
10414
10415 case $lt_cv_dlopen_self in
10416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10417 *) enable_dlopen_self=unknown ;;
10418 esac
10419
10420 case $lt_cv_dlopen_self_static in
10421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10422 *) enable_dlopen_self_static=unknown ;;
10423 esac
10424 fi
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442 striplib=
10443 old_striplib=
10444 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10446 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449 echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6
10451 else
10452 # FIXME - insert some real tests, host_os isn't really good enough
10453 case $host_os in
10454 darwin*)
10455 if test -n "$STRIP" ; then
10456 striplib="$STRIP -x"
10457 old_striplib="$STRIP -S"
10458 echo "$as_me:$LINENO: result: yes" >&5
10459 echo "${ECHO_T}yes" >&6
10460 else
10461 echo "$as_me:$LINENO: result: no" >&5
10462 echo "${ECHO_T}no" >&6
10463 fi
10464 ;;
10465 *)
10466 echo "$as_me:$LINENO: result: no" >&5
10467 echo "${ECHO_T}no" >&6
10468 ;;
10469 esac
10470 fi
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483 # Report which library types will actually be built
10484 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10485 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10486 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10487 echo "${ECHO_T}$can_build_shared" >&6
10488
10489 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10490 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10491 test "$can_build_shared" = "no" && enable_shared=no
10492
10493 # On AIX, shared libraries and static libraries use the same namespace, and
10494 # are all built from PIC.
10495 case $host_os in
10496 aix3*)
10497 test "$enable_shared" = yes && enable_static=no
10498 if test -n "$RANLIB"; then
10499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10500 postinstall_cmds='$RANLIB $lib'
10501 fi
10502 ;;
10503
10504 aix[4-9]*)
10505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10506 test "$enable_shared" = yes && enable_static=no
10507 fi
10508 ;;
10509 esac
10510 echo "$as_me:$LINENO: result: $enable_shared" >&5
10511 echo "${ECHO_T}$enable_shared" >&6
10512
10513 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10514 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10515 # Make sure either enable_shared or enable_static is yes.
10516 test "$enable_shared" = yes || enable_static=yes
10517 echo "$as_me:$LINENO: result: $enable_static" >&5
10518 echo "${ECHO_T}$enable_static" >&6
10519
10520
10521
10522
10523 fi
10524 ac_ext=c
10525 ac_cpp='$CPP $CPPFLAGS'
10526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10529
10530 CC="$lt_save_CC"
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544 ac_config_commands="$ac_config_commands libtool"
10545
10546
10547
10548
10549 # Only expand once:
10550
10551
10552
10553 # Check whether --enable-targets or --disable-targets was given.
10554 if test "${enable_targets+set}" = set; then
10555 enableval="$enable_targets"
10556 case "${enableval}" in
10557 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10558 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10559 { (exit 1); exit 1; }; }
10560 ;;
10561 no) enable_targets= ;;
10562 *) enable_targets=$enableval ;;
10563 esac
10564 fi;
10565 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10566 if test "${enable_commonbfdlib+set}" = set; then
10567 enableval="$enable_commonbfdlib"
10568 case "${enableval}" in
10569 yes) commonbfdlib=true ;;
10570 no) commonbfdlib=false ;;
10571 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10572 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10573 { (exit 1); exit 1; }; } ;;
10574 esac
10575 fi;
10576 ac_checking=yes
10577 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10578 ac_checking=
10579 fi
10580 # Check whether --enable-checking or --disable-checking was given.
10581 if test "${enable_checking+set}" = set; then
10582 enableval="$enable_checking"
10583 case "${enableval}" in
10584 no|none) ac_checking= ;;
10585 *) ac_checking=yes ;;
10586 esac
10587 fi; if test x$ac_checking != x ; then
10588
10589 cat >>confdefs.h <<\_ACEOF
10590 #define ENABLE_CHECKING 1
10591 _ACEOF
10592
10593 fi
10594
10595 using_cgen=no
10596
10597
10598 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10599
10600 # Check whether --enable-werror or --disable-werror was given.
10601 if test "${enable_werror+set}" = set; then
10602 enableval="$enable_werror"
10603 case "${enableval}" in
10604 yes | y) ERROR_ON_WARNING="yes" ;;
10605 no | n) ERROR_ON_WARNING="no" ;;
10606 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10607 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10608 { (exit 1); exit 1; }; } ;;
10609 esac
10610 fi;
10611
10612 # Enable -Wno-format by default when using gcc on mingw
10613 case "${host}" in
10614 *-*-mingw32*)
10615 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10616 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10617 fi
10618 ;;
10619 *) ;;
10620 esac
10621
10622 # Enable -Werror by default when using gcc
10623 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10624 ERROR_ON_WARNING=yes
10625 fi
10626
10627 NO_WERROR=
10628 if test "${ERROR_ON_WARNING}" = yes ; then
10629 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10630 NO_WERROR="-Wno-error"
10631 fi
10632
10633 if test "${GCC}" = yes ; then
10634 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10635 fi
10636
10637 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10638 if test "${enable_build_warnings+set}" = set; then
10639 enableval="$enable_build_warnings"
10640 case "${enableval}" in
10641 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10642 no) if test "${GCC}" = yes ; then
10643 WARN_CFLAGS="-w"
10644 fi;;
10645 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10646 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10647 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10648 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10649 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10650 esac
10651 fi;
10652
10653 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10654 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10655 fi
10656
10657
10658
10659
10660
10661 # Generate a header file
10662 ac_config_headers="$ac_config_headers config.h:config.in"
10663
10664
10665 # If we are on a DOS filesystem, we must use gdb.ini rather than
10666 # .gdbinit.
10667 case "${host}" in
10668 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10669 GDBINIT="gdb.ini"
10670 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
10671
10672 ;;
10673 *)
10674 GDBINIT=".gdbinit"
10675 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
10676
10677 ;;
10678 esac
10679
10680
10681 #We need this for the host. BOUT header is in host order.
10682 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10683 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10684 if test "${ac_cv_c_bigendian+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687 # See if sys/param.h defines the BYTE_ORDER macro.
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <sys/types.h>
10695 #include <sys/param.h>
10696
10697 int
10698 main ()
10699 {
10700 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10701 bogus endian macros
10702 #endif
10703
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 # It does; now see whether it defined to BIG_ENDIAN or not.
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 #include <sys/types.h>
10738 #include <sys/param.h>
10739
10740 int
10741 main ()
10742 {
10743 #if BYTE_ORDER != BIG_ENDIAN
10744 not big endian
10745 #endif
10746
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 rm -f conftest.$ac_objext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10753 (eval $ac_compile) 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try='test -z "$ac_c_werror_flag"
10761 || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest.$ac_objext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_cv_c_bigendian=yes
10774 else
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778 ac_cv_c_bigendian=no
10779 fi
10780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785 # It does not; compile a test program.
10786 if test "$cross_compiling" = yes; then
10787 # try to guess the endianness by grepping values into an object file
10788 ac_cv_c_bigendian=unknown
10789 cat >conftest.$ac_ext <<_ACEOF
10790 /* confdefs.h. */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10795 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10796 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10797 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10798 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10799 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10800 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10801 int
10802 main ()
10803 {
10804 _ascii (); _ebcdic ();
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10832 ac_cv_c_bigendian=yes
10833 fi
10834 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10835 if test "$ac_cv_c_bigendian" = unknown; then
10836 ac_cv_c_bigendian=no
10837 else
10838 # finding both strings is unlikely to happen, but who knows?
10839 ac_cv_c_bigendian=unknown
10840 fi
10841 fi
10842 else
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 fi
10847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10848 else
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 int
10856 main ()
10857 {
10858 /* Are we little or big endian? From Harbison&Steele. */
10859 union
10860 {
10861 long l;
10862 char c[sizeof (long)];
10863 } u;
10864 u.l = 1;
10865 exit (u.c[sizeof (long) - 1] == 1);
10866 }
10867 _ACEOF
10868 rm -f conftest$ac_exeext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_c_bigendian=no
10880 else
10881 echo "$as_me: program exited with status $ac_status" >&5
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10884
10885 ( exit $ac_status )
10886 ac_cv_c_bigendian=yes
10887 fi
10888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10889 fi
10890 fi
10891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10892 fi
10893 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10894 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10895 case $ac_cv_c_bigendian in
10896 yes)
10897
10898 cat >>confdefs.h <<\_ACEOF
10899 #define WORDS_BIGENDIAN 1
10900 _ACEOF
10901 ;;
10902 no)
10903 ;;
10904 *)
10905 { { echo "$as_me:$LINENO: error: unknown endianness
10906 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10907 echo "$as_me: error: unknown endianness
10908 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10909 { (exit 1); exit 1; }; } ;;
10910 esac
10911
10912
10913 te_file=generic
10914
10915 # Makefile target for installing gas in $(tooldir)/bin.
10916 install_tooldir=install-exec-tooldir
10917
10918 canon_targets=""
10919 all_targets=no
10920 if test -n "$enable_targets" ; then
10921 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10922 if test $t = "all"; then
10923 all_targets=yes
10924 continue
10925 fi
10926 result=`$ac_config_sub $t 2>/dev/null`
10927 if test -n "$result" ; then
10928 canon_targets="$canon_targets $result"
10929 # else
10930 # # Permit "all", etc. We don't support it yet though.
10931 # canon_targets="$canon_targets $t"
10932 fi
10933 done
10934 _gas_uniq_list="$canon_targets"
10935 _gas_uniq_newlist=""
10936 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10937 case $_gas_uniq_i in
10938 _gas_uniq_dummy) ;;
10939 *) case " $_gas_uniq_newlist " in
10940 *" $_gas_uniq_i "*) ;;
10941 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10942 esac ;;
10943 esac
10944 done
10945 canon_targets=$_gas_uniq_newlist
10946
10947 fi
10948
10949 emulations=""
10950
10951 for this_target in $target $canon_targets ; do
10952
10953 targ=${this_target}
10954 . ${srcdir}/configure.tgt
10955
10956 case ${target_cpu} in
10957 crisv32)
10958
10959 cat >>confdefs.h <<_ACEOF
10960 #define DEFAULT_CRIS_ARCH $arch
10961 _ACEOF
10962
10963 ;;
10964 esac
10965
10966 if test ${this_target} = $target ; then
10967 target_cpu_type=${cpu_type}
10968 elif test ${target_cpu_type} != ${cpu_type} ; then
10969 continue
10970 fi
10971
10972 generic_target=${cpu_type}-${target_vendor}-${target_os}
10973 case ${generic_target} in
10974 i386-*-sco3.2v5*)
10975 if test ${this_target} = $target; then
10976
10977 cat >>confdefs.h <<\_ACEOF
10978 #define SCO_ELF 1
10979 _ACEOF
10980
10981 fi
10982 ;;
10983
10984 i386-*-msdosdjgpp* \
10985 | i386-*-go32* \
10986 | i386-go32-rtems*)
10987
10988 cat >>confdefs.h <<\_ACEOF
10989 #define STRICTCOFF 1
10990 _ACEOF
10991
10992 ;;
10993
10994 i860-*-*)
10995 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10996 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10997 ;;
10998
10999 mips-sony-bsd*)
11000 ;;
11001 mips-*-bsd*)
11002 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
11003 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
11004 { (exit 1); exit 1; }; }
11005 ;;
11006
11007 ppc-*-aix5.*)
11008
11009 cat >>confdefs.h <<\_ACEOF
11010 #define AIX_WEAK_SUPPORT 1
11011 _ACEOF
11012
11013 ;;
11014 ppc-*-linux-*)
11015 case "$endian" in
11016 big) ;;
11017 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
11018 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
11019 { (exit 1); exit 1; }; } ;;
11020 esac
11021 ;;
11022 ppc-*-solaris*)
11023 if test ${this_target} = $target; then
11024
11025 cat >>confdefs.h <<\_ACEOF
11026 #define TARGET_SOLARIS_COMMENT 1
11027 _ACEOF
11028
11029 fi
11030 if test x${endian} = xbig; then
11031 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
11032 echo "$as_me: error: Solaris must be configured little endian" >&2;}
11033 { (exit 1); exit 1; }; }
11034 fi
11035 ;;
11036
11037 sh*-*-symbianelf*)
11038
11039 cat >>confdefs.h <<\_ACEOF
11040 #define TARGET_SYMBIAN 1
11041 _ACEOF
11042
11043 ;;
11044 esac
11045
11046 if test ${this_target} = $target ; then
11047 endian_def=
11048 if test x${endian} = xbig; then
11049 endian_def=1
11050 elif test x${endian} = xlittle; then
11051 endian_def=0
11052 fi
11053 if test x${endian_def} != x; then
11054
11055 cat >>confdefs.h <<_ACEOF
11056 #define TARGET_BYTES_BIG_ENDIAN $endian_def
11057 _ACEOF
11058
11059 fi
11060 fi
11061
11062 # Other random stuff.
11063
11064 case ${cpu_type} in
11065 mips)
11066 # Set mips_cpu to the name of the default CPU.
11067 case ${target_cpu} in
11068 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11069 mips_cpu=from-abi
11070 ;;
11071 mipsisa32 | mipsisa32el)
11072 mips_cpu=mips32
11073 ;;
11074 mipsisa32r2 | mipsisa32r2el)
11075 mips_cpu=mips32r2
11076 ;;
11077 mipsisa64 | mipsisa64el)
11078 mips_cpu=mips64
11079 ;;
11080 mipsisa64r2 | mipsisa64r2el)
11081 mips_cpu=mips64r2
11082 ;;
11083 mipstx39 | mipstx39el)
11084 mips_cpu=r3900
11085 ;;
11086 mips64vr | mips64vrel)
11087 mips_cpu=vr4100
11088 ;;
11089 mipsisa32r2* | mipsisa64r2*)
11090 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11091 ;;
11092 mips64* | mipsisa64* | mipsisa32*)
11093 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11094 ;;
11095 *)
11096 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
11097 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
11098 { (exit 1); exit 1; }; }
11099 ;;
11100 esac
11101 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11102 # binaries. It's a GNU extension that some OSes don't understand.
11103 # The value only matters on ELF targets.
11104 case ${target} in
11105 *-*-irix*)
11106 use_e_mips_abi_o32=0
11107 ;;
11108 *)
11109 use_e_mips_abi_o32=1
11110 ;;
11111 esac
11112 # Decide whether to generate 32-bit or 64-bit code by default.
11113 # Used to resolve -march=from-abi when an embedded ABI is selected.
11114 case ${target} in
11115 mips64*-*-* | mipsisa64*-*-*)
11116 mips_default_64bit=1
11117 ;;
11118 *)
11119 mips_default_64bit=0
11120 ;;
11121 esac
11122 # Decide which ABI to target by default.
11123 case ${target} in
11124 mips64*-linux* | mips-sgi-irix6*)
11125 mips_default_abi=N32_ABI
11126 ;;
11127 mips*-linux*)
11128 mips_default_abi=O32_ABI
11129 ;;
11130 mips64*-openbsd*)
11131 mips_default_abi=N64_ABI
11132 ;;
11133 *)
11134 mips_default_abi=NO_ABI
11135 ;;
11136 esac
11137
11138 cat >>confdefs.h <<_ACEOF
11139 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11140 _ACEOF
11141
11142
11143 cat >>confdefs.h <<_ACEOF
11144 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11145 _ACEOF
11146
11147
11148 cat >>confdefs.h <<_ACEOF
11149 #define MIPS_DEFAULT_64BIT $mips_default_64bit
11150 _ACEOF
11151
11152
11153 cat >>confdefs.h <<_ACEOF
11154 #define MIPS_DEFAULT_ABI $mips_default_abi
11155 _ACEOF
11156
11157 ;;
11158 esac
11159
11160 # Do we need the opcodes library?
11161 case ${cpu_type} in
11162 vax | tic30)
11163 ;;
11164
11165 *)
11166 need_opcodes=yes
11167
11168 case "${enable_shared}" in
11169 yes) shared_opcodes=true ;;
11170 *opcodes*) shared_opcodes=true ;;
11171 *) shared_opcodes=false ;;
11172 esac
11173 ;;
11174 esac
11175
11176 # Any other special object files needed ?
11177 case ${cpu_type} in
11178
11179 bfin)
11180 echo ${extra_objects} | grep -s "bfin-parse.o"
11181 if test $? -ne 0 ; then
11182 extra_objects="$extra_objects bfin-parse.o"
11183 fi
11184
11185 echo ${extra_objects} | grep -s "bfin-lex.o"
11186 if test $? -ne 0 ; then
11187 extra_objects="$extra_objects bfin-lex.o"
11188 fi
11189 ;;
11190
11191 fr30 | ip2k | iq2000 | m32r | openrisc)
11192 using_cgen=yes
11193 ;;
11194
11195 m32c)
11196 using_cgen=yes
11197 ;;
11198 frv)
11199 using_cgen=yes
11200 ;;
11201 m68k)
11202 case ${extra_objects} in
11203 *m68k-parse.o*) ;;
11204 *) extra_objects="$extra_objects m68k-parse.o" ;;
11205 esac
11206 ;;
11207
11208 mep)
11209 using_cgen=yes
11210 ;;
11211
11212 mips)
11213 echo ${extra_objects} | grep -s "itbl-parse.o"
11214 if test $? -ne 0 ; then
11215 extra_objects="$extra_objects itbl-parse.o"
11216 fi
11217
11218 echo ${extra_objects} | grep -s "itbl-lex.o"
11219 if test $? -ne 0 ; then
11220 extra_objects="$extra_objects itbl-lex.o"
11221 fi
11222
11223 echo ${extra_objects} | grep -s "itbl-ops.o"
11224 if test $? -ne 0 ; then
11225 extra_objects="$extra_objects itbl-ops.o"
11226 fi
11227 ;;
11228
11229 mt)
11230 using_cgen=yes
11231 ;;
11232
11233 i386 | s390 | sparc)
11234 if test $this_target = $target ; then
11235
11236 cat >>confdefs.h <<_ACEOF
11237 #define DEFAULT_ARCH "${arch}"
11238 _ACEOF
11239
11240 fi
11241 ;;
11242
11243 xstormy16)
11244 using_cgen=yes
11245 ;;
11246
11247 xc16x)
11248 using_cgen=yes
11249 ;;
11250
11251 xtensa)
11252 echo ${extra_objects} | grep -s "xtensa-relax.o"
11253 if test $? -ne 0 ; then
11254 extra_objects="$extra_objects xtensa-relax.o"
11255 fi
11256 ;;
11257
11258 *)
11259 ;;
11260 esac
11261
11262 if test $using_cgen = yes ; then
11263 case "x${extra_objects}" in
11264 *cgen.o*) ;;
11265 *) extra_objects="$extra_objects cgen.o" ;;
11266 esac
11267 fi
11268
11269 # See if we really can support this configuration with the emulation code.
11270
11271 if test $this_target = $target ; then
11272 obj_format=$fmt
11273 te_file=$em
11274 fi
11275
11276 # From target name and format, produce a list of supported emulations.
11277
11278 case ${generic_target}-${fmt} in
11279 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11280 mips*-*-linux*-*) case "$endian" in
11281 big) emulation="mipsbelf mipslelf mipself" ;;
11282 *) emulation="mipslelf mipsbelf mipself" ;;
11283 esac ;;
11284 mips-*-lnews*-ecoff) ;;
11285 mips-*-*-ecoff) case "$endian" in
11286 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11287 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11288 esac ;;
11289 mips-*-*-elf) case "$endian" in
11290 big) emulation="mipsbelf mipslelf mipself" ;;
11291 *) emulation="mipslelf mipsbelf mipself" ;;
11292 esac ;;
11293 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11294 # i386-pc-pe-coff != i386-pc-coff.
11295 i386-*-pe-coff) ;;
11296 # Uncommenting the next line will turn on support for i386 AOUT
11297 # for the default linux configuration
11298 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11299 #
11300 i386-*-aout) emulation="i386aout" ;;
11301 i386-*-coff) emulation="i386coff" ;;
11302 i386-*-elf) emulation="i386elf" ;;
11303
11304 # Always all formats. The first stated emulation becomes the default.
11305 cris-*-*aout*) emulation="crisaout criself" ;;
11306 cris-*-*) emulation="criself crisaout" ;;
11307 esac
11308
11309 emulations="$emulations $emulation"
11310
11311 done
11312
11313 # Turn on all targets if possible
11314 if test ${all_targets} = "yes"; then
11315 case ${target_cpu_type} in
11316 i386)
11317 case ${obj_format} in
11318 aout)
11319 emulations="$emulations i386coff i386elf"
11320 ;;
11321 coff)
11322 emulations="$emulations i386aout i386elf"
11323 ;;
11324 elf)
11325 emulations="$emulations i386aout i386coff"
11326 ;;
11327 esac
11328 ;;
11329 x86_64)
11330 case ${obj_format} in
11331 aout)
11332 emulations="$emulations i386coff i386elf"
11333 ;;
11334 coff)
11335 emulations="$emulations i386aout i386elf"
11336 ;;
11337 elf)
11338 emulations="$emulations i386aout i386coff"
11339 ;;
11340 esac
11341 ;;
11342 esac
11343 fi
11344
11345 # Assign floating point type. Most processors with FP support
11346 # IEEE FP. On those that don't support FP at all, usually IEEE
11347 # is emulated.
11348 case ${target_cpu} in
11349 vax | pdp11 ) atof=vax ;;
11350 *) atof=ieee ;;
11351 esac
11352
11353 case "${obj_format}" in
11354 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11355 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11356 { (exit 1); exit 1; }; } ;;
11357 esac
11358
11359 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11360 cgen_cpu_prefix=""
11361 if test $using_cgen = yes ; then
11362 case ${target_cpu} in
11363 *) cgen_cpu_prefix=${target_cpu} ;;
11364 esac
11365
11366
11367 cat >>confdefs.h <<\_ACEOF
11368 #define USING_CGEN 1
11369 _ACEOF
11370
11371 fi
11372
11373
11374 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11375 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11376 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11377 { (exit 1); exit 1; }; }
11378 fi
11379
11380 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11381 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11382 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11383 { (exit 1); exit 1; }; }
11384 fi
11385
11386 # Some COFF configurations want these random other flags set.
11387 case ${obj_format} in
11388 coff)
11389 case ${target_cpu_type} in
11390 i386)
11391 cat >>confdefs.h <<\_ACEOF
11392 #define I386COFF 1
11393 _ACEOF
11394 ;;
11395 m68k)
11396 cat >>confdefs.h <<\_ACEOF
11397 #define M68KCOFF 1
11398 _ACEOF
11399 ;;
11400 m88k)
11401 cat >>confdefs.h <<\_ACEOF
11402 #define M88KCOFF 1
11403 _ACEOF
11404 ;;
11405 x86_64)
11406 cat >>confdefs.h <<\_ACEOF
11407 #define I386COFF 1
11408 _ACEOF
11409 ;;
11410 esac
11411 ;;
11412 esac
11413
11414 # Getting this done right is going to be a bitch. Each configuration specified
11415 # with --enable-targets=... should be checked for environment, format, cpu
11416 # setting.
11417 #
11418 # For each configuration, the necessary object file support code must be linked
11419 # in. This might be only one, it might be up to four. The necessary emulation
11420 # code needs to be provided, too.
11421 #
11422 # And then there's "--enable-targets=all"....
11423 #
11424 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11425
11426 formats="${obj_format}"
11427 emfiles=""
11428 EMULATIONS=""
11429 _gas_uniq_list="$emulations"
11430 _gas_uniq_newlist=""
11431 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11432 case $_gas_uniq_i in
11433 _gas_uniq_dummy) ;;
11434 *) case " $_gas_uniq_newlist " in
11435 *" $_gas_uniq_i "*) ;;
11436 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11437 esac ;;
11438 esac
11439 done
11440 emulations=$_gas_uniq_newlist
11441
11442 for em in . $emulations ; do
11443 case $em in
11444 .) continue ;;
11445 mipsbelf | mipslelf | mipself)
11446 fmt=elf file=mipself ;;
11447 mipsbecoff | mipslecoff | mipsecoff)
11448 fmt=ecoff file=mipsecoff ;;
11449 *coff)
11450 fmt=coff file=$em ;;
11451 *aout)
11452 fmt=aout file=$em ;;
11453 *elf)
11454 fmt=elf file=$em ;;
11455 esac
11456 formats="$formats $fmt"
11457 emfiles="$emfiles e-$file.o"
11458 EMULATIONS="$EMULATIONS &$em,"
11459 done
11460 _gas_uniq_list="$formats"
11461 _gas_uniq_newlist=""
11462 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11463 case $_gas_uniq_i in
11464 _gas_uniq_dummy) ;;
11465 *) case " $_gas_uniq_newlist " in
11466 *" $_gas_uniq_i "*) ;;
11467 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11468 esac ;;
11469 esac
11470 done
11471 formats=$_gas_uniq_newlist
11472
11473 _gas_uniq_list="$emfiles"
11474 _gas_uniq_newlist=""
11475 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11476 case $_gas_uniq_i in
11477 _gas_uniq_dummy) ;;
11478 *) case " $_gas_uniq_newlist " in
11479 *" $_gas_uniq_i "*) ;;
11480 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11481 esac ;;
11482 esac
11483 done
11484 emfiles=$_gas_uniq_newlist
11485
11486 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11487 for fmt in $formats ; do
11488 case $fmt in
11489 aout)
11490 cat >>confdefs.h <<\_ACEOF
11491 #define OBJ_MAYBE_AOUT 1
11492 _ACEOF
11493 ;;
11494 bout)
11495 cat >>confdefs.h <<\_ACEOF
11496 #define OBJ_MAYBE_BOUT 1
11497 _ACEOF
11498 ;;
11499 coff)
11500 cat >>confdefs.h <<\_ACEOF
11501 #define OBJ_MAYBE_COFF 1
11502 _ACEOF
11503 ;;
11504 ecoff)
11505 cat >>confdefs.h <<\_ACEOF
11506 #define OBJ_MAYBE_ECOFF 1
11507 _ACEOF
11508 ;;
11509 elf)
11510 cat >>confdefs.h <<\_ACEOF
11511 #define OBJ_MAYBE_ELF 1
11512 _ACEOF
11513 ;;
11514 generic)
11515 cat >>confdefs.h <<\_ACEOF
11516 #define OBJ_MAYBE_GENERIC 1
11517 _ACEOF
11518 ;;
11519 som)
11520 cat >>confdefs.h <<\_ACEOF
11521 #define OBJ_MAYBE_SOM 1
11522 _ACEOF
11523 ;;
11524 esac
11525 extra_objects="$extra_objects obj-$fmt.o"
11526 done
11527 obj_format=multi
11528 fi
11529 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11530 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11531 # e-mips* has more than one emulation per file, e-i386* has just one at the
11532 # moment. If only one emulation is specified, then don't define
11533 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11534 case "${obj_format}${emfiles}" in
11535 multi* | *mips*)
11536 extra_objects="$extra_objects $emfiles"
11537
11538 cat >>confdefs.h <<\_ACEOF
11539 #define USE_EMULATIONS 1
11540 _ACEOF
11541 ;;
11542 esac
11543 fi
11544
11545
11546 cat >>confdefs.h <<_ACEOF
11547 #define EMULATIONS $EMULATIONS
11548 _ACEOF
11549
11550
11551 cat >>confdefs.h <<_ACEOF
11552 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
11553 _ACEOF
11554
11555
11556 reject_dev_configs=yes
11557
11558 case ${reject_dev_configs}-${dev} in
11559 yes-yes) # Oops.
11560 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11561 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11562 { (exit 1); exit 1; }; }
11563 ;;
11564 esac
11565
11566
11567
11568
11569
11570
11571
11572 # do we need the opcodes library?
11573 case "${need_opcodes}" in
11574 yes)
11575 OPCODES_LIB=../opcodes/libopcodes.la
11576 ;;
11577 esac
11578
11579
11580
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define TARGET_ALIAS "${target_alias}"
11584 _ACEOF
11585
11586
11587 cat >>confdefs.h <<_ACEOF
11588 #define TARGET_CANONICAL "${target}"
11589 _ACEOF
11590
11591
11592 cat >>confdefs.h <<_ACEOF
11593 #define TARGET_CPU "${target_cpu}"
11594 _ACEOF
11595
11596
11597 cat >>confdefs.h <<_ACEOF
11598 #define TARGET_VENDOR "${target_vendor}"
11599 _ACEOF
11600
11601
11602 cat >>confdefs.h <<_ACEOF
11603 #define TARGET_OS "${target_os}"
11604 _ACEOF
11605
11606
11607 for ac_prog in 'bison -y' byacc
11608 do
11609 # Extract the first word of "$ac_prog", so it can be a program name with args.
11610 set dummy $ac_prog; ac_word=$2
11611 echo "$as_me:$LINENO: checking for $ac_word" >&5
11612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11613 if test "${ac_cv_prog_YACC+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 if test -n "$YACC"; then
11617 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_YACC="$ac_prog"
11627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11629 fi
11630 done
11631 done
11632
11633 fi
11634 fi
11635 YACC=$ac_cv_prog_YACC
11636 if test -n "$YACC"; then
11637 echo "$as_me:$LINENO: result: $YACC" >&5
11638 echo "${ECHO_T}$YACC" >&6
11639 else
11640 echo "$as_me:$LINENO: result: no" >&5
11641 echo "${ECHO_T}no" >&6
11642 fi
11643
11644 test -n "$YACC" && break
11645 done
11646 test -n "$YACC" || YACC="yacc"
11647
11648 for ac_prog in flex lex
11649 do
11650 # Extract the first word of "$ac_prog", so it can be a program name with args.
11651 set dummy $ac_prog; ac_word=$2
11652 echo "$as_me:$LINENO: checking for $ac_word" >&5
11653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11654 if test "${ac_cv_prog_LEX+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 if test -n "$LEX"; then
11658 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11659 else
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11662 do
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 ac_cv_prog_LEX="$ac_prog"
11668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11670 fi
11671 done
11672 done
11673
11674 fi
11675 fi
11676 LEX=$ac_cv_prog_LEX
11677 if test -n "$LEX"; then
11678 echo "$as_me:$LINENO: result: $LEX" >&5
11679 echo "${ECHO_T}$LEX" >&6
11680 else
11681 echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11683 fi
11684
11685 test -n "$LEX" && break
11686 done
11687 test -n "$LEX" || LEX=":"
11688
11689 if test -z "$LEXLIB"
11690 then
11691 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11692 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11693 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696 ac_check_lib_save_LIBS=$LIBS
11697 LIBS="-lfl $LIBS"
11698 cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h. */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704
11705 /* Override any gcc2 internal prototype to avoid an error. */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 /* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11711 char yywrap ();
11712 int
11713 main ()
11714 {
11715 yywrap ();
11716 ;
11717 return 0;
11718 }
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ac_cv_lib_fl_yywrap=yes
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 ac_cv_lib_fl_yywrap=no
11748 fi
11749 rm -f conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11751 LIBS=$ac_check_lib_save_LIBS
11752 fi
11753 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11754 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11755 if test $ac_cv_lib_fl_yywrap = yes; then
11756 LEXLIB="-lfl"
11757 else
11758 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11759 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11760 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763 ac_check_lib_save_LIBS=$LIBS
11764 LIBS="-ll $LIBS"
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771
11772 /* Override any gcc2 internal prototype to avoid an error. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 /* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11778 char yywrap ();
11779 int
11780 main ()
11781 {
11782 yywrap ();
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest$ac_exeext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_lib_l_yywrap=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 ac_cv_lib_l_yywrap=no
11815 fi
11816 rm -f conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818 LIBS=$ac_check_lib_save_LIBS
11819 fi
11820 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11821 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11822 if test $ac_cv_lib_l_yywrap = yes; then
11823 LEXLIB="-ll"
11824 fi
11825
11826 fi
11827
11828 fi
11829
11830 if test "x$LEX" != "x:"; then
11831 echo "$as_me:$LINENO: checking lex output file root" >&5
11832 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11833 if test "${ac_cv_prog_lex_root+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836 # The minimal lex program is just a single line: %%. But some broken lexes
11837 # (Solaris, I think it was) want two %% lines, so accommodate them.
11838 cat >conftest.l <<_ACEOF
11839 %%
11840 %%
11841 _ACEOF
11842 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11843 (eval $LEX conftest.l) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }
11847 if test -f lex.yy.c; then
11848 ac_cv_prog_lex_root=lex.yy
11849 elif test -f lexyy.c; then
11850 ac_cv_prog_lex_root=lexyy
11851 else
11852 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11853 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11854 { (exit 1); exit 1; }; }
11855 fi
11856 fi
11857 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11858 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11859 rm -f conftest.l
11860 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11861
11862 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11863 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11864 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867 # POSIX says lex can declare yytext either as a pointer or an array; the
11868 # default is implementation-dependent. Figure out which it is, since
11869 # not all implementations provide the %pointer and %array declarations.
11870 ac_cv_prog_lex_yytext_pointer=no
11871 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11872 ac_save_LIBS=$LIBS
11873 LIBS="$LIBS $LEXLIB"
11874 cat >conftest.$ac_ext <<_ACEOF
11875 `cat $LEX_OUTPUT_ROOT.c`
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_prog_lex_yytext_pointer=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 fi
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_save_LIBS
11908 rm -f "${LEX_OUTPUT_ROOT}.c"
11909
11910 fi
11911 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11912 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11913 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11914
11915 cat >>confdefs.h <<\_ACEOF
11916 #define YYTEXT_POINTER 1
11917 _ACEOF
11918
11919 fi
11920
11921 fi
11922 if test "$LEX" = :; then
11923 LEX=${am_missing_run}flex
11924 fi
11925
11926 ALL_LINGUAS="fr tr es rw"
11927 # If we haven't got the data from the intl directory,
11928 # assume NLS is disabled.
11929 USE_NLS=no
11930 LIBINTL=
11931 LIBINTL_DEP=
11932 INCINTL=
11933 XGETTEXT=
11934 GMSGFMT=
11935 POSUB=
11936
11937 if test -f ../intl/config.intl; then
11938 . ../intl/config.intl
11939 fi
11940 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11941 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11942 if test x"$USE_NLS" != xyes; then
11943 echo "$as_me:$LINENO: result: no" >&5
11944 echo "${ECHO_T}no" >&6
11945 else
11946 echo "$as_me:$LINENO: result: yes" >&5
11947 echo "${ECHO_T}yes" >&6
11948
11949 cat >>confdefs.h <<\_ACEOF
11950 #define ENABLE_NLS 1
11951 _ACEOF
11952
11953
11954 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11955 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11956 # Look for .po and .gmo files in the source directory.
11957 CATALOGS=
11958 XLINGUAS=
11959 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11960 # If there aren't any .gmo files the shell will give us the
11961 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11962 # weeded out.
11963 case "$cat" in *\**)
11964 continue;;
11965 esac
11966 # The quadruple backslash is collapsed to a double backslash
11967 # by the backticks, then collapsed again by the double quotes,
11968 # leaving us with one backslash in the sed expression (right
11969 # before the dot that mustn't act as a wildcard).
11970 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11971 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11972 # The user is allowed to set LINGUAS to a list of languages to
11973 # install catalogs for. If it's empty that means "all of them."
11974 if test "x$LINGUAS" = x; then
11975 CATALOGS="$CATALOGS $cat"
11976 XLINGUAS="$XLINGUAS $lang"
11977 else
11978 case "$LINGUAS" in *$lang*)
11979 CATALOGS="$CATALOGS $cat"
11980 XLINGUAS="$XLINGUAS $lang"
11981 ;;
11982 esac
11983 fi
11984 done
11985 LINGUAS="$XLINGUAS"
11986 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11987 echo "${ECHO_T}$LINGUAS" >&6
11988
11989
11990 DATADIRNAME=share
11991
11992 INSTOBJEXT=.mo
11993
11994 GENCAT=gencat
11995
11996 CATOBJEXT=.gmo
11997
11998 fi
11999
12000 MKINSTALLDIRS=
12001 if test -n "$ac_aux_dir"; then
12002 case "$ac_aux_dir" in
12003 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12004 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12005 esac
12006 fi
12007 if test -z "$MKINSTALLDIRS"; then
12008 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12009 fi
12010
12011
12012
12013 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12014 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12015 # Check whether --enable-nls or --disable-nls was given.
12016 if test "${enable_nls+set}" = set; then
12017 enableval="$enable_nls"
12018 USE_NLS=$enableval
12019 else
12020 USE_NLS=yes
12021 fi;
12022 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12023 echo "${ECHO_T}$USE_NLS" >&6
12024
12025
12026
12027
12028
12029
12030 # Prepare PATH_SEPARATOR.
12031 # The user is always right.
12032 if test "${PATH_SEPARATOR+set}" != set; then
12033 echo "#! /bin/sh" >conf$$.sh
12034 echo "exit 0" >>conf$$.sh
12035 chmod +x conf$$.sh
12036 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12037 PATH_SEPARATOR=';'
12038 else
12039 PATH_SEPARATOR=:
12040 fi
12041 rm -f conf$$.sh
12042 fi
12043
12044 # Find out how to test for executable files. Don't use a zero-byte file,
12045 # as systems may use methods other than mode bits to determine executability.
12046 cat >conf$$.file <<_ASEOF
12047 #! /bin/sh
12048 exit 0
12049 _ASEOF
12050 chmod +x conf$$.file
12051 if test -x conf$$.file >/dev/null 2>&1; then
12052 ac_executable_p="test -x"
12053 else
12054 ac_executable_p="test -f"
12055 fi
12056 rm -f conf$$.file
12057
12058 # Extract the first word of "msgfmt", so it can be a program name with args.
12059 set dummy msgfmt; ac_word=$2
12060 echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12062 if test "${ac_cv_path_MSGFMT+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065 case "$MSGFMT" in
12066 [\\/]* | ?:[\\/]*)
12067 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12068 ;;
12069 *)
12070 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12071 for ac_dir in $PATH; do
12072 IFS="$ac_save_IFS"
12073 test -z "$ac_dir" && ac_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12076 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12077 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12078 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12079 break 2
12080 fi
12081 fi
12082 done
12083 done
12084 IFS="$ac_save_IFS"
12085 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12086 ;;
12087 esac
12088 fi
12089 MSGFMT="$ac_cv_path_MSGFMT"
12090 if test "$MSGFMT" != ":"; then
12091 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12092 echo "${ECHO_T}$MSGFMT" >&6
12093 else
12094 echo "$as_me:$LINENO: result: no" >&5
12095 echo "${ECHO_T}no" >&6
12096 fi
12097
12098 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12099 set dummy gmsgfmt; ac_word=$2
12100 echo "$as_me:$LINENO: checking for $ac_word" >&5
12101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12102 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 case $GMSGFMT in
12106 [\\/]* | ?:[\\/]*)
12107 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12108 ;;
12109 *)
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12112 do
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12120 fi
12121 done
12122 done
12123
12124 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12125 ;;
12126 esac
12127 fi
12128 GMSGFMT=$ac_cv_path_GMSGFMT
12129
12130 if test -n "$GMSGFMT"; then
12131 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12132 echo "${ECHO_T}$GMSGFMT" >&6
12133 else
12134 echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12136 fi
12137
12138
12139
12140 # Prepare PATH_SEPARATOR.
12141 # The user is always right.
12142 if test "${PATH_SEPARATOR+set}" != set; then
12143 echo "#! /bin/sh" >conf$$.sh
12144 echo "exit 0" >>conf$$.sh
12145 chmod +x conf$$.sh
12146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12147 PATH_SEPARATOR=';'
12148 else
12149 PATH_SEPARATOR=:
12150 fi
12151 rm -f conf$$.sh
12152 fi
12153
12154 # Find out how to test for executable files. Don't use a zero-byte file,
12155 # as systems may use methods other than mode bits to determine executability.
12156 cat >conf$$.file <<_ASEOF
12157 #! /bin/sh
12158 exit 0
12159 _ASEOF
12160 chmod +x conf$$.file
12161 if test -x conf$$.file >/dev/null 2>&1; then
12162 ac_executable_p="test -x"
12163 else
12164 ac_executable_p="test -f"
12165 fi
12166 rm -f conf$$.file
12167
12168 # Extract the first word of "xgettext", so it can be a program name with args.
12169 set dummy xgettext; ac_word=$2
12170 echo "$as_me:$LINENO: checking for $ac_word" >&5
12171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12172 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 case "$XGETTEXT" in
12176 [\\/]* | ?:[\\/]*)
12177 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12178 ;;
12179 *)
12180 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12181 for ac_dir in $PATH; do
12182 IFS="$ac_save_IFS"
12183 test -z "$ac_dir" && ac_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12186 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12187 (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
12188 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12189 break 2
12190 fi
12191 fi
12192 done
12193 done
12194 IFS="$ac_save_IFS"
12195 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12196 ;;
12197 esac
12198 fi
12199 XGETTEXT="$ac_cv_path_XGETTEXT"
12200 if test "$XGETTEXT" != ":"; then
12201 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12202 echo "${ECHO_T}$XGETTEXT" >&6
12203 else
12204 echo "$as_me:$LINENO: result: no" >&5
12205 echo "${ECHO_T}no" >&6
12206 fi
12207
12208 rm -f messages.po
12209
12210
12211 # Prepare PATH_SEPARATOR.
12212 # The user is always right.
12213 if test "${PATH_SEPARATOR+set}" != set; then
12214 echo "#! /bin/sh" >conf$$.sh
12215 echo "exit 0" >>conf$$.sh
12216 chmod +x conf$$.sh
12217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12218 PATH_SEPARATOR=';'
12219 else
12220 PATH_SEPARATOR=:
12221 fi
12222 rm -f conf$$.sh
12223 fi
12224
12225 # Find out how to test for executable files. Don't use a zero-byte file,
12226 # as systems may use methods other than mode bits to determine executability.
12227 cat >conf$$.file <<_ASEOF
12228 #! /bin/sh
12229 exit 0
12230 _ASEOF
12231 chmod +x conf$$.file
12232 if test -x conf$$.file >/dev/null 2>&1; then
12233 ac_executable_p="test -x"
12234 else
12235 ac_executable_p="test -f"
12236 fi
12237 rm -f conf$$.file
12238
12239 # Extract the first word of "msgmerge", so it can be a program name with args.
12240 set dummy msgmerge; ac_word=$2
12241 echo "$as_me:$LINENO: checking for $ac_word" >&5
12242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12243 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246 case "$MSGMERGE" in
12247 [\\/]* | ?:[\\/]*)
12248 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12249 ;;
12250 *)
12251 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12252 for ac_dir in $PATH; do
12253 IFS="$ac_save_IFS"
12254 test -z "$ac_dir" && ac_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12257 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12258 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12259 break 2
12260 fi
12261 fi
12262 done
12263 done
12264 IFS="$ac_save_IFS"
12265 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12266 ;;
12267 esac
12268 fi
12269 MSGMERGE="$ac_cv_path_MSGMERGE"
12270 if test "$MSGMERGE" != ":"; then
12271 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12272 echo "${ECHO_T}$MSGMERGE" >&6
12273 else
12274 echo "$as_me:$LINENO: result: no" >&5
12275 echo "${ECHO_T}no" >&6
12276 fi
12277
12278
12279 if test "$GMSGFMT" != ":"; then
12280 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12281 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12282 : ;
12283 else
12284 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12285 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12286 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12287 GMSGFMT=":"
12288 fi
12289 fi
12290
12291 if test "$XGETTEXT" != ":"; then
12292 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12293 (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
12294 : ;
12295 else
12296 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12297 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12298 XGETTEXT=":"
12299 fi
12300 rm -f messages.po
12301 fi
12302
12303 ac_config_commands="$ac_config_commands default-1"
12304
12305
12306
12307 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12308 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12309 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12310 if test "${enable_maintainer_mode+set}" = set; then
12311 enableval="$enable_maintainer_mode"
12312 USE_MAINTAINER_MODE=$enableval
12313 else
12314 USE_MAINTAINER_MODE=no
12315 fi;
12316 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12317 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12318
12319
12320 if test $USE_MAINTAINER_MODE = yes; then
12321 MAINTAINER_MODE_TRUE=
12322 MAINTAINER_MODE_FALSE='#'
12323 else
12324 MAINTAINER_MODE_TRUE='#'
12325 MAINTAINER_MODE_FALSE=
12326 fi
12327
12328 MAINT=$MAINTAINER_MODE_TRUE
12329
12330
12331
12332
12333 if false; then
12334 GENINSRC_NEVER_TRUE=
12335 GENINSRC_NEVER_FALSE='#'
12336 else
12337 GENINSRC_NEVER_TRUE='#'
12338 GENINSRC_NEVER_FALSE=
12339 fi
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353 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
12354 do
12355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12357 echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 fi
12362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364 else
12365 # Is the header compilable?
12366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12375 #include <$ac_header>
12376 _ACEOF
12377 rm -f conftest.$ac_objext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest.$ac_objext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_header_compiler=yes
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404 ac_header_compiler=no
12405 fi
12406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12408 echo "${ECHO_T}$ac_header_compiler" >&6
12409
12410 # Is the header present?
12411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 #include <$ac_header>
12420 _ACEOF
12421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } >/dev/null; then
12429 if test -s conftest.err; then
12430 ac_cpp_err=$ac_c_preproc_warn_flag
12431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12432 else
12433 ac_cpp_err=
12434 fi
12435 else
12436 ac_cpp_err=yes
12437 fi
12438 if test -z "$ac_cpp_err"; then
12439 ac_header_preproc=yes
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 ac_header_preproc=no
12445 fi
12446 rm -f conftest.err conftest.$ac_ext
12447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12448 echo "${ECHO_T}$ac_header_preproc" >&6
12449
12450 # So? What about this header?
12451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12452 yes:no: )
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12457 ac_header_preproc=yes
12458 ;;
12459 no:yes:* )
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12472 (
12473 cat <<\_ASBOX
12474 ## ------------------------------------------ ##
12475 ## Report this to the AC_PACKAGE_NAME lists. ##
12476 ## ------------------------------------------ ##
12477 _ASBOX
12478 ) |
12479 sed "s/^/$as_me: WARNING: /" >&2
12480 ;;
12481 esac
12482 echo "$as_me:$LINENO: checking for $ac_header" >&5
12483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487 eval "$as_ac_Header=\$ac_header_preproc"
12488 fi
12489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12491
12492 fi
12493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12494 cat >>confdefs.h <<_ACEOF
12495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12496 _ACEOF
12497
12498 fi
12499
12500 done
12501
12502
12503 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
12504 # people who are not cross-compiling but are compiling cross-assemblers.
12505 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12506 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
12507 if test "${host}" = "${target}"; then
12508 cross_gas=no
12509 else
12510 cross_gas=yes
12511
12512 cat >>confdefs.h <<\_ACEOF
12513 #define CROSS_COMPILE 1
12514 _ACEOF
12515
12516 fi
12517 echo "$as_me:$LINENO: result: $cross_gas" >&5
12518 echo "${ECHO_T}$cross_gas" >&6
12519
12520 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12521 # for constant arguments. Useless!
12522 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12523 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12524 if test "${ac_cv_working_alloca_h+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #include <alloca.h>
12534 int
12535 main ()
12536 {
12537 char *p = (char *) alloca (2 * sizeof (int));
12538 ;
12539 return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_working_alloca_h=yes
12565 else
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 ac_cv_working_alloca_h=no
12570 fi
12571 rm -f conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
12573 fi
12574 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12575 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12576 if test $ac_cv_working_alloca_h = yes; then
12577
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_ALLOCA_H 1
12580 _ACEOF
12581
12582 fi
12583
12584 echo "$as_me:$LINENO: checking for alloca" >&5
12585 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12586 if test "${ac_cv_func_alloca_works+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 #ifdef __GNUC__
12596 # define alloca __builtin_alloca
12597 #else
12598 # ifdef _MSC_VER
12599 # include <malloc.h>
12600 # define alloca _alloca
12601 # else
12602 # if HAVE_ALLOCA_H
12603 # include <alloca.h>
12604 # else
12605 # ifdef _AIX
12606 #pragma alloca
12607 # else
12608 # ifndef alloca /* predefined by HP cc +Olibcalls */
12609 char *alloca ();
12610 # endif
12611 # endif
12612 # endif
12613 # endif
12614 #endif
12615
12616 int
12617 main ()
12618 {
12619 char *p = (char *) alloca (1);
12620 ;
12621 return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12626 (eval $ac_link) 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_func_alloca_works=yes
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 ac_cv_func_alloca_works=no
12652 fi
12653 rm -f conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 fi
12656 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12657 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12658
12659 if test $ac_cv_func_alloca_works = yes; then
12660
12661 cat >>confdefs.h <<\_ACEOF
12662 #define HAVE_ALLOCA 1
12663 _ACEOF
12664
12665 else
12666 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12667 # that cause trouble. Some versions do not even contain alloca or
12668 # contain a buggy version. If you still want to use their alloca,
12669 # use ar to extract alloca.o from them instead of compiling alloca.c.
12670
12671 ALLOCA=alloca.$ac_objext
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define C_ALLOCA 1
12675 _ACEOF
12676
12677
12678 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12679 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12680 if test "${ac_cv_os_cray+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h. */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 #if defined(CRAY) && ! defined(CRAY2)
12690 webecray
12691 #else
12692 wenotbecray
12693 #endif
12694
12695 _ACEOF
12696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12697 $EGREP "webecray" >/dev/null 2>&1; then
12698 ac_cv_os_cray=yes
12699 else
12700 ac_cv_os_cray=no
12701 fi
12702 rm -f conftest*
12703
12704 fi
12705 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12706 echo "${ECHO_T}$ac_cv_os_cray" >&6
12707 if test $ac_cv_os_cray = yes; then
12708 for ac_func in _getb67 GETB67 getb67; do
12709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710 echo "$as_me:$LINENO: checking for $ac_func" >&5
12711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12712 if eval "test \"\${$as_ac_var+set}\" = set"; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12723 #define $ac_func innocuous_$ac_func
12724
12725 /* System header to define __stub macros and hopefully few prototypes,
12726 which can conflict with char $ac_func (); below.
12727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12728 <limits.h> exists even on freestanding compilers. */
12729
12730 #ifdef __STDC__
12731 # include <limits.h>
12732 #else
12733 # include <assert.h>
12734 #endif
12735
12736 #undef $ac_func
12737
12738 /* Override any gcc2 internal prototype to avoid an error. */
12739 #ifdef __cplusplus
12740 extern "C"
12741 {
12742 #endif
12743 /* We use char because int might match the return type of a gcc2
12744 builtin and then its argument prototype would still apply. */
12745 char $ac_func ();
12746 /* The GNU C library defines this for functions which it implements
12747 to always fail with ENOSYS. Some functions are actually named
12748 something starting with __ and the normal name is an alias. */
12749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12750 choke me
12751 #else
12752 char (*f) () = $ac_func;
12753 #endif
12754 #ifdef __cplusplus
12755 }
12756 #endif
12757
12758 int
12759 main ()
12760 {
12761 return f != $ac_func;
12762 ;
12763 return 0;
12764 }
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag"
12776 || test ! -s conftest.err'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 eval "$as_ac_var=yes"
12789 else
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12792
12793 eval "$as_ac_var=no"
12794 fi
12795 rm -f conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
12797 fi
12798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12800 if test `eval echo '${'$as_ac_var'}'` = yes; then
12801
12802 cat >>confdefs.h <<_ACEOF
12803 #define CRAY_STACKSEG_END $ac_func
12804 _ACEOF
12805
12806 break
12807 fi
12808
12809 done
12810 fi
12811
12812 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12813 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12814 if test "${ac_cv_c_stack_direction+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 if test "$cross_compiling" = yes; then
12818 ac_cv_c_stack_direction=0
12819 else
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h. */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 int
12827 find_stack_direction ()
12828 {
12829 static char *addr = 0;
12830 auto char dummy;
12831 if (addr == 0)
12832 {
12833 addr = &dummy;
12834 return find_stack_direction ();
12835 }
12836 else
12837 return (&dummy > addr) ? 1 : -1;
12838 }
12839
12840 int
12841 main ()
12842 {
12843 exit (find_stack_direction () < 0);
12844 }
12845 _ACEOF
12846 rm -f conftest$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_c_stack_direction=1
12858 else
12859 echo "$as_me: program exited with status $ac_status" >&5
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ( exit $ac_status )
12864 ac_cv_c_stack_direction=-1
12865 fi
12866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12867 fi
12868 fi
12869 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12870 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12871
12872 cat >>confdefs.h <<_ACEOF
12873 #define STACK_DIRECTION $ac_cv_c_stack_direction
12874 _ACEOF
12875
12876
12877 fi
12878
12879 echo "$as_me:$LINENO: checking for inline" >&5
12880 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12881 if test "${ac_cv_c_inline+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 ac_cv_c_inline=no
12885 for ac_kw in inline __inline__ __inline; do
12886 cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h. */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 #ifndef __cplusplus
12893 typedef int foo_t;
12894 static $ac_kw foo_t static_foo () {return 0; }
12895 $ac_kw foo_t foo () {return 0; }
12896 #endif
12897
12898 _ACEOF
12899 rm -f conftest.$ac_objext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_cv_c_inline=$ac_kw; break
12922 else
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 fi
12927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12928 done
12929
12930 fi
12931 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12932 echo "${ECHO_T}$ac_cv_c_inline" >&6
12933
12934
12935 case $ac_cv_c_inline in
12936 inline | yes) ;;
12937 *)
12938 case $ac_cv_c_inline in
12939 no) ac_val=;;
12940 *) ac_val=$ac_cv_c_inline;;
12941 esac
12942 cat >>confdefs.h <<_ACEOF
12943 #ifndef __cplusplus
12944 #define inline $ac_val
12945 #endif
12946 _ACEOF
12947 ;;
12948 esac
12949
12950
12951 # VMS doesn't have unlink.
12952
12953
12954 for ac_func in unlink remove
12955 do
12956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12957 echo "$as_me:$LINENO: checking for $ac_func" >&5
12958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12959 if eval "test \"\${$as_ac_var+set}\" = set"; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12970 #define $ac_func innocuous_$ac_func
12971
12972 /* System header to define __stub macros and hopefully few prototypes,
12973 which can conflict with char $ac_func (); below.
12974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975 <limits.h> exists even on freestanding compilers. */
12976
12977 #ifdef __STDC__
12978 # include <limits.h>
12979 #else
12980 # include <assert.h>
12981 #endif
12982
12983 #undef $ac_func
12984
12985 /* Override any gcc2 internal prototype to avoid an error. */
12986 #ifdef __cplusplus
12987 extern "C"
12988 {
12989 #endif
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char $ac_func ();
12993 /* The GNU C library defines this for functions which it implements
12994 to always fail with ENOSYS. Some functions are actually named
12995 something starting with __ and the normal name is an alias. */
12996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12997 choke me
12998 #else
12999 char (*f) () = $ac_func;
13000 #endif
13001 #ifdef __cplusplus
13002 }
13003 #endif
13004
13005 int
13006 main ()
13007 {
13008 return f != $ac_func;
13009 ;
13010 return 0;
13011 }
13012 _ACEOF
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015 (eval $ac_link) 2>conftest.er1
13016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -z "$ac_c_werror_flag"
13023 || test ! -s conftest.err'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try='test -s conftest$ac_exeext'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 eval "$as_ac_var=yes"
13036 else
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13039
13040 eval "$as_ac_var=no"
13041 fi
13042 rm -f conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 fi
13045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13047 if test `eval echo '${'$as_ac_var'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 _ACEOF
13051 break
13052 fi
13053 done
13054
13055
13056 # Some systems don't have sbrk().
13057
13058 for ac_func in sbrk
13059 do
13060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061 echo "$as_me:$LINENO: checking for $ac_func" >&5
13062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13063 if eval "test \"\${$as_ac_var+set}\" = set"; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13074 #define $ac_func innocuous_$ac_func
13075
13076 /* System header to define __stub macros and hopefully few prototypes,
13077 which can conflict with char $ac_func (); below.
13078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13079 <limits.h> exists even on freestanding compilers. */
13080
13081 #ifdef __STDC__
13082 # include <limits.h>
13083 #else
13084 # include <assert.h>
13085 #endif
13086
13087 #undef $ac_func
13088
13089 /* Override any gcc2 internal prototype to avoid an error. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 {
13093 #endif
13094 /* We use char because int might match the return type of a gcc2
13095 builtin and then its argument prototype would still apply. */
13096 char $ac_func ();
13097 /* The GNU C library defines this for functions which it implements
13098 to always fail with ENOSYS. Some functions are actually named
13099 something starting with __ and the normal name is an alias. */
13100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13101 choke me
13102 #else
13103 char (*f) () = $ac_func;
13104 #endif
13105 #ifdef __cplusplus
13106 }
13107 #endif
13108
13109 int
13110 main ()
13111 {
13112 return f != $ac_func;
13113 ;
13114 return 0;
13115 }
13116 _ACEOF
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13119 (eval $ac_link) 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -z "$ac_c_werror_flag"
13127 || test ! -s conftest.err'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest$ac_exeext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 eval "$as_ac_var=yes"
13140 else
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 eval "$as_ac_var=no"
13145 fi
13146 rm -f conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 fi
13149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13151 if test `eval echo '${'$as_ac_var'}'` = yes; then
13152 cat >>confdefs.h <<_ACEOF
13153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13154 _ACEOF
13155
13156 fi
13157 done
13158
13159
13160 # do we need the math library?
13161 case "${need_libm}" in
13162 yes)
13163 LIBM=
13164 case $host in
13165 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13166 # These system don't have libm, or don't need it
13167 ;;
13168 *-ncr-sysv4.3*)
13169 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
13170 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
13171 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174 ac_check_lib_save_LIBS=$LIBS
13175 LIBS="-lmw $LIBS"
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182
13183 /* Override any gcc2 internal prototype to avoid an error. */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 /* We use char because int might match the return type of a gcc2
13188 builtin and then its argument prototype would still apply. */
13189 char _mwvalidcheckl ();
13190 int
13191 main ()
13192 {
13193 _mwvalidcheckl ();
13194 ;
13195 return 0;
13196 }
13197 _ACEOF
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200 (eval $ac_link) 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag"
13208 || test ! -s conftest.err'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_mw__mwvalidcheckl=yes
13221 else
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ac_cv_lib_mw__mwvalidcheckl=no
13226 fi
13227 rm -f conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13230 fi
13231 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13232 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
13233 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
13234 LIBM="-lmw"
13235 fi
13236
13237 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13238 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13239 if test "${ac_cv_lib_m_cos+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 ac_check_lib_save_LIBS=$LIBS
13243 LIBS="-lm $LIBS"
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250
13251 /* Override any gcc2 internal prototype to avoid an error. */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 /* We use char because int might match the return type of a gcc2
13256 builtin and then its argument prototype would still apply. */
13257 char cos ();
13258 int
13259 main ()
13260 {
13261 cos ();
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_c_werror_flag"
13276 || test ! -s conftest.err'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_cv_lib_m_cos=yes
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293 ac_cv_lib_m_cos=no
13294 fi
13295 rm -f conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13297 LIBS=$ac_check_lib_save_LIBS
13298 fi
13299 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13300 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13301 if test $ac_cv_lib_m_cos = yes; then
13302 LIBM="$LIBM -lm"
13303 fi
13304
13305 ;;
13306 *)
13307 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13308 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13309 if test "${ac_cv_lib_m_cos+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 ac_check_lib_save_LIBS=$LIBS
13313 LIBS="-lm $LIBS"
13314 cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h. */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320
13321 /* Override any gcc2 internal prototype to avoid an error. */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 /* We use char because int might match the return type of a gcc2
13326 builtin and then its argument prototype would still apply. */
13327 char cos ();
13328 int
13329 main ()
13330 {
13331 cos ();
13332 ;
13333 return 0;
13334 }
13335 _ACEOF
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13338 (eval $ac_link) 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try='test -z "$ac_c_werror_flag"
13346 || test ! -s conftest.err'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest$ac_exeext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 ac_cv_lib_m_cos=yes
13359 else
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13362
13363 ac_cv_lib_m_cos=no
13364 fi
13365 rm -f conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13368 fi
13369 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13370 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13371 if test $ac_cv_lib_m_cos = yes; then
13372 LIBM="-lm"
13373 fi
13374
13375 ;;
13376 esac
13377
13378
13379
13380 ;;
13381 esac
13382
13383 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13384 # enough, but on some of those systems, the assert macro relies on requoting
13385 # working properly!
13386 echo "$as_me:$LINENO: checking for working assert macro" >&5
13387 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13388 if test "${gas_cv_assert_ok+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <assert.h>
13398 #include <stdio.h>
13399 int
13400 main ()
13401 {
13402
13403 /* check for requoting problems */
13404 static int a, b, c, d;
13405 static char *s;
13406 assert (!strcmp(s, "foo bar baz quux"));
13407 /* check for newline handling */
13408 assert (a == b
13409 || c == d);
13410
13411 ;
13412 return 0;
13413 }
13414 _ACEOF
13415 rm -f conftest.$ac_objext conftest$ac_exeext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13417 (eval $ac_link) 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag"
13425 || test ! -s conftest.err'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest$ac_exeext'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 gas_cv_assert_ok=yes
13438 else
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442 gas_cv_assert_ok=no
13443 fi
13444 rm -f conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13446 fi
13447 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13448 echo "${ECHO_T}$gas_cv_assert_ok" >&6
13449 test $gas_cv_assert_ok = yes ||
13450 cat >>confdefs.h <<\_ACEOF
13451 #define BROKEN_ASSERT 1
13452 _ACEOF
13453
13454
13455
13456 # On some systems, the system header files may not declare malloc, realloc,
13457 # and free. There are places where gas needs these functions to have been
13458 # declared -- such as when taking their addresses.
13459 gas_test_headers="
13460 #ifdef HAVE_MEMORY_H
13461 #include <memory.h>
13462 #endif
13463 #ifdef HAVE_STRING_H
13464 #include <string.h>
13465 #else
13466 #ifdef HAVE_STRINGS_H
13467 #include <strings.h>
13468 #endif
13469 #endif
13470 #ifdef HAVE_STDLIB_H
13471 #include <stdlib.h>
13472 #endif
13473 #ifdef HAVE_UNISTD_H
13474 #include <unistd.h>
13475 #endif
13476 "
13477
13478 # Does errno.h declare errno, or do we have to add a separate declaration
13479 # for it?
13480
13481 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13482 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13483 if test "${gas_cv_decl_needed_errno+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h. */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492
13493 #ifdef HAVE_ERRNO_H
13494 #include <errno.h>
13495 #endif
13496
13497 int
13498 main ()
13499 {
13500
13501 typedef int f;
13502 f x;
13503 x = (f) errno;
13504
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext conftest$ac_exeext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 gas_cv_decl_needed_errno=no
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 gas_cv_decl_needed_errno=yes
13537 fi
13538 rm -f conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 fi
13541 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13542 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13543 if test $gas_cv_decl_needed_errno = yes; then
13544
13545 cat >>confdefs.h <<\_ACEOF
13546 #define NEED_DECLARATION_ERRNO 1
13547 _ACEOF
13548
13549 fi
13550
13551
13552 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13553 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13554 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 #include <unistd.h>
13564 int
13565 main ()
13566 {
13567 extern int getopt (int, char *const*, const char *);
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 gas_cv_decl_getopt_unistd_h=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13598
13599 gas_cv_decl_getopt_unistd_h=no
13600 fi
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13602 fi
13603
13604 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13605 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13606 if test $gas_cv_decl_getopt_unistd_h = yes; then
13607
13608 cat >>confdefs.h <<\_ACEOF
13609 #define HAVE_DECL_GETOPT 1
13610 _ACEOF
13611
13612 fi
13613
13614
13615 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13616 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13617 if test "${gas_cv_decl_needed_environ+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h. */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $gas_test_headers
13627 int
13628 main ()
13629 {
13630
13631 typedef char **f;
13632 f x;
13633 x = (f) environ;
13634
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 rm -f conftest.$ac_objext conftest$ac_exeext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_c_werror_flag"
13649 || test ! -s conftest.err'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest$ac_exeext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 gas_cv_decl_needed_environ=no
13662 else
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13665
13666 gas_cv_decl_needed_environ=yes
13667 fi
13668 rm -f conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext conftest.$ac_ext
13670 fi
13671 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13672 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13673 if test $gas_cv_decl_needed_environ = yes; then
13674
13675 cat >>confdefs.h <<\_ACEOF
13676 #define NEED_DECLARATION_ENVIRON 1
13677 _ACEOF
13678
13679 fi
13680
13681
13682 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13683 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13684 if test "${gas_cv_decl_needed_ffs+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 else
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 $gas_test_headers
13694 int
13695 main ()
13696 {
13697
13698 typedef int (*f)(int);
13699 f x;
13700 x = (f) ffs;
13701
13702 ;
13703 return 0;
13704 }
13705 _ACEOF
13706 rm -f conftest.$ac_objext conftest$ac_exeext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13708 (eval $ac_link) 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -z "$ac_c_werror_flag"
13716 || test ! -s conftest.err'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; } &&
13722 { ac_try='test -s conftest$ac_exeext'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728 gas_cv_decl_needed_ffs=no
13729 else
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733 gas_cv_decl_needed_ffs=yes
13734 fi
13735 rm -f conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13737 fi
13738 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13739 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13740 if test $gas_cv_decl_needed_ffs = yes; then
13741
13742 cat >>confdefs.h <<\_ACEOF
13743 #define NEED_DECLARATION_FFS 1
13744 _ACEOF
13745
13746 fi
13747
13748
13749 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13750 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13751 if test "${gas_cv_decl_needed_free+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 $gas_test_headers
13761 int
13762 main ()
13763 {
13764
13765 typedef void (*f)();
13766 f x;
13767 x = (f) free;
13768
13769 ;
13770 return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -z "$ac_c_werror_flag"
13783 || test ! -s conftest.err'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 gas_cv_decl_needed_free=no
13796 else
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13799
13800 gas_cv_decl_needed_free=yes
13801 fi
13802 rm -f conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13804 fi
13805 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13806 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13807 if test $gas_cv_decl_needed_free = yes; then
13808
13809 cat >>confdefs.h <<\_ACEOF
13810 #define NEED_DECLARATION_FREE 1
13811 _ACEOF
13812
13813 fi
13814
13815
13816 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13817 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13818 if test "${gas_cv_decl_needed_malloc+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 $gas_test_headers
13828 int
13829 main ()
13830 {
13831
13832 typedef char *(*f)();
13833 f x;
13834 x = (f) malloc;
13835
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842 (eval $ac_link) 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag"
13850 || test ! -s conftest.err'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest$ac_exeext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 gas_cv_decl_needed_malloc=no
13863 else
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867 gas_cv_decl_needed_malloc=yes
13868 fi
13869 rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 fi
13872 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13873 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13874 if test $gas_cv_decl_needed_malloc = yes; then
13875
13876 cat >>confdefs.h <<\_ACEOF
13877 #define NEED_DECLARATION_MALLOC 1
13878 _ACEOF
13879
13880 fi
13881
13882
13883 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13884 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13885 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $gas_test_headers
13895 int
13896 main ()
13897 {
13898
13899 typedef char *(*f)();
13900 f x;
13901 x = (f) sbrk;
13902
13903 ;
13904 return 0;
13905 }
13906 _ACEOF
13907 rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13909 (eval $ac_link) 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_c_werror_flag"
13917 || test ! -s conftest.err'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest$ac_exeext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 gas_cv_decl_needed_sbrk=no
13930 else
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13933
13934 gas_cv_decl_needed_sbrk=yes
13935 fi
13936 rm -f conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13938 fi
13939 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13940 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13941 if test $gas_cv_decl_needed_sbrk = yes; then
13942
13943 cat >>confdefs.h <<\_ACEOF
13944 #define NEED_DECLARATION_SBRK 1
13945 _ACEOF
13946
13947 fi
13948
13949
13950 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13951 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13952 if test "${gas_cv_decl_needed_strstr+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 $gas_test_headers
13962 int
13963 main ()
13964 {
13965
13966 typedef char *(*f)();
13967 f x;
13968 x = (f) strstr;
13969
13970 ;
13971 return 0;
13972 }
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag"
13984 || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 gas_cv_decl_needed_strstr=no
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001 gas_cv_decl_needed_strstr=yes
14002 fi
14003 rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005 fi
14006 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
14007 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
14008 if test $gas_cv_decl_needed_strstr = yes; then
14009
14010 cat >>confdefs.h <<\_ACEOF
14011 #define NEED_DECLARATION_STRSTR 1
14012 _ACEOF
14013
14014 fi
14015
14016
14017 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14018 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14019 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14029 int
14030 main ()
14031 {
14032 #ifndef vsnprintf
14033 char *p = (char *) vsnprintf;
14034 #endif
14035
14036 ;
14037 return 0;
14038 }
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_have_decl_vsnprintf=yes
14063 else
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_cv_have_decl_vsnprintf=no
14068 fi
14069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14070 fi
14071 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14072 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14073 if test $ac_cv_have_decl_vsnprintf = yes; then
14074
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_DECL_VSNPRINTF 1
14077 _ACEOF
14078
14079
14080 else
14081 cat >>confdefs.h <<_ACEOF
14082 #define HAVE_DECL_VSNPRINTF 0
14083 _ACEOF
14084
14085
14086 fi
14087
14088
14089
14090
14091 case "${host}" in
14092 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14093
14094 cat >>confdefs.h <<\_ACEOF
14095 #define USE_BINARY_FOPEN 1
14096 _ACEOF
14097 ;;
14098 esac
14099
14100
14101
14102
14103
14104
14105
14106 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14107
14108 ac_config_commands="$ac_config_commands default"
14109
14110
14111 cat >confcache <<\_ACEOF
14112 # This file is a shell script that caches the results of configure
14113 # tests run on this system so they can be shared between configure
14114 # scripts and configure runs, see configure's option --config-cache.
14115 # It is not useful on other systems. If it contains results you don't
14116 # want to keep, you may remove or edit it.
14117 #
14118 # config.status only pays attention to the cache file if you give it
14119 # the --recheck option to rerun configure.
14120 #
14121 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14122 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14123 # following values.
14124
14125 _ACEOF
14126
14127 # The following way of writing the cache mishandles newlines in values,
14128 # but we know of no workaround that is simple, portable, and efficient.
14129 # So, don't put newlines in cache variables' values.
14130 # Ultrix sh set writes to stderr and can't be redirected directly,
14131 # and sets the high bit in the cache file unless we assign to the vars.
14132 {
14133 (set) 2>&1 |
14134 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14135 *ac_space=\ *)
14136 # `set' does not quote correctly, so add quotes (double-quote
14137 # substitution turns \\\\ into \\, and sed turns \\ into \).
14138 sed -n \
14139 "s/'/'\\\\''/g;
14140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14141 ;;
14142 *)
14143 # `set' quotes correctly as required by POSIX, so do not add quotes.
14144 sed -n \
14145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14146 ;;
14147 esac;
14148 } |
14149 sed '
14150 t clear
14151 : clear
14152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14153 t end
14154 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14155 : end' >>confcache
14156 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14157 if test -w $cache_file; then
14158 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14159 cat confcache >$cache_file
14160 else
14161 echo "not updating unwritable cache $cache_file"
14162 fi
14163 fi
14164 rm -f confcache
14165
14166 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14167 # Let make expand exec_prefix.
14168 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14169
14170 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14171 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14172 # trailing colons and then remove the whole line if VPATH becomes empty
14173 # (actually we leave an empty line to preserve line numbers).
14174 if test "x$srcdir" = x.; then
14175 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14176 s/:*\$(srcdir):*/:/;
14177 s/:*\${srcdir}:*/:/;
14178 s/:*@srcdir@:*/:/;
14179 s/^\([^=]*=[ ]*\):*/\1/;
14180 s/:*$//;
14181 s/^[^=]*=[ ]*$//;
14182 }'
14183 fi
14184
14185 DEFS=-DHAVE_CONFIG_H
14186
14187 ac_libobjs=
14188 ac_ltlibobjs=
14189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14190 # 1. Remove the extension, and $U if already installed.
14191 ac_i=`echo "$ac_i" |
14192 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14193 # 2. Add them.
14194 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14195 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14196 done
14197 LIBOBJS=$ac_libobjs
14198
14199 LTLIBOBJS=$ac_ltlibobjs
14200
14201
14202 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14203 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14204 Usually this means the macro was only invoked conditionally." >&5
14205 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14206 Usually this means the macro was only invoked conditionally." >&2;}
14207 { (exit 1); exit 1; }; }
14208 fi
14209 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14210 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14211 Usually this means the macro was only invoked conditionally." >&5
14212 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14213 Usually this means the macro was only invoked conditionally." >&2;}
14214 { (exit 1); exit 1; }; }
14215 fi
14216 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14217 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14218 Usually this means the macro was only invoked conditionally." >&5
14219 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14220 Usually this means the macro was only invoked conditionally." >&2;}
14221 { (exit 1); exit 1; }; }
14222 fi
14223 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14224 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14225 Usually this means the macro was only invoked conditionally." >&5
14226 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14227 Usually this means the macro was only invoked conditionally." >&2;}
14228 { (exit 1); exit 1; }; }
14229 fi
14230
14231 : ${CONFIG_STATUS=./config.status}
14232 ac_clean_files_save=$ac_clean_files
14233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14234 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14235 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14236 cat >$CONFIG_STATUS <<_ACEOF
14237 #! $SHELL
14238 # Generated by $as_me.
14239 # Run this file to recreate the current configuration.
14240 # Compiler output produced by configure, useful for debugging
14241 # configure, is in config.log if it exists.
14242
14243 debug=false
14244 ac_cs_recheck=false
14245 ac_cs_silent=false
14246 SHELL=\${CONFIG_SHELL-$SHELL}
14247 _ACEOF
14248
14249 cat >>$CONFIG_STATUS <<\_ACEOF
14250 ## --------------------- ##
14251 ## M4sh Initialization. ##
14252 ## --------------------- ##
14253
14254 # Be Bourne compatible
14255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14256 emulate sh
14257 NULLCMD=:
14258 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14259 # is contrary to our usage. Disable this feature.
14260 alias -g '${1+"$@"}'='"$@"'
14261 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14262 set -o posix
14263 fi
14264 DUALCASE=1; export DUALCASE # for MKS sh
14265
14266 # Support unset when possible.
14267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14268 as_unset=unset
14269 else
14270 as_unset=false
14271 fi
14272
14273
14274 # Work around bugs in pre-3.0 UWIN ksh.
14275 $as_unset ENV MAIL MAILPATH
14276 PS1='$ '
14277 PS2='> '
14278 PS4='+ '
14279
14280 # NLS nuisances.
14281 for as_var in \
14282 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14283 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14284 LC_TELEPHONE LC_TIME
14285 do
14286 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14287 eval $as_var=C; export $as_var
14288 else
14289 $as_unset $as_var
14290 fi
14291 done
14292
14293 # Required to use basename.
14294 if expr a : '\(a\)' >/dev/null 2>&1; then
14295 as_expr=expr
14296 else
14297 as_expr=false
14298 fi
14299
14300 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14301 as_basename=basename
14302 else
14303 as_basename=false
14304 fi
14305
14306
14307 # Name of the executable.
14308 as_me=`$as_basename "$0" ||
14309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14310 X"$0" : 'X\(//\)$' \| \
14311 X"$0" : 'X\(/\)$' \| \
14312 . : '\(.\)' 2>/dev/null ||
14313 echo X/"$0" |
14314 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14315 /^X\/\(\/\/\)$/{ s//\1/; q; }
14316 /^X\/\(\/\).*/{ s//\1/; q; }
14317 s/.*/./; q'`
14318
14319
14320 # PATH needs CR, and LINENO needs CR and PATH.
14321 # Avoid depending upon Character Ranges.
14322 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14323 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14324 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14325 as_cr_digits='0123456789'
14326 as_cr_alnum=$as_cr_Letters$as_cr_digits
14327
14328 # The user is always right.
14329 if test "${PATH_SEPARATOR+set}" != set; then
14330 echo "#! /bin/sh" >conf$$.sh
14331 echo "exit 0" >>conf$$.sh
14332 chmod +x conf$$.sh
14333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14334 PATH_SEPARATOR=';'
14335 else
14336 PATH_SEPARATOR=:
14337 fi
14338 rm -f conf$$.sh
14339 fi
14340
14341
14342 as_lineno_1=$LINENO
14343 as_lineno_2=$LINENO
14344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14345 test "x$as_lineno_1" != "x$as_lineno_2" &&
14346 test "x$as_lineno_3" = "x$as_lineno_2" || {
14347 # Find who we are. Look in the path if we contain no path at all
14348 # relative or not.
14349 case $0 in
14350 *[\\/]* ) as_myself=$0 ;;
14351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14353 do
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14357 done
14358
14359 ;;
14360 esac
14361 # We did not find ourselves, most probably we were run as `sh COMMAND'
14362 # in which case we are not to be found in the path.
14363 if test "x$as_myself" = x; then
14364 as_myself=$0
14365 fi
14366 if test ! -f "$as_myself"; then
14367 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14368 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14369 { (exit 1); exit 1; }; }
14370 fi
14371 case $CONFIG_SHELL in
14372 '')
14373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14374 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14375 do
14376 IFS=$as_save_IFS
14377 test -z "$as_dir" && as_dir=.
14378 for as_base in sh bash ksh sh5; do
14379 case $as_dir in
14380 /*)
14381 if ("$as_dir/$as_base" -c '
14382 as_lineno_1=$LINENO
14383 as_lineno_2=$LINENO
14384 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14385 test "x$as_lineno_1" != "x$as_lineno_2" &&
14386 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14387 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14388 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14389 CONFIG_SHELL=$as_dir/$as_base
14390 export CONFIG_SHELL
14391 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14392 fi;;
14393 esac
14394 done
14395 done
14396 ;;
14397 esac
14398
14399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14400 # uniformly replaced by the line number. The first 'sed' inserts a
14401 # line-number line before each line; the second 'sed' does the real
14402 # work. The second script uses 'N' to pair each line-number line
14403 # with the numbered line, and appends trailing '-' during
14404 # substitution so that $LINENO is not a special case at line end.
14405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14406 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14407 sed '=' <$as_myself |
14408 sed '
14409 N
14410 s,$,-,
14411 : loop
14412 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14413 t loop
14414 s,-$,,
14415 s,^['$as_cr_digits']*\n,,
14416 ' >$as_me.lineno &&
14417 chmod +x $as_me.lineno ||
14418 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14419 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14420 { (exit 1); exit 1; }; }
14421
14422 # Don't try to exec as it changes $[0], causing all sort of problems
14423 # (the dirname of $[0] is not the place where we might find the
14424 # original and so on. Autoconf is especially sensible to this).
14425 . ./$as_me.lineno
14426 # Exit status is that of the last command.
14427 exit
14428 }
14429
14430
14431 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14432 *c*,-n*) ECHO_N= ECHO_C='
14433 ' ECHO_T=' ' ;;
14434 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14435 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14436 esac
14437
14438 if expr a : '\(a\)' >/dev/null 2>&1; then
14439 as_expr=expr
14440 else
14441 as_expr=false
14442 fi
14443
14444 rm -f conf$$ conf$$.exe conf$$.file
14445 echo >conf$$.file
14446 if ln -s conf$$.file conf$$ 2>/dev/null; then
14447 # We could just check for DJGPP; but this test a) works b) is more generic
14448 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14449 if test -f conf$$.exe; then
14450 # Don't use ln at all; we don't have any links
14451 as_ln_s='cp -p'
14452 else
14453 as_ln_s='ln -s'
14454 fi
14455 elif ln conf$$.file conf$$ 2>/dev/null; then
14456 as_ln_s=ln
14457 else
14458 as_ln_s='cp -p'
14459 fi
14460 rm -f conf$$ conf$$.exe conf$$.file
14461
14462 if mkdir -p . 2>/dev/null; then
14463 as_mkdir_p=:
14464 else
14465 test -d ./-p && rmdir ./-p
14466 as_mkdir_p=false
14467 fi
14468
14469 as_executable_p="test -f"
14470
14471 # Sed expression to map a string onto a valid CPP name.
14472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14473
14474 # Sed expression to map a string onto a valid variable name.
14475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14476
14477
14478 # IFS
14479 # We need space, tab and new line, in precisely that order.
14480 as_nl='
14481 '
14482 IFS=" $as_nl"
14483
14484 # CDPATH.
14485 $as_unset CDPATH
14486
14487 exec 6>&1
14488
14489 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14490 # report actual input values of CONFIG_FILES etc. instead of their
14491 # values after options handling. Logging --version etc. is OK.
14492 exec 5>>config.log
14493 {
14494 echo
14495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14496 ## Running $as_me. ##
14497 _ASBOX
14498 } >&5
14499 cat >&5 <<_CSEOF
14500
14501 This file was extended by $as_me, which was
14502 generated by GNU Autoconf 2.59. Invocation command line was
14503
14504 CONFIG_FILES = $CONFIG_FILES
14505 CONFIG_HEADERS = $CONFIG_HEADERS
14506 CONFIG_LINKS = $CONFIG_LINKS
14507 CONFIG_COMMANDS = $CONFIG_COMMANDS
14508 $ $0 $@
14509
14510 _CSEOF
14511 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14512 echo >&5
14513 _ACEOF
14514
14515 # Files that config.status was made for.
14516 if test -n "$ac_config_files"; then
14517 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14518 fi
14519
14520 if test -n "$ac_config_headers"; then
14521 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14522 fi
14523
14524 if test -n "$ac_config_links"; then
14525 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14526 fi
14527
14528 if test -n "$ac_config_commands"; then
14529 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14530 fi
14531
14532 cat >>$CONFIG_STATUS <<\_ACEOF
14533
14534 ac_cs_usage="\
14535 \`$as_me' instantiates files from templates according to the
14536 current configuration.
14537
14538 Usage: $0 [OPTIONS] [FILE]...
14539
14540 -h, --help print this help, then exit
14541 -V, --version print version number, then exit
14542 -q, --quiet do not print progress messages
14543 -d, --debug don't remove temporary files
14544 --recheck update $as_me by reconfiguring in the same conditions
14545 --file=FILE[:TEMPLATE]
14546 instantiate the configuration file FILE
14547 --header=FILE[:TEMPLATE]
14548 instantiate the configuration header FILE
14549
14550 Configuration files:
14551 $config_files
14552
14553 Configuration headers:
14554 $config_headers
14555
14556 Configuration commands:
14557 $config_commands
14558
14559 Report bugs to <bug-autoconf@gnu.org>."
14560 _ACEOF
14561
14562 cat >>$CONFIG_STATUS <<_ACEOF
14563 ac_cs_version="\\
14564 config.status
14565 configured by $0, generated by GNU Autoconf 2.59,
14566 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14567
14568 Copyright (C) 2003 Free Software Foundation, Inc.
14569 This config.status script is free software; the Free Software Foundation
14570 gives unlimited permission to copy, distribute and modify it."
14571 srcdir=$srcdir
14572 INSTALL="$INSTALL"
14573 _ACEOF
14574
14575 cat >>$CONFIG_STATUS <<\_ACEOF
14576 # If no file are specified by the user, then we need to provide default
14577 # value. By we need to know if files were specified by the user.
14578 ac_need_defaults=:
14579 while test $# != 0
14580 do
14581 case $1 in
14582 --*=*)
14583 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14584 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14585 ac_shift=:
14586 ;;
14587 -*)
14588 ac_option=$1
14589 ac_optarg=$2
14590 ac_shift=shift
14591 ;;
14592 *) # This is not an option, so the user has probably given explicit
14593 # arguments.
14594 ac_option=$1
14595 ac_need_defaults=false;;
14596 esac
14597
14598 case $ac_option in
14599 # Handling of the options.
14600 _ACEOF
14601 cat >>$CONFIG_STATUS <<\_ACEOF
14602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14603 ac_cs_recheck=: ;;
14604 --version | --vers* | -V )
14605 echo "$ac_cs_version"; exit 0 ;;
14606 --he | --h)
14607 # Conflict between --help and --header
14608 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14609 Try \`$0 --help' for more information." >&5
14610 echo "$as_me: error: ambiguous option: $1
14611 Try \`$0 --help' for more information." >&2;}
14612 { (exit 1); exit 1; }; };;
14613 --help | --hel | -h )
14614 echo "$ac_cs_usage"; exit 0 ;;
14615 --debug | --d* | -d )
14616 debug=: ;;
14617 --file | --fil | --fi | --f )
14618 $ac_shift
14619 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14620 ac_need_defaults=false;;
14621 --header | --heade | --head | --hea )
14622 $ac_shift
14623 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14624 ac_need_defaults=false;;
14625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14626 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14627 ac_cs_silent=: ;;
14628
14629 # This is an error.
14630 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14631 Try \`$0 --help' for more information." >&5
14632 echo "$as_me: error: unrecognized option: $1
14633 Try \`$0 --help' for more information." >&2;}
14634 { (exit 1); exit 1; }; } ;;
14635
14636 *) ac_config_targets="$ac_config_targets $1" ;;
14637
14638 esac
14639 shift
14640 done
14641
14642 ac_configure_extra_args=
14643
14644 if $ac_cs_silent; then
14645 exec 6>/dev/null
14646 ac_configure_extra_args="$ac_configure_extra_args --silent"
14647 fi
14648
14649 _ACEOF
14650 cat >>$CONFIG_STATUS <<_ACEOF
14651 if \$ac_cs_recheck; then
14652 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14653 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14654 fi
14655
14656 _ACEOF
14657
14658 cat >>$CONFIG_STATUS <<_ACEOF
14659 #
14660 # INIT-COMMANDS section.
14661 #
14662
14663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14664
14665
14666 # The HP-UX ksh and POSIX shell print the target directory to stdout
14667 # if CDPATH is set.
14668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14669
14670 sed_quote_subst='$sed_quote_subst'
14671 double_quote_subst='$double_quote_subst'
14672 delay_variable_subst='$delay_variable_subst'
14673 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14674 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14675 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14676 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14677 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14678 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14679 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14680 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14681 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14682 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14683 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14684 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14685 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14686 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14687 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14688 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14689 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14690 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14691 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14692 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14693 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14694 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14695 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14696 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14697 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14698 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14699 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14700 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14701 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14702 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14703 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14704 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14705 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14706 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14707 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14708 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14709 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14710 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14711 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14712 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14713 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14714 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14715 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14716 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"`'
14717 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14718 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14719 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14720 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14721 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14722 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14723 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14724 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14725 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14726 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14727 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14728 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14729 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14730 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14731 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14732 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14733 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14734 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14735 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14736 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14737 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14738 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14739 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14740 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14741 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14742 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14743 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14744 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14745 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14746 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14747 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14748 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14749 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14750 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14751 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14752 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14753 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14754 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14755 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14756 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14757 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14758 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14759 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14760 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14761 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14762 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14763 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14764 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14765 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14766 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14767 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14768 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14769 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14770 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14771 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14773 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14774 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14775 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14776 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14777 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14778 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14779 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14780 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14781 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14782 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14783 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14784
14785 LTCC='$LTCC'
14786 LTCFLAGS='$LTCFLAGS'
14787 compiler='$compiler_DEFAULT'
14788
14789 # Quote evaled strings.
14790 for var in SED \
14791 GREP \
14792 EGREP \
14793 FGREP \
14794 LD \
14795 NM \
14796 LN_S \
14797 lt_SP2NL \
14798 lt_NL2SP \
14799 reload_flag \
14800 deplibs_check_method \
14801 file_magic_cmd \
14802 AR \
14803 AR_FLAGS \
14804 STRIP \
14805 RANLIB \
14806 CC \
14807 CFLAGS \
14808 compiler \
14809 lt_cv_sys_global_symbol_pipe \
14810 lt_cv_sys_global_symbol_to_cdecl \
14811 lt_cv_sys_global_symbol_to_c_name_address \
14812 SHELL \
14813 ECHO \
14814 lt_prog_compiler_no_builtin_flag \
14815 lt_prog_compiler_wl \
14816 lt_prog_compiler_pic \
14817 lt_prog_compiler_static \
14818 lt_cv_prog_compiler_c_o \
14819 need_locks \
14820 shrext_cmds \
14821 export_dynamic_flag_spec \
14822 whole_archive_flag_spec \
14823 compiler_needs_object \
14824 with_gnu_ld \
14825 allow_undefined_flag \
14826 no_undefined_flag \
14827 hardcode_libdir_flag_spec \
14828 hardcode_libdir_flag_spec_ld \
14829 hardcode_libdir_separator \
14830 fix_srcfile_path \
14831 exclude_expsyms \
14832 include_expsyms \
14833 file_list_spec \
14834 variables_saved_for_relink \
14835 libname_spec \
14836 library_names_spec \
14837 soname_spec \
14838 finish_eval \
14839 old_striplib \
14840 striplib; do
14841 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14842 *[\\\\\\\`\\"\\\$]*)
14843 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14844 ;;
14845 *)
14846 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14847 ;;
14848 esac
14849 done
14850
14851 # Double-quote double-evaled strings.
14852 for var in reload_cmds \
14853 old_postinstall_cmds \
14854 old_postuninstall_cmds \
14855 old_archive_cmds \
14856 extract_expsyms_cmds \
14857 old_archive_from_new_cmds \
14858 old_archive_from_expsyms_cmds \
14859 archive_cmds \
14860 archive_expsym_cmds \
14861 module_cmds \
14862 module_expsym_cmds \
14863 export_symbols_cmds \
14864 prelink_cmds \
14865 postinstall_cmds \
14866 postuninstall_cmds \
14867 finish_cmds \
14868 sys_lib_search_path_spec \
14869 sys_lib_dlsearch_path_spec; do
14870 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14871 *[\\\\\\\`\\"\\\$]*)
14872 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14873 ;;
14874 *)
14875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14876 ;;
14877 esac
14878 done
14879
14880 # Fix-up fallback echo if it was mangled by the above quoting rules.
14881 case \$lt_ECHO in
14882 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14883 ;;
14884 esac
14885
14886 ac_aux_dir='$ac_aux_dir'
14887 xsi_shell='$xsi_shell'
14888 lt_shell_append='$lt_shell_append'
14889
14890 # See if we are running on zsh, and set the options which allow our
14891 # commands through without removal of \ escapes INIT.
14892 if test -n "\${ZSH_VERSION+set}" ; then
14893 setopt NO_GLOB_SUBST
14894 fi
14895
14896
14897 PACKAGE='$PACKAGE'
14898 VERSION='$VERSION'
14899 TIMESTAMP='$TIMESTAMP'
14900 RM='$RM'
14901 ofile='$ofile'
14902
14903
14904
14905 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14906 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14907 # from automake.
14908 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14909 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14910 LINGUAS="${LINGUAS-%UNSET%}"
14911
14912 target_cpu_type=${target_cpu_type}
14913 cgen_cpu_prefix=${cgen_cpu_prefix}
14914 obj_format=${obj_format}
14915 te_file=${te_file}
14916
14917 _ACEOF
14918
14919
14920
14921 cat >>$CONFIG_STATUS <<\_ACEOF
14922 for ac_config_target in $ac_config_targets
14923 do
14924 case "$ac_config_target" in
14925 # Handling of arguments.
14926 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14927 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14928 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14929 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14930 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14931 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14932 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14933 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14934 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14935 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14936 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14938 { (exit 1); exit 1; }; };;
14939 esac
14940 done
14941
14942 # If the user did not use the arguments to specify the items to instantiate,
14943 # then the envvar interface is used. Set only those that are not.
14944 # We use the long form for the default assignment because of an extremely
14945 # bizarre bug on SunOS 4.1.3.
14946 if $ac_need_defaults; then
14947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14950 fi
14951
14952 # Have a temporary directory for convenience. Make it in the build tree
14953 # simply because there is no reason to put it here, and in addition,
14954 # creating and moving files from /tmp can sometimes cause problems.
14955 # Create a temporary directory, and hook for its removal unless debugging.
14956 $debug ||
14957 {
14958 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14959 trap '{ (exit 1); exit 1; }' 1 2 13 15
14960 }
14961
14962 # Create a (secure) tmp directory for tmp files.
14963
14964 {
14965 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14966 test -n "$tmp" && test -d "$tmp"
14967 } ||
14968 {
14969 tmp=./confstat$$-$RANDOM
14970 (umask 077 && mkdir $tmp)
14971 } ||
14972 {
14973 echo "$me: cannot create a temporary directory in ." >&2
14974 { (exit 1); exit 1; }
14975 }
14976
14977 _ACEOF
14978
14979 cat >>$CONFIG_STATUS <<_ACEOF
14980
14981 #
14982 # CONFIG_FILES section.
14983 #
14984
14985 # No need to generate the scripts if there are no CONFIG_FILES.
14986 # This happens for instance when ./config.status config.h
14987 if test -n "\$CONFIG_FILES"; then
14988 # Protect against being on the right side of a sed subst in config.status.
14989 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14990 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14991 s,@SHELL@,$SHELL,;t t
14992 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14993 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14994 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14995 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14996 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14997 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14998 s,@exec_prefix@,$exec_prefix,;t t
14999 s,@prefix@,$prefix,;t t
15000 s,@program_transform_name@,$program_transform_name,;t t
15001 s,@bindir@,$bindir,;t t
15002 s,@sbindir@,$sbindir,;t t
15003 s,@libexecdir@,$libexecdir,;t t
15004 s,@datadir@,$datadir,;t t
15005 s,@sysconfdir@,$sysconfdir,;t t
15006 s,@sharedstatedir@,$sharedstatedir,;t t
15007 s,@localstatedir@,$localstatedir,;t t
15008 s,@libdir@,$libdir,;t t
15009 s,@includedir@,$includedir,;t t
15010 s,@oldincludedir@,$oldincludedir,;t t
15011 s,@infodir@,$infodir,;t t
15012 s,@mandir@,$mandir,;t t
15013 s,@build_alias@,$build_alias,;t t
15014 s,@host_alias@,$host_alias,;t t
15015 s,@target_alias@,$target_alias,;t t
15016 s,@DEFS@,$DEFS,;t t
15017 s,@ECHO_C@,$ECHO_C,;t t
15018 s,@ECHO_N@,$ECHO_N,;t t
15019 s,@ECHO_T@,$ECHO_T,;t t
15020 s,@LIBS@,$LIBS,;t t
15021 s,@build@,$build,;t t
15022 s,@build_cpu@,$build_cpu,;t t
15023 s,@build_vendor@,$build_vendor,;t t
15024 s,@build_os@,$build_os,;t t
15025 s,@host@,$host,;t t
15026 s,@host_cpu@,$host_cpu,;t t
15027 s,@host_vendor@,$host_vendor,;t t
15028 s,@host_os@,$host_os,;t t
15029 s,@target@,$target,;t t
15030 s,@target_cpu@,$target_cpu,;t t
15031 s,@target_vendor@,$target_vendor,;t t
15032 s,@target_os@,$target_os,;t t
15033 s,@CC@,$CC,;t t
15034 s,@CFLAGS@,$CFLAGS,;t t
15035 s,@LDFLAGS@,$LDFLAGS,;t t
15036 s,@CPPFLAGS@,$CPPFLAGS,;t t
15037 s,@ac_ct_CC@,$ac_ct_CC,;t t
15038 s,@EXEEXT@,$EXEEXT,;t t
15039 s,@OBJEXT@,$OBJEXT,;t t
15040 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15041 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15042 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15043 s,@CYGPATH_W@,$CYGPATH_W,;t t
15044 s,@PACKAGE@,$PACKAGE,;t t
15045 s,@VERSION@,$VERSION,;t t
15046 s,@ACLOCAL@,$ACLOCAL,;t t
15047 s,@AUTOCONF@,$AUTOCONF,;t t
15048 s,@AUTOMAKE@,$AUTOMAKE,;t t
15049 s,@AUTOHEADER@,$AUTOHEADER,;t t
15050 s,@MAKEINFO@,$MAKEINFO,;t t
15051 s,@install_sh@,$install_sh,;t t
15052 s,@STRIP@,$STRIP,;t t
15053 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15054 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15055 s,@mkdir_p@,$mkdir_p,;t t
15056 s,@AWK@,$AWK,;t t
15057 s,@SET_MAKE@,$SET_MAKE,;t t
15058 s,@am__leading_dot@,$am__leading_dot,;t t
15059 s,@AMTAR@,$AMTAR,;t t
15060 s,@am__tar@,$am__tar,;t t
15061 s,@am__untar@,$am__untar,;t t
15062 s,@DEPDIR@,$DEPDIR,;t t
15063 s,@am__include@,$am__include,;t t
15064 s,@am__quote@,$am__quote,;t t
15065 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15066 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15067 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15068 s,@CCDEPMODE@,$CCDEPMODE,;t t
15069 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15070 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15071 s,@CPP@,$CPP,;t t
15072 s,@EGREP@,$EGREP,;t t
15073 s,@LIBTOOL@,$LIBTOOL,;t t
15074 s,@SED@,$SED,;t t
15075 s,@FGREP@,$FGREP,;t t
15076 s,@GREP@,$GREP,;t t
15077 s,@LD@,$LD,;t t
15078 s,@DUMPBIN@,$DUMPBIN,;t t
15079 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15080 s,@NM@,$NM,;t t
15081 s,@LN_S@,$LN_S,;t t
15082 s,@AR@,$AR,;t t
15083 s,@ac_ct_AR@,$ac_ct_AR,;t t
15084 s,@RANLIB@,$RANLIB,;t t
15085 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15086 s,@lt_ECHO@,$lt_ECHO,;t t
15087 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15088 s,@NO_WERROR@,$NO_WERROR,;t t
15089 s,@GDBINIT@,$GDBINIT,;t t
15090 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
15091 s,@extra_objects@,$extra_objects,;t t
15092 s,@target_cpu_type@,$target_cpu_type,;t t
15093 s,@obj_format@,$obj_format,;t t
15094 s,@te_file@,$te_file,;t t
15095 s,@install_tooldir@,$install_tooldir,;t t
15096 s,@atof@,$atof,;t t
15097 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
15098 s,@YACC@,$YACC,;t t
15099 s,@LEX@,$LEX,;t t
15100 s,@LEXLIB@,$LEXLIB,;t t
15101 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15102 s,@USE_NLS@,$USE_NLS,;t t
15103 s,@LIBINTL@,$LIBINTL,;t t
15104 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15105 s,@INCINTL@,$INCINTL,;t t
15106 s,@XGETTEXT@,$XGETTEXT,;t t
15107 s,@GMSGFMT@,$GMSGFMT,;t t
15108 s,@POSUB@,$POSUB,;t t
15109 s,@CATALOGS@,$CATALOGS,;t t
15110 s,@DATADIRNAME@,$DATADIRNAME,;t t
15111 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15112 s,@GENCAT@,$GENCAT,;t t
15113 s,@CATOBJEXT@,$CATOBJEXT,;t t
15114 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15115 s,@MSGFMT@,$MSGFMT,;t t
15116 s,@MSGMERGE@,$MSGMERGE,;t t
15117 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15118 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15119 s,@MAINT@,$MAINT,;t t
15120 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15121 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15122 s,@ALLOCA@,$ALLOCA,;t t
15123 s,@LIBM@,$LIBM,;t t
15124 s,@datarootdir@,$datarootdir,;t t
15125 s,@docdir@,$docdir,;t t
15126 s,@htmldir@,$htmldir,;t t
15127 s,@LIBOBJS@,$LIBOBJS,;t t
15128 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15129 CEOF
15130
15131 _ACEOF
15132
15133 cat >>$CONFIG_STATUS <<\_ACEOF
15134 # Split the substitutions into bite-sized pieces for seds with
15135 # small command number limits, like on Digital OSF/1 and HP-UX.
15136 ac_max_sed_lines=48
15137 ac_sed_frag=1 # Number of current file.
15138 ac_beg=1 # First line for current file.
15139 ac_end=$ac_max_sed_lines # Line after last line for current file.
15140 ac_more_lines=:
15141 ac_sed_cmds=
15142 while $ac_more_lines; do
15143 if test $ac_beg -gt 1; then
15144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15145 else
15146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15147 fi
15148 if test ! -s $tmp/subs.frag; then
15149 ac_more_lines=false
15150 else
15151 # The purpose of the label and of the branching condition is to
15152 # speed up the sed processing (if there are no `@' at all, there
15153 # is no need to browse any of the substitutions).
15154 # These are the two extra sed commands mentioned above.
15155 (echo ':t
15156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15157 if test -z "$ac_sed_cmds"; then
15158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15159 else
15160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15161 fi
15162 ac_sed_frag=`expr $ac_sed_frag + 1`
15163 ac_beg=$ac_end
15164 ac_end=`expr $ac_end + $ac_max_sed_lines`
15165 fi
15166 done
15167 if test -z "$ac_sed_cmds"; then
15168 ac_sed_cmds=cat
15169 fi
15170 fi # test -n "$CONFIG_FILES"
15171
15172 _ACEOF
15173 cat >>$CONFIG_STATUS <<\_ACEOF
15174 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15176 case $ac_file in
15177 - | *:- | *:-:* ) # input from stdin
15178 cat >$tmp/stdin
15179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15183 * ) ac_file_in=$ac_file.in ;;
15184 esac
15185
15186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15189 X"$ac_file" : 'X\(//\)[^/]' \| \
15190 X"$ac_file" : 'X\(//\)$' \| \
15191 X"$ac_file" : 'X\(/\)' \| \
15192 . : '\(.\)' 2>/dev/null ||
15193 echo X"$ac_file" |
15194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15196 /^X\(\/\/\)$/{ s//\1/; q; }
15197 /^X\(\/\).*/{ s//\1/; q; }
15198 s/.*/./; q'`
15199 { if $as_mkdir_p; then
15200 mkdir -p "$ac_dir"
15201 else
15202 as_dir="$ac_dir"
15203 as_dirs=
15204 while test ! -d "$as_dir"; do
15205 as_dirs="$as_dir $as_dirs"
15206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15208 X"$as_dir" : 'X\(//\)[^/]' \| \
15209 X"$as_dir" : 'X\(//\)$' \| \
15210 X"$as_dir" : 'X\(/\)' \| \
15211 . : '\(.\)' 2>/dev/null ||
15212 echo X"$as_dir" |
15213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15215 /^X\(\/\/\)$/{ s//\1/; q; }
15216 /^X\(\/\).*/{ s//\1/; q; }
15217 s/.*/./; q'`
15218 done
15219 test ! -n "$as_dirs" || mkdir $as_dirs
15220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15222 { (exit 1); exit 1; }; }; }
15223
15224 ac_builddir=.
15225
15226 if test "$ac_dir" != .; then
15227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15228 # A "../" for each directory in $ac_dir_suffix.
15229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15230 else
15231 ac_dir_suffix= ac_top_builddir=
15232 fi
15233
15234 case $srcdir in
15235 .) # No --srcdir option. We are building in place.
15236 ac_srcdir=.
15237 if test -z "$ac_top_builddir"; then
15238 ac_top_srcdir=.
15239 else
15240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15241 fi ;;
15242 [\\/]* | ?:[\\/]* ) # Absolute path.
15243 ac_srcdir=$srcdir$ac_dir_suffix;
15244 ac_top_srcdir=$srcdir ;;
15245 *) # Relative path.
15246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15248 esac
15249
15250 # Do not use `cd foo && pwd` to compute absolute paths, because
15251 # the directories may not exist.
15252 case `pwd` in
15253 .) ac_abs_builddir="$ac_dir";;
15254 *)
15255 case "$ac_dir" in
15256 .) ac_abs_builddir=`pwd`;;
15257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15259 esac;;
15260 esac
15261 case $ac_abs_builddir in
15262 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15263 *)
15264 case ${ac_top_builddir}. in
15265 .) ac_abs_top_builddir=$ac_abs_builddir;;
15266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15268 esac;;
15269 esac
15270 case $ac_abs_builddir in
15271 .) ac_abs_srcdir=$ac_srcdir;;
15272 *)
15273 case $ac_srcdir in
15274 .) ac_abs_srcdir=$ac_abs_builddir;;
15275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15277 esac;;
15278 esac
15279 case $ac_abs_builddir in
15280 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15281 *)
15282 case $ac_top_srcdir in
15283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15286 esac;;
15287 esac
15288
15289
15290 case $INSTALL in
15291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15292 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15293 esac
15294
15295 if test x"$ac_file" != x-; then
15296 { echo "$as_me:$LINENO: creating $ac_file" >&5
15297 echo "$as_me: creating $ac_file" >&6;}
15298 rm -f "$ac_file"
15299 fi
15300 # Let's still pretend it is `configure' which instantiates (i.e., don't
15301 # use $as_me), people would be surprised to read:
15302 # /* config.h. Generated by config.status. */
15303 if test x"$ac_file" = x-; then
15304 configure_input=
15305 else
15306 configure_input="$ac_file. "
15307 fi
15308 configure_input=$configure_input"Generated from `echo $ac_file_in |
15309 sed 's,.*/,,'` by configure."
15310
15311 # First look for the input files in the build tree, otherwise in the
15312 # src tree.
15313 ac_file_inputs=`IFS=:
15314 for f in $ac_file_in; do
15315 case $f in
15316 -) echo $tmp/stdin ;;
15317 [\\/$]*)
15318 # Absolute (can't be DOS-style, as IFS=:)
15319 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15320 echo "$as_me: error: cannot find input file: $f" >&2;}
15321 { (exit 1); exit 1; }; }
15322 echo "$f";;
15323 *) # Relative
15324 if test -f "$f"; then
15325 # Build tree
15326 echo "$f"
15327 elif test -f "$srcdir/$f"; then
15328 # Source tree
15329 echo "$srcdir/$f"
15330 else
15331 # /dev/null tree
15332 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15333 echo "$as_me: error: cannot find input file: $f" >&2;}
15334 { (exit 1); exit 1; }; }
15335 fi;;
15336 esac
15337 done` || { (exit 1); exit 1; }
15338 _ACEOF
15339 cat >>$CONFIG_STATUS <<_ACEOF
15340 sed "$ac_vpsub
15341 $extrasub
15342 _ACEOF
15343 cat >>$CONFIG_STATUS <<\_ACEOF
15344 :t
15345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15346 s,@configure_input@,$configure_input,;t t
15347 s,@srcdir@,$ac_srcdir,;t t
15348 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15349 s,@top_srcdir@,$ac_top_srcdir,;t t
15350 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15351 s,@builddir@,$ac_builddir,;t t
15352 s,@abs_builddir@,$ac_abs_builddir,;t t
15353 s,@top_builddir@,$ac_top_builddir,;t t
15354 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15355 s,@INSTALL@,$ac_INSTALL,;t t
15356 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15357 rm -f $tmp/stdin
15358 if test x"$ac_file" != x-; then
15359 mv $tmp/out $ac_file
15360 else
15361 cat $tmp/out
15362 rm -f $tmp/out
15363 fi
15364
15365 done
15366 _ACEOF
15367 cat >>$CONFIG_STATUS <<\_ACEOF
15368
15369 #
15370 # CONFIG_HEADER section.
15371 #
15372
15373 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15374 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15375 #
15376 # ac_d sets the value in "#define NAME VALUE" lines.
15377 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15378 ac_dB='[ ].*$,\1#\2'
15379 ac_dC=' '
15380 ac_dD=',;t'
15381 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15382 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15383 ac_uB='$,\1#\2define\3'
15384 ac_uC=' '
15385 ac_uD=',;t'
15386
15387 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15389 case $ac_file in
15390 - | *:- | *:-:* ) # input from stdin
15391 cat >$tmp/stdin
15392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15396 * ) ac_file_in=$ac_file.in ;;
15397 esac
15398
15399 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15400 echo "$as_me: creating $ac_file" >&6;}
15401
15402 # First look for the input files in the build tree, otherwise in the
15403 # src tree.
15404 ac_file_inputs=`IFS=:
15405 for f in $ac_file_in; do
15406 case $f in
15407 -) echo $tmp/stdin ;;
15408 [\\/$]*)
15409 # Absolute (can't be DOS-style, as IFS=:)
15410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15411 echo "$as_me: error: cannot find input file: $f" >&2;}
15412 { (exit 1); exit 1; }; }
15413 # Do quote $f, to prevent DOS paths from being IFS'd.
15414 echo "$f";;
15415 *) # Relative
15416 if test -f "$f"; then
15417 # Build tree
15418 echo "$f"
15419 elif test -f "$srcdir/$f"; then
15420 # Source tree
15421 echo "$srcdir/$f"
15422 else
15423 # /dev/null tree
15424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15425 echo "$as_me: error: cannot find input file: $f" >&2;}
15426 { (exit 1); exit 1; }; }
15427 fi;;
15428 esac
15429 done` || { (exit 1); exit 1; }
15430 # Remove the trailing spaces.
15431 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15432
15433 _ACEOF
15434
15435 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15436 # `conftest.undefs', that substitutes the proper values into
15437 # config.h.in to produce config.h. The first handles `#define'
15438 # templates, and the second `#undef' templates.
15439 # And first: Protect against being on the right side of a sed subst in
15440 # config.status. Protect against being in an unquoted here document
15441 # in config.status.
15442 rm -f conftest.defines conftest.undefs
15443 # Using a here document instead of a string reduces the quoting nightmare.
15444 # Putting comments in sed scripts is not portable.
15445 #
15446 # `end' is used to avoid that the second main sed command (meant for
15447 # 0-ary CPP macros) applies to n-ary macro definitions.
15448 # See the Autoconf documentation for `clear'.
15449 cat >confdef2sed.sed <<\_ACEOF
15450 s/[\\&,]/\\&/g
15451 s,[\\$`],\\&,g
15452 t clear
15453 : clear
15454 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15455 t end
15456 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15457 : end
15458 _ACEOF
15459 # If some macros were called several times there might be several times
15460 # the same #defines, which is useless. Nevertheless, we may not want to
15461 # sort them, since we want the *last* AC-DEFINE to be honored.
15462 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15463 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15464 rm -f confdef2sed.sed
15465
15466 # This sed command replaces #undef with comments. This is necessary, for
15467 # example, in the case of _POSIX_SOURCE, which is predefined and required
15468 # on some systems where configure will not decide to define it.
15469 cat >>conftest.undefs <<\_ACEOF
15470 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15471 _ACEOF
15472
15473 # Break up conftest.defines because some shells have a limit on the size
15474 # of here documents, and old seds have small limits too (100 cmds).
15475 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15476 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15477 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15478 echo ' :' >>$CONFIG_STATUS
15479 rm -f conftest.tail
15480 while grep . conftest.defines >/dev/null
15481 do
15482 # Write a limited-size here document to $tmp/defines.sed.
15483 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15484 # Speed up: don't consider the non `#define' lines.
15485 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15486 # Work around the forget-to-reset-the-flag bug.
15487 echo 't clr' >>$CONFIG_STATUS
15488 echo ': clr' >>$CONFIG_STATUS
15489 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15490 echo 'CEOF
15491 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15492 rm -f $tmp/in
15493 mv $tmp/out $tmp/in
15494 ' >>$CONFIG_STATUS
15495 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15496 rm -f conftest.defines
15497 mv conftest.tail conftest.defines
15498 done
15499 rm -f conftest.defines
15500 echo ' fi # grep' >>$CONFIG_STATUS
15501 echo >>$CONFIG_STATUS
15502
15503 # Break up conftest.undefs because some shells have a limit on the size
15504 # of here documents, and old seds have small limits too (100 cmds).
15505 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15506 rm -f conftest.tail
15507 while grep . conftest.undefs >/dev/null
15508 do
15509 # Write a limited-size here document to $tmp/undefs.sed.
15510 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15511 # Speed up: don't consider the non `#undef'
15512 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15513 # Work around the forget-to-reset-the-flag bug.
15514 echo 't clr' >>$CONFIG_STATUS
15515 echo ': clr' >>$CONFIG_STATUS
15516 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15517 echo 'CEOF
15518 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15519 rm -f $tmp/in
15520 mv $tmp/out $tmp/in
15521 ' >>$CONFIG_STATUS
15522 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15523 rm -f conftest.undefs
15524 mv conftest.tail conftest.undefs
15525 done
15526 rm -f conftest.undefs
15527
15528 cat >>$CONFIG_STATUS <<\_ACEOF
15529 # Let's still pretend it is `configure' which instantiates (i.e., don't
15530 # use $as_me), people would be surprised to read:
15531 # /* config.h. Generated by config.status. */
15532 if test x"$ac_file" = x-; then
15533 echo "/* Generated by configure. */" >$tmp/config.h
15534 else
15535 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15536 fi
15537 cat $tmp/in >>$tmp/config.h
15538 rm -f $tmp/in
15539 if test x"$ac_file" != x-; then
15540 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15541 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15542 echo "$as_me: $ac_file is unchanged" >&6;}
15543 else
15544 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15546 X"$ac_file" : 'X\(//\)[^/]' \| \
15547 X"$ac_file" : 'X\(//\)$' \| \
15548 X"$ac_file" : 'X\(/\)' \| \
15549 . : '\(.\)' 2>/dev/null ||
15550 echo X"$ac_file" |
15551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15553 /^X\(\/\/\)$/{ s//\1/; q; }
15554 /^X\(\/\).*/{ s//\1/; q; }
15555 s/.*/./; q'`
15556 { if $as_mkdir_p; then
15557 mkdir -p "$ac_dir"
15558 else
15559 as_dir="$ac_dir"
15560 as_dirs=
15561 while test ! -d "$as_dir"; do
15562 as_dirs="$as_dir $as_dirs"
15563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15565 X"$as_dir" : 'X\(//\)[^/]' \| \
15566 X"$as_dir" : 'X\(//\)$' \| \
15567 X"$as_dir" : 'X\(/\)' \| \
15568 . : '\(.\)' 2>/dev/null ||
15569 echo X"$as_dir" |
15570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15572 /^X\(\/\/\)$/{ s//\1/; q; }
15573 /^X\(\/\).*/{ s//\1/; q; }
15574 s/.*/./; q'`
15575 done
15576 test ! -n "$as_dirs" || mkdir $as_dirs
15577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15578 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15579 { (exit 1); exit 1; }; }; }
15580
15581 rm -f $ac_file
15582 mv $tmp/config.h $ac_file
15583 fi
15584 else
15585 cat $tmp/config.h
15586 rm -f $tmp/config.h
15587 fi
15588 # Compute $ac_file's index in $config_headers.
15589 _am_stamp_count=1
15590 for _am_header in $config_headers :; do
15591 case $_am_header in
15592 $ac_file | $ac_file:* )
15593 break ;;
15594 * )
15595 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15596 esac
15597 done
15598 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15599 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15600 X$ac_file : 'X\(//\)[^/]' \| \
15601 X$ac_file : 'X\(//\)$' \| \
15602 X$ac_file : 'X\(/\)' \| \
15603 . : '\(.\)' 2>/dev/null ||
15604 echo X$ac_file |
15605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15607 /^X\(\/\/\)$/{ s//\1/; q; }
15608 /^X\(\/\).*/{ s//\1/; q; }
15609 s/.*/./; q'`/stamp-h$_am_stamp_count
15610 done
15611 _ACEOF
15612 cat >>$CONFIG_STATUS <<\_ACEOF
15613
15614 #
15615 # CONFIG_COMMANDS section.
15616 #
15617 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15618 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15619 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15620 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15621 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15622 X"$ac_dest" : 'X\(//\)[^/]' \| \
15623 X"$ac_dest" : 'X\(//\)$' \| \
15624 X"$ac_dest" : 'X\(/\)' \| \
15625 . : '\(.\)' 2>/dev/null ||
15626 echo X"$ac_dest" |
15627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15629 /^X\(\/\/\)$/{ s//\1/; q; }
15630 /^X\(\/\).*/{ s//\1/; q; }
15631 s/.*/./; q'`
15632 { if $as_mkdir_p; then
15633 mkdir -p "$ac_dir"
15634 else
15635 as_dir="$ac_dir"
15636 as_dirs=
15637 while test ! -d "$as_dir"; do
15638 as_dirs="$as_dir $as_dirs"
15639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15641 X"$as_dir" : 'X\(//\)[^/]' \| \
15642 X"$as_dir" : 'X\(//\)$' \| \
15643 X"$as_dir" : 'X\(/\)' \| \
15644 . : '\(.\)' 2>/dev/null ||
15645 echo X"$as_dir" |
15646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15648 /^X\(\/\/\)$/{ s//\1/; q; }
15649 /^X\(\/\).*/{ s//\1/; q; }
15650 s/.*/./; q'`
15651 done
15652 test ! -n "$as_dirs" || mkdir $as_dirs
15653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15654 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15655 { (exit 1); exit 1; }; }; }
15656
15657 ac_builddir=.
15658
15659 if test "$ac_dir" != .; then
15660 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15661 # A "../" for each directory in $ac_dir_suffix.
15662 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15663 else
15664 ac_dir_suffix= ac_top_builddir=
15665 fi
15666
15667 case $srcdir in
15668 .) # No --srcdir option. We are building in place.
15669 ac_srcdir=.
15670 if test -z "$ac_top_builddir"; then
15671 ac_top_srcdir=.
15672 else
15673 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15674 fi ;;
15675 [\\/]* | ?:[\\/]* ) # Absolute path.
15676 ac_srcdir=$srcdir$ac_dir_suffix;
15677 ac_top_srcdir=$srcdir ;;
15678 *) # Relative path.
15679 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15680 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15681 esac
15682
15683 # Do not use `cd foo && pwd` to compute absolute paths, because
15684 # the directories may not exist.
15685 case `pwd` in
15686 .) ac_abs_builddir="$ac_dir";;
15687 *)
15688 case "$ac_dir" in
15689 .) ac_abs_builddir=`pwd`;;
15690 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15691 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15692 esac;;
15693 esac
15694 case $ac_abs_builddir in
15695 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15696 *)
15697 case ${ac_top_builddir}. in
15698 .) ac_abs_top_builddir=$ac_abs_builddir;;
15699 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15700 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15701 esac;;
15702 esac
15703 case $ac_abs_builddir in
15704 .) ac_abs_srcdir=$ac_srcdir;;
15705 *)
15706 case $ac_srcdir in
15707 .) ac_abs_srcdir=$ac_abs_builddir;;
15708 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15709 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15710 esac;;
15711 esac
15712 case $ac_abs_builddir in
15713 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15714 *)
15715 case $ac_top_srcdir in
15716 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15717 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15718 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15719 esac;;
15720 esac
15721
15722
15723 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15724 echo "$as_me: executing $ac_dest commands" >&6;}
15725 case $ac_dest in
15726 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15727 # Strip MF so we end up with the name of the file.
15728 mf=`echo "$mf" | sed -e 's/:.*$//'`
15729 # Check whether this is an Automake generated Makefile or not.
15730 # We used to match only the files named `Makefile.in', but
15731 # some people rename them; so instead we look at the file content.
15732 # Grep'ing the first line is not enough: some people post-process
15733 # each Makefile.in and add a new line on top of each file to say so.
15734 # So let's grep whole file.
15735 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15736 dirpart=`(dirname "$mf") 2>/dev/null ||
15737 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15738 X"$mf" : 'X\(//\)[^/]' \| \
15739 X"$mf" : 'X\(//\)$' \| \
15740 X"$mf" : 'X\(/\)' \| \
15741 . : '\(.\)' 2>/dev/null ||
15742 echo X"$mf" |
15743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15745 /^X\(\/\/\)$/{ s//\1/; q; }
15746 /^X\(\/\).*/{ s//\1/; q; }
15747 s/.*/./; q'`
15748 else
15749 continue
15750 fi
15751 # Extract the definition of DEPDIR, am__include, and am__quote
15752 # from the Makefile without running `make'.
15753 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15754 test -z "$DEPDIR" && continue
15755 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15756 test -z "am__include" && continue
15757 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15758 # When using ansi2knr, U may be empty or an underscore; expand it
15759 U=`sed -n 's/^U = //p' < "$mf"`
15760 # Find all dependency output files, they are included files with
15761 # $(DEPDIR) in their names. We invoke sed twice because it is the
15762 # simplest approach to changing $(DEPDIR) to its actual value in the
15763 # expansion.
15764 for file in `sed -n "
15765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15767 # Make sure the directory exists.
15768 test -f "$dirpart/$file" && continue
15769 fdir=`(dirname "$file") 2>/dev/null ||
15770 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15771 X"$file" : 'X\(//\)[^/]' \| \
15772 X"$file" : 'X\(//\)$' \| \
15773 X"$file" : 'X\(/\)' \| \
15774 . : '\(.\)' 2>/dev/null ||
15775 echo X"$file" |
15776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15778 /^X\(\/\/\)$/{ s//\1/; q; }
15779 /^X\(\/\).*/{ s//\1/; q; }
15780 s/.*/./; q'`
15781 { if $as_mkdir_p; then
15782 mkdir -p $dirpart/$fdir
15783 else
15784 as_dir=$dirpart/$fdir
15785 as_dirs=
15786 while test ! -d "$as_dir"; do
15787 as_dirs="$as_dir $as_dirs"
15788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15790 X"$as_dir" : 'X\(//\)[^/]' \| \
15791 X"$as_dir" : 'X\(//\)$' \| \
15792 X"$as_dir" : 'X\(/\)' \| \
15793 . : '\(.\)' 2>/dev/null ||
15794 echo X"$as_dir" |
15795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15797 /^X\(\/\/\)$/{ s//\1/; q; }
15798 /^X\(\/\).*/{ s//\1/; q; }
15799 s/.*/./; q'`
15800 done
15801 test ! -n "$as_dirs" || mkdir $as_dirs
15802 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15803 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15804 { (exit 1); exit 1; }; }; }
15805
15806 # echo "creating $dirpart/$file"
15807 echo '# dummy' > "$dirpart/$file"
15808 done
15809 done
15810 ;;
15811 libtool )
15812
15813 # See if we are running on zsh, and set the options which allow our
15814 # commands through without removal of \ escapes.
15815 if test -n "${ZSH_VERSION+set}" ; then
15816 setopt NO_GLOB_SUBST
15817 fi
15818
15819 cfgfile="${ofile}T"
15820 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15821 $RM "$cfgfile"
15822
15823 cat <<_LT_EOF >> "$cfgfile"
15824 #! $SHELL
15825
15826 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15827 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15829 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15830 #
15831 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15832 # 2006, 2007 Free Software Foundation, Inc.
15833 #
15834 # This file is part of GNU Libtool:
15835 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15836 #
15837 # This program is free software; you can redistribute it and/or modify
15838 # it under the terms of the GNU General Public License as published by
15839 # the Free Software Foundation; either version 2 of the License, or
15840 # (at your option) any later version.
15841 #
15842 # This program is distributed in the hope that it will be useful, but
15843 # WITHOUT ANY WARRANTY; without even the implied warranty of
15844 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15845 # General Public License for more details.
15846 #
15847 # You should have received a copy of the GNU General Public License
15848 # along with this program; if not, a copy can be downloaded from
15849 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15850 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15851 # MA 02110-1301, USA.
15852 #
15853 # As a special exception to the GNU General Public License, if you
15854 # distribute this file as part of a program that contains a
15855 # configuration script generated by Autoconf, you may include it under
15856 # the same distribution terms that you use for the rest of that program.
15857
15858
15859 # The names of the tagged configurations supported by this script.
15860 available_tags=""
15861
15862 # ### BEGIN LIBTOOL CONFIG
15863
15864 # Which release of libtool.m4 was used?
15865 macro_version=$macro_version
15866 macro_revision=$macro_revision
15867
15868 # Whether or not to build shared libraries.
15869 build_libtool_libs=$enable_shared
15870
15871 # Whether or not to build static libraries.
15872 build_old_libs=$enable_static
15873
15874 # What type of objects to build.
15875 pic_mode=$pic_mode
15876
15877 # Whether or not to optimize for fast installation.
15878 fast_install=$enable_fast_install
15879
15880 # The host system.
15881 host_alias=$host_alias
15882 host=$host
15883 host_os=$host_os
15884
15885 # The build system.
15886 build_alias=$build_alias
15887 build=$build
15888 build_os=$build_os
15889
15890 # A sed program that does not truncate output.
15891 SED=$lt_SED
15892
15893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15894 Xsed="\$SED -e 1s/^X//"
15895
15896 # A grep program that handles long lines.
15897 GREP=$lt_GREP
15898
15899 # An ERE matcher.
15900 EGREP=$lt_EGREP
15901
15902 # A literal string matcher.
15903 FGREP=$lt_FGREP
15904
15905 # A BSD- or MS-compatible name lister.
15906 NM=$lt_NM
15907
15908 # Whether we need soft or hard links.
15909 LN_S=$lt_LN_S
15910
15911 # What is the maximum length of a command?
15912 max_cmd_len=$max_cmd_len
15913
15914 # Object file suffix (normally "o").
15915 objext=$ac_objext
15916
15917 # Executable file suffix (normally "").
15918 exeext=$exeext
15919
15920 # whether the shell understands "unset".
15921 lt_unset=$lt_unset
15922
15923 # turn spaces into newlines.
15924 SP2NL=$lt_lt_SP2NL
15925
15926 # turn newlines into spaces.
15927 NL2SP=$lt_lt_NL2SP
15928
15929 # How to create reloadable object files.
15930 reload_flag=$lt_reload_flag
15931 reload_cmds=$lt_reload_cmds
15932
15933 # Method to check whether dependent libraries are shared objects.
15934 deplibs_check_method=$lt_deplibs_check_method
15935
15936 # Command to use when deplibs_check_method == "file_magic".
15937 file_magic_cmd=$lt_file_magic_cmd
15938
15939 # The archiver.
15940 AR=$lt_AR
15941 AR_FLAGS=$lt_AR_FLAGS
15942
15943 # A symbol stripping program.
15944 STRIP=$lt_STRIP
15945
15946 # Commands used to install an old-style archive.
15947 RANLIB=$lt_RANLIB
15948 old_postinstall_cmds=$lt_old_postinstall_cmds
15949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15950
15951 # A C compiler.
15952 LTCC=$lt_CC
15953
15954 # LTCC compiler flags.
15955 LTCFLAGS=$lt_CFLAGS
15956
15957 # Take the output of nm and produce a listing of raw symbols and C names.
15958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15959
15960 # Transform the output of nm in a proper C declaration.
15961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15962
15963 # Transform the output of nm in a C name address pair.
15964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15965
15966 # The name of the directory that contains temporary libtool files.
15967 objdir=$objdir
15968
15969 # Shell to use when invoking shell scripts.
15970 SHELL=$lt_SHELL
15971
15972 # An echo program that does not interpret backslashes.
15973 ECHO=$lt_ECHO
15974
15975 # Used to examine libraries when file_magic_cmd begins with "file".
15976 MAGIC_CMD=$MAGIC_CMD
15977
15978 # Must we lock files when doing compilation?
15979 need_locks=$lt_need_locks
15980
15981 # Old archive suffix (normally "a").
15982 libext=$libext
15983
15984 # Shared library suffix (normally ".so").
15985 shrext_cmds=$lt_shrext_cmds
15986
15987 # The commands to extract the exported symbol list from a shared archive.
15988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15989
15990 # Variables whose values should be saved in libtool wrapper scripts and
15991 # restored at link time.
15992 variables_saved_for_relink=$lt_variables_saved_for_relink
15993
15994 # Do we need the "lib" prefix for modules?
15995 need_lib_prefix=$need_lib_prefix
15996
15997 # Do we need a version for libraries?
15998 need_version=$need_version
15999
16000 # Library versioning type.
16001 version_type=$version_type
16002
16003 # Shared library runtime path variable.
16004 runpath_var=$runpath_var
16005
16006 # Shared library path variable.
16007 shlibpath_var=$shlibpath_var
16008
16009 # Is shlibpath searched before the hard-coded library search path?
16010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16011
16012 # Format of library name prefix.
16013 libname_spec=$lt_libname_spec
16014
16015 # List of archive names. First name is the real one, the rest are links.
16016 # The last name is the one that the linker finds with -lNAME
16017 library_names_spec=$lt_library_names_spec
16018
16019 # The coded name of the library, if different from the real name.
16020 soname_spec=$lt_soname_spec
16021
16022 # Command to use after installation of a shared archive.
16023 postinstall_cmds=$lt_postinstall_cmds
16024
16025 # Command to use after uninstallation of a shared archive.
16026 postuninstall_cmds=$lt_postuninstall_cmds
16027
16028 # Commands used to finish a libtool library installation in a directory.
16029 finish_cmds=$lt_finish_cmds
16030
16031 # As "finish_cmds", except a single script fragment to be evaled but
16032 # not shown.
16033 finish_eval=$lt_finish_eval
16034
16035 # Whether we should hardcode library paths into libraries.
16036 hardcode_into_libs=$hardcode_into_libs
16037
16038 # Compile-time system search path for libraries.
16039 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16040
16041 # Run-time system search path for libraries.
16042 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16043
16044 # Whether dlopen is supported.
16045 dlopen_support=$enable_dlopen
16046
16047 # Whether dlopen of programs is supported.
16048 dlopen_self=$enable_dlopen_self
16049
16050 # Whether dlopen of statically linked programs is supported.
16051 dlopen_self_static=$enable_dlopen_self_static
16052
16053 # Commands to strip libraries.
16054 old_striplib=$lt_old_striplib
16055 striplib=$lt_striplib
16056
16057
16058 # The linker used to build libraries.
16059 LD=$lt_LD
16060
16061 # Commands used to build an old-style archive.
16062 old_archive_cmds=$lt_old_archive_cmds
16063
16064 # A language specific compiler.
16065 CC=$lt_compiler
16066
16067 # Is the compiler the GNU compiler?
16068 with_gcc=$GCC
16069
16070 # Compiler flag to turn off builtin functions.
16071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16072
16073 # How to pass a linker flag through the compiler.
16074 wl=$lt_lt_prog_compiler_wl
16075
16076 # Additional compiler flags for building library objects.
16077 pic_flag=$lt_lt_prog_compiler_pic
16078
16079 # Compiler flag to prevent dynamic linking.
16080 link_static_flag=$lt_lt_prog_compiler_static
16081
16082 # Does compiler simultaneously support -c and -o options?
16083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16084
16085 # Whether or not to add -lc for building shared libraries.
16086 build_libtool_need_lc=$archive_cmds_need_lc
16087
16088 # Whether or not to disallow shared libs when runtime libs are static.
16089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16090
16091 # Compiler flag to allow reflexive dlopens.
16092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16093
16094 # Compiler flag to generate shared objects directly from archives.
16095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16096
16097 # Whether the compiler copes with passing no objects directly.
16098 compiler_needs_object=$lt_compiler_needs_object
16099
16100 # Create an old-style archive from a shared archive.
16101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16102
16103 # Create a temporary old-style archive to link instead of a shared archive.
16104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16105
16106 # Commands used to build a shared archive.
16107 archive_cmds=$lt_archive_cmds
16108 archive_expsym_cmds=$lt_archive_expsym_cmds
16109
16110 # Commands used to build a loadable module if different from building
16111 # a shared archive.
16112 module_cmds=$lt_module_cmds
16113 module_expsym_cmds=$lt_module_expsym_cmds
16114
16115 # Whether we are building with GNU ld or not.
16116 with_gnu_ld=$lt_with_gnu_ld
16117
16118 # Flag that allows shared libraries with undefined symbols to be built.
16119 allow_undefined_flag=$lt_allow_undefined_flag
16120
16121 # Flag that enforces no undefined symbols.
16122 no_undefined_flag=$lt_no_undefined_flag
16123
16124 # Flag to hardcode \$libdir into a binary during linking.
16125 # This must work even if \$libdir does not exist
16126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16127
16128 # If ld is used when linking, flag to hardcode \$libdir into a binary
16129 # during linking. This must work even if \$libdir does not exist.
16130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16131
16132 # Whether we need a single "-rpath" flag with a separated argument.
16133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16134
16135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16136 # DIR into the resulting binary.
16137 hardcode_direct=$hardcode_direct
16138
16139 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16140 # DIR into the resulting binary and the resulting library dependency is
16141 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16142 # library is relocated.
16143 hardcode_direct_absolute=$hardcode_direct_absolute
16144
16145 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16146 # into the resulting binary.
16147 hardcode_minus_L=$hardcode_minus_L
16148
16149 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16150 # into the resulting binary.
16151 hardcode_shlibpath_var=$hardcode_shlibpath_var
16152
16153 # Set to "yes" if building a shared library automatically hardcodes DIR
16154 # into the library and all subsequent libraries and executables linked
16155 # against it.
16156 hardcode_automatic=$hardcode_automatic
16157
16158 # Set to yes if linker adds runtime paths of dependent libraries
16159 # to runtime path list.
16160 inherit_rpath=$inherit_rpath
16161
16162 # Whether libtool must link a program against all its dependency libraries.
16163 link_all_deplibs=$link_all_deplibs
16164
16165 # Fix the shell variable \$srcfile for the compiler.
16166 fix_srcfile_path=$lt_fix_srcfile_path
16167
16168 # Set to "yes" if exported symbols are required.
16169 always_export_symbols=$always_export_symbols
16170
16171 # The commands to list exported symbols.
16172 export_symbols_cmds=$lt_export_symbols_cmds
16173
16174 # Symbols that should not be listed in the preloaded symbols.
16175 exclude_expsyms=$lt_exclude_expsyms
16176
16177 # Symbols that must always be exported.
16178 include_expsyms=$lt_include_expsyms
16179
16180 # Commands necessary for linking programs (against libraries) with templates.
16181 prelink_cmds=$lt_prelink_cmds
16182
16183 # Specify filename containing input files.
16184 file_list_spec=$lt_file_list_spec
16185
16186 # How to hardcode a shared library path into an executable.
16187 hardcode_action=$hardcode_action
16188
16189 # ### END LIBTOOL CONFIG
16190
16191 _LT_EOF
16192
16193 case $host_os in
16194 aix3*)
16195 cat <<\_LT_EOF >> "$cfgfile"
16196 # AIX sometimes has problems with the GCC collect2 program. For some
16197 # reason, if we set the COLLECT_NAMES environment variable, the problems
16198 # vanish in a puff of smoke.
16199 if test "X${COLLECT_NAMES+set}" != Xset; then
16200 COLLECT_NAMES=
16201 export COLLECT_NAMES
16202 fi
16203 _LT_EOF
16204 ;;
16205 esac
16206
16207
16208 ltmain="$ac_aux_dir/ltmain.sh"
16209
16210
16211 # We use sed instead of cat because bash on DJGPP gets confused if
16212 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16213 # text mode, it properly converts lines to CR/LF. This bash problem
16214 # is reportedly fixed, but why not run on old versions too?
16215 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16216 || (rm -f "$cfgfile"; exit 1)
16217
16218 case $xsi_shell in
16219 yes)
16220 cat << \_LT_EOF >> "$cfgfile"
16221 # func_dirname file append nondir_replacement
16222 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16223 # otherwise set result to NONDIR_REPLACEMENT.
16224 func_dirname ()
16225 {
16226 case ${1} in
16227 */*) func_dirname_result="${1%/*}${2}" ;;
16228 * ) func_dirname_result="${3}" ;;
16229 esac
16230 }
16231
16232 # func_basename file
16233 func_basename ()
16234 {
16235 func_basename_result="${1##*/}"
16236 }
16237
16238 # func_stripname prefix suffix name
16239 # strip PREFIX and SUFFIX off of NAME.
16240 # PREFIX and SUFFIX must not contain globbing or regex special
16241 # characters, hashes, percent signs, but SUFFIX may contain a leading
16242 # dot (in which case that matches only a dot).
16243 func_stripname ()
16244 {
16245 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16246 # positional parameters, so assign one to ordinary parameter first.
16247 func_stripname_result=${3}
16248 func_stripname_result=${func_stripname_result#"${1}"}
16249 func_stripname_result=${func_stripname_result%"${2}"}
16250 }
16251
16252 # func_opt_split
16253 func_opt_split ()
16254 {
16255 func_opt_split_opt=${1%%=*}
16256 func_opt_split_arg=${1#*=}
16257 }
16258
16259 # func_lo2o object
16260 func_lo2o ()
16261 {
16262 case ${1} in
16263 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16264 *) func_lo2o_result=${1} ;;
16265 esac
16266 }
16267 _LT_EOF
16268 ;;
16269 *) # Bourne compatible functions.
16270 cat << \_LT_EOF >> "$cfgfile"
16271 # func_dirname file append nondir_replacement
16272 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16273 # otherwise set result to NONDIR_REPLACEMENT.
16274 func_dirname ()
16275 {
16276 # Extract subdirectory from the argument.
16277 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16278 if test "X$func_dirname_result" = "X${1}"; then
16279 func_dirname_result="${3}"
16280 else
16281 func_dirname_result="$func_dirname_result${2}"
16282 fi
16283 }
16284
16285 # func_basename file
16286 func_basename ()
16287 {
16288 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16289 }
16290
16291 # func_stripname prefix suffix name
16292 # strip PREFIX and SUFFIX off of NAME.
16293 # PREFIX and SUFFIX must not contain globbing or regex special
16294 # characters, hashes, percent signs, but SUFFIX may contain a leading
16295 # dot (in which case that matches only a dot).
16296 # func_strip_suffix prefix name
16297 func_stripname ()
16298 {
16299 case ${2} in
16300 .*) func_stripname_result=`$ECHO "X${3}" \
16301 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16302 *) func_stripname_result=`$ECHO "X${3}" \
16303 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16304 esac
16305 }
16306
16307 # sed scripts:
16308 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16309 my_sed_long_arg='1s/^-[^=]*=//'
16310
16311 # func_opt_split
16312 func_opt_split ()
16313 {
16314 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16315 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16316 }
16317
16318 # func_lo2o object
16319 func_lo2o ()
16320 {
16321 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16322 }
16323 _LT_EOF
16324 esac
16325
16326 case $lt_shell_append in
16327 yes)
16328 cat << \_LT_EOF >> "$cfgfile"
16329
16330 # func_append var value
16331 # Append VALUE to the end of shell variable VAR.
16332 func_append ()
16333 {
16334 eval "$1+=\$2"
16335 }
16336 _LT_EOF
16337 ;;
16338 *)
16339 cat << \_LT_EOF >> "$cfgfile"
16340
16341 # func_append var value
16342 # Append VALUE to the end of shell variable VAR.
16343 func_append ()
16344 {
16345 eval "$1=\$$1\$2"
16346 }
16347 _LT_EOF
16348 ;;
16349 esac
16350
16351
16352 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16353 || (rm -f "$cfgfile"; exit 1)
16354
16355 mv -f "$cfgfile" "$ofile" ||
16356 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16357 chmod +x "$ofile"
16358
16359 ;;
16360 default-1 )
16361 for ac_file in $CONFIG_FILES; do
16362 # Support "outfile[:infile[:infile...]]"
16363 case "$ac_file" in
16364 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16365 esac
16366 # PO directories have a Makefile.in generated from Makefile.in.in.
16367 case "$ac_file" in */Makefile.in)
16368 # Adjust a relative srcdir.
16369 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16370 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16371 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16372 # In autoconf-2.13 it is called $ac_given_srcdir.
16373 # In autoconf-2.50 it is called $srcdir.
16374 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16375 case "$ac_given_srcdir" in
16376 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16377 /*) top_srcdir="$ac_given_srcdir" ;;
16378 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16379 esac
16380 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16381 rm -f "$ac_dir/POTFILES"
16382 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16383 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16384 POMAKEFILEDEPS="POTFILES.in"
16385 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16386 # on $ac_dir but don't depend on user-specified configuration
16387 # parameters.
16388 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16389 # The LINGUAS file contains the set of available languages.
16390 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16391 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16392 fi
16393 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16394 # Hide the ALL_LINGUAS assigment from automake.
16395 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16396 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16397 else
16398 # The set of available languages was given in configure.in.
16399 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16400 fi
16401 case "$ac_given_srcdir" in
16402 .) srcdirpre= ;;
16403 *) srcdirpre='$(srcdir)/' ;;
16404 esac
16405 POFILES=
16406 GMOFILES=
16407 UPDATEPOFILES=
16408 DUMMYPOFILES=
16409 for lang in $ALL_LINGUAS; do
16410 POFILES="$POFILES $srcdirpre$lang.po"
16411 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16412 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16413 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16414 done
16415 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16416 # environment variable.
16417 INST_LINGUAS=
16418 if test -n "$ALL_LINGUAS"; then
16419 for presentlang in $ALL_LINGUAS; do
16420 useit=no
16421 if test "%UNSET%" != "$LINGUAS"; then
16422 desiredlanguages="$LINGUAS"
16423 else
16424 desiredlanguages="$ALL_LINGUAS"
16425 fi
16426 for desiredlang in $desiredlanguages; do
16427 # Use the presentlang catalog if desiredlang is
16428 # a. equal to presentlang, or
16429 # b. a variant of presentlang (because in this case,
16430 # presentlang can be used as a fallback for messages
16431 # which are not translated in the desiredlang catalog).
16432 case "$desiredlang" in
16433 "$presentlang"*) useit=yes;;
16434 esac
16435 done
16436 if test $useit = yes; then
16437 INST_LINGUAS="$INST_LINGUAS $presentlang"
16438 fi
16439 done
16440 fi
16441 CATALOGS=
16442 if test -n "$INST_LINGUAS"; then
16443 for lang in $INST_LINGUAS; do
16444 CATALOGS="$CATALOGS $lang.gmo"
16445 done
16446 fi
16447 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16448 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"
16449 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16450 if test -f "$f"; then
16451 case "$f" in
16452 *.orig | *.bak | *~) ;;
16453 *) cat "$f" >> "$ac_dir/Makefile" ;;
16454 esac
16455 fi
16456 done
16457 fi
16458 ;;
16459 esac
16460 done ;;
16461 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16462 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16463 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16464 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16465 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16466 if test "x$cgen_cpu_prefix" != x ; then
16467 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16468 fi ;;
16469 esac
16470 done
16471 _ACEOF
16472
16473 cat >>$CONFIG_STATUS <<\_ACEOF
16474
16475 { (exit 0); exit 0; }
16476 _ACEOF
16477 chmod +x $CONFIG_STATUS
16478 ac_clean_files=$ac_clean_files_save
16479
16480
16481 # configure is writing to config.log, and then calls config.status.
16482 # config.status does its own redirection, appending to config.log.
16483 # Unfortunately, on DOS this fails, as config.log is still kept open
16484 # by configure, so config.status won't be able to write to it; its
16485 # output is simply discarded. So we exec the FD to /dev/null,
16486 # effectively closing config.log, so it can be properly (re)opened and
16487 # appended to by config.status. When coming back to configure, we
16488 # need to make the FD available again.
16489 if test "$no_create" != yes; then
16490 ac_cs_success=:
16491 ac_config_status_args=
16492 test "$silent" = yes &&
16493 ac_config_status_args="$ac_config_status_args --quiet"
16494 exec 5>/dev/null
16495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16496 exec 5>>config.log
16497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16498 # would make configure fail if this is the last instruction.
16499 $ac_cs_success || { (exit 1); exit 1; }
16500 fi
16501
This page took 0.410789 seconds and 4 git commands to generate.