* common.m4: Add test for libz and zlib.h.
[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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
791 *)
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 ;;
798
799 esac
800 done
801
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923
924 #
925 # Report the --help message.
926 #
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
937
938 Defaults for the options are specified in brackets.
939
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951 _ACEOF
952
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
959
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
964
965 For better control, use the options below.
966
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
981
982 cat <<\_ACEOF
983
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
994 fi
995
996 if test -n "$ac_init_help"; then
997
998 cat <<\_ACEOF
999
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations besides the primary
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-checking enable run-time checks
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
1020
1021 Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1036
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1039
1040 _ACEOF
1041 fi
1042
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055 ac_dir_suffix= ac_top_builddir=
1056 fi
1057
1058 case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1073
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1078 *)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1096 *)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111 esac
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134 cat <<\_ACEOF
1135
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1139 _ACEOF
1140 exit 0
1141 fi
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1146
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1149
1150 $ $0 $@
1151
1152 _ACEOF
1153 {
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1158
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176 _ASUNAME
1177
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1180 do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184 done
1185
1186 } >&5
1187
1188 cat >&5 <<_ACEOF
1189
1190
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1194
1195 _ACEOF
1196
1197
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1209 do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266 {
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279 }
1280 echo
1281
1282 cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1332
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1337
1338 # Predefined preprocessor variables.
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1363
1364
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373 fi
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381 done
1382
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394 else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398 fi
1399
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1432 fi
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451 done
1452 if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460 fi
1461
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490 ac_aux_dir=
1491 for ac_dir in .. $srcdir/..; do
1492 if test -f $ac_dir/install-sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install-sh -c"
1495 break
1496 elif test -f $ac_dir/install.sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install.sh -c"
1499 break
1500 elif test -f $ac_dir/shtool; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/shtool install -c"
1503 break
1504 fi
1505 done
1506 if test -z "$ac_aux_dir"; then
1507 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1508 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1509 { (exit 1); exit 1; }; }
1510 fi
1511 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514
1515 # Make sure we can run config.sub.
1516 $ac_config_sub sun4 >/dev/null 2>&1 ||
1517 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519 { (exit 1); exit 1; }; }
1520
1521 echo "$as_me:$LINENO: checking build system type" >&5
1522 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523 if test "${ac_cv_build+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 ac_cv_build_alias=$build_alias
1527 test -z "$ac_cv_build_alias" &&
1528 ac_cv_build_alias=`$ac_config_guess`
1529 test -z "$ac_cv_build_alias" &&
1530 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532 { (exit 1); exit 1; }; }
1533 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1537
1538 fi
1539 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540 echo "${ECHO_T}$ac_cv_build" >&6
1541 build=$ac_cv_build
1542 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547 echo "$as_me:$LINENO: checking host system type" >&5
1548 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549 if test "${ac_cv_host+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 ac_cv_host_alias=$host_alias
1553 test -z "$ac_cv_host_alias" &&
1554 ac_cv_host_alias=$ac_cv_build_alias
1555 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560 fi
1561 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562 echo "${ECHO_T}$ac_cv_host" >&6
1563 host=$ac_cv_host
1564 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569 echo "$as_me:$LINENO: checking target system type" >&5
1570 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1571 if test "${ac_cv_target+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 ac_cv_target_alias=$target_alias
1575 test "x$ac_cv_target_alias" = "x" &&
1576 ac_cv_target_alias=$ac_cv_host_alias
1577 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1578 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1579 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582 fi
1583 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1584 echo "${ECHO_T}$ac_cv_target" >&6
1585 target=$ac_cv_target
1586 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
1590
1591 # The aliases save the names the user supplied, while $host etc.
1592 # will get canonicalized.
1593 test -n "$target_alias" &&
1594 test "$program_prefix$program_suffix$program_transform_name" = \
1595 NONENONEs,x,x, &&
1596 program_prefix=${target_alias}-
1597 ac_ext=c
1598 ac_cpp='$CPP $CPPFLAGS'
1599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1612 else
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624 done
1625 done
1626
1627 fi
1628 fi
1629 CC=$ac_cv_prog_CC
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1633 else
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1636 fi
1637
1638 fi
1639 if test -z "$ac_cv_prog_CC"; then
1640 ac_ct_CC=$CC
1641 # Extract the first word of "gcc", so it can be a program name with args.
1642 set dummy gcc; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CC="gcc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662 done
1663 done
1664
1665 fi
1666 fi
1667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668 if test -n "$ac_ct_CC"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670 echo "${ECHO_T}$ac_ct_CC" >&6
1671 else
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 CC=$ac_ct_CC
1677 else
1678 CC="$ac_cv_prog_CC"
1679 fi
1680
1681 if test -z "$CC"; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}cc; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC="${ac_tool_prefix}cc"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704 done
1705 done
1706
1707 fi
1708 fi
1709 CC=$ac_cv_prog_CC
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1713 else
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718 fi
1719 if test -z "$ac_cv_prog_CC"; then
1720 ac_ct_CC=$CC
1721 # Extract the first word of "cc", so it can be a program name with args.
1722 set dummy cc; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="cc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742 done
1743 done
1744
1745 fi
1746 fi
1747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748 if test -n "$ac_ct_CC"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750 echo "${ECHO_T}$ac_ct_CC" >&6
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756 CC=$ac_ct_CC
1757 else
1758 CC="$ac_cv_prog_CC"
1759 fi
1760
1761 fi
1762 if test -z "$CC"; then
1763 # Extract the first word of "cc", so it can be a program name with args.
1764 set dummy cc; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770 if test -n "$CC"; then
1771 ac_cv_prog_CC="$CC" # Let the user override the test.
1772 else
1773 ac_prog_rejected=no
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1782 ac_prog_rejected=yes
1783 continue
1784 fi
1785 ac_cv_prog_CC="cc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1788 fi
1789 done
1790 done
1791
1792 if test $ac_prog_rejected = yes; then
1793 # We found a bogon in the path, so make sure we never use it.
1794 set dummy $ac_cv_prog_CC
1795 shift
1796 if test $# != 0; then
1797 # We chose a different compiler from the bogus one.
1798 # However, it has the same basename, so the bogon will be chosen
1799 # first if we set CC to just the basename; use the full file name.
1800 shift
1801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1802 fi
1803 fi
1804 fi
1805 fi
1806 CC=$ac_cv_prog_CC
1807 if test -n "$CC"; then
1808 echo "$as_me:$LINENO: result: $CC" >&5
1809 echo "${ECHO_T}$CC" >&6
1810 else
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815 fi
1816 if test -z "$CC"; then
1817 if test -n "$ac_tool_prefix"; then
1818 for ac_prog in cl
1819 do
1820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 test -n "$CC" && break
1856 done
1857 fi
1858 if test -z "$CC"; then
1859 ac_ct_CC=$CC
1860 for ac_prog in cl
1861 do
1862 # Extract the first word of "$ac_prog", so it can be a program name with args.
1863 set dummy $ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$ac_ct_CC"; then
1870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_ac_ct_CC="$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889 if test -n "$ac_ct_CC"; then
1890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891 echo "${ECHO_T}$ac_ct_CC" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897 test -n "$ac_ct_CC" && break
1898 done
1899
1900 CC=$ac_ct_CC
1901 fi
1902
1903 fi
1904
1905
1906 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1907 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1908 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: no acceptable C compiler found in \$PATH
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }; }
1913
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933
1934 cat >conftest.$ac_ext <<_ACEOF
1935 /* confdefs.h. */
1936 _ACEOF
1937 cat confdefs.h >>conftest.$ac_ext
1938 cat >>conftest.$ac_ext <<_ACEOF
1939 /* end confdefs.h. */
1940
1941 int
1942 main ()
1943 {
1944
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 ac_clean_files_save=$ac_clean_files
1950 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1951 # Try to create an executable without -o first, disregard a.out.
1952 # It will help us diagnose broken compilers, and finding out an intuition
1953 # of exeext.
1954 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1955 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1956 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1957 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1958 (eval $ac_link_default) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; then
1962 # Find the output, starting from the most likely. This scheme is
1963 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1964 # resort.
1965
1966 # Be careful to initialize this variable, since it used to be cached.
1967 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1968 ac_cv_exeext=
1969 # b.out is created by i960 compilers.
1970 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1971 do
1972 test -f "$ac_file" || continue
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1975 ;;
1976 conftest.$ac_ext )
1977 # This is the source file.
1978 ;;
1979 [ab].out )
1980 # We found the default executable, but exeext='' is most
1981 # certainly right.
1982 break;;
1983 *.* )
1984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 # FIXME: I believe we export ac_cv_exeext for Libtool,
1986 # but it would be cool to find out if it's true. Does anybody
1987 # maintain Libtool? --akim.
1988 export ac_cv_exeext
1989 break;;
1990 * )
1991 break;;
1992 esac
1993 done
1994 else
1995 echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2001 See \`config.log' for more details." >&5
2002 echo "$as_me: error: C compiler cannot create executables
2003 See \`config.log' for more details." >&2;}
2004 { (exit 77); exit 77; }; }; }
2005 fi
2006
2007 ac_exeext=$ac_cv_exeext
2008 echo "$as_me:$LINENO: result: $ac_file" >&5
2009 echo "${ECHO_T}$ac_file" >&6
2010
2011 # Check the compiler produces executables we can run. If not, either
2012 # the compiler is broken, or we cross compile.
2013 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2014 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2015 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2016 # If not cross compiling, check that we can run a simple program.
2017 if test "$cross_compiling" != yes; then
2018 if { ac_try='./$ac_file'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 (eval $ac_try) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2024 cross_compiling=no
2025 else
2026 if test "$cross_compiling" = maybe; then
2027 cross_compiling=yes
2028 else
2029 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2030 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2032 If you meant to cross compile, use \`--host'.
2033 See \`config.log' for more details." >&5
2034 echo "$as_me: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }; }
2038 fi
2039 fi
2040 fi
2041 echo "$as_me:$LINENO: result: yes" >&5
2042 echo "${ECHO_T}yes" >&6
2043
2044 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2045 ac_clean_files=$ac_clean_files_save
2046 # Check the compiler produces executables we can run. If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2050 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2051 echo "${ECHO_T}$cross_compiling" >&6
2052
2053 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2056 (eval $ac_link) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; then
2060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2062 # work properly (i.e., refer to `conftest.exe'), while it won't with
2063 # `rm'.
2064 for ac_file in conftest.exe conftest conftest.*; do
2065 test -f "$ac_file" || continue
2066 case $ac_file in
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2069 export ac_cv_exeext
2070 break;;
2071 * ) break;;
2072 esac
2073 done
2074 else
2075 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2080 See \`config.log' for more details." >&2;}
2081 { (exit 1); exit 1; }; }; }
2082 fi
2083
2084 rm -f conftest$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2086 echo "${ECHO_T}$ac_cv_exeext" >&6
2087
2088 rm -f conftest.$ac_ext
2089 EXEEXT=$ac_cv_exeext
2090 ac_exeext=$EXEEXT
2091 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2092 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2093 if test "${ac_cv_objext+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 cat >conftest.$ac_ext <<_ACEOF
2097 /* confdefs.h. */
2098 _ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h. */
2102
2103 int
2104 main ()
2105 {
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 rm -f conftest.o conftest.obj
2112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2118 case $ac_file in
2119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2121 break;;
2122 esac
2123 done
2124 else
2125 echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2129 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }; }
2135 fi
2136
2137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2138 fi
2139 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2140 echo "${ECHO_T}$ac_cv_objext" >&6
2141 OBJEXT=$ac_cv_objext
2142 ac_objext=$OBJEXT
2143 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 cat >conftest.$ac_ext <<_ACEOF
2149 /* confdefs.h. */
2150 _ACEOF
2151 cat confdefs.h >>conftest.$ac_ext
2152 cat >>conftest.$ac_ext <<_ACEOF
2153 /* end confdefs.h. */
2154
2155 int
2156 main ()
2157 {
2158 #ifndef __GNUC__
2159 choke me
2160 #endif
2161
2162 ;
2163 return 0;
2164 }
2165 _ACEOF
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2169 ac_status=$?
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_compiler_gnu=yes
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_compiler_gnu=no
2194 fi
2195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2197
2198 fi
2199 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2201 GCC=`test $ac_compiler_gnu = yes && echo yes`
2202 ac_test_CFLAGS=${CFLAGS+set}
2203 ac_save_CFLAGS=$CFLAGS
2204 CFLAGS="-g"
2205 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2206 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2207 if test "${ac_cv_prog_cc_g+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h. */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2216
2217 int
2218 main ()
2219 {
2220
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2228 ac_status=$?
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 ac_cv_prog_cc_g=yes
2248 else
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_cv_prog_cc_g=no
2253 fi
2254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2258 if test "$ac_test_CFLAGS" = set; then
2259 CFLAGS=$ac_save_CFLAGS
2260 elif test $ac_cv_prog_cc_g = yes; then
2261 if test "$GCC" = yes; then
2262 CFLAGS="-g -O2"
2263 else
2264 CFLAGS="-g"
2265 fi
2266 else
2267 if test "$GCC" = yes; then
2268 CFLAGS="-O2"
2269 else
2270 CFLAGS=
2271 fi
2272 fi
2273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 ac_cv_prog_cc_stdc=no
2279 ac_save_CC=$CC
2280 cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h. */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2286 #include <stdarg.h>
2287 #include <stdio.h>
2288 #include <sys/types.h>
2289 #include <sys/stat.h>
2290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2291 struct buf { int x; };
2292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2293 static char *e (p, i)
2294 char **p;
2295 int i;
2296 {
2297 return p[i];
2298 }
2299 static char *f (char * (*g) (char **, int), char **p, ...)
2300 {
2301 char *s;
2302 va_list v;
2303 va_start (v,p);
2304 s = g (p, va_arg (v,int));
2305 va_end (v);
2306 return s;
2307 }
2308
2309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2310 function prototypes and stuff, but not '\xHH' hex character constants.
2311 These don't provoke an error unfortunately, instead are silently treated
2312 as 'x'. The following induces an error, until -std1 is added to get
2313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2314 array size at least. It's necessary to write '\x00'==0 to get something
2315 that's true only with -std1. */
2316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2317
2318 int test (int i, double x);
2319 struct s1 {int (*f) (int a);};
2320 struct s2 {int (*f) (double a);};
2321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2322 int argc;
2323 char **argv;
2324 int
2325 main ()
2326 {
2327 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 # Don't try gcc -ansi; that turns off useful extensions and
2333 # breaks some systems' header files.
2334 # AIX -qlanglvl=ansi
2335 # Ultrix and OSF/1 -std1
2336 # HP-UX 10.20 and later -Ae
2337 # HP-UX older versions -Aa -D_HPUX_SOURCE
2338 # SVR4 -Xc -D__EXTENSIONS__
2339 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2340 do
2341 CC="$ac_save_CC $ac_arg"
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2365 break
2366 else
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 fi
2371 rm -f conftest.err conftest.$ac_objext
2372 done
2373 rm -f conftest.$ac_ext conftest.$ac_objext
2374 CC=$ac_save_CC
2375
2376 fi
2377
2378 case "x$ac_cv_prog_cc_stdc" in
2379 x|xno)
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381 echo "${ECHO_T}none needed" >&6 ;;
2382 *)
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2386 esac
2387
2388 # Some people use a C++ compiler to compile C. Since we use `exit',
2389 # in C++ we need to declare it. In case someone uses the same compiler
2390 # for both compiling C and C++ we need to have the C++ compiler decide
2391 # the declaration of exit, since it's the most demanding environment.
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #ifndef __cplusplus
2394 choke me
2395 #endif
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 for ac_declaration in \
2420 '' \
2421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2425 'void exit (int);'
2426 do
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2433 $ac_declaration
2434 #include <stdlib.h>
2435 int
2436 main ()
2437 {
2438 exit (42);
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 :
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 continue
2471 fi
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2479 $ac_declaration
2480 int
2481 main ()
2482 {
2483 exit (42);
2484 ;
2485 return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2491 ac_status=$?
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 break
2511 else
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 fi
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517 done
2518 rm -f conftest*
2519 if test -n "$ac_declaration"; then
2520 echo '#ifdef __cplusplus' >>confdefs.h
2521 echo $ac_declaration >>confdefs.h
2522 echo '#endif' >>confdefs.h
2523 fi
2524
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 fi
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
2537
2538 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2539 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2540 if test "${ac_cv_search_strerror+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 ac_func_search_save_LIBS=$LIBS
2544 ac_cv_search_strerror=no
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2551
2552 /* Override any gcc2 internal prototype to avoid an error. */
2553 #ifdef __cplusplus
2554 extern "C"
2555 #endif
2556 /* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2558 char strerror ();
2559 int
2560 main ()
2561 {
2562 strerror ();
2563 ;
2564 return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext conftest$ac_exeext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2569 (eval $ac_link) 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag"
2577 || test ! -s conftest.err'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest$ac_exeext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2589 ac_cv_search_strerror="none required"
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 fi
2595 rm -f conftest.err conftest.$ac_objext \
2596 conftest$ac_exeext conftest.$ac_ext
2597 if test "$ac_cv_search_strerror" = no; then
2598 for ac_lib in cposix; do
2599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606
2607 /* Override any gcc2 internal prototype to avoid an error. */
2608 #ifdef __cplusplus
2609 extern "C"
2610 #endif
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2613 char strerror ();
2614 int
2615 main ()
2616 {
2617 strerror ();
2618 ;
2619 return 0;
2620 }
2621 _ACEOF
2622 rm -f conftest.$ac_objext conftest$ac_exeext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2624 (eval $ac_link) 2>conftest.er1
2625 ac_status=$?
2626 grep -v '^ *+' conftest.er1 >conftest.err
2627 rm -f conftest.er1
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_search_strerror="-l$ac_lib"
2645 break
2646 else
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 fi
2651 rm -f conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2653 done
2654 fi
2655 LIBS=$ac_func_search_save_LIBS
2656 fi
2657 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2658 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2659 if test "$ac_cv_search_strerror" != no; then
2660 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2661
2662 fi
2663
2664
2665 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2666 am__api_version="1.9"
2667 # Find a good install program. We prefer a C program (faster),
2668 # so one script is as good as another. But avoid the broken or
2669 # incompatible versions:
2670 # SysV /etc/install, /usr/sbin/install
2671 # SunOS /usr/etc/install
2672 # IRIX /sbin/install
2673 # AIX /bin/install
2674 # AmigaOS /C/install, which installs bootblocks on floppy discs
2675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2678 # OS/2's system install, which has a completely different semantic
2679 # ./install, which can be erroneously created by make from ./install.sh.
2680 # Reject install programs that cannot install multiple files.
2681 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2682 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2683 if test -z "$INSTALL"; then
2684 if test "${ac_cv_path_install+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 # Account for people who put trailing slashes in PATH elements.
2693 case $as_dir/ in
2694 ./ | .// | /cC/* | \
2695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2696 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2697 /usr/ucb/* ) ;;
2698 *)
2699 # OSF1 and SCO ODT 3.0 have their own names for install.
2700 # Don't use installbsd from OSF since it installs stuff as root
2701 # by default.
2702 for ac_prog in ginstall scoinst install; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2705 if test $ac_prog = install &&
2706 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707 # AIX install. It has an incompatible calling convention.
2708 :
2709 elif test $ac_prog = install &&
2710 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # program-specific install script used by HP pwplus--don't use.
2712 :
2713 else
2714 rm -rf conftest.one conftest.two conftest.dir
2715 echo one > conftest.one
2716 echo two > conftest.two
2717 mkdir conftest.dir
2718 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2719 test -s conftest.one && test -s conftest.two &&
2720 test -s conftest.dir/conftest.one &&
2721 test -s conftest.dir/conftest.two
2722 then
2723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2724 break 3
2725 fi
2726 fi
2727 fi
2728 done
2729 done
2730 ;;
2731 esac
2732 done
2733
2734 rm -rf conftest.one conftest.two conftest.dir
2735
2736 fi
2737 if test "${ac_cv_path_install+set}" = set; then
2738 INSTALL=$ac_cv_path_install
2739 else
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for INSTALL within a source directory, because that will
2742 # break other packages using the cache if that directory is
2743 # removed, or if the value is a relative name.
2744 INSTALL=$ac_install_sh
2745 fi
2746 fi
2747 echo "$as_me:$LINENO: result: $INSTALL" >&5
2748 echo "${ECHO_T}$INSTALL" >&6
2749
2750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2751 # It thinks the first close brace ends the variable substitution.
2752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2753
2754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2755
2756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2757
2758 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2759 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2760 # Just in case
2761 sleep 1
2762 echo timestamp > conftest.file
2763 # Do `set' in a subshell so we don't clobber the current shell's
2764 # arguments. Must try -L first in case configure is actually a
2765 # symlink; some systems play weird games with the mod time of symlinks
2766 # (eg FreeBSD returns the mod time of the symlink's containing
2767 # directory).
2768 if (
2769 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2770 if test "$*" = "X"; then
2771 # -L didn't work.
2772 set X `ls -t $srcdir/configure conftest.file`
2773 fi
2774 rm -f conftest.file
2775 if test "$*" != "X $srcdir/configure conftest.file" \
2776 && test "$*" != "X conftest.file $srcdir/configure"; then
2777
2778 # If neither matched, then we have a broken ls. This can happen
2779 # if, for instance, CONFIG_SHELL is bash and it inherits a
2780 # broken ls alias from the environment. This has actually
2781 # happened. Such a system could not be considered "sane".
2782 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2783 alias in your environment" >&5
2784 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2785 alias in your environment" >&2;}
2786 { (exit 1); exit 1; }; }
2787 fi
2788
2789 test "$2" = conftest.file
2790 )
2791 then
2792 # Ok.
2793 :
2794 else
2795 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2796 Check your system clock" >&5
2797 echo "$as_me: error: newly created file is older than distributed files!
2798 Check your system clock" >&2;}
2799 { (exit 1); exit 1; }; }
2800 fi
2801 echo "$as_me:$LINENO: result: yes" >&5
2802 echo "${ECHO_T}yes" >&6
2803 test "$program_prefix" != NONE &&
2804 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2805 # Use a double $ so make ignores it.
2806 test "$program_suffix" != NONE &&
2807 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2808 # Double any \ or $. echo might interpret backslashes.
2809 # By default was `s,x,x', remove it if useless.
2810 cat <<\_ACEOF >conftest.sed
2811 s/[\\$]/&&/g;s/;s,x,x,$//
2812 _ACEOF
2813 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2814 rm conftest.sed
2815
2816 # expand $ac_aux_dir to an absolute path
2817 am_aux_dir=`cd $ac_aux_dir && pwd`
2818
2819 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2820 # Use eval to expand $SHELL
2821 if eval "$MISSING --run true"; then
2822 am_missing_run="$MISSING --run "
2823 else
2824 am_missing_run=
2825 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2826 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2827 fi
2828
2829 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2830 # We used to keeping the `.' as first argument, in order to
2831 # allow $(mkdir_p) to be used without argument. As in
2832 # $(mkdir_p) $(somedir)
2833 # where $(somedir) is conditionally defined. However this is wrong
2834 # for two reasons:
2835 # 1. if the package is installed by a user who cannot write `.'
2836 # make install will fail,
2837 # 2. the above comment should most certainly read
2838 # $(mkdir_p) $(DESTDIR)$(somedir)
2839 # so it does not work when $(somedir) is undefined and
2840 # $(DESTDIR) is not.
2841 # To support the latter case, we have to write
2842 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2843 # so the `.' trick is pointless.
2844 mkdir_p='mkdir -p --'
2845 else
2846 # On NextStep and OpenStep, the `mkdir' command does not
2847 # recognize any option. It will interpret all options as
2848 # directories to create, and then abort because `.' already
2849 # exists.
2850 for d in ./-p ./--version;
2851 do
2852 test -d $d && rmdir $d
2853 done
2854 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2855 if test -f "$ac_aux_dir/mkinstalldirs"; then
2856 mkdir_p='$(mkinstalldirs)'
2857 else
2858 mkdir_p='$(install_sh) -d'
2859 fi
2860 fi
2861
2862 for ac_prog in gawk mawk nawk awk
2863 do
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868 if test "${ac_cv_prog_AWK+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_AWK="$ac_prog"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887
2888 fi
2889 fi
2890 AWK=$ac_cv_prog_AWK
2891 if test -n "$AWK"; then
2892 echo "$as_me:$LINENO: result: $AWK" >&5
2893 echo "${ECHO_T}$AWK" >&6
2894 else
2895 echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2897 fi
2898
2899 test -n "$AWK" && break
2900 done
2901
2902 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2904 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2905 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 cat >conftest.make <<\_ACEOF
2909 all:
2910 @echo 'ac_maketemp="$(MAKE)"'
2911 _ACEOF
2912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2913 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2914 if test -n "$ac_maketemp"; then
2915 eval ac_cv_prog_make_${ac_make}_set=yes
2916 else
2917 eval ac_cv_prog_make_${ac_make}_set=no
2918 fi
2919 rm -f conftest.make
2920 fi
2921 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2922 echo "$as_me:$LINENO: result: yes" >&5
2923 echo "${ECHO_T}yes" >&6
2924 SET_MAKE=
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2928 SET_MAKE="MAKE=${MAKE-make}"
2929 fi
2930
2931 rm -rf .tst 2>/dev/null
2932 mkdir .tst 2>/dev/null
2933 if test -d .tst; then
2934 am__leading_dot=.
2935 else
2936 am__leading_dot=_
2937 fi
2938 rmdir .tst 2>/dev/null
2939
2940 DEPDIR="${am__leading_dot}deps"
2941
2942 ac_config_commands="$ac_config_commands depfiles"
2943
2944
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2947 am__doit:
2948 @echo done
2949 .PHONY: am__doit
2950 END
2951 # If we don't find an include directive, just comment out the code.
2952 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2953 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2954 am__include="#"
2955 am__quote=
2956 _am_result=none
2957 # First try GNU make style include.
2958 echo "include confinc" > confmf
2959 # We grep out `Entering directory' and `Leaving directory'
2960 # messages which can occur if `w' ends up in MAKEFLAGS.
2961 # In particular we don't look at `^make:' because GNU make might
2962 # be invoked under some other name (usually "gmake"), in which
2963 # case it prints its new name instead of `make'.
2964 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2965 am__include=include
2966 am__quote=
2967 _am_result=GNU
2968 fi
2969 # Now try BSD make style include.
2970 if test "$am__include" = "#"; then
2971 echo '.include "confinc"' > confmf
2972 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2973 am__include=.include
2974 am__quote="\""
2975 _am_result=BSD
2976 fi
2977 fi
2978
2979
2980 echo "$as_me:$LINENO: result: $_am_result" >&5
2981 echo "${ECHO_T}$_am_result" >&6
2982 rm -f confinc confmf
2983
2984 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2985 if test "${enable_dependency_tracking+set}" = set; then
2986 enableval="$enable_dependency_tracking"
2987
2988 fi;
2989 if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2991 AMDEPBACKSLASH='\'
2992 fi
2993
2994
2995 if test "x$enable_dependency_tracking" != xno; then
2996 AMDEP_TRUE=
2997 AMDEP_FALSE='#'
2998 else
2999 AMDEP_TRUE='#'
3000 AMDEP_FALSE=
3001 fi
3002
3003
3004
3005 # test to see if srcdir already configured
3006 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3007 test -f $srcdir/config.status; then
3008 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3009 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3010 { (exit 1); exit 1; }; }
3011 fi
3012
3013 # test whether we have cygpath
3014 if test -z "$CYGPATH_W"; then
3015 if (cygpath --version) >/dev/null 2>/dev/null; then
3016 CYGPATH_W='cygpath -w'
3017 else
3018 CYGPATH_W=echo
3019 fi
3020 fi
3021
3022
3023 # Define the identity of the package.
3024 PACKAGE=gas
3025 VERSION=${BFD_VERSION}
3026
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE "$PACKAGE"
3030 _ACEOF
3031
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define VERSION "$VERSION"
3035 _ACEOF
3036
3037 # Some tools Automake needs.
3038
3039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3040
3041
3042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3043
3044
3045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3046
3047
3048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3049
3050
3051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3052
3053 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3054
3055 # Installed binaries are usually stripped using `strip' when the user
3056 # run `make install-strip'. However `strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the `STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}strip; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_STRIP+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084
3085 fi
3086 fi
3087 STRIP=$ac_cv_prog_STRIP
3088 if test -n "$STRIP"; then
3089 echo "$as_me:$LINENO: result: $STRIP" >&5
3090 echo "${ECHO_T}$STRIP" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3094 fi
3095
3096 fi
3097 if test -z "$ac_cv_prog_STRIP"; then
3098 ac_ct_STRIP=$STRIP
3099 # Extract the first word of "strip", so it can be a program name with args.
3100 set dummy strip; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 if test -n "$ac_ct_STRIP"; then
3107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_STRIP="strip"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122
3123 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3124 fi
3125 fi
3126 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3127 if test -n "$ac_ct_STRIP"; then
3128 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3129 echo "${ECHO_T}$ac_ct_STRIP" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3133 fi
3134
3135 STRIP=$ac_ct_STRIP
3136 else
3137 STRIP="$ac_cv_prog_STRIP"
3138 fi
3139
3140 fi
3141 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3142
3143 # We need awk for the "check" target. The system "awk" is bad on
3144 # some platforms.
3145 # Always define AMTAR for backward compatibility.
3146
3147 AMTAR=${AMTAR-"${am_missing_run}tar"}
3148
3149 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3150
3151
3152
3153
3154 depcc="$CC" am_compiler_list=
3155
3156 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3157 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3162 # We make a subdir and do the tests there. Otherwise we can end up
3163 # making bogus files that we don't know about and never remove. For
3164 # instance it was reported that on HP-UX the gcc test will end up
3165 # making a dummy file named `D' -- because `-MD' means `put the output
3166 # in D'.
3167 mkdir conftest.dir
3168 # Copy depcomp to subdir because otherwise we won't find it if we're
3169 # using a relative directory.
3170 cp "$am_depcomp" conftest.dir
3171 cd conftest.dir
3172 # We will build objects and dependencies in a subdirectory because
3173 # it helps to detect inapplicable dependency modes. For instance
3174 # both Tru64's cc and ICC support -MD to output dependencies as a
3175 # side effect of compilation, but ICC will put the dependencies in
3176 # the current directory while Tru64 will put them in the object
3177 # directory.
3178 mkdir sub
3179
3180 am_cv_CC_dependencies_compiler_type=none
3181 if test "$am_compiler_list" = ""; then
3182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3183 fi
3184 for depmode in $am_compiler_list; do
3185 # Setup a source with many dependencies, because some compilers
3186 # like to wrap large dependency lists on column 80 (with \), and
3187 # we should not choose a depcomp mode which is confused by this.
3188 #
3189 # We need to recreate these files for each test, as the compiler may
3190 # overwrite some of them when testing with obscure command lines.
3191 # This happens at least with the AIX C compiler.
3192 : > sub/conftest.c
3193 for i in 1 2 3 4 5 6; do
3194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3196 # Solaris 8's {/usr,}/bin/sh.
3197 touch sub/conftst$i.h
3198 done
3199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3200
3201 case $depmode in
3202 nosideeffect)
3203 # after this tag, mechanisms are not by side-effect, so they'll
3204 # only be used when explicitly requested
3205 if test "x$enable_dependency_tracking" = xyes; then
3206 continue
3207 else
3208 break
3209 fi
3210 ;;
3211 none) break ;;
3212 esac
3213 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3214 # mode. It turns out that the SunPro C++ compiler does not properly
3215 # handle `-M -o', and we need to detect this.
3216 if depmode=$depmode \
3217 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3219 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3220 >/dev/null 2>conftest.err &&
3221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3222 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3224 # icc doesn't choke on unknown options, it will just issue warnings
3225 # or remarks (even with -Werror). So we grep stderr for any message
3226 # that says an option was ignored or not supported.
3227 # When given -MP, icc 7.0 and 7.1 complain thusly:
3228 # icc: Command line warning: ignoring option '-M'; no argument required
3229 # The diagnosis changed in icc 8.0:
3230 # icc: Command line remark: option '-MP' not supported
3231 if (grep 'ignoring option' conftest.err ||
3232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3233 am_cv_CC_dependencies_compiler_type=$depmode
3234 break
3235 fi
3236 fi
3237 done
3238
3239 cd ..
3240 rm -rf conftest.dir
3241 else
3242 am_cv_CC_dependencies_compiler_type=none
3243 fi
3244
3245 fi
3246 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3247 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3249
3250
3251
3252 if
3253 test "x$enable_dependency_tracking" != xno \
3254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3255 am__fastdepCC_TRUE=
3256 am__fastdepCC_FALSE='#'
3257 else
3258 am__fastdepCC_TRUE='#'
3259 am__fastdepCC_FALSE=
3260 fi
3261
3262
3263
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_prog_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294
3295 fi
3296 fi
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299 echo "$as_me:$LINENO: result: $CC" >&5
3300 echo "${ECHO_T}$CC" >&6
3301 else
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3304 fi
3305
3306 fi
3307 if test -z "$ac_cv_prog_CC"; then
3308 ac_ct_CC=$CC
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332
3333 fi
3334 fi
3335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3336 if test -n "$ac_ct_CC"; then
3337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3338 echo "${ECHO_T}$ac_ct_CC" >&6
3339 else
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3342 fi
3343
3344 CC=$ac_ct_CC
3345 else
3346 CC="$ac_cv_prog_CC"
3347 fi
3348
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_CC+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="${ac_tool_prefix}cc"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 echo "$as_me:$LINENO: result: $CC" >&5
3380 echo "${ECHO_T}$CC" >&6
3381 else
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386 fi
3387 if test -z "$ac_cv_prog_CC"; then
3388 ac_ct_CC=$CC
3389 # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_CC="cc"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412
3413 fi
3414 fi
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3418 echo "${ECHO_T}$ac_ct_CC" >&6
3419 else
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424 CC=$ac_ct_CC
3425 else
3426 CC="$ac_cv_prog_CC"
3427 fi
3428
3429 fi
3430 if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_CC+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441 ac_prog_rejected=no
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3451 continue
3452 fi
3453 ac_cv_prog_CC="cc"
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457 done
3458 done
3459
3460 if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy $ac_cv_prog_CC
3463 shift
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3468 shift
3469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3470 fi
3471 fi
3472 fi
3473 fi
3474 CC=$ac_cv_prog_CC
3475 if test -n "$CC"; then
3476 echo "$as_me:$LINENO: result: $CC" >&5
3477 echo "${ECHO_T}$CC" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481 fi
3482
3483 fi
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in cl
3487 do
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511
3512 fi
3513 fi
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516 echo "$as_me:$LINENO: result: $CC" >&5
3517 echo "${ECHO_T}$CC" >&6
3518 else
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 fi
3522
3523 test -n "$CC" && break
3524 done
3525 fi
3526 if test -z "$CC"; then
3527 ac_ct_CC=$CC
3528 for ac_prog in cl
3529 do
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test -n "$ac_ct_CC"; then
3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_ac_ct_CC="$ac_prog"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551 done
3552 done
3553
3554 fi
3555 fi
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3559 echo "${ECHO_T}$ac_ct_CC" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3563 fi
3564
3565 test -n "$ac_ct_CC" && break
3566 done
3567
3568 CC=$ac_ct_CC
3569 fi
3570
3571 fi
3572
3573
3574 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3575 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details." >&5
3578 echo "$as_me: error: no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details." >&2;}
3580 { (exit 1); exit 1; }; }; }
3581
3582 # Provide some information about the compiler.
3583 echo "$as_me:$LINENO:" \
3584 "checking for C compiler version" >&5
3585 ac_compiler=`set X $ac_compile; echo $2`
3586 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3587 (eval $ac_compiler --version </dev/null >&5) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3592 (eval $ac_compiler -v </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3597 (eval $ac_compiler -V </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601
3602 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617 #ifndef __GNUC__
3618 choke me
3619 #endif
3620
3621 ;
3622 return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 ac_compiler_gnu=yes
3648 else
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 ac_compiler_gnu=no
3653 fi
3654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3656
3657 fi
3658 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3660 GCC=`test $ac_compiler_gnu = yes && echo yes`
3661 ac_test_CFLAGS=${CFLAGS+set}
3662 ac_save_CFLAGS=$CFLAGS
3663 CFLAGS="-g"
3664 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3666 if test "${ac_cv_prog_cc_g+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675
3676 int
3677 main ()
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 rm -f conftest.$ac_objext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686 (eval $ac_compile) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 ac_cv_prog_cc_g=yes
3707 else
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 ac_cv_prog_cc_g=no
3712 fi
3713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3714 fi
3715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3721 CFLAGS="-g -O2"
3722 else
3723 CFLAGS="-g"
3724 fi
3725 else
3726 if test "$GCC" = yes; then
3727 CFLAGS="-O2"
3728 else
3729 CFLAGS=
3730 fi
3731 fi
3732 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3733 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3734 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 ac_cv_prog_cc_stdc=no
3738 ac_save_CC=$CC
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #include <stdarg.h>
3746 #include <stdio.h>
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3753 char **p;
3754 int i;
3755 {
3756 return p[i];
3757 }
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3759 {
3760 char *s;
3761 va_list v;
3762 va_start (v,p);
3763 s = g (p, va_arg (v,int));
3764 va_end (v);
3765 return s;
3766 }
3767
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std1 is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std1. */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776
3777 int test (int i, double x);
3778 struct s1 {int (*f) (int a);};
3779 struct s2 {int (*f) (double a);};
3780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3781 int argc;
3782 char **argv;
3783 int
3784 main ()
3785 {
3786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 # Don't try gcc -ansi; that turns off useful extensions and
3792 # breaks some systems' header files.
3793 # AIX -qlanglvl=ansi
3794 # Ultrix and OSF/1 -std1
3795 # HP-UX 10.20 and later -Ae
3796 # HP-UX older versions -Aa -D_HPUX_SOURCE
3797 # SVR4 -Xc -D__EXTENSIONS__
3798 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3799 do
3800 CC="$ac_save_CC $ac_arg"
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cc_stdc=$ac_arg
3824 break
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 fi
3830 rm -f conftest.err conftest.$ac_objext
3831 done
3832 rm -f conftest.$ac_ext conftest.$ac_objext
3833 CC=$ac_save_CC
3834
3835 fi
3836
3837 case "x$ac_cv_prog_cc_stdc" in
3838 x|xno)
3839 echo "$as_me:$LINENO: result: none needed" >&5
3840 echo "${ECHO_T}none needed" >&6 ;;
3841 *)
3842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3843 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3844 CC="$CC $ac_cv_prog_cc_stdc" ;;
3845 esac
3846
3847 # Some people use a C++ compiler to compile C. Since we use `exit',
3848 # in C++ we need to declare it. In case someone uses the same compiler
3849 # for both compiling C and C++ we need to have the C++ compiler decide
3850 # the declaration of exit, since it's the most demanding environment.
3851 cat >conftest.$ac_ext <<_ACEOF
3852 #ifndef __cplusplus
3853 choke me
3854 #endif
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 for ac_declaration in \
3879 '' \
3880 'extern "C" void std::exit (int) throw (); using std::exit;' \
3881 'extern "C" void std::exit (int); using std::exit;' \
3882 'extern "C" void exit (int) throw ();' \
3883 'extern "C" void exit (int);' \
3884 'void exit (int);'
3885 do
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 $ac_declaration
3893 #include <stdlib.h>
3894 int
3895 main ()
3896 {
3897 exit (42);
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 rm -f conftest.$ac_objext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 :
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 continue
3930 fi
3931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932 cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 $ac_declaration
3939 int
3940 main ()
3941 {
3942 exit (42);
3943 ;
3944 return 0;
3945 }
3946 _ACEOF
3947 rm -f conftest.$ac_objext
3948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3949 (eval $ac_compile) 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag"
3957 || test ! -s conftest.err'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest.$ac_objext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 break
3970 else
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974 fi
3975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3976 done
3977 rm -f conftest*
3978 if test -n "$ac_declaration"; then
3979 echo '#ifdef __cplusplus' >>confdefs.h
3980 echo $ac_declaration >>confdefs.h
3981 echo '#endif' >>confdefs.h
3982 fi
3983
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 fi
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995
3996
3997 cat >>confdefs.h <<\_ACEOF
3998 #define _GNU_SOURCE 1
3999 _ACEOF
4000
4001
4002
4003
4004
4005 macro_version='2.1a'
4006 macro_revision='1.2435'
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019 ltmain="$ac_aux_dir/ltmain.sh"
4020
4021 # Set options
4022
4023 enable_dlopen=no
4024
4025
4026 enable_win32_dll=no
4027
4028
4029 # Check whether --enable-shared or --disable-shared was given.
4030 if test "${enable_shared+set}" = set; then
4031 enableval="$enable_shared"
4032 p=${PACKAGE-default}
4033 case $enableval in
4034 yes) enable_shared=yes ;;
4035 no) enable_shared=no ;;
4036 *)
4037 enable_shared=no
4038 # Look at the argument we got. We use all the common list separators.
4039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4040 for pkg in $enableval; do
4041 IFS="$lt_save_ifs"
4042 if test "X$pkg" = "X$p"; then
4043 enable_shared=yes
4044 fi
4045 done
4046 IFS="$lt_save_ifs"
4047 ;;
4048 esac
4049 else
4050 enable_shared=yes
4051 fi;
4052
4053
4054
4055
4056
4057
4058
4059
4060 # Check whether --enable-static or --disable-static was given.
4061 if test "${enable_static+set}" = set; then
4062 enableval="$enable_static"
4063 p=${PACKAGE-default}
4064 case $enableval in
4065 yes) enable_static=yes ;;
4066 no) enable_static=no ;;
4067 *)
4068 enable_static=no
4069 # Look at the argument we got. We use all the common list separators.
4070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4071 for pkg in $enableval; do
4072 IFS="$lt_save_ifs"
4073 if test "X$pkg" = "X$p"; then
4074 enable_static=yes
4075 fi
4076 done
4077 IFS="$lt_save_ifs"
4078 ;;
4079 esac
4080 else
4081 enable_static=yes
4082 fi;
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092 # Check whether --with-pic or --without-pic was given.
4093 if test "${with_pic+set}" = set; then
4094 withval="$with_pic"
4095 pic_mode="$withval"
4096 else
4097 pic_mode=default
4098 fi;
4099
4100 test -z "$pic_mode" && pic_mode=default
4101
4102
4103
4104
4105
4106
4107
4108 # Check whether --enable-fast-install or --disable-fast-install was given.
4109 if test "${enable_fast_install+set}" = set; then
4110 enableval="$enable_fast_install"
4111 p=${PACKAGE-default}
4112 case $enableval in
4113 yes) enable_fast_install=yes ;;
4114 no) enable_fast_install=no ;;
4115 *)
4116 enable_fast_install=no
4117 # Look at the argument we got. We use all the common list separators.
4118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4119 for pkg in $enableval; do
4120 IFS="$lt_save_ifs"
4121 if test "X$pkg" = "X$p"; then
4122 enable_fast_install=yes
4123 fi
4124 done
4125 IFS="$lt_save_ifs"
4126 ;;
4127 esac
4128 else
4129 enable_fast_install=yes
4130 fi;
4131
4132
4133
4134
4135
4136
4137
4138
4139 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4140 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4141 if test "${lt_cv_path_SED+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 # Loop through the user's path and test for sed and gsed.
4145 # Then use that list of sed's as ones to test for truncation.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for lt_ac_prog in sed gsed; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4154 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4155 fi
4156 done
4157 done
4158 done
4159 IFS=$as_save_IFS
4160 lt_ac_max=0
4161 lt_ac_count=0
4162 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4163 # along with /bin/sed that truncates output.
4164 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4165 test ! -f $lt_ac_sed && continue
4166 cat /dev/null > conftest.in
4167 lt_ac_count=0
4168 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4169 # Check for GNU sed and select it if it is found.
4170 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4171 lt_cv_path_SED=$lt_ac_sed
4172 break
4173 fi
4174 while true; do
4175 cat conftest.in conftest.in >conftest.tmp
4176 mv conftest.tmp conftest.in
4177 cp conftest.in conftest.nl
4178 echo >>conftest.nl
4179 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4180 cmp -s conftest.out conftest.nl || break
4181 # 10000 chars as input seems more than enough
4182 test $lt_ac_count -gt 10 && break
4183 lt_ac_count=`expr $lt_ac_count + 1`
4184 if test $lt_ac_count -gt $lt_ac_max; then
4185 lt_ac_max=$lt_ac_count
4186 lt_cv_path_SED=$lt_ac_sed
4187 fi
4188 done
4189 done
4190
4191 fi
4192
4193 SED=$lt_cv_path_SED
4194
4195 echo "$as_me:$LINENO: result: $SED" >&5
4196 echo "${ECHO_T}$SED" >&6
4197
4198 test -z "$SED" && SED=sed
4199 Xsed="$SED -e 1s/^X//"
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211 echo "$as_me:$LINENO: checking for egrep" >&5
4212 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4213 if test "${ac_cv_prog_egrep+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4217 then ac_cv_prog_egrep='grep -E'
4218 else ac_cv_prog_egrep='egrep'
4219 fi
4220 fi
4221 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4222 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4223 EGREP=$ac_cv_prog_egrep
4224
4225
4226 echo "$as_me:$LINENO: checking for fgrep" >&5
4227 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4228 if test "${ac_cv_prog_fgrep+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4232 then ac_cv_prog_fgrep='grep -F'
4233 else ac_cv_prog_fgrep='fgrep'
4234 fi
4235 fi
4236 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4237 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4238 FGREP=$ac_cv_prog_fgrep
4239
4240
4241 test -z "$GREP" && GREP=grep
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4262 if test "${with_gnu_ld+set}" = set; then
4263 withval="$with_gnu_ld"
4264 test "$withval" = no || with_gnu_ld=yes
4265 else
4266 with_gnu_ld=no
4267 fi;
4268 ac_prog=ld
4269 if test "$GCC" = yes; then
4270 # Check if gcc -print-prog-name=ld gives a path.
4271 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4273 case $host in
4274 *-*-mingw*)
4275 # gcc leaves a trailing carriage return which upsets mingw
4276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4277 *)
4278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4279 esac
4280 case $ac_prog in
4281 # Accept absolute paths.
4282 [\\/]* | ?:[\\/]*)
4283 re_direlt='/[^/][^/]*/\.\./'
4284 # Canonicalize the pathname of ld
4285 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4286 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4287 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4288 done
4289 test -z "$LD" && LD="$ac_prog"
4290 ;;
4291 "")
4292 # If it fails, then pretend we aren't using GCC.
4293 ac_prog=ld
4294 ;;
4295 *)
4296 # If it is relative, then search for the first ld in PATH.
4297 with_gnu_ld=unknown
4298 ;;
4299 esac
4300 elif test "$with_gnu_ld" = yes; then
4301 echo "$as_me:$LINENO: checking for GNU ld" >&5
4302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4303 else
4304 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4306 fi
4307 if test "${lt_cv_path_LD+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 if test -z "$LD"; then
4311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4312 for ac_dir in $PATH; do
4313 IFS="$lt_save_ifs"
4314 test -z "$ac_dir" && ac_dir=.
4315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4316 lt_cv_path_LD="$ac_dir/$ac_prog"
4317 # Check to see if the program is GNU ld. I'd rather use --version,
4318 # but apparently some variants of GNU ld only accept -v.
4319 # Break only if it was the GNU/non-GNU ld that we prefer.
4320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4321 *GNU* | *'with BFD'*)
4322 test "$with_gnu_ld" != no && break
4323 ;;
4324 *)
4325 test "$with_gnu_ld" != yes && break
4326 ;;
4327 esac
4328 fi
4329 done
4330 IFS="$lt_save_ifs"
4331 else
4332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4333 fi
4334 fi
4335
4336 LD="$lt_cv_path_LD"
4337 if test -n "$LD"; then
4338 echo "$as_me:$LINENO: result: $LD" >&5
4339 echo "${ECHO_T}$LD" >&6
4340 else
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4343 fi
4344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4346 { (exit 1); exit 1; }; }
4347 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4353 case `$LD -v 2>&1 </dev/null` in
4354 *GNU* | *'with BFD'*)
4355 lt_cv_prog_gnu_ld=yes
4356 ;;
4357 *)
4358 lt_cv_prog_gnu_ld=no
4359 ;;
4360 esac
4361 fi
4362 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4364 with_gnu_ld=$lt_cv_prog_gnu_ld
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4376 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4377 if test "${lt_cv_path_NM+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 if test -n "$NM"; then
4381 # Let the user override the test.
4382 lt_cv_path_NM="$NM"
4383 else
4384 lt_nm_to_check="${ac_tool_prefix}nm"
4385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4386 lt_nm_to_check="$lt_nm_to_check nm"
4387 fi
4388 for lt_tmp_nm in $lt_nm_to_check; do
4389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4391 IFS="$lt_save_ifs"
4392 test -z "$ac_dir" && ac_dir=.
4393 tmp_nm="$ac_dir/$lt_tmp_nm"
4394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4395 # Check to see if the nm accepts a BSD-compat flag.
4396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4397 # nm: unknown option "B" ignored
4398 # Tru64's nm complains that /dev/null is an invalid object file
4399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4400 */dev/null* | *'Invalid file or object type'*)
4401 lt_cv_path_NM="$tmp_nm -B"
4402 break
4403 ;;
4404 *)
4405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4406 */dev/null*)
4407 lt_cv_path_NM="$tmp_nm -p"
4408 break
4409 ;;
4410 *)
4411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4412 continue # so that we can try to find one that supports BSD flags
4413 ;;
4414 esac
4415 ;;
4416 esac
4417 fi
4418 done
4419 IFS="$lt_save_ifs"
4420 done
4421 : ${lt_cv_path_NM=no}
4422 fi
4423 fi
4424 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4425 echo "${ECHO_T}$lt_cv_path_NM" >&6
4426 if test "$lt_cv_path_NM" != "no"; then
4427 NM="$lt_cv_path_NM"
4428 else
4429 # Didn't find any BSD compatible name lister, look for dumpbin.
4430 if test -n "$ac_tool_prefix"; then
4431 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4432 do
4433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4435 echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4437 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 if test -n "$DUMPBIN"; then
4441 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454 done
4455 done
4456
4457 fi
4458 fi
4459 DUMPBIN=$ac_cv_prog_DUMPBIN
4460 if test -n "$DUMPBIN"; then
4461 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4462 echo "${ECHO_T}$DUMPBIN" >&6
4463 else
4464 echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4466 fi
4467
4468 test -n "$DUMPBIN" && break
4469 done
4470 fi
4471 if test -z "$DUMPBIN"; then
4472 ac_ct_DUMPBIN=$DUMPBIN
4473 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4474 do
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476 set dummy $ac_prog; ac_word=$2
4477 echo "$as_me:$LINENO: checking for $ac_word" >&5
4478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4479 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482 if test -n "$ac_ct_DUMPBIN"; then
4483 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496 done
4497 done
4498
4499 fi
4500 fi
4501 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4502 if test -n "$ac_ct_DUMPBIN"; then
4503 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4504 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4508 fi
4509
4510 test -n "$ac_ct_DUMPBIN" && break
4511 done
4512 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4513
4514 DUMPBIN=$ac_ct_DUMPBIN
4515 fi
4516
4517
4518 if test "$DUMPBIN" != ":"; then
4519 NM="$DUMPBIN"
4520 fi
4521 fi
4522 test -z "$NM" && NM=nm
4523
4524
4525
4526
4527
4528
4529 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4530 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4531 if test "${lt_cv_nm_interface+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 lt_cv_nm_interface="BSD nm"
4535 echo "int some_variable = 0;" > conftest.$ac_ext
4536 (eval echo "\"\$as_me:4536: $ac_compile\"" >&5)
4537 (eval "$ac_compile" 2>conftest.err)
4538 cat conftest.err >&5
4539 (eval echo "\"\$as_me:4539: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4541 cat conftest.err >&5
4542 (eval echo "\"\$as_me:4542: output\"" >&5)
4543 cat conftest.out >&5
4544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4545 lt_cv_nm_interface="MS dumpbin"
4546 fi
4547 rm -f conftest*
4548 fi
4549 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4550 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4551
4552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4554 LN_S=$as_ln_s
4555 if test "$LN_S" = "ln -s"; then
4556 echo "$as_me:$LINENO: result: yes" >&5
4557 echo "${ECHO_T}yes" >&6
4558 else
4559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4560 echo "${ECHO_T}no, using $LN_S" >&6
4561 fi
4562
4563 # find the maximum length of command line arguments
4564 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4565 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 i=0
4570 teststring="ABCD"
4571
4572 case $build_os in
4573 msdosdjgpp*)
4574 # On DJGPP, this test can blow up pretty badly due to problems in libc
4575 # (any single argument exceeding 2000 bytes causes a buffer overrun
4576 # during glob expansion). Even if it were fixed, the result of this
4577 # check would be larger than it should be.
4578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4579 ;;
4580
4581 gnu*)
4582 # Under GNU Hurd, this test is not required because there is
4583 # no limit to the length of command line arguments.
4584 # Libtool will interpret -1 as no limit whatsoever
4585 lt_cv_sys_max_cmd_len=-1;
4586 ;;
4587
4588 cygwin* | mingw*)
4589 # On Win9x/ME, this test blows up -- it succeeds, but takes
4590 # about 5 minutes as the teststring grows exponentially.
4591 # Worse, since 9x/ME are not pre-emptively multitasking,
4592 # you end up with a "frozen" computer, even though with patience
4593 # the test eventually succeeds (with a max line length of 256k).
4594 # Instead, let's just punt: use the minimum linelength reported by
4595 # all of the supported platforms: 8192 (on NT/2K/XP).
4596 lt_cv_sys_max_cmd_len=8192;
4597 ;;
4598
4599 amigaos*)
4600 # On AmigaOS with pdksh, this test takes hours, literally.
4601 # So we just punt and use a minimum line length of 8192.
4602 lt_cv_sys_max_cmd_len=8192;
4603 ;;
4604
4605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4606 # This has been around since 386BSD, at least. Likely further.
4607 if test -x /sbin/sysctl; then
4608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4609 elif test -x /usr/sbin/sysctl; then
4610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4611 else
4612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4613 fi
4614 # And add a safety zone
4615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4617 ;;
4618
4619 interix*)
4620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4621 lt_cv_sys_max_cmd_len=196608
4622 ;;
4623
4624 osf*)
4625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4627 # nice to cause kernel panics so lets avoid the loop below.
4628 # First set a reasonable default.
4629 lt_cv_sys_max_cmd_len=16384
4630 #
4631 if test -x /sbin/sysconfig; then
4632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4634 esac
4635 fi
4636 ;;
4637 sco3.2v5*)
4638 lt_cv_sys_max_cmd_len=102400
4639 ;;
4640 sysv5* | sco5v6* | sysv4.2uw2*)
4641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4642 if test -n "$kargmax"; then
4643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4644 else
4645 lt_cv_sys_max_cmd_len=32768
4646 fi
4647 ;;
4648 *)
4649 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4650 if test -n $lt_cv_sys_max_cmd_len; then
4651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4653 else
4654 # Make teststring a little bigger before we do anything with it.
4655 # a 1K string should be a reasonable start.
4656 for i in 1 2 3 4 5 6 7 8 ; do
4657 teststring=$teststring$teststring
4658 done
4659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4660 # If test is not a shell built-in, we'll probably end up computing a
4661 # maximum length that is only half of the actual maximum length, but
4662 # we can't tell.
4663 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4664 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4665 test $i != 17 # 1/2 MB should be enough
4666 do
4667 i=`expr $i + 1`
4668 teststring=$teststring$teststring
4669 done
4670 # Only check the string length outside the loop.
4671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4672 teststring=
4673 # Add a significant safety factor because C++ compilers can tack on
4674 # massive amounts of additional arguments before passing them to the
4675 # linker. It appears as though 1/2 is a usable value.
4676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4677 fi
4678 ;;
4679 esac
4680
4681 fi
4682
4683 if test -n $lt_cv_sys_max_cmd_len ; then
4684 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4685 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4686 else
4687 echo "$as_me:$LINENO: result: none" >&5
4688 echo "${ECHO_T}none" >&6
4689 fi
4690 max_cmd_len=$lt_cv_sys_max_cmd_len
4691
4692
4693
4694
4695
4696
4697
4698 : ${CP="cp -f"}
4699 : ${MV="mv -f"}
4700 : ${RM="rm -f"}
4701
4702 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4703 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4704 # Try some XSI features
4705 xsi_shell=no
4706 ( _lt_dummy="a/b/c"
4707 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4708 = c,a/b,, ) >/dev/null 2>&1 \
4709 && xsi_shell=yes
4710 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4711 echo "${ECHO_T}$xsi_shell" >&6
4712
4713
4714 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4715 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4716 lt_shell_append=no
4717 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4718 >/dev/null 2>&1 \
4719 && lt_shell_append=yes
4720 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4721 echo "${ECHO_T}$lt_shell_append" >&6
4722
4723
4724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4725 lt_unset=unset
4726 else
4727 lt_unset=false
4728 fi
4729
4730
4731
4732
4733
4734 # test EBCDIC or ASCII
4735 case `echo X|tr X '\101'` in
4736 A) # ASCII based system
4737 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4738 lt_SP2NL='tr \040 \012'
4739 lt_NL2SP='tr \015\012 \040\040'
4740 ;;
4741 *) # EBCDIC based system
4742 lt_SP2NL='tr \100 \n'
4743 lt_NL2SP='tr \r\n \100\100'
4744 ;;
4745 esac
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4756 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4757 if test "${lt_cv_ld_reload_flag+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 lt_cv_ld_reload_flag='-r'
4761 fi
4762 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4763 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4764 reload_flag=$lt_cv_ld_reload_flag
4765 case $reload_flag in
4766 "" | " "*) ;;
4767 *) reload_flag=" $reload_flag" ;;
4768 esac
4769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4770 case $host_os in
4771 darwin*)
4772 if test "$GCC" = yes; then
4773 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4774 else
4775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4776 fi
4777 ;;
4778 esac
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4790 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4791 if test "${lt_cv_deplibs_check_method+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 lt_cv_file_magic_cmd='$MAGIC_CMD'
4795 lt_cv_file_magic_test_file=
4796 lt_cv_deplibs_check_method='unknown'
4797 # Need to set the preceding variable on all platforms that support
4798 # interlibrary dependencies.
4799 # 'none' -- dependencies not supported.
4800 # `unknown' -- same as none, but documents that we really don't know.
4801 # 'pass_all' -- all dependencies passed with no checks.
4802 # 'test_compile' -- check by making test program.
4803 # 'file_magic [[regex]]' -- check by looking for files in library path
4804 # which responds to the $file_magic_cmd with a given extended regex.
4805 # If you have `file' or equivalent on your system and you're not sure
4806 # whether `pass_all' will *always* work, you probably want this one.
4807
4808 case $host_os in
4809 aix[4-9]*)
4810 lt_cv_deplibs_check_method=pass_all
4811 ;;
4812
4813 beos*)
4814 lt_cv_deplibs_check_method=pass_all
4815 ;;
4816
4817 bsdi[45]*)
4818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4819 lt_cv_file_magic_cmd='/usr/bin/file -L'
4820 lt_cv_file_magic_test_file=/shlib/libc.so
4821 ;;
4822
4823 cygwin*)
4824 # func_win32_libid is a shell function defined in ltmain.sh
4825 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4826 lt_cv_file_magic_cmd='func_win32_libid'
4827 ;;
4828
4829 mingw* | pw32*)
4830 # Base MSYS/MinGW do not provide the 'file' command needed by
4831 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4832 # unless we find 'file', for example because we are cross-compiling.
4833 if ( file / ) >/dev/null 2>&1; then
4834 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4835 lt_cv_file_magic_cmd='func_win32_libid'
4836 else
4837 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4838 lt_cv_file_magic_cmd='$OBJDUMP -f'
4839 fi
4840 ;;
4841
4842 darwin* | rhapsody*)
4843 lt_cv_deplibs_check_method=pass_all
4844 ;;
4845
4846 freebsd* | dragonfly*)
4847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4848 case $host_cpu in
4849 i*86 )
4850 # Not sure whether the presence of OpenBSD here was a mistake.
4851 # Let's accept both of them until this is cleared up.
4852 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4853 lt_cv_file_magic_cmd=/usr/bin/file
4854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4855 ;;
4856 esac
4857 else
4858 lt_cv_deplibs_check_method=pass_all
4859 fi
4860 ;;
4861
4862 gnu*)
4863 lt_cv_deplibs_check_method=pass_all
4864 ;;
4865
4866 hpux10.20* | hpux11*)
4867 lt_cv_file_magic_cmd=/usr/bin/file
4868 case $host_cpu in
4869 ia64*)
4870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4872 ;;
4873 hppa*64*)
4874 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]'
4875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4876 ;;
4877 *)
4878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4880 ;;
4881 esac
4882 ;;
4883
4884 interix[3-9]*)
4885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4887 ;;
4888
4889 irix5* | irix6* | nonstopux*)
4890 case $LD in
4891 *-32|*"-32 ") libmagic=32-bit;;
4892 *-n32|*"-n32 ") libmagic=N32;;
4893 *-64|*"-64 ") libmagic=64-bit;;
4894 *) libmagic=never-match;;
4895 esac
4896 lt_cv_deplibs_check_method=pass_all
4897 ;;
4898
4899 # This must be Linux ELF.
4900 linux* | k*bsd*-gnu)
4901 lt_cv_deplibs_check_method=pass_all
4902 ;;
4903
4904 netbsd*)
4905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4907 else
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4909 fi
4910 ;;
4911
4912 newos6*)
4913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4914 lt_cv_file_magic_cmd=/usr/bin/file
4915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4916 ;;
4917
4918 *nto* | *qnx*)
4919 lt_cv_deplibs_check_method=pass_all
4920 ;;
4921
4922 openbsd*)
4923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4925 else
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4927 fi
4928 ;;
4929
4930 osf3* | osf4* | osf5*)
4931 lt_cv_deplibs_check_method=pass_all
4932 ;;
4933
4934 rdos*)
4935 lt_cv_deplibs_check_method=pass_all
4936 ;;
4937
4938 solaris*)
4939 lt_cv_deplibs_check_method=pass_all
4940 ;;
4941
4942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4943 lt_cv_deplibs_check_method=pass_all
4944 ;;
4945
4946 sysv4 | sysv4.3*)
4947 case $host_vendor in
4948 motorola)
4949 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]'
4950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4951 ;;
4952 ncr)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
4955 sequent)
4956 lt_cv_file_magic_cmd='/bin/file'
4957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4958 ;;
4959 sni)
4960 lt_cv_file_magic_cmd='/bin/file'
4961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4962 lt_cv_file_magic_test_file=/lib/libc.so
4963 ;;
4964 siemens)
4965 lt_cv_deplibs_check_method=pass_all
4966 ;;
4967 pc)
4968 lt_cv_deplibs_check_method=pass_all
4969 ;;
4970 esac
4971 ;;
4972
4973 tpf*)
4974 lt_cv_deplibs_check_method=pass_all
4975 ;;
4976 esac
4977
4978 fi
4979 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4980 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4981 file_magic_cmd=$lt_cv_file_magic_cmd
4982 deplibs_check_method=$lt_cv_deplibs_check_method
4983 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996 if test -n "$ac_tool_prefix"; then
4997 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4998 set dummy ${ac_tool_prefix}ar; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_AR+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test -n "$AR"; then
5005 ac_cv_prog_AR="$AR" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_AR="${ac_tool_prefix}ar"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018 done
5019 done
5020
5021 fi
5022 fi
5023 AR=$ac_cv_prog_AR
5024 if test -n "$AR"; then
5025 echo "$as_me:$LINENO: result: $AR" >&5
5026 echo "${ECHO_T}$AR" >&6
5027 else
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5030 fi
5031
5032 fi
5033 if test -z "$ac_cv_prog_AR"; then
5034 ac_ct_AR=$AR
5035 # Extract the first word of "ar", so it can be a program name with args.
5036 set dummy ar; ac_word=$2
5037 echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5039 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 if test -n "$ac_ct_AR"; then
5043 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_ac_ct_AR="ar"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5055 fi
5056 done
5057 done
5058
5059 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5060 fi
5061 fi
5062 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5063 if test -n "$ac_ct_AR"; then
5064 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5065 echo "${ECHO_T}$ac_ct_AR" >&6
5066 else
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5069 fi
5070
5071 AR=$ac_ct_AR
5072 else
5073 AR="$ac_cv_prog_AR"
5074 fi
5075
5076 test -z "$AR" && AR=ar
5077 test -z "$AR_FLAGS" && AR_FLAGS=cru
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089 if test -n "$ac_tool_prefix"; then
5090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5091 set dummy ${ac_tool_prefix}strip; ac_word=$2
5092 echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5094 if test "${ac_cv_prog_STRIP+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 if test -n "$STRIP"; then
5098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5110 fi
5111 done
5112 done
5113
5114 fi
5115 fi
5116 STRIP=$ac_cv_prog_STRIP
5117 if test -n "$STRIP"; then
5118 echo "$as_me:$LINENO: result: $STRIP" >&5
5119 echo "${ECHO_T}$STRIP" >&6
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5123 fi
5124
5125 fi
5126 if test -z "$ac_cv_prog_STRIP"; then
5127 ac_ct_STRIP=$STRIP
5128 # Extract the first word of "strip", so it can be a program name with args.
5129 set dummy strip; ac_word=$2
5130 echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 if test -n "$ac_ct_STRIP"; then
5136 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_ac_ct_STRIP="strip"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149 done
5150 done
5151
5152 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5153 fi
5154 fi
5155 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5156 if test -n "$ac_ct_STRIP"; then
5157 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5158 echo "${ECHO_T}$ac_ct_STRIP" >&6
5159 else
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5162 fi
5163
5164 STRIP=$ac_ct_STRIP
5165 else
5166 STRIP="$ac_cv_prog_STRIP"
5167 fi
5168
5169 test -z "$STRIP" && STRIP=:
5170
5171
5172
5173
5174
5175
5176 if test -n "$ac_tool_prefix"; then
5177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5179 echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5181 if test "${ac_cv_prog_RANLIB+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 if test -n "$RANLIB"; then
5185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198 done
5199 done
5200
5201 fi
5202 fi
5203 RANLIB=$ac_cv_prog_RANLIB
5204 if test -n "$RANLIB"; then
5205 echo "$as_me:$LINENO: result: $RANLIB" >&5
5206 echo "${ECHO_T}$RANLIB" >&6
5207 else
5208 echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5210 fi
5211
5212 fi
5213 if test -z "$ac_cv_prog_RANLIB"; then
5214 ac_ct_RANLIB=$RANLIB
5215 # Extract the first word of "ranlib", so it can be a program name with args.
5216 set dummy ranlib; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 if test -n "$ac_ct_RANLIB"; then
5223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ac_ct_RANLIB="ranlib"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236 done
5237 done
5238
5239 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5240 fi
5241 fi
5242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5243 if test -n "$ac_ct_RANLIB"; then
5244 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5245 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5246 else
5247 echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6
5249 fi
5250
5251 RANLIB=$ac_ct_RANLIB
5252 else
5253 RANLIB="$ac_cv_prog_RANLIB"
5254 fi
5255
5256 test -z "$RANLIB" && RANLIB=:
5257
5258
5259
5260
5261
5262
5263 # Determine commands to create old-style static archives.
5264 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5265 old_postinstall_cmds='chmod 644 $oldlib'
5266 old_postuninstall_cmds=
5267
5268 if test -n "$RANLIB"; then
5269 case $host_os in
5270 openbsd*)
5271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5272 ;;
5273 *)
5274 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5275 ;;
5276 esac
5277 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5278 fi
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313 # If no C compiler was specified, use CC.
5314 LTCC=${LTCC-"$CC"}
5315
5316 # If no C compiler flags were specified, use CFLAGS.
5317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5318
5319 # Allow CC to be a program name with arguments.
5320 compiler=$CC
5321
5322
5323 # Check for command to grab the raw symbol name followed by C symbol from nm.
5324 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5325 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5326 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329
5330 # These are sane defaults that work on at least a few old systems.
5331 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5332
5333 # Character class describing NM global symbol codes.
5334 symcode='[BCDEGRST]'
5335
5336 # Regexp to match symbols that can be accessed directly from C.
5337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5338
5339 # Define system-specific variables.
5340 case $host_os in
5341 aix*)
5342 symcode='[BCDT]'
5343 ;;
5344 cygwin* | mingw* | pw32*)
5345 symcode='[ABCDGISTW]'
5346 ;;
5347 hpux*)
5348 if test "$host_cpu" = ia64; then
5349 symcode='[ABCDEGRST]'
5350 fi
5351 ;;
5352 irix* | nonstopux*)
5353 symcode='[BCDEGRST]'
5354 ;;
5355 osf*)
5356 symcode='[BCDEGQRST]'
5357 ;;
5358 solaris*)
5359 symcode='[BDRT]'
5360 ;;
5361 sco3.2v5*)
5362 symcode='[DT]'
5363 ;;
5364 sysv4.2uw2*)
5365 symcode='[DT]'
5366 ;;
5367 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5368 symcode='[ABDT]'
5369 ;;
5370 sysv4)
5371 symcode='[DFNSTU]'
5372 ;;
5373 esac
5374
5375 # If we're using GNU nm, then use its standard symbol codes.
5376 case `$NM -V 2>&1` in
5377 *GNU* | *'with BFD'*)
5378 symcode='[ABCDGIRSTW]' ;;
5379 esac
5380
5381 # Transform an extracted symbol line into a proper C declaration.
5382 # Some systems (esp. on ia64) link data and code symbols differently,
5383 # so use this general approach.
5384 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5385
5386 # Transform an extracted symbol line into symbol name and symbol address
5387 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5388
5389 # Handle CRLF in mingw tool chain
5390 opt_cr=
5391 case $build_os in
5392 mingw*)
5393 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5394 ;;
5395 esac
5396
5397 # Try without a prefix underscore, then with it.
5398 for ac_symprfx in "" "_"; do
5399
5400 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5401 symxfrm="\\1 $ac_symprfx\\2 \\2"
5402
5403 # Write the raw and C identifiers.
5404 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5405 # Fake it for dumpbin and say T for any non-static function
5406 # and D for any global variable.
5407 # Also find C++ and __fastcall symbols from MSVC++,
5408 # which start with @ or ?.
5409 lt_cv_sys_global_symbol_pipe="$AWK '"\
5410 " {last_section=section; section=\$ 3};"\
5411 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5412 " \$ 0!~/External *\|/{next};"\
5413 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5414 " {if(hide[section]) next};"\
5415 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5416 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5417 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5418 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5419 " ' prfx=^$ac_symprfx"
5420 else
5421 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5422 fi
5423
5424 # Check to see that the pipe works correctly.
5425 pipe_works=no
5426
5427 rm -f conftest*
5428 cat > conftest.$ac_ext <<_LT_EOF
5429 #ifdef __cplusplus
5430 extern "C" {
5431 #endif
5432 char nm_test_var;
5433 void nm_test_func(void);
5434 void nm_test_func(void){}
5435 #ifdef __cplusplus
5436 }
5437 #endif
5438 int main(){nm_test_var='a';nm_test_func();return(0);}
5439 _LT_EOF
5440
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; then
5446 # Now try to grab the symbols.
5447 nlist=conftest.nm
5448 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5449 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && test -s "$nlist"; then
5453 # Try sorting and uniquifying the output.
5454 if sort "$nlist" | uniq > "$nlist"T; then
5455 mv -f "$nlist"T "$nlist"
5456 else
5457 rm -f "$nlist"T
5458 fi
5459
5460 # Make sure that we snagged all the symbols we need.
5461 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5462 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5463 cat <<_LT_EOF > conftest.$ac_ext
5464 #ifdef __cplusplus
5465 extern "C" {
5466 #endif
5467
5468 _LT_EOF
5469 # Now generate the symbol file.
5470 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5471
5472 cat <<_LT_EOF >> conftest.$ac_ext
5473
5474 /* The mapping between symbol names and symbols. */
5475 const struct {
5476 const char *name;
5477 void *address;
5478 }
5479 lt__PROGRAM__LTX_preloaded_symbols[] =
5480 {
5481 { "@PROGRAM@", (void *) 0 },
5482 _LT_EOF
5483 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5484 cat <<\_LT_EOF >> conftest.$ac_ext
5485 {0, (void *) 0}
5486 };
5487
5488 /* This works around a problem in FreeBSD linker */
5489 #ifdef FREEBSD_WORKAROUND
5490 static const void *lt_preloaded_setup() {
5491 return lt__PROGRAM__LTX_preloaded_symbols;
5492 }
5493 #endif
5494
5495 #ifdef __cplusplus
5496 }
5497 #endif
5498 _LT_EOF
5499 # Now try linking the two files.
5500 mv conftest.$ac_objext conftstm.$ac_objext
5501 lt_save_LIBS="$LIBS"
5502 lt_save_CFLAGS="$CFLAGS"
5503 LIBS="conftstm.$ac_objext"
5504 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5510 pipe_works=yes
5511 fi
5512 LIBS="$lt_save_LIBS"
5513 CFLAGS="$lt_save_CFLAGS"
5514 else
5515 echo "cannot find nm_test_func in $nlist" >&5
5516 fi
5517 else
5518 echo "cannot find nm_test_var in $nlist" >&5
5519 fi
5520 else
5521 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5522 fi
5523 else
5524 echo "$progname: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5526 fi
5527 rm -f conftest* conftst*
5528
5529 # Do not use the global_symbol_pipe unless it works.
5530 if test "$pipe_works" = yes; then
5531 break
5532 else
5533 lt_cv_sys_global_symbol_pipe=
5534 fi
5535 done
5536
5537 fi
5538
5539 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5540 lt_cv_sys_global_symbol_to_cdecl=
5541 fi
5542 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5543 echo "$as_me:$LINENO: result: failed" >&5
5544 echo "${ECHO_T}failed" >&6
5545 else
5546 echo "$as_me:$LINENO: result: ok" >&5
5547 echo "${ECHO_T}ok" >&6
5548 fi
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5567 if test "${enable_libtool_lock+set}" = set; then
5568 enableval="$enable_libtool_lock"
5569
5570 fi;
5571 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5572
5573 # Some flags need to be propagated to the compiler or linker for good
5574 # libtool support.
5575 case $host in
5576 ia64-*-hpux*)
5577 # Find out which ABI we are using.
5578 echo 'int i;' > conftest.$ac_ext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; then
5584 case `/usr/bin/file conftest.$ac_objext` in
5585 *ELF-32*)
5586 HPUX_IA64_MODE="32"
5587 ;;
5588 *ELF-64*)
5589 HPUX_IA64_MODE="64"
5590 ;;
5591 esac
5592 fi
5593 rm -rf conftest*
5594 ;;
5595 *-*-irix6*)
5596 # Find out which ABI we are using.
5597 echo '#line 5597 "configure"' > conftest.$ac_ext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; then
5603 if test "$lt_cv_prog_gnu_ld" = yes; then
5604 case `/usr/bin/file conftest.$ac_objext` in
5605 *32-bit*)
5606 LD="${LD-ld} -melf32bsmip"
5607 ;;
5608 *N32*)
5609 LD="${LD-ld} -melf32bmipn32"
5610 ;;
5611 *64-bit*)
5612 LD="${LD-ld} -melf64bmip"
5613 ;;
5614 esac
5615 else
5616 case `/usr/bin/file conftest.$ac_objext` in
5617 *32-bit*)
5618 LD="${LD-ld} -32"
5619 ;;
5620 *N32*)
5621 LD="${LD-ld} -n32"
5622 ;;
5623 *64-bit*)
5624 LD="${LD-ld} -64"
5625 ;;
5626 esac
5627 fi
5628 fi
5629 rm -rf conftest*
5630 ;;
5631
5632 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5633 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5634 # Find out which ABI we are using.
5635 echo 'int i;' > conftest.$ac_ext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; then
5641 case `/usr/bin/file conftest.o` in
5642 *32-bit*)
5643 case $host in
5644 x86_64-*kfreebsd*-gnu)
5645 LD="${LD-ld} -m elf_i386_fbsd"
5646 ;;
5647 x86_64-*linux*)
5648 LD="${LD-ld} -m elf_i386"
5649 ;;
5650 ppc64-*linux*|powerpc64-*linux*)
5651 LD="${LD-ld} -m elf32ppclinux"
5652 ;;
5653 s390x-*linux*)
5654 LD="${LD-ld} -m elf_s390"
5655 ;;
5656 sparc64-*linux*)
5657 LD="${LD-ld} -m elf32_sparc"
5658 ;;
5659 esac
5660 ;;
5661 *64-bit*)
5662 case $host in
5663 x86_64-*kfreebsd*-gnu)
5664 LD="${LD-ld} -m elf_x86_64_fbsd"
5665 ;;
5666 x86_64-*linux*)
5667 LD="${LD-ld} -m elf_x86_64"
5668 ;;
5669 ppc*-*linux*|powerpc*-*linux*)
5670 LD="${LD-ld} -m elf64ppc"
5671 ;;
5672 s390*-*linux*|s390*-*tpf*)
5673 LD="${LD-ld} -m elf64_s390"
5674 ;;
5675 sparc*-*linux*)
5676 LD="${LD-ld} -m elf64_sparc"
5677 ;;
5678 esac
5679 ;;
5680 esac
5681 fi
5682 rm -rf conftest*
5683 ;;
5684
5685 *-*-sco3.2v5*)
5686 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5687 SAVE_CFLAGS="$CFLAGS"
5688 CFLAGS="$CFLAGS -belf"
5689 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5690 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5691 if test "${lt_cv_cc_needs_belf+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 ac_ext=c
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706
5707 int
5708 main ()
5709 {
5710
5711 ;
5712 return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 lt_cv_cc_needs_belf=yes
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5741
5742 lt_cv_cc_needs_belf=no
5743 fi
5744 rm -f conftest.err conftest.$ac_objext \
5745 conftest$ac_exeext conftest.$ac_ext
5746 ac_ext=c
5747 ac_cpp='$CPP $CPPFLAGS'
5748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751
5752 fi
5753 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5754 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5757 CFLAGS="$SAVE_CFLAGS"
5758 fi
5759 ;;
5760 sparc*-*solaris*)
5761 # Find out which ABI we are using.
5762 echo 'int i;' > conftest.$ac_ext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; then
5768 case `/usr/bin/file conftest.o` in
5769 *64-bit*)
5770 case $lt_cv_prog_gnu_ld in
5771 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5772 *) LD="${LD-ld} -64" ;;
5773 esac
5774 ;;
5775 esac
5776 fi
5777 rm -rf conftest*
5778 ;;
5779 esac
5780
5781 need_locks="$enable_libtool_lock"
5782
5783 ac_ext=c
5784 ac_cpp='$CPP $CPPFLAGS'
5785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5790 # On Suns, sometimes $CPP names a directory.
5791 if test -n "$CPP" && test -d "$CPP"; then
5792 CPP=
5793 fi
5794 if test -z "$CPP"; then
5795 if test "${ac_cv_prog_CPP+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 # Double quotes because CPP needs to be expanded
5799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5800 do
5801 ac_preproc_ok=false
5802 for ac_c_preproc_warn_flag in '' yes
5803 do
5804 # Use a header file that comes with gcc, so configuring glibc
5805 # with a fresh cross-compiler works.
5806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5807 # <limits.h> exists even on freestanding compilers.
5808 # On the NeXT, cc -E runs the code through the compiler's parser,
5809 # not just through cpp. "Syntax error" is here to catch this case.
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #ifdef __STDC__
5817 # include <limits.h>
5818 #else
5819 # include <assert.h>
5820 #endif
5821 Syntax error
5822 _ACEOF
5823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } >/dev/null; then
5831 if test -s conftest.err; then
5832 ac_cpp_err=$ac_c_preproc_warn_flag
5833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5834 else
5835 ac_cpp_err=
5836 fi
5837 else
5838 ac_cpp_err=yes
5839 fi
5840 if test -z "$ac_cpp_err"; then
5841 :
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 # Broken: fails on valid input.
5847 continue
5848 fi
5849 rm -f conftest.err conftest.$ac_ext
5850
5851 # OK, works on sane cases. Now check whether non-existent headers
5852 # can be detected and how.
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <ac_nonexistent.h>
5860 _ACEOF
5861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } >/dev/null; then
5869 if test -s conftest.err; then
5870 ac_cpp_err=$ac_c_preproc_warn_flag
5871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5872 else
5873 ac_cpp_err=
5874 fi
5875 else
5876 ac_cpp_err=yes
5877 fi
5878 if test -z "$ac_cpp_err"; then
5879 # Broken: success on invalid input.
5880 continue
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 # Passes both tests.
5886 ac_preproc_ok=:
5887 break
5888 fi
5889 rm -f conftest.err conftest.$ac_ext
5890
5891 done
5892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5893 rm -f conftest.err conftest.$ac_ext
5894 if $ac_preproc_ok; then
5895 break
5896 fi
5897
5898 done
5899 ac_cv_prog_CPP=$CPP
5900
5901 fi
5902 CPP=$ac_cv_prog_CPP
5903 else
5904 ac_cv_prog_CPP=$CPP
5905 fi
5906 echo "$as_me:$LINENO: result: $CPP" >&5
5907 echo "${ECHO_T}$CPP" >&6
5908 ac_preproc_ok=false
5909 for ac_c_preproc_warn_flag in '' yes
5910 do
5911 # Use a header file that comes with gcc, so configuring glibc
5912 # with a fresh cross-compiler works.
5913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5914 # <limits.h> exists even on freestanding compilers.
5915 # On the NeXT, cc -E runs the code through the compiler's parser,
5916 # not just through cpp. "Syntax error" is here to catch this case.
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #ifdef __STDC__
5924 # include <limits.h>
5925 #else
5926 # include <assert.h>
5927 #endif
5928 Syntax error
5929 _ACEOF
5930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } >/dev/null; then
5938 if test -s conftest.err; then
5939 ac_cpp_err=$ac_c_preproc_warn_flag
5940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5941 else
5942 ac_cpp_err=
5943 fi
5944 else
5945 ac_cpp_err=yes
5946 fi
5947 if test -z "$ac_cpp_err"; then
5948 :
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 # Broken: fails on valid input.
5954 continue
5955 fi
5956 rm -f conftest.err conftest.$ac_ext
5957
5958 # OK, works on sane cases. Now check whether non-existent headers
5959 # can be detected and how.
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <ac_nonexistent.h>
5967 _ACEOF
5968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } >/dev/null; then
5976 if test -s conftest.err; then
5977 ac_cpp_err=$ac_c_preproc_warn_flag
5978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5979 else
5980 ac_cpp_err=
5981 fi
5982 else
5983 ac_cpp_err=yes
5984 fi
5985 if test -z "$ac_cpp_err"; then
5986 # Broken: success on invalid input.
5987 continue
5988 else
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5991
5992 # Passes both tests.
5993 ac_preproc_ok=:
5994 break
5995 fi
5996 rm -f conftest.err conftest.$ac_ext
5997
5998 done
5999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6000 rm -f conftest.err conftest.$ac_ext
6001 if $ac_preproc_ok; then
6002 :
6003 else
6004 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6005 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6007 See \`config.log' for more details." >&5
6008 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6009 See \`config.log' for more details." >&2;}
6010 { (exit 1); exit 1; }; }; }
6011 fi
6012
6013 ac_ext=c
6014 ac_cpp='$CPP $CPPFLAGS'
6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019
6020 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6021 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6022 if test "${ac_cv_header_stdc+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <stdlib.h>
6032 #include <stdarg.h>
6033 #include <string.h>
6034 #include <float.h>
6035
6036 int
6037 main ()
6038 {
6039
6040 ;
6041 return 0;
6042 }
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -z "$ac_c_werror_flag"
6054 || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_header_stdc=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 ac_cv_header_stdc=no
6072 fi
6073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6074
6075 if test $ac_cv_header_stdc = yes; then
6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <string.h>
6084
6085 _ACEOF
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "memchr" >/dev/null 2>&1; then
6088 :
6089 else
6090 ac_cv_header_stdc=no
6091 fi
6092 rm -f conftest*
6093
6094 fi
6095
6096 if test $ac_cv_header_stdc = yes; then
6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <stdlib.h>
6105
6106 _ACEOF
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "free" >/dev/null 2>&1; then
6109 :
6110 else
6111 ac_cv_header_stdc=no
6112 fi
6113 rm -f conftest*
6114
6115 fi
6116
6117 if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6119 if test "$cross_compiling" = yes; then
6120 :
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <ctype.h>
6129 #if ((' ' & 0x0FF) == 0x020)
6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6132 #else
6133 # define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6138 #endif
6139
6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6141 int
6142 main ()
6143 {
6144 int i;
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6148 exit(2);
6149 exit (0);
6150 }
6151 _ACEOF
6152 rm -f conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 :
6164 else
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 ( exit $ac_status )
6170 ac_cv_header_stdc=no
6171 fi
6172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6173 fi
6174 fi
6175 fi
6176 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6177 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6178 if test $ac_cv_header_stdc = yes; then
6179
6180 cat >>confdefs.h <<\_ACEOF
6181 #define STDC_HEADERS 1
6182 _ACEOF
6183
6184 fi
6185
6186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6197 inttypes.h stdint.h unistd.h
6198 do
6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 echo "$as_me:$LINENO: checking for $ac_header" >&5
6201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6212
6213 #include <$ac_header>
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6217 (eval $ac_compile) 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_c_werror_flag"
6225 || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest.$ac_objext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 eval "$as_ac_Header=yes"
6238 else
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242 eval "$as_ac_Header=no"
6243 fi
6244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245 fi
6246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6251 _ACEOF
6252
6253 fi
6254
6255 done
6256
6257
6258
6259 for ac_header in dlfcn.h
6260 do
6261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6262 echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6274
6275 #include <$ac_header>
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 eval "$as_ac_Header=yes"
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 eval "$as_ac_Header=no"
6305 fi
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6311 cat >>confdefs.h <<_ACEOF
6312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6313 _ACEOF
6314
6315 fi
6316
6317 done
6318
6319
6320
6321 # This can be used to rebuild libtool when needed
6322 LIBTOOL_DEPS="$ltmain"
6323
6324 # Always use our own libtool.
6325 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 test -z "$LN_S" && LN_S="ln -s"
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366 if test -n "${ZSH_VERSION+set}" ; then
6367 setopt NO_GLOB_SUBST
6368 fi
6369
6370 echo "$as_me:$LINENO: checking for objdir" >&5
6371 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6372 if test "${lt_cv_objdir+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 rm -f .libs 2>/dev/null
6376 mkdir .libs 2>/dev/null
6377 if test -d .libs; then
6378 lt_cv_objdir=.libs
6379 else
6380 # MS-DOS does not allow filenames that begin with a dot.
6381 lt_cv_objdir=_libs
6382 fi
6383 rmdir .libs 2>/dev/null
6384 fi
6385 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6386 echo "${ECHO_T}$lt_cv_objdir" >&6
6387 objdir=$lt_cv_objdir
6388
6389
6390
6391
6392
6393 cat >>confdefs.h <<_ACEOF
6394 #define LT_OBJDIR "$lt_cv_objdir/"
6395 _ACEOF
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 case $host_os in
6414 aix3*)
6415 # AIX sometimes has problems with the GCC collect2 program. For some
6416 # reason, if we set the COLLECT_NAMES environment variable, the problems
6417 # vanish in a puff of smoke.
6418 if test "X${COLLECT_NAMES+set}" != Xset; then
6419 COLLECT_NAMES=
6420 export COLLECT_NAMES
6421 fi
6422 ;;
6423 esac
6424
6425 # Sed substitution that helps us do robust quoting. It backslashifies
6426 # metacharacters that are still active within double-quoted strings.
6427 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6428
6429 # Same as above, but do not quote variable references.
6430 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6431
6432 # Sed substitution to delay expansion of an escaped shell variable in a
6433 # double_quote_subst'ed string.
6434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6435
6436 # Sed substitution to delay expansion of an escaped single quote.
6437 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6438
6439 # Sed substitution to avoid accidental globbing in evaled expressions
6440 no_glob_subst='s/\*/\\\*/g'
6441
6442 # Global variables:
6443 ofile=libtool
6444 can_build_shared=yes
6445
6446 # All known linkers require a `.a' archive for static linking (except MSVC,
6447 # which needs '.lib').
6448 libext=a
6449
6450 with_gnu_ld="$lt_cv_prog_gnu_ld"
6451
6452 old_CC="$CC"
6453 old_CFLAGS="$CFLAGS"
6454
6455 # Set sane defaults for various variables
6456 test -z "$CC" && CC=cc
6457 test -z "$LTCC" && LTCC=$CC
6458 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6459 test -z "$LD" && LD=ld
6460 test -z "$ac_objext" && ac_objext=o
6461
6462 for cc_temp in $compiler""; do
6463 case $cc_temp in
6464 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6465 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6466 \-*) ;;
6467 *) break;;
6468 esac
6469 done
6470 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6471
6472
6473 # Only perform the check for file, if the check method requires it
6474 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6475 case $deplibs_check_method in
6476 file_magic*)
6477 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6478 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6479 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6480 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 case $MAGIC_CMD in
6484 [\\/*] | ?:[\\/]*)
6485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6486 ;;
6487 *)
6488 lt_save_MAGIC_CMD="$MAGIC_CMD"
6489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6491 for ac_dir in $ac_dummy; do
6492 IFS="$lt_save_ifs"
6493 test -z "$ac_dir" && ac_dir=.
6494 if test -f $ac_dir/${ac_tool_prefix}file; then
6495 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6496 if test -n "$file_magic_test_file"; then
6497 case $deplibs_check_method in
6498 "file_magic "*)
6499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6502 $EGREP "$file_magic_regex" > /dev/null; then
6503 :
6504 else
6505 cat <<_LT_EOF 1>&2
6506
6507 *** Warning: the command libtool uses to detect shared libraries,
6508 *** $file_magic_cmd, produces output that libtool cannot recognize.
6509 *** The result is that libtool may fail to recognize shared libraries
6510 *** as such. This will affect the creation of libtool libraries that
6511 *** depend on shared libraries, but programs linked with such libtool
6512 *** libraries will work regardless of this problem. Nevertheless, you
6513 *** may want to report the problem to your system manager and/or to
6514 *** bug-libtool@gnu.org
6515
6516 _LT_EOF
6517 fi ;;
6518 esac
6519 fi
6520 break
6521 fi
6522 done
6523 IFS="$lt_save_ifs"
6524 MAGIC_CMD="$lt_save_MAGIC_CMD"
6525 ;;
6526 esac
6527 fi
6528
6529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6530 if test -n "$MAGIC_CMD"; then
6531 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6532 echo "${ECHO_T}$MAGIC_CMD" >&6
6533 else
6534 echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6
6536 fi
6537
6538
6539
6540
6541
6542 if test -z "$lt_cv_path_MAGIC_CMD"; then
6543 if test -n "$ac_tool_prefix"; then
6544 echo "$as_me:$LINENO: checking for file" >&5
6545 echo $ECHO_N "checking for file... $ECHO_C" >&6
6546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 case $MAGIC_CMD in
6550 [\\/*] | ?:[\\/]*)
6551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6552 ;;
6553 *)
6554 lt_save_MAGIC_CMD="$MAGIC_CMD"
6555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6557 for ac_dir in $ac_dummy; do
6558 IFS="$lt_save_ifs"
6559 test -z "$ac_dir" && ac_dir=.
6560 if test -f $ac_dir/file; then
6561 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6562 if test -n "$file_magic_test_file"; then
6563 case $deplibs_check_method in
6564 "file_magic "*)
6565 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6568 $EGREP "$file_magic_regex" > /dev/null; then
6569 :
6570 else
6571 cat <<_LT_EOF 1>&2
6572
6573 *** Warning: the command libtool uses to detect shared libraries,
6574 *** $file_magic_cmd, produces output that libtool cannot recognize.
6575 *** The result is that libtool may fail to recognize shared libraries
6576 *** as such. This will affect the creation of libtool libraries that
6577 *** depend on shared libraries, but programs linked with such libtool
6578 *** libraries will work regardless of this problem. Nevertheless, you
6579 *** may want to report the problem to your system manager and/or to
6580 *** bug-libtool@gnu.org
6581
6582 _LT_EOF
6583 fi ;;
6584 esac
6585 fi
6586 break
6587 fi
6588 done
6589 IFS="$lt_save_ifs"
6590 MAGIC_CMD="$lt_save_MAGIC_CMD"
6591 ;;
6592 esac
6593 fi
6594
6595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6596 if test -n "$MAGIC_CMD"; then
6597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6598 echo "${ECHO_T}$MAGIC_CMD" >&6
6599 else
6600 echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6
6602 fi
6603
6604
6605 else
6606 MAGIC_CMD=:
6607 fi
6608 fi
6609
6610 fi
6611 ;;
6612 esac
6613
6614 # Use C for the default configuration in the libtool script
6615
6616 lt_save_CC="$CC"
6617 ac_ext=c
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622
6623
6624 # Source file extension for C test sources.
6625 ac_ext=c
6626
6627 # Object file extension for compiled C test sources.
6628 objext=o
6629 objext=$objext
6630
6631 # Code to be used in simple compile tests
6632 lt_simple_compile_test_code="int some_variable = 0;"
6633
6634 # Code to be used in simple link tests
6635 lt_simple_link_test_code='int main(){return(0);}'
6636
6637
6638
6639
6640
6641
6642
6643 # If no C compiler was specified, use CC.
6644 LTCC=${LTCC-"$CC"}
6645
6646 # If no C compiler flags were specified, use CFLAGS.
6647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6648
6649 # Allow CC to be a program name with arguments.
6650 compiler=$CC
6651
6652 # Save the default compiler, since it gets overwritten when the other
6653 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6654 compiler_DEFAULT=$CC
6655
6656 # save warnings/boilerplate of simple test code
6657 ac_outfile=conftest.$ac_objext
6658 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6659 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6660 _lt_compiler_boilerplate=`cat conftest.err`
6661 $RM conftest*
6662
6663 ac_outfile=conftest.$ac_objext
6664 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6665 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6666 _lt_linker_boilerplate=`cat conftest.err`
6667 $RM conftest*
6668
6669
6670 ## CAVEAT EMPTOR:
6671 ## There is no encapsulation within the following macros, do not change
6672 ## the running order or otherwise move them around unless you know exactly
6673 ## what you are doing...
6674 if test -n "$compiler"; then
6675
6676 lt_prog_compiler_no_builtin_flag=
6677
6678 if test "$GCC" = yes; then
6679 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6680
6681 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6682 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6683 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 lt_cv_prog_compiler_rtti_exceptions=no
6687 ac_outfile=conftest.$ac_objext
6688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6689 lt_compiler_flag="-fno-rtti -fno-exceptions"
6690 # Insert the option either (1) after the last *FLAGS variable, or
6691 # (2) before a word containing "conftest.", or (3) at the end.
6692 # Note that $ac_compile itself does not contain backslashes and begins
6693 # with a dollar sign (not a hyphen), so the echo should work correctly.
6694 # The option is referenced via a variable to avoid confusing sed.
6695 lt_compile=`echo "$ac_compile" | $SED \
6696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6698 -e 's:$: $lt_compiler_flag:'`
6699 (eval echo "\"\$as_me:6699: $lt_compile\"" >&5)
6700 (eval "$lt_compile" 2>conftest.err)
6701 ac_status=$?
6702 cat conftest.err >&5
6703 echo "$as_me:6703: \$? = $ac_status" >&5
6704 if (exit $ac_status) && test -s "$ac_outfile"; then
6705 # The compiler can only warn and ignore the option if not recognized
6706 # So say no if there are warnings other than the usual output.
6707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6710 lt_cv_prog_compiler_rtti_exceptions=yes
6711 fi
6712 fi
6713 $RM conftest*
6714
6715 fi
6716 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6717 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6718
6719 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6720 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6721 else
6722 :
6723 fi
6724
6725 fi
6726
6727
6728
6729
6730
6731
6732 lt_prog_compiler_wl=
6733 lt_prog_compiler_pic=
6734 lt_prog_compiler_static=
6735
6736 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6737 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6738
6739 if test "$GCC" = yes; then
6740 lt_prog_compiler_wl='-Wl,'
6741 lt_prog_compiler_static='-static'
6742
6743 case $host_os in
6744 aix*)
6745 # All AIX code is PIC.
6746 if test "$host_cpu" = ia64; then
6747 # AIX 5 now supports IA64 processor
6748 lt_prog_compiler_static='-Bstatic'
6749 fi
6750 ;;
6751
6752 amigaos*)
6753 if test "$host_cpu" = m68k; then
6754 # FIXME: we need at least 68020 code to build shared libraries, but
6755 # adding the `-m68020' flag to GCC prevents building anything better,
6756 # like `-m68040'.
6757 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6758 fi
6759 ;;
6760
6761 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6762 # PIC is the default for these OSes.
6763 ;;
6764
6765 mingw* | cygwin* | pw32* | os2*)
6766 # This hack is so that the source file can tell whether it is being
6767 # built for inclusion in a dll (and should export symbols for example).
6768 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6769 # (--disable-auto-import) libraries
6770 lt_prog_compiler_pic='-DDLL_EXPORT'
6771 ;;
6772
6773 darwin* | rhapsody*)
6774 # PIC is the default on this platform
6775 # Common symbols not allowed in MH_DYLIB files
6776 lt_prog_compiler_pic='-fno-common'
6777 ;;
6778
6779 hpux*)
6780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6781 # not for PA HP-UX.
6782 case $host_cpu in
6783 hppa*64*|ia64*)
6784 # +Z the default
6785 ;;
6786 *)
6787 lt_prog_compiler_pic='-fPIC'
6788 ;;
6789 esac
6790 ;;
6791
6792 interix[3-9]*)
6793 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6794 # Instead, we relocate shared libraries at runtime.
6795 ;;
6796
6797 msdosdjgpp*)
6798 # Just because we use GCC doesn't mean we suddenly get shared libraries
6799 # on systems that don't support them.
6800 lt_prog_compiler_can_build_shared=no
6801 enable_shared=no
6802 ;;
6803
6804 *nto* | *qnx*)
6805 # QNX uses GNU C++, but need to define -shared option too, otherwise
6806 # it will coredump.
6807 lt_prog_compiler_pic='-fPIC -shared'
6808 ;;
6809
6810 sysv4*MP*)
6811 if test -d /usr/nec; then
6812 lt_prog_compiler_pic=-Kconform_pic
6813 fi
6814 ;;
6815
6816 *)
6817 lt_prog_compiler_pic='-fPIC'
6818 ;;
6819 esac
6820 else
6821 # PORTME Check for flag to pass linker flags through the system compiler.
6822 case $host_os in
6823 aix*)
6824 lt_prog_compiler_wl='-Wl,'
6825 if test "$host_cpu" = ia64; then
6826 # AIX 5 now supports IA64 processor
6827 lt_prog_compiler_static='-Bstatic'
6828 else
6829 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6830 fi
6831 ;;
6832 darwin*)
6833 # PIC is the default on this platform
6834 # Common symbols not allowed in MH_DYLIB files
6835 case $cc_basename in
6836 xlc*)
6837 lt_prog_compiler_pic='-qnocommon'
6838 lt_prog_compiler_wl='-Wl,'
6839 ;;
6840 esac
6841 ;;
6842
6843 mingw* | cygwin* | pw32* | os2*)
6844 # This hack is so that the source file can tell whether it is being
6845 # built for inclusion in a dll (and should export symbols for example).
6846 lt_prog_compiler_pic='-DDLL_EXPORT'
6847 ;;
6848
6849 hpux9* | hpux10* | hpux11*)
6850 lt_prog_compiler_wl='-Wl,'
6851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6852 # not for PA HP-UX.
6853 case $host_cpu in
6854 hppa*64*|ia64*)
6855 # +Z the default
6856 ;;
6857 *)
6858 lt_prog_compiler_pic='+Z'
6859 ;;
6860 esac
6861 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6862 lt_prog_compiler_static='${wl}-a ${wl}archive'
6863 ;;
6864
6865 irix5* | irix6* | nonstopux*)
6866 lt_prog_compiler_wl='-Wl,'
6867 # PIC (with -KPIC) is the default.
6868 lt_prog_compiler_static='-non_shared'
6869 ;;
6870
6871 linux* | k*bsd*-gnu)
6872 case $cc_basename in
6873 icc* | ecc*)
6874 lt_prog_compiler_wl='-Wl,'
6875 lt_prog_compiler_pic='-KPIC'
6876 lt_prog_compiler_static='-static'
6877 ;;
6878 pgcc* | pgf77* | pgf90* | pgf95*)
6879 # Portland Group compilers (*not* the Pentium gcc compiler,
6880 # which looks to be a dead project)
6881 lt_prog_compiler_wl='-Wl,'
6882 lt_prog_compiler_pic='-fpic'
6883 lt_prog_compiler_static='-Bstatic'
6884 ;;
6885 ccc*)
6886 lt_prog_compiler_wl='-Wl,'
6887 # All Alpha code is PIC.
6888 lt_prog_compiler_static='-non_shared'
6889 ;;
6890 *)
6891 case `$CC -V 2>&1 | sed 5q` in
6892 *Sun\ C*)
6893 # Sun C 5.9
6894 lt_prog_compiler_pic='-KPIC'
6895 lt_prog_compiler_static='-Bstatic'
6896 lt_prog_compiler_wl='-Wl,'
6897 ;;
6898 *Sun\ F*)
6899 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6900 lt_prog_compiler_pic='-KPIC'
6901 lt_prog_compiler_static='-Bstatic'
6902 lt_prog_compiler_wl=''
6903 ;;
6904 esac
6905 ;;
6906 esac
6907 ;;
6908
6909 newsos6)
6910 lt_prog_compiler_pic='-KPIC'
6911 lt_prog_compiler_static='-Bstatic'
6912 ;;
6913
6914 *nto* | *qnx*)
6915 # QNX uses GNU C++, but need to define -shared option too, otherwise
6916 # it will coredump.
6917 lt_prog_compiler_pic='-fPIC -shared'
6918 ;;
6919
6920 osf3* | osf4* | osf5*)
6921 lt_prog_compiler_wl='-Wl,'
6922 # All OSF/1 code is PIC.
6923 lt_prog_compiler_static='-non_shared'
6924 ;;
6925
6926 rdos*)
6927 lt_prog_compiler_static='-non_shared'
6928 ;;
6929
6930 solaris*)
6931 lt_prog_compiler_pic='-KPIC'
6932 lt_prog_compiler_static='-Bstatic'
6933 case $cc_basename in
6934 f77* | f90* | f95*)
6935 lt_prog_compiler_wl='-Qoption ld ';;
6936 *)
6937 lt_prog_compiler_wl='-Wl,';;
6938 esac
6939 ;;
6940
6941 sunos4*)
6942 lt_prog_compiler_wl='-Qoption ld '
6943 lt_prog_compiler_pic='-PIC'
6944 lt_prog_compiler_static='-Bstatic'
6945 ;;
6946
6947 sysv4 | sysv4.2uw2* | sysv4.3*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_pic='-KPIC'
6950 lt_prog_compiler_static='-Bstatic'
6951 ;;
6952
6953 sysv4*MP*)
6954 if test -d /usr/nec ;then
6955 lt_prog_compiler_pic='-Kconform_pic'
6956 lt_prog_compiler_static='-Bstatic'
6957 fi
6958 ;;
6959
6960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_pic='-KPIC'
6963 lt_prog_compiler_static='-Bstatic'
6964 ;;
6965
6966 unicos*)
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_can_build_shared=no
6969 ;;
6970
6971 uts4*)
6972 lt_prog_compiler_pic='-pic'
6973 lt_prog_compiler_static='-Bstatic'
6974 ;;
6975
6976 *)
6977 lt_prog_compiler_can_build_shared=no
6978 ;;
6979 esac
6980 fi
6981
6982 case $host_os in
6983 # For platforms which do not support PIC, -DPIC is meaningless:
6984 *djgpp*)
6985 lt_prog_compiler_pic=
6986 ;;
6987 *)
6988 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6989 ;;
6990 esac
6991 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6992 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6993
6994
6995
6996
6997
6998
6999 #
7000 # Check to make sure the PIC flag actually works.
7001 #
7002 if test -n "$lt_prog_compiler_pic"; then
7003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7005 if test "${lt_prog_compiler_pic_works+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 lt_prog_compiler_pic_works=no
7009 ac_outfile=conftest.$ac_objext
7010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7011 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7012 # Insert the option either (1) after the last *FLAGS variable, or
7013 # (2) before a word containing "conftest.", or (3) at the end.
7014 # Note that $ac_compile itself does not contain backslashes and begins
7015 # with a dollar sign (not a hyphen), so the echo should work correctly.
7016 # The option is referenced via a variable to avoid confusing sed.
7017 lt_compile=`echo "$ac_compile" | $SED \
7018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7020 -e 's:$: $lt_compiler_flag:'`
7021 (eval echo "\"\$as_me:7021: $lt_compile\"" >&5)
7022 (eval "$lt_compile" 2>conftest.err)
7023 ac_status=$?
7024 cat conftest.err >&5
7025 echo "$as_me:7025: \$? = $ac_status" >&5
7026 if (exit $ac_status) && test -s "$ac_outfile"; then
7027 # The compiler can only warn and ignore the option if not recognized
7028 # So say no if there are warnings other than the usual output.
7029 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7032 lt_prog_compiler_pic_works=yes
7033 fi
7034 fi
7035 $RM conftest*
7036
7037 fi
7038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7039 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7040
7041 if test x"$lt_prog_compiler_pic_works" = xyes; then
7042 case $lt_prog_compiler_pic in
7043 "" | " "*) ;;
7044 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7045 esac
7046 else
7047 lt_prog_compiler_pic=
7048 lt_prog_compiler_can_build_shared=no
7049 fi
7050
7051 fi
7052
7053
7054
7055
7056
7057
7058 #
7059 # Check to make sure the static flag actually works.
7060 #
7061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7062 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7063 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7064 if test "${lt_prog_compiler_static_works+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 lt_prog_compiler_static_works=no
7068 save_LDFLAGS="$LDFLAGS"
7069 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7070 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7072 # The linker can only warn and ignore the option if not recognized
7073 # So say no if there are warnings
7074 if test -s conftest.err; then
7075 # Append any errors to the config.log.
7076 cat conftest.err 1>&5
7077 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7079 if diff conftest.exp conftest.er2 >/dev/null; then
7080 lt_prog_compiler_static_works=yes
7081 fi
7082 else
7083 lt_prog_compiler_static_works=yes
7084 fi
7085 fi
7086 $RM conftest*
7087 LDFLAGS="$save_LDFLAGS"
7088
7089 fi
7090 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7091 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7092
7093 if test x"$lt_prog_compiler_static_works" = xyes; then
7094 :
7095 else
7096 lt_prog_compiler_static=
7097 fi
7098
7099
7100
7101
7102
7103
7104
7105 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7106 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7107 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 lt_cv_prog_compiler_c_o=no
7111 $RM -r conftest 2>/dev/null
7112 mkdir conftest
7113 cd conftest
7114 mkdir out
7115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7116
7117 lt_compiler_flag="-o out/conftest2.$ac_objext"
7118 # Insert the option either (1) after the last *FLAGS variable, or
7119 # (2) before a word containing "conftest.", or (3) at the end.
7120 # Note that $ac_compile itself does not contain backslashes and begins
7121 # with a dollar sign (not a hyphen), so the echo should work correctly.
7122 lt_compile=`echo "$ac_compile" | $SED \
7123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7125 -e 's:$: $lt_compiler_flag:'`
7126 (eval echo "\"\$as_me:7126: $lt_compile\"" >&5)
7127 (eval "$lt_compile" 2>out/conftest.err)
7128 ac_status=$?
7129 cat out/conftest.err >&5
7130 echo "$as_me:7130: \$? = $ac_status" >&5
7131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7132 then
7133 # The compiler can only warn and ignore the option if not recognized
7134 # So say no if there are warnings
7135 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7138 lt_cv_prog_compiler_c_o=yes
7139 fi
7140 fi
7141 chmod u+w . 2>&5
7142 $RM conftest*
7143 # SGI C++ compiler will create directory out/ii_files/ for
7144 # template instantiation
7145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7146 $RM out/* && rmdir out
7147 cd ..
7148 $RM -r conftest
7149 $RM conftest*
7150
7151 fi
7152 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7153 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7154
7155
7156
7157
7158
7159
7160 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 lt_cv_prog_compiler_c_o=no
7166 $RM -r conftest 2>/dev/null
7167 mkdir conftest
7168 cd conftest
7169 mkdir out
7170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7171
7172 lt_compiler_flag="-o out/conftest2.$ac_objext"
7173 # Insert the option either (1) after the last *FLAGS variable, or
7174 # (2) before a word containing "conftest.", or (3) at the end.
7175 # Note that $ac_compile itself does not contain backslashes and begins
7176 # with a dollar sign (not a hyphen), so the echo should work correctly.
7177 lt_compile=`echo "$ac_compile" | $SED \
7178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7180 -e 's:$: $lt_compiler_flag:'`
7181 (eval echo "\"\$as_me:7181: $lt_compile\"" >&5)
7182 (eval "$lt_compile" 2>out/conftest.err)
7183 ac_status=$?
7184 cat out/conftest.err >&5
7185 echo "$as_me:7185: \$? = $ac_status" >&5
7186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7187 then
7188 # The compiler can only warn and ignore the option if not recognized
7189 # So say no if there are warnings
7190 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7193 lt_cv_prog_compiler_c_o=yes
7194 fi
7195 fi
7196 chmod u+w . 2>&5
7197 $RM conftest*
7198 # SGI C++ compiler will create directory out/ii_files/ for
7199 # template instantiation
7200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7201 $RM out/* && rmdir out
7202 cd ..
7203 $RM -r conftest
7204 $RM conftest*
7205
7206 fi
7207 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7209
7210
7211
7212
7213 hard_links="nottested"
7214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7215 # do not overwrite the value of need_locks provided by the user
7216 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7217 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7218 hard_links=yes
7219 $RM conftest*
7220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7221 touch conftest.a
7222 ln conftest.a conftest.b 2>&5 || hard_links=no
7223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7224 echo "$as_me:$LINENO: result: $hard_links" >&5
7225 echo "${ECHO_T}$hard_links" >&6
7226 if test "$hard_links" = no; then
7227 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7228 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7229 need_locks=warn
7230 fi
7231 else
7232 need_locks=no
7233 fi
7234
7235
7236
7237
7238
7239
7240 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7242
7243 runpath_var=
7244 allow_undefined_flag=
7245 always_export_symbols=no
7246 archive_cmds=
7247 archive_expsym_cmds=
7248 compiler_needs_object=no
7249 enable_shared_with_static_runtimes=no
7250 export_dynamic_flag_spec=
7251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7252 hardcode_automatic=no
7253 hardcode_direct=no
7254 hardcode_direct_absolute=no
7255 hardcode_libdir_flag_spec=
7256 hardcode_libdir_flag_spec_ld=
7257 hardcode_libdir_separator=
7258 hardcode_minus_L=no
7259 hardcode_shlibpath_var=unsupported
7260 inherit_rpath=no
7261 link_all_deplibs=unknown
7262 module_cmds=
7263 module_expsym_cmds=
7264 old_archive_from_new_cmds=
7265 old_archive_from_expsyms_cmds=
7266 thread_safe_flag_spec=
7267 whole_archive_flag_spec=
7268 # include_expsyms should be a list of space-separated symbols to be *always*
7269 # included in the symbol list
7270 include_expsyms=
7271 # exclude_expsyms can be an extended regexp of symbols to exclude
7272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7274 # as well as any symbol that contains `d'.
7275 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7277 # platforms (ab)use it in PIC code, but their linkers get confused if
7278 # the symbol is explicitly referenced. Since portable code cannot
7279 # rely on this symbol name, it's probably fine to never include it in
7280 # preloaded symbol tables.
7281 extract_expsyms_cmds=
7282
7283 case $host_os in
7284 cygwin* | mingw* | pw32*)
7285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7286 # When not using gcc, we currently assume that we are using
7287 # Microsoft Visual C++.
7288 if test "$GCC" != yes; then
7289 with_gnu_ld=no
7290 fi
7291 ;;
7292 interix*)
7293 # we just hope/assume this is gcc and not c89 (= MSVC++)
7294 with_gnu_ld=yes
7295 ;;
7296 openbsd*)
7297 with_gnu_ld=no
7298 ;;
7299 esac
7300
7301 ld_shlibs=yes
7302 if test "$with_gnu_ld" = yes; then
7303 # If archive_cmds runs LD, not CC, wlarc should be empty
7304 wlarc='${wl}'
7305
7306 # Set some defaults for GNU ld with shared library support. These
7307 # are reset later if shared libraries are not supported. Putting them
7308 # here allows them to be overridden if necessary.
7309 runpath_var=LD_RUN_PATH
7310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7311 export_dynamic_flag_spec='${wl}--export-dynamic'
7312 # ancient GNU ld didn't support --whole-archive et. al.
7313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7314 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7315 else
7316 whole_archive_flag_spec=
7317 fi
7318 supports_anon_versioning=no
7319 case `$LD -v 2>&1` in
7320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7323 *\ 2.11.*) ;; # other 2.11 versions
7324 *) supports_anon_versioning=yes ;;
7325 esac
7326
7327 # See if GNU ld supports shared libraries.
7328 case $host_os in
7329 aix[3-9]*)
7330 # On AIX/PPC, the GNU linker is very broken
7331 if test "$host_cpu" != ia64; then
7332 ld_shlibs=no
7333 cat <<_LT_EOF 1>&2
7334
7335 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7336 *** to be unable to reliably create shared libraries on AIX.
7337 *** Therefore, libtool is disabling shared libraries support. If you
7338 *** really care for shared libraries, you may want to modify your PATH
7339 *** so that a non-GNU linker is found, and then restart.
7340
7341 _LT_EOF
7342 fi
7343 ;;
7344
7345 amigaos*)
7346 if test "$host_cpu" = m68k; then
7347 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)'
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_minus_L=yes
7350 fi
7351
7352 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7353 # that the semantics of dynamic libraries on AmigaOS, at least up
7354 # to version 4, is to share data among multiple programs linked
7355 # with the same dynamic library. Since this doesn't match the
7356 # behavior of shared libraries on other platforms, we can't use
7357 # them.
7358 ld_shlibs=no
7359 ;;
7360
7361 beos*)
7362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7363 allow_undefined_flag=unsupported
7364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7365 # support --undefined. This deserves some investigation. FIXME
7366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7367 else
7368 ld_shlibs=no
7369 fi
7370 ;;
7371
7372 cygwin* | mingw* | pw32*)
7373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7374 # as there is no search path for DLLs.
7375 hardcode_libdir_flag_spec='-L$libdir'
7376 allow_undefined_flag=unsupported
7377 always_export_symbols=no
7378 enable_shared_with_static_runtimes=yes
7379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7380
7381 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7383 # If the export-symbols file already is a .def file (1st line
7384 # is EXPORTS), use it as is; otherwise, prepend...
7385 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7386 cp $export_symbols $output_objdir/$soname.def;
7387 else
7388 echo EXPORTS > $output_objdir/$soname.def;
7389 cat $export_symbols >> $output_objdir/$soname.def;
7390 fi~
7391 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7392 else
7393 ld_shlibs=no
7394 fi
7395 ;;
7396
7397 interix[3-9]*)
7398 hardcode_direct=no
7399 hardcode_shlibpath_var=no
7400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7401 export_dynamic_flag_spec='${wl}-E'
7402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7403 # Instead, shared libraries are loaded at an image base (0x10000000 by
7404 # default) and relocated if they conflict, which is a slow very memory
7405 # consuming and fragmenting process. To avoid this, we pick a random,
7406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7409 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'
7410 ;;
7411
7412 gnu* | linux* | tpf* | k*bsd*-gnu)
7413 tmp_diet=no
7414 if test "$host_os" = linux-dietlibc; then
7415 case $cc_basename in
7416 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7417 esac
7418 fi
7419 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7420 && test "$tmp_diet" = no
7421 then
7422 tmp_addflag=
7423 case $cc_basename,$host_cpu in
7424 pgcc*) # Portland Group C compiler
7425 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'
7426 tmp_addflag=' $pic_flag'
7427 ;;
7428 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7429 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'
7430 tmp_addflag=' $pic_flag -Mnomain' ;;
7431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7432 tmp_addflag=' -i_dynamic' ;;
7433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7434 tmp_addflag=' -i_dynamic -nofor_main' ;;
7435 ifc* | ifort*) # Intel Fortran compiler
7436 tmp_addflag=' -nofor_main' ;;
7437 esac
7438 case `$CC -V 2>&1 | sed 5q` in
7439 *Sun\ C*) # Sun C 5.9
7440 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'
7441 compiler_needs_object=yes
7442 tmp_sharedflag='-G' ;;
7443 *Sun\ F*) # Sun Fortran 8.3
7444 tmp_sharedflag='-G' ;;
7445 *)
7446 tmp_sharedflag='-shared' ;;
7447 esac
7448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7449
7450 if test "x$supports_anon_versioning" = xyes; then
7451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7453 echo "local: *; };" >> $output_objdir/$libname.ver~
7454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7455 fi
7456 else
7457 ld_shlibs=no
7458 fi
7459 ;;
7460
7461 netbsd*)
7462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7463 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7464 wlarc=
7465 else
7466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7468 fi
7469 ;;
7470
7471 solaris*)
7472 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7473 ld_shlibs=no
7474 cat <<_LT_EOF 1>&2
7475
7476 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7477 *** create shared libraries on Solaris systems. Therefore, libtool
7478 *** is disabling shared libraries support. We urge you to upgrade GNU
7479 *** binutils to release 2.9.1 or newer. Another option is to modify
7480 *** your PATH or compiler configuration so that the native linker is
7481 *** used, and then restart.
7482
7483 _LT_EOF
7484 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7487 else
7488 ld_shlibs=no
7489 fi
7490 ;;
7491
7492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7493 case `$LD -v 2>&1` in
7494 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7495 ld_shlibs=no
7496 cat <<_LT_EOF 1>&2
7497
7498 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7499 *** reliably create shared libraries on SCO systems. Therefore, libtool
7500 *** is disabling shared libraries support. We urge you to upgrade GNU
7501 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7502 *** your PATH or compiler configuration so that the native linker is
7503 *** used, and then restart.
7504
7505 _LT_EOF
7506 ;;
7507 *)
7508 # For security reasons, it is highly recommended that you always
7509 # use absolute paths for naming shared libraries, and exclude the
7510 # DT_RUNPATH tag from executables and libraries. But doing so
7511 # requires that you compile everything twice, which is a pain.
7512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7516 else
7517 ld_shlibs=no
7518 fi
7519 ;;
7520 esac
7521 ;;
7522
7523 sunos4*)
7524 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7525 wlarc=
7526 hardcode_direct=yes
7527 hardcode_shlibpath_var=no
7528 ;;
7529
7530 *)
7531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7534 else
7535 ld_shlibs=no
7536 fi
7537 ;;
7538 esac
7539
7540 if test "$ld_shlibs" = no; then
7541 runpath_var=
7542 hardcode_libdir_flag_spec=
7543 export_dynamic_flag_spec=
7544 whole_archive_flag_spec=
7545 fi
7546 else
7547 # PORTME fill in a description of your system's linker (not GNU ld)
7548 case $host_os in
7549 aix3*)
7550 allow_undefined_flag=unsupported
7551 always_export_symbols=yes
7552 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'
7553 # Note: this linker hardcodes the directories in LIBPATH if there
7554 # are no directories specified by -L.
7555 hardcode_minus_L=yes
7556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7557 # Neither direct hardcoding nor static linking is supported with a
7558 # broken collect2.
7559 hardcode_direct=unsupported
7560 fi
7561 ;;
7562
7563 aix[4-9]*)
7564 if test "$host_cpu" = ia64; then
7565 # On IA64, the linker does run time linking by default, so we don't
7566 # have to do anything special.
7567 aix_use_runtimelinking=no
7568 exp_sym_flag='-Bexport'
7569 no_entry_flag=""
7570 else
7571 # If we're using GNU nm, then we don't want the "-C" option.
7572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7573 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7574 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'
7575 else
7576 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'
7577 fi
7578 aix_use_runtimelinking=no
7579
7580 # Test if we are trying to use run time linking or normal
7581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7582 # need to do runtime linking.
7583 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7584 for ld_flag in $LDFLAGS; do
7585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7586 aix_use_runtimelinking=yes
7587 break
7588 fi
7589 done
7590 ;;
7591 esac
7592
7593 exp_sym_flag='-bexport'
7594 no_entry_flag='-bnoentry'
7595 fi
7596
7597 # When large executables or shared objects are built, AIX ld can
7598 # have problems creating the table of contents. If linking a library
7599 # or program results in "error TOC overflow" add -mminimal-toc to
7600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7602
7603 archive_cmds=''
7604 hardcode_direct=yes
7605 hardcode_direct_absolute=yes
7606 hardcode_libdir_separator=':'
7607 link_all_deplibs=yes
7608 file_list_spec='${wl}-f,'
7609
7610 if test "$GCC" = yes; then
7611 case $host_os in aix4.[012]|aix4.[012].*)
7612 # We only want to do this on AIX 4.2 and lower, the check
7613 # below for broken collect2 doesn't work under 4.3+
7614 collect2name=`${CC} -print-prog-name=collect2`
7615 if test -f "$collect2name" &&
7616 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7617 then
7618 # We have reworked collect2
7619 :
7620 else
7621 # We have old collect2
7622 hardcode_direct=unsupported
7623 # It fails to find uninstalled libraries when the uninstalled
7624 # path is not listed in the libpath. Setting hardcode_minus_L
7625 # to unsupported forces relinking
7626 hardcode_minus_L=yes
7627 hardcode_libdir_flag_spec='-L$libdir'
7628 hardcode_libdir_separator=
7629 fi
7630 ;;
7631 esac
7632 shared_flag='-shared'
7633 if test "$aix_use_runtimelinking" = yes; then
7634 shared_flag="$shared_flag "'${wl}-G'
7635 fi
7636 else
7637 # not using gcc
7638 if test "$host_cpu" = ia64; then
7639 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7640 # chokes on -Wl,-G. The following line is correct:
7641 shared_flag='-G'
7642 else
7643 if test "$aix_use_runtimelinking" = yes; then
7644 shared_flag='${wl}-G'
7645 else
7646 shared_flag='${wl}-bM:SRE'
7647 fi
7648 fi
7649 fi
7650
7651 # It seems that -bexpall does not export symbols beginning with
7652 # underscore (_), so it is better to generate a list of symbols to export.
7653 always_export_symbols=yes
7654 if test "$aix_use_runtimelinking" = yes; then
7655 # Warning - without using the other runtime loading flags (-brtl),
7656 # -berok will link without error, but may produce a broken library.
7657 allow_undefined_flag='-berok'
7658 # Determine the default libpath from the value encoded in an
7659 # empty executable.
7660 cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h. */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666
7667 int
7668 main ()
7669 {
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7677 (eval $ac_link) 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag"
7685 || test ! -s conftest.err'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest$ac_exeext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7697
7698 lt_aix_libpath_sed='
7699 /Import File Strings/,/^$/ {
7700 /^0/ {
7701 s/^0 *\(.*\)$/\1/
7702 p
7703 }
7704 }'
7705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7706 # Check for a 64-bit object if we didn't find anything.
7707 if test -z "$aix_libpath"; then
7708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7709 fi
7710 else
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 fi
7715 rm -f conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7718
7719 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7720 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"
7721 else
7722 if test "$host_cpu" = ia64; then
7723 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7724 allow_undefined_flag="-z nodefs"
7725 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"
7726 else
7727 # Determine the default libpath from the value encoded in an
7728 # empty executable.
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h. */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735
7736 int
7737 main ()
7738 {
7739
7740 ;
7741 return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766
7767 lt_aix_libpath_sed='
7768 /Import File Strings/,/^$/ {
7769 /^0/ {
7770 s/^0 *\(.*\)$/\1/
7771 p
7772 }
7773 }'
7774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7775 # Check for a 64-bit object if we didn't find anything.
7776 if test -z "$aix_libpath"; then
7777 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7778 fi
7779 else
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 fi
7784 rm -f conftest.err conftest.$ac_objext \
7785 conftest$ac_exeext conftest.$ac_ext
7786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7787
7788 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7789 # Warning - without using the other run time loading flags,
7790 # -berok will link without error, but may produce a broken library.
7791 no_undefined_flag=' ${wl}-bernotok'
7792 allow_undefined_flag=' ${wl}-berok'
7793 # Exported symbols can be pulled into shared objects from archives
7794 whole_archive_flag_spec='$convenience'
7795 archive_cmds_need_lc=yes
7796 # This is similar to how AIX traditionally builds its shared libraries.
7797 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'
7798 fi
7799 fi
7800 ;;
7801
7802 amigaos*)
7803 if test "$host_cpu" = m68k; then
7804 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)'
7805 hardcode_libdir_flag_spec='-L$libdir'
7806 hardcode_minus_L=yes
7807 fi
7808 # see comment about different semantics on the GNU ld section
7809 ld_shlibs=no
7810 ;;
7811
7812 bsdi[45]*)
7813 export_dynamic_flag_spec=-rdynamic
7814 ;;
7815
7816 cygwin* | mingw* | pw32*)
7817 # When not using gcc, we currently assume that we are using
7818 # Microsoft Visual C++.
7819 # hardcode_libdir_flag_spec is actually meaningless, as there is
7820 # no search path for DLLs.
7821 hardcode_libdir_flag_spec=' '
7822 allow_undefined_flag=unsupported
7823 # Tell ltmain to make .lib files, not .a files.
7824 libext=lib
7825 # Tell ltmain to make .dll files, not .so files.
7826 shrext_cmds=".dll"
7827 # FIXME: Setting linknames here is a bad hack.
7828 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7829 # The linker will automatically build a .lib file if we build a DLL.
7830 old_archive_from_new_cmds='true'
7831 # FIXME: Should let the user specify the lib program.
7832 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7833 fix_srcfile_path='`cygpath -w "$srcfile"`'
7834 enable_shared_with_static_runtimes=yes
7835 ;;
7836
7837 darwin* | rhapsody*)
7838 case $host_os in
7839 rhapsody* | darwin1.[012])
7840 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7841 ;;
7842 *) # Darwin 1.3 on
7843 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7844 10.[012])
7845 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7846 ;;
7847 10.*)
7848 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7849 ;;
7850 esac
7851 ;;
7852 esac
7853 archive_cmds_need_lc=no
7854 hardcode_direct=no
7855 hardcode_automatic=yes
7856 hardcode_shlibpath_var=unsupported
7857 whole_archive_flag_spec=''
7858 link_all_deplibs=yes
7859 if test "$GCC" = yes ; then
7860 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863 lt_cv_apple_cc_single_mod=no
7864 if test -z "${LT_MULTI_MODULE}"; then
7865 # By default we will add the -single_module flag. You can override
7866 # by either setting the environment variable LT_MULTI_MODULE
7867 # non-empty at configure time, or by adding -multi-module to the
7868 # link flags.
7869 echo "int foo(void){return 1;}" > conftest.c
7870 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib ${wl}-single_module conftest.c
7872 if test -f libconftest.dylib; then
7873 lt_cv_apple_cc_single_mod=yes
7874 rm libconftest.dylib
7875 fi
7876 rm conftest.$ac_ext
7877 fi
7878 fi
7879
7880 output_verbose_link_cmd=echo
7881 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7882 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7883 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}'
7884 else
7885 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7886 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}'
7887 fi
7888 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7889 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}'
7890 else
7891 case $cc_basename in
7892 xlc*)
7893 output_verbose_link_cmd=echo
7894 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7895 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7896 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7897 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}'
7898 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}'
7899 ;;
7900 *)
7901 ld_shlibs=no
7902 ;;
7903 esac
7904 fi
7905 ;;
7906
7907 dgux*)
7908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7909 hardcode_libdir_flag_spec='-L$libdir'
7910 hardcode_shlibpath_var=no
7911 ;;
7912
7913 freebsd1*)
7914 ld_shlibs=no
7915 ;;
7916
7917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7918 # support. Future versions do this automatically, but an explicit c++rt0.o
7919 # does not break anything, and helps significantly (at the cost of a little
7920 # extra space).
7921 freebsd2.2*)
7922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7923 hardcode_libdir_flag_spec='-R$libdir'
7924 hardcode_direct=yes
7925 hardcode_shlibpath_var=no
7926 ;;
7927
7928 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7929 freebsd2*)
7930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7931 hardcode_direct=yes
7932 hardcode_minus_L=yes
7933 hardcode_shlibpath_var=no
7934 ;;
7935
7936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7937 freebsd* | dragonfly*)
7938 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7939 hardcode_libdir_flag_spec='-R$libdir'
7940 hardcode_direct=yes
7941 hardcode_shlibpath_var=no
7942 ;;
7943
7944 hpux9*)
7945 if test "$GCC" = yes; then
7946 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'
7947 else
7948 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'
7949 fi
7950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7951 hardcode_libdir_separator=:
7952 hardcode_direct=yes
7953
7954 # hardcode_minus_L: Not really in the search PATH,
7955 # but as the default location of the library.
7956 hardcode_minus_L=yes
7957 export_dynamic_flag_spec='${wl}-E'
7958 ;;
7959
7960 hpux10*)
7961 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7963 else
7964 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7965 fi
7966 if test "$with_gnu_ld" = no; then
7967 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7968 hardcode_libdir_flag_spec_ld='+b $libdir'
7969 hardcode_libdir_separator=:
7970 hardcode_direct=yes
7971 hardcode_direct_absolute=yes
7972 export_dynamic_flag_spec='${wl}-E'
7973 # hardcode_minus_L: Not really in the search PATH,
7974 # but as the default location of the library.
7975 hardcode_minus_L=yes
7976 fi
7977 ;;
7978
7979 hpux11*)
7980 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7981 case $host_cpu in
7982 hppa*64*)
7983 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7984 ;;
7985 ia64*)
7986 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7987 ;;
7988 *)
7989 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7990 ;;
7991 esac
7992 else
7993 case $host_cpu in
7994 hppa*64*)
7995 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7996 ;;
7997 ia64*)
7998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7999 ;;
8000 *)
8001 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8002 ;;
8003 esac
8004 fi
8005 if test "$with_gnu_ld" = no; then
8006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8007 hardcode_libdir_separator=:
8008
8009 case $host_cpu in
8010 hppa*64*|ia64*)
8011 hardcode_direct=no
8012 hardcode_shlibpath_var=no
8013 ;;
8014 *)
8015 hardcode_direct=yes
8016 hardcode_direct_absolute=yes
8017 export_dynamic_flag_spec='${wl}-E'
8018
8019 # hardcode_minus_L: Not really in the search PATH,
8020 # but as the default location of the library.
8021 hardcode_minus_L=yes
8022 ;;
8023 esac
8024 fi
8025 ;;
8026
8027 irix5* | irix6* | nonstopux*)
8028 if test "$GCC" = yes; then
8029 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'
8030 # Try to use the -exported_symbol ld option, if it does not
8031 # work, assume that -exports_file does not work either and
8032 # implicitly export all symbols.
8033 save_LDFLAGS="$LDFLAGS"
8034 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8035 cat >conftest.$ac_ext <<_ACEOF
8036 int foo(void) {}
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest$ac_exeext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 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'
8061
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 fi
8067 rm -f conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069 LDFLAGS="$save_LDFLAGS"
8070 else
8071 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'
8072 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'
8073 fi
8074 archive_cmds_need_lc='no'
8075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8076 hardcode_libdir_separator=:
8077 inherit_rpath=yes
8078 link_all_deplibs=yes
8079 ;;
8080
8081 netbsd*)
8082 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8084 else
8085 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8086 fi
8087 hardcode_libdir_flag_spec='-R$libdir'
8088 hardcode_direct=yes
8089 hardcode_shlibpath_var=no
8090 ;;
8091
8092 newsos6)
8093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8094 hardcode_direct=yes
8095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8096 hardcode_libdir_separator=:
8097 hardcode_shlibpath_var=no
8098 ;;
8099
8100 *nto* | *qnx*)
8101 ;;
8102
8103 openbsd*)
8104 hardcode_direct=yes
8105 hardcode_shlibpath_var=no
8106 hardcode_direct_absolute=yes
8107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8109 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8111 export_dynamic_flag_spec='${wl}-E'
8112 else
8113 case $host_os in
8114 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8116 hardcode_libdir_flag_spec='-R$libdir'
8117 ;;
8118 *)
8119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8121 ;;
8122 esac
8123 fi
8124 ;;
8125
8126 os2*)
8127 hardcode_libdir_flag_spec='-L$libdir'
8128 hardcode_minus_L=yes
8129 allow_undefined_flag=unsupported
8130 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'
8131 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8132 ;;
8133
8134 osf3*)
8135 if test "$GCC" = yes; then
8136 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8137 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'
8138 else
8139 allow_undefined_flag=' -expect_unresolved \*'
8140 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'
8141 fi
8142 archive_cmds_need_lc='no'
8143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8144 hardcode_libdir_separator=:
8145 ;;
8146
8147 osf4* | osf5*) # as osf3* with the addition of -msym flag
8148 if test "$GCC" = yes; then
8149 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8150 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'
8151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8152 else
8153 allow_undefined_flag=' -expect_unresolved \*'
8154 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'
8155 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~
8156 $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'
8157
8158 # Both c and cxx compiler support -rpath directly
8159 hardcode_libdir_flag_spec='-rpath $libdir'
8160 fi
8161 archive_cmds_need_lc='no'
8162 hardcode_libdir_separator=:
8163 ;;
8164
8165 solaris*)
8166 no_undefined_flag=' -z defs'
8167 if test "$GCC" = yes; then
8168 wlarc='${wl}'
8169 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8171 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8172 else
8173 case `$CC -V 2>&1` in
8174 *"Compilers 5.0"*)
8175 wlarc=''
8176 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8178 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8179 ;;
8180 *)
8181 wlarc='${wl}'
8182 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8184 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8185 ;;
8186 esac
8187 fi
8188 hardcode_libdir_flag_spec='-R$libdir'
8189 hardcode_shlibpath_var=no
8190 case $host_os in
8191 solaris2.[0-5] | solaris2.[0-5].*) ;;
8192 *)
8193 # The compiler driver will combine and reorder linker options,
8194 # but understands `-z linker_flag'. GCC discards it without `$wl',
8195 # but is careful enough not to reorder.
8196 # Supported since Solaris 2.6 (maybe 2.5.1?)
8197 if test "$GCC" = yes; then
8198 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8199 else
8200 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8201 fi
8202 ;;
8203 esac
8204 link_all_deplibs=yes
8205 ;;
8206
8207 sunos4*)
8208 if test "x$host_vendor" = xsequent; then
8209 # Use $CC to link under sequent, because it throws in some extra .o
8210 # files that make .init and .fini sections work.
8211 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8212 else
8213 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8214 fi
8215 hardcode_libdir_flag_spec='-L$libdir'
8216 hardcode_direct=yes
8217 hardcode_minus_L=yes
8218 hardcode_shlibpath_var=no
8219 ;;
8220
8221 sysv4)
8222 case $host_vendor in
8223 sni)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_direct=yes # is this really true???
8226 ;;
8227 siemens)
8228 ## LD is ld it makes a PLAMLIB
8229 ## CC just makes a GrossModule.
8230 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8231 reload_cmds='$CC -r -o $output$reload_objs'
8232 hardcode_direct=no
8233 ;;
8234 motorola)
8235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8236 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8237 ;;
8238 esac
8239 runpath_var='LD_RUN_PATH'
8240 hardcode_shlibpath_var=no
8241 ;;
8242
8243 sysv4.3*)
8244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8245 hardcode_shlibpath_var=no
8246 export_dynamic_flag_spec='-Bexport'
8247 ;;
8248
8249 sysv4*MP*)
8250 if test -d /usr/nec; then
8251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8252 hardcode_shlibpath_var=no
8253 runpath_var=LD_RUN_PATH
8254 hardcode_runpath_var=yes
8255 ld_shlibs=yes
8256 fi
8257 ;;
8258
8259 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8260 no_undefined_flag='${wl}-z,text'
8261 archive_cmds_need_lc=no
8262 hardcode_shlibpath_var=no
8263 runpath_var='LD_RUN_PATH'
8264
8265 if test "$GCC" = yes; then
8266 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8268 else
8269 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8270 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8271 fi
8272 ;;
8273
8274 sysv5* | sco3.2v5* | sco5v6*)
8275 # Note: We can NOT use -z defs as we might desire, because we do not
8276 # link with -lc, and that would cause any symbols used from libc to
8277 # always be unresolved, which means just about no library would
8278 # ever link correctly. If we're not using GNU ld we use -z text
8279 # though, which does catch some bad symbols but isn't as heavy-handed
8280 # as -z defs.
8281 no_undefined_flag='${wl}-z,text'
8282 allow_undefined_flag='${wl}-z,nodefs'
8283 archive_cmds_need_lc=no
8284 hardcode_shlibpath_var=no
8285 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8286 hardcode_libdir_separator=':'
8287 link_all_deplibs=yes
8288 export_dynamic_flag_spec='${wl}-Bexport'
8289 runpath_var='LD_RUN_PATH'
8290
8291 if test "$GCC" = yes; then
8292 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8293 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8294 else
8295 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8296 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8297 fi
8298 ;;
8299
8300 uts4*)
8301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8302 hardcode_libdir_flag_spec='-L$libdir'
8303 hardcode_shlibpath_var=no
8304 ;;
8305
8306 *)
8307 ld_shlibs=no
8308 ;;
8309 esac
8310
8311 if test x$host_vendor = xsni; then
8312 case $host in
8313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8314 export_dynamic_flag_spec='${wl}-Blargedynsym'
8315 ;;
8316 esac
8317 fi
8318 fi
8319
8320 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8321 echo "${ECHO_T}$ld_shlibs" >&6
8322 test "$ld_shlibs" = no && can_build_shared=no
8323
8324 with_gnu_ld=$with_gnu_ld
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340 #
8341 # Do we need to explicitly link libc?
8342 #
8343 case "x$archive_cmds_need_lc" in
8344 x|xyes)
8345 # Assume -lc should be added
8346 archive_cmds_need_lc=yes
8347
8348 if test "$enable_shared" = yes && test "$GCC" = yes; then
8349 case $archive_cmds in
8350 *'~'*)
8351 # FIXME: we may have to deal with multi-command sequences.
8352 ;;
8353 '$CC '*)
8354 # Test whether the compiler implicitly links with -lc since on some
8355 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8356 # to ld, don't add -lc before -lgcc.
8357 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8358 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8359 $RM conftest*
8360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8361
8362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363 (eval $ac_compile) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } 2>conftest.err; then
8367 soname=conftest
8368 lib=conftest
8369 libobjs=conftest.$ac_objext
8370 deplibs=
8371 wl=$lt_prog_compiler_wl
8372 pic_flag=$lt_prog_compiler_pic
8373 compiler_flags=-v
8374 linker_flags=-v
8375 verstring=
8376 output_objdir=.
8377 libname=conftest
8378 lt_save_allow_undefined_flag=$allow_undefined_flag
8379 allow_undefined_flag=
8380 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8381 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }
8385 then
8386 archive_cmds_need_lc=no
8387 else
8388 archive_cmds_need_lc=yes
8389 fi
8390 allow_undefined_flag=$lt_save_allow_undefined_flag
8391 else
8392 cat conftest.err 1>&5
8393 fi
8394 $RM conftest*
8395 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8396 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8397 ;;
8398 esac
8399 fi
8400 ;;
8401 esac
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8561 withGCC=$GCC
8562 if test "$withGCC" = yes; then
8563 case $host_os in
8564 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8565 *) lt_awk_arg="/^libraries:/" ;;
8566 esac
8567 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8568 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8569 # if the path contains ";" then we assume it to be the separator
8570 # otherwise default to the standard path separator (i.e. ":") - it is
8571 # assumed that no part of a normal pathname contains ";" but that should
8572 # okay in the real world where ";" in dirpaths is itself problematic.
8573 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8574 else
8575 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8576 fi
8577 # Ok, now we have the path, separated by spaces, we can step through it
8578 # and add multilib dir if necessary.
8579 lt_tmp_lt_search_path_spec=
8580 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8581 for lt_sys_path in $lt_search_path_spec; do
8582 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8583 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8584 else
8585 test -d "$lt_sys_path" && \
8586 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8587 fi
8588 done
8589 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8590 BEGIN {RS=" "; FS="/|\n";} {
8591 lt_foo="";
8592 lt_count=0;
8593 for (lt_i = NF; lt_i > 0; lt_i--) {
8594 if ($lt_i != "" && $lt_i != ".") {
8595 if ($lt_i == "..") {
8596 lt_count++;
8597 } else {
8598 if (lt_count == 0) {
8599 lt_foo="/" $lt_i lt_foo;
8600 } else {
8601 lt_count--;
8602 }
8603 }
8604 }
8605 }
8606 if (lt_foo != "") { lt_freq[lt_foo]++; }
8607 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8608 }'`
8609 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8610 else
8611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8612 fi
8613 library_names_spec=
8614 libname_spec='lib$name'
8615 soname_spec=
8616 shrext_cmds=".so"
8617 postinstall_cmds=
8618 postuninstall_cmds=
8619 finish_cmds=
8620 finish_eval=
8621 shlibpath_var=
8622 shlibpath_overrides_runpath=unknown
8623 version_type=none
8624 dynamic_linker="$host_os ld.so"
8625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626 need_lib_prefix=unknown
8627 hardcode_into_libs=no
8628
8629 # when you set need_version to no, make sure it does not cause -set_version
8630 # flags to be left without arguments
8631 need_version=unknown
8632
8633 case $host_os in
8634 aix3*)
8635 version_type=linux
8636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8637 shlibpath_var=LIBPATH
8638
8639 # AIX 3 has no versioning support, so we append a major version to the name.
8640 soname_spec='${libname}${release}${shared_ext}$major'
8641 ;;
8642
8643 aix[4-9]*)
8644 version_type=linux
8645 need_lib_prefix=no
8646 need_version=no
8647 hardcode_into_libs=yes
8648 if test "$host_cpu" = ia64; then
8649 # AIX 5 supports IA64
8650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8651 shlibpath_var=LD_LIBRARY_PATH
8652 else
8653 # With GCC up to 2.95.x, collect2 would create an import file
8654 # for dependence libraries. The import file would start with
8655 # the line `#! .'. This would cause the generated library to
8656 # depend on `.', always an invalid library. This was fixed in
8657 # development snapshots of GCC prior to 3.0.
8658 case $host_os in
8659 aix4 | aix4.[01] | aix4.[01].*)
8660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8661 echo ' yes '
8662 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8663 :
8664 else
8665 can_build_shared=no
8666 fi
8667 ;;
8668 esac
8669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8670 # soname into executable. Probably we can add versioning support to
8671 # collect2, so additional links can be useful in future.
8672 if test "$aix_use_runtimelinking" = yes; then
8673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8674 # instead of lib<name>.a to let people know that these are not
8675 # typical AIX shared libraries.
8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677 else
8678 # We preserve .a as extension for shared libraries through AIX4.2
8679 # and later when we are not doing run time linking.
8680 library_names_spec='${libname}${release}.a $libname.a'
8681 soname_spec='${libname}${release}${shared_ext}$major'
8682 fi
8683 shlibpath_var=LIBPATH
8684 fi
8685 ;;
8686
8687 amigaos*)
8688 if test "$host_cpu" = m68k; then
8689 library_names_spec='$libname.ixlibrary $libname.a'
8690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8691 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'
8692 else
8693 dynamic_linker=no
8694 fi
8695 ;;
8696
8697 beos*)
8698 library_names_spec='${libname}${shared_ext}'
8699 dynamic_linker="$host_os ld.so"
8700 shlibpath_var=LIBRARY_PATH
8701 ;;
8702
8703 bsdi[45]*)
8704 version_type=linux
8705 need_version=no
8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707 soname_spec='${libname}${release}${shared_ext}$major'
8708 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8709 shlibpath_var=LD_LIBRARY_PATH
8710 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8711 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8712 # the default ld.so.conf also contains /usr/contrib/lib and
8713 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8714 # libtool to hard-code these into programs
8715 ;;
8716
8717 cygwin* | mingw* | pw32*)
8718 version_type=windows
8719 shrext_cmds=".dll"
8720 need_version=no
8721 need_lib_prefix=no
8722
8723 case $withGCC,$host_os in
8724 yes,cygwin* | yes,mingw* | yes,pw32*)
8725 library_names_spec='$libname.dll.a'
8726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8727 postinstall_cmds='base_file=`basename \${file}`~
8728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8729 dldir=$destdir/`dirname \$dlpath`~
8730 test -d \$dldir || mkdir -p \$dldir~
8731 $install_prog $dir/$dlname \$dldir/$dlname~
8732 chmod a+x \$dldir/$dlname~
8733 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8734 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8735 fi'
8736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8737 dlpath=$dir/\$dldll~
8738 $RM \$dlpath'
8739 shlibpath_overrides_runpath=yes
8740
8741 case $host_os in
8742 cygwin*)
8743 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8744 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8745 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8746 ;;
8747 mingw*)
8748 # MinGW DLLs use traditional 'lib' prefix
8749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8750 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8752 # It is most probably a Windows format PATH printed by
8753 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8754 # path with ; separators, and with drive letters. We can handle the
8755 # drive letters (cygwin fileutils understands them), so leave them,
8756 # especially as we might pass files found there to a mingw objdump,
8757 # which wouldn't understand a cygwinified path. Ahh.
8758 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8759 else
8760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8761 fi
8762 ;;
8763 pw32*)
8764 # pw32 DLLs use 'pw' prefix rather than 'lib'
8765 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8766 ;;
8767 esac
8768 ;;
8769
8770 *)
8771 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8772 ;;
8773 esac
8774 dynamic_linker='Win32 ld.exe'
8775 # FIXME: first we should search . and the directory the executable is in
8776 shlibpath_var=PATH
8777 ;;
8778
8779 darwin* | rhapsody*)
8780 dynamic_linker="$host_os dyld"
8781 version_type=darwin
8782 need_lib_prefix=no
8783 need_version=no
8784 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8785 soname_spec='${libname}${release}${major}$shared_ext'
8786 shlibpath_overrides_runpath=yes
8787 shlibpath_var=DYLD_LIBRARY_PATH
8788 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8789
8790 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8792 ;;
8793
8794 dgux*)
8795 version_type=linux
8796 need_lib_prefix=no
8797 need_version=no
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 ;;
8802
8803 freebsd1*)
8804 dynamic_linker=no
8805 ;;
8806
8807 freebsd* | dragonfly*)
8808 # DragonFly does not have aout. When/if they implement a new
8809 # versioning mechanism, adjust this.
8810 if test -x /usr/bin/objformat; then
8811 objformat=`/usr/bin/objformat`
8812 else
8813 case $host_os in
8814 freebsd[123]*) objformat=aout ;;
8815 *) objformat=elf ;;
8816 esac
8817 fi
8818 version_type=freebsd-$objformat
8819 case $version_type in
8820 freebsd-elf*)
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8822 need_version=no
8823 need_lib_prefix=no
8824 ;;
8825 freebsd-*)
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8827 need_version=yes
8828 ;;
8829 esac
8830 shlibpath_var=LD_LIBRARY_PATH
8831 case $host_os in
8832 freebsd2*)
8833 shlibpath_overrides_runpath=yes
8834 ;;
8835 freebsd3.[01]* | freebsdelf3.[01]*)
8836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8838 ;;
8839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8843 ;;
8844 *) # from 4.6 on, and DragonFly
8845 shlibpath_overrides_runpath=yes
8846 hardcode_into_libs=yes
8847 ;;
8848 esac
8849 ;;
8850
8851 gnu*)
8852 version_type=linux
8853 need_lib_prefix=no
8854 need_version=no
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 hardcode_into_libs=yes
8859 ;;
8860
8861 hpux9* | hpux10* | hpux11*)
8862 # Give a soname corresponding to the major version so that dld.sl refuses to
8863 # link against other versions.
8864 version_type=sunos
8865 need_lib_prefix=no
8866 need_version=no
8867 case $host_cpu in
8868 ia64*)
8869 shrext_cmds='.so'
8870 hardcode_into_libs=yes
8871 dynamic_linker="$host_os dld.so"
8872 shlibpath_var=LD_LIBRARY_PATH
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 if test "X$HPUX_IA64_MODE" = X32; then
8877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8878 else
8879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8880 fi
8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882 ;;
8883 hppa*64*)
8884 shrext_cmds='.sl'
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.sl"
8887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893 ;;
8894 *)
8895 shrext_cmds='.sl'
8896 dynamic_linker="$host_os dld.sl"
8897 shlibpath_var=SHLIB_PATH
8898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 ;;
8902 esac
8903 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8904 postinstall_cmds='chmod 555 $lib'
8905 ;;
8906
8907 interix[3-9]*)
8908 version_type=linux
8909 need_lib_prefix=no
8910 need_version=no
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8917 ;;
8918
8919 irix5* | irix6* | nonstopux*)
8920 case $host_os in
8921 nonstopux*) version_type=nonstopux ;;
8922 *)
8923 if test "$lt_cv_prog_gnu_ld" = yes; then
8924 version_type=linux
8925 else
8926 version_type=irix
8927 fi ;;
8928 esac
8929 need_lib_prefix=no
8930 need_version=no
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8933 case $host_os in
8934 irix5* | nonstopux*)
8935 libsuff= shlibsuff=
8936 ;;
8937 *)
8938 case $LD in # libtool.m4 will add one of these switches to LD
8939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8940 libsuff= shlibsuff= libmagic=32-bit;;
8941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8942 libsuff=32 shlibsuff=N32 libmagic=N32;;
8943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8945 *) libsuff= shlibsuff= libmagic=never-match;;
8946 esac
8947 ;;
8948 esac
8949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8950 shlibpath_overrides_runpath=no
8951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8953 hardcode_into_libs=yes
8954 ;;
8955
8956 # No shared lib support for Linux oldld, aout, or coff.
8957 linux*oldld* | linux*aout* | linux*coff*)
8958 dynamic_linker=no
8959 ;;
8960
8961 # This must be Linux ELF.
8962 linux* | k*bsd*-gnu)
8963 version_type=linux
8964 need_lib_prefix=no
8965 need_version=no
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=no
8971 # Some binutils ld are patched to set DT_RUNPATH
8972 save_LDFLAGS=$LDFLAGS
8973 save_libdir=$libdir
8974 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8975 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982
8983 int
8984 main ()
8985 {
8986
8987 ;
8988 return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9014 shlibpath_overrides_runpath=yes
9015 fi
9016
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 fi
9022 rm -f conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext conftest.$ac_ext
9024 LDFLAGS=$save_LDFLAGS
9025 libdir=$save_libdir
9026
9027 # This implies no fast_install, which is unacceptable.
9028 # Some rework will be needed to allow for fast_install
9029 # before this can be enabled.
9030 hardcode_into_libs=yes
9031
9032 # Append ld.so.conf contents to the search path
9033 if test -f /etc/ld.so.conf; then
9034 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' ' '`
9035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9036 fi
9037
9038 # We used to test for /lib/ld.so.1 and disable shared libraries on
9039 # powerpc, because MkLinux only supported shared libraries with the
9040 # GNU dynamic linker. Since this was broken with cross compilers,
9041 # most powerpc-linux boxes support dynamic linking these days and
9042 # people can always --disable-shared, the test was removed, and we
9043 # assume the GNU/Linux dynamic linker is in use.
9044 dynamic_linker='GNU/Linux ld.so'
9045 ;;
9046
9047 netbsd*)
9048 version_type=sunos
9049 need_lib_prefix=no
9050 need_version=no
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054 dynamic_linker='NetBSD (a.out) ld.so'
9055 else
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 dynamic_linker='NetBSD ld.elf_so'
9059 fi
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9063 ;;
9064
9065 newsos6)
9066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9070 ;;
9071
9072 *nto* | *qnx*)
9073 version_type=qnx
9074 need_lib_prefix=no
9075 need_version=no
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 shlibpath_overrides_runpath=no
9080 hardcode_into_libs=yes
9081 dynamic_linker='ldqnx.so'
9082 ;;
9083
9084 openbsd*)
9085 version_type=sunos
9086 sys_lib_dlsearch_path_spec="/usr/lib"
9087 need_lib_prefix=no
9088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9089 case $host_os in
9090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9091 *) need_version=no ;;
9092 esac
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9097 case $host_os in
9098 openbsd2.[89] | openbsd2.[89].*)
9099 shlibpath_overrides_runpath=no
9100 ;;
9101 *)
9102 shlibpath_overrides_runpath=yes
9103 ;;
9104 esac
9105 else
9106 shlibpath_overrides_runpath=yes
9107 fi
9108 ;;
9109
9110 os2*)
9111 libname_spec='$name'
9112 shrext_cmds=".dll"
9113 need_lib_prefix=no
9114 library_names_spec='$libname${shared_ext} $libname.a'
9115 dynamic_linker='OS/2 ld.exe'
9116 shlibpath_var=LIBPATH
9117 ;;
9118
9119 osf3* | osf4* | osf5*)
9120 version_type=osf
9121 need_lib_prefix=no
9122 need_version=no
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9128 ;;
9129
9130 rdos*)
9131 dynamic_linker=no
9132 ;;
9133
9134 solaris*)
9135 version_type=linux
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9143 # ldd complains unless libraries are executable
9144 postinstall_cmds='chmod +x $lib'
9145 ;;
9146
9147 sunos4*)
9148 version_type=sunos
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=yes
9153 if test "$with_gnu_ld" = yes; then
9154 need_lib_prefix=no
9155 fi
9156 need_version=yes
9157 ;;
9158
9159 sysv4 | sysv4.3*)
9160 version_type=linux
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 case $host_vendor in
9165 sni)
9166 shlibpath_overrides_runpath=no
9167 need_lib_prefix=no
9168 runpath_var=LD_RUN_PATH
9169 ;;
9170 siemens)
9171 need_lib_prefix=no
9172 ;;
9173 motorola)
9174 need_lib_prefix=no
9175 need_version=no
9176 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9178 ;;
9179 esac
9180 ;;
9181
9182 sysv4*MP*)
9183 if test -d /usr/nec ;then
9184 version_type=linux
9185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9186 soname_spec='$libname${shared_ext}.$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 fi
9189 ;;
9190
9191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9192 version_type=freebsd-elf
9193 need_lib_prefix=no
9194 need_version=no
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9200 if test "$with_gnu_ld" = yes; then
9201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9202 else
9203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9204 case $host_os in
9205 sco3.2v5*)
9206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9207 ;;
9208 esac
9209 fi
9210 sys_lib_dlsearch_path_spec='/usr/lib'
9211 ;;
9212
9213 tpf*)
9214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9215 version_type=linux
9216 need_lib_prefix=no
9217 need_version=no
9218 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=no
9221 hardcode_into_libs=yes
9222 ;;
9223
9224 uts4*)
9225 version_type=linux
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 ;;
9230
9231 *)
9232 dynamic_linker=no
9233 ;;
9234 esac
9235 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9236 echo "${ECHO_T}$dynamic_linker" >&6
9237 test "$dynamic_linker" = no && can_build_shared=no
9238
9239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9240 if test "$GCC" = yes; then
9241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9242 fi
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9331 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9332 hardcode_action=
9333 if test -n "$hardcode_libdir_flag_spec" ||
9334 test -n "$runpath_var" ||
9335 test "X$hardcode_automatic" = "Xyes" ; then
9336
9337 # We can hardcode non-existent directories.
9338 if test "$hardcode_direct" != no &&
9339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9340 # have to relink, otherwise we might link with an installed library
9341 # when we should be linking with a yet-to-be-installed one
9342 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9343 test "$hardcode_minus_L" != no; then
9344 # Linking always hardcodes the temporary library directory.
9345 hardcode_action=relink
9346 else
9347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9348 hardcode_action=immediate
9349 fi
9350 else
9351 # We cannot hardcode anything, or else we can only hardcode existing
9352 # directories.
9353 hardcode_action=unsupported
9354 fi
9355 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9356 echo "${ECHO_T}$hardcode_action" >&6
9357
9358 if test "$hardcode_action" = relink ||
9359 test "$inherit_rpath" = yes; then
9360 # Fast installation is not supported
9361 enable_fast_install=no
9362 elif test "$shlibpath_overrides_runpath" = yes ||
9363 test "$enable_shared" = no; then
9364 # Fast installation is not necessary
9365 enable_fast_install=needless
9366 fi
9367
9368
9369
9370
9371
9372
9373 if test "x$enable_dlopen" != xyes; then
9374 enable_dlopen=unknown
9375 enable_dlopen_self=unknown
9376 enable_dlopen_self_static=unknown
9377 else
9378 lt_cv_dlopen=no
9379 lt_cv_dlopen_libs=
9380
9381 case $host_os in
9382 beos*)
9383 lt_cv_dlopen="load_add_on"
9384 lt_cv_dlopen_libs=
9385 lt_cv_dlopen_self=yes
9386 ;;
9387
9388 mingw* | pw32*)
9389 lt_cv_dlopen="LoadLibrary"
9390 lt_cv_dlopen_libs=
9391 ;;
9392
9393 cygwin*)
9394 lt_cv_dlopen="dlopen"
9395 lt_cv_dlopen_libs=
9396 ;;
9397
9398 darwin*)
9399 # if libdl is installed we need to link against it
9400 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405 ac_check_lib_save_LIBS=$LIBS
9406 LIBS="-ldl $LIBS"
9407 cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h. */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413
9414 /* Override any gcc2 internal prototype to avoid an error. */
9415 #ifdef __cplusplus
9416 extern "C"
9417 #endif
9418 /* We use char because int might match the return type of a gcc2
9419 builtin and then its argument prototype would still apply. */
9420 char dlopen ();
9421 int
9422 main ()
9423 {
9424 dlopen ();
9425 ;
9426 return 0;
9427 }
9428 _ACEOF
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -z "$ac_c_werror_flag"
9439 || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 (eval $ac_try) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_lib_dl_dlopen=yes
9452 else
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9455
9456 ac_cv_lib_dl_dlopen=no
9457 fi
9458 rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LIBS=$ac_check_lib_save_LIBS
9461 fi
9462 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9463 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9464 if test $ac_cv_lib_dl_dlopen = yes; then
9465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9466 else
9467
9468 lt_cv_dlopen="dyld"
9469 lt_cv_dlopen_libs=
9470 lt_cv_dlopen_self=yes
9471
9472 fi
9473
9474 ;;
9475
9476 *)
9477 echo "$as_me:$LINENO: checking for shl_load" >&5
9478 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9479 if test "${ac_cv_func_shl_load+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9490 #define shl_load innocuous_shl_load
9491
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char shl_load (); below.
9494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9495 <limits.h> exists even on freestanding compilers. */
9496
9497 #ifdef __STDC__
9498 # include <limits.h>
9499 #else
9500 # include <assert.h>
9501 #endif
9502
9503 #undef shl_load
9504
9505 /* Override any gcc2 internal prototype to avoid an error. */
9506 #ifdef __cplusplus
9507 extern "C"
9508 {
9509 #endif
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char shl_load ();
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9517 choke me
9518 #else
9519 char (*f) () = shl_load;
9520 #endif
9521 #ifdef __cplusplus
9522 }
9523 #endif
9524
9525 int
9526 main ()
9527 {
9528 return f != shl_load;
9529 ;
9530 return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag"
9543 || test ! -s conftest.err'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest$ac_exeext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_cv_func_shl_load=yes
9556 else
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_cv_func_shl_load=no
9561 fi
9562 rm -f conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 fi
9565 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9566 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9567 if test $ac_cv_func_shl_load = yes; then
9568 lt_cv_dlopen="shl_load"
9569 else
9570 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9571 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575 ac_check_lib_save_LIBS=$LIBS
9576 LIBS="-ldld $LIBS"
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583
9584 /* Override any gcc2 internal prototype to avoid an error. */
9585 #ifdef __cplusplus
9586 extern "C"
9587 #endif
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9590 char shl_load ();
9591 int
9592 main ()
9593 {
9594 shl_load ();
9595 ;
9596 return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest$ac_exeext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_lib_dld_shl_load=yes
9622 else
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9625
9626 ac_cv_lib_dld_shl_load=no
9627 fi
9628 rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 LIBS=$ac_check_lib_save_LIBS
9631 fi
9632 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9633 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9634 if test $ac_cv_lib_dld_shl_load = yes; then
9635 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9636 else
9637 echo "$as_me:$LINENO: checking for dlopen" >&5
9638 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9639 if test "${ac_cv_func_dlopen+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h. */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9650 #define dlopen innocuous_dlopen
9651
9652 /* System header to define __stub macros and hopefully few prototypes,
9653 which can conflict with char dlopen (); below.
9654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9655 <limits.h> exists even on freestanding compilers. */
9656
9657 #ifdef __STDC__
9658 # include <limits.h>
9659 #else
9660 # include <assert.h>
9661 #endif
9662
9663 #undef dlopen
9664
9665 /* Override any gcc2 internal prototype to avoid an error. */
9666 #ifdef __cplusplus
9667 extern "C"
9668 {
9669 #endif
9670 /* We use char because int might match the return type of a gcc2
9671 builtin and then its argument prototype would still apply. */
9672 char dlopen ();
9673 /* The GNU C library defines this for functions which it implements
9674 to always fail with ENOSYS. Some functions are actually named
9675 something starting with __ and the normal name is an alias. */
9676 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9677 choke me
9678 #else
9679 char (*f) () = dlopen;
9680 #endif
9681 #ifdef __cplusplus
9682 }
9683 #endif
9684
9685 int
9686 main ()
9687 {
9688 return f != dlopen;
9689 ;
9690 return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_func_dlopen=yes
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 ac_cv_func_dlopen=no
9721 fi
9722 rm -f conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 fi
9725 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9726 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9727 if test $ac_cv_func_dlopen = yes; then
9728 lt_cv_dlopen="dlopen"
9729 else
9730 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9731 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9732 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735 ac_check_lib_save_LIBS=$LIBS
9736 LIBS="-ldl $LIBS"
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743
9744 /* Override any gcc2 internal prototype to avoid an error. */
9745 #ifdef __cplusplus
9746 extern "C"
9747 #endif
9748 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9750 char dlopen ();
9751 int
9752 main ()
9753 {
9754 dlopen ();
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761 (eval $ac_link) 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_lib_dl_dlopen=yes
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786 ac_cv_lib_dl_dlopen=no
9787 fi
9788 rm -f conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9791 fi
9792 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9794 if test $ac_cv_lib_dl_dlopen = yes; then
9795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9796 else
9797 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 ac_check_lib_save_LIBS=$LIBS
9803 LIBS="-lsvld $LIBS"
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h. */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810
9811 /* Override any gcc2 internal prototype to avoid an error. */
9812 #ifdef __cplusplus
9813 extern "C"
9814 #endif
9815 /* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9817 char dlopen ();
9818 int
9819 main ()
9820 {
9821 dlopen ();
9822 ;
9823 return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828 (eval $ac_link) 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag"
9836 || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 (eval $ac_try) 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_cv_lib_svld_dlopen=yes
9849 else
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 ac_cv_lib_svld_dlopen=no
9854 fi
9855 rm -f conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9858 fi
9859 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9860 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9861 if test $ac_cv_lib_svld_dlopen = yes; then
9862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9863 else
9864 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9865 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9866 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 ac_check_lib_save_LIBS=$LIBS
9870 LIBS="-ldld $LIBS"
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h. */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877
9878 /* Override any gcc2 internal prototype to avoid an error. */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9884 char dld_link ();
9885 int
9886 main ()
9887 {
9888 dld_link ();
9889 ;
9890 return 0;
9891 }
9892 _ACEOF
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9895 (eval $ac_link) 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag"
9903 || test ! -s conftest.err'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_lib_dld_dld_link=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920 ac_cv_lib_dld_dld_link=no
9921 fi
9922 rm -f conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9925 fi
9926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9927 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9928 if test $ac_cv_lib_dld_dld_link = yes; then
9929 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9930 fi
9931
9932
9933 fi
9934
9935
9936 fi
9937
9938
9939 fi
9940
9941
9942 fi
9943
9944
9945 fi
9946
9947 ;;
9948 esac
9949
9950 if test "x$lt_cv_dlopen" != xno; then
9951 enable_dlopen=yes
9952 else
9953 enable_dlopen=no
9954 fi
9955
9956 case $lt_cv_dlopen in
9957 dlopen)
9958 save_CPPFLAGS="$CPPFLAGS"
9959 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9960
9961 save_LDFLAGS="$LDFLAGS"
9962 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9963
9964 save_LIBS="$LIBS"
9965 LIBS="$lt_cv_dlopen_libs $LIBS"
9966
9967 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9968 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9969 if test "${lt_cv_dlopen_self+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972 if test "$cross_compiling" = yes; then :
9973 lt_cv_dlopen_self=cross
9974 else
9975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9976 lt_status=$lt_dlunknown
9977 cat > conftest.$ac_ext <<_LT_EOF
9978 #line 9978 "configure"
9979 #include "confdefs.h"
9980
9981 #if HAVE_DLFCN_H
9982 #include <dlfcn.h>
9983 #endif
9984
9985 #include <stdio.h>
9986
9987 #ifdef RTLD_GLOBAL
9988 # define LT_DLGLOBAL RTLD_GLOBAL
9989 #else
9990 # ifdef DL_GLOBAL
9991 # define LT_DLGLOBAL DL_GLOBAL
9992 # else
9993 # define LT_DLGLOBAL 0
9994 # endif
9995 #endif
9996
9997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9998 find out it does not work in some platform. */
9999 #ifndef LT_DLLAZY_OR_NOW
10000 # ifdef RTLD_LAZY
10001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10002 # else
10003 # ifdef DL_LAZY
10004 # define LT_DLLAZY_OR_NOW DL_LAZY
10005 # else
10006 # ifdef RTLD_NOW
10007 # define LT_DLLAZY_OR_NOW RTLD_NOW
10008 # else
10009 # ifdef DL_NOW
10010 # define LT_DLLAZY_OR_NOW DL_NOW
10011 # else
10012 # define LT_DLLAZY_OR_NOW 0
10013 # endif
10014 # endif
10015 # endif
10016 # endif
10017 #endif
10018
10019 #ifdef __cplusplus
10020 extern "C" void exit (int);
10021 #endif
10022
10023 void fnord() { int i=42;}
10024 int main ()
10025 {
10026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10027 int status = $lt_dlunknown;
10028
10029 if (self)
10030 {
10031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10033 /* dlclose (self); */
10034 }
10035 else
10036 puts (dlerror ());
10037
10038 exit (status);
10039 }
10040 _LT_EOF
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042 (eval $ac_link) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10046 (./conftest; exit; ) >&5 2>/dev/null
10047 lt_status=$?
10048 case x$lt_status in
10049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10051 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10052 esac
10053 else :
10054 # compilation failed
10055 lt_cv_dlopen_self=no
10056 fi
10057 fi
10058 rm -fr conftest*
10059
10060
10061 fi
10062 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10063 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10064
10065 if test "x$lt_cv_dlopen_self" = xyes; then
10066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10067 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10068 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10069 if test "${lt_cv_dlopen_self_static+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 if test "$cross_compiling" = yes; then :
10073 lt_cv_dlopen_self_static=cross
10074 else
10075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10076 lt_status=$lt_dlunknown
10077 cat > conftest.$ac_ext <<_LT_EOF
10078 #line 10078 "configure"
10079 #include "confdefs.h"
10080
10081 #if HAVE_DLFCN_H
10082 #include <dlfcn.h>
10083 #endif
10084
10085 #include <stdio.h>
10086
10087 #ifdef RTLD_GLOBAL
10088 # define LT_DLGLOBAL RTLD_GLOBAL
10089 #else
10090 # ifdef DL_GLOBAL
10091 # define LT_DLGLOBAL DL_GLOBAL
10092 # else
10093 # define LT_DLGLOBAL 0
10094 # endif
10095 #endif
10096
10097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10098 find out it does not work in some platform. */
10099 #ifndef LT_DLLAZY_OR_NOW
10100 # ifdef RTLD_LAZY
10101 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10102 # else
10103 # ifdef DL_LAZY
10104 # define LT_DLLAZY_OR_NOW DL_LAZY
10105 # else
10106 # ifdef RTLD_NOW
10107 # define LT_DLLAZY_OR_NOW RTLD_NOW
10108 # else
10109 # ifdef DL_NOW
10110 # define LT_DLLAZY_OR_NOW DL_NOW
10111 # else
10112 # define LT_DLLAZY_OR_NOW 0
10113 # endif
10114 # endif
10115 # endif
10116 # endif
10117 #endif
10118
10119 #ifdef __cplusplus
10120 extern "C" void exit (int);
10121 #endif
10122
10123 void fnord() { int i=42;}
10124 int main ()
10125 {
10126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10127 int status = $lt_dlunknown;
10128
10129 if (self)
10130 {
10131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10132 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10133 /* dlclose (self); */
10134 }
10135 else
10136 puts (dlerror ());
10137
10138 exit (status);
10139 }
10140 _LT_EOF
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10146 (./conftest; exit; ) >&5 2>/dev/null
10147 lt_status=$?
10148 case x$lt_status in
10149 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10150 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10151 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10152 esac
10153 else :
10154 # compilation failed
10155 lt_cv_dlopen_self_static=no
10156 fi
10157 fi
10158 rm -fr conftest*
10159
10160
10161 fi
10162 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10163 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10164 fi
10165
10166 CPPFLAGS="$save_CPPFLAGS"
10167 LDFLAGS="$save_LDFLAGS"
10168 LIBS="$save_LIBS"
10169 ;;
10170 esac
10171
10172 case $lt_cv_dlopen_self in
10173 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10174 *) enable_dlopen_self=unknown ;;
10175 esac
10176
10177 case $lt_cv_dlopen_self_static in
10178 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10179 *) enable_dlopen_self_static=unknown ;;
10180 esac
10181 fi
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199 striplib=
10200 old_striplib=
10201 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10202 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10203 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10204 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10205 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10206 echo "$as_me:$LINENO: result: yes" >&5
10207 echo "${ECHO_T}yes" >&6
10208 else
10209 # FIXME - insert some real tests, host_os isn't really good enough
10210 case $host_os in
10211 darwin*)
10212 if test -n "$STRIP" ; then
10213 striplib="$STRIP -x"
10214 old_striplib="$STRIP -S"
10215 echo "$as_me:$LINENO: result: yes" >&5
10216 echo "${ECHO_T}yes" >&6
10217 else
10218 echo "$as_me:$LINENO: result: no" >&5
10219 echo "${ECHO_T}no" >&6
10220 fi
10221 ;;
10222 *)
10223 echo "$as_me:$LINENO: result: no" >&5
10224 echo "${ECHO_T}no" >&6
10225 ;;
10226 esac
10227 fi
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240 # Report which library types will actually be built
10241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10244 echo "${ECHO_T}$can_build_shared" >&6
10245
10246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10248 test "$can_build_shared" = "no" && enable_shared=no
10249
10250 # On AIX, shared libraries and static libraries use the same namespace, and
10251 # are all built from PIC.
10252 case $host_os in
10253 aix3*)
10254 test "$enable_shared" = yes && enable_static=no
10255 if test -n "$RANLIB"; then
10256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10257 postinstall_cmds='$RANLIB $lib'
10258 fi
10259 ;;
10260
10261 aix[4-9]*)
10262 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10263 test "$enable_shared" = yes && enable_static=no
10264 fi
10265 ;;
10266 esac
10267 echo "$as_me:$LINENO: result: $enable_shared" >&5
10268 echo "${ECHO_T}$enable_shared" >&6
10269
10270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10272 # Make sure either enable_shared or enable_static is yes.
10273 test "$enable_shared" = yes || enable_static=yes
10274 echo "$as_me:$LINENO: result: $enable_static" >&5
10275 echo "${ECHO_T}$enable_static" >&6
10276
10277
10278
10279
10280 fi
10281 ac_ext=c
10282 ac_cpp='$CPP $CPPFLAGS'
10283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10286
10287 CC="$lt_save_CC"
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301 ac_config_commands="$ac_config_commands libtool"
10302
10303
10304
10305
10306 # Only expand once:
10307
10308
10309
10310 # Check whether --enable-targets or --disable-targets was given.
10311 if test "${enable_targets+set}" = set; then
10312 enableval="$enable_targets"
10313 case "${enableval}" in
10314 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10315 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10316 { (exit 1); exit 1; }; }
10317 ;;
10318 no) enable_targets= ;;
10319 *) enable_targets=$enableval ;;
10320 esac
10321 fi;
10322 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10323 if test "${enable_commonbfdlib+set}" = set; then
10324 enableval="$enable_commonbfdlib"
10325 case "${enableval}" in
10326 yes) commonbfdlib=true ;;
10327 no) commonbfdlib=false ;;
10328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10329 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10330 { (exit 1); exit 1; }; } ;;
10331 esac
10332 fi;
10333 ac_checking=yes
10334 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10335 ac_checking=
10336 fi
10337 # Check whether --enable-checking or --disable-checking was given.
10338 if test "${enable_checking+set}" = set; then
10339 enableval="$enable_checking"
10340 case "${enableval}" in
10341 no|none) ac_checking= ;;
10342 *) ac_checking=yes ;;
10343 esac
10344 fi; if test x$ac_checking != x ; then
10345
10346 cat >>confdefs.h <<\_ACEOF
10347 #define ENABLE_CHECKING 1
10348 _ACEOF
10349
10350 fi
10351
10352 using_cgen=no
10353
10354
10355 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10356
10357 # Check whether --enable-werror or --disable-werror was given.
10358 if test "${enable_werror+set}" = set; then
10359 enableval="$enable_werror"
10360 case "${enableval}" in
10361 yes | y) ERROR_ON_WARNING="yes" ;;
10362 no | n) ERROR_ON_WARNING="no" ;;
10363 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10364 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10365 { (exit 1); exit 1; }; } ;;
10366 esac
10367 fi;
10368
10369 # Enable -Wno-format by default when using gcc on mingw
10370 case "${host}" in
10371 *-*-mingw32*)
10372 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10373 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10374 fi
10375 ;;
10376 *) ;;
10377 esac
10378
10379 # Enable -Werror by default when using gcc
10380 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10381 ERROR_ON_WARNING=yes
10382 fi
10383
10384 NO_WERROR=
10385 if test "${ERROR_ON_WARNING}" = yes ; then
10386 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10387 NO_WERROR="-Wno-error"
10388 fi
10389
10390 if test "${GCC}" = yes ; then
10391 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10392 fi
10393
10394 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10395 if test "${enable_build_warnings+set}" = set; then
10396 enableval="$enable_build_warnings"
10397 case "${enableval}" in
10398 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10399 no) if test "${GCC}" = yes ; then
10400 WARN_CFLAGS="-w"
10401 fi;;
10402 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10403 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10404 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10405 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10406 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10407 esac
10408 fi;
10409
10410 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10411 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10412 fi
10413
10414
10415
10416
10417
10418 # Generate a header file
10419 ac_config_headers="$ac_config_headers config.h:config.in"
10420
10421
10422 # If we are on a DOS filesystem, we must use gdb.ini rather than
10423 # .gdbinit.
10424 case "${host}" in
10425 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10426 GDBINIT="gdb.ini"
10427 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
10428
10429 ;;
10430 *)
10431 GDBINIT=".gdbinit"
10432 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
10433
10434 ;;
10435 esac
10436
10437
10438 #We need this for the host. BOUT header is in host order.
10439 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10440 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10441 if test "${ac_cv_c_bigendian+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444 # See if sys/param.h defines the BYTE_ORDER macro.
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <sys/types.h>
10452 #include <sys/param.h>
10453
10454 int
10455 main ()
10456 {
10457 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10458 bogus endian macros
10459 #endif
10460
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 rm -f conftest.$ac_objext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467 (eval $ac_compile) 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 # It does; now see whether it defined to BIG_ENDIAN or not.
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <sys/types.h>
10495 #include <sys/param.h>
10496
10497 int
10498 main ()
10499 {
10500 #if BYTE_ORDER != BIG_ENDIAN
10501 not big endian
10502 #endif
10503
10504 ;
10505 return 0;
10506 }
10507 _ACEOF
10508 rm -f conftest.$ac_objext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 (eval $ac_compile) 2>conftest.er1
10511 ac_status=$?
10512 grep -v '^ *+' conftest.er1 >conftest.err
10513 rm -f conftest.er1
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
10517 { ac_try='test -z "$ac_c_werror_flag"
10518 || test ! -s conftest.err'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_cv_c_bigendian=yes
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 ac_cv_c_bigendian=no
10536 fi
10537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10538 else
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10541
10542 # It does not; compile a test program.
10543 if test "$cross_compiling" = yes; then
10544 # try to guess the endianness by grepping values into an object file
10545 ac_cv_c_bigendian=unknown
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10553 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10554 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10555 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10556 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10557 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10558 int
10559 main ()
10560 {
10561 _ascii (); _ebcdic ();
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10589 ac_cv_c_bigendian=yes
10590 fi
10591 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10592 if test "$ac_cv_c_bigendian" = unknown; then
10593 ac_cv_c_bigendian=no
10594 else
10595 # finding both strings is unlikely to happen, but who knows?
10596 ac_cv_c_bigendian=unknown
10597 fi
10598 fi
10599 else
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603 fi
10604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10605 else
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h. */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612 int
10613 main ()
10614 {
10615 /* Are we little or big endian? From Harbison&Steele. */
10616 union
10617 {
10618 long l;
10619 char c[sizeof (long)];
10620 } u;
10621 u.l = 1;
10622 exit (u.c[sizeof (long) - 1] == 1);
10623 }
10624 _ACEOF
10625 rm -f conftest$ac_exeext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_c_bigendian=no
10637 else
10638 echo "$as_me: program exited with status $ac_status" >&5
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 ( exit $ac_status )
10643 ac_cv_c_bigendian=yes
10644 fi
10645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10646 fi
10647 fi
10648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10649 fi
10650 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10651 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10652 case $ac_cv_c_bigendian in
10653 yes)
10654
10655 cat >>confdefs.h <<\_ACEOF
10656 #define WORDS_BIGENDIAN 1
10657 _ACEOF
10658 ;;
10659 no)
10660 ;;
10661 *)
10662 { { echo "$as_me:$LINENO: error: unknown endianness
10663 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10664 echo "$as_me: error: unknown endianness
10665 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10666 { (exit 1); exit 1; }; } ;;
10667 esac
10668
10669
10670 te_file=generic
10671
10672 # Makefile target for installing gas in $(tooldir)/bin.
10673 install_tooldir=install-exec-tooldir
10674
10675 canon_targets=""
10676 all_targets=no
10677 if test -n "$enable_targets" ; then
10678 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10679 if test $t = "all"; then
10680 all_targets=yes
10681 continue
10682 fi
10683 result=`$ac_config_sub $t 2>/dev/null`
10684 if test -n "$result" ; then
10685 canon_targets="$canon_targets $result"
10686 # else
10687 # # Permit "all", etc. We don't support it yet though.
10688 # canon_targets="$canon_targets $t"
10689 fi
10690 done
10691 _gas_uniq_list="$canon_targets"
10692 _gas_uniq_newlist=""
10693 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10694 case $_gas_uniq_i in
10695 _gas_uniq_dummy) ;;
10696 *) case " $_gas_uniq_newlist " in
10697 *" $_gas_uniq_i "*) ;;
10698 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10699 esac ;;
10700 esac
10701 done
10702 canon_targets=$_gas_uniq_newlist
10703
10704 fi
10705
10706 emulations=""
10707
10708 for this_target in $target $canon_targets ; do
10709
10710 targ=${this_target}
10711 . ${srcdir}/configure.tgt
10712
10713 case ${target_cpu} in
10714 crisv32)
10715
10716 cat >>confdefs.h <<_ACEOF
10717 #define DEFAULT_CRIS_ARCH $arch
10718 _ACEOF
10719
10720 ;;
10721 esac
10722
10723 if test ${this_target} = $target ; then
10724 target_cpu_type=${cpu_type}
10725 elif test ${target_cpu_type} != ${cpu_type} ; then
10726 continue
10727 fi
10728
10729 generic_target=${cpu_type}-${target_vendor}-${target_os}
10730 case ${generic_target} in
10731 i386-*-sco3.2v5*)
10732 if test ${this_target} = $target; then
10733
10734 cat >>confdefs.h <<\_ACEOF
10735 #define SCO_ELF 1
10736 _ACEOF
10737
10738 fi
10739 ;;
10740
10741 i386-*-msdosdjgpp* \
10742 | i386-*-go32* \
10743 | i386-go32-rtems*)
10744
10745 cat >>confdefs.h <<\_ACEOF
10746 #define STRICTCOFF 1
10747 _ACEOF
10748
10749 ;;
10750
10751 i860-*-*)
10752 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10753 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10754 ;;
10755
10756 mips-sony-bsd*)
10757 ;;
10758 mips-*-bsd*)
10759 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
10760 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
10761 { (exit 1); exit 1; }; }
10762 ;;
10763
10764 ppc-*-aix5.*)
10765
10766 cat >>confdefs.h <<\_ACEOF
10767 #define AIX_WEAK_SUPPORT 1
10768 _ACEOF
10769
10770 ;;
10771 ppc-*-linux-*)
10772 case "$endian" in
10773 big) ;;
10774 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
10775 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
10776 { (exit 1); exit 1; }; } ;;
10777 esac
10778 ;;
10779 ppc-*-solaris*)
10780 if test ${this_target} = $target; then
10781
10782 cat >>confdefs.h <<\_ACEOF
10783 #define TARGET_SOLARIS_COMMENT 1
10784 _ACEOF
10785
10786 fi
10787 if test x${endian} = xbig; then
10788 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
10789 echo "$as_me: error: Solaris must be configured little endian" >&2;}
10790 { (exit 1); exit 1; }; }
10791 fi
10792 ;;
10793
10794 sh*-*-symbianelf*)
10795
10796 cat >>confdefs.h <<\_ACEOF
10797 #define TARGET_SYMBIAN 1
10798 _ACEOF
10799
10800 ;;
10801 esac
10802
10803 if test ${this_target} = $target ; then
10804 endian_def=
10805 if test x${endian} = xbig; then
10806 endian_def=1
10807 elif test x${endian} = xlittle; then
10808 endian_def=0
10809 fi
10810 if test x${endian_def} != x; then
10811
10812 cat >>confdefs.h <<_ACEOF
10813 #define TARGET_BYTES_BIG_ENDIAN $endian_def
10814 _ACEOF
10815
10816 fi
10817 fi
10818
10819 # Other random stuff.
10820
10821 case ${cpu_type} in
10822 mips)
10823 # Set mips_cpu to the name of the default CPU.
10824 case ${target_cpu} in
10825 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
10826 mips_cpu=from-abi
10827 ;;
10828 mipsisa32 | mipsisa32el)
10829 mips_cpu=mips32
10830 ;;
10831 mipsisa32r2 | mipsisa32r2el)
10832 mips_cpu=mips32r2
10833 ;;
10834 mipsisa64 | mipsisa64el)
10835 mips_cpu=mips64
10836 ;;
10837 mipsisa64r2 | mipsisa64r2el)
10838 mips_cpu=mips64r2
10839 ;;
10840 mipstx39 | mipstx39el)
10841 mips_cpu=r3900
10842 ;;
10843 mips64vr | mips64vrel)
10844 mips_cpu=vr4100
10845 ;;
10846 mipsisa32r2* | mipsisa64r2*)
10847 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
10848 ;;
10849 mips64* | mipsisa64* | mipsisa32*)
10850 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
10851 ;;
10852 *)
10853 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
10854 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
10855 { (exit 1); exit 1; }; }
10856 ;;
10857 esac
10858 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
10859 # binaries. It's a GNU extension that some OSes don't understand.
10860 # The value only matters on ELF targets.
10861 case ${target} in
10862 *-*-irix*)
10863 use_e_mips_abi_o32=0
10864 ;;
10865 *)
10866 use_e_mips_abi_o32=1
10867 ;;
10868 esac
10869 # Decide whether to generate 32-bit or 64-bit code by default.
10870 # Used to resolve -march=from-abi when an embedded ABI is selected.
10871 case ${target} in
10872 mips64*-*-* | mipsisa64*-*-*)
10873 mips_default_64bit=1
10874 ;;
10875 *)
10876 mips_default_64bit=0
10877 ;;
10878 esac
10879 # Decide which ABI to target by default.
10880 case ${target} in
10881 mips64*-linux* | mips-sgi-irix6*)
10882 mips_default_abi=N32_ABI
10883 ;;
10884 mips*-linux*)
10885 mips_default_abi=O32_ABI
10886 ;;
10887 mips64*-openbsd*)
10888 mips_default_abi=N64_ABI
10889 ;;
10890 *)
10891 mips_default_abi=NO_ABI
10892 ;;
10893 esac
10894
10895 cat >>confdefs.h <<_ACEOF
10896 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
10897 _ACEOF
10898
10899
10900 cat >>confdefs.h <<_ACEOF
10901 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
10902 _ACEOF
10903
10904
10905 cat >>confdefs.h <<_ACEOF
10906 #define MIPS_DEFAULT_64BIT $mips_default_64bit
10907 _ACEOF
10908
10909
10910 cat >>confdefs.h <<_ACEOF
10911 #define MIPS_DEFAULT_ABI $mips_default_abi
10912 _ACEOF
10913
10914 ;;
10915 esac
10916
10917 # Do we need the opcodes library?
10918 case ${cpu_type} in
10919 vax | tic30)
10920 ;;
10921
10922 *)
10923 need_opcodes=yes
10924
10925 case "${enable_shared}" in
10926 yes) shared_opcodes=true ;;
10927 *opcodes*) shared_opcodes=true ;;
10928 *) shared_opcodes=false ;;
10929 esac
10930 ;;
10931 esac
10932
10933 # Any other special object files needed ?
10934 case ${cpu_type} in
10935
10936 bfin)
10937 echo ${extra_objects} | grep -s "bfin-parse.o"
10938 if test $? -ne 0 ; then
10939 extra_objects="$extra_objects bfin-parse.o"
10940 fi
10941
10942 echo ${extra_objects} | grep -s "bfin-lex.o"
10943 if test $? -ne 0 ; then
10944 extra_objects="$extra_objects bfin-lex.o"
10945 fi
10946 ;;
10947
10948 fr30 | ip2k | iq2000 | m32r | openrisc)
10949 using_cgen=yes
10950 ;;
10951
10952 m32c)
10953 using_cgen=yes
10954 ;;
10955 frv)
10956 using_cgen=yes
10957 ;;
10958 m68k)
10959 case ${extra_objects} in
10960 *m68k-parse.o*) ;;
10961 *) extra_objects="$extra_objects m68k-parse.o" ;;
10962 esac
10963 ;;
10964
10965 mep)
10966 using_cgen=yes
10967 ;;
10968
10969 mips)
10970 echo ${extra_objects} | grep -s "itbl-parse.o"
10971 if test $? -ne 0 ; then
10972 extra_objects="$extra_objects itbl-parse.o"
10973 fi
10974
10975 echo ${extra_objects} | grep -s "itbl-lex.o"
10976 if test $? -ne 0 ; then
10977 extra_objects="$extra_objects itbl-lex.o"
10978 fi
10979
10980 echo ${extra_objects} | grep -s "itbl-ops.o"
10981 if test $? -ne 0 ; then
10982 extra_objects="$extra_objects itbl-ops.o"
10983 fi
10984 ;;
10985
10986 mt)
10987 using_cgen=yes
10988 ;;
10989
10990 i386 | s390 | sparc)
10991 if test $this_target = $target ; then
10992
10993 cat >>confdefs.h <<_ACEOF
10994 #define DEFAULT_ARCH "${arch}"
10995 _ACEOF
10996
10997 fi
10998 ;;
10999
11000 xstormy16)
11001 using_cgen=yes
11002 ;;
11003
11004 xc16x)
11005 using_cgen=yes
11006 ;;
11007
11008 xtensa)
11009 echo ${extra_objects} | grep -s "xtensa-relax.o"
11010 if test $? -ne 0 ; then
11011 extra_objects="$extra_objects xtensa-relax.o"
11012 fi
11013 ;;
11014
11015 *)
11016 ;;
11017 esac
11018
11019 if test $using_cgen = yes ; then
11020 case "x${extra_objects}" in
11021 *cgen.o*) ;;
11022 *) extra_objects="$extra_objects cgen.o" ;;
11023 esac
11024 fi
11025
11026 # See if we really can support this configuration with the emulation code.
11027
11028 if test $this_target = $target ; then
11029 obj_format=$fmt
11030 te_file=$em
11031 fi
11032
11033 # From target name and format, produce a list of supported emulations.
11034
11035 case ${generic_target}-${fmt} in
11036 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11037 mips*-*-linux*-*) case "$endian" in
11038 big) emulation="mipsbelf mipslelf mipself" ;;
11039 *) emulation="mipslelf mipsbelf mipself" ;;
11040 esac ;;
11041 mips-*-lnews*-ecoff) ;;
11042 mips-*-*-ecoff) case "$endian" in
11043 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11044 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11045 esac ;;
11046 mips-*-*-elf) case "$endian" in
11047 big) emulation="mipsbelf mipslelf mipself" ;;
11048 *) emulation="mipslelf mipsbelf mipself" ;;
11049 esac ;;
11050 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11051 # i386-pc-pe-coff != i386-pc-coff.
11052 i386-*-pe-coff) ;;
11053 # Uncommenting the next line will turn on support for i386 AOUT
11054 # for the default linux configuration
11055 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11056 #
11057 i386-*-aout) emulation="i386aout" ;;
11058 i386-*-coff) emulation="i386coff" ;;
11059 i386-*-elf) emulation="i386elf" ;;
11060
11061 # Always all formats. The first stated emulation becomes the default.
11062 cris-*-*aout*) emulation="crisaout criself" ;;
11063 cris-*-*) emulation="criself crisaout" ;;
11064 esac
11065
11066 emulations="$emulations $emulation"
11067
11068 done
11069
11070 # Turn on all targets if possible
11071 if test ${all_targets} = "yes"; then
11072 case ${target_cpu_type} in
11073 i386)
11074 case ${obj_format} in
11075 aout)
11076 emulations="$emulations i386coff i386elf"
11077 ;;
11078 coff)
11079 emulations="$emulations i386aout i386elf"
11080 ;;
11081 elf)
11082 emulations="$emulations i386aout i386coff"
11083 ;;
11084 esac
11085 ;;
11086 x86_64)
11087 case ${obj_format} in
11088 aout)
11089 emulations="$emulations i386coff i386elf"
11090 ;;
11091 coff)
11092 emulations="$emulations i386aout i386elf"
11093 ;;
11094 elf)
11095 emulations="$emulations i386aout i386coff"
11096 ;;
11097 esac
11098 ;;
11099 esac
11100 fi
11101
11102 # Assign floating point type. Most processors with FP support
11103 # IEEE FP. On those that don't support FP at all, usually IEEE
11104 # is emulated.
11105 case ${target_cpu} in
11106 vax | pdp11 ) atof=vax ;;
11107 *) atof=ieee ;;
11108 esac
11109
11110 case "${obj_format}" in
11111 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11112 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11113 { (exit 1); exit 1; }; } ;;
11114 esac
11115
11116 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11117 cgen_cpu_prefix=""
11118 if test $using_cgen = yes ; then
11119 case ${target_cpu} in
11120 *) cgen_cpu_prefix=${target_cpu} ;;
11121 esac
11122
11123
11124 cat >>confdefs.h <<\_ACEOF
11125 #define USING_CGEN 1
11126 _ACEOF
11127
11128 fi
11129
11130
11131 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11132 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11133 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11134 { (exit 1); exit 1; }; }
11135 fi
11136
11137 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11138 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11139 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11140 { (exit 1); exit 1; }; }
11141 fi
11142
11143 # Some COFF configurations want these random other flags set.
11144 case ${obj_format} in
11145 coff)
11146 case ${target_cpu_type} in
11147 i386)
11148 cat >>confdefs.h <<\_ACEOF
11149 #define I386COFF 1
11150 _ACEOF
11151 ;;
11152 m68k)
11153 cat >>confdefs.h <<\_ACEOF
11154 #define M68KCOFF 1
11155 _ACEOF
11156 ;;
11157 m88k)
11158 cat >>confdefs.h <<\_ACEOF
11159 #define M88KCOFF 1
11160 _ACEOF
11161 ;;
11162 x86_64)
11163 cat >>confdefs.h <<\_ACEOF
11164 #define I386COFF 1
11165 _ACEOF
11166 ;;
11167 esac
11168 ;;
11169 esac
11170
11171 # Getting this done right is going to be a bitch. Each configuration specified
11172 # with --enable-targets=... should be checked for environment, format, cpu
11173 # setting.
11174 #
11175 # For each configuration, the necessary object file support code must be linked
11176 # in. This might be only one, it might be up to four. The necessary emulation
11177 # code needs to be provided, too.
11178 #
11179 # And then there's "--enable-targets=all"....
11180 #
11181 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11182
11183 formats="${obj_format}"
11184 emfiles=""
11185 EMULATIONS=""
11186 _gas_uniq_list="$emulations"
11187 _gas_uniq_newlist=""
11188 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11189 case $_gas_uniq_i in
11190 _gas_uniq_dummy) ;;
11191 *) case " $_gas_uniq_newlist " in
11192 *" $_gas_uniq_i "*) ;;
11193 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11194 esac ;;
11195 esac
11196 done
11197 emulations=$_gas_uniq_newlist
11198
11199 for em in . $emulations ; do
11200 case $em in
11201 .) continue ;;
11202 mipsbelf | mipslelf | mipself)
11203 fmt=elf file=mipself ;;
11204 mipsbecoff | mipslecoff | mipsecoff)
11205 fmt=ecoff file=mipsecoff ;;
11206 *coff)
11207 fmt=coff file=$em ;;
11208 *aout)
11209 fmt=aout file=$em ;;
11210 *elf)
11211 fmt=elf file=$em ;;
11212 esac
11213 formats="$formats $fmt"
11214 emfiles="$emfiles e-$file.o"
11215 EMULATIONS="$EMULATIONS &$em,"
11216 done
11217 _gas_uniq_list="$formats"
11218 _gas_uniq_newlist=""
11219 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11220 case $_gas_uniq_i in
11221 _gas_uniq_dummy) ;;
11222 *) case " $_gas_uniq_newlist " in
11223 *" $_gas_uniq_i "*) ;;
11224 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11225 esac ;;
11226 esac
11227 done
11228 formats=$_gas_uniq_newlist
11229
11230 _gas_uniq_list="$emfiles"
11231 _gas_uniq_newlist=""
11232 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11233 case $_gas_uniq_i in
11234 _gas_uniq_dummy) ;;
11235 *) case " $_gas_uniq_newlist " in
11236 *" $_gas_uniq_i "*) ;;
11237 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11238 esac ;;
11239 esac
11240 done
11241 emfiles=$_gas_uniq_newlist
11242
11243 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11244 for fmt in $formats ; do
11245 case $fmt in
11246 aout)
11247 cat >>confdefs.h <<\_ACEOF
11248 #define OBJ_MAYBE_AOUT 1
11249 _ACEOF
11250 ;;
11251 bout)
11252 cat >>confdefs.h <<\_ACEOF
11253 #define OBJ_MAYBE_BOUT 1
11254 _ACEOF
11255 ;;
11256 coff)
11257 cat >>confdefs.h <<\_ACEOF
11258 #define OBJ_MAYBE_COFF 1
11259 _ACEOF
11260 ;;
11261 ecoff)
11262 cat >>confdefs.h <<\_ACEOF
11263 #define OBJ_MAYBE_ECOFF 1
11264 _ACEOF
11265 ;;
11266 elf)
11267 cat >>confdefs.h <<\_ACEOF
11268 #define OBJ_MAYBE_ELF 1
11269 _ACEOF
11270 ;;
11271 generic)
11272 cat >>confdefs.h <<\_ACEOF
11273 #define OBJ_MAYBE_GENERIC 1
11274 _ACEOF
11275 ;;
11276 som)
11277 cat >>confdefs.h <<\_ACEOF
11278 #define OBJ_MAYBE_SOM 1
11279 _ACEOF
11280 ;;
11281 esac
11282 extra_objects="$extra_objects obj-$fmt.o"
11283 done
11284 obj_format=multi
11285 fi
11286 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11287 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11288 # e-mips* has more than one emulation per file, e-i386* has just one at the
11289 # moment. If only one emulation is specified, then don't define
11290 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11291 case "${obj_format}${emfiles}" in
11292 multi* | *mips*)
11293 extra_objects="$extra_objects $emfiles"
11294
11295 cat >>confdefs.h <<\_ACEOF
11296 #define USE_EMULATIONS 1
11297 _ACEOF
11298 ;;
11299 esac
11300 fi
11301
11302
11303 cat >>confdefs.h <<_ACEOF
11304 #define EMULATIONS $EMULATIONS
11305 _ACEOF
11306
11307
11308 cat >>confdefs.h <<_ACEOF
11309 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
11310 _ACEOF
11311
11312
11313 reject_dev_configs=yes
11314
11315 case ${reject_dev_configs}-${dev} in
11316 yes-yes) # Oops.
11317 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11318 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11319 { (exit 1); exit 1; }; }
11320 ;;
11321 esac
11322
11323
11324
11325
11326
11327
11328
11329 # do we need the opcodes library?
11330 case "${need_opcodes}" in
11331 yes)
11332 OPCODES_LIB=../opcodes/libopcodes.la
11333 ;;
11334 esac
11335
11336
11337
11338
11339 cat >>confdefs.h <<_ACEOF
11340 #define TARGET_ALIAS "${target_alias}"
11341 _ACEOF
11342
11343
11344 cat >>confdefs.h <<_ACEOF
11345 #define TARGET_CANONICAL "${target}"
11346 _ACEOF
11347
11348
11349 cat >>confdefs.h <<_ACEOF
11350 #define TARGET_CPU "${target_cpu}"
11351 _ACEOF
11352
11353
11354 cat >>confdefs.h <<_ACEOF
11355 #define TARGET_VENDOR "${target_vendor}"
11356 _ACEOF
11357
11358
11359 cat >>confdefs.h <<_ACEOF
11360 #define TARGET_OS "${target_os}"
11361 _ACEOF
11362
11363
11364 for ac_prog in 'bison -y' byacc
11365 do
11366 # Extract the first word of "$ac_prog", so it can be a program name with args.
11367 set dummy $ac_prog; ac_word=$2
11368 echo "$as_me:$LINENO: checking for $ac_word" >&5
11369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11370 if test "${ac_cv_prog_YACC+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373 if test -n "$YACC"; then
11374 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11375 else
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_prog_YACC="$ac_prog"
11384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387 done
11388 done
11389
11390 fi
11391 fi
11392 YACC=$ac_cv_prog_YACC
11393 if test -n "$YACC"; then
11394 echo "$as_me:$LINENO: result: $YACC" >&5
11395 echo "${ECHO_T}$YACC" >&6
11396 else
11397 echo "$as_me:$LINENO: result: no" >&5
11398 echo "${ECHO_T}no" >&6
11399 fi
11400
11401 test -n "$YACC" && break
11402 done
11403 test -n "$YACC" || YACC="yacc"
11404
11405 for ac_prog in flex lex
11406 do
11407 # Extract the first word of "$ac_prog", so it can be a program name with args.
11408 set dummy $ac_prog; ac_word=$2
11409 echo "$as_me:$LINENO: checking for $ac_word" >&5
11410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11411 if test "${ac_cv_prog_LEX+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414 if test -n "$LEX"; then
11415 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11416 else
11417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11419 do
11420 IFS=$as_save_IFS
11421 test -z "$as_dir" && as_dir=.
11422 for ac_exec_ext in '' $ac_executable_extensions; do
11423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11424 ac_cv_prog_LEX="$ac_prog"
11425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11426 break 2
11427 fi
11428 done
11429 done
11430
11431 fi
11432 fi
11433 LEX=$ac_cv_prog_LEX
11434 if test -n "$LEX"; then
11435 echo "$as_me:$LINENO: result: $LEX" >&5
11436 echo "${ECHO_T}$LEX" >&6
11437 else
11438 echo "$as_me:$LINENO: result: no" >&5
11439 echo "${ECHO_T}no" >&6
11440 fi
11441
11442 test -n "$LEX" && break
11443 done
11444 test -n "$LEX" || LEX=":"
11445
11446 if test -z "$LEXLIB"
11447 then
11448 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11449 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11450 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453 ac_check_lib_save_LIBS=$LIBS
11454 LIBS="-lfl $LIBS"
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h. */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461
11462 /* Override any gcc2 internal prototype to avoid an error. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 /* We use char because int might match the return type of a gcc2
11467 builtin and then its argument prototype would still apply. */
11468 char yywrap ();
11469 int
11470 main ()
11471 {
11472 yywrap ();
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479 (eval $ac_link) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest$ac_exeext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_cv_lib_fl_yywrap=yes
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 ac_cv_lib_fl_yywrap=no
11505 fi
11506 rm -f conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508 LIBS=$ac_check_lib_save_LIBS
11509 fi
11510 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11511 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11512 if test $ac_cv_lib_fl_yywrap = yes; then
11513 LEXLIB="-lfl"
11514 else
11515 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11516 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11517 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 else
11520 ac_check_lib_save_LIBS=$LIBS
11521 LIBS="-ll $LIBS"
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528
11529 /* Override any gcc2 internal prototype to avoid an error. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 /* We use char because int might match the return type of a gcc2
11534 builtin and then its argument prototype would still apply. */
11535 char yywrap ();
11536 int
11537 main ()
11538 {
11539 yywrap ();
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11546 (eval $ac_link) 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -z "$ac_c_werror_flag"
11554 || test ! -s conftest.err'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; } &&
11560 { ac_try='test -s conftest$ac_exeext'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_lib_l_yywrap=yes
11567 else
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571 ac_cv_lib_l_yywrap=no
11572 fi
11573 rm -f conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_lib_save_LIBS
11576 fi
11577 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11578 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11579 if test $ac_cv_lib_l_yywrap = yes; then
11580 LEXLIB="-ll"
11581 fi
11582
11583 fi
11584
11585 fi
11586
11587 if test "x$LEX" != "x:"; then
11588 echo "$as_me:$LINENO: checking lex output file root" >&5
11589 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11590 if test "${ac_cv_prog_lex_root+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593 # The minimal lex program is just a single line: %%. But some broken lexes
11594 # (Solaris, I think it was) want two %% lines, so accommodate them.
11595 cat >conftest.l <<_ACEOF
11596 %%
11597 %%
11598 _ACEOF
11599 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11600 (eval $LEX conftest.l) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }
11604 if test -f lex.yy.c; then
11605 ac_cv_prog_lex_root=lex.yy
11606 elif test -f lexyy.c; then
11607 ac_cv_prog_lex_root=lexyy
11608 else
11609 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11610 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11611 { (exit 1); exit 1; }; }
11612 fi
11613 fi
11614 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11615 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11616 rm -f conftest.l
11617 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11618
11619 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11620 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11621 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 # POSIX says lex can declare yytext either as a pointer or an array; the
11625 # default is implementation-dependent. Figure out which it is, since
11626 # not all implementations provide the %pointer and %array declarations.
11627 ac_cv_prog_lex_yytext_pointer=no
11628 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11629 ac_save_LIBS=$LIBS
11630 LIBS="$LIBS $LEXLIB"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 `cat $LEX_OUTPUT_ROOT.c`
11633 _ACEOF
11634 rm -f conftest.$ac_objext conftest$ac_exeext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636 (eval $ac_link) 2>conftest.er1
11637 ac_status=$?
11638 grep -v '^ *+' conftest.er1 >conftest.err
11639 rm -f conftest.er1
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag"
11644 || test ! -s conftest.err'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest$ac_exeext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_prog_lex_yytext_pointer=yes
11657 else
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 fi
11662 rm -f conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664 LIBS=$ac_save_LIBS
11665 rm -f "${LEX_OUTPUT_ROOT}.c"
11666
11667 fi
11668 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11669 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11670 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11671
11672 cat >>confdefs.h <<\_ACEOF
11673 #define YYTEXT_POINTER 1
11674 _ACEOF
11675
11676 fi
11677
11678 fi
11679 if test "$LEX" = :; then
11680 LEX=${am_missing_run}flex
11681 fi
11682
11683 ALL_LINGUAS="fr tr es rw"
11684 # If we haven't got the data from the intl directory,
11685 # assume NLS is disabled.
11686 USE_NLS=no
11687 LIBINTL=
11688 LIBINTL_DEP=
11689 INCINTL=
11690 XGETTEXT=
11691 GMSGFMT=
11692 POSUB=
11693
11694 if test -f ../intl/config.intl; then
11695 . ../intl/config.intl
11696 fi
11697 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11698 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11699 if test x"$USE_NLS" != xyes; then
11700 echo "$as_me:$LINENO: result: no" >&5
11701 echo "${ECHO_T}no" >&6
11702 else
11703 echo "$as_me:$LINENO: result: yes" >&5
11704 echo "${ECHO_T}yes" >&6
11705
11706 cat >>confdefs.h <<\_ACEOF
11707 #define ENABLE_NLS 1
11708 _ACEOF
11709
11710
11711 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11712 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11713 # Look for .po and .gmo files in the source directory.
11714 CATALOGS=
11715 XLINGUAS=
11716 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11717 # If there aren't any .gmo files the shell will give us the
11718 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11719 # weeded out.
11720 case "$cat" in *\**)
11721 continue;;
11722 esac
11723 # The quadruple backslash is collapsed to a double backslash
11724 # by the backticks, then collapsed again by the double quotes,
11725 # leaving us with one backslash in the sed expression (right
11726 # before the dot that mustn't act as a wildcard).
11727 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11728 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11729 # The user is allowed to set LINGUAS to a list of languages to
11730 # install catalogs for. If it's empty that means "all of them."
11731 if test "x$LINGUAS" = x; then
11732 CATALOGS="$CATALOGS $cat"
11733 XLINGUAS="$XLINGUAS $lang"
11734 else
11735 case "$LINGUAS" in *$lang*)
11736 CATALOGS="$CATALOGS $cat"
11737 XLINGUAS="$XLINGUAS $lang"
11738 ;;
11739 esac
11740 fi
11741 done
11742 LINGUAS="$XLINGUAS"
11743 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11744 echo "${ECHO_T}$LINGUAS" >&6
11745
11746
11747 DATADIRNAME=share
11748
11749 INSTOBJEXT=.mo
11750
11751 GENCAT=gencat
11752
11753 CATOBJEXT=.gmo
11754
11755 fi
11756
11757 MKINSTALLDIRS=
11758 if test -n "$ac_aux_dir"; then
11759 case "$ac_aux_dir" in
11760 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11761 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11762 esac
11763 fi
11764 if test -z "$MKINSTALLDIRS"; then
11765 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11766 fi
11767
11768
11769
11770 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11771 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11772 # Check whether --enable-nls or --disable-nls was given.
11773 if test "${enable_nls+set}" = set; then
11774 enableval="$enable_nls"
11775 USE_NLS=$enableval
11776 else
11777 USE_NLS=yes
11778 fi;
11779 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11780 echo "${ECHO_T}$USE_NLS" >&6
11781
11782
11783
11784
11785
11786
11787 # Prepare PATH_SEPARATOR.
11788 # The user is always right.
11789 if test "${PATH_SEPARATOR+set}" != set; then
11790 echo "#! /bin/sh" >conf$$.sh
11791 echo "exit 0" >>conf$$.sh
11792 chmod +x conf$$.sh
11793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11794 PATH_SEPARATOR=';'
11795 else
11796 PATH_SEPARATOR=:
11797 fi
11798 rm -f conf$$.sh
11799 fi
11800
11801 # Find out how to test for executable files. Don't use a zero-byte file,
11802 # as systems may use methods other than mode bits to determine executability.
11803 cat >conf$$.file <<_ASEOF
11804 #! /bin/sh
11805 exit 0
11806 _ASEOF
11807 chmod +x conf$$.file
11808 if test -x conf$$.file >/dev/null 2>&1; then
11809 ac_executable_p="test -x"
11810 else
11811 ac_executable_p="test -f"
11812 fi
11813 rm -f conf$$.file
11814
11815 # Extract the first word of "msgfmt", so it can be a program name with args.
11816 set dummy msgfmt; ac_word=$2
11817 echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11819 if test "${ac_cv_path_MSGFMT+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822 case "$MSGFMT" in
11823 [\\/]* | ?:[\\/]*)
11824 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11825 ;;
11826 *)
11827 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11828 for ac_dir in $PATH; do
11829 IFS="$ac_save_IFS"
11830 test -z "$ac_dir" && ac_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11833 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11834 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11835 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11836 break 2
11837 fi
11838 fi
11839 done
11840 done
11841 IFS="$ac_save_IFS"
11842 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11843 ;;
11844 esac
11845 fi
11846 MSGFMT="$ac_cv_path_MSGFMT"
11847 if test "$MSGFMT" != ":"; then
11848 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11849 echo "${ECHO_T}$MSGFMT" >&6
11850 else
11851 echo "$as_me:$LINENO: result: no" >&5
11852 echo "${ECHO_T}no" >&6
11853 fi
11854
11855 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11856 set dummy gmsgfmt; ac_word=$2
11857 echo "$as_me:$LINENO: checking for $ac_word" >&5
11858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11859 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862 case $GMSGFMT in
11863 [\\/]* | ?:[\\/]*)
11864 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11865 ;;
11866 *)
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11869 do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11877 fi
11878 done
11879 done
11880
11881 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11882 ;;
11883 esac
11884 fi
11885 GMSGFMT=$ac_cv_path_GMSGFMT
11886
11887 if test -n "$GMSGFMT"; then
11888 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11889 echo "${ECHO_T}$GMSGFMT" >&6
11890 else
11891 echo "$as_me:$LINENO: result: no" >&5
11892 echo "${ECHO_T}no" >&6
11893 fi
11894
11895
11896
11897 # Prepare PATH_SEPARATOR.
11898 # The user is always right.
11899 if test "${PATH_SEPARATOR+set}" != set; then
11900 echo "#! /bin/sh" >conf$$.sh
11901 echo "exit 0" >>conf$$.sh
11902 chmod +x conf$$.sh
11903 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11904 PATH_SEPARATOR=';'
11905 else
11906 PATH_SEPARATOR=:
11907 fi
11908 rm -f conf$$.sh
11909 fi
11910
11911 # Find out how to test for executable files. Don't use a zero-byte file,
11912 # as systems may use methods other than mode bits to determine executability.
11913 cat >conf$$.file <<_ASEOF
11914 #! /bin/sh
11915 exit 0
11916 _ASEOF
11917 chmod +x conf$$.file
11918 if test -x conf$$.file >/dev/null 2>&1; then
11919 ac_executable_p="test -x"
11920 else
11921 ac_executable_p="test -f"
11922 fi
11923 rm -f conf$$.file
11924
11925 # Extract the first word of "xgettext", so it can be a program name with args.
11926 set dummy xgettext; ac_word=$2
11927 echo "$as_me:$LINENO: checking for $ac_word" >&5
11928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11929 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 case "$XGETTEXT" in
11933 [\\/]* | ?:[\\/]*)
11934 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11935 ;;
11936 *)
11937 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11938 for ac_dir in $PATH; do
11939 IFS="$ac_save_IFS"
11940 test -z "$ac_dir" && ac_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11943 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11944 (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
11945 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11946 break 2
11947 fi
11948 fi
11949 done
11950 done
11951 IFS="$ac_save_IFS"
11952 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11953 ;;
11954 esac
11955 fi
11956 XGETTEXT="$ac_cv_path_XGETTEXT"
11957 if test "$XGETTEXT" != ":"; then
11958 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11959 echo "${ECHO_T}$XGETTEXT" >&6
11960 else
11961 echo "$as_me:$LINENO: result: no" >&5
11962 echo "${ECHO_T}no" >&6
11963 fi
11964
11965 rm -f messages.po
11966
11967
11968 # Prepare PATH_SEPARATOR.
11969 # The user is always right.
11970 if test "${PATH_SEPARATOR+set}" != set; then
11971 echo "#! /bin/sh" >conf$$.sh
11972 echo "exit 0" >>conf$$.sh
11973 chmod +x conf$$.sh
11974 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11975 PATH_SEPARATOR=';'
11976 else
11977 PATH_SEPARATOR=:
11978 fi
11979 rm -f conf$$.sh
11980 fi
11981
11982 # Find out how to test for executable files. Don't use a zero-byte file,
11983 # as systems may use methods other than mode bits to determine executability.
11984 cat >conf$$.file <<_ASEOF
11985 #! /bin/sh
11986 exit 0
11987 _ASEOF
11988 chmod +x conf$$.file
11989 if test -x conf$$.file >/dev/null 2>&1; then
11990 ac_executable_p="test -x"
11991 else
11992 ac_executable_p="test -f"
11993 fi
11994 rm -f conf$$.file
11995
11996 # Extract the first word of "msgmerge", so it can be a program name with args.
11997 set dummy msgmerge; ac_word=$2
11998 echo "$as_me:$LINENO: checking for $ac_word" >&5
11999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12000 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 case "$MSGMERGE" in
12004 [\\/]* | ?:[\\/]*)
12005 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12006 ;;
12007 *)
12008 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12009 for ac_dir in $PATH; do
12010 IFS="$ac_save_IFS"
12011 test -z "$ac_dir" && ac_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12014 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12015 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12016 break 2
12017 fi
12018 fi
12019 done
12020 done
12021 IFS="$ac_save_IFS"
12022 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12023 ;;
12024 esac
12025 fi
12026 MSGMERGE="$ac_cv_path_MSGMERGE"
12027 if test "$MSGMERGE" != ":"; then
12028 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12029 echo "${ECHO_T}$MSGMERGE" >&6
12030 else
12031 echo "$as_me:$LINENO: result: no" >&5
12032 echo "${ECHO_T}no" >&6
12033 fi
12034
12035
12036 if test "$GMSGFMT" != ":"; then
12037 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12038 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12039 : ;
12040 else
12041 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12042 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12043 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12044 GMSGFMT=":"
12045 fi
12046 fi
12047
12048 if test "$XGETTEXT" != ":"; then
12049 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12050 (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
12051 : ;
12052 else
12053 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12054 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12055 XGETTEXT=":"
12056 fi
12057 rm -f messages.po
12058 fi
12059
12060 ac_config_commands="$ac_config_commands default-1"
12061
12062
12063
12064 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12065 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12066 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12067 if test "${enable_maintainer_mode+set}" = set; then
12068 enableval="$enable_maintainer_mode"
12069 USE_MAINTAINER_MODE=$enableval
12070 else
12071 USE_MAINTAINER_MODE=no
12072 fi;
12073 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12074 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12075
12076
12077 if test $USE_MAINTAINER_MODE = yes; then
12078 MAINTAINER_MODE_TRUE=
12079 MAINTAINER_MODE_FALSE='#'
12080 else
12081 MAINTAINER_MODE_TRUE='#'
12082 MAINTAINER_MODE_FALSE=
12083 fi
12084
12085 MAINT=$MAINTAINER_MODE_TRUE
12086
12087
12088
12089
12090 if false; then
12091 GENINSRC_NEVER_TRUE=
12092 GENINSRC_NEVER_FALSE='#'
12093 else
12094 GENINSRC_NEVER_TRUE='#'
12095 GENINSRC_NEVER_FALSE=
12096 fi
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110 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
12111 do
12112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12114 echo "$as_me:$LINENO: checking for $ac_header" >&5
12115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 fi
12119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12121 else
12122 # Is the header compilable?
12123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 #include <$ac_header>
12133 _ACEOF
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_header_compiler=yes
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12160
12161 ac_header_compiler=no
12162 fi
12163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12165 echo "${ECHO_T}$ac_header_compiler" >&6
12166
12167 # Is the header present?
12168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #include <$ac_header>
12177 _ACEOF
12178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } >/dev/null; then
12186 if test -s conftest.err; then
12187 ac_cpp_err=$ac_c_preproc_warn_flag
12188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12189 else
12190 ac_cpp_err=
12191 fi
12192 else
12193 ac_cpp_err=yes
12194 fi
12195 if test -z "$ac_cpp_err"; then
12196 ac_header_preproc=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 ac_header_preproc=no
12202 fi
12203 rm -f conftest.err conftest.$ac_ext
12204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12205 echo "${ECHO_T}$ac_header_preproc" >&6
12206
12207 # So? What about this header?
12208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12209 yes:no: )
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12214 ac_header_preproc=yes
12215 ;;
12216 no:yes:* )
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12229 (
12230 cat <<\_ASBOX
12231 ## ------------------------------------------ ##
12232 ## Report this to the AC_PACKAGE_NAME lists. ##
12233 ## ------------------------------------------ ##
12234 _ASBOX
12235 ) |
12236 sed "s/^/$as_me: WARNING: /" >&2
12237 ;;
12238 esac
12239 echo "$as_me:$LINENO: checking for $ac_header" >&5
12240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 eval "$as_ac_Header=\$ac_header_preproc"
12245 fi
12246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12248
12249 fi
12250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12251 cat >>confdefs.h <<_ACEOF
12252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12253 _ACEOF
12254
12255 fi
12256
12257 done
12258
12259
12260 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
12261 # people who are not cross-compiling but are compiling cross-assemblers.
12262 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12263 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
12264 if test "${host}" = "${target}"; then
12265 cross_gas=no
12266 else
12267 cross_gas=yes
12268
12269 cat >>confdefs.h <<\_ACEOF
12270 #define CROSS_COMPILE 1
12271 _ACEOF
12272
12273 fi
12274 echo "$as_me:$LINENO: result: $cross_gas" >&5
12275 echo "${ECHO_T}$cross_gas" >&6
12276
12277 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12278 # for constant arguments. Useless!
12279 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12280 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12281 if test "${ac_cv_working_alloca_h+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <alloca.h>
12291 int
12292 main ()
12293 {
12294 char *p = (char *) alloca (2 * sizeof (int));
12295 ;
12296 return 0;
12297 }
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>conftest.er1
12302 ac_status=$?
12303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -z "$ac_c_werror_flag"
12309 || test ! -s conftest.err'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_working_alloca_h=yes
12322 else
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 ac_cv_working_alloca_h=no
12327 fi
12328 rm -f conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 fi
12331 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12333 if test $ac_cv_working_alloca_h = yes; then
12334
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_ALLOCA_H 1
12337 _ACEOF
12338
12339 fi
12340
12341 echo "$as_me:$LINENO: checking for alloca" >&5
12342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12343 if test "${ac_cv_func_alloca_works+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #ifdef __GNUC__
12353 # define alloca __builtin_alloca
12354 #else
12355 # ifdef _MSC_VER
12356 # include <malloc.h>
12357 # define alloca _alloca
12358 # else
12359 # if HAVE_ALLOCA_H
12360 # include <alloca.h>
12361 # else
12362 # ifdef _AIX
12363 #pragma alloca
12364 # else
12365 # ifndef alloca /* predefined by HP cc +Olibcalls */
12366 char *alloca ();
12367 # endif
12368 # endif
12369 # endif
12370 # endif
12371 #endif
12372
12373 int
12374 main ()
12375 {
12376 char *p = (char *) alloca (1);
12377 ;
12378 return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_func_alloca_works=yes
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 ac_cv_func_alloca_works=no
12409 fi
12410 rm -f conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412 fi
12413 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12414 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12415
12416 if test $ac_cv_func_alloca_works = yes; then
12417
12418 cat >>confdefs.h <<\_ACEOF
12419 #define HAVE_ALLOCA 1
12420 _ACEOF
12421
12422 else
12423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12424 # that cause trouble. Some versions do not even contain alloca or
12425 # contain a buggy version. If you still want to use their alloca,
12426 # use ar to extract alloca.o from them instead of compiling alloca.c.
12427
12428 ALLOCA=alloca.$ac_objext
12429
12430 cat >>confdefs.h <<\_ACEOF
12431 #define C_ALLOCA 1
12432 _ACEOF
12433
12434
12435 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12436 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12437 if test "${ac_cv_os_cray+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #if defined(CRAY) && ! defined(CRAY2)
12447 webecray
12448 #else
12449 wenotbecray
12450 #endif
12451
12452 _ACEOF
12453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12454 $EGREP "webecray" >/dev/null 2>&1; then
12455 ac_cv_os_cray=yes
12456 else
12457 ac_cv_os_cray=no
12458 fi
12459 rm -f conftest*
12460
12461 fi
12462 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12463 echo "${ECHO_T}$ac_cv_os_cray" >&6
12464 if test $ac_cv_os_cray = yes; then
12465 for ac_func in _getb67 GETB67 getb67; do
12466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12467 echo "$as_me:$LINENO: checking for $ac_func" >&5
12468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12469 if eval "test \"\${$as_ac_var+set}\" = set"; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480 #define $ac_func innocuous_$ac_func
12481
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char $ac_func (); below.
12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 <limits.h> exists even on freestanding compilers. */
12486
12487 #ifdef __STDC__
12488 # include <limits.h>
12489 #else
12490 # include <assert.h>
12491 #endif
12492
12493 #undef $ac_func
12494
12495 /* Override any gcc2 internal prototype to avoid an error. */
12496 #ifdef __cplusplus
12497 extern "C"
12498 {
12499 #endif
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502 char $ac_func ();
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12507 choke me
12508 #else
12509 char (*f) () = $ac_func;
12510 #endif
12511 #ifdef __cplusplus
12512 }
12513 #endif
12514
12515 int
12516 main ()
12517 {
12518 return f != $ac_func;
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 eval "$as_ac_var=yes"
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12549
12550 eval "$as_ac_var=no"
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12554 fi
12555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12557 if test `eval echo '${'$as_ac_var'}'` = yes; then
12558
12559 cat >>confdefs.h <<_ACEOF
12560 #define CRAY_STACKSEG_END $ac_func
12561 _ACEOF
12562
12563 break
12564 fi
12565
12566 done
12567 fi
12568
12569 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12570 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12571 if test "${ac_cv_c_stack_direction+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574 if test "$cross_compiling" = yes; then
12575 ac_cv_c_stack_direction=0
12576 else
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h. */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 int
12584 find_stack_direction ()
12585 {
12586 static char *addr = 0;
12587 auto char dummy;
12588 if (addr == 0)
12589 {
12590 addr = &dummy;
12591 return find_stack_direction ();
12592 }
12593 else
12594 return (&dummy > addr) ? 1 : -1;
12595 }
12596
12597 int
12598 main ()
12599 {
12600 exit (find_stack_direction () < 0);
12601 }
12602 _ACEOF
12603 rm -f conftest$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605 (eval $ac_link) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_c_stack_direction=1
12615 else
12616 echo "$as_me: program exited with status $ac_status" >&5
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 ( exit $ac_status )
12621 ac_cv_c_stack_direction=-1
12622 fi
12623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12624 fi
12625 fi
12626 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12627 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12628
12629 cat >>confdefs.h <<_ACEOF
12630 #define STACK_DIRECTION $ac_cv_c_stack_direction
12631 _ACEOF
12632
12633
12634 fi
12635
12636 echo "$as_me:$LINENO: checking for inline" >&5
12637 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12638 if test "${ac_cv_c_inline+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 ac_cv_c_inline=no
12642 for ac_kw in inline __inline__ __inline; do
12643 cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h. */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 #ifndef __cplusplus
12650 typedef int foo_t;
12651 static $ac_kw foo_t static_foo () {return 0; }
12652 $ac_kw foo_t foo () {return 0; }
12653 #endif
12654
12655 _ACEOF
12656 rm -f conftest.$ac_objext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_c_inline=$ac_kw; break
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683 fi
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12685 done
12686
12687 fi
12688 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12689 echo "${ECHO_T}$ac_cv_c_inline" >&6
12690
12691
12692 case $ac_cv_c_inline in
12693 inline | yes) ;;
12694 *)
12695 case $ac_cv_c_inline in
12696 no) ac_val=;;
12697 *) ac_val=$ac_cv_c_inline;;
12698 esac
12699 cat >>confdefs.h <<_ACEOF
12700 #ifndef __cplusplus
12701 #define inline $ac_val
12702 #endif
12703 _ACEOF
12704 ;;
12705 esac
12706
12707
12708 # VMS doesn't have unlink.
12709
12710
12711 for ac_func in unlink remove
12712 do
12713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12714 echo "$as_me:$LINENO: checking for $ac_func" >&5
12715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12716 if eval "test \"\${$as_ac_var+set}\" = set"; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12727 #define $ac_func innocuous_$ac_func
12728
12729 /* System header to define __stub macros and hopefully few prototypes,
12730 which can conflict with char $ac_func (); below.
12731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12732 <limits.h> exists even on freestanding compilers. */
12733
12734 #ifdef __STDC__
12735 # include <limits.h>
12736 #else
12737 # include <assert.h>
12738 #endif
12739
12740 #undef $ac_func
12741
12742 /* Override any gcc2 internal prototype to avoid an error. */
12743 #ifdef __cplusplus
12744 extern "C"
12745 {
12746 #endif
12747 /* We use char because int might match the return type of a gcc2
12748 builtin and then its argument prototype would still apply. */
12749 char $ac_func ();
12750 /* The GNU C library defines this for functions which it implements
12751 to always fail with ENOSYS. Some functions are actually named
12752 something starting with __ and the normal name is an alias. */
12753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12754 choke me
12755 #else
12756 char (*f) () = $ac_func;
12757 #endif
12758 #ifdef __cplusplus
12759 }
12760 #endif
12761
12762 int
12763 main ()
12764 {
12765 return f != $ac_func;
12766 ;
12767 return 0;
12768 }
12769 _ACEOF
12770 rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772 (eval $ac_link) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag"
12780 || test ! -s conftest.err'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 eval "$as_ac_var=yes"
12793 else
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 eval "$as_ac_var=no"
12798 fi
12799 rm -f conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 fi
12802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12804 if test `eval echo '${'$as_ac_var'}'` = yes; then
12805 cat >>confdefs.h <<_ACEOF
12806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12807 _ACEOF
12808 break
12809 fi
12810 done
12811
12812
12813 # Some systems don't have sbrk().
12814
12815 for ac_func in sbrk
12816 do
12817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12818 echo "$as_me:$LINENO: checking for $ac_func" >&5
12819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12820 if eval "test \"\${$as_ac_var+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831 #define $ac_func innocuous_$ac_func
12832
12833 /* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char $ac_func (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12837
12838 #ifdef __STDC__
12839 # include <limits.h>
12840 #else
12841 # include <assert.h>
12842 #endif
12843
12844 #undef $ac_func
12845
12846 /* Override any gcc2 internal prototype to avoid an error. */
12847 #ifdef __cplusplus
12848 extern "C"
12849 {
12850 #endif
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12853 char $ac_func ();
12854 /* The GNU C library defines this for functions which it implements
12855 to always fail with ENOSYS. Some functions are actually named
12856 something starting with __ and the normal name is an alias. */
12857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12858 choke me
12859 #else
12860 char (*f) () = $ac_func;
12861 #endif
12862 #ifdef __cplusplus
12863 }
12864 #endif
12865
12866 int
12867 main ()
12868 {
12869 return f != $ac_func;
12870 ;
12871 return 0;
12872 }
12873 _ACEOF
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 eval "$as_ac_var=yes"
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 eval "$as_ac_var=no"
12902 fi
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 fi
12906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12908 if test `eval echo '${'$as_ac_var'}'` = yes; then
12909 cat >>confdefs.h <<_ACEOF
12910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12911 _ACEOF
12912
12913 fi
12914 done
12915
12916
12917 # do we need the math library?
12918 case "${need_libm}" in
12919 yes)
12920 LIBM=
12921 case $host in
12922 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12923 # These system don't have libm, or don't need it
12924 ;;
12925 *-ncr-sysv4.3*)
12926 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12927 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12928 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931 ac_check_lib_save_LIBS=$LIBS
12932 LIBS="-lmw $LIBS"
12933 cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h. */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939
12940 /* Override any gcc2 internal prototype to avoid an error. */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 /* We use char because int might match the return type of a gcc2
12945 builtin and then its argument prototype would still apply. */
12946 char _mwvalidcheckl ();
12947 int
12948 main ()
12949 {
12950 _mwvalidcheckl ();
12951 ;
12952 return 0;
12953 }
12954 _ACEOF
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>conftest.er1
12958 ac_status=$?
12959 grep -v '^ *+' conftest.er1 >conftest.err
12960 rm -f conftest.er1
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_c_werror_flag"
12965 || test ! -s conftest.err'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest$ac_exeext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_lib_mw__mwvalidcheckl=yes
12978 else
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 ac_cv_lib_mw__mwvalidcheckl=no
12983 fi
12984 rm -f conftest.err conftest.$ac_objext \
12985 conftest$ac_exeext conftest.$ac_ext
12986 LIBS=$ac_check_lib_save_LIBS
12987 fi
12988 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12989 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12990 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
12991 LIBM="-lmw"
12992 fi
12993
12994 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12995 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12996 if test "${ac_cv_lib_m_cos+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 ac_check_lib_save_LIBS=$LIBS
13000 LIBS="-lm $LIBS"
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007
13008 /* Override any gcc2 internal prototype to avoid an error. */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13014 char cos ();
13015 int
13016 main ()
13017 {
13018 cos ();
13019 ;
13020 return 0;
13021 }
13022 _ACEOF
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag"
13033 || test ! -s conftest.err'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_lib_m_cos=yes
13046 else
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13049
13050 ac_cv_lib_m_cos=no
13051 fi
13052 rm -f conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 LIBS=$ac_check_lib_save_LIBS
13055 fi
13056 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13057 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13058 if test $ac_cv_lib_m_cos = yes; then
13059 LIBM="$LIBM -lm"
13060 fi
13061
13062 ;;
13063 *)
13064 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13065 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13066 if test "${ac_cv_lib_m_cos+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069 ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-lm $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077
13078 /* Override any gcc2 internal prototype to avoid an error. */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13084 char cos ();
13085 int
13086 main ()
13087 {
13088 cos ();
13089 ;
13090 return 0;
13091 }
13092 _ACEOF
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag"
13103 || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_lib_m_cos=yes
13116 else
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 ac_cv_lib_m_cos=no
13121 fi
13122 rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13125 fi
13126 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13127 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13128 if test $ac_cv_lib_m_cos = yes; then
13129 LIBM="-lm"
13130 fi
13131
13132 ;;
13133 esac
13134
13135
13136
13137 ;;
13138 esac
13139
13140 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13141 # enough, but on some of those systems, the assert macro relies on requoting
13142 # working properly!
13143 echo "$as_me:$LINENO: checking for working assert macro" >&5
13144 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13145 if test "${gas_cv_assert_ok+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 #include <assert.h>
13155 #include <stdio.h>
13156 int
13157 main ()
13158 {
13159
13160 /* check for requoting problems */
13161 static int a, b, c, d;
13162 static char *s;
13163 assert (!strcmp(s, "foo bar baz quux"));
13164 /* check for newline handling */
13165 assert (a == b
13166 || c == d);
13167
13168 ;
13169 return 0;
13170 }
13171 _ACEOF
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174 (eval $ac_link) 2>conftest.er1
13175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag"
13182 || test ! -s conftest.err'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; } &&
13188 { ac_try='test -s conftest$ac_exeext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 gas_cv_assert_ok=yes
13195 else
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 gas_cv_assert_ok=no
13200 fi
13201 rm -f conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 fi
13204 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13205 echo "${ECHO_T}$gas_cv_assert_ok" >&6
13206 test $gas_cv_assert_ok = yes ||
13207 cat >>confdefs.h <<\_ACEOF
13208 #define BROKEN_ASSERT 1
13209 _ACEOF
13210
13211
13212
13213 # On some systems, the system header files may not declare malloc, realloc,
13214 # and free. There are places where gas needs these functions to have been
13215 # declared -- such as when taking their addresses.
13216 gas_test_headers="
13217 #ifdef HAVE_MEMORY_H
13218 #include <memory.h>
13219 #endif
13220 #ifdef HAVE_STRING_H
13221 #include <string.h>
13222 #else
13223 #ifdef HAVE_STRINGS_H
13224 #include <strings.h>
13225 #endif
13226 #endif
13227 #ifdef HAVE_STDLIB_H
13228 #include <stdlib.h>
13229 #endif
13230 #ifdef HAVE_UNISTD_H
13231 #include <unistd.h>
13232 #endif
13233 "
13234
13235 # Does errno.h declare errno, or do we have to add a separate declaration
13236 # for it?
13237
13238 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13239 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13240 if test "${gas_cv_decl_needed_errno+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249
13250 #ifdef HAVE_ERRNO_H
13251 #include <errno.h>
13252 #endif
13253
13254 int
13255 main ()
13256 {
13257
13258 typedef int f;
13259 f x;
13260 x = (f) errno;
13261
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 gas_cv_decl_needed_errno=no
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293 gas_cv_decl_needed_errno=yes
13294 fi
13295 rm -f conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13297 fi
13298 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13299 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13300 if test $gas_cv_decl_needed_errno = yes; then
13301
13302 cat >>confdefs.h <<\_ACEOF
13303 #define NEED_DECLARATION_ERRNO 1
13304 _ACEOF
13305
13306 fi
13307
13308
13309 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13310 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13311 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
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 #include <unistd.h>
13321 int
13322 main ()
13323 {
13324 extern int getopt (int, char *const*, const char *);
13325 ;
13326 return 0;
13327 }
13328 _ACEOF
13329 rm -f conftest.$ac_objext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>conftest.er1
13332 ac_status=$?
13333 grep -v '^ *+' conftest.er1 >conftest.err
13334 rm -f conftest.er1
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
13338 { ac_try='test -z "$ac_c_werror_flag"
13339 || test ! -s conftest.err'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest.$ac_objext'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 gas_cv_decl_getopt_unistd_h=yes
13352 else
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 gas_cv_decl_getopt_unistd_h=no
13357 fi
13358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13359 fi
13360
13361 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13362 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13363 if test $gas_cv_decl_getopt_unistd_h = yes; then
13364
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_DECL_GETOPT 1
13367 _ACEOF
13368
13369 fi
13370
13371
13372 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13373 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13374 if test "${gas_cv_decl_needed_environ+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 else
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h. */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 $gas_test_headers
13384 int
13385 main ()
13386 {
13387
13388 typedef char **f;
13389 f x;
13390 x = (f) environ;
13391
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13398 (eval $ac_link) 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 gas_cv_decl_needed_environ=no
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 gas_cv_decl_needed_environ=yes
13424 fi
13425 rm -f conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext conftest.$ac_ext
13427 fi
13428 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13429 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13430 if test $gas_cv_decl_needed_environ = yes; then
13431
13432 cat >>confdefs.h <<\_ACEOF
13433 #define NEED_DECLARATION_ENVIRON 1
13434 _ACEOF
13435
13436 fi
13437
13438
13439 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13440 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13441 if test "${gas_cv_decl_needed_ffs+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444 cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h. */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13450 $gas_test_headers
13451 int
13452 main ()
13453 {
13454
13455 typedef int (*f)(int);
13456 f x;
13457 x = (f) ffs;
13458
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest$ac_exeext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 gas_cv_decl_needed_ffs=no
13486 else
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 gas_cv_decl_needed_ffs=yes
13491 fi
13492 rm -f conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext conftest.$ac_ext
13494 fi
13495 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13496 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13497 if test $gas_cv_decl_needed_ffs = yes; then
13498
13499 cat >>confdefs.h <<\_ACEOF
13500 #define NEED_DECLARATION_FFS 1
13501 _ACEOF
13502
13503 fi
13504
13505
13506 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13507 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13508 if test "${gas_cv_decl_needed_free+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h. */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $gas_test_headers
13518 int
13519 main ()
13520 {
13521
13522 typedef void (*f)();
13523 f x;
13524 x = (f) free;
13525
13526 ;
13527 return 0;
13528 }
13529 _ACEOF
13530 rm -f conftest.$ac_objext conftest$ac_exeext
13531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13532 (eval $ac_link) 2>conftest.er1
13533 ac_status=$?
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try='test -z "$ac_c_werror_flag"
13540 || test ! -s conftest.err'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest$ac_exeext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 gas_cv_decl_needed_free=no
13553 else
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13556
13557 gas_cv_decl_needed_free=yes
13558 fi
13559 rm -f conftest.err conftest.$ac_objext \
13560 conftest$ac_exeext conftest.$ac_ext
13561 fi
13562 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13563 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13564 if test $gas_cv_decl_needed_free = yes; then
13565
13566 cat >>confdefs.h <<\_ACEOF
13567 #define NEED_DECLARATION_FREE 1
13568 _ACEOF
13569
13570 fi
13571
13572
13573 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13574 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13575 if test "${gas_cv_decl_needed_malloc+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578 cat >conftest.$ac_ext <<_ACEOF
13579 /* confdefs.h. */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584 $gas_test_headers
13585 int
13586 main ()
13587 {
13588
13589 typedef char *(*f)();
13590 f x;
13591 x = (f) malloc;
13592
13593 ;
13594 return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 gas_cv_decl_needed_malloc=no
13620 else
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 gas_cv_decl_needed_malloc=yes
13625 fi
13626 rm -f conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 fi
13629 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13630 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13631 if test $gas_cv_decl_needed_malloc = yes; then
13632
13633 cat >>confdefs.h <<\_ACEOF
13634 #define NEED_DECLARATION_MALLOC 1
13635 _ACEOF
13636
13637 fi
13638
13639
13640 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13641 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13642 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 $gas_test_headers
13652 int
13653 main ()
13654 {
13655
13656 typedef char *(*f)();
13657 f x;
13658 x = (f) sbrk;
13659
13660 ;
13661 return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>conftest.er1
13667 ac_status=$?
13668 grep -v '^ *+' conftest.er1 >conftest.err
13669 rm -f conftest.er1
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 gas_cv_decl_needed_sbrk=no
13687 else
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 gas_cv_decl_needed_sbrk=yes
13692 fi
13693 rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 fi
13696 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13697 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13698 if test $gas_cv_decl_needed_sbrk = yes; then
13699
13700 cat >>confdefs.h <<\_ACEOF
13701 #define NEED_DECLARATION_SBRK 1
13702 _ACEOF
13703
13704 fi
13705
13706
13707 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13708 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13709 if test "${gas_cv_decl_needed_strstr+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h. */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 $gas_test_headers
13719 int
13720 main ()
13721 {
13722
13723 typedef char *(*f)();
13724 f x;
13725 x = (f) strstr;
13726
13727 ;
13728 return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext conftest$ac_exeext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733 (eval $ac_link) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest$ac_exeext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 gas_cv_decl_needed_strstr=no
13754 else
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758 gas_cv_decl_needed_strstr=yes
13759 fi
13760 rm -f conftest.err conftest.$ac_objext \
13761 conftest$ac_exeext conftest.$ac_ext
13762 fi
13763 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
13764 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
13765 if test $gas_cv_decl_needed_strstr = yes; then
13766
13767 cat >>confdefs.h <<\_ACEOF
13768 #define NEED_DECLARATION_STRSTR 1
13769 _ACEOF
13770
13771 fi
13772
13773
13774 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13775 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13776 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 $ac_includes_default
13786 int
13787 main ()
13788 {
13789 #ifndef vsnprintf
13790 char *p = (char *) vsnprintf;
13791 #endif
13792
13793 ;
13794 return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag"
13807 || test ! -s conftest.err'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest.$ac_objext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_have_decl_vsnprintf=yes
13820 else
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 ac_cv_have_decl_vsnprintf=no
13825 fi
13826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13827 fi
13828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13829 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13830 if test $ac_cv_have_decl_vsnprintf = yes; then
13831
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_DECL_VSNPRINTF 1
13834 _ACEOF
13835
13836
13837 else
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_DECL_VSNPRINTF 0
13840 _ACEOF
13841
13842
13843 fi
13844
13845
13846
13847
13848 case "${host}" in
13849 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13850
13851 cat >>confdefs.h <<\_ACEOF
13852 #define USE_BINARY_FOPEN 1
13853 _ACEOF
13854 ;;
13855 esac
13856
13857
13858
13859
13860
13861
13862
13863 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13864
13865 ac_config_commands="$ac_config_commands default"
13866
13867
13868 cat >confcache <<\_ACEOF
13869 # This file is a shell script that caches the results of configure
13870 # tests run on this system so they can be shared between configure
13871 # scripts and configure runs, see configure's option --config-cache.
13872 # It is not useful on other systems. If it contains results you don't
13873 # want to keep, you may remove or edit it.
13874 #
13875 # config.status only pays attention to the cache file if you give it
13876 # the --recheck option to rerun configure.
13877 #
13878 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13879 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13880 # following values.
13881
13882 _ACEOF
13883
13884 # The following way of writing the cache mishandles newlines in values,
13885 # but we know of no workaround that is simple, portable, and efficient.
13886 # So, don't put newlines in cache variables' values.
13887 # Ultrix sh set writes to stderr and can't be redirected directly,
13888 # and sets the high bit in the cache file unless we assign to the vars.
13889 {
13890 (set) 2>&1 |
13891 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13892 *ac_space=\ *)
13893 # `set' does not quote correctly, so add quotes (double-quote
13894 # substitution turns \\\\ into \\, and sed turns \\ into \).
13895 sed -n \
13896 "s/'/'\\\\''/g;
13897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13898 ;;
13899 *)
13900 # `set' quotes correctly as required by POSIX, so do not add quotes.
13901 sed -n \
13902 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13903 ;;
13904 esac;
13905 } |
13906 sed '
13907 t clear
13908 : clear
13909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13910 t end
13911 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13912 : end' >>confcache
13913 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13914 if test -w $cache_file; then
13915 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13916 cat confcache >$cache_file
13917 else
13918 echo "not updating unwritable cache $cache_file"
13919 fi
13920 fi
13921 rm -f confcache
13922
13923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13924 # Let make expand exec_prefix.
13925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13926
13927 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13928 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13929 # trailing colons and then remove the whole line if VPATH becomes empty
13930 # (actually we leave an empty line to preserve line numbers).
13931 if test "x$srcdir" = x.; then
13932 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13933 s/:*\$(srcdir):*/:/;
13934 s/:*\${srcdir}:*/:/;
13935 s/:*@srcdir@:*/:/;
13936 s/^\([^=]*=[ ]*\):*/\1/;
13937 s/:*$//;
13938 s/^[^=]*=[ ]*$//;
13939 }'
13940 fi
13941
13942 DEFS=-DHAVE_CONFIG_H
13943
13944 ac_libobjs=
13945 ac_ltlibobjs=
13946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13947 # 1. Remove the extension, and $U if already installed.
13948 ac_i=`echo "$ac_i" |
13949 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13950 # 2. Add them.
13951 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13952 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13953 done
13954 LIBOBJS=$ac_libobjs
13955
13956 LTLIBOBJS=$ac_ltlibobjs
13957
13958
13959 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13960 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13961 Usually this means the macro was only invoked conditionally." >&5
13962 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13963 Usually this means the macro was only invoked conditionally." >&2;}
13964 { (exit 1); exit 1; }; }
13965 fi
13966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13967 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13968 Usually this means the macro was only invoked conditionally." >&5
13969 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13970 Usually this means the macro was only invoked conditionally." >&2;}
13971 { (exit 1); exit 1; }; }
13972 fi
13973 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13974 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13975 Usually this means the macro was only invoked conditionally." >&5
13976 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13977 Usually this means the macro was only invoked conditionally." >&2;}
13978 { (exit 1); exit 1; }; }
13979 fi
13980 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13981 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13982 Usually this means the macro was only invoked conditionally." >&5
13983 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13984 Usually this means the macro was only invoked conditionally." >&2;}
13985 { (exit 1); exit 1; }; }
13986 fi
13987
13988 : ${CONFIG_STATUS=./config.status}
13989 ac_clean_files_save=$ac_clean_files
13990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13991 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13992 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13993 cat >$CONFIG_STATUS <<_ACEOF
13994 #! $SHELL
13995 # Generated by $as_me.
13996 # Run this file to recreate the current configuration.
13997 # Compiler output produced by configure, useful for debugging
13998 # configure, is in config.log if it exists.
13999
14000 debug=false
14001 ac_cs_recheck=false
14002 ac_cs_silent=false
14003 SHELL=\${CONFIG_SHELL-$SHELL}
14004 _ACEOF
14005
14006 cat >>$CONFIG_STATUS <<\_ACEOF
14007 ## --------------------- ##
14008 ## M4sh Initialization. ##
14009 ## --------------------- ##
14010
14011 # Be Bourne compatible
14012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14013 emulate sh
14014 NULLCMD=:
14015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14016 # is contrary to our usage. Disable this feature.
14017 alias -g '${1+"$@"}'='"$@"'
14018 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14019 set -o posix
14020 fi
14021 DUALCASE=1; export DUALCASE # for MKS sh
14022
14023 # Support unset when possible.
14024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14025 as_unset=unset
14026 else
14027 as_unset=false
14028 fi
14029
14030
14031 # Work around bugs in pre-3.0 UWIN ksh.
14032 $as_unset ENV MAIL MAILPATH
14033 PS1='$ '
14034 PS2='> '
14035 PS4='+ '
14036
14037 # NLS nuisances.
14038 for as_var in \
14039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14041 LC_TELEPHONE LC_TIME
14042 do
14043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14044 eval $as_var=C; export $as_var
14045 else
14046 $as_unset $as_var
14047 fi
14048 done
14049
14050 # Required to use basename.
14051 if expr a : '\(a\)' >/dev/null 2>&1; then
14052 as_expr=expr
14053 else
14054 as_expr=false
14055 fi
14056
14057 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14058 as_basename=basename
14059 else
14060 as_basename=false
14061 fi
14062
14063
14064 # Name of the executable.
14065 as_me=`$as_basename "$0" ||
14066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14067 X"$0" : 'X\(//\)$' \| \
14068 X"$0" : 'X\(/\)$' \| \
14069 . : '\(.\)' 2>/dev/null ||
14070 echo X/"$0" |
14071 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14072 /^X\/\(\/\/\)$/{ s//\1/; q; }
14073 /^X\/\(\/\).*/{ s//\1/; q; }
14074 s/.*/./; q'`
14075
14076
14077 # PATH needs CR, and LINENO needs CR and PATH.
14078 # Avoid depending upon Character Ranges.
14079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14082 as_cr_digits='0123456789'
14083 as_cr_alnum=$as_cr_Letters$as_cr_digits
14084
14085 # The user is always right.
14086 if test "${PATH_SEPARATOR+set}" != set; then
14087 echo "#! /bin/sh" >conf$$.sh
14088 echo "exit 0" >>conf$$.sh
14089 chmod +x conf$$.sh
14090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14091 PATH_SEPARATOR=';'
14092 else
14093 PATH_SEPARATOR=:
14094 fi
14095 rm -f conf$$.sh
14096 fi
14097
14098
14099 as_lineno_1=$LINENO
14100 as_lineno_2=$LINENO
14101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14102 test "x$as_lineno_1" != "x$as_lineno_2" &&
14103 test "x$as_lineno_3" = "x$as_lineno_2" || {
14104 # Find who we are. Look in the path if we contain no path at all
14105 # relative or not.
14106 case $0 in
14107 *[\\/]* ) as_myself=$0 ;;
14108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14110 do
14111 IFS=$as_save_IFS
14112 test -z "$as_dir" && as_dir=.
14113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14114 done
14115
14116 ;;
14117 esac
14118 # We did not find ourselves, most probably we were run as `sh COMMAND'
14119 # in which case we are not to be found in the path.
14120 if test "x$as_myself" = x; then
14121 as_myself=$0
14122 fi
14123 if test ! -f "$as_myself"; then
14124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14126 { (exit 1); exit 1; }; }
14127 fi
14128 case $CONFIG_SHELL in
14129 '')
14130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14132 do
14133 IFS=$as_save_IFS
14134 test -z "$as_dir" && as_dir=.
14135 for as_base in sh bash ksh sh5; do
14136 case $as_dir in
14137 /*)
14138 if ("$as_dir/$as_base" -c '
14139 as_lineno_1=$LINENO
14140 as_lineno_2=$LINENO
14141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14142 test "x$as_lineno_1" != "x$as_lineno_2" &&
14143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14146 CONFIG_SHELL=$as_dir/$as_base
14147 export CONFIG_SHELL
14148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14149 fi;;
14150 esac
14151 done
14152 done
14153 ;;
14154 esac
14155
14156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14157 # uniformly replaced by the line number. The first 'sed' inserts a
14158 # line-number line before each line; the second 'sed' does the real
14159 # work. The second script uses 'N' to pair each line-number line
14160 # with the numbered line, and appends trailing '-' during
14161 # substitution so that $LINENO is not a special case at line end.
14162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14164 sed '=' <$as_myself |
14165 sed '
14166 N
14167 s,$,-,
14168 : loop
14169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14170 t loop
14171 s,-$,,
14172 s,^['$as_cr_digits']*\n,,
14173 ' >$as_me.lineno &&
14174 chmod +x $as_me.lineno ||
14175 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14176 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14177 { (exit 1); exit 1; }; }
14178
14179 # Don't try to exec as it changes $[0], causing all sort of problems
14180 # (the dirname of $[0] is not the place where we might find the
14181 # original and so on. Autoconf is especially sensible to this).
14182 . ./$as_me.lineno
14183 # Exit status is that of the last command.
14184 exit
14185 }
14186
14187
14188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14189 *c*,-n*) ECHO_N= ECHO_C='
14190 ' ECHO_T=' ' ;;
14191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14193 esac
14194
14195 if expr a : '\(a\)' >/dev/null 2>&1; then
14196 as_expr=expr
14197 else
14198 as_expr=false
14199 fi
14200
14201 rm -f conf$$ conf$$.exe conf$$.file
14202 echo >conf$$.file
14203 if ln -s conf$$.file conf$$ 2>/dev/null; then
14204 # We could just check for DJGPP; but this test a) works b) is more generic
14205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14206 if test -f conf$$.exe; then
14207 # Don't use ln at all; we don't have any links
14208 as_ln_s='cp -p'
14209 else
14210 as_ln_s='ln -s'
14211 fi
14212 elif ln conf$$.file conf$$ 2>/dev/null; then
14213 as_ln_s=ln
14214 else
14215 as_ln_s='cp -p'
14216 fi
14217 rm -f conf$$ conf$$.exe conf$$.file
14218
14219 if mkdir -p . 2>/dev/null; then
14220 as_mkdir_p=:
14221 else
14222 test -d ./-p && rmdir ./-p
14223 as_mkdir_p=false
14224 fi
14225
14226 as_executable_p="test -f"
14227
14228 # Sed expression to map a string onto a valid CPP name.
14229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14230
14231 # Sed expression to map a string onto a valid variable name.
14232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14233
14234
14235 # IFS
14236 # We need space, tab and new line, in precisely that order.
14237 as_nl='
14238 '
14239 IFS=" $as_nl"
14240
14241 # CDPATH.
14242 $as_unset CDPATH
14243
14244 exec 6>&1
14245
14246 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14247 # report actual input values of CONFIG_FILES etc. instead of their
14248 # values after options handling. Logging --version etc. is OK.
14249 exec 5>>config.log
14250 {
14251 echo
14252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14253 ## Running $as_me. ##
14254 _ASBOX
14255 } >&5
14256 cat >&5 <<_CSEOF
14257
14258 This file was extended by $as_me, which was
14259 generated by GNU Autoconf 2.59. Invocation command line was
14260
14261 CONFIG_FILES = $CONFIG_FILES
14262 CONFIG_HEADERS = $CONFIG_HEADERS
14263 CONFIG_LINKS = $CONFIG_LINKS
14264 CONFIG_COMMANDS = $CONFIG_COMMANDS
14265 $ $0 $@
14266
14267 _CSEOF
14268 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14269 echo >&5
14270 _ACEOF
14271
14272 # Files that config.status was made for.
14273 if test -n "$ac_config_files"; then
14274 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14275 fi
14276
14277 if test -n "$ac_config_headers"; then
14278 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14279 fi
14280
14281 if test -n "$ac_config_links"; then
14282 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14283 fi
14284
14285 if test -n "$ac_config_commands"; then
14286 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14287 fi
14288
14289 cat >>$CONFIG_STATUS <<\_ACEOF
14290
14291 ac_cs_usage="\
14292 \`$as_me' instantiates files from templates according to the
14293 current configuration.
14294
14295 Usage: $0 [OPTIONS] [FILE]...
14296
14297 -h, --help print this help, then exit
14298 -V, --version print version number, then exit
14299 -q, --quiet do not print progress messages
14300 -d, --debug don't remove temporary files
14301 --recheck update $as_me by reconfiguring in the same conditions
14302 --file=FILE[:TEMPLATE]
14303 instantiate the configuration file FILE
14304 --header=FILE[:TEMPLATE]
14305 instantiate the configuration header FILE
14306
14307 Configuration files:
14308 $config_files
14309
14310 Configuration headers:
14311 $config_headers
14312
14313 Configuration commands:
14314 $config_commands
14315
14316 Report bugs to <bug-autoconf@gnu.org>."
14317 _ACEOF
14318
14319 cat >>$CONFIG_STATUS <<_ACEOF
14320 ac_cs_version="\\
14321 config.status
14322 configured by $0, generated by GNU Autoconf 2.59,
14323 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14324
14325 Copyright (C) 2003 Free Software Foundation, Inc.
14326 This config.status script is free software; the Free Software Foundation
14327 gives unlimited permission to copy, distribute and modify it."
14328 srcdir=$srcdir
14329 INSTALL="$INSTALL"
14330 _ACEOF
14331
14332 cat >>$CONFIG_STATUS <<\_ACEOF
14333 # If no file are specified by the user, then we need to provide default
14334 # value. By we need to know if files were specified by the user.
14335 ac_need_defaults=:
14336 while test $# != 0
14337 do
14338 case $1 in
14339 --*=*)
14340 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14341 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14342 ac_shift=:
14343 ;;
14344 -*)
14345 ac_option=$1
14346 ac_optarg=$2
14347 ac_shift=shift
14348 ;;
14349 *) # This is not an option, so the user has probably given explicit
14350 # arguments.
14351 ac_option=$1
14352 ac_need_defaults=false;;
14353 esac
14354
14355 case $ac_option in
14356 # Handling of the options.
14357 _ACEOF
14358 cat >>$CONFIG_STATUS <<\_ACEOF
14359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14360 ac_cs_recheck=: ;;
14361 --version | --vers* | -V )
14362 echo "$ac_cs_version"; exit 0 ;;
14363 --he | --h)
14364 # Conflict between --help and --header
14365 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14366 Try \`$0 --help' for more information." >&5
14367 echo "$as_me: error: ambiguous option: $1
14368 Try \`$0 --help' for more information." >&2;}
14369 { (exit 1); exit 1; }; };;
14370 --help | --hel | -h )
14371 echo "$ac_cs_usage"; exit 0 ;;
14372 --debug | --d* | -d )
14373 debug=: ;;
14374 --file | --fil | --fi | --f )
14375 $ac_shift
14376 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14377 ac_need_defaults=false;;
14378 --header | --heade | --head | --hea )
14379 $ac_shift
14380 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14381 ac_need_defaults=false;;
14382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14384 ac_cs_silent=: ;;
14385
14386 # This is an error.
14387 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14388 Try \`$0 --help' for more information." >&5
14389 echo "$as_me: error: unrecognized option: $1
14390 Try \`$0 --help' for more information." >&2;}
14391 { (exit 1); exit 1; }; } ;;
14392
14393 *) ac_config_targets="$ac_config_targets $1" ;;
14394
14395 esac
14396 shift
14397 done
14398
14399 ac_configure_extra_args=
14400
14401 if $ac_cs_silent; then
14402 exec 6>/dev/null
14403 ac_configure_extra_args="$ac_configure_extra_args --silent"
14404 fi
14405
14406 _ACEOF
14407 cat >>$CONFIG_STATUS <<_ACEOF
14408 if \$ac_cs_recheck; then
14409 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14410 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14411 fi
14412
14413 _ACEOF
14414
14415 cat >>$CONFIG_STATUS <<_ACEOF
14416 #
14417 # INIT-COMMANDS section.
14418 #
14419
14420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14421
14422
14423 # The HP-UX ksh and POSIX shell print the target directory to stdout
14424 # if CDPATH is set.
14425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14426
14427 sed_quote_subst='$sed_quote_subst'
14428 double_quote_subst='$double_quote_subst'
14429 delay_variable_subst='$delay_variable_subst'
14430 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14431 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14432 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14433 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14434 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14435 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14436 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14437 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14438 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14439 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14440 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14441 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14442 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14443 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14444 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14445 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14446 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14447 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14448 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14449 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14450 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14451 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14452 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14453 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14454 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14455 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14456 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14457 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14458 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14459 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14460 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14461 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14462 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14463 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14464 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14465 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14466 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14467 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14468 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14469 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14470 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14471 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14472 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14473 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"`'
14474 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14475 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14476 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14477 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14478 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14479 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14480 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14481 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14482 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14483 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14484 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14485 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14486 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14487 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14488 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14489 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14490 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14491 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14492 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14493 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14494 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14495 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14496 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14497 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14498 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14499 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14500 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14501 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14502 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14503 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14504 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14505 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14506 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14507 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14508 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14509 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14510 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14511 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14512 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14513 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14514 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14515 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14516 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14517 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14518 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14519 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14520 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14521 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14522 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14523 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14524 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14525 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14526 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14527 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14528 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14529 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14530 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14531 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14532 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14533 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14534 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14535 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14536 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14537 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14538 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14539 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14540 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14541
14542 LTCC='$LTCC'
14543 LTCFLAGS='$LTCFLAGS'
14544 compiler='$compiler_DEFAULT'
14545
14546 # Quote evaled strings.
14547 for var in SED \
14548 GREP \
14549 EGREP \
14550 FGREP \
14551 LD \
14552 NM \
14553 LN_S \
14554 lt_SP2NL \
14555 lt_NL2SP \
14556 reload_flag \
14557 deplibs_check_method \
14558 file_magic_cmd \
14559 AR \
14560 AR_FLAGS \
14561 STRIP \
14562 RANLIB \
14563 CC \
14564 CFLAGS \
14565 compiler \
14566 lt_cv_sys_global_symbol_pipe \
14567 lt_cv_sys_global_symbol_to_cdecl \
14568 lt_cv_sys_global_symbol_to_c_name_address \
14569 SHELL \
14570 ECHO \
14571 lt_prog_compiler_no_builtin_flag \
14572 lt_prog_compiler_wl \
14573 lt_prog_compiler_pic \
14574 lt_prog_compiler_static \
14575 lt_cv_prog_compiler_c_o \
14576 need_locks \
14577 shrext_cmds \
14578 export_dynamic_flag_spec \
14579 whole_archive_flag_spec \
14580 compiler_needs_object \
14581 with_gnu_ld \
14582 allow_undefined_flag \
14583 no_undefined_flag \
14584 hardcode_libdir_flag_spec \
14585 hardcode_libdir_flag_spec_ld \
14586 hardcode_libdir_separator \
14587 fix_srcfile_path \
14588 exclude_expsyms \
14589 include_expsyms \
14590 file_list_spec \
14591 variables_saved_for_relink \
14592 libname_spec \
14593 library_names_spec \
14594 soname_spec \
14595 finish_eval \
14596 old_striplib \
14597 striplib; do
14598 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14599 *[\\\\\\\`\\"\\\$]*)
14600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14601 ;;
14602 *)
14603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14604 ;;
14605 esac
14606 done
14607
14608 # Double-quote double-evaled strings.
14609 for var in reload_cmds \
14610 old_postinstall_cmds \
14611 old_postuninstall_cmds \
14612 old_archive_cmds \
14613 extract_expsyms_cmds \
14614 old_archive_from_new_cmds \
14615 old_archive_from_expsyms_cmds \
14616 archive_cmds \
14617 archive_expsym_cmds \
14618 module_cmds \
14619 module_expsym_cmds \
14620 export_symbols_cmds \
14621 prelink_cmds \
14622 postinstall_cmds \
14623 postuninstall_cmds \
14624 finish_cmds \
14625 sys_lib_search_path_spec \
14626 sys_lib_dlsearch_path_spec; do
14627 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14628 *[\\\\\\\`\\"\\\$]*)
14629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14630 ;;
14631 *)
14632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14633 ;;
14634 esac
14635 done
14636
14637 # Fix-up fallback echo if it was mangled by the above quoting rules.
14638 case \$lt_ECHO in
14639 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14640 ;;
14641 esac
14642
14643 ac_aux_dir='$ac_aux_dir'
14644 xsi_shell='$xsi_shell'
14645 lt_shell_append='$lt_shell_append'
14646
14647 # See if we are running on zsh, and set the options which allow our
14648 # commands through without removal of \ escapes INIT.
14649 if test -n "\${ZSH_VERSION+set}" ; then
14650 setopt NO_GLOB_SUBST
14651 fi
14652
14653
14654 PACKAGE='$PACKAGE'
14655 VERSION='$VERSION'
14656 TIMESTAMP='$TIMESTAMP'
14657 RM='$RM'
14658 ofile='$ofile'
14659
14660
14661
14662 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14663 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14664 # from automake.
14665 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14666 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14667 LINGUAS="${LINGUAS-%UNSET%}"
14668
14669 target_cpu_type=${target_cpu_type}
14670 cgen_cpu_prefix=${cgen_cpu_prefix}
14671 obj_format=${obj_format}
14672 te_file=${te_file}
14673
14674 _ACEOF
14675
14676
14677
14678 cat >>$CONFIG_STATUS <<\_ACEOF
14679 for ac_config_target in $ac_config_targets
14680 do
14681 case "$ac_config_target" in
14682 # Handling of arguments.
14683 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14684 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14685 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14686 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14687 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14688 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14689 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14690 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14691 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14692 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14693 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14694 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14695 { (exit 1); exit 1; }; };;
14696 esac
14697 done
14698
14699 # If the user did not use the arguments to specify the items to instantiate,
14700 # then the envvar interface is used. Set only those that are not.
14701 # We use the long form for the default assignment because of an extremely
14702 # bizarre bug on SunOS 4.1.3.
14703 if $ac_need_defaults; then
14704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14705 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14706 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14707 fi
14708
14709 # Have a temporary directory for convenience. Make it in the build tree
14710 # simply because there is no reason to put it here, and in addition,
14711 # creating and moving files from /tmp can sometimes cause problems.
14712 # Create a temporary directory, and hook for its removal unless debugging.
14713 $debug ||
14714 {
14715 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14716 trap '{ (exit 1); exit 1; }' 1 2 13 15
14717 }
14718
14719 # Create a (secure) tmp directory for tmp files.
14720
14721 {
14722 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14723 test -n "$tmp" && test -d "$tmp"
14724 } ||
14725 {
14726 tmp=./confstat$$-$RANDOM
14727 (umask 077 && mkdir $tmp)
14728 } ||
14729 {
14730 echo "$me: cannot create a temporary directory in ." >&2
14731 { (exit 1); exit 1; }
14732 }
14733
14734 _ACEOF
14735
14736 cat >>$CONFIG_STATUS <<_ACEOF
14737
14738 #
14739 # CONFIG_FILES section.
14740 #
14741
14742 # No need to generate the scripts if there are no CONFIG_FILES.
14743 # This happens for instance when ./config.status config.h
14744 if test -n "\$CONFIG_FILES"; then
14745 # Protect against being on the right side of a sed subst in config.status.
14746 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14747 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14748 s,@SHELL@,$SHELL,;t t
14749 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14750 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14751 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14752 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14753 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14754 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14755 s,@exec_prefix@,$exec_prefix,;t t
14756 s,@prefix@,$prefix,;t t
14757 s,@program_transform_name@,$program_transform_name,;t t
14758 s,@bindir@,$bindir,;t t
14759 s,@sbindir@,$sbindir,;t t
14760 s,@libexecdir@,$libexecdir,;t t
14761 s,@datadir@,$datadir,;t t
14762 s,@sysconfdir@,$sysconfdir,;t t
14763 s,@sharedstatedir@,$sharedstatedir,;t t
14764 s,@localstatedir@,$localstatedir,;t t
14765 s,@libdir@,$libdir,;t t
14766 s,@includedir@,$includedir,;t t
14767 s,@oldincludedir@,$oldincludedir,;t t
14768 s,@infodir@,$infodir,;t t
14769 s,@mandir@,$mandir,;t t
14770 s,@build_alias@,$build_alias,;t t
14771 s,@host_alias@,$host_alias,;t t
14772 s,@target_alias@,$target_alias,;t t
14773 s,@DEFS@,$DEFS,;t t
14774 s,@ECHO_C@,$ECHO_C,;t t
14775 s,@ECHO_N@,$ECHO_N,;t t
14776 s,@ECHO_T@,$ECHO_T,;t t
14777 s,@LIBS@,$LIBS,;t t
14778 s,@build@,$build,;t t
14779 s,@build_cpu@,$build_cpu,;t t
14780 s,@build_vendor@,$build_vendor,;t t
14781 s,@build_os@,$build_os,;t t
14782 s,@host@,$host,;t t
14783 s,@host_cpu@,$host_cpu,;t t
14784 s,@host_vendor@,$host_vendor,;t t
14785 s,@host_os@,$host_os,;t t
14786 s,@target@,$target,;t t
14787 s,@target_cpu@,$target_cpu,;t t
14788 s,@target_vendor@,$target_vendor,;t t
14789 s,@target_os@,$target_os,;t t
14790 s,@CC@,$CC,;t t
14791 s,@CFLAGS@,$CFLAGS,;t t
14792 s,@LDFLAGS@,$LDFLAGS,;t t
14793 s,@CPPFLAGS@,$CPPFLAGS,;t t
14794 s,@ac_ct_CC@,$ac_ct_CC,;t t
14795 s,@EXEEXT@,$EXEEXT,;t t
14796 s,@OBJEXT@,$OBJEXT,;t t
14797 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14798 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14799 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14800 s,@CYGPATH_W@,$CYGPATH_W,;t t
14801 s,@PACKAGE@,$PACKAGE,;t t
14802 s,@VERSION@,$VERSION,;t t
14803 s,@ACLOCAL@,$ACLOCAL,;t t
14804 s,@AUTOCONF@,$AUTOCONF,;t t
14805 s,@AUTOMAKE@,$AUTOMAKE,;t t
14806 s,@AUTOHEADER@,$AUTOHEADER,;t t
14807 s,@MAKEINFO@,$MAKEINFO,;t t
14808 s,@install_sh@,$install_sh,;t t
14809 s,@STRIP@,$STRIP,;t t
14810 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14811 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14812 s,@mkdir_p@,$mkdir_p,;t t
14813 s,@AWK@,$AWK,;t t
14814 s,@SET_MAKE@,$SET_MAKE,;t t
14815 s,@am__leading_dot@,$am__leading_dot,;t t
14816 s,@AMTAR@,$AMTAR,;t t
14817 s,@am__tar@,$am__tar,;t t
14818 s,@am__untar@,$am__untar,;t t
14819 s,@DEPDIR@,$DEPDIR,;t t
14820 s,@am__include@,$am__include,;t t
14821 s,@am__quote@,$am__quote,;t t
14822 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14823 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14824 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14825 s,@CCDEPMODE@,$CCDEPMODE,;t t
14826 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14827 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14828 s,@LIBTOOL@,$LIBTOOL,;t t
14829 s,@SED@,$SED,;t t
14830 s,@EGREP@,$EGREP,;t t
14831 s,@FGREP@,$FGREP,;t t
14832 s,@GREP@,$GREP,;t t
14833 s,@LD@,$LD,;t t
14834 s,@DUMPBIN@,$DUMPBIN,;t t
14835 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14836 s,@NM@,$NM,;t t
14837 s,@LN_S@,$LN_S,;t t
14838 s,@AR@,$AR,;t t
14839 s,@ac_ct_AR@,$ac_ct_AR,;t t
14840 s,@RANLIB@,$RANLIB,;t t
14841 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14842 s,@lt_ECHO@,$lt_ECHO,;t t
14843 s,@CPP@,$CPP,;t t
14844 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14845 s,@NO_WERROR@,$NO_WERROR,;t t
14846 s,@GDBINIT@,$GDBINIT,;t t
14847 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
14848 s,@extra_objects@,$extra_objects,;t t
14849 s,@target_cpu_type@,$target_cpu_type,;t t
14850 s,@obj_format@,$obj_format,;t t
14851 s,@te_file@,$te_file,;t t
14852 s,@install_tooldir@,$install_tooldir,;t t
14853 s,@atof@,$atof,;t t
14854 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
14855 s,@YACC@,$YACC,;t t
14856 s,@LEX@,$LEX,;t t
14857 s,@LEXLIB@,$LEXLIB,;t t
14858 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14859 s,@USE_NLS@,$USE_NLS,;t t
14860 s,@LIBINTL@,$LIBINTL,;t t
14861 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14862 s,@INCINTL@,$INCINTL,;t t
14863 s,@XGETTEXT@,$XGETTEXT,;t t
14864 s,@GMSGFMT@,$GMSGFMT,;t t
14865 s,@POSUB@,$POSUB,;t t
14866 s,@CATALOGS@,$CATALOGS,;t t
14867 s,@DATADIRNAME@,$DATADIRNAME,;t t
14868 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14869 s,@GENCAT@,$GENCAT,;t t
14870 s,@CATOBJEXT@,$CATOBJEXT,;t t
14871 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14872 s,@MSGFMT@,$MSGFMT,;t t
14873 s,@MSGMERGE@,$MSGMERGE,;t t
14874 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14875 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14876 s,@MAINT@,$MAINT,;t t
14877 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14878 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
14879 s,@ALLOCA@,$ALLOCA,;t t
14880 s,@LIBM@,$LIBM,;t t
14881 s,@datarootdir@,$datarootdir,;t t
14882 s,@docdir@,$docdir,;t t
14883 s,@htmldir@,$htmldir,;t t
14884 s,@LIBOBJS@,$LIBOBJS,;t t
14885 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14886 CEOF
14887
14888 _ACEOF
14889
14890 cat >>$CONFIG_STATUS <<\_ACEOF
14891 # Split the substitutions into bite-sized pieces for seds with
14892 # small command number limits, like on Digital OSF/1 and HP-UX.
14893 ac_max_sed_lines=48
14894 ac_sed_frag=1 # Number of current file.
14895 ac_beg=1 # First line for current file.
14896 ac_end=$ac_max_sed_lines # Line after last line for current file.
14897 ac_more_lines=:
14898 ac_sed_cmds=
14899 while $ac_more_lines; do
14900 if test $ac_beg -gt 1; then
14901 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14902 else
14903 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14904 fi
14905 if test ! -s $tmp/subs.frag; then
14906 ac_more_lines=false
14907 else
14908 # The purpose of the label and of the branching condition is to
14909 # speed up the sed processing (if there are no `@' at all, there
14910 # is no need to browse any of the substitutions).
14911 # These are the two extra sed commands mentioned above.
14912 (echo ':t
14913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14914 if test -z "$ac_sed_cmds"; then
14915 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14916 else
14917 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14918 fi
14919 ac_sed_frag=`expr $ac_sed_frag + 1`
14920 ac_beg=$ac_end
14921 ac_end=`expr $ac_end + $ac_max_sed_lines`
14922 fi
14923 done
14924 if test -z "$ac_sed_cmds"; then
14925 ac_sed_cmds=cat
14926 fi
14927 fi # test -n "$CONFIG_FILES"
14928
14929 _ACEOF
14930 cat >>$CONFIG_STATUS <<\_ACEOF
14931 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14933 case $ac_file in
14934 - | *:- | *:-:* ) # input from stdin
14935 cat >$tmp/stdin
14936 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14938 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14940 * ) ac_file_in=$ac_file.in ;;
14941 esac
14942
14943 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14944 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14945 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14946 X"$ac_file" : 'X\(//\)[^/]' \| \
14947 X"$ac_file" : 'X\(//\)$' \| \
14948 X"$ac_file" : 'X\(/\)' \| \
14949 . : '\(.\)' 2>/dev/null ||
14950 echo X"$ac_file" |
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14953 /^X\(\/\/\)$/{ s//\1/; q; }
14954 /^X\(\/\).*/{ s//\1/; q; }
14955 s/.*/./; q'`
14956 { if $as_mkdir_p; then
14957 mkdir -p "$ac_dir"
14958 else
14959 as_dir="$ac_dir"
14960 as_dirs=
14961 while test ! -d "$as_dir"; do
14962 as_dirs="$as_dir $as_dirs"
14963 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14965 X"$as_dir" : 'X\(//\)[^/]' \| \
14966 X"$as_dir" : 'X\(//\)$' \| \
14967 X"$as_dir" : 'X\(/\)' \| \
14968 . : '\(.\)' 2>/dev/null ||
14969 echo X"$as_dir" |
14970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14972 /^X\(\/\/\)$/{ s//\1/; q; }
14973 /^X\(\/\).*/{ s//\1/; q; }
14974 s/.*/./; q'`
14975 done
14976 test ! -n "$as_dirs" || mkdir $as_dirs
14977 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14978 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14979 { (exit 1); exit 1; }; }; }
14980
14981 ac_builddir=.
14982
14983 if test "$ac_dir" != .; then
14984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14985 # A "../" for each directory in $ac_dir_suffix.
14986 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14987 else
14988 ac_dir_suffix= ac_top_builddir=
14989 fi
14990
14991 case $srcdir in
14992 .) # No --srcdir option. We are building in place.
14993 ac_srcdir=.
14994 if test -z "$ac_top_builddir"; then
14995 ac_top_srcdir=.
14996 else
14997 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14998 fi ;;
14999 [\\/]* | ?:[\\/]* ) # Absolute path.
15000 ac_srcdir=$srcdir$ac_dir_suffix;
15001 ac_top_srcdir=$srcdir ;;
15002 *) # Relative path.
15003 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15004 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15005 esac
15006
15007 # Do not use `cd foo && pwd` to compute absolute paths, because
15008 # the directories may not exist.
15009 case `pwd` in
15010 .) ac_abs_builddir="$ac_dir";;
15011 *)
15012 case "$ac_dir" in
15013 .) ac_abs_builddir=`pwd`;;
15014 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15015 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15016 esac;;
15017 esac
15018 case $ac_abs_builddir in
15019 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15020 *)
15021 case ${ac_top_builddir}. in
15022 .) ac_abs_top_builddir=$ac_abs_builddir;;
15023 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15024 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15025 esac;;
15026 esac
15027 case $ac_abs_builddir in
15028 .) ac_abs_srcdir=$ac_srcdir;;
15029 *)
15030 case $ac_srcdir in
15031 .) ac_abs_srcdir=$ac_abs_builddir;;
15032 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15033 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15034 esac;;
15035 esac
15036 case $ac_abs_builddir in
15037 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15038 *)
15039 case $ac_top_srcdir in
15040 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15041 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15042 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15043 esac;;
15044 esac
15045
15046
15047 case $INSTALL in
15048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15049 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15050 esac
15051
15052 if test x"$ac_file" != x-; then
15053 { echo "$as_me:$LINENO: creating $ac_file" >&5
15054 echo "$as_me: creating $ac_file" >&6;}
15055 rm -f "$ac_file"
15056 fi
15057 # Let's still pretend it is `configure' which instantiates (i.e., don't
15058 # use $as_me), people would be surprised to read:
15059 # /* config.h. Generated by config.status. */
15060 if test x"$ac_file" = x-; then
15061 configure_input=
15062 else
15063 configure_input="$ac_file. "
15064 fi
15065 configure_input=$configure_input"Generated from `echo $ac_file_in |
15066 sed 's,.*/,,'` by configure."
15067
15068 # First look for the input files in the build tree, otherwise in the
15069 # src tree.
15070 ac_file_inputs=`IFS=:
15071 for f in $ac_file_in; do
15072 case $f in
15073 -) echo $tmp/stdin ;;
15074 [\\/$]*)
15075 # Absolute (can't be DOS-style, as IFS=:)
15076 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15077 echo "$as_me: error: cannot find input file: $f" >&2;}
15078 { (exit 1); exit 1; }; }
15079 echo "$f";;
15080 *) # Relative
15081 if test -f "$f"; then
15082 # Build tree
15083 echo "$f"
15084 elif test -f "$srcdir/$f"; then
15085 # Source tree
15086 echo "$srcdir/$f"
15087 else
15088 # /dev/null tree
15089 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15090 echo "$as_me: error: cannot find input file: $f" >&2;}
15091 { (exit 1); exit 1; }; }
15092 fi;;
15093 esac
15094 done` || { (exit 1); exit 1; }
15095 _ACEOF
15096 cat >>$CONFIG_STATUS <<_ACEOF
15097 sed "$ac_vpsub
15098 $extrasub
15099 _ACEOF
15100 cat >>$CONFIG_STATUS <<\_ACEOF
15101 :t
15102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15103 s,@configure_input@,$configure_input,;t t
15104 s,@srcdir@,$ac_srcdir,;t t
15105 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15106 s,@top_srcdir@,$ac_top_srcdir,;t t
15107 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15108 s,@builddir@,$ac_builddir,;t t
15109 s,@abs_builddir@,$ac_abs_builddir,;t t
15110 s,@top_builddir@,$ac_top_builddir,;t t
15111 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15112 s,@INSTALL@,$ac_INSTALL,;t t
15113 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15114 rm -f $tmp/stdin
15115 if test x"$ac_file" != x-; then
15116 mv $tmp/out $ac_file
15117 else
15118 cat $tmp/out
15119 rm -f $tmp/out
15120 fi
15121
15122 done
15123 _ACEOF
15124 cat >>$CONFIG_STATUS <<\_ACEOF
15125
15126 #
15127 # CONFIG_HEADER section.
15128 #
15129
15130 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15131 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15132 #
15133 # ac_d sets the value in "#define NAME VALUE" lines.
15134 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15135 ac_dB='[ ].*$,\1#\2'
15136 ac_dC=' '
15137 ac_dD=',;t'
15138 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15139 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15140 ac_uB='$,\1#\2define\3'
15141 ac_uC=' '
15142 ac_uD=',;t'
15143
15144 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15146 case $ac_file in
15147 - | *:- | *:-:* ) # input from stdin
15148 cat >$tmp/stdin
15149 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15151 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15153 * ) ac_file_in=$ac_file.in ;;
15154 esac
15155
15156 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15157 echo "$as_me: creating $ac_file" >&6;}
15158
15159 # First look for the input files in the build tree, otherwise in the
15160 # src tree.
15161 ac_file_inputs=`IFS=:
15162 for f in $ac_file_in; do
15163 case $f in
15164 -) echo $tmp/stdin ;;
15165 [\\/$]*)
15166 # Absolute (can't be DOS-style, as IFS=:)
15167 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15168 echo "$as_me: error: cannot find input file: $f" >&2;}
15169 { (exit 1); exit 1; }; }
15170 # Do quote $f, to prevent DOS paths from being IFS'd.
15171 echo "$f";;
15172 *) # Relative
15173 if test -f "$f"; then
15174 # Build tree
15175 echo "$f"
15176 elif test -f "$srcdir/$f"; then
15177 # Source tree
15178 echo "$srcdir/$f"
15179 else
15180 # /dev/null tree
15181 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15182 echo "$as_me: error: cannot find input file: $f" >&2;}
15183 { (exit 1); exit 1; }; }
15184 fi;;
15185 esac
15186 done` || { (exit 1); exit 1; }
15187 # Remove the trailing spaces.
15188 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15189
15190 _ACEOF
15191
15192 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15193 # `conftest.undefs', that substitutes the proper values into
15194 # config.h.in to produce config.h. The first handles `#define'
15195 # templates, and the second `#undef' templates.
15196 # And first: Protect against being on the right side of a sed subst in
15197 # config.status. Protect against being in an unquoted here document
15198 # in config.status.
15199 rm -f conftest.defines conftest.undefs
15200 # Using a here document instead of a string reduces the quoting nightmare.
15201 # Putting comments in sed scripts is not portable.
15202 #
15203 # `end' is used to avoid that the second main sed command (meant for
15204 # 0-ary CPP macros) applies to n-ary macro definitions.
15205 # See the Autoconf documentation for `clear'.
15206 cat >confdef2sed.sed <<\_ACEOF
15207 s/[\\&,]/\\&/g
15208 s,[\\$`],\\&,g
15209 t clear
15210 : clear
15211 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15212 t end
15213 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15214 : end
15215 _ACEOF
15216 # If some macros were called several times there might be several times
15217 # the same #defines, which is useless. Nevertheless, we may not want to
15218 # sort them, since we want the *last* AC-DEFINE to be honored.
15219 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15220 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15221 rm -f confdef2sed.sed
15222
15223 # This sed command replaces #undef with comments. This is necessary, for
15224 # example, in the case of _POSIX_SOURCE, which is predefined and required
15225 # on some systems where configure will not decide to define it.
15226 cat >>conftest.undefs <<\_ACEOF
15227 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15228 _ACEOF
15229
15230 # Break up conftest.defines because some shells have a limit on the size
15231 # of here documents, and old seds have small limits too (100 cmds).
15232 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15233 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15234 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15235 echo ' :' >>$CONFIG_STATUS
15236 rm -f conftest.tail
15237 while grep . conftest.defines >/dev/null
15238 do
15239 # Write a limited-size here document to $tmp/defines.sed.
15240 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15241 # Speed up: don't consider the non `#define' lines.
15242 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15243 # Work around the forget-to-reset-the-flag bug.
15244 echo 't clr' >>$CONFIG_STATUS
15245 echo ': clr' >>$CONFIG_STATUS
15246 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15247 echo 'CEOF
15248 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15249 rm -f $tmp/in
15250 mv $tmp/out $tmp/in
15251 ' >>$CONFIG_STATUS
15252 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15253 rm -f conftest.defines
15254 mv conftest.tail conftest.defines
15255 done
15256 rm -f conftest.defines
15257 echo ' fi # grep' >>$CONFIG_STATUS
15258 echo >>$CONFIG_STATUS
15259
15260 # Break up conftest.undefs because some shells have a limit on the size
15261 # of here documents, and old seds have small limits too (100 cmds).
15262 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15263 rm -f conftest.tail
15264 while grep . conftest.undefs >/dev/null
15265 do
15266 # Write a limited-size here document to $tmp/undefs.sed.
15267 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15268 # Speed up: don't consider the non `#undef'
15269 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15270 # Work around the forget-to-reset-the-flag bug.
15271 echo 't clr' >>$CONFIG_STATUS
15272 echo ': clr' >>$CONFIG_STATUS
15273 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15274 echo 'CEOF
15275 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15276 rm -f $tmp/in
15277 mv $tmp/out $tmp/in
15278 ' >>$CONFIG_STATUS
15279 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15280 rm -f conftest.undefs
15281 mv conftest.tail conftest.undefs
15282 done
15283 rm -f conftest.undefs
15284
15285 cat >>$CONFIG_STATUS <<\_ACEOF
15286 # Let's still pretend it is `configure' which instantiates (i.e., don't
15287 # use $as_me), people would be surprised to read:
15288 # /* config.h. Generated by config.status. */
15289 if test x"$ac_file" = x-; then
15290 echo "/* Generated by configure. */" >$tmp/config.h
15291 else
15292 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15293 fi
15294 cat $tmp/in >>$tmp/config.h
15295 rm -f $tmp/in
15296 if test x"$ac_file" != x-; then
15297 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15299 echo "$as_me: $ac_file is unchanged" >&6;}
15300 else
15301 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15303 X"$ac_file" : 'X\(//\)[^/]' \| \
15304 X"$ac_file" : 'X\(//\)$' \| \
15305 X"$ac_file" : 'X\(/\)' \| \
15306 . : '\(.\)' 2>/dev/null ||
15307 echo X"$ac_file" |
15308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15310 /^X\(\/\/\)$/{ s//\1/; q; }
15311 /^X\(\/\).*/{ s//\1/; q; }
15312 s/.*/./; q'`
15313 { if $as_mkdir_p; then
15314 mkdir -p "$ac_dir"
15315 else
15316 as_dir="$ac_dir"
15317 as_dirs=
15318 while test ! -d "$as_dir"; do
15319 as_dirs="$as_dir $as_dirs"
15320 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322 X"$as_dir" : 'X\(//\)[^/]' \| \
15323 X"$as_dir" : 'X\(//\)$' \| \
15324 X"$as_dir" : 'X\(/\)' \| \
15325 . : '\(.\)' 2>/dev/null ||
15326 echo X"$as_dir" |
15327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15329 /^X\(\/\/\)$/{ s//\1/; q; }
15330 /^X\(\/\).*/{ s//\1/; q; }
15331 s/.*/./; q'`
15332 done
15333 test ! -n "$as_dirs" || mkdir $as_dirs
15334 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15335 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15336 { (exit 1); exit 1; }; }; }
15337
15338 rm -f $ac_file
15339 mv $tmp/config.h $ac_file
15340 fi
15341 else
15342 cat $tmp/config.h
15343 rm -f $tmp/config.h
15344 fi
15345 # Compute $ac_file's index in $config_headers.
15346 _am_stamp_count=1
15347 for _am_header in $config_headers :; do
15348 case $_am_header in
15349 $ac_file | $ac_file:* )
15350 break ;;
15351 * )
15352 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15353 esac
15354 done
15355 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15356 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15357 X$ac_file : 'X\(//\)[^/]' \| \
15358 X$ac_file : 'X\(//\)$' \| \
15359 X$ac_file : 'X\(/\)' \| \
15360 . : '\(.\)' 2>/dev/null ||
15361 echo X$ac_file |
15362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15364 /^X\(\/\/\)$/{ s//\1/; q; }
15365 /^X\(\/\).*/{ s//\1/; q; }
15366 s/.*/./; q'`/stamp-h$_am_stamp_count
15367 done
15368 _ACEOF
15369 cat >>$CONFIG_STATUS <<\_ACEOF
15370
15371 #
15372 # CONFIG_COMMANDS section.
15373 #
15374 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15375 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15376 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15377 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15378 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15379 X"$ac_dest" : 'X\(//\)[^/]' \| \
15380 X"$ac_dest" : 'X\(//\)$' \| \
15381 X"$ac_dest" : 'X\(/\)' \| \
15382 . : '\(.\)' 2>/dev/null ||
15383 echo X"$ac_dest" |
15384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15386 /^X\(\/\/\)$/{ s//\1/; q; }
15387 /^X\(\/\).*/{ s//\1/; q; }
15388 s/.*/./; q'`
15389 { if $as_mkdir_p; then
15390 mkdir -p "$ac_dir"
15391 else
15392 as_dir="$ac_dir"
15393 as_dirs=
15394 while test ! -d "$as_dir"; do
15395 as_dirs="$as_dir $as_dirs"
15396 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15398 X"$as_dir" : 'X\(//\)[^/]' \| \
15399 X"$as_dir" : 'X\(//\)$' \| \
15400 X"$as_dir" : 'X\(/\)' \| \
15401 . : '\(.\)' 2>/dev/null ||
15402 echo X"$as_dir" |
15403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15405 /^X\(\/\/\)$/{ s//\1/; q; }
15406 /^X\(\/\).*/{ s//\1/; q; }
15407 s/.*/./; q'`
15408 done
15409 test ! -n "$as_dirs" || mkdir $as_dirs
15410 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15411 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15412 { (exit 1); exit 1; }; }; }
15413
15414 ac_builddir=.
15415
15416 if test "$ac_dir" != .; then
15417 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15418 # A "../" for each directory in $ac_dir_suffix.
15419 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15420 else
15421 ac_dir_suffix= ac_top_builddir=
15422 fi
15423
15424 case $srcdir in
15425 .) # No --srcdir option. We are building in place.
15426 ac_srcdir=.
15427 if test -z "$ac_top_builddir"; then
15428 ac_top_srcdir=.
15429 else
15430 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15431 fi ;;
15432 [\\/]* | ?:[\\/]* ) # Absolute path.
15433 ac_srcdir=$srcdir$ac_dir_suffix;
15434 ac_top_srcdir=$srcdir ;;
15435 *) # Relative path.
15436 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15437 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15438 esac
15439
15440 # Do not use `cd foo && pwd` to compute absolute paths, because
15441 # the directories may not exist.
15442 case `pwd` in
15443 .) ac_abs_builddir="$ac_dir";;
15444 *)
15445 case "$ac_dir" in
15446 .) ac_abs_builddir=`pwd`;;
15447 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15448 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15449 esac;;
15450 esac
15451 case $ac_abs_builddir in
15452 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15453 *)
15454 case ${ac_top_builddir}. in
15455 .) ac_abs_top_builddir=$ac_abs_builddir;;
15456 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15457 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15458 esac;;
15459 esac
15460 case $ac_abs_builddir in
15461 .) ac_abs_srcdir=$ac_srcdir;;
15462 *)
15463 case $ac_srcdir in
15464 .) ac_abs_srcdir=$ac_abs_builddir;;
15465 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15466 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15467 esac;;
15468 esac
15469 case $ac_abs_builddir in
15470 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15471 *)
15472 case $ac_top_srcdir in
15473 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15474 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15475 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15476 esac;;
15477 esac
15478
15479
15480 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15481 echo "$as_me: executing $ac_dest commands" >&6;}
15482 case $ac_dest in
15483 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15484 # Strip MF so we end up with the name of the file.
15485 mf=`echo "$mf" | sed -e 's/:.*$//'`
15486 # Check whether this is an Automake generated Makefile or not.
15487 # We used to match only the files named `Makefile.in', but
15488 # some people rename them; so instead we look at the file content.
15489 # Grep'ing the first line is not enough: some people post-process
15490 # each Makefile.in and add a new line on top of each file to say so.
15491 # So let's grep whole file.
15492 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15493 dirpart=`(dirname "$mf") 2>/dev/null ||
15494 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15495 X"$mf" : 'X\(//\)[^/]' \| \
15496 X"$mf" : 'X\(//\)$' \| \
15497 X"$mf" : 'X\(/\)' \| \
15498 . : '\(.\)' 2>/dev/null ||
15499 echo X"$mf" |
15500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15502 /^X\(\/\/\)$/{ s//\1/; q; }
15503 /^X\(\/\).*/{ s//\1/; q; }
15504 s/.*/./; q'`
15505 else
15506 continue
15507 fi
15508 # Extract the definition of DEPDIR, am__include, and am__quote
15509 # from the Makefile without running `make'.
15510 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15511 test -z "$DEPDIR" && continue
15512 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15513 test -z "am__include" && continue
15514 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15515 # When using ansi2knr, U may be empty or an underscore; expand it
15516 U=`sed -n 's/^U = //p' < "$mf"`
15517 # Find all dependency output files, they are included files with
15518 # $(DEPDIR) in their names. We invoke sed twice because it is the
15519 # simplest approach to changing $(DEPDIR) to its actual value in the
15520 # expansion.
15521 for file in `sed -n "
15522 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15523 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15524 # Make sure the directory exists.
15525 test -f "$dirpart/$file" && continue
15526 fdir=`(dirname "$file") 2>/dev/null ||
15527 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15528 X"$file" : 'X\(//\)[^/]' \| \
15529 X"$file" : 'X\(//\)$' \| \
15530 X"$file" : 'X\(/\)' \| \
15531 . : '\(.\)' 2>/dev/null ||
15532 echo X"$file" |
15533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15535 /^X\(\/\/\)$/{ s//\1/; q; }
15536 /^X\(\/\).*/{ s//\1/; q; }
15537 s/.*/./; q'`
15538 { if $as_mkdir_p; then
15539 mkdir -p $dirpart/$fdir
15540 else
15541 as_dir=$dirpart/$fdir
15542 as_dirs=
15543 while test ! -d "$as_dir"; do
15544 as_dirs="$as_dir $as_dirs"
15545 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15547 X"$as_dir" : 'X\(//\)[^/]' \| \
15548 X"$as_dir" : 'X\(//\)$' \| \
15549 X"$as_dir" : 'X\(/\)' \| \
15550 . : '\(.\)' 2>/dev/null ||
15551 echo X"$as_dir" |
15552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15554 /^X\(\/\/\)$/{ s//\1/; q; }
15555 /^X\(\/\).*/{ s//\1/; q; }
15556 s/.*/./; q'`
15557 done
15558 test ! -n "$as_dirs" || mkdir $as_dirs
15559 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15560 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15561 { (exit 1); exit 1; }; }; }
15562
15563 # echo "creating $dirpart/$file"
15564 echo '# dummy' > "$dirpart/$file"
15565 done
15566 done
15567 ;;
15568 libtool )
15569
15570 # See if we are running on zsh, and set the options which allow our
15571 # commands through without removal of \ escapes.
15572 if test -n "${ZSH_VERSION+set}" ; then
15573 setopt NO_GLOB_SUBST
15574 fi
15575
15576 cfgfile="${ofile}T"
15577 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15578 $RM "$cfgfile"
15579
15580 cat <<_LT_EOF >> "$cfgfile"
15581 #! $SHELL
15582
15583 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15584 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15586 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15587 #
15588 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15589 # 2006, 2007 Free Software Foundation, Inc.
15590 #
15591 # This file is part of GNU Libtool:
15592 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15593 #
15594 # This program is free software; you can redistribute it and/or modify
15595 # it under the terms of the GNU General Public License as published by
15596 # the Free Software Foundation; either version 2 of the License, or
15597 # (at your option) any later version.
15598 #
15599 # This program is distributed in the hope that it will be useful, but
15600 # WITHOUT ANY WARRANTY; without even the implied warranty of
15601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15602 # General Public License for more details.
15603 #
15604 # You should have received a copy of the GNU General Public License
15605 # along with this program; if not, a copy can be downloaded from
15606 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15607 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15608 # MA 02110-1301, USA.
15609 #
15610 # As a special exception to the GNU General Public License, if you
15611 # distribute this file as part of a program that contains a
15612 # configuration script generated by Autoconf, you may include it under
15613 # the same distribution terms that you use for the rest of that program.
15614
15615
15616 # The names of the tagged configurations supported by this script.
15617 available_tags=""
15618
15619 # ### BEGIN LIBTOOL CONFIG
15620
15621 # Which release of libtool.m4 was used?
15622 macro_version=$macro_version
15623 macro_revision=$macro_revision
15624
15625 # Whether or not to build shared libraries.
15626 build_libtool_libs=$enable_shared
15627
15628 # Whether or not to build static libraries.
15629 build_old_libs=$enable_static
15630
15631 # What type of objects to build.
15632 pic_mode=$pic_mode
15633
15634 # Whether or not to optimize for fast installation.
15635 fast_install=$enable_fast_install
15636
15637 # The host system.
15638 host_alias=$host_alias
15639 host=$host
15640 host_os=$host_os
15641
15642 # The build system.
15643 build_alias=$build_alias
15644 build=$build
15645 build_os=$build_os
15646
15647 # A sed program that does not truncate output.
15648 SED=$lt_SED
15649
15650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15651 Xsed="\$SED -e 1s/^X//"
15652
15653 # A grep program that handles long lines.
15654 GREP=$lt_GREP
15655
15656 # An ERE matcher.
15657 EGREP=$lt_EGREP
15658
15659 # A literal string matcher.
15660 FGREP=$lt_FGREP
15661
15662 # A BSD- or MS-compatible name lister.
15663 NM=$lt_NM
15664
15665 # Whether we need soft or hard links.
15666 LN_S=$lt_LN_S
15667
15668 # What is the maximum length of a command?
15669 max_cmd_len=$max_cmd_len
15670
15671 # Object file suffix (normally "o").
15672 objext=$ac_objext
15673
15674 # Executable file suffix (normally "").
15675 exeext=$exeext
15676
15677 # whether the shell understands "unset".
15678 lt_unset=$lt_unset
15679
15680 # turn spaces into newlines.
15681 SP2NL=$lt_lt_SP2NL
15682
15683 # turn newlines into spaces.
15684 NL2SP=$lt_lt_NL2SP
15685
15686 # How to create reloadable object files.
15687 reload_flag=$lt_reload_flag
15688 reload_cmds=$lt_reload_cmds
15689
15690 # Method to check whether dependent libraries are shared objects.
15691 deplibs_check_method=$lt_deplibs_check_method
15692
15693 # Command to use when deplibs_check_method == "file_magic".
15694 file_magic_cmd=$lt_file_magic_cmd
15695
15696 # The archiver.
15697 AR=$lt_AR
15698 AR_FLAGS=$lt_AR_FLAGS
15699
15700 # A symbol stripping program.
15701 STRIP=$lt_STRIP
15702
15703 # Commands used to install an old-style archive.
15704 RANLIB=$lt_RANLIB
15705 old_postinstall_cmds=$lt_old_postinstall_cmds
15706 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15707
15708 # A C compiler.
15709 LTCC=$lt_CC
15710
15711 # LTCC compiler flags.
15712 LTCFLAGS=$lt_CFLAGS
15713
15714 # Take the output of nm and produce a listing of raw symbols and C names.
15715 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15716
15717 # Transform the output of nm in a proper C declaration.
15718 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15719
15720 # Transform the output of nm in a C name address pair.
15721 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15722
15723 # The name of the directory that contains temporary libtool files.
15724 objdir=$objdir
15725
15726 # Shell to use when invoking shell scripts.
15727 SHELL=$lt_SHELL
15728
15729 # An echo program that does not interpret backslashes.
15730 ECHO=$lt_ECHO
15731
15732 # Used to examine libraries when file_magic_cmd begins with "file".
15733 MAGIC_CMD=$MAGIC_CMD
15734
15735 # Must we lock files when doing compilation?
15736 need_locks=$lt_need_locks
15737
15738 # Old archive suffix (normally "a").
15739 libext=$libext
15740
15741 # Shared library suffix (normally ".so").
15742 shrext_cmds=$lt_shrext_cmds
15743
15744 # The commands to extract the exported symbol list from a shared archive.
15745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15746
15747 # Variables whose values should be saved in libtool wrapper scripts and
15748 # restored at link time.
15749 variables_saved_for_relink=$lt_variables_saved_for_relink
15750
15751 # Do we need the "lib" prefix for modules?
15752 need_lib_prefix=$need_lib_prefix
15753
15754 # Do we need a version for libraries?
15755 need_version=$need_version
15756
15757 # Library versioning type.
15758 version_type=$version_type
15759
15760 # Shared library runtime path variable.
15761 runpath_var=$runpath_var
15762
15763 # Shared library path variable.
15764 shlibpath_var=$shlibpath_var
15765
15766 # Is shlibpath searched before the hard-coded library search path?
15767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15768
15769 # Format of library name prefix.
15770 libname_spec=$lt_libname_spec
15771
15772 # List of archive names. First name is the real one, the rest are links.
15773 # The last name is the one that the linker finds with -lNAME
15774 library_names_spec=$lt_library_names_spec
15775
15776 # The coded name of the library, if different from the real name.
15777 soname_spec=$lt_soname_spec
15778
15779 # Command to use after installation of a shared archive.
15780 postinstall_cmds=$lt_postinstall_cmds
15781
15782 # Command to use after uninstallation of a shared archive.
15783 postuninstall_cmds=$lt_postuninstall_cmds
15784
15785 # Commands used to finish a libtool library installation in a directory.
15786 finish_cmds=$lt_finish_cmds
15787
15788 # As "finish_cmds", except a single script fragment to be evaled but
15789 # not shown.
15790 finish_eval=$lt_finish_eval
15791
15792 # Whether we should hardcode library paths into libraries.
15793 hardcode_into_libs=$hardcode_into_libs
15794
15795 # Compile-time system search path for libraries.
15796 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15797
15798 # Run-time system search path for libraries.
15799 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15800
15801 # Whether dlopen is supported.
15802 dlopen_support=$enable_dlopen
15803
15804 # Whether dlopen of programs is supported.
15805 dlopen_self=$enable_dlopen_self
15806
15807 # Whether dlopen of statically linked programs is supported.
15808 dlopen_self_static=$enable_dlopen_self_static
15809
15810 # Commands to strip libraries.
15811 old_striplib=$lt_old_striplib
15812 striplib=$lt_striplib
15813
15814
15815 # The linker used to build libraries.
15816 LD=$lt_LD
15817
15818 # Commands used to build an old-style archive.
15819 old_archive_cmds=$lt_old_archive_cmds
15820
15821 # A language specific compiler.
15822 CC=$lt_compiler
15823
15824 # Is the compiler the GNU compiler?
15825 with_gcc=$GCC
15826
15827 # Compiler flag to turn off builtin functions.
15828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15829
15830 # How to pass a linker flag through the compiler.
15831 wl=$lt_lt_prog_compiler_wl
15832
15833 # Additional compiler flags for building library objects.
15834 pic_flag=$lt_lt_prog_compiler_pic
15835
15836 # Compiler flag to prevent dynamic linking.
15837 link_static_flag=$lt_lt_prog_compiler_static
15838
15839 # Does compiler simultaneously support -c and -o options?
15840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15841
15842 # Whether or not to add -lc for building shared libraries.
15843 build_libtool_need_lc=$archive_cmds_need_lc
15844
15845 # Whether or not to disallow shared libs when runtime libs are static.
15846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15847
15848 # Compiler flag to allow reflexive dlopens.
15849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15850
15851 # Compiler flag to generate shared objects directly from archives.
15852 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15853
15854 # Whether the compiler copes with passing no objects directly.
15855 compiler_needs_object=$lt_compiler_needs_object
15856
15857 # Create an old-style archive from a shared archive.
15858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15859
15860 # Create a temporary old-style archive to link instead of a shared archive.
15861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15862
15863 # Commands used to build a shared archive.
15864 archive_cmds=$lt_archive_cmds
15865 archive_expsym_cmds=$lt_archive_expsym_cmds
15866
15867 # Commands used to build a loadable module if different from building
15868 # a shared archive.
15869 module_cmds=$lt_module_cmds
15870 module_expsym_cmds=$lt_module_expsym_cmds
15871
15872 # Whether we are building with GNU ld or not.
15873 with_gnu_ld=$lt_with_gnu_ld
15874
15875 # Flag that allows shared libraries with undefined symbols to be built.
15876 allow_undefined_flag=$lt_allow_undefined_flag
15877
15878 # Flag that enforces no undefined symbols.
15879 no_undefined_flag=$lt_no_undefined_flag
15880
15881 # Flag to hardcode \$libdir into a binary during linking.
15882 # This must work even if \$libdir does not exist
15883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15884
15885 # If ld is used when linking, flag to hardcode \$libdir into a binary
15886 # during linking. This must work even if \$libdir does not exist.
15887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15888
15889 # Whether we need a single "-rpath" flag with a separated argument.
15890 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15891
15892 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15893 # DIR into the resulting binary.
15894 hardcode_direct=$hardcode_direct
15895
15896 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15897 # DIR into the resulting binary and the resulting library dependency is
15898 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15899 # library is relocated.
15900 hardcode_direct_absolute=$hardcode_direct_absolute
15901
15902 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15903 # into the resulting binary.
15904 hardcode_minus_L=$hardcode_minus_L
15905
15906 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15907 # into the resulting binary.
15908 hardcode_shlibpath_var=$hardcode_shlibpath_var
15909
15910 # Set to "yes" if building a shared library automatically hardcodes DIR
15911 # into the library and all subsequent libraries and executables linked
15912 # against it.
15913 hardcode_automatic=$hardcode_automatic
15914
15915 # Set to yes if linker adds runtime paths of dependent libraries
15916 # to runtime path list.
15917 inherit_rpath=$inherit_rpath
15918
15919 # Whether libtool must link a program against all its dependency libraries.
15920 link_all_deplibs=$link_all_deplibs
15921
15922 # Fix the shell variable \$srcfile for the compiler.
15923 fix_srcfile_path=$lt_fix_srcfile_path
15924
15925 # Set to "yes" if exported symbols are required.
15926 always_export_symbols=$always_export_symbols
15927
15928 # The commands to list exported symbols.
15929 export_symbols_cmds=$lt_export_symbols_cmds
15930
15931 # Symbols that should not be listed in the preloaded symbols.
15932 exclude_expsyms=$lt_exclude_expsyms
15933
15934 # Symbols that must always be exported.
15935 include_expsyms=$lt_include_expsyms
15936
15937 # Commands necessary for linking programs (against libraries) with templates.
15938 prelink_cmds=$lt_prelink_cmds
15939
15940 # Specify filename containing input files.
15941 file_list_spec=$lt_file_list_spec
15942
15943 # How to hardcode a shared library path into an executable.
15944 hardcode_action=$hardcode_action
15945
15946 # ### END LIBTOOL CONFIG
15947
15948 _LT_EOF
15949
15950 case $host_os in
15951 aix3*)
15952 cat <<\_LT_EOF >> "$cfgfile"
15953 # AIX sometimes has problems with the GCC collect2 program. For some
15954 # reason, if we set the COLLECT_NAMES environment variable, the problems
15955 # vanish in a puff of smoke.
15956 if test "X${COLLECT_NAMES+set}" != Xset; then
15957 COLLECT_NAMES=
15958 export COLLECT_NAMES
15959 fi
15960 _LT_EOF
15961 ;;
15962 esac
15963
15964
15965 ltmain="$ac_aux_dir/ltmain.sh"
15966
15967
15968 # We use sed instead of cat because bash on DJGPP gets confused if
15969 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15970 # text mode, it properly converts lines to CR/LF. This bash problem
15971 # is reportedly fixed, but why not run on old versions too?
15972 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15973 || (rm -f "$cfgfile"; exit 1)
15974
15975 case $xsi_shell in
15976 yes)
15977 cat << \_LT_EOF >> "$cfgfile"
15978 # func_dirname file append nondir_replacement
15979 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15980 # otherwise set result to NONDIR_REPLACEMENT.
15981 func_dirname ()
15982 {
15983 case ${1} in
15984 */*) func_dirname_result="${1%/*}${2}" ;;
15985 * ) func_dirname_result="${3}" ;;
15986 esac
15987 }
15988
15989 # func_basename file
15990 func_basename ()
15991 {
15992 func_basename_result="${1##*/}"
15993 }
15994
15995 # func_stripname prefix suffix name
15996 # strip PREFIX and SUFFIX off of NAME.
15997 # PREFIX and SUFFIX must not contain globbing or regex special
15998 # characters, hashes, percent signs, but SUFFIX may contain a leading
15999 # dot (in which case that matches only a dot).
16000 func_stripname ()
16001 {
16002 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16003 # positional parameters, so assign one to ordinary parameter first.
16004 func_stripname_result=${3}
16005 func_stripname_result=${func_stripname_result#"${1}"}
16006 func_stripname_result=${func_stripname_result%"${2}"}
16007 }
16008
16009 # func_opt_split
16010 func_opt_split ()
16011 {
16012 func_opt_split_opt=${1%%=*}
16013 func_opt_split_arg=${1#*=}
16014 }
16015
16016 # func_lo2o object
16017 func_lo2o ()
16018 {
16019 case ${1} in
16020 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16021 *) func_lo2o_result=${1} ;;
16022 esac
16023 }
16024 _LT_EOF
16025 ;;
16026 *) # Bourne compatible functions.
16027 cat << \_LT_EOF >> "$cfgfile"
16028 # func_dirname file append nondir_replacement
16029 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16030 # otherwise set result to NONDIR_REPLACEMENT.
16031 func_dirname ()
16032 {
16033 # Extract subdirectory from the argument.
16034 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16035 if test "X$func_dirname_result" = "X${1}"; then
16036 func_dirname_result="${3}"
16037 else
16038 func_dirname_result="$func_dirname_result${2}"
16039 fi
16040 }
16041
16042 # func_basename file
16043 func_basename ()
16044 {
16045 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16046 }
16047
16048 # func_stripname prefix suffix name
16049 # strip PREFIX and SUFFIX off of NAME.
16050 # PREFIX and SUFFIX must not contain globbing or regex special
16051 # characters, hashes, percent signs, but SUFFIX may contain a leading
16052 # dot (in which case that matches only a dot).
16053 # func_strip_suffix prefix name
16054 func_stripname ()
16055 {
16056 case ${2} in
16057 .*) func_stripname_result=`$ECHO "X${3}" \
16058 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16059 *) func_stripname_result=`$ECHO "X${3}" \
16060 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16061 esac
16062 }
16063
16064 # sed scripts:
16065 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16066 my_sed_long_arg='1s/^-[^=]*=//'
16067
16068 # func_opt_split
16069 func_opt_split ()
16070 {
16071 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16072 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16073 }
16074
16075 # func_lo2o object
16076 func_lo2o ()
16077 {
16078 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16079 }
16080 _LT_EOF
16081 esac
16082
16083 case $lt_shell_append in
16084 yes)
16085 cat << \_LT_EOF >> "$cfgfile"
16086
16087 # func_append var value
16088 # Append VALUE to the end of shell variable VAR.
16089 func_append ()
16090 {
16091 eval "$1+=\$2"
16092 }
16093 _LT_EOF
16094 ;;
16095 *)
16096 cat << \_LT_EOF >> "$cfgfile"
16097
16098 # func_append var value
16099 # Append VALUE to the end of shell variable VAR.
16100 func_append ()
16101 {
16102 eval "$1=\$$1\$2"
16103 }
16104 _LT_EOF
16105 ;;
16106 esac
16107
16108
16109 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16110 || (rm -f "$cfgfile"; exit 1)
16111
16112 mv -f "$cfgfile" "$ofile" ||
16113 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16114 chmod +x "$ofile"
16115
16116 ;;
16117 default-1 )
16118 for ac_file in $CONFIG_FILES; do
16119 # Support "outfile[:infile[:infile...]]"
16120 case "$ac_file" in
16121 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16122 esac
16123 # PO directories have a Makefile.in generated from Makefile.in.in.
16124 case "$ac_file" in */Makefile.in)
16125 # Adjust a relative srcdir.
16126 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16127 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16128 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16129 # In autoconf-2.13 it is called $ac_given_srcdir.
16130 # In autoconf-2.50 it is called $srcdir.
16131 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16132 case "$ac_given_srcdir" in
16133 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16134 /*) top_srcdir="$ac_given_srcdir" ;;
16135 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16136 esac
16137 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16138 rm -f "$ac_dir/POTFILES"
16139 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16140 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16141 POMAKEFILEDEPS="POTFILES.in"
16142 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16143 # on $ac_dir but don't depend on user-specified configuration
16144 # parameters.
16145 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16146 # The LINGUAS file contains the set of available languages.
16147 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16148 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16149 fi
16150 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16151 # Hide the ALL_LINGUAS assigment from automake.
16152 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16153 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16154 else
16155 # The set of available languages was given in configure.in.
16156 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16157 fi
16158 case "$ac_given_srcdir" in
16159 .) srcdirpre= ;;
16160 *) srcdirpre='$(srcdir)/' ;;
16161 esac
16162 POFILES=
16163 GMOFILES=
16164 UPDATEPOFILES=
16165 DUMMYPOFILES=
16166 for lang in $ALL_LINGUAS; do
16167 POFILES="$POFILES $srcdirpre$lang.po"
16168 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16169 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16170 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16171 done
16172 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16173 # environment variable.
16174 INST_LINGUAS=
16175 if test -n "$ALL_LINGUAS"; then
16176 for presentlang in $ALL_LINGUAS; do
16177 useit=no
16178 if test "%UNSET%" != "$LINGUAS"; then
16179 desiredlanguages="$LINGUAS"
16180 else
16181 desiredlanguages="$ALL_LINGUAS"
16182 fi
16183 for desiredlang in $desiredlanguages; do
16184 # Use the presentlang catalog if desiredlang is
16185 # a. equal to presentlang, or
16186 # b. a variant of presentlang (because in this case,
16187 # presentlang can be used as a fallback for messages
16188 # which are not translated in the desiredlang catalog).
16189 case "$desiredlang" in
16190 "$presentlang"*) useit=yes;;
16191 esac
16192 done
16193 if test $useit = yes; then
16194 INST_LINGUAS="$INST_LINGUAS $presentlang"
16195 fi
16196 done
16197 fi
16198 CATALOGS=
16199 if test -n "$INST_LINGUAS"; then
16200 for lang in $INST_LINGUAS; do
16201 CATALOGS="$CATALOGS $lang.gmo"
16202 done
16203 fi
16204 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16205 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"
16206 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16207 if test -f "$f"; then
16208 case "$f" in
16209 *.orig | *.bak | *~) ;;
16210 *) cat "$f" >> "$ac_dir/Makefile" ;;
16211 esac
16212 fi
16213 done
16214 fi
16215 ;;
16216 esac
16217 done ;;
16218 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16219 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16220 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16221 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16222 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16223 if test "x$cgen_cpu_prefix" != x ; then
16224 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16225 fi ;;
16226 esac
16227 done
16228 _ACEOF
16229
16230 cat >>$CONFIG_STATUS <<\_ACEOF
16231
16232 { (exit 0); exit 0; }
16233 _ACEOF
16234 chmod +x $CONFIG_STATUS
16235 ac_clean_files=$ac_clean_files_save
16236
16237
16238 # configure is writing to config.log, and then calls config.status.
16239 # config.status does its own redirection, appending to config.log.
16240 # Unfortunately, on DOS this fails, as config.log is still kept open
16241 # by configure, so config.status won't be able to write to it; its
16242 # output is simply discarded. So we exec the FD to /dev/null,
16243 # effectively closing config.log, so it can be properly (re)opened and
16244 # appended to by config.status. When coming back to configure, we
16245 # need to make the FD available again.
16246 if test "$no_create" != yes; then
16247 ac_cs_success=:
16248 ac_config_status_args=
16249 test "$silent" = yes &&
16250 ac_config_status_args="$ac_config_status_args --quiet"
16251 exec 5>/dev/null
16252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16253 exec 5>>config.log
16254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16255 # would make configure fail if this is the last instruction.
16256 $ac_cs_success || { (exit 1); exit 1; }
16257 fi
16258
This page took 0.610227 seconds and 4 git commands to generate.