* configure.in: Link with the PIC version of libiberty on
[external/binutils.git] / bfd / 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="libbfd.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927   # Omit some internal or obsolete options to make the list less imposing.
928   # This message is too long to be a string in the A/UX 3.1 sh.
929   cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940   -h, --help              display this help and exit
941       --help=short        display options specific to this package
942       --help=recursive    display the short help of all the included packages
943   -V, --version           display version information and exit
944   -q, --quiet, --silent   do not print \`checking...' messages
945       --cache-file=FILE   cache test results in FILE [disabled]
946   -C, --config-cache      alias for \`--cache-file=config.cache'
947   -n, --no-create         do not create output files
948       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952   cat <<_ACEOF
953 Installation directories:
954   --prefix=PREFIX         install architecture-independent files in PREFIX
955                           [$ac_default_prefix]
956   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957                           [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967   --bindir=DIR           user executables [EPREFIX/bin]
968   --sbindir=DIR          system admin executables [EPREFIX/sbin]
969   --libexecdir=DIR       program executables [EPREFIX/libexec]
970   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974   --libdir=DIR           object code libraries [EPREFIX/lib]
975   --includedir=DIR       C header files [PREFIX/include]
976   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977   --infodir=DIR          info documentation [PREFIX/info]
978   --mandir=DIR           man documentation [PREFIX/man]
979 _ACEOF
980
981   cat <<\_ACEOF
982
983 Program names:
984   --program-prefix=PREFIX            prepend PREFIX to installed program names
985   --program-suffix=SUFFIX            append SUFFIX to installed program names
986   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988 System types:
989   --build=BUILD     configure for building on BUILD [guessed]
990   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991   --target=TARGET   configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996
997   cat <<\_ACEOF
998
999 Optional Features:
1000   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002   --disable-dependency-tracking  speeds up one-time build
1003   --enable-dependency-tracking   do not reject slow dependency extractors
1004   --enable-shared[=PKGS]
1005                           build shared libraries [default=no]
1006   --enable-static[=PKGS]
1007                           build static libraries [default=yes]
1008   --enable-fast-install[=PKGS]
1009                           optimize for fast installation [default=yes]
1010   --disable-libtool-lock  avoid locking (might break parallel builds)
1011   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1012   --enable-targets        alternative target configurations
1013   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1014   --enable-secureplt      Default to creating read-only plt entries
1015   --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1016   --enable-werror         treat compile warnings as errors
1017   --enable-build-warnings enable build-time compiler warnings
1018   --enable-maintainer-mode  enable make rules and dependencies not useful
1019                           (and sometimes confusing) to the casual installer
1020   --enable-install-libbfd controls installation of libbfd and related headers
1021   --disable-nls           do not use Native Language Support
1022
1023 Optional Packages:
1024   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1025   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1026   --with-pic              try to use only PIC/non-PIC objects [default=use
1027                           both]
1028   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1029   --with-mmap             try using mmap for BFD input files if available
1030   --with-separate-debug-dir=DIR
1031                           Look for global separate debug info in DIR
1032                           [default=LIBDIR/debug]
1033   --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1034                           Binutils"
1035   --with-bugurl=URL       Direct users to URL to report a bug
1036
1037 Some influential environment variables:
1038   CC          C compiler command
1039   CFLAGS      C compiler flags
1040   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1041               nonstandard directory <lib dir>
1042   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043               headers in a nonstandard directory <include dir>
1044   CPP         C preprocessor
1045
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1048
1049 _ACEOF
1050 fi
1051
1052 if test "$ac_init_help" = "recursive"; then
1053   # If there are subdirs, report their specific --help.
1054   ac_popdir=`pwd`
1055   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056     test -d $ac_dir || continue
1057     ac_builddir=.
1058
1059 if test "$ac_dir" != .; then
1060   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061   # A "../" for each directory in $ac_dir_suffix.
1062   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064   ac_dir_suffix= ac_top_builddir=
1065 fi
1066
1067 case $srcdir in
1068   .)  # No --srcdir option.  We are building in place.
1069     ac_srcdir=.
1070     if test -z "$ac_top_builddir"; then
1071        ac_top_srcdir=.
1072     else
1073        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074     fi ;;
1075   [\\/]* | ?:[\\/]* )  # Absolute path.
1076     ac_srcdir=$srcdir$ac_dir_suffix;
1077     ac_top_srcdir=$srcdir ;;
1078   *) # Relative path.
1079     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1082
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1087 *)
1088   case "$ac_dir" in
1089   .) ac_abs_builddir=`pwd`;;
1090   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092   esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *)
1097   case ${ac_top_builddir}. in
1098   .) ac_abs_top_builddir=$ac_abs_builddir;;
1099   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101   esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1105 *)
1106   case $ac_srcdir in
1107   .) ac_abs_srcdir=$ac_abs_builddir;;
1108   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110   esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *)
1115   case $ac_top_srcdir in
1116   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119   esac;;
1120 esac
1121
1122     cd $ac_dir
1123     # Check for guested configure; otherwise get Cygnus style configure.
1124     if test -f $ac_srcdir/configure.gnu; then
1125       echo
1126       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1127     elif test -f $ac_srcdir/configure; then
1128       echo
1129       $SHELL $ac_srcdir/configure  --help=recursive
1130     elif test -f $ac_srcdir/configure.ac ||
1131            test -f $ac_srcdir/configure.in; then
1132       echo
1133       $ac_configure --help
1134     else
1135       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136     fi
1137     cd $ac_popdir
1138   done
1139 fi
1140
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143   cat <<\_ACEOF
1144
1145 Copyright (C) 2003 Free Software Foundation, Inc.
1146 This configure script is free software; the Free Software Foundation
1147 gives unlimited permission to copy, distribute and modify it.
1148 _ACEOF
1149   exit 0
1150 fi
1151 exec 5>config.log
1152 cat >&5 <<_ACEOF
1153 This file contains any messages produced by compilers while
1154 running configure, to aid debugging if configure makes a mistake.
1155
1156 It was created by $as_me, which was
1157 generated by GNU Autoconf 2.59.  Invocation command line was
1158
1159   $ $0 $@
1160
1161 _ACEOF
1162 {
1163 cat <<_ASUNAME
1164 ## --------- ##
1165 ## Platform. ##
1166 ## --------- ##
1167
1168 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173
1174 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1176
1177 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1178 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1179 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1181 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1182 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1183 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1184
1185 _ASUNAME
1186
1187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188 for as_dir in $PATH
1189 do
1190   IFS=$as_save_IFS
1191   test -z "$as_dir" && as_dir=.
1192   echo "PATH: $as_dir"
1193 done
1194
1195 } >&5
1196
1197 cat >&5 <<_ACEOF
1198
1199
1200 ## ----------- ##
1201 ## Core tests. ##
1202 ## ----------- ##
1203
1204 _ACEOF
1205
1206
1207 # Keep a trace of the command line.
1208 # Strip out --no-create and --no-recursion so they do not pile up.
1209 # Strip out --silent because we don't want to record it for future runs.
1210 # Also quote any args containing shell meta-characters.
1211 # Make two passes to allow for proper duplicate-argument suppression.
1212 ac_configure_args=
1213 ac_configure_args0=
1214 ac_configure_args1=
1215 ac_sep=
1216 ac_must_keep_next=false
1217 for ac_pass in 1 2
1218 do
1219   for ac_arg
1220   do
1221     case $ac_arg in
1222     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224     | -silent | --silent | --silen | --sile | --sil)
1225       continue ;;
1226     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228     esac
1229     case $ac_pass in
1230     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231     2)
1232       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233       if test $ac_must_keep_next = true; then
1234         ac_must_keep_next=false # Got value, back to normal.
1235       else
1236         case $ac_arg in
1237           *=* | --config-cache | -C | -disable-* | --disable-* \
1238           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240           | -with-* | --with-* | -without-* | --without-* | --x)
1241             case "$ac_configure_args0 " in
1242               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243             esac
1244             ;;
1245           -* ) ac_must_keep_next=true ;;
1246         esac
1247       fi
1248       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249       # Get rid of the leading space.
1250       ac_sep=" "
1251       ;;
1252     esac
1253   done
1254 done
1255 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257
1258 # When interrupted or exit'd, cleanup temporary files, and complete
1259 # config.log.  We remove comments because anyway the quotes in there
1260 # would cause problems or look ugly.
1261 # WARNING: Be sure not to use single quotes in there, as some shells,
1262 # such as our DU 5.0 friend, will then `close' the trap.
1263 trap 'exit_status=$?
1264   # Save into config.log some information that might help in debugging.
1265   {
1266     echo
1267
1268     cat <<\_ASBOX
1269 ## ---------------- ##
1270 ## Cache variables. ##
1271 ## ---------------- ##
1272 _ASBOX
1273     echo
1274     # The following way of writing the cache mishandles newlines in values,
1275 {
1276   (set) 2>&1 |
1277     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278     *ac_space=\ *)
1279       sed -n \
1280         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282       ;;
1283     *)
1284       sed -n \
1285         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286       ;;
1287     esac;
1288 }
1289     echo
1290
1291     cat <<\_ASBOX
1292 ## ----------------- ##
1293 ## Output variables. ##
1294 ## ----------------- ##
1295 _ASBOX
1296     echo
1297     for ac_var in $ac_subst_vars
1298     do
1299       eval ac_val=$`echo $ac_var`
1300       echo "$ac_var='"'"'$ac_val'"'"'"
1301     done | sort
1302     echo
1303
1304     if test -n "$ac_subst_files"; then
1305       cat <<\_ASBOX
1306 ## ------------- ##
1307 ## Output files. ##
1308 ## ------------- ##
1309 _ASBOX
1310       echo
1311       for ac_var in $ac_subst_files
1312       do
1313         eval ac_val=$`echo $ac_var`
1314         echo "$ac_var='"'"'$ac_val'"'"'"
1315       done | sort
1316       echo
1317     fi
1318
1319     if test -s confdefs.h; then
1320       cat <<\_ASBOX
1321 ## ----------- ##
1322 ## confdefs.h. ##
1323 ## ----------- ##
1324 _ASBOX
1325       echo
1326       sed "/^$/d" confdefs.h | sort
1327       echo
1328     fi
1329     test "$ac_signal" != 0 &&
1330       echo "$as_me: caught signal $ac_signal"
1331     echo "$as_me: exit $exit_status"
1332   } >&5
1333   rm -f core *.core &&
1334   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335     exit $exit_status
1336      ' 0
1337 for ac_signal in 1 2 13 15; do
1338   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339 done
1340 ac_signal=0
1341
1342 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1343 rm -rf conftest* confdefs.h
1344 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345 echo >confdefs.h
1346
1347 # Predefined preprocessor variables.
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_NAME "$PACKAGE_NAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_STRING "$PACKAGE_STRING"
1366 _ACEOF
1367
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1371 _ACEOF
1372
1373
1374 # Let the site file select an alternate cache file if it wants to.
1375 # Prefer explicitly selected file to automatically selected ones.
1376 if test -z "$CONFIG_SITE"; then
1377   if test "x$prefix" != xNONE; then
1378     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379   else
1380     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381   fi
1382 fi
1383 for ac_site_file in $CONFIG_SITE; do
1384   if test -r "$ac_site_file"; then
1385     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386 echo "$as_me: loading site script $ac_site_file" >&6;}
1387     sed 's/^/| /' "$ac_site_file" >&5
1388     . "$ac_site_file"
1389   fi
1390 done
1391
1392 if test -r "$cache_file"; then
1393   # Some versions of bash will fail to source /dev/null (special
1394   # files actually), so we avoid doing that.
1395   if test -f "$cache_file"; then
1396     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397 echo "$as_me: loading cache $cache_file" >&6;}
1398     case $cache_file in
1399       [\\/]* | ?:[\\/]* ) . $cache_file;;
1400       *)                      . ./$cache_file;;
1401     esac
1402   fi
1403 else
1404   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405 echo "$as_me: creating cache $cache_file" >&6;}
1406   >$cache_file
1407 fi
1408
1409 # Check that the precious variables saved in the cache have kept the same
1410 # value.
1411 ac_cache_corrupted=false
1412 for ac_var in `(set) 2>&1 |
1413                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1414   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415   eval ac_new_set=\$ac_env_${ac_var}_set
1416   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417   eval ac_new_val="\$ac_env_${ac_var}_value"
1418   case $ac_old_set,$ac_new_set in
1419     set,)
1420       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422       ac_cache_corrupted=: ;;
1423     ,set)
1424       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426       ac_cache_corrupted=: ;;
1427     ,);;
1428     *)
1429       if test "x$ac_old_val" != "x$ac_new_val"; then
1430         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1431 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1432         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1433 echo "$as_me:   former value:  $ac_old_val" >&2;}
1434         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1435 echo "$as_me:   current value: $ac_new_val" >&2;}
1436         ac_cache_corrupted=:
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: changes in the environment can compromise the build" >&5
1454 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457    { (exit 1); exit 1; }; }
1458 fi
1459
1460 ac_ext=c
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif 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/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511 # Make sure we can run config.sub.
1512 $ac_config_sub sun4 >/dev/null 2>&1 ||
1513   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1514 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1515    { (exit 1); exit 1; }; }
1516
1517 echo "$as_me:$LINENO: checking build system type" >&5
1518 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1519 if test "${ac_cv_build+set}" = set; then
1520   echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522   ac_cv_build_alias=$build_alias
1523 test -z "$ac_cv_build_alias" &&
1524   ac_cv_build_alias=`$ac_config_guess`
1525 test -z "$ac_cv_build_alias" &&
1526   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1527 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1528    { (exit 1); exit 1; }; }
1529 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1530   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1532    { (exit 1); exit 1; }; }
1533
1534 fi
1535 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1536 echo "${ECHO_T}$ac_cv_build" >&6
1537 build=$ac_cv_build
1538 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543 echo "$as_me:$LINENO: checking host system type" >&5
1544 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545 if test "${ac_cv_host+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   ac_cv_host_alias=$host_alias
1549 test -z "$ac_cv_host_alias" &&
1550   ac_cv_host_alias=$ac_cv_build_alias
1551 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554    { (exit 1); exit 1; }; }
1555
1556 fi
1557 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558 echo "${ECHO_T}$ac_cv_host" >&6
1559 host=$ac_cv_host
1560 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565 echo "$as_me:$LINENO: checking target system type" >&5
1566 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567 if test "${ac_cv_target+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   ac_cv_target_alias=$target_alias
1571 test "x$ac_cv_target_alias" = "x" &&
1572   ac_cv_target_alias=$ac_cv_host_alias
1573 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576    { (exit 1); exit 1; }; }
1577
1578 fi
1579 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580 echo "${ECHO_T}$ac_cv_target" >&6
1581 target=$ac_cv_target
1582 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587 # The aliases save the names the user supplied, while $host etc.
1588 # will get canonicalized.
1589 test -n "$target_alias" &&
1590   test "$program_prefix$program_suffix$program_transform_name" = \
1591     NONENONEs,x,x, &&
1592   program_prefix=${target_alias}-
1593 ac_ext=c
1594 ac_cpp='$CPP $CPPFLAGS'
1595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598 if test -n "$ac_tool_prefix"; then
1599   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1600 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   if test -n "$CC"; then
1607   ac_cv_prog_CC="$CC" # Let the user override the test.
1608 else
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612   IFS=$as_save_IFS
1613   test -z "$as_dir" && as_dir=.
1614   for ac_exec_ext in '' $ac_executable_extensions; do
1615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618     break 2
1619   fi
1620 done
1621 done
1622
1623 fi
1624 fi
1625 CC=$ac_cv_prog_CC
1626 if test -n "$CC"; then
1627   echo "$as_me:$LINENO: result: $CC" >&5
1628 echo "${ECHO_T}$CC" >&6
1629 else
1630   echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1632 fi
1633
1634 fi
1635 if test -z "$ac_cv_prog_CC"; then
1636   ac_ct_CC=$CC
1637   # Extract the first word of "gcc", so it can be a program name with args.
1638 set dummy gcc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642   echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644   if test -n "$ac_ct_CC"; then
1645   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650   IFS=$as_save_IFS
1651   test -z "$as_dir" && as_dir=.
1652   for ac_exec_ext in '' $ac_executable_extensions; do
1653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654     ac_cv_prog_ac_ct_CC="gcc"
1655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656     break 2
1657   fi
1658 done
1659 done
1660
1661 fi
1662 fi
1663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1667 else
1668   echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1670 fi
1671
1672   CC=$ac_ct_CC
1673 else
1674   CC="$ac_cv_prog_CC"
1675 fi
1676
1677 if test -z "$CC"; then
1678   if test -n "$ac_tool_prefix"; then
1679   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1680 set dummy ${ac_tool_prefix}cc; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_CC+set}" = set; then
1684   echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686   if test -n "$CC"; then
1687   ac_cv_prog_CC="$CC" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     ac_cv_prog_CC="${ac_tool_prefix}cc"
1697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698     break 2
1699   fi
1700 done
1701 done
1702
1703 fi
1704 fi
1705 CC=$ac_cv_prog_CC
1706 if test -n "$CC"; then
1707   echo "$as_me:$LINENO: result: $CC" >&5
1708 echo "${ECHO_T}$CC" >&6
1709 else
1710   echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 fi
1713
1714 fi
1715 if test -z "$ac_cv_prog_CC"; then
1716   ac_ct_CC=$CC
1717   # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$ac_ct_CC"; then
1725   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   for ac_exec_ext in '' $ac_executable_extensions; do
1733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734     ac_cv_prog_ac_ct_CC="cc"
1735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736     break 2
1737   fi
1738 done
1739 done
1740
1741 fi
1742 fi
1743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1744 if test -n "$ac_ct_CC"; then
1745   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1746 echo "${ECHO_T}$ac_ct_CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752   CC=$ac_ct_CC
1753 else
1754   CC="$ac_cv_prog_CC"
1755 fi
1756
1757 fi
1758 if test -z "$CC"; then
1759   # Extract the first word of "cc", so it can be a program name with args.
1760 set dummy cc; ac_word=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_CC+set}" = set; then
1764   echo $ECHO_N "(cached) $ECHO_C" >&6
1765 else
1766   if test -n "$CC"; then
1767   ac_cv_prog_CC="$CC" # Let the user override the test.
1768 else
1769   ac_prog_rejected=no
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773   IFS=$as_save_IFS
1774   test -z "$as_dir" && as_dir=.
1775   for ac_exec_ext in '' $ac_executable_extensions; do
1776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1778        ac_prog_rejected=yes
1779        continue
1780      fi
1781     ac_cv_prog_CC="cc"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 if test $ac_prog_rejected = yes; then
1789   # We found a bogon in the path, so make sure we never use it.
1790   set dummy $ac_cv_prog_CC
1791   shift
1792   if test $# != 0; then
1793     # We chose a different compiler from the bogus one.
1794     # However, it has the same basename, so the bogon will be chosen
1795     # first if we set CC to just the basename; use the full file name.
1796     shift
1797     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1798   fi
1799 fi
1800 fi
1801 fi
1802 CC=$ac_cv_prog_CC
1803 if test -n "$CC"; then
1804   echo "$as_me:$LINENO: result: $CC" >&5
1805 echo "${ECHO_T}$CC" >&6
1806 else
1807   echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809 fi
1810
1811 fi
1812 if test -z "$CC"; then
1813   if test -n "$ac_tool_prefix"; then
1814   for ac_prog in cl
1815   do
1816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   if test -n "$CC"; then
1824   ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   for ac_exec_ext in '' $ac_executable_extensions; do
1832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835     break 2
1836   fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844   echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847   echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851     test -n "$CC" && break
1852   done
1853 fi
1854 if test -z "$CC"; then
1855   ac_ct_CC=$CC
1856   for ac_prog in cl
1857 do
1858   # Extract the first word of "$ac_prog", so it can be a program name with args.
1859 set dummy $ac_prog; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_CC"; then
1866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_CC="$ac_prog"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   test -n "$ac_ct_CC" && break
1894 done
1895
1896   CC=$ac_ct_CC
1897 fi
1898
1899 fi
1900
1901
1902 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: no acceptable C compiler found in \$PATH
1905 See \`config.log' for more details." >&2;}
1906    { (exit 1); exit 1; }; }
1907
1908 # Provide some information about the compiler.
1909 echo "$as_me:$LINENO:" \
1910      "checking for C compiler version" >&5
1911 ac_compiler=`set X $ac_compile; echo $2`
1912 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1913   (eval $ac_compiler --version </dev/null >&5) 2>&5
1914   ac_status=$?
1915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916   (exit $ac_status); }
1917 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1918   (eval $ac_compiler -v </dev/null >&5) 2>&5
1919   ac_status=$?
1920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921   (exit $ac_status); }
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1923   (eval $ac_compiler -V </dev/null >&5) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }
1927
1928 cat >conftest.$ac_ext <<_ACEOF
1929 /* confdefs.h.  */
1930 _ACEOF
1931 cat confdefs.h >>conftest.$ac_ext
1932 cat >>conftest.$ac_ext <<_ACEOF
1933 /* end confdefs.h.  */
1934
1935 int
1936 main ()
1937 {
1938
1939   ;
1940   return 0;
1941 }
1942 _ACEOF
1943 ac_clean_files_save=$ac_clean_files
1944 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1945 # Try to create an executable without -o first, disregard a.out.
1946 # It will help us diagnose broken compilers, and finding out an intuition
1947 # of exeext.
1948 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1949 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1950 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1951 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1952   (eval $ac_link_default) 2>&5
1953   ac_status=$?
1954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955   (exit $ac_status); }; then
1956   # Find the output, starting from the most likely.  This scheme is
1957 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1958 # resort.
1959
1960 # Be careful to initialize this variable, since it used to be cached.
1961 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1962 ac_cv_exeext=
1963 # b.out is created by i960 compilers.
1964 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1965 do
1966   test -f "$ac_file" || continue
1967   case $ac_file in
1968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1969         ;;
1970     conftest.$ac_ext )
1971         # This is the source file.
1972         ;;
1973     [ab].out )
1974         # We found the default executable, but exeext='' is most
1975         # certainly right.
1976         break;;
1977     *.* )
1978         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979         # FIXME: I believe we export ac_cv_exeext for Libtool,
1980         # but it would be cool to find out if it's true.  Does anybody
1981         # maintain Libtool? --akim.
1982         export ac_cv_exeext
1983         break;;
1984     * )
1985         break;;
1986   esac
1987 done
1988 else
1989   echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: C compiler cannot create executables
1995 See \`config.log' for more details." >&2;}
1996    { (exit 77); exit 77; }; }
1997 fi
1998
1999 ac_exeext=$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_file" >&5
2001 echo "${ECHO_T}$ac_file" >&6
2002
2003 # Check the compiler produces executables we can run.  If not, either
2004 # the compiler is broken, or we cross compile.
2005 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2006 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2007 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2008 # If not cross compiling, check that we can run a simple program.
2009 if test "$cross_compiling" != yes; then
2010   if { ac_try='./$ac_file'
2011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012   (eval $ac_try) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }; }; then
2016     cross_compiling=no
2017   else
2018     if test "$cross_compiling" = maybe; then
2019         cross_compiling=yes
2020     else
2021         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2022 If you meant to cross compile, use \`--host'.
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: cannot run C compiled programs.
2025 If you meant to cross compile, use \`--host'.
2026 See \`config.log' for more details." >&2;}
2027    { (exit 1); exit 1; }; }
2028     fi
2029   fi
2030 fi
2031 echo "$as_me:$LINENO: result: yes" >&5
2032 echo "${ECHO_T}yes" >&6
2033
2034 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2035 ac_clean_files=$ac_clean_files_save
2036 # Check the compiler produces executables we can run.  If not, either
2037 # the compiler is broken, or we cross compile.
2038 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2039 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2040 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2041 echo "${ECHO_T}$cross_compiling" >&6
2042
2043 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2044 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2046   (eval $ac_link) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }; then
2050   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2051 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2052 # work properly (i.e., refer to `conftest.exe'), while it won't with
2053 # `rm'.
2054 for ac_file in conftest.exe conftest conftest.*; do
2055   test -f "$ac_file" || continue
2056   case $ac_file in
2057     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2058     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059           export ac_cv_exeext
2060           break;;
2061     * ) break;;
2062   esac
2063 done
2064 else
2065   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2068 See \`config.log' for more details." >&2;}
2069    { (exit 1); exit 1; }; }
2070 fi
2071
2072 rm -f conftest$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074 echo "${ECHO_T}$ac_cv_exeext" >&6
2075
2076 rm -f conftest.$ac_ext
2077 EXEEXT=$ac_cv_exeext
2078 ac_exeext=$EXEEXT
2079 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081 if test "${ac_cv_objext+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   cat >conftest.$ac_ext <<_ACEOF
2085 /* confdefs.h.  */
2086 _ACEOF
2087 cat confdefs.h >>conftest.$ac_ext
2088 cat >>conftest.$ac_ext <<_ACEOF
2089 /* end confdefs.h.  */
2090
2091 int
2092 main ()
2093 {
2094
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 rm -f conftest.o conftest.obj
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101   (eval $ac_compile) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; then
2105   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2106   case $ac_file in
2107     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2108     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2109        break;;
2110   esac
2111 done
2112 else
2113   echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2119 See \`config.log' for more details." >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124 fi
2125 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126 echo "${ECHO_T}$ac_cv_objext" >&6
2127 OBJEXT=$ac_cv_objext
2128 ac_objext=$OBJEXT
2129 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   cat >conftest.$ac_ext <<_ACEOF
2135 /* confdefs.h.  */
2136 _ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h.  */
2140
2141 int
2142 main ()
2143 {
2144 #ifndef __GNUC__
2145        choke me
2146 #endif
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154   (eval $ac_compile) 2>conftest.er1
2155   ac_status=$?
2156   grep -v '^ *+' conftest.er1 >conftest.err
2157   rm -f conftest.er1
2158   cat conftest.err >&5
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); } &&
2161          { ac_try='test -z "$ac_c_werror_flag"
2162                          || test ! -s conftest.err'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; } &&
2168          { ac_try='test -s conftest.$ac_objext'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; }; then
2174   ac_compiler_gnu=yes
2175 else
2176   echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 ac_compiler_gnu=no
2180 fi
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2183
2184 fi
2185 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2186 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2187 GCC=`test $ac_compiler_gnu = yes && echo yes`
2188 ac_test_CFLAGS=${CFLAGS+set}
2189 ac_save_CFLAGS=$CFLAGS
2190 CFLAGS="-g"
2191 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2192 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2193 if test "${ac_cv_prog_cc_g+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202
2203 int
2204 main ()
2205 {
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213   (eval $ac_compile) 2>conftest.er1
2214   ac_status=$?
2215   grep -v '^ *+' conftest.er1 >conftest.err
2216   rm -f conftest.er1
2217   cat conftest.err >&5
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); } &&
2220          { ac_try='test -z "$ac_c_werror_flag"
2221                          || test ! -s conftest.err'
2222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223   (eval $ac_try) 2>&5
2224   ac_status=$?
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); }; } &&
2227          { ac_try='test -s conftest.$ac_objext'
2228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229   (eval $ac_try) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; }; then
2233   ac_cv_prog_cc_g=yes
2234 else
2235   echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238 ac_cv_prog_cc_g=no
2239 fi
2240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241 fi
2242 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2244 if test "$ac_test_CFLAGS" = set; then
2245   CFLAGS=$ac_save_CFLAGS
2246 elif test $ac_cv_prog_cc_g = yes; then
2247   if test "$GCC" = yes; then
2248     CFLAGS="-g -O2"
2249   else
2250     CFLAGS="-g"
2251   fi
2252 else
2253   if test "$GCC" = yes; then
2254     CFLAGS="-O2"
2255   else
2256     CFLAGS=
2257   fi
2258 fi
2259 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2260 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2262   echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264   ac_cv_prog_cc_stdc=no
2265 ac_save_CC=$CC
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272 #include <stdarg.h>
2273 #include <stdio.h>
2274 #include <sys/types.h>
2275 #include <sys/stat.h>
2276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2277 struct buf { int x; };
2278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2279 static char *e (p, i)
2280      char **p;
2281      int i;
2282 {
2283   return p[i];
2284 }
2285 static char *f (char * (*g) (char **, int), char **p, ...)
2286 {
2287   char *s;
2288   va_list v;
2289   va_start (v,p);
2290   s = g (p, va_arg (v,int));
2291   va_end (v);
2292   return s;
2293 }
2294
2295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2296    function prototypes and stuff, but not '\xHH' hex character constants.
2297    These don't provoke an error unfortunately, instead are silently treated
2298    as 'x'.  The following induces an error, until -std1 is added to get
2299    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2300    array size at least.  It's necessary to write '\x00'==0 to get something
2301    that's true only with -std1.  */
2302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2303
2304 int test (int i, double x);
2305 struct s1 {int (*f) (int a);};
2306 struct s2 {int (*f) (double a);};
2307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2308 int argc;
2309 char **argv;
2310 int
2311 main ()
2312 {
2313 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 # Don't try gcc -ansi; that turns off useful extensions and
2319 # breaks some systems' header files.
2320 # AIX                   -qlanglvl=ansi
2321 # Ultrix and OSF/1      -std1
2322 # HP-UX 10.20 and later -Ae
2323 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2324 # SVR4                  -Xc -D__EXTENSIONS__
2325 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2326 do
2327   CC="$ac_save_CC $ac_arg"
2328   rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330   (eval $ac_compile) 2>conftest.er1
2331   ac_status=$?
2332   grep -v '^ *+' conftest.er1 >conftest.err
2333   rm -f conftest.er1
2334   cat conftest.err >&5
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); } &&
2337          { ac_try='test -z "$ac_c_werror_flag"
2338                          || test ! -s conftest.err'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; } &&
2344          { ac_try='test -s conftest.$ac_objext'
2345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346   (eval $ac_try) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; }; then
2350   ac_cv_prog_cc_stdc=$ac_arg
2351 break
2352 else
2353   echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 fi
2357 rm -f conftest.err conftest.$ac_objext
2358 done
2359 rm -f conftest.$ac_ext conftest.$ac_objext
2360 CC=$ac_save_CC
2361
2362 fi
2363
2364 case "x$ac_cv_prog_cc_stdc" in
2365   x|xno)
2366     echo "$as_me:$LINENO: result: none needed" >&5
2367 echo "${ECHO_T}none needed" >&6 ;;
2368   *)
2369     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2370 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2371     CC="$CC $ac_cv_prog_cc_stdc" ;;
2372 esac
2373
2374 # Some people use a C++ compiler to compile C.  Since we use `exit',
2375 # in C++ we need to declare it.  In case someone uses the same compiler
2376 # for both compiling C and C++ we need to have the C++ compiler decide
2377 # the declaration of exit, since it's the most demanding environment.
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #ifndef __cplusplus
2380   choke me
2381 #endif
2382 _ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385   (eval $ac_compile) 2>conftest.er1
2386   ac_status=$?
2387   grep -v '^ *+' conftest.er1 >conftest.err
2388   rm -f conftest.er1
2389   cat conftest.err >&5
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -z "$ac_c_werror_flag"
2393                          || test ! -s conftest.err'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; } &&
2399          { ac_try='test -s conftest.$ac_objext'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   for ac_declaration in \
2406    '' \
2407    'extern "C" void std::exit (int) throw (); using std::exit;' \
2408    'extern "C" void std::exit (int); using std::exit;' \
2409    'extern "C" void exit (int) throw ();' \
2410    'extern "C" void exit (int);' \
2411    'void exit (int);'
2412 do
2413   cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h.  */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h.  */
2419 $ac_declaration
2420 #include <stdlib.h>
2421 int
2422 main ()
2423 {
2424 exit (42);
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431   (eval $ac_compile) 2>conftest.er1
2432   ac_status=$?
2433   grep -v '^ *+' conftest.er1 >conftest.err
2434   rm -f conftest.er1
2435   cat conftest.err >&5
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -z "$ac_c_werror_flag"
2439                          || test ! -s conftest.err'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   :
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 continue
2457 fi
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459   cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465 $ac_declaration
2466 int
2467 main ()
2468 {
2469 exit (42);
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476   (eval $ac_compile) 2>conftest.er1
2477   ac_status=$?
2478   grep -v '^ *+' conftest.er1 >conftest.err
2479   rm -f conftest.er1
2480   cat conftest.err >&5
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -z "$ac_c_werror_flag"
2484                          || test ! -s conftest.err'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; } &&
2490          { ac_try='test -s conftest.$ac_objext'
2491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492   (eval $ac_try) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; }; then
2496   break
2497 else
2498   echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500
2501 fi
2502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503 done
2504 rm -f conftest*
2505 if test -n "$ac_declaration"; then
2506   echo '#ifdef __cplusplus' >>confdefs.h
2507   echo $ac_declaration      >>confdefs.h
2508   echo '#endif'             >>confdefs.h
2509 fi
2510
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 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
2524 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2525 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2526 if test "${ac_cv_search_strerror+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   ac_func_search_save_LIBS=$LIBS
2530 ac_cv_search_strerror=no
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 /* Override any gcc2 internal prototype to avoid an error.  */
2539 #ifdef __cplusplus
2540 extern "C"
2541 #endif
2542 /* We use char because int might match the return type of a gcc2
2543    builtin and then its argument prototype would still apply.  */
2544 char strerror ();
2545 int
2546 main ()
2547 {
2548 strerror ();
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.$ac_objext conftest$ac_exeext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2555   (eval $ac_link) 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
2559   cat conftest.err >&5
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -z "$ac_c_werror_flag"
2563                          || test ! -s conftest.err'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest$ac_exeext'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   ac_cv_search_strerror="none required"
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 fi
2581 rm -f conftest.err conftest.$ac_objext \
2582       conftest$ac_exeext conftest.$ac_ext
2583 if test "$ac_cv_search_strerror" = no; then
2584   for ac_lib in cposix; do
2585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2586     cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 /* Override any gcc2 internal prototype to avoid an error.  */
2594 #ifdef __cplusplus
2595 extern "C"
2596 #endif
2597 /* We use char because int might match the return type of a gcc2
2598    builtin and then its argument prototype would still apply.  */
2599 char strerror ();
2600 int
2601 main ()
2602 {
2603 strerror ();
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext conftest$ac_exeext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610   (eval $ac_link) 2>conftest.er1
2611   ac_status=$?
2612   grep -v '^ *+' conftest.er1 >conftest.err
2613   rm -f conftest.er1
2614   cat conftest.err >&5
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); } &&
2617          { ac_try='test -z "$ac_c_werror_flag"
2618                          || test ! -s conftest.err'
2619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620   (eval $ac_try) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; } &&
2624          { ac_try='test -s conftest$ac_exeext'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630   ac_cv_search_strerror="-l$ac_lib"
2631 break
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 fi
2637 rm -f conftest.err conftest.$ac_objext \
2638       conftest$ac_exeext conftest.$ac_ext
2639   done
2640 fi
2641 LIBS=$ac_func_search_save_LIBS
2642 fi
2643 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2644 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2645 if test "$ac_cv_search_strerror" != no; then
2646   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2647
2648 fi
2649
2650
2651 am__api_version="1.9"
2652 # Find a good install program.  We prefer a C program (faster),
2653 # so one script is as good as another.  But avoid the broken or
2654 # incompatible versions:
2655 # SysV /etc/install, /usr/sbin/install
2656 # SunOS /usr/etc/install
2657 # IRIX /sbin/install
2658 # AIX /bin/install
2659 # AmigaOS /C/install, which installs bootblocks on floppy discs
2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663 # OS/2's system install, which has a completely different semantic
2664 # ./install, which can be erroneously created by make from ./install.sh.
2665 # Reject install programs that cannot install multiple files.
2666 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2667 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2668 if test -z "$INSTALL"; then
2669 if test "${ac_cv_path_install+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677   # Account for people who put trailing slashes in PATH elements.
2678 case $as_dir/ in
2679   ./ | .// | /cC/* | \
2680   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2682   /usr/ucb/* ) ;;
2683   *)
2684     # OSF1 and SCO ODT 3.0 have their own names for install.
2685     # Don't use installbsd from OSF since it installs stuff as root
2686     # by default.
2687     for ac_prog in ginstall scoinst install; do
2688       for ac_exec_ext in '' $ac_executable_extensions; do
2689         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2690           if test $ac_prog = install &&
2691             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692             # AIX install.  It has an incompatible calling convention.
2693             :
2694           elif test $ac_prog = install &&
2695             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696             # program-specific install script used by HP pwplus--don't use.
2697             :
2698           else
2699             rm -rf conftest.one conftest.two conftest.dir
2700             echo one > conftest.one
2701             echo two > conftest.two
2702             mkdir conftest.dir
2703             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704               test -s conftest.one && test -s conftest.two &&
2705               test -s conftest.dir/conftest.one &&
2706               test -s conftest.dir/conftest.two
2707             then
2708               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2709               break 3
2710             fi
2711           fi
2712         fi
2713       done
2714     done
2715     ;;
2716 esac
2717 done
2718
2719 rm -rf conftest.one conftest.two conftest.dir
2720
2721 fi
2722   if test "${ac_cv_path_install+set}" = set; then
2723     INSTALL=$ac_cv_path_install
2724   else
2725     # As a last resort, use the slow shell script.  Don't cache a
2726     # value for INSTALL within a source directory, because that will
2727     # break other packages using the cache if that directory is
2728     # removed, or if the value is a relative name.
2729     INSTALL=$ac_install_sh
2730   fi
2731 fi
2732 echo "$as_me:$LINENO: result: $INSTALL" >&5
2733 echo "${ECHO_T}$INSTALL" >&6
2734
2735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2736 # It thinks the first close brace ends the variable substitution.
2737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2738
2739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2740
2741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2742
2743 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2744 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2745 # Just in case
2746 sleep 1
2747 echo timestamp > conftest.file
2748 # Do `set' in a subshell so we don't clobber the current shell's
2749 # arguments.  Must try -L first in case configure is actually a
2750 # symlink; some systems play weird games with the mod time of symlinks
2751 # (eg FreeBSD returns the mod time of the symlink's containing
2752 # directory).
2753 if (
2754    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2755    if test "$*" = "X"; then
2756       # -L didn't work.
2757       set X `ls -t $srcdir/configure conftest.file`
2758    fi
2759    rm -f conftest.file
2760    if test "$*" != "X $srcdir/configure conftest.file" \
2761       && test "$*" != "X conftest.file $srcdir/configure"; then
2762
2763       # If neither matched, then we have a broken ls.  This can happen
2764       # if, for instance, CONFIG_SHELL is bash and it inherits a
2765       # broken ls alias from the environment.  This has actually
2766       # happened.  Such a system could not be considered "sane".
2767       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2768 alias in your environment" >&5
2769 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2770 alias in your environment" >&2;}
2771    { (exit 1); exit 1; }; }
2772    fi
2773
2774    test "$2" = conftest.file
2775    )
2776 then
2777    # Ok.
2778    :
2779 else
2780    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2781 Check your system clock" >&5
2782 echo "$as_me: error: newly created file is older than distributed files!
2783 Check your system clock" >&2;}
2784    { (exit 1); exit 1; }; }
2785 fi
2786 echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788 test "$program_prefix" != NONE &&
2789   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2790 # Use a double $ so make ignores it.
2791 test "$program_suffix" != NONE &&
2792   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2793 # Double any \ or $.  echo might interpret backslashes.
2794 # By default was `s,x,x', remove it if useless.
2795 cat <<\_ACEOF >conftest.sed
2796 s/[\\$]/&&/g;s/;s,x,x,$//
2797 _ACEOF
2798 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2799 rm conftest.sed
2800
2801 # expand $ac_aux_dir to an absolute path
2802 am_aux_dir=`cd $ac_aux_dir && pwd`
2803
2804 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2805 # Use eval to expand $SHELL
2806 if eval "$MISSING --run true"; then
2807   am_missing_run="$MISSING --run "
2808 else
2809   am_missing_run=
2810   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2811 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2812 fi
2813
2814 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2815   # We used to keeping the `.' as first argument, in order to
2816   # allow $(mkdir_p) to be used without argument.  As in
2817   #   $(mkdir_p) $(somedir)
2818   # where $(somedir) is conditionally defined.  However this is wrong
2819   # for two reasons:
2820   #  1. if the package is installed by a user who cannot write `.'
2821   #     make install will fail,
2822   #  2. the above comment should most certainly read
2823   #     $(mkdir_p) $(DESTDIR)$(somedir)
2824   #     so it does not work when $(somedir) is undefined and
2825   #     $(DESTDIR) is not.
2826   #  To support the latter case, we have to write
2827   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2828   #  so the `.' trick is pointless.
2829   mkdir_p='mkdir -p --'
2830 else
2831   # On NextStep and OpenStep, the `mkdir' command does not
2832   # recognize any option.  It will interpret all options as
2833   # directories to create, and then abort because `.' already
2834   # exists.
2835   for d in ./-p ./--version;
2836   do
2837     test -d $d && rmdir $d
2838   done
2839   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2840   if test -f "$ac_aux_dir/mkinstalldirs"; then
2841     mkdir_p='$(mkinstalldirs)'
2842   else
2843     mkdir_p='$(install_sh) -d'
2844   fi
2845 fi
2846
2847 for ac_prog in gawk mawk nawk awk
2848 do
2849   # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_AWK+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$AWK"; then
2857   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866     ac_cv_prog_AWK="$ac_prog"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872
2873 fi
2874 fi
2875 AWK=$ac_cv_prog_AWK
2876 if test -n "$AWK"; then
2877   echo "$as_me:$LINENO: result: $AWK" >&5
2878 echo "${ECHO_T}$AWK" >&6
2879 else
2880   echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2882 fi
2883
2884   test -n "$AWK" && break
2885 done
2886
2887 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2888 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2889 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2890 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   cat >conftest.make <<\_ACEOF
2894 all:
2895         @echo 'ac_maketemp="$(MAKE)"'
2896 _ACEOF
2897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2898 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2899 if test -n "$ac_maketemp"; then
2900   eval ac_cv_prog_make_${ac_make}_set=yes
2901 else
2902   eval ac_cv_prog_make_${ac_make}_set=no
2903 fi
2904 rm -f conftest.make
2905 fi
2906 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2907   echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6
2909   SET_MAKE=
2910 else
2911   echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2913   SET_MAKE="MAKE=${MAKE-make}"
2914 fi
2915
2916 rm -rf .tst 2>/dev/null
2917 mkdir .tst 2>/dev/null
2918 if test -d .tst; then
2919   am__leading_dot=.
2920 else
2921   am__leading_dot=_
2922 fi
2923 rmdir .tst 2>/dev/null
2924
2925 DEPDIR="${am__leading_dot}deps"
2926
2927           ac_config_commands="$ac_config_commands depfiles"
2928
2929
2930 am_make=${MAKE-make}
2931 cat > confinc << 'END'
2932 am__doit:
2933         @echo done
2934 .PHONY: am__doit
2935 END
2936 # If we don't find an include directive, just comment out the code.
2937 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2938 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2939 am__include="#"
2940 am__quote=
2941 _am_result=none
2942 # First try GNU make style include.
2943 echo "include confinc" > confmf
2944 # We grep out `Entering directory' and `Leaving directory'
2945 # messages which can occur if `w' ends up in MAKEFLAGS.
2946 # In particular we don't look at `^make:' because GNU make might
2947 # be invoked under some other name (usually "gmake"), in which
2948 # case it prints its new name instead of `make'.
2949 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2950    am__include=include
2951    am__quote=
2952    _am_result=GNU
2953 fi
2954 # Now try BSD make style include.
2955 if test "$am__include" = "#"; then
2956    echo '.include "confinc"' > confmf
2957    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2958       am__include=.include
2959       am__quote="\""
2960       _am_result=BSD
2961    fi
2962 fi
2963
2964
2965 echo "$as_me:$LINENO: result: $_am_result" >&5
2966 echo "${ECHO_T}$_am_result" >&6
2967 rm -f confinc confmf
2968
2969 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2970 if test "${enable_dependency_tracking+set}" = set; then
2971   enableval="$enable_dependency_tracking"
2972
2973 fi;
2974 if test "x$enable_dependency_tracking" != xno; then
2975   am_depcomp="$ac_aux_dir/depcomp"
2976   AMDEPBACKSLASH='\'
2977 fi
2978
2979
2980 if test "x$enable_dependency_tracking" != xno; then
2981   AMDEP_TRUE=
2982   AMDEP_FALSE='#'
2983 else
2984   AMDEP_TRUE='#'
2985   AMDEP_FALSE=
2986 fi
2987
2988
2989
2990 # test to see if srcdir already configured
2991 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2992    test -f $srcdir/config.status; then
2993   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2994 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2995    { (exit 1); exit 1; }; }
2996 fi
2997
2998 # test whether we have cygpath
2999 if test -z "$CYGPATH_W"; then
3000   if (cygpath --version) >/dev/null 2>/dev/null; then
3001     CYGPATH_W='cygpath -w'
3002   else
3003     CYGPATH_W=echo
3004   fi
3005 fi
3006
3007
3008 # Define the identity of the package.
3009  PACKAGE=bfd
3010  VERSION=2.18.50
3011
3012
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE "$PACKAGE"
3015 _ACEOF
3016
3017
3018 cat >>confdefs.h <<_ACEOF
3019 #define VERSION "$VERSION"
3020 _ACEOF
3021
3022 # Some tools Automake needs.
3023
3024 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3025
3026
3027 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3028
3029
3030 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3031
3032
3033 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3034
3035
3036 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3037
3038 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3039
3040 # Installed binaries are usually stripped using `strip' when the user
3041 # run `make install-strip'.  However `strip' might not be the right
3042 # tool to use in cross-compilation environments, therefore Automake
3043 # will honor the `STRIP' environment variable to overrule this program.
3044 if test "$cross_compiling" != no; then
3045   if test -n "$ac_tool_prefix"; then
3046   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}strip; ac_word=$2
3048 echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3050 if test "${ac_cv_prog_STRIP+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   if test -n "$STRIP"; then
3054   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061   for ac_exec_ext in '' $ac_executable_extensions; do
3062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065     break 2
3066   fi
3067 done
3068 done
3069
3070 fi
3071 fi
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074   echo "$as_me:$LINENO: result: $STRIP" >&5
3075 echo "${ECHO_T}$STRIP" >&6
3076 else
3077   echo "$as_me:$LINENO: result: no" >&5
3078 echo "${ECHO_T}no" >&6
3079 fi
3080
3081 fi
3082 if test -z "$ac_cv_prog_STRIP"; then
3083   ac_ct_STRIP=$STRIP
3084   # Extract the first word of "strip", so it can be a program name with args.
3085 set dummy strip; ac_word=$2
3086 echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   if test -n "$ac_ct_STRIP"; then
3092   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099   for ac_exec_ext in '' $ac_executable_extensions; do
3100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101     ac_cv_prog_ac_ct_STRIP="strip"
3102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106 done
3107
3108   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3109 fi
3110 fi
3111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112 if test -n "$ac_ct_STRIP"; then
3113   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3114 echo "${ECHO_T}$ac_ct_STRIP" >&6
3115 else
3116   echo "$as_me:$LINENO: result: no" >&5
3117 echo "${ECHO_T}no" >&6
3118 fi
3119
3120   STRIP=$ac_ct_STRIP
3121 else
3122   STRIP="$ac_cv_prog_STRIP"
3123 fi
3124
3125 fi
3126 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3127
3128 # We need awk for the "check" target.  The system "awk" is bad on
3129 # some platforms.
3130 # Always define AMTAR for backward compatibility.
3131
3132 AMTAR=${AMTAR-"${am_missing_run}tar"}
3133
3134 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3135
3136
3137
3138
3139 depcc="$CC"   am_compiler_list=
3140
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147   # We make a subdir and do the tests there.  Otherwise we can end up
3148   # making bogus files that we don't know about and never remove.  For
3149   # instance it was reported that on HP-UX the gcc test will end up
3150   # making a dummy file named `D' -- because `-MD' means `put the output
3151   # in D'.
3152   mkdir conftest.dir
3153   # Copy depcomp to subdir because otherwise we won't find it if we're
3154   # using a relative directory.
3155   cp "$am_depcomp" conftest.dir
3156   cd conftest.dir
3157   # We will build objects and dependencies in a subdirectory because
3158   # it helps to detect inapplicable dependency modes.  For instance
3159   # both Tru64's cc and ICC support -MD to output dependencies as a
3160   # side effect of compilation, but ICC will put the dependencies in
3161   # the current directory while Tru64 will put them in the object
3162   # directory.
3163   mkdir sub
3164
3165   am_cv_CC_dependencies_compiler_type=none
3166   if test "$am_compiler_list" = ""; then
3167      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3168   fi
3169   for depmode in $am_compiler_list; do
3170     # Setup a source with many dependencies, because some compilers
3171     # like to wrap large dependency lists on column 80 (with \), and
3172     # we should not choose a depcomp mode which is confused by this.
3173     #
3174     # We need to recreate these files for each test, as the compiler may
3175     # overwrite some of them when testing with obscure command lines.
3176     # This happens at least with the AIX C compiler.
3177     : > sub/conftest.c
3178     for i in 1 2 3 4 5 6; do
3179       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181       # Solaris 8's {/usr,}/bin/sh.
3182       touch sub/conftst$i.h
3183     done
3184     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3185
3186     case $depmode in
3187     nosideeffect)
3188       # after this tag, mechanisms are not by side-effect, so they'll
3189       # only be used when explicitly requested
3190       if test "x$enable_dependency_tracking" = xyes; then
3191         continue
3192       else
3193         break
3194       fi
3195       ;;
3196     none) break ;;
3197     esac
3198     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199     # mode.  It turns out that the SunPro C++ compiler does not properly
3200     # handle `-M -o', and we need to detect this.
3201     if depmode=$depmode \
3202        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205          >/dev/null 2>conftest.err &&
3206        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209       # icc doesn't choke on unknown options, it will just issue warnings
3210       # or remarks (even with -Werror).  So we grep stderr for any message
3211       # that says an option was ignored or not supported.
3212       # When given -MP, icc 7.0 and 7.1 complain thusly:
3213       #   icc: Command line warning: ignoring option '-M'; no argument required
3214       # The diagnosis changed in icc 8.0:
3215       #   icc: Command line remark: option '-MP' not supported
3216       if (grep 'ignoring option' conftest.err ||
3217           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218         am_cv_CC_dependencies_compiler_type=$depmode
3219         break
3220       fi
3221     fi
3222   done
3223
3224   cd ..
3225   rm -rf conftest.dir
3226 else
3227   am_cv_CC_dependencies_compiler_type=none
3228 fi
3229
3230 fi
3231 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3234
3235
3236
3237 if
3238   test "x$enable_dependency_tracking" != xno \
3239   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3240   am__fastdepCC_TRUE=
3241   am__fastdepCC_FALSE='#'
3242 else
3243   am__fastdepCC_TRUE='#'
3244   am__fastdepCC_FALSE=
3245 fi
3246
3247
3248
3249
3250 if test -n "$ac_tool_prefix"; then
3251   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}ar; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_AR+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   if test -n "$AR"; then
3259   ac_cv_prog_AR="$AR" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268     ac_cv_prog_AR="${ac_tool_prefix}ar"
3269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273 done
3274
3275 fi
3276 fi
3277 AR=$ac_cv_prog_AR
3278 if test -n "$AR"; then
3279   echo "$as_me:$LINENO: result: $AR" >&5
3280 echo "${ECHO_T}$AR" >&6
3281 else
3282   echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3284 fi
3285
3286 fi
3287 if test -z "$ac_cv_prog_AR"; then
3288   ac_ct_AR=$AR
3289   # Extract the first word of "ar", so it can be a program name with args.
3290 set dummy ar; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296   if test -n "$ac_ct_AR"; then
3297   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304   for ac_exec_ext in '' $ac_executable_extensions; do
3305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306     ac_cv_prog_ac_ct_AR="ar"
3307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311 done
3312
3313 fi
3314 fi
3315 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3316 if test -n "$ac_ct_AR"; then
3317   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3318 echo "${ECHO_T}$ac_ct_AR" >&6
3319 else
3320   echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6
3322 fi
3323
3324   AR=$ac_ct_AR
3325 else
3326   AR="$ac_cv_prog_AR"
3327 fi
3328
3329 if test -n "$ac_tool_prefix"; then
3330   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_RANLIB+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if test -n "$RANLIB"; then
3338   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345   for ac_exec_ext in '' $ac_executable_extensions; do
3346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352 done
3353
3354 fi
3355 fi
3356 RANLIB=$ac_cv_prog_RANLIB
3357 if test -n "$RANLIB"; then
3358   echo "$as_me:$LINENO: result: $RANLIB" >&5
3359 echo "${ECHO_T}$RANLIB" >&6
3360 else
3361   echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363 fi
3364
3365 fi
3366 if test -z "$ac_cv_prog_RANLIB"; then
3367   ac_ct_RANLIB=$RANLIB
3368   # Extract the first word of "ranlib", so it can be a program name with args.
3369 set dummy ranlib; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   if test -n "$ac_ct_RANLIB"; then
3376   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383   for ac_exec_ext in '' $ac_executable_extensions; do
3384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385     ac_cv_prog_ac_ct_RANLIB="ranlib"
3386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390 done
3391
3392   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3393 fi
3394 fi
3395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3396 if test -n "$ac_ct_RANLIB"; then
3397   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3398 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3399 else
3400   echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi
3403
3404   RANLIB=$ac_ct_RANLIB
3405 else
3406   RANLIB="$ac_cv_prog_RANLIB"
3407 fi
3408
3409
3410 # Check whether --enable-shared or --disable-shared was given.
3411 if test "${enable_shared+set}" = set; then
3412   enableval="$enable_shared"
3413   p=${PACKAGE-default}
3414     case $enableval in
3415     yes) enable_shared=yes ;;
3416     no) enable_shared=no ;;
3417     *)
3418       enable_shared=no
3419       # Look at the argument we got.  We use all the common list separators.
3420       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3421       for pkg in $enableval; do
3422         IFS="$lt_save_ifs"
3423         if test "X$pkg" = "X$p"; then
3424           enable_shared=yes
3425         fi
3426       done
3427       IFS="$lt_save_ifs"
3428       ;;
3429     esac
3430 else
3431   enable_shared=no
3432 fi;
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 if test -n "$ac_tool_prefix"; then
3448   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_CC+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   if test -n "$CC"; then
3456   ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463   for ac_exec_ext in '' $ac_executable_extensions; do
3464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470 done
3471
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 "$ac_cv_prog_CC"; then
3485   ac_ct_CC=$CC
3486   # Extract the first word of "gcc", so it can be a program name with args.
3487 set dummy gcc; ac_word=$2
3488 echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   if test -n "$ac_ct_CC"; then
3494   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499   IFS=$as_save_IFS
3500   test -z "$as_dir" && as_dir=.
3501   for ac_exec_ext in '' $ac_executable_extensions; do
3502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503     ac_cv_prog_ac_ct_CC="gcc"
3504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505     break 2
3506   fi
3507 done
3508 done
3509
3510 fi
3511 fi
3512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3513 if test -n "$ac_ct_CC"; then
3514   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3515 echo "${ECHO_T}$ac_ct_CC" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519 fi
3520
3521   CC=$ac_ct_CC
3522 else
3523   CC="$ac_cv_prog_CC"
3524 fi
3525
3526 if test -z "$CC"; then
3527   if test -n "$ac_tool_prefix"; then
3528   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3529 set dummy ${ac_tool_prefix}cc; ac_word=$2
3530 echo "$as_me:$LINENO: checking for $ac_word" >&5
3531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3532 if test "${ac_cv_prog_CC+set}" = set; then
3533   echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535   if test -n "$CC"; then
3536   ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543   for ac_exec_ext in '' $ac_executable_extensions; do
3544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545     ac_cv_prog_CC="${ac_tool_prefix}cc"
3546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547     break 2
3548   fi
3549 done
3550 done
3551
3552 fi
3553 fi
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556   echo "$as_me:$LINENO: result: $CC" >&5
3557 echo "${ECHO_T}$CC" >&6
3558 else
3559   echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3561 fi
3562
3563 fi
3564 if test -z "$ac_cv_prog_CC"; then
3565   ac_ct_CC=$CC
3566   # Extract the first word of "cc", so it can be a program name with args.
3567 set dummy cc; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573   if test -n "$ac_ct_CC"; then
3574   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581   for ac_exec_ext in '' $ac_executable_extensions; do
3582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583     ac_cv_prog_ac_ct_CC="cc"
3584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585     break 2
3586   fi
3587 done
3588 done
3589
3590 fi
3591 fi
3592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3593 if test -n "$ac_ct_CC"; then
3594   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3595 echo "${ECHO_T}$ac_ct_CC" >&6
3596 else
3597   echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601   CC=$ac_ct_CC
3602 else
3603   CC="$ac_cv_prog_CC"
3604 fi
3605
3606 fi
3607 if test -z "$CC"; then
3608   # Extract the first word of "cc", so it can be a program name with args.
3609 set dummy cc; ac_word=$2
3610 echo "$as_me:$LINENO: checking for $ac_word" >&5
3611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3612 if test "${ac_cv_prog_CC+set}" = set; then
3613   echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615   if test -n "$CC"; then
3616   ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618   ac_prog_rejected=no
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622   IFS=$as_save_IFS
3623   test -z "$as_dir" && as_dir=.
3624   for ac_exec_ext in '' $ac_executable_extensions; do
3625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3627        ac_prog_rejected=yes
3628        continue
3629      fi
3630     ac_cv_prog_CC="cc"
3631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632     break 2
3633   fi
3634 done
3635 done
3636
3637 if test $ac_prog_rejected = yes; then
3638   # We found a bogon in the path, so make sure we never use it.
3639   set dummy $ac_cv_prog_CC
3640   shift
3641   if test $# != 0; then
3642     # We chose a different compiler from the bogus one.
3643     # However, it has the same basename, so the bogon will be chosen
3644     # first if we set CC to just the basename; use the full file name.
3645     shift
3646     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3647   fi
3648 fi
3649 fi
3650 fi
3651 CC=$ac_cv_prog_CC
3652 if test -n "$CC"; then
3653   echo "$as_me:$LINENO: result: $CC" >&5
3654 echo "${ECHO_T}$CC" >&6
3655 else
3656   echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3658 fi
3659
3660 fi
3661 if test -z "$CC"; then
3662   if test -n "$ac_tool_prefix"; then
3663   for ac_prog in cl
3664   do
3665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_prog_CC+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   if test -n "$CC"; then
3673   ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680   for ac_exec_ext in '' $ac_executable_extensions; do
3681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687 done
3688
3689 fi
3690 fi
3691 CC=$ac_cv_prog_CC
3692 if test -n "$CC"; then
3693   echo "$as_me:$LINENO: result: $CC" >&5
3694 echo "${ECHO_T}$CC" >&6
3695 else
3696   echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3698 fi
3699
3700     test -n "$CC" && break
3701   done
3702 fi
3703 if test -z "$CC"; then
3704   ac_ct_CC=$CC
3705   for ac_prog in cl
3706 do
3707   # Extract the first word of "$ac_prog", so it can be a program name with args.
3708 set dummy $ac_prog; ac_word=$2
3709 echo "$as_me:$LINENO: checking for $ac_word" >&5
3710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   if test -n "$ac_ct_CC"; then
3715   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720   IFS=$as_save_IFS
3721   test -z "$as_dir" && as_dir=.
3722   for ac_exec_ext in '' $ac_executable_extensions; do
3723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724     ac_cv_prog_ac_ct_CC="$ac_prog"
3725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726     break 2
3727   fi
3728 done
3729 done
3730
3731 fi
3732 fi
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3736 echo "${ECHO_T}$ac_ct_CC" >&6
3737 else
3738   echo "$as_me:$LINENO: result: no" >&5
3739 echo "${ECHO_T}no" >&6
3740 fi
3741
3742   test -n "$ac_ct_CC" && break
3743 done
3744
3745   CC=$ac_ct_CC
3746 fi
3747
3748 fi
3749
3750
3751 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3752 See \`config.log' for more details." >&5
3753 echo "$as_me: error: no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details." >&2;}
3755    { (exit 1); exit 1; }; }
3756
3757 # Provide some information about the compiler.
3758 echo "$as_me:$LINENO:" \
3759      "checking for C compiler version" >&5
3760 ac_compiler=`set X $ac_compile; echo $2`
3761 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3762   (eval $ac_compiler --version </dev/null >&5) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }
3766 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3767   (eval $ac_compiler -v </dev/null >&5) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); }
3771 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3772   (eval $ac_compiler -V </dev/null >&5) 2>&5
3773   ac_status=$?
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); }
3776
3777 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3778 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3779 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h.  */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h.  */
3788
3789 int
3790 main ()
3791 {
3792 #ifndef __GNUC__
3793        choke me
3794 #endif
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802   (eval $ac_compile) 2>conftest.er1
3803   ac_status=$?
3804   grep -v '^ *+' conftest.er1 >conftest.err
3805   rm -f conftest.er1
3806   cat conftest.err >&5
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } &&
3809          { ac_try='test -z "$ac_c_werror_flag"
3810                          || test ! -s conftest.err'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   ac_compiler_gnu=yes
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 ac_compiler_gnu=no
3828 fi
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831
3832 fi
3833 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3834 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3835 GCC=`test $ac_compiler_gnu = yes && echo yes`
3836 ac_test_CFLAGS=${CFLAGS+set}
3837 ac_save_CFLAGS=$CFLAGS
3838 CFLAGS="-g"
3839 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3840 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3841 if test "${ac_cv_prog_cc_g+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850
3851 int
3852 main ()
3853 {
3854
3855   ;
3856   return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861   (eval $ac_compile) 2>conftest.er1
3862   ac_status=$?
3863   grep -v '^ *+' conftest.er1 >conftest.err
3864   rm -f conftest.er1
3865   cat conftest.err >&5
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); } &&
3868          { ac_try='test -z "$ac_c_werror_flag"
3869                          || test ! -s conftest.err'
3870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871   (eval $ac_try) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; } &&
3875          { ac_try='test -s conftest.$ac_objext'
3876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877   (eval $ac_try) 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); }; }; then
3881   ac_cv_prog_cc_g=yes
3882 else
3883   echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 ac_cv_prog_cc_g=no
3887 fi
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 fi
3890 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3891 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3892 if test "$ac_test_CFLAGS" = set; then
3893   CFLAGS=$ac_save_CFLAGS
3894 elif test $ac_cv_prog_cc_g = yes; then
3895   if test "$GCC" = yes; then
3896     CFLAGS="-g -O2"
3897   else
3898     CFLAGS="-g"
3899   fi
3900 else
3901   if test "$GCC" = yes; then
3902     CFLAGS="-O2"
3903   else
3904     CFLAGS=
3905   fi
3906 fi
3907 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3908 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3909 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   ac_cv_prog_cc_stdc=no
3913 ac_save_CC=$CC
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #include <stdarg.h>
3921 #include <stdio.h>
3922 #include <sys/types.h>
3923 #include <sys/stat.h>
3924 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3925 struct buf { int x; };
3926 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3927 static char *e (p, i)
3928      char **p;
3929      int i;
3930 {
3931   return p[i];
3932 }
3933 static char *f (char * (*g) (char **, int), char **p, ...)
3934 {
3935   char *s;
3936   va_list v;
3937   va_start (v,p);
3938   s = g (p, va_arg (v,int));
3939   va_end (v);
3940   return s;
3941 }
3942
3943 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3944    function prototypes and stuff, but not '\xHH' hex character constants.
3945    These don't provoke an error unfortunately, instead are silently treated
3946    as 'x'.  The following induces an error, until -std1 is added to get
3947    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3948    array size at least.  It's necessary to write '\x00'==0 to get something
3949    that's true only with -std1.  */
3950 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3951
3952 int test (int i, double x);
3953 struct s1 {int (*f) (int a);};
3954 struct s2 {int (*f) (double a);};
3955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3956 int argc;
3957 char **argv;
3958 int
3959 main ()
3960 {
3961 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 # Don't try gcc -ansi; that turns off useful extensions and
3967 # breaks some systems' header files.
3968 # AIX                   -qlanglvl=ansi
3969 # Ultrix and OSF/1      -std1
3970 # HP-UX 10.20 and later -Ae
3971 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3972 # SVR4                  -Xc -D__EXTENSIONS__
3973 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3974 do
3975   CC="$ac_save_CC $ac_arg"
3976   rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978   (eval $ac_compile) 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -z "$ac_c_werror_flag"
3986                          || test ! -s conftest.err'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; } &&
3992          { ac_try='test -s conftest.$ac_objext'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   ac_cv_prog_cc_stdc=$ac_arg
3999 break
4000 else
4001   echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 fi
4005 rm -f conftest.err conftest.$ac_objext
4006 done
4007 rm -f conftest.$ac_ext conftest.$ac_objext
4008 CC=$ac_save_CC
4009
4010 fi
4011
4012 case "x$ac_cv_prog_cc_stdc" in
4013   x|xno)
4014     echo "$as_me:$LINENO: result: none needed" >&5
4015 echo "${ECHO_T}none needed" >&6 ;;
4016   *)
4017     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4018 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4019     CC="$CC $ac_cv_prog_cc_stdc" ;;
4020 esac
4021
4022 # Some people use a C++ compiler to compile C.  Since we use `exit',
4023 # in C++ we need to declare it.  In case someone uses the same compiler
4024 # for both compiling C and C++ we need to have the C++ compiler decide
4025 # the declaration of exit, since it's the most demanding environment.
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #ifndef __cplusplus
4028   choke me
4029 #endif
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033   (eval $ac_compile) 2>conftest.er1
4034   ac_status=$?
4035   grep -v '^ *+' conftest.er1 >conftest.err
4036   rm -f conftest.er1
4037   cat conftest.err >&5
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } &&
4040          { ac_try='test -z "$ac_c_werror_flag"
4041                          || test ! -s conftest.err'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; } &&
4047          { ac_try='test -s conftest.$ac_objext'
4048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049   (eval $ac_try) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; }; then
4053   for ac_declaration in \
4054    '' \
4055    'extern "C" void std::exit (int) throw (); using std::exit;' \
4056    'extern "C" void std::exit (int); using std::exit;' \
4057    'extern "C" void exit (int) throw ();' \
4058    'extern "C" void exit (int);' \
4059    'void exit (int);'
4060 do
4061   cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067 $ac_declaration
4068 #include <stdlib.h>
4069 int
4070 main ()
4071 {
4072 exit (42);
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079   (eval $ac_compile) 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } &&
4086          { ac_try='test -z "$ac_c_werror_flag"
4087                          || test ! -s conftest.err'
4088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089   (eval $ac_try) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; } &&
4093          { ac_try='test -s conftest.$ac_objext'
4094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   :
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 continue
4105 fi
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107   cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 $ac_declaration
4114 int
4115 main ()
4116 {
4117 exit (42);
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 rm -f conftest.$ac_objext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124   (eval $ac_compile) 2>conftest.er1
4125   ac_status=$?
4126   grep -v '^ *+' conftest.er1 >conftest.err
4127   rm -f conftest.er1
4128   cat conftest.err >&5
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); } &&
4131          { ac_try='test -z "$ac_c_werror_flag"
4132                          || test ! -s conftest.err'
4133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134   (eval $ac_try) 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; } &&
4138          { ac_try='test -s conftest.$ac_objext'
4139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140   (eval $ac_try) 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }; }; then
4144   break
4145 else
4146   echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149 fi
4150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4151 done
4152 rm -f conftest*
4153 if test -n "$ac_declaration"; then
4154   echo '#ifdef __cplusplus' >>confdefs.h
4155   echo $ac_declaration      >>confdefs.h
4156   echo '#endif'             >>confdefs.h
4157 fi
4158
4159 else
4160   echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163 fi
4164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4165 ac_ext=c
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170
4171
4172 cat >>confdefs.h <<\_ACEOF
4173 #define _GNU_SOURCE 1
4174 _ACEOF
4175
4176
4177
4178
4179
4180 macro_version='2.1a'
4181 macro_revision='1.2435'
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194 ltmain="$ac_aux_dir/ltmain.sh"
4195
4196 # Set options
4197
4198 enable_dlopen=no
4199
4200
4201 enable_win32_dll=no
4202
4203
4204
4205 # Check whether --enable-static or --disable-static was given.
4206 if test "${enable_static+set}" = set; then
4207   enableval="$enable_static"
4208   p=${PACKAGE-default}
4209     case $enableval in
4210     yes) enable_static=yes ;;
4211     no) enable_static=no ;;
4212     *)
4213      enable_static=no
4214       # Look at the argument we got.  We use all the common list separators.
4215       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4216       for pkg in $enableval; do
4217         IFS="$lt_save_ifs"
4218         if test "X$pkg" = "X$p"; then
4219           enable_static=yes
4220         fi
4221       done
4222       IFS="$lt_save_ifs"
4223       ;;
4224     esac
4225 else
4226   enable_static=yes
4227 fi;
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 # Check whether --with-pic or --without-pic was given.
4238 if test "${with_pic+set}" = set; then
4239   withval="$with_pic"
4240   pic_mode="$withval"
4241 else
4242   pic_mode=default
4243 fi;
4244
4245 test -z "$pic_mode" && pic_mode=default
4246
4247
4248
4249
4250
4251
4252
4253 # Check whether --enable-fast-install or --disable-fast-install was given.
4254 if test "${enable_fast_install+set}" = set; then
4255   enableval="$enable_fast_install"
4256   p=${PACKAGE-default}
4257     case $enableval in
4258     yes) enable_fast_install=yes ;;
4259     no) enable_fast_install=no ;;
4260     *)
4261       enable_fast_install=no
4262       # Look at the argument we got.  We use all the common list separators.
4263       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4264       for pkg in $enableval; do
4265         IFS="$lt_save_ifs"
4266         if test "X$pkg" = "X$p"; then
4267           enable_fast_install=yes
4268         fi
4269       done
4270       IFS="$lt_save_ifs"
4271       ;;
4272     esac
4273 else
4274   enable_fast_install=yes
4275 fi;
4276
4277
4278
4279
4280
4281
4282
4283
4284 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4285 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4286 if test "${lt_cv_path_SED+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   # Loop through the user's path and test for sed and gsed.
4290 # Then use that list of sed's as ones to test for truncation.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296   for lt_ac_prog in sed gsed; do
4297     for ac_exec_ext in '' $ac_executable_extensions; do
4298       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4299         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4300       fi
4301     done
4302   done
4303 done
4304 IFS=$as_save_IFS
4305 lt_ac_max=0
4306 lt_ac_count=0
4307 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4308 # along with /bin/sed that truncates output.
4309 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4310   test ! -f $lt_ac_sed && continue
4311   cat /dev/null > conftest.in
4312   lt_ac_count=0
4313   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4314   # Check for GNU sed and select it if it is found.
4315   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4316     lt_cv_path_SED=$lt_ac_sed
4317     break
4318   fi
4319   while true; do
4320     cat conftest.in conftest.in >conftest.tmp
4321     mv conftest.tmp conftest.in
4322     cp conftest.in conftest.nl
4323     echo >>conftest.nl
4324     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4325     cmp -s conftest.out conftest.nl || break
4326     # 10000 chars as input seems more than enough
4327     test $lt_ac_count -gt 10 && break
4328     lt_ac_count=`expr $lt_ac_count + 1`
4329     if test $lt_ac_count -gt $lt_ac_max; then
4330       lt_ac_max=$lt_ac_count
4331       lt_cv_path_SED=$lt_ac_sed
4332     fi
4333   done
4334 done
4335
4336 fi
4337
4338 SED=$lt_cv_path_SED
4339
4340 echo "$as_me:$LINENO: result: $SED" >&5
4341 echo "${ECHO_T}$SED" >&6
4342
4343 test -z "$SED" && SED=sed
4344 Xsed="$SED -e 1s/^X//"
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356 echo "$as_me:$LINENO: checking for egrep" >&5
4357 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4358 if test "${ac_cv_prog_egrep+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4362     then ac_cv_prog_egrep='grep -E'
4363     else ac_cv_prog_egrep='egrep'
4364     fi
4365 fi
4366 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4367 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4368  EGREP=$ac_cv_prog_egrep
4369
4370
4371 echo "$as_me:$LINENO: checking for fgrep" >&5
4372 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4373 if test "${ac_cv_prog_fgrep+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4377     then ac_cv_prog_fgrep='grep -F'
4378     else ac_cv_prog_fgrep='fgrep'
4379     fi
4380 fi
4381 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4382 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4383  FGREP=$ac_cv_prog_fgrep
4384
4385
4386 test -z "$GREP" && GREP=grep
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4407 if test "${with_gnu_ld+set}" = set; then
4408   withval="$with_gnu_ld"
4409   test "$withval" = no || with_gnu_ld=yes
4410 else
4411   with_gnu_ld=no
4412 fi;
4413 ac_prog=ld
4414 if test "$GCC" = yes; then
4415   # Check if gcc -print-prog-name=ld gives a path.
4416   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4417 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4418   case $host in
4419   *-*-mingw*)
4420     # gcc leaves a trailing carriage return which upsets mingw
4421     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4422   *)
4423     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4424   esac
4425   case $ac_prog in
4426     # Accept absolute paths.
4427     [\\/]* | ?:[\\/]*)
4428       re_direlt='/[^/][^/]*/\.\./'
4429       # Canonicalize the pathname of ld
4430       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4431       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4432         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4433       done
4434       test -z "$LD" && LD="$ac_prog"
4435       ;;
4436   "")
4437     # If it fails, then pretend we aren't using GCC.
4438     ac_prog=ld
4439     ;;
4440   *)
4441     # If it is relative, then search for the first ld in PATH.
4442     with_gnu_ld=unknown
4443     ;;
4444   esac
4445 elif test "$with_gnu_ld" = yes; then
4446   echo "$as_me:$LINENO: checking for GNU ld" >&5
4447 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4448 else
4449   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4450 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4451 fi
4452 if test "${lt_cv_path_LD+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   if test -z "$LD"; then
4456   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4457   for ac_dir in $PATH; do
4458     IFS="$lt_save_ifs"
4459     test -z "$ac_dir" && ac_dir=.
4460     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4461       lt_cv_path_LD="$ac_dir/$ac_prog"
4462       # Check to see if the program is GNU ld.  I'd rather use --version,
4463       # but apparently some variants of GNU ld only accept -v.
4464       # Break only if it was the GNU/non-GNU ld that we prefer.
4465       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4466       *GNU* | *'with BFD'*)
4467         test "$with_gnu_ld" != no && break
4468         ;;
4469       *)
4470         test "$with_gnu_ld" != yes && break
4471         ;;
4472       esac
4473     fi
4474   done
4475   IFS="$lt_save_ifs"
4476 else
4477   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4478 fi
4479 fi
4480
4481 LD="$lt_cv_path_LD"
4482 if test -n "$LD"; then
4483   echo "$as_me:$LINENO: result: $LD" >&5
4484 echo "${ECHO_T}$LD" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4490 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4491    { (exit 1); exit 1; }; }
4492 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4493 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4494 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4498 case `$LD -v 2>&1 </dev/null` in
4499 *GNU* | *'with BFD'*)
4500   lt_cv_prog_gnu_ld=yes
4501   ;;
4502 *)
4503   lt_cv_prog_gnu_ld=no
4504   ;;
4505 esac
4506 fi
4507 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4508 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4509 with_gnu_ld=$lt_cv_prog_gnu_ld
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4521 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4522 if test "${lt_cv_path_NM+set}" = set; then
4523   echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525   if test -n "$NM"; then
4526   # Let the user override the test.
4527   lt_cv_path_NM="$NM"
4528 else
4529   lt_nm_to_check="${ac_tool_prefix}nm"
4530   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4531     lt_nm_to_check="$lt_nm_to_check nm"
4532   fi
4533   for lt_tmp_nm in $lt_nm_to_check; do
4534     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4535     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4536       IFS="$lt_save_ifs"
4537       test -z "$ac_dir" && ac_dir=.
4538       tmp_nm="$ac_dir/$lt_tmp_nm"
4539       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4540         # Check to see if the nm accepts a BSD-compat flag.
4541         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4542         #   nm: unknown option "B" ignored
4543         # Tru64's nm complains that /dev/null is an invalid object file
4544         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4545         */dev/null* | *'Invalid file or object type'*)
4546           lt_cv_path_NM="$tmp_nm -B"
4547           break
4548           ;;
4549         *)
4550           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4551           */dev/null*)
4552             lt_cv_path_NM="$tmp_nm -p"
4553             break
4554             ;;
4555           *)
4556             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4557             continue # so that we can try to find one that supports BSD flags
4558             ;;
4559           esac
4560           ;;
4561         esac
4562       fi
4563     done
4564     IFS="$lt_save_ifs"
4565   done
4566   : ${lt_cv_path_NM=no}
4567 fi
4568 fi
4569 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4570 echo "${ECHO_T}$lt_cv_path_NM" >&6
4571 if test "$lt_cv_path_NM" != "no"; then
4572   NM="$lt_cv_path_NM"
4573 else
4574   # Didn't find any BSD compatible name lister, look for dumpbin.
4575   if test -n "$ac_tool_prefix"; then
4576   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4577   do
4578     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   if test -n "$DUMPBIN"; then
4586   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600 done
4601
4602 fi
4603 fi
4604 DUMPBIN=$ac_cv_prog_DUMPBIN
4605 if test -n "$DUMPBIN"; then
4606   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4607 echo "${ECHO_T}$DUMPBIN" >&6
4608 else
4609   echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6
4611 fi
4612
4613     test -n "$DUMPBIN" && break
4614   done
4615 fi
4616 if test -z "$DUMPBIN"; then
4617   ac_ct_DUMPBIN=$DUMPBIN
4618   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4619 do
4620   # Extract the first word of "$ac_prog", so it can be a program name with args.
4621 set dummy $ac_prog; ac_word=$2
4622 echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   if test -n "$ac_ct_DUMPBIN"; then
4628   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635   for ac_exec_ext in '' $ac_executable_extensions; do
4636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642 done
4643
4644 fi
4645 fi
4646 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4647 if test -n "$ac_ct_DUMPBIN"; then
4648   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4649 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4650 else
4651   echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4653 fi
4654
4655   test -n "$ac_ct_DUMPBIN" && break
4656 done
4657 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4658
4659   DUMPBIN=$ac_ct_DUMPBIN
4660 fi
4661
4662
4663   if test "$DUMPBIN" != ":"; then
4664     NM="$DUMPBIN"
4665   fi
4666 fi
4667 test -z "$NM" && NM=nm
4668
4669
4670
4671
4672
4673
4674 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4675 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4676 if test "${lt_cv_nm_interface+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   lt_cv_nm_interface="BSD nm"
4680   echo "int some_variable = 0;" > conftest.$ac_ext
4681   (eval echo "\"\$as_me:4681: $ac_compile\"" >&5)
4682   (eval "$ac_compile" 2>conftest.err)
4683   cat conftest.err >&5
4684   (eval echo "\"\$as_me:4684: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4685   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4686   cat conftest.err >&5
4687   (eval echo "\"\$as_me:4687: output\"" >&5)
4688   cat conftest.out >&5
4689   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4690     lt_cv_nm_interface="MS dumpbin"
4691   fi
4692   rm -f conftest*
4693 fi
4694 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4695 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4696
4697 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4698 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4699 LN_S=$as_ln_s
4700 if test "$LN_S" = "ln -s"; then
4701   echo "$as_me:$LINENO: result: yes" >&5
4702 echo "${ECHO_T}yes" >&6
4703 else
4704   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4705 echo "${ECHO_T}no, using $LN_S" >&6
4706 fi
4707
4708 # find the maximum length of command line arguments
4709 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4710 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4711 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714     i=0
4715   teststring="ABCD"
4716
4717   case $build_os in
4718   msdosdjgpp*)
4719     # On DJGPP, this test can blow up pretty badly due to problems in libc
4720     # (any single argument exceeding 2000 bytes causes a buffer overrun
4721     # during glob expansion).  Even if it were fixed, the result of this
4722     # check would be larger than it should be.
4723     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4724     ;;
4725
4726   gnu*)
4727     # Under GNU Hurd, this test is not required because there is
4728     # no limit to the length of command line arguments.
4729     # Libtool will interpret -1 as no limit whatsoever
4730     lt_cv_sys_max_cmd_len=-1;
4731     ;;
4732
4733   cygwin* | mingw*)
4734     # On Win9x/ME, this test blows up -- it succeeds, but takes
4735     # about 5 minutes as the teststring grows exponentially.
4736     # Worse, since 9x/ME are not pre-emptively multitasking,
4737     # you end up with a "frozen" computer, even though with patience
4738     # the test eventually succeeds (with a max line length of 256k).
4739     # Instead, let's just punt: use the minimum linelength reported by
4740     # all of the supported platforms: 8192 (on NT/2K/XP).
4741     lt_cv_sys_max_cmd_len=8192;
4742     ;;
4743
4744   amigaos*)
4745     # On AmigaOS with pdksh, this test takes hours, literally.
4746     # So we just punt and use a minimum line length of 8192.
4747     lt_cv_sys_max_cmd_len=8192;
4748     ;;
4749
4750   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4751     # This has been around since 386BSD, at least.  Likely further.
4752     if test -x /sbin/sysctl; then
4753       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4754     elif test -x /usr/sbin/sysctl; then
4755       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4756     else
4757       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4758     fi
4759     # And add a safety zone
4760     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4761     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4762     ;;
4763
4764   interix*)
4765     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4766     lt_cv_sys_max_cmd_len=196608
4767     ;;
4768
4769   osf*)
4770     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4771     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4772     # nice to cause kernel panics so lets avoid the loop below.
4773     # First set a reasonable default.
4774     lt_cv_sys_max_cmd_len=16384
4775     #
4776     if test -x /sbin/sysconfig; then
4777       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4778         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4779       esac
4780     fi
4781     ;;
4782   sco3.2v5*)
4783     lt_cv_sys_max_cmd_len=102400
4784     ;;
4785   sysv5* | sco5v6* | sysv4.2uw2*)
4786     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4787     if test -n "$kargmax"; then
4788       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4789     else
4790       lt_cv_sys_max_cmd_len=32768
4791     fi
4792     ;;
4793   *)
4794     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4795     if test -n $lt_cv_sys_max_cmd_len; then
4796       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4797       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4798     else
4799       # Make teststring a little bigger before we do anything with it.
4800       # a 1K string should be a reasonable start.
4801       for i in 1 2 3 4 5 6 7 8 ; do
4802         teststring=$teststring$teststring
4803       done
4804       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4805       # If test is not a shell built-in, we'll probably end up computing a
4806       # maximum length that is only half of the actual maximum length, but
4807       # we can't tell.
4808       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4809                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4810               test $i != 17 # 1/2 MB should be enough
4811       do
4812         i=`expr $i + 1`
4813         teststring=$teststring$teststring
4814       done
4815       # Only check the string length outside the loop.
4816       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4817       teststring=
4818       # Add a significant safety factor because C++ compilers can tack on
4819       # massive amounts of additional arguments before passing them to the
4820       # linker.  It appears as though 1/2 is a usable value.
4821       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4822     fi
4823     ;;
4824   esac
4825
4826 fi
4827
4828 if test -n $lt_cv_sys_max_cmd_len ; then
4829   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4830 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4831 else
4832   echo "$as_me:$LINENO: result: none" >&5
4833 echo "${ECHO_T}none" >&6
4834 fi
4835 max_cmd_len=$lt_cv_sys_max_cmd_len
4836
4837
4838
4839
4840
4841
4842
4843 : ${CP="cp -f"}
4844 : ${MV="mv -f"}
4845 : ${RM="rm -f"}
4846
4847 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4848 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4849 # Try some XSI features
4850 xsi_shell=no
4851 ( _lt_dummy="a/b/c"
4852   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4853       = c,a/b,, ) >/dev/null 2>&1 \
4854   && xsi_shell=yes
4855 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4856 echo "${ECHO_T}$xsi_shell" >&6
4857
4858
4859 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4860 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4861 lt_shell_append=no
4862 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4863     >/dev/null 2>&1 \
4864   && lt_shell_append=yes
4865 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4866 echo "${ECHO_T}$lt_shell_append" >&6
4867
4868
4869 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4870   lt_unset=unset
4871 else
4872   lt_unset=false
4873 fi
4874
4875
4876
4877
4878
4879 # test EBCDIC or ASCII
4880 case `echo X|tr X '\101'` in
4881  A) # ASCII based system
4882     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4883   lt_SP2NL='tr \040 \012'
4884   lt_NL2SP='tr \015\012 \040\040'
4885   ;;
4886  *) # EBCDIC based system
4887   lt_SP2NL='tr \100 \n'
4888   lt_NL2SP='tr \r\n \100\100'
4889   ;;
4890 esac
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4901 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4902 if test "${lt_cv_ld_reload_flag+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   lt_cv_ld_reload_flag='-r'
4906 fi
4907 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4908 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4909 reload_flag=$lt_cv_ld_reload_flag
4910 case $reload_flag in
4911 "" | " "*) ;;
4912 *) reload_flag=" $reload_flag" ;;
4913 esac
4914 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4915 case $host_os in
4916   darwin*)
4917     if test "$GCC" = yes; then
4918       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4919     else
4920       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4921     fi
4922     ;;
4923 esac
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4935 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4936 if test "${lt_cv_deplibs_check_method+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   lt_cv_file_magic_cmd='$MAGIC_CMD'
4940 lt_cv_file_magic_test_file=
4941 lt_cv_deplibs_check_method='unknown'
4942 # Need to set the preceding variable on all platforms that support
4943 # interlibrary dependencies.
4944 # 'none' -- dependencies not supported.
4945 # `unknown' -- same as none, but documents that we really don't know.
4946 # 'pass_all' -- all dependencies passed with no checks.
4947 # 'test_compile' -- check by making test program.
4948 # 'file_magic [[regex]]' -- check by looking for files in library path
4949 # which responds to the $file_magic_cmd with a given extended regex.
4950 # If you have `file' or equivalent on your system and you're not sure
4951 # whether `pass_all' will *always* work, you probably want this one.
4952
4953 case $host_os in
4954 aix[4-9]*)
4955   lt_cv_deplibs_check_method=pass_all
4956   ;;
4957
4958 beos*)
4959   lt_cv_deplibs_check_method=pass_all
4960   ;;
4961
4962 bsdi[45]*)
4963   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4964   lt_cv_file_magic_cmd='/usr/bin/file -L'
4965   lt_cv_file_magic_test_file=/shlib/libc.so
4966   ;;
4967
4968 cygwin*)
4969   # func_win32_libid is a shell function defined in ltmain.sh
4970   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4971   lt_cv_file_magic_cmd='func_win32_libid'
4972   ;;
4973
4974 mingw* | pw32*)
4975   # Base MSYS/MinGW do not provide the 'file' command needed by
4976   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4977   # unless we find 'file', for example because we are cross-compiling.
4978   if ( file / ) >/dev/null 2>&1; then
4979     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4980     lt_cv_file_magic_cmd='func_win32_libid'
4981   else
4982     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4983     lt_cv_file_magic_cmd='$OBJDUMP -f'
4984   fi
4985   ;;
4986
4987 darwin* | rhapsody*)
4988   lt_cv_deplibs_check_method=pass_all
4989   ;;
4990
4991 freebsd* | dragonfly*)
4992   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4993     case $host_cpu in
4994     i*86 )
4995       # Not sure whether the presence of OpenBSD here was a mistake.
4996       # Let's accept both of them until this is cleared up.
4997       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4998       lt_cv_file_magic_cmd=/usr/bin/file
4999       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5000       ;;
5001     esac
5002   else
5003     lt_cv_deplibs_check_method=pass_all
5004   fi
5005   ;;
5006
5007 gnu*)
5008   lt_cv_deplibs_check_method=pass_all
5009   ;;
5010
5011 hpux10.20* | hpux11*)
5012   lt_cv_file_magic_cmd=/usr/bin/file
5013   case $host_cpu in
5014   ia64*)
5015     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5016     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5017     ;;
5018   hppa*64*)
5019     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]'
5020     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5021     ;;
5022   *)
5023     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5024     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5025     ;;
5026   esac
5027   ;;
5028
5029 interix[3-9]*)
5030   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5031   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5032   ;;
5033
5034 irix5* | irix6* | nonstopux*)
5035   case $LD in
5036   *-32|*"-32 ") libmagic=32-bit;;
5037   *-n32|*"-n32 ") libmagic=N32;;
5038   *-64|*"-64 ") libmagic=64-bit;;
5039   *) libmagic=never-match;;
5040   esac
5041   lt_cv_deplibs_check_method=pass_all
5042   ;;
5043
5044 # This must be Linux ELF.
5045 linux* | k*bsd*-gnu)
5046   lt_cv_deplibs_check_method=pass_all
5047   ;;
5048
5049 netbsd*)
5050   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5052   else
5053     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5054   fi
5055   ;;
5056
5057 newos6*)
5058   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5059   lt_cv_file_magic_cmd=/usr/bin/file
5060   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5061   ;;
5062
5063 *nto* | *qnx*)
5064   lt_cv_deplibs_check_method=pass_all
5065   ;;
5066
5067 openbsd*)
5068   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5069     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5070   else
5071     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5072   fi
5073   ;;
5074
5075 osf3* | osf4* | osf5*)
5076   lt_cv_deplibs_check_method=pass_all
5077   ;;
5078
5079 rdos*)
5080   lt_cv_deplibs_check_method=pass_all
5081   ;;
5082
5083 solaris*)
5084   lt_cv_deplibs_check_method=pass_all
5085   ;;
5086
5087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5088   lt_cv_deplibs_check_method=pass_all
5089   ;;
5090
5091 sysv4 | sysv4.3*)
5092   case $host_vendor in
5093   motorola)
5094     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]'
5095     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5096     ;;
5097   ncr)
5098     lt_cv_deplibs_check_method=pass_all
5099     ;;
5100   sequent)
5101     lt_cv_file_magic_cmd='/bin/file'
5102     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5103     ;;
5104   sni)
5105     lt_cv_file_magic_cmd='/bin/file'
5106     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5107     lt_cv_file_magic_test_file=/lib/libc.so
5108     ;;
5109   siemens)
5110     lt_cv_deplibs_check_method=pass_all
5111     ;;
5112   pc)
5113     lt_cv_deplibs_check_method=pass_all
5114     ;;
5115   esac
5116   ;;
5117
5118 tpf*)
5119   lt_cv_deplibs_check_method=pass_all
5120   ;;
5121 esac
5122
5123 fi
5124 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5125 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5126 file_magic_cmd=$lt_cv_file_magic_cmd
5127 deplibs_check_method=$lt_cv_deplibs_check_method
5128 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141 if test -n "$ac_tool_prefix"; then
5142   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5143 set dummy ${ac_tool_prefix}ar; ac_word=$2
5144 echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146 if test "${ac_cv_prog_AR+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   if test -n "$AR"; then
5150   ac_cv_prog_AR="$AR" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157   for ac_exec_ext in '' $ac_executable_extensions; do
5158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159     ac_cv_prog_AR="${ac_tool_prefix}ar"
5160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164 done
5165
5166 fi
5167 fi
5168 AR=$ac_cv_prog_AR
5169 if test -n "$AR"; then
5170   echo "$as_me:$LINENO: result: $AR" >&5
5171 echo "${ECHO_T}$AR" >&6
5172 else
5173   echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6
5175 fi
5176
5177 fi
5178 if test -z "$ac_cv_prog_AR"; then
5179   ac_ct_AR=$AR
5180   # Extract the first word of "ar", so it can be a program name with args.
5181 set dummy ar; ac_word=$2
5182 echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   if test -n "$ac_ct_AR"; then
5188   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_prog_ac_ct_AR="ar"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203
5204   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5205 fi
5206 fi
5207 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5208 if test -n "$ac_ct_AR"; then
5209   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5210 echo "${ECHO_T}$ac_ct_AR" >&6
5211 else
5212   echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5214 fi
5215
5216   AR=$ac_ct_AR
5217 else
5218   AR="$ac_cv_prog_AR"
5219 fi
5220
5221 test -z "$AR" && AR=ar
5222 test -z "$AR_FLAGS" && AR_FLAGS=cru
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234 if test -n "$ac_tool_prefix"; then
5235   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5236 set dummy ${ac_tool_prefix}strip; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_STRIP+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   if test -n "$STRIP"; then
5243   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250   for ac_exec_ext in '' $ac_executable_extensions; do
5251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257 done
5258
5259 fi
5260 fi
5261 STRIP=$ac_cv_prog_STRIP
5262 if test -n "$STRIP"; then
5263   echo "$as_me:$LINENO: result: $STRIP" >&5
5264 echo "${ECHO_T}$STRIP" >&6
5265 else
5266   echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5268 fi
5269
5270 fi
5271 if test -z "$ac_cv_prog_STRIP"; then
5272   ac_ct_STRIP=$STRIP
5273   # Extract the first word of "strip", so it can be a program name with args.
5274 set dummy strip; ac_word=$2
5275 echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   if test -n "$ac_ct_STRIP"; then
5281   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288   for ac_exec_ext in '' $ac_executable_extensions; do
5289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290     ac_cv_prog_ac_ct_STRIP="strip"
5291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295 done
5296
5297   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5298 fi
5299 fi
5300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5301 if test -n "$ac_ct_STRIP"; then
5302   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5303 echo "${ECHO_T}$ac_ct_STRIP" >&6
5304 else
5305   echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6
5307 fi
5308
5309   STRIP=$ac_ct_STRIP
5310 else
5311   STRIP="$ac_cv_prog_STRIP"
5312 fi
5313
5314 test -z "$STRIP" && STRIP=:
5315
5316
5317
5318
5319
5320
5321 if test -n "$ac_tool_prefix"; then
5322   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5323 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5324 echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326 if test "${ac_cv_prog_RANLIB+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   if test -n "$RANLIB"; then
5330   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5334 do
5335   IFS=$as_save_IFS
5336   test -z "$as_dir" && as_dir=.
5337   for ac_exec_ext in '' $ac_executable_extensions; do
5338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341     break 2
5342   fi
5343 done
5344 done
5345
5346 fi
5347 fi
5348 RANLIB=$ac_cv_prog_RANLIB
5349 if test -n "$RANLIB"; then
5350   echo "$as_me:$LINENO: result: $RANLIB" >&5
5351 echo "${ECHO_T}$RANLIB" >&6
5352 else
5353   echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5355 fi
5356
5357 fi
5358 if test -z "$ac_cv_prog_RANLIB"; then
5359   ac_ct_RANLIB=$RANLIB
5360   # Extract the first word of "ranlib", so it can be a program name with args.
5361 set dummy ranlib; ac_word=$2
5362 echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   if test -n "$ac_ct_RANLIB"; then
5368   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373   IFS=$as_save_IFS
5374   test -z "$as_dir" && as_dir=.
5375   for ac_exec_ext in '' $ac_executable_extensions; do
5376   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377     ac_cv_prog_ac_ct_RANLIB="ranlib"
5378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379     break 2
5380   fi
5381 done
5382 done
5383
5384   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5385 fi
5386 fi
5387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5388 if test -n "$ac_ct_RANLIB"; then
5389   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5390 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5391 else
5392   echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5394 fi
5395
5396   RANLIB=$ac_ct_RANLIB
5397 else
5398   RANLIB="$ac_cv_prog_RANLIB"
5399 fi
5400
5401 test -z "$RANLIB" && RANLIB=:
5402
5403
5404
5405
5406
5407
5408 # Determine commands to create old-style static archives.
5409 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5410 old_postinstall_cmds='chmod 644 $oldlib'
5411 old_postuninstall_cmds=
5412
5413 if test -n "$RANLIB"; then
5414   case $host_os in
5415   openbsd*)
5416     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5417     ;;
5418   *)
5419     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5420     ;;
5421   esac
5422   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5423 fi
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 # If no C compiler was specified, use CC.
5459 LTCC=${LTCC-"$CC"}
5460
5461 # If no C compiler flags were specified, use CFLAGS.
5462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5463
5464 # Allow CC to be a program name with arguments.
5465 compiler=$CC
5466
5467
5468 # Check for command to grab the raw symbol name followed by C symbol from nm.
5469 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5470 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5471 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474
5475 # These are sane defaults that work on at least a few old systems.
5476 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5477
5478 # Character class describing NM global symbol codes.
5479 symcode='[BCDEGRST]'
5480
5481 # Regexp to match symbols that can be accessed directly from C.
5482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5483
5484 # Define system-specific variables.
5485 case $host_os in
5486 aix*)
5487   symcode='[BCDT]'
5488   ;;
5489 cygwin* | mingw* | pw32*)
5490   symcode='[ABCDGISTW]'
5491   ;;
5492 hpux*)
5493   if test "$host_cpu" = ia64; then
5494     symcode='[ABCDEGRST]'
5495   fi
5496   ;;
5497 irix* | nonstopux*)
5498   symcode='[BCDEGRST]'
5499   ;;
5500 osf*)
5501   symcode='[BCDEGQRST]'
5502   ;;
5503 solaris*)
5504   symcode='[BDRT]'
5505   ;;
5506 sco3.2v5*)
5507   symcode='[DT]'
5508   ;;
5509 sysv4.2uw2*)
5510   symcode='[DT]'
5511   ;;
5512 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5513   symcode='[ABDT]'
5514   ;;
5515 sysv4)
5516   symcode='[DFNSTU]'
5517   ;;
5518 esac
5519
5520 # If we're using GNU nm, then use its standard symbol codes.
5521 case `$NM -V 2>&1` in
5522 *GNU* | *'with BFD'*)
5523   symcode='[ABCDGIRSTW]' ;;
5524 esac
5525
5526 # Transform an extracted symbol line into a proper C declaration.
5527 # Some systems (esp. on ia64) link data and code symbols differently,
5528 # so use this general approach.
5529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530
5531 # Transform an extracted symbol line into symbol name and symbol address
5532 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5533
5534 # Handle CRLF in mingw tool chain
5535 opt_cr=
5536 case $build_os in
5537 mingw*)
5538   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5539   ;;
5540 esac
5541
5542 # Try without a prefix underscore, then with it.
5543 for ac_symprfx in "" "_"; do
5544
5545   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5546   symxfrm="\\1 $ac_symprfx\\2 \\2"
5547
5548   # Write the raw and C identifiers.
5549   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5550     # Fake it for dumpbin and say T for any non-static function
5551     # and D for any global variable.
5552     # Also find C++ and __fastcall symbols from MSVC++,
5553     # which start with @ or ?.
5554     lt_cv_sys_global_symbol_pipe="$AWK '"\
5555 "     {last_section=section; section=\$ 3};"\
5556 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5557 "     \$ 0!~/External *\|/{next};"\
5558 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5559 "     {if(hide[section]) next};"\
5560 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5561 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5562 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5563 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5564 "     ' prfx=^$ac_symprfx"
5565   else
5566     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5567   fi
5568
5569   # Check to see that the pipe works correctly.
5570   pipe_works=no
5571
5572   rm -f conftest*
5573   cat > conftest.$ac_ext <<_LT_EOF
5574 #ifdef __cplusplus
5575 extern "C" {
5576 #endif
5577 char nm_test_var;
5578 void nm_test_func(void);
5579 void nm_test_func(void){}
5580 #ifdef __cplusplus
5581 }
5582 #endif
5583 int main(){nm_test_var='a';nm_test_func();return(0);}
5584 _LT_EOF
5585
5586   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587   (eval $ac_compile) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; then
5591     # Now try to grab the symbols.
5592     nlist=conftest.nm
5593     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5594   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } && test -s "$nlist"; then
5598       # Try sorting and uniquifying the output.
5599       if sort "$nlist" | uniq > "$nlist"T; then
5600         mv -f "$nlist"T "$nlist"
5601       else
5602         rm -f "$nlist"T
5603       fi
5604
5605       # Make sure that we snagged all the symbols we need.
5606       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5607         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5608           cat <<_LT_EOF > conftest.$ac_ext
5609 #ifdef __cplusplus
5610 extern "C" {
5611 #endif
5612
5613 _LT_EOF
5614           # Now generate the symbol file.
5615           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5616
5617           cat <<_LT_EOF >> conftest.$ac_ext
5618
5619 /* The mapping between symbol names and symbols.  */
5620 const struct {
5621   const char *name;
5622   void       *address;
5623 }
5624 lt__PROGRAM__LTX_preloaded_symbols[] =
5625 {
5626   { "@PROGRAM@", (void *) 0 },
5627 _LT_EOF
5628           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5629           cat <<\_LT_EOF >> conftest.$ac_ext
5630   {0, (void *) 0}
5631 };
5632
5633 /* This works around a problem in FreeBSD linker */
5634 #ifdef FREEBSD_WORKAROUND
5635 static const void *lt_preloaded_setup() {
5636   return lt__PROGRAM__LTX_preloaded_symbols;
5637 }
5638 #endif
5639
5640 #ifdef __cplusplus
5641 }
5642 #endif
5643 _LT_EOF
5644           # Now try linking the two files.
5645           mv conftest.$ac_objext conftstm.$ac_objext
5646           lt_save_LIBS="$LIBS"
5647           lt_save_CFLAGS="$CFLAGS"
5648           LIBS="conftstm.$ac_objext"
5649           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5650           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651   (eval $ac_link) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5655             pipe_works=yes
5656           fi
5657           LIBS="$lt_save_LIBS"
5658           CFLAGS="$lt_save_CFLAGS"
5659         else
5660           echo "cannot find nm_test_func in $nlist" >&5
5661         fi
5662       else
5663         echo "cannot find nm_test_var in $nlist" >&5
5664       fi
5665     else
5666       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5667     fi
5668   else
5669     echo "$progname: failed program was:" >&5
5670     cat conftest.$ac_ext >&5
5671   fi
5672   rm -f conftest* conftst*
5673
5674   # Do not use the global_symbol_pipe unless it works.
5675   if test "$pipe_works" = yes; then
5676     break
5677   else
5678     lt_cv_sys_global_symbol_pipe=
5679   fi
5680 done
5681
5682 fi
5683
5684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5685   lt_cv_sys_global_symbol_to_cdecl=
5686 fi
5687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5688   echo "$as_me:$LINENO: result: failed" >&5
5689 echo "${ECHO_T}failed" >&6
5690 else
5691   echo "$as_me:$LINENO: result: ok" >&5
5692 echo "${ECHO_T}ok" >&6
5693 fi
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5712 if test "${enable_libtool_lock+set}" = set; then
5713   enableval="$enable_libtool_lock"
5714
5715 fi;
5716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5717
5718 # Some flags need to be propagated to the compiler or linker for good
5719 # libtool support.
5720 case $host in
5721 ia64-*-hpux*)
5722   # Find out which ABI we are using.
5723   echo 'int i;' > conftest.$ac_ext
5724   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725   (eval $ac_compile) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; then
5729     case `/usr/bin/file conftest.$ac_objext` in
5730       *ELF-32*)
5731         HPUX_IA64_MODE="32"
5732         ;;
5733       *ELF-64*)
5734         HPUX_IA64_MODE="64"
5735         ;;
5736     esac
5737   fi
5738   rm -rf conftest*
5739   ;;
5740 *-*-irix6*)
5741   # Find out which ABI we are using.
5742   echo '#line 5742 "configure"' > conftest.$ac_ext
5743   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744   (eval $ac_compile) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; then
5748     if test "$lt_cv_prog_gnu_ld" = yes; then
5749       case `/usr/bin/file conftest.$ac_objext` in
5750         *32-bit*)
5751           LD="${LD-ld} -melf32bsmip"
5752           ;;
5753         *N32*)
5754           LD="${LD-ld} -melf32bmipn32"
5755           ;;
5756         *64-bit*)
5757           LD="${LD-ld} -melf64bmip"
5758         ;;
5759       esac
5760     else
5761       case `/usr/bin/file conftest.$ac_objext` in
5762         *32-bit*)
5763           LD="${LD-ld} -32"
5764           ;;
5765         *N32*)
5766           LD="${LD-ld} -n32"
5767           ;;
5768         *64-bit*)
5769           LD="${LD-ld} -64"
5770           ;;
5771       esac
5772     fi
5773   fi
5774   rm -rf conftest*
5775   ;;
5776
5777 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5778 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5779   # Find out which ABI we are using.
5780   echo 'int i;' > conftest.$ac_ext
5781   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782   (eval $ac_compile) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; then
5786     case `/usr/bin/file conftest.o` in
5787       *32-bit*)
5788         case $host in
5789           x86_64-*kfreebsd*-gnu)
5790             LD="${LD-ld} -m elf_i386_fbsd"
5791             ;;
5792           x86_64-*linux*)
5793             LD="${LD-ld} -m elf_i386"
5794             ;;
5795           ppc64-*linux*|powerpc64-*linux*)
5796             LD="${LD-ld} -m elf32ppclinux"
5797             ;;
5798           s390x-*linux*)
5799             LD="${LD-ld} -m elf_s390"
5800             ;;
5801           sparc64-*linux*)
5802             LD="${LD-ld} -m elf32_sparc"
5803             ;;
5804         esac
5805         ;;
5806       *64-bit*)
5807         case $host in
5808           x86_64-*kfreebsd*-gnu)
5809             LD="${LD-ld} -m elf_x86_64_fbsd"
5810             ;;
5811           x86_64-*linux*)
5812             LD="${LD-ld} -m elf_x86_64"
5813             ;;
5814           ppc*-*linux*|powerpc*-*linux*)
5815             LD="${LD-ld} -m elf64ppc"
5816             ;;
5817           s390*-*linux*|s390*-*tpf*)
5818             LD="${LD-ld} -m elf64_s390"
5819             ;;
5820           sparc*-*linux*)
5821             LD="${LD-ld} -m elf64_sparc"
5822             ;;
5823         esac
5824         ;;
5825     esac
5826   fi
5827   rm -rf conftest*
5828   ;;
5829
5830 *-*-sco3.2v5*)
5831   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5832   SAVE_CFLAGS="$CFLAGS"
5833   CFLAGS="$CFLAGS -belf"
5834   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5836 if test "${lt_cv_cc_needs_belf+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   ac_ext=c
5840 ac_cpp='$CPP $CPPFLAGS'
5841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5844
5845      cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851
5852 int
5853 main ()
5854 {
5855
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext conftest$ac_exeext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5862   (eval $ac_link) 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); } &&
5869          { ac_try='test -z "$ac_c_werror_flag"
5870                          || test ! -s conftest.err'
5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872   (eval $ac_try) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; } &&
5876          { ac_try='test -s conftest$ac_exeext'
5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878   (eval $ac_try) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; }; then
5882   lt_cv_cc_needs_belf=yes
5883 else
5884   echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 lt_cv_cc_needs_belf=no
5888 fi
5889 rm -f conftest.err conftest.$ac_objext \
5890       conftest$ac_exeext conftest.$ac_ext
5891      ac_ext=c
5892 ac_cpp='$CPP $CPPFLAGS'
5893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5896
5897 fi
5898 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5899 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5900   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5901     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5902     CFLAGS="$SAVE_CFLAGS"
5903   fi
5904   ;;
5905 sparc*-*solaris*)
5906   # Find out which ABI we are using.
5907   echo 'int i;' > conftest.$ac_ext
5908   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909   (eval $ac_compile) 2>&5
5910   ac_status=$?
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); }; then
5913     case `/usr/bin/file conftest.o` in
5914     *64-bit*)
5915       case $lt_cv_prog_gnu_ld in
5916       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5917       *)    LD="${LD-ld} -64" ;;
5918       esac
5919       ;;
5920     esac
5921   fi
5922   rm -rf conftest*
5923   ;;
5924 esac
5925
5926 need_locks="$enable_libtool_lock"
5927
5928 ac_ext=c
5929 ac_cpp='$CPP $CPPFLAGS'
5930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5933 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5934 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5935 # On Suns, sometimes $CPP names a directory.
5936 if test -n "$CPP" && test -d "$CPP"; then
5937   CPP=
5938 fi
5939 if test -z "$CPP"; then
5940   if test "${ac_cv_prog_CPP+set}" = set; then
5941   echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943       # Double quotes because CPP needs to be expanded
5944     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5945     do
5946       ac_preproc_ok=false
5947 for ac_c_preproc_warn_flag in '' yes
5948 do
5949   # Use a header file that comes with gcc, so configuring glibc
5950   # with a fresh cross-compiler works.
5951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5952   # <limits.h> exists even on freestanding compilers.
5953   # On the NeXT, cc -E runs the code through the compiler's parser,
5954   # not just through cpp. "Syntax error" is here to catch this case.
5955   cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961 #ifdef __STDC__
5962 # include <limits.h>
5963 #else
5964 # include <assert.h>
5965 #endif
5966                      Syntax error
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   :
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991   # Broken: fails on valid input.
5992 continue
5993 fi
5994 rm -f conftest.err conftest.$ac_ext
5995
5996   # OK, works on sane cases.  Now check whether non-existent headers
5997   # can be detected and how.
5998   cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h.  */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h.  */
6004 #include <ac_nonexistent.h>
6005 _ACEOF
6006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } >/dev/null; then
6014   if test -s conftest.err; then
6015     ac_cpp_err=$ac_c_preproc_warn_flag
6016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6017   else
6018     ac_cpp_err=
6019   fi
6020 else
6021   ac_cpp_err=yes
6022 fi
6023 if test -z "$ac_cpp_err"; then
6024   # Broken: success on invalid input.
6025 continue
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030   # Passes both tests.
6031 ac_preproc_ok=:
6032 break
6033 fi
6034 rm -f conftest.err conftest.$ac_ext
6035
6036 done
6037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6038 rm -f conftest.err conftest.$ac_ext
6039 if $ac_preproc_ok; then
6040   break
6041 fi
6042
6043     done
6044     ac_cv_prog_CPP=$CPP
6045
6046 fi
6047   CPP=$ac_cv_prog_CPP
6048 else
6049   ac_cv_prog_CPP=$CPP
6050 fi
6051 echo "$as_me:$LINENO: result: $CPP" >&5
6052 echo "${ECHO_T}$CPP" >&6
6053 ac_preproc_ok=false
6054 for ac_c_preproc_warn_flag in '' yes
6055 do
6056   # Use a header file that comes with gcc, so configuring glibc
6057   # with a fresh cross-compiler works.
6058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6059   # <limits.h> exists even on freestanding compilers.
6060   # On the NeXT, cc -E runs the code through the compiler's parser,
6061   # not just through cpp. "Syntax error" is here to catch this case.
6062   cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h.  */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h.  */
6068 #ifdef __STDC__
6069 # include <limits.h>
6070 #else
6071 # include <assert.h>
6072 #endif
6073                      Syntax error
6074 _ACEOF
6075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6077   ac_status=$?
6078   grep -v '^ *+' conftest.er1 >conftest.err
6079   rm -f conftest.er1
6080   cat conftest.err >&5
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } >/dev/null; then
6083   if test -s conftest.err; then
6084     ac_cpp_err=$ac_c_preproc_warn_flag
6085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6086   else
6087     ac_cpp_err=
6088   fi
6089 else
6090   ac_cpp_err=yes
6091 fi
6092 if test -z "$ac_cpp_err"; then
6093   :
6094 else
6095   echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098   # Broken: fails on valid input.
6099 continue
6100 fi
6101 rm -f conftest.err conftest.$ac_ext
6102
6103   # OK, works on sane cases.  Now check whether non-existent headers
6104   # can be detected and how.
6105   cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h.  */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h.  */
6111 #include <ac_nonexistent.h>
6112 _ACEOF
6113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6115   ac_status=$?
6116   grep -v '^ *+' conftest.er1 >conftest.err
6117   rm -f conftest.er1
6118   cat conftest.err >&5
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); } >/dev/null; then
6121   if test -s conftest.err; then
6122     ac_cpp_err=$ac_c_preproc_warn_flag
6123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6124   else
6125     ac_cpp_err=
6126   fi
6127 else
6128   ac_cpp_err=yes
6129 fi
6130 if test -z "$ac_cpp_err"; then
6131   # Broken: success on invalid input.
6132 continue
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137   # Passes both tests.
6138 ac_preproc_ok=:
6139 break
6140 fi
6141 rm -f conftest.err conftest.$ac_ext
6142
6143 done
6144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6145 rm -f conftest.err conftest.$ac_ext
6146 if $ac_preproc_ok; then
6147   :
6148 else
6149   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6150 See \`config.log' for more details." >&5
6151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6152 See \`config.log' for more details." >&2;}
6153    { (exit 1); exit 1; }; }
6154 fi
6155
6156 ac_ext=c
6157 ac_cpp='$CPP $CPPFLAGS'
6158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162
6163 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6165 if test "${ac_cv_header_stdc+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 #include <stdlib.h>
6175 #include <stdarg.h>
6176 #include <string.h>
6177 #include <float.h>
6178
6179 int
6180 main ()
6181 {
6182
6183   ;
6184   return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189   (eval $ac_compile) 2>conftest.er1
6190   ac_status=$?
6191   grep -v '^ *+' conftest.er1 >conftest.err
6192   rm -f conftest.er1
6193   cat conftest.err >&5
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -z "$ac_c_werror_flag"
6197                          || test ! -s conftest.err'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; } &&
6203          { ac_try='test -s conftest.$ac_objext'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; }; then
6209   ac_cv_header_stdc=yes
6210 else
6211   echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 ac_cv_header_stdc=no
6215 fi
6216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6217
6218 if test $ac_cv_header_stdc = yes; then
6219   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6220   cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226 #include <string.h>
6227
6228 _ACEOF
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230   $EGREP "memchr" >/dev/null 2>&1; then
6231   :
6232 else
6233   ac_cv_header_stdc=no
6234 fi
6235 rm -f conftest*
6236
6237 fi
6238
6239 if test $ac_cv_header_stdc = yes; then
6240   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6241   cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h.  */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h.  */
6247 #include <stdlib.h>
6248
6249 _ACEOF
6250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6251   $EGREP "free" >/dev/null 2>&1; then
6252   :
6253 else
6254   ac_cv_header_stdc=no
6255 fi
6256 rm -f conftest*
6257
6258 fi
6259
6260 if test $ac_cv_header_stdc = yes; then
6261   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6262   if test "$cross_compiling" = yes; then
6263   :
6264 else
6265   cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271 #include <ctype.h>
6272 #if ((' ' & 0x0FF) == 0x020)
6273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6275 #else
6276 # define ISLOWER(c) \
6277                    (('a' <= (c) && (c) <= 'i') \
6278                      || ('j' <= (c) && (c) <= 'r') \
6279                      || ('s' <= (c) && (c) <= 'z'))
6280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6281 #endif
6282
6283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6284 int
6285 main ()
6286 {
6287   int i;
6288   for (i = 0; i < 256; i++)
6289     if (XOR (islower (i), ISLOWER (i))
6290         || toupper (i) != TOUPPER (i))
6291       exit(2);
6292   exit (0);
6293 }
6294 _ACEOF
6295 rm -f conftest$ac_exeext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297   (eval $ac_link) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   :
6307 else
6308   echo "$as_me: program exited with status $ac_status" >&5
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ( exit $ac_status )
6313 ac_cv_header_stdc=no
6314 fi
6315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6316 fi
6317 fi
6318 fi
6319 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6320 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6321 if test $ac_cv_header_stdc = yes; then
6322
6323 cat >>confdefs.h <<\_ACEOF
6324 #define STDC_HEADERS 1
6325 _ACEOF
6326
6327 fi
6328
6329 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6340                   inttypes.h stdint.h unistd.h
6341 do
6342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6343 echo "$as_me:$LINENO: checking for $ac_header" >&5
6344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354 $ac_includes_default
6355
6356 #include <$ac_header>
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360   (eval $ac_compile) 2>conftest.er1
6361   ac_status=$?
6362   grep -v '^ *+' conftest.er1 >conftest.err
6363   rm -f conftest.er1
6364   cat conftest.err >&5
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } &&
6367          { ac_try='test -z "$ac_c_werror_flag"
6368                          || test ! -s conftest.err'
6369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370   (eval $ac_try) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; } &&
6374          { ac_try='test -s conftest.$ac_objext'
6375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376   (eval $ac_try) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; }; then
6380   eval "$as_ac_Header=yes"
6381 else
6382   echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 eval "$as_ac_Header=no"
6386 fi
6387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388 fi
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6392   cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394 _ACEOF
6395
6396 fi
6397
6398 done
6399
6400
6401
6402 for ac_header in dlfcn.h
6403 do
6404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 echo "$as_me:$LINENO: checking for $ac_header" >&5
6406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h.  */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h.  */
6416 $ac_includes_default
6417
6418 #include <$ac_header>
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>conftest.er1
6423   ac_status=$?
6424   grep -v '^ *+' conftest.er1 >conftest.err
6425   rm -f conftest.er1
6426   cat conftest.err >&5
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -z "$ac_c_werror_flag"
6430                          || test ! -s conftest.err'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; } &&
6436          { ac_try='test -s conftest.$ac_objext'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }; then
6442   eval "$as_ac_Header=yes"
6443 else
6444   echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 eval "$as_ac_Header=no"
6448 fi
6449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6454   cat >>confdefs.h <<_ACEOF
6455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6456 _ACEOF
6457
6458 fi
6459
6460 done
6461
6462
6463
6464 # This can be used to rebuild libtool when needed
6465 LIBTOOL_DEPS="$ltmain"
6466
6467 # Always use our own libtool.
6468 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 test -z "$LN_S" && LN_S="ln -s"
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509 if test -n "${ZSH_VERSION+set}" ; then
6510    setopt NO_GLOB_SUBST
6511 fi
6512
6513 echo "$as_me:$LINENO: checking for objdir" >&5
6514 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6515 if test "${lt_cv_objdir+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   rm -f .libs 2>/dev/null
6519 mkdir .libs 2>/dev/null
6520 if test -d .libs; then
6521   lt_cv_objdir=.libs
6522 else
6523   # MS-DOS does not allow filenames that begin with a dot.
6524   lt_cv_objdir=_libs
6525 fi
6526 rmdir .libs 2>/dev/null
6527 fi
6528 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6529 echo "${ECHO_T}$lt_cv_objdir" >&6
6530 objdir=$lt_cv_objdir
6531
6532
6533
6534
6535
6536 cat >>confdefs.h <<_ACEOF
6537 #define LT_OBJDIR "$lt_cv_objdir/"
6538 _ACEOF
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556 case $host_os in
6557 aix3*)
6558   # AIX sometimes has problems with the GCC collect2 program.  For some
6559   # reason, if we set the COLLECT_NAMES environment variable, the problems
6560   # vanish in a puff of smoke.
6561   if test "X${COLLECT_NAMES+set}" != Xset; then
6562     COLLECT_NAMES=
6563     export COLLECT_NAMES
6564   fi
6565   ;;
6566 esac
6567
6568 # Sed substitution that helps us do robust quoting.  It backslashifies
6569 # metacharacters that are still active within double-quoted strings.
6570 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6571
6572 # Same as above, but do not quote variable references.
6573 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6574
6575 # Sed substitution to delay expansion of an escaped shell variable in a
6576 # double_quote_subst'ed string.
6577 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6578
6579 # Sed substitution to delay expansion of an escaped single quote.
6580 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6581
6582 # Sed substitution to avoid accidental globbing in evaled expressions
6583 no_glob_subst='s/\*/\\\*/g'
6584
6585 # Global variables:
6586 ofile=libtool
6587 can_build_shared=yes
6588
6589 # All known linkers require a `.a' archive for static linking (except MSVC,
6590 # which needs '.lib').
6591 libext=a
6592
6593 with_gnu_ld="$lt_cv_prog_gnu_ld"
6594
6595 old_CC="$CC"
6596 old_CFLAGS="$CFLAGS"
6597
6598 # Set sane defaults for various variables
6599 test -z "$CC" && CC=cc
6600 test -z "$LTCC" && LTCC=$CC
6601 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6602 test -z "$LD" && LD=ld
6603 test -z "$ac_objext" && ac_objext=o
6604
6605 for cc_temp in $compiler""; do
6606   case $cc_temp in
6607     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6608     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6609     \-*) ;;
6610     *) break;;
6611   esac
6612 done
6613 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6614
6615
6616 # Only perform the check for file, if the check method requires it
6617 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6618 case $deplibs_check_method in
6619 file_magic*)
6620   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6621     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6622 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6623 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   case $MAGIC_CMD in
6627 [\\/*] |  ?:[\\/]*)
6628   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6629   ;;
6630 *)
6631   lt_save_MAGIC_CMD="$MAGIC_CMD"
6632   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6633   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6634   for ac_dir in $ac_dummy; do
6635     IFS="$lt_save_ifs"
6636     test -z "$ac_dir" && ac_dir=.
6637     if test -f $ac_dir/${ac_tool_prefix}file; then
6638       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6639       if test -n "$file_magic_test_file"; then
6640         case $deplibs_check_method in
6641         "file_magic "*)
6642           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6643           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6644           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6645             $EGREP "$file_magic_regex" > /dev/null; then
6646             :
6647           else
6648             cat <<_LT_EOF 1>&2
6649
6650 *** Warning: the command libtool uses to detect shared libraries,
6651 *** $file_magic_cmd, produces output that libtool cannot recognize.
6652 *** The result is that libtool may fail to recognize shared libraries
6653 *** as such.  This will affect the creation of libtool libraries that
6654 *** depend on shared libraries, but programs linked with such libtool
6655 *** libraries will work regardless of this problem.  Nevertheless, you
6656 *** may want to report the problem to your system manager and/or to
6657 *** bug-libtool@gnu.org
6658
6659 _LT_EOF
6660           fi ;;
6661         esac
6662       fi
6663       break
6664     fi
6665   done
6666   IFS="$lt_save_ifs"
6667   MAGIC_CMD="$lt_save_MAGIC_CMD"
6668   ;;
6669 esac
6670 fi
6671
6672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673 if test -n "$MAGIC_CMD"; then
6674   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6675 echo "${ECHO_T}$MAGIC_CMD" >&6
6676 else
6677   echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6
6679 fi
6680
6681
6682
6683
6684
6685 if test -z "$lt_cv_path_MAGIC_CMD"; then
6686   if test -n "$ac_tool_prefix"; then
6687     echo "$as_me:$LINENO: checking for file" >&5
6688 echo $ECHO_N "checking for file... $ECHO_C" >&6
6689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   case $MAGIC_CMD in
6693 [\\/*] |  ?:[\\/]*)
6694   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6695   ;;
6696 *)
6697   lt_save_MAGIC_CMD="$MAGIC_CMD"
6698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6699   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6700   for ac_dir in $ac_dummy; do
6701     IFS="$lt_save_ifs"
6702     test -z "$ac_dir" && ac_dir=.
6703     if test -f $ac_dir/file; then
6704       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6705       if test -n "$file_magic_test_file"; then
6706         case $deplibs_check_method in
6707         "file_magic "*)
6708           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6709           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6710           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6711             $EGREP "$file_magic_regex" > /dev/null; then
6712             :
6713           else
6714             cat <<_LT_EOF 1>&2
6715
6716 *** Warning: the command libtool uses to detect shared libraries,
6717 *** $file_magic_cmd, produces output that libtool cannot recognize.
6718 *** The result is that libtool may fail to recognize shared libraries
6719 *** as such.  This will affect the creation of libtool libraries that
6720 *** depend on shared libraries, but programs linked with such libtool
6721 *** libraries will work regardless of this problem.  Nevertheless, you
6722 *** may want to report the problem to your system manager and/or to
6723 *** bug-libtool@gnu.org
6724
6725 _LT_EOF
6726           fi ;;
6727         esac
6728       fi
6729       break
6730     fi
6731   done
6732   IFS="$lt_save_ifs"
6733   MAGIC_CMD="$lt_save_MAGIC_CMD"
6734   ;;
6735 esac
6736 fi
6737
6738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6739 if test -n "$MAGIC_CMD"; then
6740   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6741 echo "${ECHO_T}$MAGIC_CMD" >&6
6742 else
6743   echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6
6745 fi
6746
6747
6748   else
6749     MAGIC_CMD=:
6750   fi
6751 fi
6752
6753   fi
6754   ;;
6755 esac
6756
6757 # Use C for the default configuration in the libtool script
6758
6759 lt_save_CC="$CC"
6760 ac_ext=c
6761 ac_cpp='$CPP $CPPFLAGS'
6762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765
6766
6767 # Source file extension for C test sources.
6768 ac_ext=c
6769
6770 # Object file extension for compiled C test sources.
6771 objext=o
6772 objext=$objext
6773
6774 # Code to be used in simple compile tests
6775 lt_simple_compile_test_code="int some_variable = 0;"
6776
6777 # Code to be used in simple link tests
6778 lt_simple_link_test_code='int main(){return(0);}'
6779
6780
6781
6782
6783
6784
6785
6786 # If no C compiler was specified, use CC.
6787 LTCC=${LTCC-"$CC"}
6788
6789 # If no C compiler flags were specified, use CFLAGS.
6790 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6791
6792 # Allow CC to be a program name with arguments.
6793 compiler=$CC
6794
6795 # Save the default compiler, since it gets overwritten when the other
6796 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6797 compiler_DEFAULT=$CC
6798
6799 # save warnings/boilerplate of simple test code
6800 ac_outfile=conftest.$ac_objext
6801 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6802 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6803 _lt_compiler_boilerplate=`cat conftest.err`
6804 $RM conftest*
6805
6806 ac_outfile=conftest.$ac_objext
6807 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6808 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6809 _lt_linker_boilerplate=`cat conftest.err`
6810 $RM conftest*
6811
6812
6813 ## CAVEAT EMPTOR:
6814 ## There is no encapsulation within the following macros, do not change
6815 ## the running order or otherwise move them around unless you know exactly
6816 ## what you are doing...
6817 if test -n "$compiler"; then
6818
6819 lt_prog_compiler_no_builtin_flag=
6820
6821 if test "$GCC" = yes; then
6822   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6823
6824   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6825 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6826 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   lt_cv_prog_compiler_rtti_exceptions=no
6830    ac_outfile=conftest.$ac_objext
6831    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6832    lt_compiler_flag="-fno-rtti -fno-exceptions"
6833    # Insert the option either (1) after the last *FLAGS variable, or
6834    # (2) before a word containing "conftest.", or (3) at the end.
6835    # Note that $ac_compile itself does not contain backslashes and begins
6836    # with a dollar sign (not a hyphen), so the echo should work correctly.
6837    # The option is referenced via a variable to avoid confusing sed.
6838    lt_compile=`echo "$ac_compile" | $SED \
6839    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6841    -e 's:$: $lt_compiler_flag:'`
6842    (eval echo "\"\$as_me:6842: $lt_compile\"" >&5)
6843    (eval "$lt_compile" 2>conftest.err)
6844    ac_status=$?
6845    cat conftest.err >&5
6846    echo "$as_me:6846: \$? = $ac_status" >&5
6847    if (exit $ac_status) && test -s "$ac_outfile"; then
6848      # The compiler can only warn and ignore the option if not recognized
6849      # So say no if there are warnings other than the usual output.
6850      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6851      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6852      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6853        lt_cv_prog_compiler_rtti_exceptions=yes
6854      fi
6855    fi
6856    $RM conftest*
6857
6858 fi
6859 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6860 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6861
6862 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6863     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6864 else
6865     :
6866 fi
6867
6868 fi
6869
6870
6871
6872
6873
6874
6875   lt_prog_compiler_wl=
6876 lt_prog_compiler_pic=
6877 lt_prog_compiler_static=
6878
6879 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6880 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6881
6882   if test "$GCC" = yes; then
6883     lt_prog_compiler_wl='-Wl,'
6884     lt_prog_compiler_static='-static'
6885
6886     case $host_os in
6887       aix*)
6888       # All AIX code is PIC.
6889       if test "$host_cpu" = ia64; then
6890         # AIX 5 now supports IA64 processor
6891         lt_prog_compiler_static='-Bstatic'
6892       fi
6893       ;;
6894
6895     amigaos*)
6896       if test "$host_cpu" = m68k; then
6897         # FIXME: we need at least 68020 code to build shared libraries, but
6898         # adding the `-m68020' flag to GCC prevents building anything better,
6899         # like `-m68040'.
6900         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6901       fi
6902       ;;
6903
6904     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6905       # PIC is the default for these OSes.
6906       ;;
6907
6908     mingw* | cygwin* | pw32* | os2*)
6909       # This hack is so that the source file can tell whether it is being
6910       # built for inclusion in a dll (and should export symbols for example).
6911       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6912       # (--disable-auto-import) libraries
6913       lt_prog_compiler_pic='-DDLL_EXPORT'
6914       ;;
6915
6916     darwin* | rhapsody*)
6917       # PIC is the default on this platform
6918       # Common symbols not allowed in MH_DYLIB files
6919       lt_prog_compiler_pic='-fno-common'
6920       ;;
6921
6922     hpux*)
6923       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6924       # not for PA HP-UX.
6925       case $host_cpu in
6926       hppa*64*|ia64*)
6927         # +Z the default
6928         ;;
6929       *)
6930         lt_prog_compiler_pic='-fPIC'
6931         ;;
6932       esac
6933       ;;
6934
6935     interix[3-9]*)
6936       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6937       # Instead, we relocate shared libraries at runtime.
6938       ;;
6939
6940     msdosdjgpp*)
6941       # Just because we use GCC doesn't mean we suddenly get shared libraries
6942       # on systems that don't support them.
6943       lt_prog_compiler_can_build_shared=no
6944       enable_shared=no
6945       ;;
6946
6947     *nto* | *qnx*)
6948       # QNX uses GNU C++, but need to define -shared option too, otherwise
6949       # it will coredump.
6950       lt_prog_compiler_pic='-fPIC -shared'
6951       ;;
6952
6953     sysv4*MP*)
6954       if test -d /usr/nec; then
6955         lt_prog_compiler_pic=-Kconform_pic
6956       fi
6957       ;;
6958
6959     *)
6960       lt_prog_compiler_pic='-fPIC'
6961       ;;
6962     esac
6963   else
6964     # PORTME Check for flag to pass linker flags through the system compiler.
6965     case $host_os in
6966     aix*)
6967       lt_prog_compiler_wl='-Wl,'
6968       if test "$host_cpu" = ia64; then
6969         # AIX 5 now supports IA64 processor
6970         lt_prog_compiler_static='-Bstatic'
6971       else
6972         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6973       fi
6974       ;;
6975     darwin*)
6976       # PIC is the default on this platform
6977       # Common symbols not allowed in MH_DYLIB files
6978       case $cc_basename in
6979       xlc*)
6980         lt_prog_compiler_pic='-qnocommon'
6981         lt_prog_compiler_wl='-Wl,'
6982         ;;
6983       esac
6984       ;;
6985
6986     mingw* | cygwin* | pw32* | os2*)
6987       # This hack is so that the source file can tell whether it is being
6988       # built for inclusion in a dll (and should export symbols for example).
6989       lt_prog_compiler_pic='-DDLL_EXPORT'
6990       ;;
6991
6992     hpux9* | hpux10* | hpux11*)
6993       lt_prog_compiler_wl='-Wl,'
6994       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6995       # not for PA HP-UX.
6996       case $host_cpu in
6997       hppa*64*|ia64*)
6998         # +Z the default
6999         ;;
7000       *)
7001         lt_prog_compiler_pic='+Z'
7002         ;;
7003       esac
7004       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7005       lt_prog_compiler_static='${wl}-a ${wl}archive'
7006       ;;
7007
7008     irix5* | irix6* | nonstopux*)
7009       lt_prog_compiler_wl='-Wl,'
7010       # PIC (with -KPIC) is the default.
7011       lt_prog_compiler_static='-non_shared'
7012       ;;
7013
7014     linux* | k*bsd*-gnu)
7015       case $cc_basename in
7016       icc* | ecc*)
7017         lt_prog_compiler_wl='-Wl,'
7018         lt_prog_compiler_pic='-KPIC'
7019         lt_prog_compiler_static='-static'
7020         ;;
7021       pgcc* | pgf77* | pgf90* | pgf95*)
7022         # Portland Group compilers (*not* the Pentium gcc compiler,
7023         # which looks to be a dead project)
7024         lt_prog_compiler_wl='-Wl,'
7025         lt_prog_compiler_pic='-fpic'
7026         lt_prog_compiler_static='-Bstatic'
7027         ;;
7028       ccc*)
7029         lt_prog_compiler_wl='-Wl,'
7030         # All Alpha code is PIC.
7031         lt_prog_compiler_static='-non_shared'
7032         ;;
7033       *)
7034         case `$CC -V 2>&1 | sed 5q` in
7035         *Sun\ C*)
7036           # Sun C 5.9
7037           lt_prog_compiler_pic='-KPIC'
7038           lt_prog_compiler_static='-Bstatic'
7039           lt_prog_compiler_wl='-Wl,'
7040           ;;
7041         *Sun\ F*)
7042           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7043           lt_prog_compiler_pic='-KPIC'
7044           lt_prog_compiler_static='-Bstatic'
7045           lt_prog_compiler_wl=''
7046           ;;
7047         esac
7048         ;;
7049       esac
7050       ;;
7051
7052     newsos6)
7053       lt_prog_compiler_pic='-KPIC'
7054       lt_prog_compiler_static='-Bstatic'
7055       ;;
7056
7057     *nto* | *qnx*)
7058       # QNX uses GNU C++, but need to define -shared option too, otherwise
7059       # it will coredump.
7060       lt_prog_compiler_pic='-fPIC -shared'
7061       ;;
7062
7063     osf3* | osf4* | osf5*)
7064       lt_prog_compiler_wl='-Wl,'
7065       # All OSF/1 code is PIC.
7066       lt_prog_compiler_static='-non_shared'
7067       ;;
7068
7069     rdos*)
7070       lt_prog_compiler_static='-non_shared'
7071       ;;
7072
7073     solaris*)
7074       lt_prog_compiler_pic='-KPIC'
7075       lt_prog_compiler_static='-Bstatic'
7076       case $cc_basename in
7077       f77* | f90* | f95*)
7078         lt_prog_compiler_wl='-Qoption ld ';;
7079       *)
7080         lt_prog_compiler_wl='-Wl,';;
7081       esac
7082       ;;
7083
7084     sunos4*)
7085       lt_prog_compiler_wl='-Qoption ld '
7086       lt_prog_compiler_pic='-PIC'
7087       lt_prog_compiler_static='-Bstatic'
7088       ;;
7089
7090     sysv4 | sysv4.2uw2* | sysv4.3*)
7091       lt_prog_compiler_wl='-Wl,'
7092       lt_prog_compiler_pic='-KPIC'
7093       lt_prog_compiler_static='-Bstatic'
7094       ;;
7095
7096     sysv4*MP*)
7097       if test -d /usr/nec ;then
7098         lt_prog_compiler_pic='-Kconform_pic'
7099         lt_prog_compiler_static='-Bstatic'
7100       fi
7101       ;;
7102
7103     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7104       lt_prog_compiler_wl='-Wl,'
7105       lt_prog_compiler_pic='-KPIC'
7106       lt_prog_compiler_static='-Bstatic'
7107       ;;
7108
7109     unicos*)
7110       lt_prog_compiler_wl='-Wl,'
7111       lt_prog_compiler_can_build_shared=no
7112       ;;
7113
7114     uts4*)
7115       lt_prog_compiler_pic='-pic'
7116       lt_prog_compiler_static='-Bstatic'
7117       ;;
7118
7119     *)
7120       lt_prog_compiler_can_build_shared=no
7121       ;;
7122     esac
7123   fi
7124
7125 case $host_os in
7126   # For platforms which do not support PIC, -DPIC is meaningless:
7127   *djgpp*)
7128     lt_prog_compiler_pic=
7129     ;;
7130   *)
7131     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7132     ;;
7133 esac
7134 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7135 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7136
7137
7138
7139
7140
7141
7142 #
7143 # Check to make sure the PIC flag actually works.
7144 #
7145 if test -n "$lt_prog_compiler_pic"; then
7146   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7147 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7148 if test "${lt_prog_compiler_pic_works+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   lt_prog_compiler_pic_works=no
7152    ac_outfile=conftest.$ac_objext
7153    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7154    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7155    # Insert the option either (1) after the last *FLAGS variable, or
7156    # (2) before a word containing "conftest.", or (3) at the end.
7157    # Note that $ac_compile itself does not contain backslashes and begins
7158    # with a dollar sign (not a hyphen), so the echo should work correctly.
7159    # The option is referenced via a variable to avoid confusing sed.
7160    lt_compile=`echo "$ac_compile" | $SED \
7161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7163    -e 's:$: $lt_compiler_flag:'`
7164    (eval echo "\"\$as_me:7164: $lt_compile\"" >&5)
7165    (eval "$lt_compile" 2>conftest.err)
7166    ac_status=$?
7167    cat conftest.err >&5
7168    echo "$as_me:7168: \$? = $ac_status" >&5
7169    if (exit $ac_status) && test -s "$ac_outfile"; then
7170      # The compiler can only warn and ignore the option if not recognized
7171      # So say no if there are warnings other than the usual output.
7172      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7173      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7174      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7175        lt_prog_compiler_pic_works=yes
7176      fi
7177    fi
7178    $RM conftest*
7179
7180 fi
7181 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7182 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7183
7184 if test x"$lt_prog_compiler_pic_works" = xyes; then
7185     case $lt_prog_compiler_pic in
7186      "" | " "*) ;;
7187      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7188      esac
7189 else
7190     lt_prog_compiler_pic=
7191      lt_prog_compiler_can_build_shared=no
7192 fi
7193
7194 fi
7195
7196
7197
7198
7199
7200
7201 #
7202 # Check to make sure the static flag actually works.
7203 #
7204 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7205 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7206 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7207 if test "${lt_prog_compiler_static_works+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   lt_prog_compiler_static_works=no
7211    save_LDFLAGS="$LDFLAGS"
7212    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7213    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7214    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7215      # The linker can only warn and ignore the option if not recognized
7216      # So say no if there are warnings
7217      if test -s conftest.err; then
7218        # Append any errors to the config.log.
7219        cat conftest.err 1>&5
7220        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7221        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7222        if diff conftest.exp conftest.er2 >/dev/null; then
7223          lt_prog_compiler_static_works=yes
7224        fi
7225      else
7226        lt_prog_compiler_static_works=yes
7227      fi
7228    fi
7229    $RM conftest*
7230    LDFLAGS="$save_LDFLAGS"
7231
7232 fi
7233 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7234 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7235
7236 if test x"$lt_prog_compiler_static_works" = xyes; then
7237     :
7238 else
7239     lt_prog_compiler_static=
7240 fi
7241
7242
7243
7244
7245
7246
7247
7248   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7249 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7250 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   lt_cv_prog_compiler_c_o=no
7254    $RM -r conftest 2>/dev/null
7255    mkdir conftest
7256    cd conftest
7257    mkdir out
7258    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7259
7260    lt_compiler_flag="-o out/conftest2.$ac_objext"
7261    # Insert the option either (1) after the last *FLAGS variable, or
7262    # (2) before a word containing "conftest.", or (3) at the end.
7263    # Note that $ac_compile itself does not contain backslashes and begins
7264    # with a dollar sign (not a hyphen), so the echo should work correctly.
7265    lt_compile=`echo "$ac_compile" | $SED \
7266    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7267    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7268    -e 's:$: $lt_compiler_flag:'`
7269    (eval echo "\"\$as_me:7269: $lt_compile\"" >&5)
7270    (eval "$lt_compile" 2>out/conftest.err)
7271    ac_status=$?
7272    cat out/conftest.err >&5
7273    echo "$as_me:7273: \$? = $ac_status" >&5
7274    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7275    then
7276      # The compiler can only warn and ignore the option if not recognized
7277      # So say no if there are warnings
7278      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7279      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7280      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7281        lt_cv_prog_compiler_c_o=yes
7282      fi
7283    fi
7284    chmod u+w . 2>&5
7285    $RM conftest*
7286    # SGI C++ compiler will create directory out/ii_files/ for
7287    # template instantiation
7288    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7289    $RM out/* && rmdir out
7290    cd ..
7291    $RM -r conftest
7292    $RM conftest*
7293
7294 fi
7295 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7296 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7297
7298
7299
7300
7301
7302
7303   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7304 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7305 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   lt_cv_prog_compiler_c_o=no
7309    $RM -r conftest 2>/dev/null
7310    mkdir conftest
7311    cd conftest
7312    mkdir out
7313    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7314
7315    lt_compiler_flag="-o out/conftest2.$ac_objext"
7316    # Insert the option either (1) after the last *FLAGS variable, or
7317    # (2) before a word containing "conftest.", or (3) at the end.
7318    # Note that $ac_compile itself does not contain backslashes and begins
7319    # with a dollar sign (not a hyphen), so the echo should work correctly.
7320    lt_compile=`echo "$ac_compile" | $SED \
7321    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7323    -e 's:$: $lt_compiler_flag:'`
7324    (eval echo "\"\$as_me:7324: $lt_compile\"" >&5)
7325    (eval "$lt_compile" 2>out/conftest.err)
7326    ac_status=$?
7327    cat out/conftest.err >&5
7328    echo "$as_me:7328: \$? = $ac_status" >&5
7329    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7330    then
7331      # The compiler can only warn and ignore the option if not recognized
7332      # So say no if there are warnings
7333      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7334      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7335      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7336        lt_cv_prog_compiler_c_o=yes
7337      fi
7338    fi
7339    chmod u+w . 2>&5
7340    $RM conftest*
7341    # SGI C++ compiler will create directory out/ii_files/ for
7342    # template instantiation
7343    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7344    $RM out/* && rmdir out
7345    cd ..
7346    $RM -r conftest
7347    $RM conftest*
7348
7349 fi
7350 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7351 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7352
7353
7354
7355
7356 hard_links="nottested"
7357 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7358   # do not overwrite the value of need_locks provided by the user
7359   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7360 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7361   hard_links=yes
7362   $RM conftest*
7363   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7364   touch conftest.a
7365   ln conftest.a conftest.b 2>&5 || hard_links=no
7366   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7367   echo "$as_me:$LINENO: result: $hard_links" >&5
7368 echo "${ECHO_T}$hard_links" >&6
7369   if test "$hard_links" = no; then
7370     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7371 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7372     need_locks=warn
7373   fi
7374 else
7375   need_locks=no
7376 fi
7377
7378
7379
7380
7381
7382
7383   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7384 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7385
7386   runpath_var=
7387   allow_undefined_flag=
7388   always_export_symbols=no
7389   archive_cmds=
7390   archive_expsym_cmds=
7391   compiler_needs_object=no
7392   enable_shared_with_static_runtimes=no
7393   export_dynamic_flag_spec=
7394   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7395   hardcode_automatic=no
7396   hardcode_direct=no
7397   hardcode_direct_absolute=no
7398   hardcode_libdir_flag_spec=
7399   hardcode_libdir_flag_spec_ld=
7400   hardcode_libdir_separator=
7401   hardcode_minus_L=no
7402   hardcode_shlibpath_var=unsupported
7403   inherit_rpath=no
7404   link_all_deplibs=unknown
7405   module_cmds=
7406   module_expsym_cmds=
7407   old_archive_from_new_cmds=
7408   old_archive_from_expsyms_cmds=
7409   thread_safe_flag_spec=
7410   whole_archive_flag_spec=
7411   # include_expsyms should be a list of space-separated symbols to be *always*
7412   # included in the symbol list
7413   include_expsyms=
7414   # exclude_expsyms can be an extended regexp of symbols to exclude
7415   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7416   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7417   # as well as any symbol that contains `d'.
7418   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7419   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7420   # platforms (ab)use it in PIC code, but their linkers get confused if
7421   # the symbol is explicitly referenced.  Since portable code cannot
7422   # rely on this symbol name, it's probably fine to never include it in
7423   # preloaded symbol tables.
7424   extract_expsyms_cmds=
7425
7426   case $host_os in
7427   cygwin* | mingw* | pw32*)
7428     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7429     # When not using gcc, we currently assume that we are using
7430     # Microsoft Visual C++.
7431     if test "$GCC" != yes; then
7432       with_gnu_ld=no
7433     fi
7434     ;;
7435   interix*)
7436     # we just hope/assume this is gcc and not c89 (= MSVC++)
7437     with_gnu_ld=yes
7438     ;;
7439   openbsd*)
7440     with_gnu_ld=no
7441     ;;
7442   esac
7443
7444   ld_shlibs=yes
7445   if test "$with_gnu_ld" = yes; then
7446     # If archive_cmds runs LD, not CC, wlarc should be empty
7447     wlarc='${wl}'
7448
7449     # Set some defaults for GNU ld with shared library support. These
7450     # are reset later if shared libraries are not supported. Putting them
7451     # here allows them to be overridden if necessary.
7452     runpath_var=LD_RUN_PATH
7453     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7454     export_dynamic_flag_spec='${wl}--export-dynamic'
7455     # ancient GNU ld didn't support --whole-archive et. al.
7456     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7457       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7458     else
7459       whole_archive_flag_spec=
7460     fi
7461     supports_anon_versioning=no
7462     case `$LD -v 2>&1` in
7463       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7464       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7465       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7466       *\ 2.11.*) ;; # other 2.11 versions
7467       *) supports_anon_versioning=yes ;;
7468     esac
7469
7470     # See if GNU ld supports shared libraries.
7471     case $host_os in
7472     aix[3-9]*)
7473       # On AIX/PPC, the GNU linker is very broken
7474       if test "$host_cpu" != ia64; then
7475         ld_shlibs=no
7476         cat <<_LT_EOF 1>&2
7477
7478 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7479 *** to be unable to reliably create shared libraries on AIX.
7480 *** Therefore, libtool is disabling shared libraries support.  If you
7481 *** really care for shared libraries, you may want to modify your PATH
7482 *** so that a non-GNU linker is found, and then restart.
7483
7484 _LT_EOF
7485       fi
7486       ;;
7487
7488     amigaos*)
7489       if test "$host_cpu" = m68k; then
7490         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)'
7491         hardcode_libdir_flag_spec='-L$libdir'
7492         hardcode_minus_L=yes
7493       fi
7494
7495       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7496       # that the semantics of dynamic libraries on AmigaOS, at least up
7497       # to version 4, is to share data among multiple programs linked
7498       # with the same dynamic library.  Since this doesn't match the
7499       # behavior of shared libraries on other platforms, we can't use
7500       # them.
7501       ld_shlibs=no
7502       ;;
7503
7504     beos*)
7505       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7506         allow_undefined_flag=unsupported
7507         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7508         # support --undefined.  This deserves some investigation.  FIXME
7509         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7510       else
7511         ld_shlibs=no
7512       fi
7513       ;;
7514
7515     cygwin* | mingw* | pw32*)
7516       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7517       # as there is no search path for DLLs.
7518       hardcode_libdir_flag_spec='-L$libdir'
7519       allow_undefined_flag=unsupported
7520       always_export_symbols=no
7521       enable_shared_with_static_runtimes=yes
7522       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7523
7524       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7525         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7526         # If the export-symbols file already is a .def file (1st line
7527         # is EXPORTS), use it as is; otherwise, prepend...
7528         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7529           cp $export_symbols $output_objdir/$soname.def;
7530         else
7531           echo EXPORTS > $output_objdir/$soname.def;
7532           cat $export_symbols >> $output_objdir/$soname.def;
7533         fi~
7534         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7535       else
7536         ld_shlibs=no
7537       fi
7538       ;;
7539
7540     interix[3-9]*)
7541       hardcode_direct=no
7542       hardcode_shlibpath_var=no
7543       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7544       export_dynamic_flag_spec='${wl}-E'
7545       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7546       # Instead, shared libraries are loaded at an image base (0x10000000 by
7547       # default) and relocated if they conflict, which is a slow very memory
7548       # consuming and fragmenting process.  To avoid this, we pick a random,
7549       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7550       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7551       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7552       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'
7553       ;;
7554
7555     gnu* | linux* | tpf* | k*bsd*-gnu)
7556       tmp_diet=no
7557       if test "$host_os" = linux-dietlibc; then
7558         case $cc_basename in
7559           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7560         esac
7561       fi
7562       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7563          && test "$tmp_diet" = no
7564       then
7565         tmp_addflag=
7566         case $cc_basename,$host_cpu in
7567         pgcc*)                          # Portland Group C compiler
7568           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'
7569           tmp_addflag=' $pic_flag'
7570           ;;
7571         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7572           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'
7573           tmp_addflag=' $pic_flag -Mnomain' ;;
7574         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7575           tmp_addflag=' -i_dynamic' ;;
7576         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7577           tmp_addflag=' -i_dynamic -nofor_main' ;;
7578         ifc* | ifort*)                  # Intel Fortran compiler
7579           tmp_addflag=' -nofor_main' ;;
7580         esac
7581         case `$CC -V 2>&1 | sed 5q` in
7582         *Sun\ C*)                       # Sun C 5.9
7583           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'
7584           compiler_needs_object=yes
7585           tmp_sharedflag='-G' ;;
7586         *Sun\ F*)                       # Sun Fortran 8.3
7587           tmp_sharedflag='-G' ;;
7588         *)
7589           tmp_sharedflag='-shared' ;;
7590         esac
7591         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7592
7593         if test "x$supports_anon_versioning" = xyes; then
7594           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7595             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7596             echo "local: *; };" >> $output_objdir/$libname.ver~
7597             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7598         fi
7599       else
7600         ld_shlibs=no
7601       fi
7602       ;;
7603
7604     netbsd*)
7605       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7606         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7607         wlarc=
7608       else
7609         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7611       fi
7612       ;;
7613
7614     solaris*)
7615       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7616         ld_shlibs=no
7617         cat <<_LT_EOF 1>&2
7618
7619 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7620 *** create shared libraries on Solaris systems.  Therefore, libtool
7621 *** is disabling shared libraries support.  We urge you to upgrade GNU
7622 *** binutils to release 2.9.1 or newer.  Another option is to modify
7623 *** your PATH or compiler configuration so that the native linker is
7624 *** used, and then restart.
7625
7626 _LT_EOF
7627       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7628         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7629         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7630       else
7631         ld_shlibs=no
7632       fi
7633       ;;
7634
7635     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7636       case `$LD -v 2>&1` in
7637         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7638         ld_shlibs=no
7639         cat <<_LT_EOF 1>&2
7640
7641 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7642 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7643 *** is disabling shared libraries support.  We urge you to upgrade GNU
7644 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7645 *** your PATH or compiler configuration so that the native linker is
7646 *** used, and then restart.
7647
7648 _LT_EOF
7649         ;;
7650         *)
7651           # For security reasons, it is highly recommended that you always
7652           # use absolute paths for naming shared libraries, and exclude the
7653           # DT_RUNPATH tag from executables and libraries.  But doing so
7654           # requires that you compile everything twice, which is a pain.
7655           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7656             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7657             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7658             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7659           else
7660             ld_shlibs=no
7661           fi
7662         ;;
7663       esac
7664       ;;
7665
7666     sunos4*)
7667       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7668       wlarc=
7669       hardcode_direct=yes
7670       hardcode_shlibpath_var=no
7671       ;;
7672
7673     *)
7674       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7675         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7676         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7677       else
7678         ld_shlibs=no
7679       fi
7680       ;;
7681     esac
7682
7683     if test "$ld_shlibs" = no; then
7684       runpath_var=
7685       hardcode_libdir_flag_spec=
7686       export_dynamic_flag_spec=
7687       whole_archive_flag_spec=
7688     fi
7689   else
7690     # PORTME fill in a description of your system's linker (not GNU ld)
7691     case $host_os in
7692     aix3*)
7693       allow_undefined_flag=unsupported
7694       always_export_symbols=yes
7695       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'
7696       # Note: this linker hardcodes the directories in LIBPATH if there
7697       # are no directories specified by -L.
7698       hardcode_minus_L=yes
7699       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7700         # Neither direct hardcoding nor static linking is supported with a
7701         # broken collect2.
7702         hardcode_direct=unsupported
7703       fi
7704       ;;
7705
7706     aix[4-9]*)
7707       if test "$host_cpu" = ia64; then
7708         # On IA64, the linker does run time linking by default, so we don't
7709         # have to do anything special.
7710         aix_use_runtimelinking=no
7711         exp_sym_flag='-Bexport'
7712         no_entry_flag=""
7713       else
7714         # If we're using GNU nm, then we don't want the "-C" option.
7715         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7716         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7717           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'
7718         else
7719           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'
7720         fi
7721         aix_use_runtimelinking=no
7722
7723         # Test if we are trying to use run time linking or normal
7724         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7725         # need to do runtime linking.
7726         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7727           for ld_flag in $LDFLAGS; do
7728           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7729             aix_use_runtimelinking=yes
7730             break
7731           fi
7732           done
7733           ;;
7734         esac
7735
7736         exp_sym_flag='-bexport'
7737         no_entry_flag='-bnoentry'
7738       fi
7739
7740       # When large executables or shared objects are built, AIX ld can
7741       # have problems creating the table of contents.  If linking a library
7742       # or program results in "error TOC overflow" add -mminimal-toc to
7743       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7744       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7745
7746       archive_cmds=''
7747       hardcode_direct=yes
7748       hardcode_direct_absolute=yes
7749       hardcode_libdir_separator=':'
7750       link_all_deplibs=yes
7751       file_list_spec='${wl}-f,'
7752
7753       if test "$GCC" = yes; then
7754         case $host_os in aix4.[012]|aix4.[012].*)
7755         # We only want to do this on AIX 4.2 and lower, the check
7756         # below for broken collect2 doesn't work under 4.3+
7757           collect2name=`${CC} -print-prog-name=collect2`
7758           if test -f "$collect2name" &&
7759            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7760           then
7761           # We have reworked collect2
7762           :
7763           else
7764           # We have old collect2
7765           hardcode_direct=unsupported
7766           # It fails to find uninstalled libraries when the uninstalled
7767           # path is not listed in the libpath.  Setting hardcode_minus_L
7768           # to unsupported forces relinking
7769           hardcode_minus_L=yes
7770           hardcode_libdir_flag_spec='-L$libdir'
7771           hardcode_libdir_separator=
7772           fi
7773           ;;
7774         esac
7775         shared_flag='-shared'
7776         if test "$aix_use_runtimelinking" = yes; then
7777           shared_flag="$shared_flag "'${wl}-G'
7778         fi
7779       else
7780         # not using gcc
7781         if test "$host_cpu" = ia64; then
7782         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7783         # chokes on -Wl,-G. The following line is correct:
7784           shared_flag='-G'
7785         else
7786           if test "$aix_use_runtimelinking" = yes; then
7787             shared_flag='${wl}-G'
7788           else
7789             shared_flag='${wl}-bM:SRE'
7790           fi
7791         fi
7792       fi
7793
7794       # It seems that -bexpall does not export symbols beginning with
7795       # underscore (_), so it is better to generate a list of symbols to export.
7796       always_export_symbols=yes
7797       if test "$aix_use_runtimelinking" = yes; then
7798         # Warning - without using the other runtime loading flags (-brtl),
7799         # -berok will link without error, but may produce a broken library.
7800         allow_undefined_flag='-berok'
7801         # Determine the default libpath from the value encoded in an
7802         # empty executable.
7803         cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h.  */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h.  */
7809
7810 int
7811 main ()
7812 {
7813
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820   (eval $ac_link) 2>conftest.er1
7821   ac_status=$?
7822   grep -v '^ *+' conftest.er1 >conftest.err
7823   rm -f conftest.er1
7824   cat conftest.err >&5
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -z "$ac_c_werror_flag"
7828                          || test ! -s conftest.err'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; } &&
7834          { ac_try='test -s conftest$ac_exeext'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840
7841 lt_aix_libpath_sed='
7842     /Import File Strings/,/^$/ {
7843         /^0/ {
7844             s/^0  *\(.*\)$/\1/
7845             p
7846         }
7847     }'
7848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7849 # Check for a 64-bit object if we didn't find anything.
7850 if test -z "$aix_libpath"; then
7851   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7852 fi
7853 else
7854   echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857 fi
7858 rm -f conftest.err conftest.$ac_objext \
7859       conftest$ac_exeext conftest.$ac_ext
7860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7861
7862         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7863         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"
7864       else
7865         if test "$host_cpu" = ia64; then
7866           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7867           allow_undefined_flag="-z nodefs"
7868           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"
7869         else
7870          # Determine the default libpath from the value encoded in an
7871          # empty executable.
7872          cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h.  */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h.  */
7878
7879 int
7880 main ()
7881 {
7882
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext conftest$ac_exeext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7889   (eval $ac_link) 2>conftest.er1
7890   ac_status=$?
7891   grep -v '^ *+' conftest.er1 >conftest.err
7892   rm -f conftest.er1
7893   cat conftest.err >&5
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } &&
7896          { ac_try='test -z "$ac_c_werror_flag"
7897                          || test ! -s conftest.err'
7898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; } &&
7903          { ac_try='test -s conftest$ac_exeext'
7904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905   (eval $ac_try) 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); }; }; then
7909
7910 lt_aix_libpath_sed='
7911     /Import File Strings/,/^$/ {
7912         /^0/ {
7913             s/^0  *\(.*\)$/\1/
7914             p
7915         }
7916     }'
7917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7918 # Check for a 64-bit object if we didn't find anything.
7919 if test -z "$aix_libpath"; then
7920   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7921 fi
7922 else
7923   echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7925
7926 fi
7927 rm -f conftest.err conftest.$ac_objext \
7928       conftest$ac_exeext conftest.$ac_ext
7929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7930
7931          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7932           # Warning - without using the other run time loading flags,
7933           # -berok will link without error, but may produce a broken library.
7934           no_undefined_flag=' ${wl}-bernotok'
7935           allow_undefined_flag=' ${wl}-berok'
7936           # Exported symbols can be pulled into shared objects from archives
7937           whole_archive_flag_spec='$convenience'
7938           archive_cmds_need_lc=yes
7939           # This is similar to how AIX traditionally builds its shared libraries.
7940           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'
7941         fi
7942       fi
7943       ;;
7944
7945     amigaos*)
7946       if test "$host_cpu" = m68k; then
7947         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)'
7948         hardcode_libdir_flag_spec='-L$libdir'
7949         hardcode_minus_L=yes
7950       fi
7951       # see comment about different semantics on the GNU ld section
7952       ld_shlibs=no
7953       ;;
7954
7955     bsdi[45]*)
7956       export_dynamic_flag_spec=-rdynamic
7957       ;;
7958
7959     cygwin* | mingw* | pw32*)
7960       # When not using gcc, we currently assume that we are using
7961       # Microsoft Visual C++.
7962       # hardcode_libdir_flag_spec is actually meaningless, as there is
7963       # no search path for DLLs.
7964       hardcode_libdir_flag_spec=' '
7965       allow_undefined_flag=unsupported
7966       # Tell ltmain to make .lib files, not .a files.
7967       libext=lib
7968       # Tell ltmain to make .dll files, not .so files.
7969       shrext_cmds=".dll"
7970       # FIXME: Setting linknames here is a bad hack.
7971       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7972       # The linker will automatically build a .lib file if we build a DLL.
7973       old_archive_from_new_cmds='true'
7974       # FIXME: Should let the user specify the lib program.
7975       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7976       fix_srcfile_path='`cygpath -w "$srcfile"`'
7977       enable_shared_with_static_runtimes=yes
7978       ;;
7979
7980     darwin* | rhapsody*)
7981       case $host_os in
7982       rhapsody* | darwin1.[012])
7983         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7984         ;;
7985       *) # Darwin 1.3 on
7986         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7987         10.[012])
7988           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7989           ;;
7990         10.*)
7991           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7992           ;;
7993         esac
7994         ;;
7995       esac
7996       archive_cmds_need_lc=no
7997       hardcode_direct=no
7998       hardcode_automatic=yes
7999       hardcode_shlibpath_var=unsupported
8000       whole_archive_flag_spec=''
8001       link_all_deplibs=yes
8002       if test "$GCC" = yes ; then
8003         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   lt_cv_apple_cc_single_mod=no
8007         if test -z "${LT_MULTI_MODULE}"; then
8008           # By default we will add the -single_module flag. You can override
8009           # by either setting the environment variable LT_MULTI_MODULE
8010           # non-empty at configure time, or by adding -multi-module to the
8011           # link flags.
8012           echo "int foo(void){return 1;}" > conftest.c
8013           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8014               -dynamiclib ${wl}-single_module conftest.c
8015           if test -f libconftest.dylib; then
8016               lt_cv_apple_cc_single_mod=yes
8017               rm libconftest.dylib
8018           fi
8019           rm conftest.$ac_ext
8020         fi
8021 fi
8022
8023         output_verbose_link_cmd=echo
8024         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8025           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8026           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}'
8027         else
8028           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8029           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}'
8030         fi
8031         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8032         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}'
8033       else
8034         case $cc_basename in
8035         xlc*)
8036           output_verbose_link_cmd=echo
8037           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8038           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8039           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8040           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}'
8041           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}'
8042           ;;
8043         *)
8044           ld_shlibs=no
8045           ;;
8046         esac
8047       fi
8048       ;;
8049
8050     dgux*)
8051       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8052       hardcode_libdir_flag_spec='-L$libdir'
8053       hardcode_shlibpath_var=no
8054       ;;
8055
8056     freebsd1*)
8057       ld_shlibs=no
8058       ;;
8059
8060     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8061     # support.  Future versions do this automatically, but an explicit c++rt0.o
8062     # does not break anything, and helps significantly (at the cost of a little
8063     # extra space).
8064     freebsd2.2*)
8065       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8066       hardcode_libdir_flag_spec='-R$libdir'
8067       hardcode_direct=yes
8068       hardcode_shlibpath_var=no
8069       ;;
8070
8071     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8072     freebsd2*)
8073       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8074       hardcode_direct=yes
8075       hardcode_minus_L=yes
8076       hardcode_shlibpath_var=no
8077       ;;
8078
8079     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8080     freebsd* | dragonfly*)
8081       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8082       hardcode_libdir_flag_spec='-R$libdir'
8083       hardcode_direct=yes
8084       hardcode_shlibpath_var=no
8085       ;;
8086
8087     hpux9*)
8088       if test "$GCC" = yes; then
8089         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'
8090       else
8091         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'
8092       fi
8093       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8094       hardcode_libdir_separator=:
8095       hardcode_direct=yes
8096
8097       # hardcode_minus_L: Not really in the search PATH,
8098       # but as the default location of the library.
8099       hardcode_minus_L=yes
8100       export_dynamic_flag_spec='${wl}-E'
8101       ;;
8102
8103     hpux10*)
8104       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8105         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8106       else
8107         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8108       fi
8109       if test "$with_gnu_ld" = no; then
8110         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8111         hardcode_libdir_flag_spec_ld='+b $libdir'
8112         hardcode_libdir_separator=:
8113         hardcode_direct=yes
8114         hardcode_direct_absolute=yes
8115         export_dynamic_flag_spec='${wl}-E'
8116         # hardcode_minus_L: Not really in the search PATH,
8117         # but as the default location of the library.
8118         hardcode_minus_L=yes
8119       fi
8120       ;;
8121
8122     hpux11*)
8123       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8124         case $host_cpu in
8125         hppa*64*)
8126           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8127           ;;
8128         ia64*)
8129           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8130           ;;
8131         *)
8132           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8133           ;;
8134         esac
8135       else
8136         case $host_cpu in
8137         hppa*64*)
8138           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8139           ;;
8140         ia64*)
8141           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8142           ;;
8143         *)
8144           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8145           ;;
8146         esac
8147       fi
8148       if test "$with_gnu_ld" = no; then
8149         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8150         hardcode_libdir_separator=:
8151
8152         case $host_cpu in
8153         hppa*64*|ia64*)
8154           hardcode_direct=no
8155           hardcode_shlibpath_var=no
8156           ;;
8157         *)
8158           hardcode_direct=yes
8159           hardcode_direct_absolute=yes
8160           export_dynamic_flag_spec='${wl}-E'
8161
8162           # hardcode_minus_L: Not really in the search PATH,
8163           # but as the default location of the library.
8164           hardcode_minus_L=yes
8165           ;;
8166         esac
8167       fi
8168       ;;
8169
8170     irix5* | irix6* | nonstopux*)
8171       if test "$GCC" = yes; then
8172         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'
8173         # Try to use the -exported_symbol ld option, if it does not
8174         # work, assume that -exports_file does not work either and
8175         # implicitly export all symbols.
8176         save_LDFLAGS="$LDFLAGS"
8177         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8178         cat >conftest.$ac_ext <<_ACEOF
8179 int foo(void) {}
8180 _ACEOF
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183   (eval $ac_link) 2>conftest.er1
8184   ac_status=$?
8185   grep -v '^ *+' conftest.er1 >conftest.err
8186   rm -f conftest.er1
8187   cat conftest.err >&5
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -z "$ac_c_werror_flag"
8191                          || test ! -s conftest.err'
8192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193   (eval $ac_try) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; } &&
8197          { ac_try='test -s conftest$ac_exeext'
8198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199   (eval $ac_try) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; }; then
8203   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'
8204
8205 else
8206   echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209 fi
8210 rm -f conftest.err conftest.$ac_objext \
8211       conftest$ac_exeext conftest.$ac_ext
8212         LDFLAGS="$save_LDFLAGS"
8213       else
8214         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'
8215         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'
8216       fi
8217       archive_cmds_need_lc='no'
8218       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8219       hardcode_libdir_separator=:
8220       inherit_rpath=yes
8221       link_all_deplibs=yes
8222       ;;
8223
8224     netbsd*)
8225       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8226         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8227       else
8228         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8229       fi
8230       hardcode_libdir_flag_spec='-R$libdir'
8231       hardcode_direct=yes
8232       hardcode_shlibpath_var=no
8233       ;;
8234
8235     newsos6)
8236       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8237       hardcode_direct=yes
8238       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8239       hardcode_libdir_separator=:
8240       hardcode_shlibpath_var=no
8241       ;;
8242
8243     *nto* | *qnx*)
8244       ;;
8245
8246     openbsd*)
8247       hardcode_direct=yes
8248       hardcode_shlibpath_var=no
8249       hardcode_direct_absolute=yes
8250       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8251         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8252         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8253         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8254         export_dynamic_flag_spec='${wl}-E'
8255       else
8256         case $host_os in
8257         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8258           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8259           hardcode_libdir_flag_spec='-R$libdir'
8260           ;;
8261         *)
8262           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8263           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8264           ;;
8265         esac
8266       fi
8267       ;;
8268
8269     os2*)
8270       hardcode_libdir_flag_spec='-L$libdir'
8271       hardcode_minus_L=yes
8272       allow_undefined_flag=unsupported
8273       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'
8274       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8275       ;;
8276
8277     osf3*)
8278       if test "$GCC" = yes; then
8279         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8280         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'
8281       else
8282         allow_undefined_flag=' -expect_unresolved \*'
8283         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'
8284       fi
8285       archive_cmds_need_lc='no'
8286       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8287       hardcode_libdir_separator=:
8288       ;;
8289
8290     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8291       if test "$GCC" = yes; then
8292         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8293         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'
8294         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8295       else
8296         allow_undefined_flag=' -expect_unresolved \*'
8297         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'
8298         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~
8299         $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'
8300
8301         # Both c and cxx compiler support -rpath directly
8302         hardcode_libdir_flag_spec='-rpath $libdir'
8303       fi
8304       archive_cmds_need_lc='no'
8305       hardcode_libdir_separator=:
8306       ;;
8307
8308     solaris*)
8309       no_undefined_flag=' -z defs'
8310       if test "$GCC" = yes; then
8311         wlarc='${wl}'
8312         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8313         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8314           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8315       else
8316         case `$CC -V 2>&1` in
8317         *"Compilers 5.0"*)
8318           wlarc=''
8319           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8320           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8321           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8322           ;;
8323         *)
8324           wlarc='${wl}'
8325           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8326           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8327           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8328           ;;
8329         esac
8330       fi
8331       hardcode_libdir_flag_spec='-R$libdir'
8332       hardcode_shlibpath_var=no
8333       case $host_os in
8334       solaris2.[0-5] | solaris2.[0-5].*) ;;
8335       *)
8336         # The compiler driver will combine and reorder linker options,
8337         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8338         # but is careful enough not to reorder.
8339         # Supported since Solaris 2.6 (maybe 2.5.1?)
8340         if test "$GCC" = yes; then
8341           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8342         else
8343           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8344         fi
8345         ;;
8346       esac
8347       link_all_deplibs=yes
8348       ;;
8349
8350     sunos4*)
8351       if test "x$host_vendor" = xsequent; then
8352         # Use $CC to link under sequent, because it throws in some extra .o
8353         # files that make .init and .fini sections work.
8354         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8355       else
8356         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8357       fi
8358       hardcode_libdir_flag_spec='-L$libdir'
8359       hardcode_direct=yes
8360       hardcode_minus_L=yes
8361       hardcode_shlibpath_var=no
8362       ;;
8363
8364     sysv4)
8365       case $host_vendor in
8366         sni)
8367           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8368           hardcode_direct=yes # is this really true???
8369         ;;
8370         siemens)
8371           ## LD is ld it makes a PLAMLIB
8372           ## CC just makes a GrossModule.
8373           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8374           reload_cmds='$CC -r -o $output$reload_objs'
8375           hardcode_direct=no
8376         ;;
8377         motorola)
8378           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8379           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8380         ;;
8381       esac
8382       runpath_var='LD_RUN_PATH'
8383       hardcode_shlibpath_var=no
8384       ;;
8385
8386     sysv4.3*)
8387       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388       hardcode_shlibpath_var=no
8389       export_dynamic_flag_spec='-Bexport'
8390       ;;
8391
8392     sysv4*MP*)
8393       if test -d /usr/nec; then
8394         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8395         hardcode_shlibpath_var=no
8396         runpath_var=LD_RUN_PATH
8397         hardcode_runpath_var=yes
8398         ld_shlibs=yes
8399       fi
8400       ;;
8401
8402     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8403       no_undefined_flag='${wl}-z,text'
8404       archive_cmds_need_lc=no
8405       hardcode_shlibpath_var=no
8406       runpath_var='LD_RUN_PATH'
8407
8408       if test "$GCC" = yes; then
8409         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8410         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8411       else
8412         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8413         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414       fi
8415       ;;
8416
8417     sysv5* | sco3.2v5* | sco5v6*)
8418       # Note: We can NOT use -z defs as we might desire, because we do not
8419       # link with -lc, and that would cause any symbols used from libc to
8420       # always be unresolved, which means just about no library would
8421       # ever link correctly.  If we're not using GNU ld we use -z text
8422       # though, which does catch some bad symbols but isn't as heavy-handed
8423       # as -z defs.
8424       no_undefined_flag='${wl}-z,text'
8425       allow_undefined_flag='${wl}-z,nodefs'
8426       archive_cmds_need_lc=no
8427       hardcode_shlibpath_var=no
8428       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8429       hardcode_libdir_separator=':'
8430       link_all_deplibs=yes
8431       export_dynamic_flag_spec='${wl}-Bexport'
8432       runpath_var='LD_RUN_PATH'
8433
8434       if test "$GCC" = yes; then
8435         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8436         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8437       else
8438         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8440       fi
8441       ;;
8442
8443     uts4*)
8444       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445       hardcode_libdir_flag_spec='-L$libdir'
8446       hardcode_shlibpath_var=no
8447       ;;
8448
8449     *)
8450       ld_shlibs=no
8451       ;;
8452     esac
8453
8454     if test x$host_vendor = xsni; then
8455       case $host in
8456       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8457         export_dynamic_flag_spec='${wl}-Blargedynsym'
8458         ;;
8459       esac
8460     fi
8461   fi
8462
8463 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8464 echo "${ECHO_T}$ld_shlibs" >&6
8465 test "$ld_shlibs" = no && can_build_shared=no
8466
8467 with_gnu_ld=$with_gnu_ld
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483 #
8484 # Do we need to explicitly link libc?
8485 #
8486 case "x$archive_cmds_need_lc" in
8487 x|xyes)
8488   # Assume -lc should be added
8489   archive_cmds_need_lc=yes
8490
8491   if test "$enable_shared" = yes && test "$GCC" = yes; then
8492     case $archive_cmds in
8493     *'~'*)
8494       # FIXME: we may have to deal with multi-command sequences.
8495       ;;
8496     '$CC '*)
8497       # Test whether the compiler implicitly links with -lc since on some
8498       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8499       # to ld, don't add -lc before -lgcc.
8500       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8501 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8502       $RM conftest*
8503       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8504
8505       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506   (eval $ac_compile) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } 2>conftest.err; then
8510         soname=conftest
8511         lib=conftest
8512         libobjs=conftest.$ac_objext
8513         deplibs=
8514         wl=$lt_prog_compiler_wl
8515         pic_flag=$lt_prog_compiler_pic
8516         compiler_flags=-v
8517         linker_flags=-v
8518         verstring=
8519         output_objdir=.
8520         libname=conftest
8521         lt_save_allow_undefined_flag=$allow_undefined_flag
8522         allow_undefined_flag=
8523         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8524   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }
8528         then
8529           archive_cmds_need_lc=no
8530         else
8531           archive_cmds_need_lc=yes
8532         fi
8533         allow_undefined_flag=$lt_save_allow_undefined_flag
8534       else
8535         cat conftest.err 1>&5
8536       fi
8537       $RM conftest*
8538       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8539 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8540       ;;
8541     esac
8542   fi
8543   ;;
8544 esac
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8703 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8704 withGCC=$GCC
8705 if test "$withGCC" = yes; then
8706   case $host_os in
8707     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8708     *) lt_awk_arg="/^libraries:/" ;;
8709   esac
8710   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8711   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8712     # if the path contains ";" then we assume it to be the separator
8713     # otherwise default to the standard path separator (i.e. ":") - it is
8714     # assumed that no part of a normal pathname contains ";" but that should
8715     # okay in the real world where ";" in dirpaths is itself problematic.
8716     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8717   else
8718     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8719   fi
8720   # Ok, now we have the path, separated by spaces, we can step through it
8721   # and add multilib dir if necessary.
8722   lt_tmp_lt_search_path_spec=
8723   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8724   for lt_sys_path in $lt_search_path_spec; do
8725     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8726       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8727     else
8728       test -d "$lt_sys_path" && \
8729         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8730     fi
8731   done
8732   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8733 BEGIN {RS=" "; FS="/|\n";} {
8734   lt_foo="";
8735   lt_count=0;
8736   for (lt_i = NF; lt_i > 0; lt_i--) {
8737     if ($lt_i != "" && $lt_i != ".") {
8738       if ($lt_i == "..") {
8739         lt_count++;
8740       } else {
8741         if (lt_count == 0) {
8742           lt_foo="/" $lt_i lt_foo;
8743         } else {
8744           lt_count--;
8745         }
8746       }
8747     }
8748   }
8749   if (lt_foo != "") { lt_freq[lt_foo]++; }
8750   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8751 }'`
8752   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8753 else
8754   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8755 fi
8756 library_names_spec=
8757 libname_spec='lib$name'
8758 soname_spec=
8759 shrext_cmds=".so"
8760 postinstall_cmds=
8761 postuninstall_cmds=
8762 finish_cmds=
8763 finish_eval=
8764 shlibpath_var=
8765 shlibpath_overrides_runpath=unknown
8766 version_type=none
8767 dynamic_linker="$host_os ld.so"
8768 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8769 need_lib_prefix=unknown
8770 hardcode_into_libs=no
8771
8772 # when you set need_version to no, make sure it does not cause -set_version
8773 # flags to be left without arguments
8774 need_version=unknown
8775
8776 case $host_os in
8777 aix3*)
8778   version_type=linux
8779   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8780   shlibpath_var=LIBPATH
8781
8782   # AIX 3 has no versioning support, so we append a major version to the name.
8783   soname_spec='${libname}${release}${shared_ext}$major'
8784   ;;
8785
8786 aix[4-9]*)
8787   version_type=linux
8788   need_lib_prefix=no
8789   need_version=no
8790   hardcode_into_libs=yes
8791   if test "$host_cpu" = ia64; then
8792     # AIX 5 supports IA64
8793     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8794     shlibpath_var=LD_LIBRARY_PATH
8795   else
8796     # With GCC up to 2.95.x, collect2 would create an import file
8797     # for dependence libraries.  The import file would start with
8798     # the line `#! .'.  This would cause the generated library to
8799     # depend on `.', always an invalid library.  This was fixed in
8800     # development snapshots of GCC prior to 3.0.
8801     case $host_os in
8802       aix4 | aix4.[01] | aix4.[01].*)
8803       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8804            echo ' yes '
8805            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8806         :
8807       else
8808         can_build_shared=no
8809       fi
8810       ;;
8811     esac
8812     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8813     # soname into executable. Probably we can add versioning support to
8814     # collect2, so additional links can be useful in future.
8815     if test "$aix_use_runtimelinking" = yes; then
8816       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8817       # instead of lib<name>.a to let people know that these are not
8818       # typical AIX shared libraries.
8819       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820     else
8821       # We preserve .a as extension for shared libraries through AIX4.2
8822       # and later when we are not doing run time linking.
8823       library_names_spec='${libname}${release}.a $libname.a'
8824       soname_spec='${libname}${release}${shared_ext}$major'
8825     fi
8826     shlibpath_var=LIBPATH
8827   fi
8828   ;;
8829
8830 amigaos*)
8831   if test "$host_cpu" = m68k; then
8832     library_names_spec='$libname.ixlibrary $libname.a'
8833     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8834     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'
8835   else
8836     dynamic_linker=no
8837   fi
8838   ;;
8839
8840 beos*)
8841   library_names_spec='${libname}${shared_ext}'
8842   dynamic_linker="$host_os ld.so"
8843   shlibpath_var=LIBRARY_PATH
8844   ;;
8845
8846 bsdi[45]*)
8847   version_type=linux
8848   need_version=no
8849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8850   soname_spec='${libname}${release}${shared_ext}$major'
8851   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8852   shlibpath_var=LD_LIBRARY_PATH
8853   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8854   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8855   # the default ld.so.conf also contains /usr/contrib/lib and
8856   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8857   # libtool to hard-code these into programs
8858   ;;
8859
8860 cygwin* | mingw* | pw32*)
8861   version_type=windows
8862   shrext_cmds=".dll"
8863   need_version=no
8864   need_lib_prefix=no
8865
8866   case $withGCC,$host_os in
8867   yes,cygwin* | yes,mingw* | yes,pw32*)
8868     library_names_spec='$libname.dll.a'
8869     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8870     postinstall_cmds='base_file=`basename \${file}`~
8871       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8872       dldir=$destdir/`dirname \$dlpath`~
8873       test -d \$dldir || mkdir -p \$dldir~
8874       $install_prog $dir/$dlname \$dldir/$dlname~
8875       chmod a+x \$dldir/$dlname~
8876       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8877         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8878       fi'
8879     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8880       dlpath=$dir/\$dldll~
8881        $RM \$dlpath'
8882     shlibpath_overrides_runpath=yes
8883
8884     case $host_os in
8885     cygwin*)
8886       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8887       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8889       ;;
8890     mingw*)
8891       # MinGW DLLs use traditional 'lib' prefix
8892       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8894       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8895         # It is most probably a Windows format PATH printed by
8896         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8897         # path with ; separators, and with drive letters. We can handle the
8898         # drive letters (cygwin fileutils understands them), so leave them,
8899         # especially as we might pass files found there to a mingw objdump,
8900         # which wouldn't understand a cygwinified path. Ahh.
8901         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8902       else
8903         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8904       fi
8905       ;;
8906     pw32*)
8907       # pw32 DLLs use 'pw' prefix rather than 'lib'
8908       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8909       ;;
8910     esac
8911     ;;
8912
8913   *)
8914     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8915     ;;
8916   esac
8917   dynamic_linker='Win32 ld.exe'
8918   # FIXME: first we should search . and the directory the executable is in
8919   shlibpath_var=PATH
8920   ;;
8921
8922 darwin* | rhapsody*)
8923   dynamic_linker="$host_os dyld"
8924   version_type=darwin
8925   need_lib_prefix=no
8926   need_version=no
8927   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8928   soname_spec='${libname}${release}${major}$shared_ext'
8929   shlibpath_overrides_runpath=yes
8930   shlibpath_var=DYLD_LIBRARY_PATH
8931   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8932
8933   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8934   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8935   ;;
8936
8937 dgux*)
8938   version_type=linux
8939   need_lib_prefix=no
8940   need_version=no
8941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8942   soname_spec='${libname}${release}${shared_ext}$major'
8943   shlibpath_var=LD_LIBRARY_PATH
8944   ;;
8945
8946 freebsd1*)
8947   dynamic_linker=no
8948   ;;
8949
8950 freebsd* | dragonfly*)
8951   # DragonFly does not have aout.  When/if they implement a new
8952   # versioning mechanism, adjust this.
8953   if test -x /usr/bin/objformat; then
8954     objformat=`/usr/bin/objformat`
8955   else
8956     case $host_os in
8957     freebsd[123]*) objformat=aout ;;
8958     *) objformat=elf ;;
8959     esac
8960   fi
8961   version_type=freebsd-$objformat
8962   case $version_type in
8963     freebsd-elf*)
8964       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8965       need_version=no
8966       need_lib_prefix=no
8967       ;;
8968     freebsd-*)
8969       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8970       need_version=yes
8971       ;;
8972   esac
8973   shlibpath_var=LD_LIBRARY_PATH
8974   case $host_os in
8975   freebsd2*)
8976     shlibpath_overrides_runpath=yes
8977     ;;
8978   freebsd3.[01]* | freebsdelf3.[01]*)
8979     shlibpath_overrides_runpath=yes
8980     hardcode_into_libs=yes
8981     ;;
8982   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8983   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8984     shlibpath_overrides_runpath=no
8985     hardcode_into_libs=yes
8986     ;;
8987   *) # from 4.6 on, and DragonFly
8988     shlibpath_overrides_runpath=yes
8989     hardcode_into_libs=yes
8990     ;;
8991   esac
8992   ;;
8993
8994 gnu*)
8995   version_type=linux
8996   need_lib_prefix=no
8997   need_version=no
8998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8999   soname_spec='${libname}${release}${shared_ext}$major'
9000   shlibpath_var=LD_LIBRARY_PATH
9001   hardcode_into_libs=yes
9002   ;;
9003
9004 hpux9* | hpux10* | hpux11*)
9005   # Give a soname corresponding to the major version so that dld.sl refuses to
9006   # link against other versions.
9007   version_type=sunos
9008   need_lib_prefix=no
9009   need_version=no
9010   case $host_cpu in
9011   ia64*)
9012     shrext_cmds='.so'
9013     hardcode_into_libs=yes
9014     dynamic_linker="$host_os dld.so"
9015     shlibpath_var=LD_LIBRARY_PATH
9016     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018     soname_spec='${libname}${release}${shared_ext}$major'
9019     if test "X$HPUX_IA64_MODE" = X32; then
9020       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9021     else
9022       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9023     fi
9024     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9025     ;;
9026   hppa*64*)
9027     shrext_cmds='.sl'
9028     hardcode_into_libs=yes
9029     dynamic_linker="$host_os dld.sl"
9030     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9031     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033     soname_spec='${libname}${release}${shared_ext}$major'
9034     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9035     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9036     ;;
9037   *)
9038     shrext_cmds='.sl'
9039     dynamic_linker="$host_os dld.sl"
9040     shlibpath_var=SHLIB_PATH
9041     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043     soname_spec='${libname}${release}${shared_ext}$major'
9044     ;;
9045   esac
9046   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9047   postinstall_cmds='chmod 555 $lib'
9048   ;;
9049
9050 interix[3-9]*)
9051   version_type=linux
9052   need_lib_prefix=no
9053   need_version=no
9054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   shlibpath_overrides_runpath=no
9059   hardcode_into_libs=yes
9060   ;;
9061
9062 irix5* | irix6* | nonstopux*)
9063   case $host_os in
9064     nonstopux*) version_type=nonstopux ;;
9065     *)
9066         if test "$lt_cv_prog_gnu_ld" = yes; then
9067                 version_type=linux
9068         else
9069                 version_type=irix
9070         fi ;;
9071   esac
9072   need_lib_prefix=no
9073   need_version=no
9074   soname_spec='${libname}${release}${shared_ext}$major'
9075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9076   case $host_os in
9077   irix5* | nonstopux*)
9078     libsuff= shlibsuff=
9079     ;;
9080   *)
9081     case $LD in # libtool.m4 will add one of these switches to LD
9082     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9083       libsuff= shlibsuff= libmagic=32-bit;;
9084     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9085       libsuff=32 shlibsuff=N32 libmagic=N32;;
9086     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9087       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9088     *) libsuff= shlibsuff= libmagic=never-match;;
9089     esac
9090     ;;
9091   esac
9092   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9093   shlibpath_overrides_runpath=no
9094   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9095   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9096   hardcode_into_libs=yes
9097   ;;
9098
9099 # No shared lib support for Linux oldld, aout, or coff.
9100 linux*oldld* | linux*aout* | linux*coff*)
9101   dynamic_linker=no
9102   ;;
9103
9104 # This must be Linux ELF.
9105 linux* | k*bsd*-gnu)
9106   version_type=linux
9107   need_lib_prefix=no
9108   need_version=no
9109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110   soname_spec='${libname}${release}${shared_ext}$major'
9111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9112   shlibpath_var=LD_LIBRARY_PATH
9113   shlibpath_overrides_runpath=no
9114   # Some binutils ld are patched to set DT_RUNPATH
9115   save_LDFLAGS=$LDFLAGS
9116   save_libdir=$libdir
9117   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9118        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9119   cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h.  */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h.  */
9125
9126 int
9127 main ()
9128 {
9129
9130   ;
9131   return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136   (eval $ac_link) 2>conftest.er1
9137   ac_status=$?
9138   grep -v '^ *+' conftest.er1 >conftest.err
9139   rm -f conftest.er1
9140   cat conftest.err >&5
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -z "$ac_c_werror_flag"
9144                          || test ! -s conftest.err'
9145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146   (eval $ac_try) 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; } &&
9150          { ac_try='test -s conftest$ac_exeext'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; }; then
9156   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9157   shlibpath_overrides_runpath=yes
9158 fi
9159
9160 else
9161   echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9163
9164 fi
9165 rm -f conftest.err conftest.$ac_objext \
9166       conftest$ac_exeext conftest.$ac_ext
9167   LDFLAGS=$save_LDFLAGS
9168   libdir=$save_libdir
9169
9170   # This implies no fast_install, which is unacceptable.
9171   # Some rework will be needed to allow for fast_install
9172   # before this can be enabled.
9173   hardcode_into_libs=yes
9174
9175   # Append ld.so.conf contents to the search path
9176   if test -f /etc/ld.so.conf; then
9177     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' ' '`
9178     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9179   fi
9180
9181   # We used to test for /lib/ld.so.1 and disable shared libraries on
9182   # powerpc, because MkLinux only supported shared libraries with the
9183   # GNU dynamic linker.  Since this was broken with cross compilers,
9184   # most powerpc-linux boxes support dynamic linking these days and
9185   # people can always --disable-shared, the test was removed, and we
9186   # assume the GNU/Linux dynamic linker is in use.
9187   dynamic_linker='GNU/Linux ld.so'
9188   ;;
9189
9190 netbsd*)
9191   version_type=sunos
9192   need_lib_prefix=no
9193   need_version=no
9194   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9196     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9197     dynamic_linker='NetBSD (a.out) ld.so'
9198   else
9199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200     soname_spec='${libname}${release}${shared_ext}$major'
9201     dynamic_linker='NetBSD ld.elf_so'
9202   fi
9203   shlibpath_var=LD_LIBRARY_PATH
9204   shlibpath_overrides_runpath=yes
9205   hardcode_into_libs=yes
9206   ;;
9207
9208 newsos6)
9209   version_type=linux
9210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   shlibpath_overrides_runpath=yes
9213   ;;
9214
9215 *nto* | *qnx*)
9216   version_type=qnx
9217   need_lib_prefix=no
9218   need_version=no
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   shlibpath_var=LD_LIBRARY_PATH
9222   shlibpath_overrides_runpath=no
9223   hardcode_into_libs=yes
9224   dynamic_linker='ldqnx.so'
9225   ;;
9226
9227 openbsd*)
9228   version_type=sunos
9229   sys_lib_dlsearch_path_spec="/usr/lib"
9230   need_lib_prefix=no
9231   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9232   case $host_os in
9233     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9234     *)                          need_version=no  ;;
9235   esac
9236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9237   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9238   shlibpath_var=LD_LIBRARY_PATH
9239   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9240     case $host_os in
9241       openbsd2.[89] | openbsd2.[89].*)
9242         shlibpath_overrides_runpath=no
9243         ;;
9244       *)
9245         shlibpath_overrides_runpath=yes
9246         ;;
9247       esac
9248   else
9249     shlibpath_overrides_runpath=yes
9250   fi
9251   ;;
9252
9253 os2*)
9254   libname_spec='$name'
9255   shrext_cmds=".dll"
9256   need_lib_prefix=no
9257   library_names_spec='$libname${shared_ext} $libname.a'
9258   dynamic_linker='OS/2 ld.exe'
9259   shlibpath_var=LIBPATH
9260   ;;
9261
9262 osf3* | osf4* | osf5*)
9263   version_type=osf
9264   need_lib_prefix=no
9265   need_version=no
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9270   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9271   ;;
9272
9273 rdos*)
9274   dynamic_linker=no
9275   ;;
9276
9277 solaris*)
9278   version_type=linux
9279   need_lib_prefix=no
9280   need_version=no
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282   soname_spec='${libname}${release}${shared_ext}$major'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   shlibpath_overrides_runpath=yes
9285   hardcode_into_libs=yes
9286   # ldd complains unless libraries are executable
9287   postinstall_cmds='chmod +x $lib'
9288   ;;
9289
9290 sunos4*)
9291   version_type=sunos
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9293   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   shlibpath_overrides_runpath=yes
9296   if test "$with_gnu_ld" = yes; then
9297     need_lib_prefix=no
9298   fi
9299   need_version=yes
9300   ;;
9301
9302 sysv4 | sysv4.3*)
9303   version_type=linux
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305   soname_spec='${libname}${release}${shared_ext}$major'
9306   shlibpath_var=LD_LIBRARY_PATH
9307   case $host_vendor in
9308     sni)
9309       shlibpath_overrides_runpath=no
9310       need_lib_prefix=no
9311       runpath_var=LD_RUN_PATH
9312       ;;
9313     siemens)
9314       need_lib_prefix=no
9315       ;;
9316     motorola)
9317       need_lib_prefix=no
9318       need_version=no
9319       shlibpath_overrides_runpath=no
9320       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9321       ;;
9322   esac
9323   ;;
9324
9325 sysv4*MP*)
9326   if test -d /usr/nec ;then
9327     version_type=linux
9328     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9329     soname_spec='$libname${shared_ext}.$major'
9330     shlibpath_var=LD_LIBRARY_PATH
9331   fi
9332   ;;
9333
9334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9335   version_type=freebsd-elf
9336   need_lib_prefix=no
9337   need_version=no
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   shlibpath_var=LD_LIBRARY_PATH
9341   shlibpath_overrides_runpath=yes
9342   hardcode_into_libs=yes
9343   if test "$with_gnu_ld" = yes; then
9344     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9345   else
9346     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9347     case $host_os in
9348       sco3.2v5*)
9349         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9350         ;;
9351     esac
9352   fi
9353   sys_lib_dlsearch_path_spec='/usr/lib'
9354   ;;
9355
9356 tpf*)
9357   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9358   version_type=linux
9359   need_lib_prefix=no
9360   need_version=no
9361   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362   shlibpath_var=LD_LIBRARY_PATH
9363   shlibpath_overrides_runpath=no
9364   hardcode_into_libs=yes
9365   ;;
9366
9367 uts4*)
9368   version_type=linux
9369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370   soname_spec='${libname}${release}${shared_ext}$major'
9371   shlibpath_var=LD_LIBRARY_PATH
9372   ;;
9373
9374 *)
9375   dynamic_linker=no
9376   ;;
9377 esac
9378 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9379 echo "${ECHO_T}$dynamic_linker" >&6
9380 test "$dynamic_linker" = no && can_build_shared=no
9381
9382 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9383 if test "$GCC" = yes; then
9384   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9385 fi
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9474 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9475 hardcode_action=
9476 if test -n "$hardcode_libdir_flag_spec" ||
9477    test -n "$runpath_var" ||
9478    test "X$hardcode_automatic" = "Xyes" ; then
9479
9480   # We can hardcode non-existent directories.
9481   if test "$hardcode_direct" != no &&
9482      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9483      # have to relink, otherwise we might link with an installed library
9484      # when we should be linking with a yet-to-be-installed one
9485      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9486      test "$hardcode_minus_L" != no; then
9487     # Linking always hardcodes the temporary library directory.
9488     hardcode_action=relink
9489   else
9490     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9491     hardcode_action=immediate
9492   fi
9493 else
9494   # We cannot hardcode anything, or else we can only hardcode existing
9495   # directories.
9496   hardcode_action=unsupported
9497 fi
9498 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9499 echo "${ECHO_T}$hardcode_action" >&6
9500
9501 if test "$hardcode_action" = relink ||
9502    test "$inherit_rpath" = yes; then
9503   # Fast installation is not supported
9504   enable_fast_install=no
9505 elif test "$shlibpath_overrides_runpath" = yes ||
9506      test "$enable_shared" = no; then
9507   # Fast installation is not necessary
9508   enable_fast_install=needless
9509 fi
9510
9511
9512
9513
9514
9515
9516   if test "x$enable_dlopen" != xyes; then
9517   enable_dlopen=unknown
9518   enable_dlopen_self=unknown
9519   enable_dlopen_self_static=unknown
9520 else
9521   lt_cv_dlopen=no
9522   lt_cv_dlopen_libs=
9523
9524   case $host_os in
9525   beos*)
9526     lt_cv_dlopen="load_add_on"
9527     lt_cv_dlopen_libs=
9528     lt_cv_dlopen_self=yes
9529     ;;
9530
9531   mingw* | pw32*)
9532     lt_cv_dlopen="LoadLibrary"
9533     lt_cv_dlopen_libs=
9534     ;;
9535
9536   cygwin*)
9537     lt_cv_dlopen="dlopen"
9538     lt_cv_dlopen_libs=
9539     ;;
9540
9541   darwin*)
9542   # if libdl is installed we need to link against it
9543     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9544 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9545 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-ldl  $LIBS"
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556
9557 /* Override any gcc2 internal prototype to avoid an error.  */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 /* We use char because int might match the return type of a gcc2
9562    builtin and then its argument prototype would still apply.  */
9563 char dlopen ();
9564 int
9565 main ()
9566 {
9567 dlopen ();
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574   (eval $ac_link) 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } &&
9581          { ac_try='test -z "$ac_c_werror_flag"
9582                          || test ! -s conftest.err'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; } &&
9588          { ac_try='test -s conftest$ac_exeext'
9589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590   (eval $ac_try) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; }; then
9594   ac_cv_lib_dl_dlopen=yes
9595 else
9596   echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9598
9599 ac_cv_lib_dl_dlopen=no
9600 fi
9601 rm -f conftest.err conftest.$ac_objext \
9602       conftest$ac_exeext conftest.$ac_ext
9603 LIBS=$ac_check_lib_save_LIBS
9604 fi
9605 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9606 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9607 if test $ac_cv_lib_dl_dlopen = yes; then
9608   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9609 else
9610
9611     lt_cv_dlopen="dyld"
9612     lt_cv_dlopen_libs=
9613     lt_cv_dlopen_self=yes
9614
9615 fi
9616
9617     ;;
9618
9619   *)
9620     echo "$as_me:$LINENO: checking for shl_load" >&5
9621 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9622 if test "${ac_cv_func_shl_load+set}" = set; then
9623   echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625   cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9633 #define shl_load innocuous_shl_load
9634
9635 /* System header to define __stub macros and hopefully few prototypes,
9636     which can conflict with char shl_load (); below.
9637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9638     <limits.h> exists even on freestanding compilers.  */
9639
9640 #ifdef __STDC__
9641 # include <limits.h>
9642 #else
9643 # include <assert.h>
9644 #endif
9645
9646 #undef shl_load
9647
9648 /* Override any gcc2 internal prototype to avoid an error.  */
9649 #ifdef __cplusplus
9650 extern "C"
9651 {
9652 #endif
9653 /* We use char because int might match the return type of a gcc2
9654    builtin and then its argument prototype would still apply.  */
9655 char shl_load ();
9656 /* The GNU C library defines this for functions which it implements
9657     to always fail with ENOSYS.  Some functions are actually named
9658     something starting with __ and the normal name is an alias.  */
9659 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9660 choke me
9661 #else
9662 char (*f) () = shl_load;
9663 #endif
9664 #ifdef __cplusplus
9665 }
9666 #endif
9667
9668 int
9669 main ()
9670 {
9671 return f != shl_load;
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678   (eval $ac_link) 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -z "$ac_c_werror_flag"
9686                          || test ! -s conftest.err'
9687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688   (eval $ac_try) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; } &&
9692          { ac_try='test -s conftest$ac_exeext'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   ac_cv_func_shl_load=yes
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 ac_cv_func_shl_load=no
9704 fi
9705 rm -f conftest.err conftest.$ac_objext \
9706       conftest$ac_exeext conftest.$ac_ext
9707 fi
9708 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9709 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9710 if test $ac_cv_func_shl_load = yes; then
9711   lt_cv_dlopen="shl_load"
9712 else
9713   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9714 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9715 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   ac_check_lib_save_LIBS=$LIBS
9719 LIBS="-ldld  $LIBS"
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726
9727 /* Override any gcc2 internal prototype to avoid an error.  */
9728 #ifdef __cplusplus
9729 extern "C"
9730 #endif
9731 /* We use char because int might match the return type of a gcc2
9732    builtin and then its argument prototype would still apply.  */
9733 char shl_load ();
9734 int
9735 main ()
9736 {
9737 shl_load ();
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744   (eval $ac_link) 2>conftest.er1
9745   ac_status=$?
9746   grep -v '^ *+' conftest.er1 >conftest.err
9747   rm -f conftest.er1
9748   cat conftest.err >&5
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } &&
9751          { ac_try='test -z "$ac_c_werror_flag"
9752                          || test ! -s conftest.err'
9753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754   (eval $ac_try) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; } &&
9758          { ac_try='test -s conftest$ac_exeext'
9759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760   (eval $ac_try) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; }; then
9764   ac_cv_lib_dld_shl_load=yes
9765 else
9766   echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 ac_cv_lib_dld_shl_load=no
9770 fi
9771 rm -f conftest.err conftest.$ac_objext \
9772       conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9774 fi
9775 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9776 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9777 if test $ac_cv_lib_dld_shl_load = yes; then
9778   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9779 else
9780   echo "$as_me:$LINENO: checking for dlopen" >&5
9781 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9782 if test "${ac_cv_func_dlopen+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h.  */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h.  */
9791 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9793 #define dlopen innocuous_dlopen
9794
9795 /* System header to define __stub macros and hopefully few prototypes,
9796     which can conflict with char dlopen (); below.
9797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9798     <limits.h> exists even on freestanding compilers.  */
9799
9800 #ifdef __STDC__
9801 # include <limits.h>
9802 #else
9803 # include <assert.h>
9804 #endif
9805
9806 #undef dlopen
9807
9808 /* Override any gcc2 internal prototype to avoid an error.  */
9809 #ifdef __cplusplus
9810 extern "C"
9811 {
9812 #endif
9813 /* We use char because int might match the return type of a gcc2
9814    builtin and then its argument prototype would still apply.  */
9815 char dlopen ();
9816 /* The GNU C library defines this for functions which it implements
9817     to always fail with ENOSYS.  Some functions are actually named
9818     something starting with __ and the normal name is an alias.  */
9819 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9820 choke me
9821 #else
9822 char (*f) () = dlopen;
9823 #endif
9824 #ifdef __cplusplus
9825 }
9826 #endif
9827
9828 int
9829 main ()
9830 {
9831 return f != dlopen;
9832   ;
9833   return 0;
9834 }
9835 _ACEOF
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838   (eval $ac_link) 2>conftest.er1
9839   ac_status=$?
9840   grep -v '^ *+' conftest.er1 >conftest.err
9841   rm -f conftest.er1
9842   cat conftest.err >&5
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); } &&
9845          { ac_try='test -z "$ac_c_werror_flag"
9846                          || test ! -s conftest.err'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; } &&
9852          { ac_try='test -s conftest$ac_exeext'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; }; then
9858   ac_cv_func_dlopen=yes
9859 else
9860   echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ac_cv_func_dlopen=no
9864 fi
9865 rm -f conftest.err conftest.$ac_objext \
9866       conftest$ac_exeext conftest.$ac_ext
9867 fi
9868 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9869 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9870 if test $ac_cv_func_dlopen = yes; then
9871   lt_cv_dlopen="dlopen"
9872 else
9873   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9874 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   ac_check_lib_save_LIBS=$LIBS
9879 LIBS="-ldl  $LIBS"
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886
9887 /* Override any gcc2 internal prototype to avoid an error.  */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 /* We use char because int might match the return type of a gcc2
9892    builtin and then its argument prototype would still apply.  */
9893 char dlopen ();
9894 int
9895 main ()
9896 {
9897 dlopen ();
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904   (eval $ac_link) 2>conftest.er1
9905   ac_status=$?
9906   grep -v '^ *+' conftest.er1 >conftest.err
9907   rm -f conftest.er1
9908   cat conftest.err >&5
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } &&
9911          { ac_try='test -z "$ac_c_werror_flag"
9912                          || test ! -s conftest.err'
9913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914   (eval $ac_try) 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); }; } &&
9918          { ac_try='test -s conftest$ac_exeext'
9919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920   (eval $ac_try) 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); }; }; then
9924   ac_cv_lib_dl_dlopen=yes
9925 else
9926   echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 ac_cv_lib_dl_dlopen=no
9930 fi
9931 rm -f conftest.err conftest.$ac_objext \
9932       conftest$ac_exeext conftest.$ac_ext
9933 LIBS=$ac_check_lib_save_LIBS
9934 fi
9935 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9937 if test $ac_cv_lib_dl_dlopen = yes; then
9938   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9939 else
9940   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9941 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9942 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   ac_check_lib_save_LIBS=$LIBS
9946 LIBS="-lsvld  $LIBS"
9947 cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h.  */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h.  */
9953
9954 /* Override any gcc2 internal prototype to avoid an error.  */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 /* We use char because int might match the return type of a gcc2
9959    builtin and then its argument prototype would still apply.  */
9960 char dlopen ();
9961 int
9962 main ()
9963 {
9964 dlopen ();
9965   ;
9966   return 0;
9967 }
9968 _ACEOF
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971   (eval $ac_link) 2>conftest.er1
9972   ac_status=$?
9973   grep -v '^ *+' conftest.er1 >conftest.err
9974   rm -f conftest.er1
9975   cat conftest.err >&5
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); } &&
9978          { ac_try='test -z "$ac_c_werror_flag"
9979                          || test ! -s conftest.err'
9980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981   (eval $ac_try) 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; } &&
9985          { ac_try='test -s conftest$ac_exeext'
9986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987   (eval $ac_try) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; }; then
9991   ac_cv_lib_svld_dlopen=yes
9992 else
9993   echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 ac_cv_lib_svld_dlopen=no
9997 fi
9998 rm -f conftest.err conftest.$ac_objext \
9999       conftest$ac_exeext conftest.$ac_ext
10000 LIBS=$ac_check_lib_save_LIBS
10001 fi
10002 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10003 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10004 if test $ac_cv_lib_svld_dlopen = yes; then
10005   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10006 else
10007   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10008 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10010   echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012   ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-ldld  $LIBS"
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h.  */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h.  */
10020
10021 /* Override any gcc2 internal prototype to avoid an error.  */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 /* We use char because int might match the return type of a gcc2
10026    builtin and then its argument prototype would still apply.  */
10027 char dld_link ();
10028 int
10029 main ()
10030 {
10031 dld_link ();
10032   ;
10033   return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038   (eval $ac_link) 2>conftest.er1
10039   ac_status=$?
10040   grep -v '^ *+' conftest.er1 >conftest.err
10041   rm -f conftest.er1
10042   cat conftest.err >&5
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } &&
10045          { ac_try='test -z "$ac_c_werror_flag"
10046                          || test ! -s conftest.err'
10047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048   (eval $ac_try) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; } &&
10052          { ac_try='test -s conftest$ac_exeext'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; }; then
10058   ac_cv_lib_dld_dld_link=yes
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 ac_cv_lib_dld_dld_link=no
10064 fi
10065 rm -f conftest.err conftest.$ac_objext \
10066       conftest$ac_exeext conftest.$ac_ext
10067 LIBS=$ac_check_lib_save_LIBS
10068 fi
10069 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10070 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10071 if test $ac_cv_lib_dld_dld_link = yes; then
10072   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10073 fi
10074
10075
10076 fi
10077
10078
10079 fi
10080
10081
10082 fi
10083
10084
10085 fi
10086
10087
10088 fi
10089
10090     ;;
10091   esac
10092
10093   if test "x$lt_cv_dlopen" != xno; then
10094     enable_dlopen=yes
10095   else
10096     enable_dlopen=no
10097   fi
10098
10099   case $lt_cv_dlopen in
10100   dlopen)
10101     save_CPPFLAGS="$CPPFLAGS"
10102     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10103
10104     save_LDFLAGS="$LDFLAGS"
10105     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10106
10107     save_LIBS="$LIBS"
10108     LIBS="$lt_cv_dlopen_libs $LIBS"
10109
10110     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10111 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10112 if test "${lt_cv_dlopen_self+set}" = set; then
10113   echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115           if test "$cross_compiling" = yes; then :
10116   lt_cv_dlopen_self=cross
10117 else
10118   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10119   lt_status=$lt_dlunknown
10120   cat > conftest.$ac_ext <<_LT_EOF
10121 #line 10121 "configure"
10122 #include "confdefs.h"
10123
10124 #if HAVE_DLFCN_H
10125 #include <dlfcn.h>
10126 #endif
10127
10128 #include <stdio.h>
10129
10130 #ifdef RTLD_GLOBAL
10131 #  define LT_DLGLOBAL           RTLD_GLOBAL
10132 #else
10133 #  ifdef DL_GLOBAL
10134 #    define LT_DLGLOBAL         DL_GLOBAL
10135 #  else
10136 #    define LT_DLGLOBAL         0
10137 #  endif
10138 #endif
10139
10140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10141    find out it does not work in some platform. */
10142 #ifndef LT_DLLAZY_OR_NOW
10143 #  ifdef RTLD_LAZY
10144 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10145 #  else
10146 #    ifdef DL_LAZY
10147 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10148 #    else
10149 #      ifdef RTLD_NOW
10150 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10151 #      else
10152 #        ifdef DL_NOW
10153 #          define LT_DLLAZY_OR_NOW      DL_NOW
10154 #        else
10155 #          define LT_DLLAZY_OR_NOW      0
10156 #        endif
10157 #      endif
10158 #    endif
10159 #  endif
10160 #endif
10161
10162 #ifdef __cplusplus
10163 extern "C" void exit (int);
10164 #endif
10165
10166 void fnord() { int i=42;}
10167 int main ()
10168 {
10169   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10170   int status = $lt_dlunknown;
10171
10172   if (self)
10173     {
10174       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10175       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10176       /* dlclose (self); */
10177     }
10178   else
10179     puts (dlerror ());
10180
10181     exit (status);
10182 }
10183 _LT_EOF
10184   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185   (eval $ac_link) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10189     (./conftest; exit; ) >&5 2>/dev/null
10190     lt_status=$?
10191     case x$lt_status in
10192       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10193       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10194       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10195     esac
10196   else :
10197     # compilation failed
10198     lt_cv_dlopen_self=no
10199   fi
10200 fi
10201 rm -fr conftest*
10202
10203
10204 fi
10205 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10206 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10207
10208     if test "x$lt_cv_dlopen_self" = xyes; then
10209       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10210       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10211 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10212 if test "${lt_cv_dlopen_self_static+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215           if test "$cross_compiling" = yes; then :
10216   lt_cv_dlopen_self_static=cross
10217 else
10218   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10219   lt_status=$lt_dlunknown
10220   cat > conftest.$ac_ext <<_LT_EOF
10221 #line 10221 "configure"
10222 #include "confdefs.h"
10223
10224 #if HAVE_DLFCN_H
10225 #include <dlfcn.h>
10226 #endif
10227
10228 #include <stdio.h>
10229
10230 #ifdef RTLD_GLOBAL
10231 #  define LT_DLGLOBAL           RTLD_GLOBAL
10232 #else
10233 #  ifdef DL_GLOBAL
10234 #    define LT_DLGLOBAL         DL_GLOBAL
10235 #  else
10236 #    define LT_DLGLOBAL         0
10237 #  endif
10238 #endif
10239
10240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10241    find out it does not work in some platform. */
10242 #ifndef LT_DLLAZY_OR_NOW
10243 #  ifdef RTLD_LAZY
10244 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10245 #  else
10246 #    ifdef DL_LAZY
10247 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10248 #    else
10249 #      ifdef RTLD_NOW
10250 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10251 #      else
10252 #        ifdef DL_NOW
10253 #          define LT_DLLAZY_OR_NOW      DL_NOW
10254 #        else
10255 #          define LT_DLLAZY_OR_NOW      0
10256 #        endif
10257 #      endif
10258 #    endif
10259 #  endif
10260 #endif
10261
10262 #ifdef __cplusplus
10263 extern "C" void exit (int);
10264 #endif
10265
10266 void fnord() { int i=42;}
10267 int main ()
10268 {
10269   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10270   int status = $lt_dlunknown;
10271
10272   if (self)
10273     {
10274       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10275       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10276       /* dlclose (self); */
10277     }
10278   else
10279     puts (dlerror ());
10280
10281     exit (status);
10282 }
10283 _LT_EOF
10284   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285   (eval $ac_link) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10289     (./conftest; exit; ) >&5 2>/dev/null
10290     lt_status=$?
10291     case x$lt_status in
10292       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10293       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10294       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10295     esac
10296   else :
10297     # compilation failed
10298     lt_cv_dlopen_self_static=no
10299   fi
10300 fi
10301 rm -fr conftest*
10302
10303
10304 fi
10305 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10306 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10307     fi
10308
10309     CPPFLAGS="$save_CPPFLAGS"
10310     LDFLAGS="$save_LDFLAGS"
10311     LIBS="$save_LIBS"
10312     ;;
10313   esac
10314
10315   case $lt_cv_dlopen_self in
10316   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10317   *) enable_dlopen_self=unknown ;;
10318   esac
10319
10320   case $lt_cv_dlopen_self_static in
10321   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10322   *) enable_dlopen_self_static=unknown ;;
10323   esac
10324 fi
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342 striplib=
10343 old_striplib=
10344 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10345 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10346 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10347   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10348   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10349   echo "$as_me:$LINENO: result: yes" >&5
10350 echo "${ECHO_T}yes" >&6
10351 else
10352 # FIXME - insert some real tests, host_os isn't really good enough
10353   case $host_os in
10354   darwin*)
10355     if test -n "$STRIP" ; then
10356       striplib="$STRIP -x"
10357       old_striplib="$STRIP -S"
10358       echo "$as_me:$LINENO: result: yes" >&5
10359 echo "${ECHO_T}yes" >&6
10360     else
10361       echo "$as_me:$LINENO: result: no" >&5
10362 echo "${ECHO_T}no" >&6
10363     fi
10364     ;;
10365   *)
10366     echo "$as_me:$LINENO: result: no" >&5
10367 echo "${ECHO_T}no" >&6
10368     ;;
10369   esac
10370 fi
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383   # Report which library types will actually be built
10384   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10385 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10386   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10387 echo "${ECHO_T}$can_build_shared" >&6
10388
10389   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10390 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10391   test "$can_build_shared" = "no" && enable_shared=no
10392
10393   # On AIX, shared libraries and static libraries use the same namespace, and
10394   # are all built from PIC.
10395   case $host_os in
10396   aix3*)
10397     test "$enable_shared" = yes && enable_static=no
10398     if test -n "$RANLIB"; then
10399       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10400       postinstall_cmds='$RANLIB $lib'
10401     fi
10402     ;;
10403
10404   aix[4-9]*)
10405     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10406       test "$enable_shared" = yes && enable_static=no
10407     fi
10408     ;;
10409   esac
10410   echo "$as_me:$LINENO: result: $enable_shared" >&5
10411 echo "${ECHO_T}$enable_shared" >&6
10412
10413   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10414 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10415   # Make sure either enable_shared or enable_static is yes.
10416   test "$enable_shared" = yes || enable_static=yes
10417   echo "$as_me:$LINENO: result: $enable_static" >&5
10418 echo "${ECHO_T}$enable_static" >&6
10419
10420
10421
10422
10423 fi
10424 ac_ext=c
10425 ac_cpp='$CPP $CPPFLAGS'
10426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10429
10430 CC="$lt_save_CC"
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444                   ac_config_commands="$ac_config_commands libtool"
10445
10446
10447
10448
10449 # Only expand once:
10450
10451
10452
10453 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10454 if test "${enable_64_bit_bfd+set}" = set; then
10455   enableval="$enable_64_bit_bfd"
10456   case "${enableval}" in
10457   yes)  want64=true  ;;
10458   no)   want64=false ;;
10459   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10460 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10461    { (exit 1); exit 1; }; } ;;
10462 esac
10463 else
10464   want64=false
10465 fi;
10466 # Check whether --enable-targets or --disable-targets was given.
10467 if test "${enable_targets+set}" = set; then
10468   enableval="$enable_targets"
10469   case "${enableval}" in
10470   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10471 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10472    { (exit 1); exit 1; }; }
10473             ;;
10474   no)       enable_targets= ;;
10475   *)        enable_targets=$enableval ;;
10476 esac
10477 fi;
10478 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10479 if test "${enable_commonbfdlib+set}" = set; then
10480   enableval="$enable_commonbfdlib"
10481   case "${enableval}" in
10482   yes) commonbfdlib=true ;;
10483   no)  commonbfdlib=false ;;
10484   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10485 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10486    { (exit 1); exit 1; }; } ;;
10487 esac
10488 fi;
10489
10490 # Check whether --with-mmap or --without-mmap was given.
10491 if test "${with_mmap+set}" = set; then
10492   withval="$with_mmap"
10493   case "${withval}" in
10494   yes)  want_mmap=true ;;
10495   no)   want_mmap=false ;;
10496   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10497 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10498    { (exit 1); exit 1; }; } ;;
10499 esac
10500 else
10501   want_mmap=false
10502 fi;
10503 # Check whether --enable-secureplt or --disable-secureplt was given.
10504 if test "${enable_secureplt+set}" = set; then
10505   enableval="$enable_secureplt"
10506   case "${enableval}" in
10507   yes)  use_secureplt=true  ;;
10508   no)   use_secureplt=false ;;
10509   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10510 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10511    { (exit 1); exit 1; }; } ;;
10512 esac
10513 else
10514   use_secureplt=false
10515 fi; if test $use_secureplt = true; then
10516
10517 cat >>confdefs.h <<\_ACEOF
10518 #define USE_SECUREPLT 1
10519 _ACEOF
10520
10521 fi
10522
10523 DEBUGDIR=${libdir}/debug
10524
10525 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10526 if test "${with_separate_debug_dir+set}" = set; then
10527   withval="$with_separate_debug_dir"
10528   DEBUGDIR="${withval}"
10529 fi;
10530
10531
10532 # Check to see if we should allow the generation of
10533 # symbols with the ELF standard's STT_COMMON type.
10534 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10535 if test "${enable_elf_stt_common+set}" = set; then
10536   enableval="$enable_elf_stt_common"
10537   case "${enableval}" in
10538   yes) want_elf_stt_common=true ;;
10539   no)  want_elf_stt_common=false ;;
10540   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10541 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10542    { (exit 1); exit 1; }; } ;;
10543  esac
10544 else
10545   # We have to choose a default behaviour.  For native builds we could
10546 # test whether the loader supports the STT_COMMON type, but that would
10547 # mean that built binaries could not be exported to older systems where
10548 # the loader does not support it. So by default we always choose to
10549 # disable this feature.
10550   want_elf_stt_common=false
10551 fi; if test $want_elf_stt_common = true; then
10552
10553 cat >>confdefs.h <<\_ACEOF
10554 #define USE_STT_COMMON 1
10555 _ACEOF
10556
10557 fi
10558
10559
10560
10561 # Check whether --with-pkgversion or --without-pkgversion was given.
10562 if test "${with_pkgversion+set}" = set; then
10563   withval="$with_pkgversion"
10564   case "$withval" in
10565       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10566 echo "$as_me: error: package version not specified" >&2;}
10567    { (exit 1); exit 1; }; } ;;
10568       no)  PKGVERSION= ;;
10569       *)   PKGVERSION="($withval) " ;;
10570      esac
10571 else
10572   PKGVERSION="(GNU Binutils) "
10573
10574 fi;
10575
10576
10577
10578
10579 # Check whether --with-bugurl or --without-bugurl was given.
10580 if test "${with_bugurl+set}" = set; then
10581   withval="$with_bugurl"
10582   case "$withval" in
10583       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10584 echo "$as_me: error: bug URL not specified" >&2;}
10585    { (exit 1); exit 1; }; } ;;
10586       no)  BUGURL=
10587            ;;
10588       *)   BUGURL="$withval"
10589            ;;
10590      esac
10591 else
10592   BUGURL="http://www.sourceware.org/bugzilla/"
10593
10594 fi;
10595   case ${BUGURL} in
10596   "")
10597     REPORT_BUGS_TO=
10598     REPORT_BUGS_TEXI=
10599     ;;
10600   *)
10601     REPORT_BUGS_TO="<$BUGURL>"
10602     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10603     ;;
10604   esac;
10605
10606
10607
10608
10609
10610 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10611
10612 # Check whether --enable-werror or --disable-werror was given.
10613 if test "${enable_werror+set}" = set; then
10614   enableval="$enable_werror"
10615   case "${enableval}" in
10616      yes | y) ERROR_ON_WARNING="yes" ;;
10617      no | n)  ERROR_ON_WARNING="no" ;;
10618      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10619 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10620    { (exit 1); exit 1; }; } ;;
10621    esac
10622 fi;
10623
10624 # Enable -Wno-format by default when using gcc on mingw
10625 case "${host}" in
10626   *-*-mingw32*)
10627     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10628       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10629     fi
10630     ;;
10631   *) ;;
10632 esac
10633
10634 # Enable -Werror by default when using gcc
10635 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10636     ERROR_ON_WARNING=yes
10637 fi
10638
10639 NO_WERROR=
10640 if test "${ERROR_ON_WARNING}" = yes ; then
10641     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10642     NO_WERROR="-Wno-error"
10643 fi
10644
10645 if test "${GCC}" = yes ; then
10646   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10647 fi
10648
10649 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10650 if test "${enable_build_warnings+set}" = set; then
10651   enableval="$enable_build_warnings"
10652   case "${enableval}" in
10653   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10654   no)   if test "${GCC}" = yes ; then
10655           WARN_CFLAGS="-w"
10656         fi;;
10657   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10658         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10659   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10660         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10661   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10662 esac
10663 fi;
10664
10665 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10666   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10667 fi
10668
10669
10670
10671
10672
10673           ac_config_headers="$ac_config_headers config.h:config.in"
10674
10675
10676 if test -z "$target" ; then
10677     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10678 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10679    { (exit 1); exit 1; }; }
10680 fi
10681
10682 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10683 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10684     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10685 if test "${enable_maintainer_mode+set}" = set; then
10686   enableval="$enable_maintainer_mode"
10687   USE_MAINTAINER_MODE=$enableval
10688 else
10689   USE_MAINTAINER_MODE=no
10690 fi;
10691   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10692 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10693
10694
10695 if test $USE_MAINTAINER_MODE = yes; then
10696   MAINTAINER_MODE_TRUE=
10697   MAINTAINER_MODE_FALSE='#'
10698 else
10699   MAINTAINER_MODE_TRUE='#'
10700   MAINTAINER_MODE_FALSE=
10701 fi
10702
10703   MAINT=$MAINTAINER_MODE_TRUE
10704
10705
10706
10707
10708 if false; then
10709   GENINSRC_NEVER_TRUE=
10710   GENINSRC_NEVER_FALSE='#'
10711 else
10712   GENINSRC_NEVER_TRUE='#'
10713   GENINSRC_NEVER_FALSE=
10714 fi
10715
10716  case ${build_alias} in
10717   "") build_noncanonical=${build} ;;
10718   *) build_noncanonical=${build_alias} ;;
10719 esac
10720
10721  case ${host_alias} in
10722   "") host_noncanonical=${build_noncanonical} ;;
10723   *) host_noncanonical=${host_alias} ;;
10724 esac
10725
10726  case ${target_alias} in
10727   "") target_noncanonical=${host_noncanonical} ;;
10728   *) target_noncanonical=${target_alias} ;;
10729 esac
10730
10731 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10732 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10733   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10734 if test "${enable_install_libbfd+set}" = set; then
10735   enableval="$enable_install_libbfd"
10736   install_libbfd_p=$enableval
10737 else
10738   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10739         install_libbfd_p=yes
10740       else
10741         install_libbfd_p=no
10742       fi
10743 fi;
10744   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10745 echo "${ECHO_T}$install_libbfd_p" >&6
10746
10747
10748 if test $install_libbfd_p = yes; then
10749   INSTALL_LIBBFD_TRUE=
10750   INSTALL_LIBBFD_FALSE='#'
10751 else
10752   INSTALL_LIBBFD_TRUE='#'
10753   INSTALL_LIBBFD_FALSE=
10754 fi
10755
10756   # Need _noncanonical variables for this.
10757
10758
10759
10760
10761   # libbfd.a is a host library containing target dependent code
10762   bfdlibdir='$(libdir)'
10763   bfdincludedir='$(includedir)'
10764   if test "${host}" != "${target}"; then
10765     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10766     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10767   fi
10768
10769
10770
10771
10772
10773
10774 host64=false
10775 target64=false
10776 bfd_default_target_size=32
10777
10778 # host stuff:
10779
10780 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
10781 # If we haven't got the data from the intl directory,
10782 # assume NLS is disabled.
10783 USE_NLS=no
10784 LIBINTL=
10785 LIBINTL_DEP=
10786 INCINTL=
10787 XGETTEXT=
10788 GMSGFMT=
10789 POSUB=
10790
10791 if test -f  ../intl/config.intl; then
10792   .  ../intl/config.intl
10793 fi
10794 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10795 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10796 if test x"$USE_NLS" != xyes; then
10797   echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6
10799 else
10800   echo "$as_me:$LINENO: result: yes" >&5
10801 echo "${ECHO_T}yes" >&6
10802
10803 cat >>confdefs.h <<\_ACEOF
10804 #define ENABLE_NLS 1
10805 _ACEOF
10806
10807
10808   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10809 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10810   # Look for .po and .gmo files in the source directory.
10811   CATALOGS=
10812   XLINGUAS=
10813   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10814     # If there aren't any .gmo files the shell will give us the
10815     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10816     # weeded out.
10817     case "$cat" in *\**)
10818       continue;;
10819     esac
10820     # The quadruple backslash is collapsed to a double backslash
10821     # by the backticks, then collapsed again by the double quotes,
10822     # leaving us with one backslash in the sed expression (right
10823     # before the dot that mustn't act as a wildcard).
10824     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10825     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10826     # The user is allowed to set LINGUAS to a list of languages to
10827     # install catalogs for.  If it's empty that means "all of them."
10828     if test "x$LINGUAS" = x; then
10829       CATALOGS="$CATALOGS $cat"
10830       XLINGUAS="$XLINGUAS $lang"
10831     else
10832       case "$LINGUAS" in *$lang*)
10833         CATALOGS="$CATALOGS $cat"
10834         XLINGUAS="$XLINGUAS $lang"
10835         ;;
10836       esac
10837     fi
10838   done
10839   LINGUAS="$XLINGUAS"
10840   echo "$as_me:$LINENO: result: $LINGUAS" >&5
10841 echo "${ECHO_T}$LINGUAS" >&6
10842
10843
10844     DATADIRNAME=share
10845
10846   INSTOBJEXT=.mo
10847
10848   GENCAT=gencat
10849
10850   CATOBJEXT=.gmo
10851
10852 fi
10853
10854         MKINSTALLDIRS=
10855   if test -n "$ac_aux_dir"; then
10856     case "$ac_aux_dir" in
10857       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10858       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10859     esac
10860   fi
10861   if test -z "$MKINSTALLDIRS"; then
10862     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10863   fi
10864
10865
10866
10867   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10868 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10869     # Check whether --enable-nls or --disable-nls was given.
10870 if test "${enable_nls+set}" = set; then
10871   enableval="$enable_nls"
10872   USE_NLS=$enableval
10873 else
10874   USE_NLS=yes
10875 fi;
10876   echo "$as_me:$LINENO: result: $USE_NLS" >&5
10877 echo "${ECHO_T}$USE_NLS" >&6
10878
10879
10880
10881
10882
10883
10884 # Prepare PATH_SEPARATOR.
10885 # The user is always right.
10886 if test "${PATH_SEPARATOR+set}" != set; then
10887   echo "#! /bin/sh" >conf$$.sh
10888   echo  "exit 0"   >>conf$$.sh
10889   chmod +x conf$$.sh
10890   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10891     PATH_SEPARATOR=';'
10892   else
10893     PATH_SEPARATOR=:
10894   fi
10895   rm -f conf$$.sh
10896 fi
10897
10898 # Find out how to test for executable files. Don't use a zero-byte file,
10899 # as systems may use methods other than mode bits to determine executability.
10900 cat >conf$$.file <<_ASEOF
10901 #! /bin/sh
10902 exit 0
10903 _ASEOF
10904 chmod +x conf$$.file
10905 if test -x conf$$.file >/dev/null 2>&1; then
10906   ac_executable_p="test -x"
10907 else
10908   ac_executable_p="test -f"
10909 fi
10910 rm -f conf$$.file
10911
10912 # Extract the first word of "msgfmt", so it can be a program name with args.
10913 set dummy msgfmt; ac_word=$2
10914 echo "$as_me:$LINENO: checking for $ac_word" >&5
10915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10916 if test "${ac_cv_path_MSGFMT+set}" = set; then
10917   echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919   case "$MSGFMT" in
10920   [\\/]* | ?:[\\/]*)
10921     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10922     ;;
10923   *)
10924     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10925     for ac_dir in $PATH; do
10926       IFS="$ac_save_IFS"
10927       test -z "$ac_dir" && ac_dir=.
10928       for ac_exec_ext in '' $ac_executable_extensions; do
10929         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10930           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10931      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10932             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10933             break 2
10934           fi
10935         fi
10936       done
10937     done
10938     IFS="$ac_save_IFS"
10939   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10940     ;;
10941 esac
10942 fi
10943 MSGFMT="$ac_cv_path_MSGFMT"
10944 if test "$MSGFMT" != ":"; then
10945   echo "$as_me:$LINENO: result: $MSGFMT" >&5
10946 echo "${ECHO_T}$MSGFMT" >&6
10947 else
10948   echo "$as_me:$LINENO: result: no" >&5
10949 echo "${ECHO_T}no" >&6
10950 fi
10951
10952   # Extract the first word of "gmsgfmt", so it can be a program name with args.
10953 set dummy gmsgfmt; ac_word=$2
10954 echo "$as_me:$LINENO: checking for $ac_word" >&5
10955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10956 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10957   echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959   case $GMSGFMT in
10960   [\\/]* | ?:[\\/]*)
10961   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10962   ;;
10963   *)
10964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10966 do
10967   IFS=$as_save_IFS
10968   test -z "$as_dir" && as_dir=.
10969   for ac_exec_ext in '' $ac_executable_extensions; do
10970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10971     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10973     break 2
10974   fi
10975 done
10976 done
10977
10978   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10979   ;;
10980 esac
10981 fi
10982 GMSGFMT=$ac_cv_path_GMSGFMT
10983
10984 if test -n "$GMSGFMT"; then
10985   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10986 echo "${ECHO_T}$GMSGFMT" >&6
10987 else
10988   echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6
10990 fi
10991
10992
10993
10994 # Prepare PATH_SEPARATOR.
10995 # The user is always right.
10996 if test "${PATH_SEPARATOR+set}" != set; then
10997   echo "#! /bin/sh" >conf$$.sh
10998   echo  "exit 0"   >>conf$$.sh
10999   chmod +x conf$$.sh
11000   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11001     PATH_SEPARATOR=';'
11002   else
11003     PATH_SEPARATOR=:
11004   fi
11005   rm -f conf$$.sh
11006 fi
11007
11008 # Find out how to test for executable files. Don't use a zero-byte file,
11009 # as systems may use methods other than mode bits to determine executability.
11010 cat >conf$$.file <<_ASEOF
11011 #! /bin/sh
11012 exit 0
11013 _ASEOF
11014 chmod +x conf$$.file
11015 if test -x conf$$.file >/dev/null 2>&1; then
11016   ac_executable_p="test -x"
11017 else
11018   ac_executable_p="test -f"
11019 fi
11020 rm -f conf$$.file
11021
11022 # Extract the first word of "xgettext", so it can be a program name with args.
11023 set dummy xgettext; ac_word=$2
11024 echo "$as_me:$LINENO: checking for $ac_word" >&5
11025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   case "$XGETTEXT" in
11030   [\\/]* | ?:[\\/]*)
11031     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11032     ;;
11033   *)
11034     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11035     for ac_dir in $PATH; do
11036       IFS="$ac_save_IFS"
11037       test -z "$ac_dir" && ac_dir=.
11038       for ac_exec_ext in '' $ac_executable_extensions; do
11039         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11040           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11041      (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
11042             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11043             break 2
11044           fi
11045         fi
11046       done
11047     done
11048     IFS="$ac_save_IFS"
11049   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11050     ;;
11051 esac
11052 fi
11053 XGETTEXT="$ac_cv_path_XGETTEXT"
11054 if test "$XGETTEXT" != ":"; then
11055   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11056 echo "${ECHO_T}$XGETTEXT" >&6
11057 else
11058   echo "$as_me:$LINENO: result: no" >&5
11059 echo "${ECHO_T}no" >&6
11060 fi
11061
11062     rm -f messages.po
11063
11064
11065 # Prepare PATH_SEPARATOR.
11066 # The user is always right.
11067 if test "${PATH_SEPARATOR+set}" != set; then
11068   echo "#! /bin/sh" >conf$$.sh
11069   echo  "exit 0"   >>conf$$.sh
11070   chmod +x conf$$.sh
11071   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11072     PATH_SEPARATOR=';'
11073   else
11074     PATH_SEPARATOR=:
11075   fi
11076   rm -f conf$$.sh
11077 fi
11078
11079 # Find out how to test for executable files. Don't use a zero-byte file,
11080 # as systems may use methods other than mode bits to determine executability.
11081 cat >conf$$.file <<_ASEOF
11082 #! /bin/sh
11083 exit 0
11084 _ASEOF
11085 chmod +x conf$$.file
11086 if test -x conf$$.file >/dev/null 2>&1; then
11087   ac_executable_p="test -x"
11088 else
11089   ac_executable_p="test -f"
11090 fi
11091 rm -f conf$$.file
11092
11093 # Extract the first word of "msgmerge", so it can be a program name with args.
11094 set dummy msgmerge; ac_word=$2
11095 echo "$as_me:$LINENO: checking for $ac_word" >&5
11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11097 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100   case "$MSGMERGE" in
11101   [\\/]* | ?:[\\/]*)
11102     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11103     ;;
11104   *)
11105     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11106     for ac_dir in $PATH; do
11107       IFS="$ac_save_IFS"
11108       test -z "$ac_dir" && ac_dir=.
11109       for ac_exec_ext in '' $ac_executable_extensions; do
11110         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11111           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11112             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11113             break 2
11114           fi
11115         fi
11116       done
11117     done
11118     IFS="$ac_save_IFS"
11119   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11120     ;;
11121 esac
11122 fi
11123 MSGMERGE="$ac_cv_path_MSGMERGE"
11124 if test "$MSGMERGE" != ":"; then
11125   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11126 echo "${ECHO_T}$MSGMERGE" >&6
11127 else
11128   echo "$as_me:$LINENO: result: no" >&5
11129 echo "${ECHO_T}no" >&6
11130 fi
11131
11132
11133       if test "$GMSGFMT" != ":"; then
11134             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11135        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11136       : ;
11137     else
11138       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11139       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11140 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11141       GMSGFMT=":"
11142     fi
11143   fi
11144
11145       if test "$XGETTEXT" != ":"; then
11146             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11147        (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
11148       : ;
11149     else
11150       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11151 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11152       XGETTEXT=":"
11153     fi
11154         rm -f messages.po
11155   fi
11156
11157             ac_config_commands="$ac_config_commands default-1"
11158
11159
11160
11161 # Permit host specific settings.
11162 . ${srcdir}/configure.host
11163
11164
11165 # Find a good install program.  We prefer a C program (faster),
11166 # so one script is as good as another.  But avoid the broken or
11167 # incompatible versions:
11168 # SysV /etc/install, /usr/sbin/install
11169 # SunOS /usr/etc/install
11170 # IRIX /sbin/install
11171 # AIX /bin/install
11172 # AmigaOS /C/install, which installs bootblocks on floppy discs
11173 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11174 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11175 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11176 # OS/2's system install, which has a completely different semantic
11177 # ./install, which can be erroneously created by make from ./install.sh.
11178 # Reject install programs that cannot install multiple files.
11179 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11180 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11181 if test -z "$INSTALL"; then
11182 if test "${ac_cv_path_install+set}" = set; then
11183   echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11187 do
11188   IFS=$as_save_IFS
11189   test -z "$as_dir" && as_dir=.
11190   # Account for people who put trailing slashes in PATH elements.
11191 case $as_dir/ in
11192   ./ | .// | /cC/* | \
11193   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11194   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11195   /usr/ucb/* ) ;;
11196   *)
11197     # OSF1 and SCO ODT 3.0 have their own names for install.
11198     # Don't use installbsd from OSF since it installs stuff as root
11199     # by default.
11200     for ac_prog in ginstall scoinst install; do
11201       for ac_exec_ext in '' $ac_executable_extensions; do
11202         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11203           if test $ac_prog = install &&
11204             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11205             # AIX install.  It has an incompatible calling convention.
11206             :
11207           elif test $ac_prog = install &&
11208             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11209             # program-specific install script used by HP pwplus--don't use.
11210             :
11211           else
11212             rm -rf conftest.one conftest.two conftest.dir
11213             echo one > conftest.one
11214             echo two > conftest.two
11215             mkdir conftest.dir
11216             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11217               test -s conftest.one && test -s conftest.two &&
11218               test -s conftest.dir/conftest.one &&
11219               test -s conftest.dir/conftest.two
11220             then
11221               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11222               break 3
11223             fi
11224           fi
11225         fi
11226       done
11227     done
11228     ;;
11229 esac
11230 done
11231
11232 rm -rf conftest.one conftest.two conftest.dir
11233
11234 fi
11235   if test "${ac_cv_path_install+set}" = set; then
11236     INSTALL=$ac_cv_path_install
11237   else
11238     # As a last resort, use the slow shell script.  Don't cache a
11239     # value for INSTALL within a source directory, because that will
11240     # break other packages using the cache if that directory is
11241     # removed, or if the value is a relative name.
11242     INSTALL=$ac_install_sh
11243   fi
11244 fi
11245 echo "$as_me:$LINENO: result: $INSTALL" >&5
11246 echo "${ECHO_T}$INSTALL" >&6
11247
11248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11249 # It thinks the first close brace ends the variable substitution.
11250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11251
11252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11253
11254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11255
11256
11257 BFD_HOST_64BIT_LONG=0
11258 BFD_HOST_64BIT_LONG_LONG=0
11259 BFD_HOST_64_BIT_DEFINED=0
11260 BFD_HOST_64_BIT=
11261 BFD_HOST_U_64_BIT=
11262 BFD_HOSTPTR_T="unsigned long"
11263
11264 echo "$as_me:$LINENO: checking for long long" >&5
11265 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11266 if test "${ac_cv_type_long_long+set}" = set; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269   cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 $ac_includes_default
11276 int
11277 main ()
11278 {
11279 if ((long long *) 0)
11280   return 0;
11281 if (sizeof (long long))
11282   return 0;
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 rm -f conftest.$ac_objext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289   (eval $ac_compile) 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
11293   cat conftest.err >&5
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -z "$ac_c_werror_flag"
11297                          || test ! -s conftest.err'
11298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299   (eval $ac_try) 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }; } &&
11303          { ac_try='test -s conftest.$ac_objext'
11304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305   (eval $ac_try) 2>&5
11306   ac_status=$?
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); }; }; then
11309   ac_cv_type_long_long=yes
11310 else
11311   echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 ac_cv_type_long_long=no
11315 fi
11316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11317 fi
11318 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11319 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11320
11321 echo "$as_me:$LINENO: checking size of long long" >&5
11322 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11323 if test "${ac_cv_sizeof_long_long+set}" = set; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326   if test "$ac_cv_type_long_long" = yes; then
11327   # The cast to unsigned long works around a bug in the HP C Compiler
11328   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11329   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11330   # This bug is HP SR number 8606223364.
11331   if test "$cross_compiling" = yes; then
11332   # Depending upon the size, compute the lo and hi bounds.
11333 cat >conftest.$ac_ext <<_ACEOF
11334 /* confdefs.h.  */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h.  */
11339 $ac_includes_default
11340 int
11341 main ()
11342 {
11343 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11344 test_array [0] = 0
11345
11346   ;
11347   return 0;
11348 }
11349 _ACEOF
11350 rm -f conftest.$ac_objext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352   (eval $ac_compile) 2>conftest.er1
11353   ac_status=$?
11354   grep -v '^ *+' conftest.er1 >conftest.err
11355   rm -f conftest.er1
11356   cat conftest.err >&5
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } &&
11359          { ac_try='test -z "$ac_c_werror_flag"
11360                          || test ! -s conftest.err'
11361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362   (eval $ac_try) 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); }; } &&
11366          { ac_try='test -s conftest.$ac_objext'
11367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368   (eval $ac_try) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); }; }; then
11372   ac_lo=0 ac_mid=0
11373   while :; do
11374     cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 $ac_includes_default
11381 int
11382 main ()
11383 {
11384 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11385 test_array [0] = 0
11386
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393   (eval $ac_compile) 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } &&
11400          { ac_try='test -z "$ac_c_werror_flag"
11401                          || test ! -s conftest.err'
11402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403   (eval $ac_try) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; } &&
11407          { ac_try='test -s conftest.$ac_objext'
11408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409   (eval $ac_try) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }; then
11413   ac_hi=$ac_mid; break
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 ac_lo=`expr $ac_mid + 1`
11419                     if test $ac_lo -le $ac_mid; then
11420                       ac_lo= ac_hi=
11421                       break
11422                     fi
11423                     ac_mid=`expr 2 '*' $ac_mid + 1`
11424 fi
11425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11426   done
11427 else
11428   echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11430
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 $ac_includes_default
11438 int
11439 main ()
11440 {
11441 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11442 test_array [0] = 0
11443
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450   (eval $ac_compile) 2>conftest.er1
11451   ac_status=$?
11452   grep -v '^ *+' conftest.er1 >conftest.err
11453   rm -f conftest.er1
11454   cat conftest.err >&5
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } &&
11457          { ac_try='test -z "$ac_c_werror_flag"
11458                          || test ! -s conftest.err'
11459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460   (eval $ac_try) 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; } &&
11464          { ac_try='test -s conftest.$ac_objext'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; }; then
11470   ac_hi=-1 ac_mid=-1
11471   while :; do
11472     cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478 $ac_includes_default
11479 int
11480 main ()
11481 {
11482 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11483 test_array [0] = 0
11484
11485   ;
11486   return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491   (eval $ac_compile) 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -z "$ac_c_werror_flag"
11499                          || test ! -s conftest.err'
11500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501   (eval $ac_try) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }; } &&
11505          { ac_try='test -s conftest.$ac_objext'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; }; then
11511   ac_lo=$ac_mid; break
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 ac_hi=`expr '(' $ac_mid ')' - 1`
11517                        if test $ac_mid -le $ac_hi; then
11518                          ac_lo= ac_hi=
11519                          break
11520                        fi
11521                        ac_mid=`expr 2 '*' $ac_mid`
11522 fi
11523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11524   done
11525 else
11526   echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11528
11529 ac_lo= ac_hi=
11530 fi
11531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11532 fi
11533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11534 # Binary search between lo and hi bounds.
11535 while test "x$ac_lo" != "x$ac_hi"; do
11536   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11537   cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 $ac_includes_default
11544 int
11545 main ()
11546 {
11547 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11548 test_array [0] = 0
11549
11550   ;
11551   return 0;
11552 }
11553 _ACEOF
11554 rm -f conftest.$ac_objext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11556   (eval $ac_compile) 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -z "$ac_c_werror_flag"
11564                          || test ! -s conftest.err'
11565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566   (eval $ac_try) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; } &&
11570          { ac_try='test -s conftest.$ac_objext'
11571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572   (eval $ac_try) 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   ac_hi=$ac_mid
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581 ac_lo=`expr '(' $ac_mid ')' + 1`
11582 fi
11583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11584 done
11585 case $ac_lo in
11586 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11587 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11588 See \`config.log' for more details." >&5
11589 echo "$as_me: error: cannot compute sizeof (long long), 77
11590 See \`config.log' for more details." >&2;}
11591    { (exit 1); exit 1; }; } ;;
11592 esac
11593 else
11594   if test "$cross_compiling" = yes; then
11595   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11596 See \`config.log' for more details." >&5
11597 echo "$as_me: error: cannot run test program while cross compiling
11598 See \`config.log' for more details." >&2;}
11599    { (exit 1); exit 1; }; }
11600 else
11601   cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 $ac_includes_default
11608 long longval () { return (long) (sizeof (long long)); }
11609 unsigned long ulongval () { return (long) (sizeof (long long)); }
11610 #include <stdio.h>
11611 #include <stdlib.h>
11612 int
11613 main ()
11614 {
11615
11616   FILE *f = fopen ("conftest.val", "w");
11617   if (! f)
11618     exit (1);
11619   if (((long) (sizeof (long long))) < 0)
11620     {
11621       long i = longval ();
11622       if (i != ((long) (sizeof (long long))))
11623         exit (1);
11624       fprintf (f, "%ld\n", i);
11625     }
11626   else
11627     {
11628       unsigned long i = ulongval ();
11629       if (i != ((long) (sizeof (long long))))
11630         exit (1);
11631       fprintf (f, "%lu\n", i);
11632     }
11633   exit (ferror (f) || fclose (f) != 0);
11634
11635   ;
11636   return 0;
11637 }
11638 _ACEOF
11639 rm -f conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641   (eval $ac_link) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
11650   ac_cv_sizeof_long_long=`cat conftest.val`
11651 else
11652   echo "$as_me: program exited with status $ac_status" >&5
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11655
11656 ( exit $ac_status )
11657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11658 See \`config.log' for more details." >&5
11659 echo "$as_me: error: cannot compute sizeof (long long), 77
11660 See \`config.log' for more details." >&2;}
11661    { (exit 1); exit 1; }; }
11662 fi
11663 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11664 fi
11665 fi
11666 rm -f conftest.val
11667 else
11668   ac_cv_sizeof_long_long=0
11669 fi
11670 fi
11671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11672 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11673 cat >>confdefs.h <<_ACEOF
11674 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11675 _ACEOF
11676
11677
11678 echo "$as_me:$LINENO: checking for void *" >&5
11679 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11680 if test "${ac_cv_type_void_p+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689 $ac_includes_default
11690 int
11691 main ()
11692 {
11693 if ((void * *) 0)
11694   return 0;
11695 if (sizeof (void *))
11696   return 0;
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703   (eval $ac_compile) 2>conftest.er1
11704   ac_status=$?
11705   grep -v '^ *+' conftest.er1 >conftest.err
11706   rm -f conftest.er1
11707   cat conftest.err >&5
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } &&
11710          { ac_try='test -z "$ac_c_werror_flag"
11711                          || test ! -s conftest.err'
11712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713   (eval $ac_try) 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); }; } &&
11717          { ac_try='test -s conftest.$ac_objext'
11718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719   (eval $ac_try) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); }; }; then
11723   ac_cv_type_void_p=yes
11724 else
11725   echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11727
11728 ac_cv_type_void_p=no
11729 fi
11730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11731 fi
11732 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11733 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11734
11735 echo "$as_me:$LINENO: checking size of void *" >&5
11736 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11737 if test "${ac_cv_sizeof_void_p+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   if test "$ac_cv_type_void_p" = yes; then
11741   # The cast to unsigned long works around a bug in the HP C Compiler
11742   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11743   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11744   # This bug is HP SR number 8606223364.
11745   if test "$cross_compiling" = yes; then
11746   # Depending upon the size, compute the lo and hi bounds.
11747 cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 $ac_includes_default
11754 int
11755 main ()
11756 {
11757 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11758 test_array [0] = 0
11759
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766   (eval $ac_compile) 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } &&
11773          { ac_try='test -z "$ac_c_werror_flag"
11774                          || test ! -s conftest.err'
11775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776   (eval $ac_try) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; } &&
11780          { ac_try='test -s conftest.$ac_objext'
11781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782   (eval $ac_try) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; }; then
11786   ac_lo=0 ac_mid=0
11787   while :; do
11788     cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794 $ac_includes_default
11795 int
11796 main ()
11797 {
11798 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11799 test_array [0] = 0
11800
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 rm -f conftest.$ac_objext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11807   (eval $ac_compile) 2>conftest.er1
11808   ac_status=$?
11809   grep -v '^ *+' conftest.er1 >conftest.err
11810   rm -f conftest.er1
11811   cat conftest.err >&5
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); } &&
11814          { ac_try='test -z "$ac_c_werror_flag"
11815                          || test ! -s conftest.err'
11816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817   (eval $ac_try) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; } &&
11821          { ac_try='test -s conftest.$ac_objext'
11822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823   (eval $ac_try) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; }; then
11827   ac_hi=$ac_mid; break
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 ac_lo=`expr $ac_mid + 1`
11833                     if test $ac_lo -le $ac_mid; then
11834                       ac_lo= ac_hi=
11835                       break
11836                     fi
11837                     ac_mid=`expr 2 '*' $ac_mid + 1`
11838 fi
11839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840   done
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h.  */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h.  */
11851 $ac_includes_default
11852 int
11853 main ()
11854 {
11855 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11856 test_array [0] = 0
11857
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864   (eval $ac_compile) 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -z "$ac_c_werror_flag"
11872                          || test ! -s conftest.err'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; } &&
11878          { ac_try='test -s conftest.$ac_objext'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; }; then
11884   ac_hi=-1 ac_mid=-1
11885   while :; do
11886     cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 $ac_includes_default
11893 int
11894 main ()
11895 {
11896 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11897 test_array [0] = 0
11898
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905   (eval $ac_compile) 2>conftest.er1
11906   ac_status=$?
11907   grep -v '^ *+' conftest.er1 >conftest.err
11908   rm -f conftest.er1
11909   cat conftest.err >&5
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } &&
11912          { ac_try='test -z "$ac_c_werror_flag"
11913                          || test ! -s conftest.err'
11914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915   (eval $ac_try) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }; } &&
11919          { ac_try='test -s conftest.$ac_objext'
11920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921   (eval $ac_try) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; }; then
11925   ac_lo=$ac_mid; break
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930 ac_hi=`expr '(' $ac_mid ')' - 1`
11931                        if test $ac_mid -le $ac_hi; then
11932                          ac_lo= ac_hi=
11933                          break
11934                        fi
11935                        ac_mid=`expr 2 '*' $ac_mid`
11936 fi
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938   done
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 ac_lo= ac_hi=
11944 fi
11945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11946 fi
11947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11948 # Binary search between lo and hi bounds.
11949 while test "x$ac_lo" != "x$ac_hi"; do
11950   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11951   cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h.  */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h.  */
11957 $ac_includes_default
11958 int
11959 main ()
11960 {
11961 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11962 test_array [0] = 0
11963
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970   (eval $ac_compile) 2>conftest.er1
11971   ac_status=$?
11972   grep -v '^ *+' conftest.er1 >conftest.err
11973   rm -f conftest.er1
11974   cat conftest.err >&5
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } &&
11977          { ac_try='test -z "$ac_c_werror_flag"
11978                          || test ! -s conftest.err'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; } &&
11984          { ac_try='test -s conftest.$ac_objext'
11985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986   (eval $ac_try) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); }; }; then
11990   ac_hi=$ac_mid
11991 else
11992   echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 ac_lo=`expr '(' $ac_mid ')' + 1`
11996 fi
11997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998 done
11999 case $ac_lo in
12000 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12001 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12002 See \`config.log' for more details." >&5
12003 echo "$as_me: error: cannot compute sizeof (void *), 77
12004 See \`config.log' for more details." >&2;}
12005    { (exit 1); exit 1; }; } ;;
12006 esac
12007 else
12008   if test "$cross_compiling" = yes; then
12009   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12010 See \`config.log' for more details." >&5
12011 echo "$as_me: error: cannot run test program while cross compiling
12012 See \`config.log' for more details." >&2;}
12013    { (exit 1); exit 1; }; }
12014 else
12015   cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h.  */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h.  */
12021 $ac_includes_default
12022 long longval () { return (long) (sizeof (void *)); }
12023 unsigned long ulongval () { return (long) (sizeof (void *)); }
12024 #include <stdio.h>
12025 #include <stdlib.h>
12026 int
12027 main ()
12028 {
12029
12030   FILE *f = fopen ("conftest.val", "w");
12031   if (! f)
12032     exit (1);
12033   if (((long) (sizeof (void *))) < 0)
12034     {
12035       long i = longval ();
12036       if (i != ((long) (sizeof (void *))))
12037         exit (1);
12038       fprintf (f, "%ld\n", i);
12039     }
12040   else
12041     {
12042       unsigned long i = ulongval ();
12043       if (i != ((long) (sizeof (void *))))
12044         exit (1);
12045       fprintf (f, "%lu\n", i);
12046     }
12047   exit (ferror (f) || fclose (f) != 0);
12048
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest$ac_exeext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055   (eval $ac_link) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060   (eval $ac_try) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }; }; then
12064   ac_cv_sizeof_void_p=`cat conftest.val`
12065 else
12066   echo "$as_me: program exited with status $ac_status" >&5
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12069
12070 ( exit $ac_status )
12071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12072 See \`config.log' for more details." >&5
12073 echo "$as_me: error: cannot compute sizeof (void *), 77
12074 See \`config.log' for more details." >&2;}
12075    { (exit 1); exit 1; }; }
12076 fi
12077 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12078 fi
12079 fi
12080 rm -f conftest.val
12081 else
12082   ac_cv_sizeof_void_p=0
12083 fi
12084 fi
12085 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12086 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12087 cat >>confdefs.h <<_ACEOF
12088 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12089 _ACEOF
12090
12091
12092 echo "$as_me:$LINENO: checking for long" >&5
12093 echo $ECHO_N "checking for long... $ECHO_C" >&6
12094 if test "${ac_cv_type_long+set}" = set; then
12095   echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097   cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103 $ac_includes_default
12104 int
12105 main ()
12106 {
12107 if ((long *) 0)
12108   return 0;
12109 if (sizeof (long))
12110   return 0;
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117   (eval $ac_compile) 2>conftest.er1
12118   ac_status=$?
12119   grep -v '^ *+' conftest.er1 >conftest.err
12120   rm -f conftest.er1
12121   cat conftest.err >&5
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); } &&
12124          { ac_try='test -z "$ac_c_werror_flag"
12125                          || test ! -s conftest.err'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; } &&
12131          { ac_try='test -s conftest.$ac_objext'
12132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133   (eval $ac_try) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; }; then
12137   ac_cv_type_long=yes
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 ac_cv_type_long=no
12143 fi
12144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12147 echo "${ECHO_T}$ac_cv_type_long" >&6
12148
12149 echo "$as_me:$LINENO: checking size of long" >&5
12150 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12151 if test "${ac_cv_sizeof_long+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   if test "$ac_cv_type_long" = yes; then
12155   # The cast to unsigned long works around a bug in the HP C Compiler
12156   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12157   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12158   # This bug is HP SR number 8606223364.
12159   if test "$cross_compiling" = yes; then
12160   # Depending upon the size, compute the lo and hi bounds.
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167 $ac_includes_default
12168 int
12169 main ()
12170 {
12171 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12172 test_array [0] = 0
12173
12174   ;
12175   return 0;
12176 }
12177 _ACEOF
12178 rm -f conftest.$ac_objext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180   (eval $ac_compile) 2>conftest.er1
12181   ac_status=$?
12182   grep -v '^ *+' conftest.er1 >conftest.err
12183   rm -f conftest.er1
12184   cat conftest.err >&5
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); } &&
12187          { ac_try='test -z "$ac_c_werror_flag"
12188                          || test ! -s conftest.err'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; } &&
12194          { ac_try='test -s conftest.$ac_objext'
12195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196   (eval $ac_try) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }; }; then
12200   ac_lo=0 ac_mid=0
12201   while :; do
12202     cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h.  */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h.  */
12208 $ac_includes_default
12209 int
12210 main ()
12211 {
12212 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12213 test_array [0] = 0
12214
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221   (eval $ac_compile) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_c_werror_flag"
12229                          || test ! -s conftest.err'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest.$ac_objext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   ac_hi=$ac_mid; break
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_lo=`expr $ac_mid + 1`
12247                     if test $ac_lo -le $ac_mid; then
12248                       ac_lo= ac_hi=
12249                       break
12250                     fi
12251                     ac_mid=`expr 2 '*' $ac_mid + 1`
12252 fi
12253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12254   done
12255 else
12256   echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265 $ac_includes_default
12266 int
12267 main ()
12268 {
12269 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12270 test_array [0] = 0
12271
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12278   (eval $ac_compile) 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } &&
12285          { ac_try='test -z "$ac_c_werror_flag"
12286                          || test ! -s conftest.err'
12287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288   (eval $ac_try) 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; } &&
12292          { ac_try='test -s conftest.$ac_objext'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; }; then
12298   ac_hi=-1 ac_mid=-1
12299   while :; do
12300     cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306 $ac_includes_default
12307 int
12308 main ()
12309 {
12310 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12311 test_array [0] = 0
12312
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319   (eval $ac_compile) 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } &&
12326          { ac_try='test -z "$ac_c_werror_flag"
12327                          || test ! -s conftest.err'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest.$ac_objext'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; }; then
12339   ac_lo=$ac_mid; break
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 ac_hi=`expr '(' $ac_mid ')' - 1`
12345                        if test $ac_mid -le $ac_hi; then
12346                          ac_lo= ac_hi=
12347                          break
12348                        fi
12349                        ac_mid=`expr 2 '*' $ac_mid`
12350 fi
12351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12352   done
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 ac_lo= ac_hi=
12358 fi
12359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12360 fi
12361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12362 # Binary search between lo and hi bounds.
12363 while test "x$ac_lo" != "x$ac_hi"; do
12364   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12365   cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371 $ac_includes_default
12372 int
12373 main ()
12374 {
12375 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12376 test_array [0] = 0
12377
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest.$ac_objext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12384   (eval $ac_compile) 2>conftest.er1
12385   ac_status=$?
12386   grep -v '^ *+' conftest.er1 >conftest.err
12387   rm -f conftest.er1
12388   cat conftest.err >&5
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); } &&
12391          { ac_try='test -z "$ac_c_werror_flag"
12392                          || test ! -s conftest.err'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; } &&
12398          { ac_try='test -s conftest.$ac_objext'
12399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400   (eval $ac_try) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; }; then
12404   ac_hi=$ac_mid
12405 else
12406   echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 ac_lo=`expr '(' $ac_mid ')' + 1`
12410 fi
12411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12412 done
12413 case $ac_lo in
12414 ?*) ac_cv_sizeof_long=$ac_lo;;
12415 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12416 See \`config.log' for more details." >&5
12417 echo "$as_me: error: cannot compute sizeof (long), 77
12418 See \`config.log' for more details." >&2;}
12419    { (exit 1); exit 1; }; } ;;
12420 esac
12421 else
12422   if test "$cross_compiling" = yes; then
12423   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12424 See \`config.log' for more details." >&5
12425 echo "$as_me: error: cannot run test program while cross compiling
12426 See \`config.log' for more details." >&2;}
12427    { (exit 1); exit 1; }; }
12428 else
12429   cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h.  */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h.  */
12435 $ac_includes_default
12436 long longval () { return (long) (sizeof (long)); }
12437 unsigned long ulongval () { return (long) (sizeof (long)); }
12438 #include <stdio.h>
12439 #include <stdlib.h>
12440 int
12441 main ()
12442 {
12443
12444   FILE *f = fopen ("conftest.val", "w");
12445   if (! f)
12446     exit (1);
12447   if (((long) (sizeof (long))) < 0)
12448     {
12449       long i = longval ();
12450       if (i != ((long) (sizeof (long))))
12451         exit (1);
12452       fprintf (f, "%ld\n", i);
12453     }
12454   else
12455     {
12456       unsigned long i = ulongval ();
12457       if (i != ((long) (sizeof (long))))
12458         exit (1);
12459       fprintf (f, "%lu\n", i);
12460     }
12461   exit (ferror (f) || fclose (f) != 0);
12462
12463   ;
12464   return 0;
12465 }
12466 _ACEOF
12467 rm -f conftest$ac_exeext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469   (eval $ac_link) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474   (eval $ac_try) 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; }; then
12478   ac_cv_sizeof_long=`cat conftest.val`
12479 else
12480   echo "$as_me: program exited with status $ac_status" >&5
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484 ( exit $ac_status )
12485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12486 See \`config.log' for more details." >&5
12487 echo "$as_me: error: cannot compute sizeof (long), 77
12488 See \`config.log' for more details." >&2;}
12489    { (exit 1); exit 1; }; }
12490 fi
12491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12492 fi
12493 fi
12494 rm -f conftest.val
12495 else
12496   ac_cv_sizeof_long=0
12497 fi
12498 fi
12499 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12500 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12501 cat >>confdefs.h <<_ACEOF
12502 #define SIZEOF_LONG $ac_cv_sizeof_long
12503 _ACEOF
12504
12505
12506
12507 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12508   host64=true
12509 fi
12510
12511 if test "x${ac_cv_sizeof_long}" = "x8"; then
12512   BFD_HOST_64BIT_LONG=1
12513   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12514   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12515 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12516   BFD_HOST_64BIT_LONG_LONG=1
12517   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12518   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12519   if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12520     BFD_HOSTPTR_T="unsigned long long"
12521   fi
12522 fi
12523
12524 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12525   BFD_HOST_64_BIT_DEFINED=1
12526   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12527   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12528 fi
12529
12530
12531
12532
12533
12534
12535
12536
12537 # Put a plausible default for CC_FOR_BUILD in Makefile.
12538 if test -z "$CC_FOR_BUILD"; then
12539   if test "x$cross_compiling" = "xno"; then
12540     CC_FOR_BUILD='$(CC)'
12541   else
12542     CC_FOR_BUILD=gcc
12543   fi
12544 fi
12545
12546 # Also set EXEEXT_FOR_BUILD.
12547 if test "x$cross_compiling" = "xno"; then
12548   EXEEXT_FOR_BUILD='$(EXEEXT)'
12549 else
12550   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12551 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12552 if test "${bfd_cv_build_exeext+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   rm -f conftest*
12556      echo 'int main () { return 0; }' > conftest.c
12557      bfd_cv_build_exeext=
12558      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12559      for file in conftest.*; do
12560        case $file in
12561        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12562        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12563        esac
12564      done
12565      rm -f conftest*
12566      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12567 fi
12568 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12569 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12570   EXEEXT_FOR_BUILD=""
12571   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12572 fi
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12583 do
12584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12586   echo "$as_me:$LINENO: checking for $ac_header" >&5
12587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 fi
12591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12593 else
12594   # Is the header compilable?
12595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h.  */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h.  */
12603 $ac_includes_default
12604 #include <$ac_header>
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608   (eval $ac_compile) 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } &&
12615          { ac_try='test -z "$ac_c_werror_flag"
12616                          || test ! -s conftest.err'
12617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618   (eval $ac_try) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; } &&
12622          { ac_try='test -s conftest.$ac_objext'
12623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624   (eval $ac_try) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }; }; then
12628   ac_header_compiler=yes
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633 ac_header_compiler=no
12634 fi
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12637 echo "${ECHO_T}$ac_header_compiler" >&6
12638
12639 # Is the header present?
12640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648 #include <$ac_header>
12649 _ACEOF
12650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12652   ac_status=$?
12653   grep -v '^ *+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } >/dev/null; then
12658   if test -s conftest.err; then
12659     ac_cpp_err=$ac_c_preproc_warn_flag
12660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12661   else
12662     ac_cpp_err=
12663   fi
12664 else
12665   ac_cpp_err=yes
12666 fi
12667 if test -z "$ac_cpp_err"; then
12668   ac_header_preproc=yes
12669 else
12670   echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12672
12673   ac_header_preproc=no
12674 fi
12675 rm -f conftest.err conftest.$ac_ext
12676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12677 echo "${ECHO_T}$ac_header_preproc" >&6
12678
12679 # So?  What about this header?
12680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12681   yes:no: )
12682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12686     ac_header_preproc=yes
12687     ;;
12688   no:yes:* )
12689     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12691     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12692 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12693     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12695     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12696 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12699     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12701     (
12702       cat <<\_ASBOX
12703 ## ------------------------------------------ ##
12704 ## Report this to the AC_PACKAGE_NAME lists.  ##
12705 ## ------------------------------------------ ##
12706 _ASBOX
12707     ) |
12708       sed "s/^/$as_me: WARNING:     /" >&2
12709     ;;
12710 esac
12711 echo "$as_me:$LINENO: checking for $ac_header" >&5
12712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12714   echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716   eval "$as_ac_Header=\$ac_header_preproc"
12717 fi
12718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12720
12721 fi
12722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12723   cat >>confdefs.h <<_ACEOF
12724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12725 _ACEOF
12726
12727 fi
12728
12729 done
12730
12731
12732
12733
12734 for ac_header in fcntl.h sys/file.h sys/time.h
12735 do
12736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12738   echo "$as_me:$LINENO: checking for $ac_header" >&5
12739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 fi
12743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12745 else
12746   # Is the header compilable?
12747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755 $ac_includes_default
12756 #include <$ac_header>
12757 _ACEOF
12758 rm -f conftest.$ac_objext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760   (eval $ac_compile) 2>conftest.er1
12761   ac_status=$?
12762   grep -v '^ *+' conftest.er1 >conftest.err
12763   rm -f conftest.er1
12764   cat conftest.err >&5
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); } &&
12767          { ac_try='test -z "$ac_c_werror_flag"
12768                          || test ! -s conftest.err'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; } &&
12774          { ac_try='test -s conftest.$ac_objext'
12775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776   (eval $ac_try) 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; }; then
12780   ac_header_compiler=yes
12781 else
12782   echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785 ac_header_compiler=no
12786 fi
12787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12789 echo "${ECHO_T}$ac_header_compiler" >&6
12790
12791 # Is the header present?
12792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h.  */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h.  */
12800 #include <$ac_header>
12801 _ACEOF
12802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12804   ac_status=$?
12805   grep -v '^ *+' conftest.er1 >conftest.err
12806   rm -f conftest.er1
12807   cat conftest.err >&5
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); } >/dev/null; then
12810   if test -s conftest.err; then
12811     ac_cpp_err=$ac_c_preproc_warn_flag
12812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12813   else
12814     ac_cpp_err=
12815   fi
12816 else
12817   ac_cpp_err=yes
12818 fi
12819 if test -z "$ac_cpp_err"; then
12820   ac_header_preproc=yes
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825   ac_header_preproc=no
12826 fi
12827 rm -f conftest.err conftest.$ac_ext
12828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12829 echo "${ECHO_T}$ac_header_preproc" >&6
12830
12831 # So?  What about this header?
12832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12833   yes:no: )
12834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12838     ac_header_preproc=yes
12839     ;;
12840   no:yes:* )
12841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12853     (
12854       cat <<\_ASBOX
12855 ## ------------------------------------------ ##
12856 ## Report this to the AC_PACKAGE_NAME lists.  ##
12857 ## ------------------------------------------ ##
12858 _ASBOX
12859     ) |
12860       sed "s/^/$as_me: WARNING:     /" >&2
12861     ;;
12862 esac
12863 echo "$as_me:$LINENO: checking for $ac_header" >&5
12864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868   eval "$as_ac_Header=\$ac_header_preproc"
12869 fi
12870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12872
12873 fi
12874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12875   cat >>confdefs.h <<_ACEOF
12876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12877 _ACEOF
12878
12879 fi
12880
12881 done
12882
12883
12884
12885 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
12886
12887 acx_cv_header_stdint=stddef.h
12888 acx_cv_header_stdint_kind="(already complete)"
12889 for i in stdint.h $inttype_headers; do
12890   unset ac_cv_type_uintptr_t
12891   unset ac_cv_type_uintmax_t
12892   unset ac_cv_type_int_least32_t
12893   unset ac_cv_type_int_fast32_t
12894   unset ac_cv_type_uint64_t
12895   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12896   echo "$as_me:$LINENO: checking for uintmax_t" >&5
12897 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12898 if test "${ac_cv_type_uintmax_t+set}" = set; then
12899   echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901   cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h.  */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h.  */
12907 #include <sys/types.h>
12908 #include <$i>
12909
12910 int
12911 main ()
12912 {
12913 if ((uintmax_t *) 0)
12914   return 0;
12915 if (sizeof (uintmax_t))
12916   return 0;
12917   ;
12918   return 0;
12919 }
12920 _ACEOF
12921 rm -f conftest.$ac_objext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923   (eval $ac_compile) 2>conftest.er1
12924   ac_status=$?
12925   grep -v '^ *+' conftest.er1 >conftest.err
12926   rm -f conftest.er1
12927   cat conftest.err >&5
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } &&
12930          { ac_try='test -z "$ac_c_werror_flag"
12931                          || test ! -s conftest.err'
12932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933   (eval $ac_try) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }; } &&
12937          { ac_try='test -s conftest.$ac_objext'
12938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939   (eval $ac_try) 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); }; }; then
12943   ac_cv_type_uintmax_t=yes
12944 else
12945   echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 ac_cv_type_uintmax_t=no
12949 fi
12950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12951 fi
12952 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12953 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12954 if test $ac_cv_type_uintmax_t = yes; then
12955   acx_cv_header_stdint=$i
12956 else
12957   continue
12958 fi
12959
12960   echo "$as_me:$LINENO: checking for uintptr_t" >&5
12961 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12962 if test "${ac_cv_type_uintptr_t+set}" = set; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h.  */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h.  */
12971 #include <sys/types.h>
12972 #include <$i>
12973
12974 int
12975 main ()
12976 {
12977 if ((uintptr_t *) 0)
12978   return 0;
12979 if (sizeof (uintptr_t))
12980   return 0;
12981   ;
12982   return 0;
12983 }
12984 _ACEOF
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987   (eval $ac_compile) 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_c_werror_flag"
12995                          || test ! -s conftest.err'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; } &&
13001          { ac_try='test -s conftest.$ac_objext'
13002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003   (eval $ac_try) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007   ac_cv_type_uintptr_t=yes
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 ac_cv_type_uintptr_t=no
13013 fi
13014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13015 fi
13016 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13017 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13018 if test $ac_cv_type_uintptr_t = yes; then
13019   :
13020 else
13021   acx_cv_header_stdint_kind="(mostly complete)"
13022 fi
13023
13024   echo "$as_me:$LINENO: checking for int_least32_t" >&5
13025 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13026 if test "${ac_cv_type_int_least32_t+set}" = set; then
13027   echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029   cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h.  */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h.  */
13035 #include <sys/types.h>
13036 #include <$i>
13037
13038 int
13039 main ()
13040 {
13041 if ((int_least32_t *) 0)
13042   return 0;
13043 if (sizeof (int_least32_t))
13044   return 0;
13045   ;
13046   return 0;
13047 }
13048 _ACEOF
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051   (eval $ac_compile) 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } &&
13058          { ac_try='test -z "$ac_c_werror_flag"
13059                          || test ! -s conftest.err'
13060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; } &&
13065          { ac_try='test -s conftest.$ac_objext'
13066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067   (eval $ac_try) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; }; then
13071   ac_cv_type_int_least32_t=yes
13072 else
13073   echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ac_cv_type_int_least32_t=no
13077 fi
13078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 fi
13080 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13081 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13082 if test $ac_cv_type_int_least32_t = yes; then
13083   :
13084 else
13085   acx_cv_header_stdint_kind="(mostly complete)"
13086 fi
13087
13088   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13089 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13090 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13091   echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093   cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h.  */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h.  */
13099 #include <sys/types.h>
13100 #include <$i>
13101
13102 int
13103 main ()
13104 {
13105 if ((int_fast32_t *) 0)
13106   return 0;
13107 if (sizeof (int_fast32_t))
13108   return 0;
13109   ;
13110   return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115   (eval $ac_compile) 2>conftest.er1
13116   ac_status=$?
13117   grep -v '^ *+' conftest.er1 >conftest.err
13118   rm -f conftest.er1
13119   cat conftest.err >&5
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } &&
13122          { ac_try='test -z "$ac_c_werror_flag"
13123                          || test ! -s conftest.err'
13124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125   (eval $ac_try) 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; } &&
13129          { ac_try='test -s conftest.$ac_objext'
13130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131   (eval $ac_try) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; }; then
13135   ac_cv_type_int_fast32_t=yes
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140 ac_cv_type_int_fast32_t=no
13141 fi
13142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13143 fi
13144 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13145 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13146 if test $ac_cv_type_int_fast32_t = yes; then
13147   :
13148 else
13149   acx_cv_header_stdint_kind="(mostly complete)"
13150 fi
13151
13152   echo "$as_me:$LINENO: checking for uint64_t" >&5
13153 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13154 if test "${ac_cv_type_uint64_t+set}" = set; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157   cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h.  */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h.  */
13163 #include <sys/types.h>
13164 #include <$i>
13165
13166 int
13167 main ()
13168 {
13169 if ((uint64_t *) 0)
13170   return 0;
13171 if (sizeof (uint64_t))
13172   return 0;
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179   (eval $ac_compile) 2>conftest.er1
13180   ac_status=$?
13181   grep -v '^ *+' conftest.er1 >conftest.err
13182   rm -f conftest.er1
13183   cat conftest.err >&5
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } &&
13186          { ac_try='test -z "$ac_c_werror_flag"
13187                          || test ! -s conftest.err'
13188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189   (eval $ac_try) 2>&5
13190   ac_status=$?
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); }; } &&
13193          { ac_try='test -s conftest.$ac_objext'
13194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195   (eval $ac_try) 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; }; then
13199   ac_cv_type_uint64_t=yes
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204 ac_cv_type_uint64_t=no
13205 fi
13206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13207 fi
13208 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13209 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13210 if test $ac_cv_type_uint64_t = yes; then
13211   :
13212 else
13213   acx_cv_header_stdint_kind="(lacks uint64_t)"
13214 fi
13215
13216   break
13217 done
13218 if test "$acx_cv_header_stdint" = stddef.h; then
13219   acx_cv_header_stdint_kind="(lacks uintmax_t)"
13220   for i in stdint.h $inttype_headers; do
13221     unset ac_cv_type_uintptr_t
13222     unset ac_cv_type_uint32_t
13223     unset ac_cv_type_uint64_t
13224     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13225     echo "$as_me:$LINENO: checking for uint32_t" >&5
13226 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13227 if test "${ac_cv_type_uint32_t+set}" = set; then
13228   echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230   cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h.  */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h.  */
13236 #include <sys/types.h>
13237 #include <$i>
13238
13239 int
13240 main ()
13241 {
13242 if ((uint32_t *) 0)
13243   return 0;
13244 if (sizeof (uint32_t))
13245   return 0;
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252   (eval $ac_compile) 2>conftest.er1
13253   ac_status=$?
13254   grep -v '^ *+' conftest.er1 >conftest.err
13255   rm -f conftest.er1
13256   cat conftest.err >&5
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); } &&
13259          { ac_try='test -z "$ac_c_werror_flag"
13260                          || test ! -s conftest.err'
13261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262   (eval $ac_try) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; } &&
13266          { ac_try='test -s conftest.$ac_objext'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   ac_cv_type_uint32_t=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277 ac_cv_type_uint32_t=no
13278 fi
13279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13280 fi
13281 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13282 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13283 if test $ac_cv_type_uint32_t = yes; then
13284   acx_cv_header_stdint=$i
13285 else
13286   continue
13287 fi
13288
13289     echo "$as_me:$LINENO: checking for uint64_t" >&5
13290 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13291 if test "${ac_cv_type_uint64_t+set}" = set; then
13292   echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294   cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #include <sys/types.h>
13301 #include <$i>
13302
13303 int
13304 main ()
13305 {
13306 if ((uint64_t *) 0)
13307   return 0;
13308 if (sizeof (uint64_t))
13309   return 0;
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13316   (eval $ac_compile) 2>conftest.er1
13317   ac_status=$?
13318   grep -v '^ *+' conftest.er1 >conftest.err
13319   rm -f conftest.er1
13320   cat conftest.err >&5
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); } &&
13323          { ac_try='test -z "$ac_c_werror_flag"
13324                          || test ! -s conftest.err'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; } &&
13330          { ac_try='test -s conftest.$ac_objext'
13331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332   (eval $ac_try) 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; }; then
13336   ac_cv_type_uint64_t=yes
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341 ac_cv_type_uint64_t=no
13342 fi
13343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13346 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13347
13348     echo "$as_me:$LINENO: checking for uintptr_t" >&5
13349 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13350 if test "${ac_cv_type_uintptr_t+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359 #include <sys/types.h>
13360 #include <$i>
13361
13362 int
13363 main ()
13364 {
13365 if ((uintptr_t *) 0)
13366   return 0;
13367 if (sizeof (uintptr_t))
13368   return 0;
13369   ;
13370   return 0;
13371 }
13372 _ACEOF
13373 rm -f conftest.$ac_objext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375   (eval $ac_compile) 2>conftest.er1
13376   ac_status=$?
13377   grep -v '^ *+' conftest.er1 >conftest.err
13378   rm -f conftest.er1
13379   cat conftest.err >&5
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); } &&
13382          { ac_try='test -z "$ac_c_werror_flag"
13383                          || test ! -s conftest.err'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; } &&
13389          { ac_try='test -s conftest.$ac_objext'
13390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391   (eval $ac_try) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); }; }; then
13395   ac_cv_type_uintptr_t=yes
13396 else
13397   echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13399
13400 ac_cv_type_uintptr_t=no
13401 fi
13402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13405 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13406
13407     break
13408   done
13409 fi
13410 if test "$acx_cv_header_stdint" = stddef.h; then
13411   acx_cv_header_stdint_kind="(u_intXX_t style)"
13412   for i in sys/types.h $inttype_headers; do
13413     unset ac_cv_type_u_int32_t
13414     unset ac_cv_type_u_int64_t
13415     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13416     echo "$as_me:$LINENO: checking for u_int32_t" >&5
13417 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13418 if test "${ac_cv_type_u_int32_t+set}" = set; then
13419   echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421   cat >conftest.$ac_ext <<_ACEOF
13422 /* confdefs.h.  */
13423 _ACEOF
13424 cat confdefs.h >>conftest.$ac_ext
13425 cat >>conftest.$ac_ext <<_ACEOF
13426 /* end confdefs.h.  */
13427 #include <sys/types.h>
13428 #include <$i>
13429
13430 int
13431 main ()
13432 {
13433 if ((u_int32_t *) 0)
13434   return 0;
13435 if (sizeof (u_int32_t))
13436   return 0;
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 rm -f conftest.$ac_objext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443   (eval $ac_compile) 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } &&
13450          { ac_try='test -z "$ac_c_werror_flag"
13451                          || test ! -s conftest.err'
13452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453   (eval $ac_try) 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; } &&
13457          { ac_try='test -s conftest.$ac_objext'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; }; then
13463   ac_cv_type_u_int32_t=yes
13464 else
13465   echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468 ac_cv_type_u_int32_t=no
13469 fi
13470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13471 fi
13472 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13473 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13474 if test $ac_cv_type_u_int32_t = yes; then
13475   acx_cv_header_stdint=$i
13476 else
13477   continue
13478 fi
13479
13480     echo "$as_me:$LINENO: checking for u_int64_t" >&5
13481 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13482 if test "${ac_cv_type_u_int64_t+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491 #include <sys/types.h>
13492 #include <$i>
13493
13494 int
13495 main ()
13496 {
13497 if ((u_int64_t *) 0)
13498   return 0;
13499 if (sizeof (u_int64_t))
13500   return 0;
13501   ;
13502   return 0;
13503 }
13504 _ACEOF
13505 rm -f conftest.$ac_objext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507   (eval $ac_compile) 2>conftest.er1
13508   ac_status=$?
13509   grep -v '^ *+' conftest.er1 >conftest.err
13510   rm -f conftest.er1
13511   cat conftest.err >&5
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } &&
13514          { ac_try='test -z "$ac_c_werror_flag"
13515                          || test ! -s conftest.err'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; } &&
13521          { ac_try='test -s conftest.$ac_objext'
13522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523   (eval $ac_try) 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; }; then
13527   ac_cv_type_u_int64_t=yes
13528 else
13529   echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 ac_cv_type_u_int64_t=no
13533 fi
13534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13537 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13538
13539     break
13540   done
13541 fi
13542 if test "$acx_cv_header_stdint" = stddef.h; then
13543   acx_cv_header_stdint_kind="(using manual detection)"
13544 fi
13545
13546 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13547 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13548 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13549 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13550 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13551
13552 # ----------------- Summarize what we found so far
13553
13554 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13555 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13556
13557 case `$as_basename bfd_stdint.h ||
13558 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13559          Xbfd_stdint.h : 'X\(//\)$' \| \
13560          Xbfd_stdint.h : 'X\(/\)$' \| \
13561          .     : '\(.\)' 2>/dev/null ||
13562 echo X/bfd_stdint.h |
13563     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13564           /^X\/\(\/\/\)$/{ s//\1/; q; }
13565           /^X\/\(\/\).*/{ s//\1/; q; }
13566           s/.*/./; q'` in
13567   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13568 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13569   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13570 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13571   *) ;;
13572 esac
13573
13574 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13575 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13576
13577 # ----------------- done included file, check C basic types --------
13578
13579 # Lacking an uintptr_t?  Test size of void *
13580 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13581   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13582 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13583 if test "${ac_cv_type_void_p+set}" = set; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586   cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h.  */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h.  */
13592 $ac_includes_default
13593 int
13594 main ()
13595 {
13596 if ((void * *) 0)
13597   return 0;
13598 if (sizeof (void *))
13599   return 0;
13600   ;
13601   return 0;
13602 }
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606   (eval $ac_compile) 2>conftest.er1
13607   ac_status=$?
13608   grep -v '^ *+' conftest.er1 >conftest.err
13609   rm -f conftest.er1
13610   cat conftest.err >&5
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -z "$ac_c_werror_flag"
13614                          || test ! -s conftest.err'
13615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616   (eval $ac_try) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); }; } &&
13620          { ac_try='test -s conftest.$ac_objext'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; }; then
13626   ac_cv_type_void_p=yes
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631 ac_cv_type_void_p=no
13632 fi
13633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13634 fi
13635 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13636 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13637
13638 echo "$as_me:$LINENO: checking size of void *" >&5
13639 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13640 if test "${ac_cv_sizeof_void_p+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   if test "$ac_cv_type_void_p" = yes; then
13644   # The cast to unsigned long works around a bug in the HP C Compiler
13645   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13646   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13647   # This bug is HP SR number 8606223364.
13648   if test "$cross_compiling" = yes; then
13649   # Depending upon the size, compute the lo and hi bounds.
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 $ac_includes_default
13657 int
13658 main ()
13659 {
13660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13661 test_array [0] = 0
13662
13663   ;
13664   return 0;
13665 }
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669   (eval $ac_compile) 2>conftest.er1
13670   ac_status=$?
13671   grep -v '^ *+' conftest.er1 >conftest.err
13672   rm -f conftest.er1
13673   cat conftest.err >&5
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); } &&
13676          { ac_try='test -z "$ac_c_werror_flag"
13677                          || test ! -s conftest.err'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; } &&
13683          { ac_try='test -s conftest.$ac_objext'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_lo=0 ac_mid=0
13690   while :; do
13691     cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697 $ac_includes_default
13698 int
13699 main ()
13700 {
13701 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13702 test_array [0] = 0
13703
13704   ;
13705   return 0;
13706 }
13707 _ACEOF
13708 rm -f conftest.$ac_objext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710   (eval $ac_compile) 2>conftest.er1
13711   ac_status=$?
13712   grep -v '^ *+' conftest.er1 >conftest.err
13713   rm -f conftest.er1
13714   cat conftest.err >&5
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); } &&
13717          { ac_try='test -z "$ac_c_werror_flag"
13718                          || test ! -s conftest.err'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; } &&
13724          { ac_try='test -s conftest.$ac_objext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   ac_hi=$ac_mid; break
13731 else
13732   echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735 ac_lo=`expr $ac_mid + 1`
13736                     if test $ac_lo -le $ac_mid; then
13737                       ac_lo= ac_hi=
13738                       break
13739                     fi
13740                     ac_mid=`expr 2 '*' $ac_mid + 1`
13741 fi
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743   done
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h.  */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h.  */
13754 $ac_includes_default
13755 int
13756 main ()
13757 {
13758 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13759 test_array [0] = 0
13760
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 rm -f conftest.$ac_objext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13767   (eval $ac_compile) 2>conftest.er1
13768   ac_status=$?
13769   grep -v '^ *+' conftest.er1 >conftest.err
13770   rm -f conftest.er1
13771   cat conftest.err >&5
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); } &&
13774          { ac_try='test -z "$ac_c_werror_flag"
13775                          || test ! -s conftest.err'
13776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777   (eval $ac_try) 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); }; } &&
13781          { ac_try='test -s conftest.$ac_objext'
13782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783   (eval $ac_try) 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); }; }; then
13787   ac_hi=-1 ac_mid=-1
13788   while :; do
13789     cat >conftest.$ac_ext <<_ACEOF
13790 /* confdefs.h.  */
13791 _ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h.  */
13795 $ac_includes_default
13796 int
13797 main ()
13798 {
13799 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13800 test_array [0] = 0
13801
13802   ;
13803   return 0;
13804 }
13805 _ACEOF
13806 rm -f conftest.$ac_objext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808   (eval $ac_compile) 2>conftest.er1
13809   ac_status=$?
13810   grep -v '^ *+' conftest.er1 >conftest.err
13811   rm -f conftest.er1
13812   cat conftest.err >&5
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); } &&
13815          { ac_try='test -z "$ac_c_werror_flag"
13816                          || test ! -s conftest.err'
13817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818   (eval $ac_try) 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; } &&
13822          { ac_try='test -s conftest.$ac_objext'
13823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824   (eval $ac_try) 2>&5
13825   ac_status=$?
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); }; }; then
13828   ac_lo=$ac_mid; break
13829 else
13830   echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 ac_hi=`expr '(' $ac_mid ')' - 1`
13834                        if test $ac_mid -le $ac_hi; then
13835                          ac_lo= ac_hi=
13836                          break
13837                        fi
13838                        ac_mid=`expr 2 '*' $ac_mid`
13839 fi
13840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13841   done
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 ac_lo= ac_hi=
13847 fi
13848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13849 fi
13850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13851 # Binary search between lo and hi bounds.
13852 while test "x$ac_lo" != "x$ac_hi"; do
13853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13854   cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h.  */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h.  */
13860 $ac_includes_default
13861 int
13862 main ()
13863 {
13864 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13865 test_array [0] = 0
13866
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 rm -f conftest.$ac_objext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873   (eval $ac_compile) 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -z "$ac_c_werror_flag"
13881                          || test ! -s conftest.err'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; } &&
13887          { ac_try='test -s conftest.$ac_objext'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; }; then
13893   ac_hi=$ac_mid
13894 else
13895   echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 ac_lo=`expr '(' $ac_mid ')' + 1`
13899 fi
13900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13901 done
13902 case $ac_lo in
13903 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13904 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13905 See \`config.log' for more details." >&5
13906 echo "$as_me: error: cannot compute sizeof (void *), 77
13907 See \`config.log' for more details." >&2;}
13908    { (exit 1); exit 1; }; } ;;
13909 esac
13910 else
13911   if test "$cross_compiling" = yes; then
13912   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13913 See \`config.log' for more details." >&5
13914 echo "$as_me: error: cannot run test program while cross compiling
13915 See \`config.log' for more details." >&2;}
13916    { (exit 1); exit 1; }; }
13917 else
13918   cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924 $ac_includes_default
13925 long longval () { return (long) (sizeof (void *)); }
13926 unsigned long ulongval () { return (long) (sizeof (void *)); }
13927 #include <stdio.h>
13928 #include <stdlib.h>
13929 int
13930 main ()
13931 {
13932
13933   FILE *f = fopen ("conftest.val", "w");
13934   if (! f)
13935     exit (1);
13936   if (((long) (sizeof (void *))) < 0)
13937     {
13938       long i = longval ();
13939       if (i != ((long) (sizeof (void *))))
13940         exit (1);
13941       fprintf (f, "%ld\n", i);
13942     }
13943   else
13944     {
13945       unsigned long i = ulongval ();
13946       if (i != ((long) (sizeof (void *))))
13947         exit (1);
13948       fprintf (f, "%lu\n", i);
13949     }
13950   exit (ferror (f) || fclose (f) != 0);
13951
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958   (eval $ac_link) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963   (eval $ac_try) 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); }; }; then
13967   ac_cv_sizeof_void_p=`cat conftest.val`
13968 else
13969   echo "$as_me: program exited with status $ac_status" >&5
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973 ( exit $ac_status )
13974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13975 See \`config.log' for more details." >&5
13976 echo "$as_me: error: cannot compute sizeof (void *), 77
13977 See \`config.log' for more details." >&2;}
13978    { (exit 1); exit 1; }; }
13979 fi
13980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13981 fi
13982 fi
13983 rm -f conftest.val
13984 else
13985   ac_cv_sizeof_void_p=0
13986 fi
13987 fi
13988 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13989 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13990 cat >>confdefs.h <<_ACEOF
13991 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13992 _ACEOF
13993
13994  ;;
13995 esac
13996
13997 # Lacking an uint64_t?  Test size of long
13998 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13999   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14000 echo $ECHO_N "checking for long... $ECHO_C" >&6
14001 if test "${ac_cv_type_long+set}" = set; then
14002   echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004   cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 $ac_includes_default
14011 int
14012 main ()
14013 {
14014 if ((long *) 0)
14015   return 0;
14016 if (sizeof (long))
14017   return 0;
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024   (eval $ac_compile) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest.$ac_objext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_cv_type_long=yes
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_cv_type_long=no
14050 fi
14051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 fi
14053 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14054 echo "${ECHO_T}$ac_cv_type_long" >&6
14055
14056 echo "$as_me:$LINENO: checking size of long" >&5
14057 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14058 if test "${ac_cv_sizeof_long+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   if test "$ac_cv_type_long" = yes; then
14062   # The cast to unsigned long works around a bug in the HP C Compiler
14063   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14064   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14065   # This bug is HP SR number 8606223364.
14066   if test "$cross_compiling" = yes; then
14067   # Depending upon the size, compute the lo and hi bounds.
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074 $ac_includes_default
14075 int
14076 main ()
14077 {
14078 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14079 test_array [0] = 0
14080
14081   ;
14082   return 0;
14083 }
14084 _ACEOF
14085 rm -f conftest.$ac_objext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14087   (eval $ac_compile) 2>conftest.er1
14088   ac_status=$?
14089   grep -v '^ *+' conftest.er1 >conftest.err
14090   rm -f conftest.er1
14091   cat conftest.err >&5
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); } &&
14094          { ac_try='test -z "$ac_c_werror_flag"
14095                          || test ! -s conftest.err'
14096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097   (eval $ac_try) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); }; } &&
14101          { ac_try='test -s conftest.$ac_objext'
14102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103   (eval $ac_try) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; }; then
14107   ac_lo=0 ac_mid=0
14108   while :; do
14109     cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h.  */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h.  */
14115 $ac_includes_default
14116 int
14117 main ()
14118 {
14119 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14120 test_array [0] = 0
14121
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128   (eval $ac_compile) 2>conftest.er1
14129   ac_status=$?
14130   grep -v '^ *+' conftest.er1 >conftest.err
14131   rm -f conftest.er1
14132   cat conftest.err >&5
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } &&
14135          { ac_try='test -z "$ac_c_werror_flag"
14136                          || test ! -s conftest.err'
14137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138   (eval $ac_try) 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; } &&
14142          { ac_try='test -s conftest.$ac_objext'
14143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144   (eval $ac_try) 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; }; then
14148   ac_hi=$ac_mid; break
14149 else
14150   echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14152
14153 ac_lo=`expr $ac_mid + 1`
14154                     if test $ac_lo -le $ac_mid; then
14155                       ac_lo= ac_hi=
14156                       break
14157                     fi
14158                     ac_mid=`expr 2 '*' $ac_mid + 1`
14159 fi
14160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14161   done
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 cat >conftest.$ac_ext <<_ACEOF
14167 /* confdefs.h.  */
14168 _ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h.  */
14172 $ac_includes_default
14173 int
14174 main ()
14175 {
14176 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14177 test_array [0] = 0
14178
14179   ;
14180   return 0;
14181 }
14182 _ACEOF
14183 rm -f conftest.$ac_objext
14184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14185   (eval $ac_compile) 2>conftest.er1
14186   ac_status=$?
14187   grep -v '^ *+' conftest.er1 >conftest.err
14188   rm -f conftest.er1
14189   cat conftest.err >&5
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); } &&
14192          { ac_try='test -z "$ac_c_werror_flag"
14193                          || test ! -s conftest.err'
14194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195   (eval $ac_try) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; } &&
14199          { ac_try='test -s conftest.$ac_objext'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }; then
14205   ac_hi=-1 ac_mid=-1
14206   while :; do
14207     cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h.  */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h.  */
14213 $ac_includes_default
14214 int
14215 main ()
14216 {
14217 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14218 test_array [0] = 0
14219
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226   (eval $ac_compile) 2>conftest.er1
14227   ac_status=$?
14228   grep -v '^ *+' conftest.er1 >conftest.err
14229   rm -f conftest.er1
14230   cat conftest.err >&5
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } &&
14233          { ac_try='test -z "$ac_c_werror_flag"
14234                          || test ! -s conftest.err'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; } &&
14240          { ac_try='test -s conftest.$ac_objext'
14241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242   (eval $ac_try) 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; }; then
14246   ac_lo=$ac_mid; break
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 ac_hi=`expr '(' $ac_mid ')' - 1`
14252                        if test $ac_mid -le $ac_hi; then
14253                          ac_lo= ac_hi=
14254                          break
14255                        fi
14256                        ac_mid=`expr 2 '*' $ac_mid`
14257 fi
14258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14259   done
14260 else
14261   echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14263
14264 ac_lo= ac_hi=
14265 fi
14266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14267 fi
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 # Binary search between lo and hi bounds.
14270 while test "x$ac_lo" != "x$ac_hi"; do
14271   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14272   cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278 $ac_includes_default
14279 int
14280 main ()
14281 {
14282 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14283 test_array [0] = 0
14284
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291   (eval $ac_compile) 2>conftest.er1
14292   ac_status=$?
14293   grep -v '^ *+' conftest.er1 >conftest.err
14294   rm -f conftest.er1
14295   cat conftest.err >&5
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } &&
14298          { ac_try='test -z "$ac_c_werror_flag"
14299                          || test ! -s conftest.err'
14300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301   (eval $ac_try) 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; } &&
14305          { ac_try='test -s conftest.$ac_objext'
14306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307   (eval $ac_try) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; }; then
14311   ac_hi=$ac_mid
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_lo=`expr '(' $ac_mid ')' + 1`
14317 fi
14318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14319 done
14320 case $ac_lo in
14321 ?*) ac_cv_sizeof_long=$ac_lo;;
14322 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14323 See \`config.log' for more details." >&5
14324 echo "$as_me: error: cannot compute sizeof (long), 77
14325 See \`config.log' for more details." >&2;}
14326    { (exit 1); exit 1; }; } ;;
14327 esac
14328 else
14329   if test "$cross_compiling" = yes; then
14330   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14331 See \`config.log' for more details." >&5
14332 echo "$as_me: error: cannot run test program while cross compiling
14333 See \`config.log' for more details." >&2;}
14334    { (exit 1); exit 1; }; }
14335 else
14336   cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 $ac_includes_default
14343 long longval () { return (long) (sizeof (long)); }
14344 unsigned long ulongval () { return (long) (sizeof (long)); }
14345 #include <stdio.h>
14346 #include <stdlib.h>
14347 int
14348 main ()
14349 {
14350
14351   FILE *f = fopen ("conftest.val", "w");
14352   if (! f)
14353     exit (1);
14354   if (((long) (sizeof (long))) < 0)
14355     {
14356       long i = longval ();
14357       if (i != ((long) (sizeof (long))))
14358         exit (1);
14359       fprintf (f, "%ld\n", i);
14360     }
14361   else
14362     {
14363       unsigned long i = ulongval ();
14364       if (i != ((long) (sizeof (long))))
14365         exit (1);
14366       fprintf (f, "%lu\n", i);
14367     }
14368   exit (ferror (f) || fclose (f) != 0);
14369
14370   ;
14371   return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest$ac_exeext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14376   (eval $ac_link) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381   (eval $ac_try) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; }; then
14385   ac_cv_sizeof_long=`cat conftest.val`
14386 else
14387   echo "$as_me: program exited with status $ac_status" >&5
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 ( exit $ac_status )
14392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14393 See \`config.log' for more details." >&5
14394 echo "$as_me: error: cannot compute sizeof (long), 77
14395 See \`config.log' for more details." >&2;}
14396    { (exit 1); exit 1; }; }
14397 fi
14398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14399 fi
14400 fi
14401 rm -f conftest.val
14402 else
14403   ac_cv_sizeof_long=0
14404 fi
14405 fi
14406 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14407 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14408 cat >>confdefs.h <<_ACEOF
14409 #define SIZEOF_LONG $ac_cv_sizeof_long
14410 _ACEOF
14411
14412  ;;
14413 esac
14414
14415 if test $acx_cv_header_stdint = stddef.h; then
14416   # Lacking a good header?  Test size of everything and deduce all types.
14417   echo "$as_me:$LINENO: checking for int" >&5
14418 echo $ECHO_N "checking for int... $ECHO_C" >&6
14419 if test "${ac_cv_type_int+set}" = set; then
14420   echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422   cat >conftest.$ac_ext <<_ACEOF
14423 /* confdefs.h.  */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h.  */
14428 $ac_includes_default
14429 int
14430 main ()
14431 {
14432 if ((int *) 0)
14433   return 0;
14434 if (sizeof (int))
14435   return 0;
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442   (eval $ac_compile) 2>conftest.er1
14443   ac_status=$?
14444   grep -v '^ *+' conftest.er1 >conftest.err
14445   rm -f conftest.er1
14446   cat conftest.err >&5
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } &&
14449          { ac_try='test -z "$ac_c_werror_flag"
14450                          || test ! -s conftest.err'
14451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452   (eval $ac_try) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; } &&
14456          { ac_try='test -s conftest.$ac_objext'
14457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458   (eval $ac_try) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); }; }; then
14462   ac_cv_type_int=yes
14463 else
14464   echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14466
14467 ac_cv_type_int=no
14468 fi
14469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470 fi
14471 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14472 echo "${ECHO_T}$ac_cv_type_int" >&6
14473
14474 echo "$as_me:$LINENO: checking size of int" >&5
14475 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14476 if test "${ac_cv_sizeof_int+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   if test "$ac_cv_type_int" = yes; then
14480   # The cast to unsigned long works around a bug in the HP C Compiler
14481   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14482   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14483   # This bug is HP SR number 8606223364.
14484   if test "$cross_compiling" = yes; then
14485   # Depending upon the size, compute the lo and hi bounds.
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h.  */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h.  */
14492 $ac_includes_default
14493 int
14494 main ()
14495 {
14496 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14497 test_array [0] = 0
14498
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505   (eval $ac_compile) 2>conftest.er1
14506   ac_status=$?
14507   grep -v '^ *+' conftest.er1 >conftest.err
14508   rm -f conftest.er1
14509   cat conftest.err >&5
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); } &&
14512          { ac_try='test -z "$ac_c_werror_flag"
14513                          || test ! -s conftest.err'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; } &&
14519          { ac_try='test -s conftest.$ac_objext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   ac_lo=0 ac_mid=0
14526   while :; do
14527     cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 $ac_includes_default
14534 int
14535 main ()
14536 {
14537 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14538 test_array [0] = 0
14539
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 rm -f conftest.$ac_objext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546   (eval $ac_compile) 2>conftest.er1
14547   ac_status=$?
14548   grep -v '^ *+' conftest.er1 >conftest.err
14549   rm -f conftest.er1
14550   cat conftest.err >&5
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } &&
14553          { ac_try='test -z "$ac_c_werror_flag"
14554                          || test ! -s conftest.err'
14555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556   (eval $ac_try) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; } &&
14560          { ac_try='test -s conftest.$ac_objext'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_hi=$ac_mid; break
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 ac_lo=`expr $ac_mid + 1`
14572                     if test $ac_lo -le $ac_mid; then
14573                       ac_lo= ac_hi=
14574                       break
14575                     fi
14576                     ac_mid=`expr 2 '*' $ac_mid + 1`
14577 fi
14578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14579   done
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590 $ac_includes_default
14591 int
14592 main ()
14593 {
14594 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14595 test_array [0] = 0
14596
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603   (eval $ac_compile) 2>conftest.er1
14604   ac_status=$?
14605   grep -v '^ *+' conftest.er1 >conftest.err
14606   rm -f conftest.er1
14607   cat conftest.err >&5
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); } &&
14610          { ac_try='test -z "$ac_c_werror_flag"
14611                          || test ! -s conftest.err'
14612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613   (eval $ac_try) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; } &&
14617          { ac_try='test -s conftest.$ac_objext'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; }; then
14623   ac_hi=-1 ac_mid=-1
14624   while :; do
14625     cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h.  */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h.  */
14631 $ac_includes_default
14632 int
14633 main ()
14634 {
14635 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14636 test_array [0] = 0
14637
14638   ;
14639   return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644   (eval $ac_compile) 2>conftest.er1
14645   ac_status=$?
14646   grep -v '^ *+' conftest.er1 >conftest.err
14647   rm -f conftest.er1
14648   cat conftest.err >&5
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); } &&
14651          { ac_try='test -z "$ac_c_werror_flag"
14652                          || test ! -s conftest.err'
14653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654   (eval $ac_try) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; } &&
14658          { ac_try='test -s conftest.$ac_objext'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; }; then
14664   ac_lo=$ac_mid; break
14665 else
14666   echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14668
14669 ac_hi=`expr '(' $ac_mid ')' - 1`
14670                        if test $ac_mid -le $ac_hi; then
14671                          ac_lo= ac_hi=
14672                          break
14673                        fi
14674                        ac_mid=`expr 2 '*' $ac_mid`
14675 fi
14676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14677   done
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_lo= ac_hi=
14683 fi
14684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14685 fi
14686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14687 # Binary search between lo and hi bounds.
14688 while test "x$ac_lo" != "x$ac_hi"; do
14689   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14690   cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696 $ac_includes_default
14697 int
14698 main ()
14699 {
14700 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14701 test_array [0] = 0
14702
14703   ;
14704   return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709   (eval $ac_compile) 2>conftest.er1
14710   ac_status=$?
14711   grep -v '^ *+' conftest.er1 >conftest.err
14712   rm -f conftest.er1
14713   cat conftest.err >&5
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); } &&
14716          { ac_try='test -z "$ac_c_werror_flag"
14717                          || test ! -s conftest.err'
14718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719   (eval $ac_try) 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; } &&
14723          { ac_try='test -s conftest.$ac_objext'
14724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725   (eval $ac_try) 2>&5
14726   ac_status=$?
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); }; }; then
14729   ac_hi=$ac_mid
14730 else
14731   echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734 ac_lo=`expr '(' $ac_mid ')' + 1`
14735 fi
14736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14737 done
14738 case $ac_lo in
14739 ?*) ac_cv_sizeof_int=$ac_lo;;
14740 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14741 See \`config.log' for more details." >&5
14742 echo "$as_me: error: cannot compute sizeof (int), 77
14743 See \`config.log' for more details." >&2;}
14744    { (exit 1); exit 1; }; } ;;
14745 esac
14746 else
14747   if test "$cross_compiling" = yes; then
14748   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14749 See \`config.log' for more details." >&5
14750 echo "$as_me: error: cannot run test program while cross compiling
14751 See \`config.log' for more details." >&2;}
14752    { (exit 1); exit 1; }; }
14753 else
14754   cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h.  */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h.  */
14760 $ac_includes_default
14761 long longval () { return (long) (sizeof (int)); }
14762 unsigned long ulongval () { return (long) (sizeof (int)); }
14763 #include <stdio.h>
14764 #include <stdlib.h>
14765 int
14766 main ()
14767 {
14768
14769   FILE *f = fopen ("conftest.val", "w");
14770   if (! f)
14771     exit (1);
14772   if (((long) (sizeof (int))) < 0)
14773     {
14774       long i = longval ();
14775       if (i != ((long) (sizeof (int))))
14776         exit (1);
14777       fprintf (f, "%ld\n", i);
14778     }
14779   else
14780     {
14781       unsigned long i = ulongval ();
14782       if (i != ((long) (sizeof (int))))
14783         exit (1);
14784       fprintf (f, "%lu\n", i);
14785     }
14786   exit (ferror (f) || fclose (f) != 0);
14787
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest$ac_exeext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14794   (eval $ac_link) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799   (eval $ac_try) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; }; then
14803   ac_cv_sizeof_int=`cat conftest.val`
14804 else
14805   echo "$as_me: program exited with status $ac_status" >&5
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 ( exit $ac_status )
14810 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14811 See \`config.log' for more details." >&5
14812 echo "$as_me: error: cannot compute sizeof (int), 77
14813 See \`config.log' for more details." >&2;}
14814    { (exit 1); exit 1; }; }
14815 fi
14816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14817 fi
14818 fi
14819 rm -f conftest.val
14820 else
14821   ac_cv_sizeof_int=0
14822 fi
14823 fi
14824 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14825 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14826 cat >>confdefs.h <<_ACEOF
14827 #define SIZEOF_INT $ac_cv_sizeof_int
14828 _ACEOF
14829
14830
14831   echo "$as_me:$LINENO: checking for short" >&5
14832 echo $ECHO_N "checking for short... $ECHO_C" >&6
14833 if test "${ac_cv_type_short+set}" = set; then
14834   echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836   cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h.  */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h.  */
14842 $ac_includes_default
14843 int
14844 main ()
14845 {
14846 if ((short *) 0)
14847   return 0;
14848 if (sizeof (short))
14849   return 0;
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856   (eval $ac_compile) 2>conftest.er1
14857   ac_status=$?
14858   grep -v '^ *+' conftest.er1 >conftest.err
14859   rm -f conftest.er1
14860   cat conftest.err >&5
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); } &&
14863          { ac_try='test -z "$ac_c_werror_flag"
14864                          || test ! -s conftest.err'
14865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866   (eval $ac_try) 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); }; } &&
14870          { ac_try='test -s conftest.$ac_objext'
14871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872   (eval $ac_try) 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; }; then
14876   ac_cv_type_short=yes
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 ac_cv_type_short=no
14882 fi
14883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14884 fi
14885 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14886 echo "${ECHO_T}$ac_cv_type_short" >&6
14887
14888 echo "$as_me:$LINENO: checking size of short" >&5
14889 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14890 if test "${ac_cv_sizeof_short+set}" = set; then
14891   echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893   if test "$ac_cv_type_short" = yes; then
14894   # The cast to unsigned long works around a bug in the HP C Compiler
14895   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14896   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14897   # This bug is HP SR number 8606223364.
14898   if test "$cross_compiling" = yes; then
14899   # Depending upon the size, compute the lo and hi bounds.
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h.  */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h.  */
14906 $ac_includes_default
14907 int
14908 main ()
14909 {
14910 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14911 test_array [0] = 0
14912
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919   (eval $ac_compile) 2>conftest.er1
14920   ac_status=$?
14921   grep -v '^ *+' conftest.er1 >conftest.err
14922   rm -f conftest.er1
14923   cat conftest.err >&5
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -z "$ac_c_werror_flag"
14927                          || test ! -s conftest.err'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; } &&
14933          { ac_try='test -s conftest.$ac_objext'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; }; then
14939   ac_lo=0 ac_mid=0
14940   while :; do
14941     cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947 $ac_includes_default
14948 int
14949 main ()
14950 {
14951 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14952 test_array [0] = 0
14953
14954   ;
14955   return 0;
14956 }
14957 _ACEOF
14958 rm -f conftest.$ac_objext
14959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14960   (eval $ac_compile) 2>conftest.er1
14961   ac_status=$?
14962   grep -v '^ *+' conftest.er1 >conftest.err
14963   rm -f conftest.er1
14964   cat conftest.err >&5
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); } &&
14967          { ac_try='test -z "$ac_c_werror_flag"
14968                          || test ! -s conftest.err'
14969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970   (eval $ac_try) 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; } &&
14974          { ac_try='test -s conftest.$ac_objext'
14975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976   (eval $ac_try) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); }; }; then
14980   ac_hi=$ac_mid; break
14981 else
14982   echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.$ac_ext >&5
14984
14985 ac_lo=`expr $ac_mid + 1`
14986                     if test $ac_lo -le $ac_mid; then
14987                       ac_lo= ac_hi=
14988                       break
14989                     fi
14990                     ac_mid=`expr 2 '*' $ac_mid + 1`
14991 fi
14992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14993   done
14994 else
14995   echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004 $ac_includes_default
15005 int
15006 main ()
15007 {
15008 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15009 test_array [0] = 0
15010
15011   ;
15012   return 0;
15013 }
15014 _ACEOF
15015 rm -f conftest.$ac_objext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15017   (eval $ac_compile) 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -z "$ac_c_werror_flag"
15025                          || test ! -s conftest.err'
15026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027   (eval $ac_try) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); }; } &&
15031          { ac_try='test -s conftest.$ac_objext'
15032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033   (eval $ac_try) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }; then
15037   ac_hi=-1 ac_mid=-1
15038   while :; do
15039     cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h.  */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h.  */
15045 $ac_includes_default
15046 int
15047 main ()
15048 {
15049 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15050 test_array [0] = 0
15051
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058   (eval $ac_compile) 2>conftest.er1
15059   ac_status=$?
15060   grep -v '^ *+' conftest.er1 >conftest.err
15061   rm -f conftest.er1
15062   cat conftest.err >&5
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } &&
15065          { ac_try='test -z "$ac_c_werror_flag"
15066                          || test ! -s conftest.err'
15067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068   (eval $ac_try) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); }; } &&
15072          { ac_try='test -s conftest.$ac_objext'
15073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074   (eval $ac_try) 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; }; then
15078   ac_lo=$ac_mid; break
15079 else
15080   echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083 ac_hi=`expr '(' $ac_mid ')' - 1`
15084                        if test $ac_mid -le $ac_hi; then
15085                          ac_lo= ac_hi=
15086                          break
15087                        fi
15088                        ac_mid=`expr 2 '*' $ac_mid`
15089 fi
15090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15091   done
15092 else
15093   echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15095
15096 ac_lo= ac_hi=
15097 fi
15098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15099 fi
15100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15101 # Binary search between lo and hi bounds.
15102 while test "x$ac_lo" != "x$ac_hi"; do
15103   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15104   cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h.  */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h.  */
15110 $ac_includes_default
15111 int
15112 main ()
15113 {
15114 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15115 test_array [0] = 0
15116
15117   ;
15118   return 0;
15119 }
15120 _ACEOF
15121 rm -f conftest.$ac_objext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123   (eval $ac_compile) 2>conftest.er1
15124   ac_status=$?
15125   grep -v '^ *+' conftest.er1 >conftest.err
15126   rm -f conftest.er1
15127   cat conftest.err >&5
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); } &&
15130          { ac_try='test -z "$ac_c_werror_flag"
15131                          || test ! -s conftest.err'
15132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133   (eval $ac_try) 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; } &&
15137          { ac_try='test -s conftest.$ac_objext'
15138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139   (eval $ac_try) 2>&5
15140   ac_status=$?
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); }; }; then
15143   ac_hi=$ac_mid
15144 else
15145   echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15147
15148 ac_lo=`expr '(' $ac_mid ')' + 1`
15149 fi
15150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15151 done
15152 case $ac_lo in
15153 ?*) ac_cv_sizeof_short=$ac_lo;;
15154 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15155 See \`config.log' for more details." >&5
15156 echo "$as_me: error: cannot compute sizeof (short), 77
15157 See \`config.log' for more details." >&2;}
15158    { (exit 1); exit 1; }; } ;;
15159 esac
15160 else
15161   if test "$cross_compiling" = yes; then
15162   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15163 See \`config.log' for more details." >&5
15164 echo "$as_me: error: cannot run test program while cross compiling
15165 See \`config.log' for more details." >&2;}
15166    { (exit 1); exit 1; }; }
15167 else
15168   cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h.  */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h.  */
15174 $ac_includes_default
15175 long longval () { return (long) (sizeof (short)); }
15176 unsigned long ulongval () { return (long) (sizeof (short)); }
15177 #include <stdio.h>
15178 #include <stdlib.h>
15179 int
15180 main ()
15181 {
15182
15183   FILE *f = fopen ("conftest.val", "w");
15184   if (! f)
15185     exit (1);
15186   if (((long) (sizeof (short))) < 0)
15187     {
15188       long i = longval ();
15189       if (i != ((long) (sizeof (short))))
15190         exit (1);
15191       fprintf (f, "%ld\n", i);
15192     }
15193   else
15194     {
15195       unsigned long i = ulongval ();
15196       if (i != ((long) (sizeof (short))))
15197         exit (1);
15198       fprintf (f, "%lu\n", i);
15199     }
15200   exit (ferror (f) || fclose (f) != 0);
15201
15202   ;
15203   return 0;
15204 }
15205 _ACEOF
15206 rm -f conftest$ac_exeext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15208   (eval $ac_link) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213   (eval $ac_try) 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); }; }; then
15217   ac_cv_sizeof_short=`cat conftest.val`
15218 else
15219   echo "$as_me: program exited with status $ac_status" >&5
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15222
15223 ( exit $ac_status )
15224 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15225 See \`config.log' for more details." >&5
15226 echo "$as_me: error: cannot compute sizeof (short), 77
15227 See \`config.log' for more details." >&2;}
15228    { (exit 1); exit 1; }; }
15229 fi
15230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15231 fi
15232 fi
15233 rm -f conftest.val
15234 else
15235   ac_cv_sizeof_short=0
15236 fi
15237 fi
15238 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15239 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15240 cat >>confdefs.h <<_ACEOF
15241 #define SIZEOF_SHORT $ac_cv_sizeof_short
15242 _ACEOF
15243
15244
15245   echo "$as_me:$LINENO: checking for char" >&5
15246 echo $ECHO_N "checking for char... $ECHO_C" >&6
15247 if test "${ac_cv_type_char+set}" = set; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250   cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h.  */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h.  */
15256 $ac_includes_default
15257 int
15258 main ()
15259 {
15260 if ((char *) 0)
15261   return 0;
15262 if (sizeof (char))
15263   return 0;
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 rm -f conftest.$ac_objext
15269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15270   (eval $ac_compile) 2>conftest.er1
15271   ac_status=$?
15272   grep -v '^ *+' conftest.er1 >conftest.err
15273   rm -f conftest.er1
15274   cat conftest.err >&5
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); } &&
15277          { ac_try='test -z "$ac_c_werror_flag"
15278                          || test ! -s conftest.err'
15279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280   (eval $ac_try) 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; } &&
15284          { ac_try='test -s conftest.$ac_objext'
15285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286   (eval $ac_try) 2>&5
15287   ac_status=$?
15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); }; }; then
15290   ac_cv_type_char=yes
15291 else
15292   echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295 ac_cv_type_char=no
15296 fi
15297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15298 fi
15299 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15300 echo "${ECHO_T}$ac_cv_type_char" >&6
15301
15302 echo "$as_me:$LINENO: checking size of char" >&5
15303 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15304 if test "${ac_cv_sizeof_char+set}" = set; then
15305   echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307   if test "$ac_cv_type_char" = yes; then
15308   # The cast to unsigned long works around a bug in the HP C Compiler
15309   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15310   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15311   # This bug is HP SR number 8606223364.
15312   if test "$cross_compiling" = yes; then
15313   # Depending upon the size, compute the lo and hi bounds.
15314 cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320 $ac_includes_default
15321 int
15322 main ()
15323 {
15324 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15325 test_array [0] = 0
15326
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15333   (eval $ac_compile) 2>conftest.er1
15334   ac_status=$?
15335   grep -v '^ *+' conftest.er1 >conftest.err
15336   rm -f conftest.er1
15337   cat conftest.err >&5
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); } &&
15340          { ac_try='test -z "$ac_c_werror_flag"
15341                          || test ! -s conftest.err'
15342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343   (eval $ac_try) 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; } &&
15347          { ac_try='test -s conftest.$ac_objext'
15348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349   (eval $ac_try) 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); }; }; then
15353   ac_lo=0 ac_mid=0
15354   while :; do
15355     cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 $ac_includes_default
15362 int
15363 main ()
15364 {
15365 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15366 test_array [0] = 0
15367
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374   (eval $ac_compile) 2>conftest.er1
15375   ac_status=$?
15376   grep -v '^ *+' conftest.er1 >conftest.err
15377   rm -f conftest.er1
15378   cat conftest.err >&5
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); } &&
15381          { ac_try='test -z "$ac_c_werror_flag"
15382                          || test ! -s conftest.err'
15383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384   (eval $ac_try) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; } &&
15388          { ac_try='test -s conftest.$ac_objext'
15389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390   (eval $ac_try) 2>&5
15391   ac_status=$?
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); }; }; then
15394   ac_hi=$ac_mid; break
15395 else
15396   echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 ac_lo=`expr $ac_mid + 1`
15400                     if test $ac_lo -le $ac_mid; then
15401                       ac_lo= ac_hi=
15402                       break
15403                     fi
15404                     ac_mid=`expr 2 '*' $ac_mid + 1`
15405 fi
15406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15407   done
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418 $ac_includes_default
15419 int
15420 main ()
15421 {
15422 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15423 test_array [0] = 0
15424
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431   (eval $ac_compile) 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -z "$ac_c_werror_flag"
15439                          || test ! -s conftest.err'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; } &&
15445          { ac_try='test -s conftest.$ac_objext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   ac_hi=-1 ac_mid=-1
15452   while :; do
15453     cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h.  */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h.  */
15459 $ac_includes_default
15460 int
15461 main ()
15462 {
15463 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15464 test_array [0] = 0
15465
15466   ;
15467   return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15472   (eval $ac_compile) 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } &&
15479          { ac_try='test -z "$ac_c_werror_flag"
15480                          || test ! -s conftest.err'
15481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482   (eval $ac_try) 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); }; } &&
15486          { ac_try='test -s conftest.$ac_objext'
15487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488   (eval $ac_try) 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }; }; then
15492   ac_lo=$ac_mid; break
15493 else
15494   echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15496
15497 ac_hi=`expr '(' $ac_mid ')' - 1`
15498                        if test $ac_mid -le $ac_hi; then
15499                          ac_lo= ac_hi=
15500                          break
15501                        fi
15502                        ac_mid=`expr 2 '*' $ac_mid`
15503 fi
15504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15505   done
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 ac_lo= ac_hi=
15511 fi
15512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15513 fi
15514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15515 # Binary search between lo and hi bounds.
15516 while test "x$ac_lo" != "x$ac_hi"; do
15517   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15518   cat >conftest.$ac_ext <<_ACEOF
15519 /* confdefs.h.  */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h.  */
15524 $ac_includes_default
15525 int
15526 main ()
15527 {
15528 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15529 test_array [0] = 0
15530
15531   ;
15532   return 0;
15533 }
15534 _ACEOF
15535 rm -f conftest.$ac_objext
15536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15537   (eval $ac_compile) 2>conftest.er1
15538   ac_status=$?
15539   grep -v '^ *+' conftest.er1 >conftest.err
15540   rm -f conftest.er1
15541   cat conftest.err >&5
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } &&
15544          { ac_try='test -z "$ac_c_werror_flag"
15545                          || test ! -s conftest.err'
15546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547   (eval $ac_try) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; } &&
15551          { ac_try='test -s conftest.$ac_objext'
15552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553   (eval $ac_try) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }; }; then
15557   ac_hi=$ac_mid
15558 else
15559   echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15561
15562 ac_lo=`expr '(' $ac_mid ')' + 1`
15563 fi
15564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15565 done
15566 case $ac_lo in
15567 ?*) ac_cv_sizeof_char=$ac_lo;;
15568 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15569 See \`config.log' for more details." >&5
15570 echo "$as_me: error: cannot compute sizeof (char), 77
15571 See \`config.log' for more details." >&2;}
15572    { (exit 1); exit 1; }; } ;;
15573 esac
15574 else
15575   if test "$cross_compiling" = yes; then
15576   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15577 See \`config.log' for more details." >&5
15578 echo "$as_me: error: cannot run test program while cross compiling
15579 See \`config.log' for more details." >&2;}
15580    { (exit 1); exit 1; }; }
15581 else
15582   cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h.  */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h.  */
15588 $ac_includes_default
15589 long longval () { return (long) (sizeof (char)); }
15590 unsigned long ulongval () { return (long) (sizeof (char)); }
15591 #include <stdio.h>
15592 #include <stdlib.h>
15593 int
15594 main ()
15595 {
15596
15597   FILE *f = fopen ("conftest.val", "w");
15598   if (! f)
15599     exit (1);
15600   if (((long) (sizeof (char))) < 0)
15601     {
15602       long i = longval ();
15603       if (i != ((long) (sizeof (char))))
15604         exit (1);
15605       fprintf (f, "%ld\n", i);
15606     }
15607   else
15608     {
15609       unsigned long i = ulongval ();
15610       if (i != ((long) (sizeof (char))))
15611         exit (1);
15612       fprintf (f, "%lu\n", i);
15613     }
15614   exit (ferror (f) || fclose (f) != 0);
15615
15616   ;
15617   return 0;
15618 }
15619 _ACEOF
15620 rm -f conftest$ac_exeext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15622   (eval $ac_link) 2>&5
15623   ac_status=$?
15624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; }; then
15631   ac_cv_sizeof_char=`cat conftest.val`
15632 else
15633   echo "$as_me: program exited with status $ac_status" >&5
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15636
15637 ( exit $ac_status )
15638 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15639 See \`config.log' for more details." >&5
15640 echo "$as_me: error: cannot compute sizeof (char), 77
15641 See \`config.log' for more details." >&2;}
15642    { (exit 1); exit 1; }; }
15643 fi
15644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15645 fi
15646 fi
15647 rm -f conftest.val
15648 else
15649   ac_cv_sizeof_char=0
15650 fi
15651 fi
15652 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15653 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15654 cat >>confdefs.h <<_ACEOF
15655 #define SIZEOF_CHAR $ac_cv_sizeof_char
15656 _ACEOF
15657
15658
15659
15660   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15661 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15662   case "$ac_cv_sizeof_char" in
15663     1) acx_cv_type_int8_t=char ;;
15664     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15665 echo "$as_me: error: no 8-bit type" >&2;}
15666    { (exit please report a bug); exit please report a bug; }; }
15667   esac
15668   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15669 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15670
15671   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15672 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15673   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15674     2:*) acx_cv_type_int16_t=int ;;
15675     *:2) acx_cv_type_int16_t=short ;;
15676     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15677 echo "$as_me: error: no 16-bit type" >&2;}
15678    { (exit please report a bug); exit please report a bug; }; }
15679   esac
15680   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15681 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15682
15683   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15684 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15685   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15686     4:*) acx_cv_type_int32_t=int ;;
15687     *:4) acx_cv_type_int32_t=long ;;
15688     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15689 echo "$as_me: error: no 32-bit type" >&2;}
15690    { (exit please report a bug); exit please report a bug; }; }
15691   esac
15692   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15693 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15694 fi
15695
15696 # These tests are here to make the output prettier
15697
15698 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15699   case "$ac_cv_sizeof_long" in
15700     8) acx_cv_type_int64_t=long ;;
15701   esac
15702   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15703 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15704   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15705 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15706 fi
15707
15708 # Now we can use the above types
15709
15710 if test "$ac_cv_type_uintptr_t" != yes; then
15711   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15712 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15713   case $ac_cv_sizeof_void_p in
15714     2) acx_cv_type_intptr_t=int16_t ;;
15715     4) acx_cv_type_intptr_t=int32_t ;;
15716     8) acx_cv_type_intptr_t=int64_t ;;
15717     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15718 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15719    { (exit please report a bug); exit please report a bug; }; }
15720   esac
15721   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15722 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15723 fi
15724
15725 # ----------------- done all checks, emit header -------------
15726           ac_config_commands="$ac_config_commands bfd_stdint.h"
15727
15728
15729
15730 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15731 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15732 if test "${ac_cv_header_time+set}" = set; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741 #include <sys/types.h>
15742 #include <sys/time.h>
15743 #include <time.h>
15744
15745 int
15746 main ()
15747 {
15748 if ((struct tm *) 0)
15749 return 0;
15750   ;
15751   return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756   (eval $ac_compile) 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } &&
15763          { ac_try='test -z "$ac_c_werror_flag"
15764                          || test ! -s conftest.err'
15765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766   (eval $ac_try) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; } &&
15770          { ac_try='test -s conftest.$ac_objext'
15771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772   (eval $ac_try) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_cv_header_time=yes
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_cv_header_time=no
15782 fi
15783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15784 fi
15785 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15786 echo "${ECHO_T}$ac_cv_header_time" >&6
15787 if test $ac_cv_header_time = yes; then
15788
15789 cat >>confdefs.h <<\_ACEOF
15790 #define TIME_WITH_SYS_TIME 1
15791 _ACEOF
15792
15793 fi
15794
15795
15796
15797
15798
15799
15800 ac_header_dirent=no
15801 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15802   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15803 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15804 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15806   echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808   cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814 #include <sys/types.h>
15815 #include <$ac_hdr>
15816
15817 int
15818 main ()
15819 {
15820 if ((DIR *) 0)
15821 return 0;
15822   ;
15823   return 0;
15824 }
15825 _ACEOF
15826 rm -f conftest.$ac_objext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828   (eval $ac_compile) 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } &&
15835          { ac_try='test -z "$ac_c_werror_flag"
15836                          || test ! -s conftest.err'
15837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838   (eval $ac_try) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; } &&
15842          { ac_try='test -s conftest.$ac_objext'
15843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844   (eval $ac_try) 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; }; then
15848   eval "$as_ac_Header=yes"
15849 else
15850   echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853 eval "$as_ac_Header=no"
15854 fi
15855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15856 fi
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15860   cat >>confdefs.h <<_ACEOF
15861 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15862 _ACEOF
15863
15864 ac_header_dirent=$ac_hdr; break
15865 fi
15866
15867 done
15868 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15869 if test $ac_header_dirent = dirent.h; then
15870   echo "$as_me:$LINENO: checking for library containing opendir" >&5
15871 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15872 if test "${ac_cv_search_opendir+set}" = set; then
15873   echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875   ac_func_search_save_LIBS=$LIBS
15876 ac_cv_search_opendir=no
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h.  */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h.  */
15883
15884 /* Override any gcc2 internal prototype to avoid an error.  */
15885 #ifdef __cplusplus
15886 extern "C"
15887 #endif
15888 /* We use char because int might match the return type of a gcc2
15889    builtin and then its argument prototype would still apply.  */
15890 char opendir ();
15891 int
15892 main ()
15893 {
15894 opendir ();
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901   (eval $ac_link) 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } &&
15908          { ac_try='test -z "$ac_c_werror_flag"
15909                          || test ! -s conftest.err'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; } &&
15915          { ac_try='test -s conftest$ac_exeext'
15916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917   (eval $ac_try) 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }; }; then
15921   ac_cv_search_opendir="none required"
15922 else
15923   echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15925
15926 fi
15927 rm -f conftest.err conftest.$ac_objext \
15928       conftest$ac_exeext conftest.$ac_ext
15929 if test "$ac_cv_search_opendir" = no; then
15930   for ac_lib in dir; do
15931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15932     cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h.  */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h.  */
15938
15939 /* Override any gcc2 internal prototype to avoid an error.  */
15940 #ifdef __cplusplus
15941 extern "C"
15942 #endif
15943 /* We use char because int might match the return type of a gcc2
15944    builtin and then its argument prototype would still apply.  */
15945 char opendir ();
15946 int
15947 main ()
15948 {
15949 opendir ();
15950   ;
15951   return 0;
15952 }
15953 _ACEOF
15954 rm -f conftest.$ac_objext conftest$ac_exeext
15955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15956   (eval $ac_link) 2>conftest.er1
15957   ac_status=$?
15958   grep -v '^ *+' conftest.er1 >conftest.err
15959   rm -f conftest.er1
15960   cat conftest.err >&5
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } &&
15963          { ac_try='test -z "$ac_c_werror_flag"
15964                          || test ! -s conftest.err'
15965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966   (eval $ac_try) 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); }; } &&
15970          { ac_try='test -s conftest$ac_exeext'
15971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972   (eval $ac_try) 2>&5
15973   ac_status=$?
15974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); }; }; then
15976   ac_cv_search_opendir="-l$ac_lib"
15977 break
15978 else
15979   echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982 fi
15983 rm -f conftest.err conftest.$ac_objext \
15984       conftest$ac_exeext conftest.$ac_ext
15985   done
15986 fi
15987 LIBS=$ac_func_search_save_LIBS
15988 fi
15989 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15990 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15991 if test "$ac_cv_search_opendir" != no; then
15992   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15993
15994 fi
15995
15996 else
15997   echo "$as_me:$LINENO: checking for library containing opendir" >&5
15998 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15999 if test "${ac_cv_search_opendir+set}" = set; then
16000   echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002   ac_func_search_save_LIBS=$LIBS
16003 ac_cv_search_opendir=no
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h.  */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h.  */
16010
16011 /* Override any gcc2 internal prototype to avoid an error.  */
16012 #ifdef __cplusplus
16013 extern "C"
16014 #endif
16015 /* We use char because int might match the return type of a gcc2
16016    builtin and then its argument prototype would still apply.  */
16017 char opendir ();
16018 int
16019 main ()
16020 {
16021 opendir ();
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028   (eval $ac_link) 2>conftest.er1
16029   ac_status=$?
16030   grep -v '^ *+' conftest.er1 >conftest.err
16031   rm -f conftest.er1
16032   cat conftest.err >&5
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } &&
16035          { ac_try='test -z "$ac_c_werror_flag"
16036                          || test ! -s conftest.err'
16037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038   (eval $ac_try) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; } &&
16042          { ac_try='test -s conftest$ac_exeext'
16043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044   (eval $ac_try) 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; }; then
16048   ac_cv_search_opendir="none required"
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 fi
16054 rm -f conftest.err conftest.$ac_objext \
16055       conftest$ac_exeext conftest.$ac_ext
16056 if test "$ac_cv_search_opendir" = no; then
16057   for ac_lib in x; do
16058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16059     cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065
16066 /* Override any gcc2 internal prototype to avoid an error.  */
16067 #ifdef __cplusplus
16068 extern "C"
16069 #endif
16070 /* We use char because int might match the return type of a gcc2
16071    builtin and then its argument prototype would still apply.  */
16072 char opendir ();
16073 int
16074 main ()
16075 {
16076 opendir ();
16077   ;
16078   return 0;
16079 }
16080 _ACEOF
16081 rm -f conftest.$ac_objext conftest$ac_exeext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16083   (eval $ac_link) 2>conftest.er1
16084   ac_status=$?
16085   grep -v '^ *+' conftest.er1 >conftest.err
16086   rm -f conftest.er1
16087   cat conftest.err >&5
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); } &&
16090          { ac_try='test -z "$ac_c_werror_flag"
16091                          || test ! -s conftest.err'
16092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093   (eval $ac_try) 2>&5
16094   ac_status=$?
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); }; } &&
16097          { ac_try='test -s conftest$ac_exeext'
16098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099   (eval $ac_try) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; }; then
16103   ac_cv_search_opendir="-l$ac_lib"
16104 break
16105 else
16106   echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 fi
16110 rm -f conftest.err conftest.$ac_objext \
16111       conftest$ac_exeext conftest.$ac_ext
16112   done
16113 fi
16114 LIBS=$ac_func_search_save_LIBS
16115 fi
16116 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16117 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16118 if test "$ac_cv_search_opendir" != no; then
16119   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16120
16121 fi
16122
16123 fi
16124
16125 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16126 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16127 if test "${gcc_cv_header_string+set}" = set; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130   cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 #include <string.h>
16137 #include <strings.h>
16138 int
16139 main ()
16140 {
16141
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148   (eval $ac_compile) 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } &&
16155          { ac_try='test -z "$ac_c_werror_flag"
16156                          || test ! -s conftest.err'
16157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158   (eval $ac_try) 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; } &&
16162          { ac_try='test -s conftest.$ac_objext'
16163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164   (eval $ac_try) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; }; then
16168   gcc_cv_header_string=yes
16169 else
16170   echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173 gcc_cv_header_string=no
16174 fi
16175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16176 fi
16177 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16178 echo "${ECHO_T}$gcc_cv_header_string" >&6
16179 if test $gcc_cv_header_string = yes; then
16180
16181 cat >>confdefs.h <<\_ACEOF
16182 #define STRING_WITH_STRINGS 1
16183 _ACEOF
16184
16185 fi
16186
16187
16188
16189
16190
16191
16192
16193
16194 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16195 do
16196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16197 echo "$as_me:$LINENO: checking for $ac_func" >&5
16198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16199 if eval "test \"\${$as_ac_var+set}\" = set"; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202   cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h.  */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h.  */
16208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16210 #define $ac_func innocuous_$ac_func
16211
16212 /* System header to define __stub macros and hopefully few prototypes,
16213     which can conflict with char $ac_func (); below.
16214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16215     <limits.h> exists even on freestanding compilers.  */
16216
16217 #ifdef __STDC__
16218 # include <limits.h>
16219 #else
16220 # include <assert.h>
16221 #endif
16222
16223 #undef $ac_func
16224
16225 /* Override any gcc2 internal prototype to avoid an error.  */
16226 #ifdef __cplusplus
16227 extern "C"
16228 {
16229 #endif
16230 /* We use char because int might match the return type of a gcc2
16231    builtin and then its argument prototype would still apply.  */
16232 char $ac_func ();
16233 /* The GNU C library defines this for functions which it implements
16234     to always fail with ENOSYS.  Some functions are actually named
16235     something starting with __ and the normal name is an alias.  */
16236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16237 choke me
16238 #else
16239 char (*f) () = $ac_func;
16240 #endif
16241 #ifdef __cplusplus
16242 }
16243 #endif
16244
16245 int
16246 main ()
16247 {
16248 return f != $ac_func;
16249   ;
16250   return 0;
16251 }
16252 _ACEOF
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16255   (eval $ac_link) 2>conftest.er1
16256   ac_status=$?
16257   grep -v '^ *+' conftest.er1 >conftest.err
16258   rm -f conftest.er1
16259   cat conftest.err >&5
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); } &&
16262          { ac_try='test -z "$ac_c_werror_flag"
16263                          || test ! -s conftest.err'
16264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265   (eval $ac_try) 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); }; } &&
16269          { ac_try='test -s conftest$ac_exeext'
16270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271   (eval $ac_try) 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   eval "$as_ac_var=yes"
16276 else
16277   echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280 eval "$as_ac_var=no"
16281 fi
16282 rm -f conftest.err conftest.$ac_objext \
16283       conftest$ac_exeext conftest.$ac_ext
16284 fi
16285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16287 if test `eval echo '${'$as_ac_var'}'` = yes; then
16288   cat >>confdefs.h <<_ACEOF
16289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16290 _ACEOF
16291
16292 fi
16293 done
16294
16295
16296 for ac_func in strtoull
16297 do
16298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16299 echo "$as_me:$LINENO: checking for $ac_func" >&5
16300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16301 if eval "test \"\${$as_ac_var+set}\" = set"; then
16302   echo $ECHO_N "(cached) $ECHO_C" >&6
16303 else
16304   cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h.  */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h.  */
16310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16312 #define $ac_func innocuous_$ac_func
16313
16314 /* System header to define __stub macros and hopefully few prototypes,
16315     which can conflict with char $ac_func (); below.
16316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16317     <limits.h> exists even on freestanding compilers.  */
16318
16319 #ifdef __STDC__
16320 # include <limits.h>
16321 #else
16322 # include <assert.h>
16323 #endif
16324
16325 #undef $ac_func
16326
16327 /* Override any gcc2 internal prototype to avoid an error.  */
16328 #ifdef __cplusplus
16329 extern "C"
16330 {
16331 #endif
16332 /* We use char because int might match the return type of a gcc2
16333    builtin and then its argument prototype would still apply.  */
16334 char $ac_func ();
16335 /* The GNU C library defines this for functions which it implements
16336     to always fail with ENOSYS.  Some functions are actually named
16337     something starting with __ and the normal name is an alias.  */
16338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16339 choke me
16340 #else
16341 char (*f) () = $ac_func;
16342 #endif
16343 #ifdef __cplusplus
16344 }
16345 #endif
16346
16347 int
16348 main ()
16349 {
16350 return f != $ac_func;
16351   ;
16352   return 0;
16353 }
16354 _ACEOF
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16357   (eval $ac_link) 2>conftest.er1
16358   ac_status=$?
16359   grep -v '^ *+' conftest.er1 >conftest.err
16360   rm -f conftest.er1
16361   cat conftest.err >&5
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); } &&
16364          { ac_try='test -z "$ac_c_werror_flag"
16365                          || test ! -s conftest.err'
16366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367   (eval $ac_try) 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); }; } &&
16371          { ac_try='test -s conftest$ac_exeext'
16372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373   (eval $ac_try) 2>&5
16374   ac_status=$?
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); }; }; then
16377   eval "$as_ac_var=yes"
16378 else
16379   echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382 eval "$as_ac_var=no"
16383 fi
16384 rm -f conftest.err conftest.$ac_objext \
16385       conftest$ac_exeext conftest.$ac_ext
16386 fi
16387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16389 if test `eval echo '${'$as_ac_var'}'` = yes; then
16390   cat >>confdefs.h <<_ACEOF
16391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16392 _ACEOF
16393
16394 fi
16395 done
16396
16397
16398 echo "$as_me:$LINENO: checking whether basename is declared" >&5
16399 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16400 if test "${ac_cv_have_decl_basename+set}" = set; then
16401   echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403   cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h.  */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h.  */
16409 $ac_includes_default
16410 int
16411 main ()
16412 {
16413 #ifndef basename
16414   char *p = (char *) basename;
16415 #endif
16416
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16423   (eval $ac_compile) 2>conftest.er1
16424   ac_status=$?
16425   grep -v '^ *+' conftest.er1 >conftest.err
16426   rm -f conftest.er1
16427   cat conftest.err >&5
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); } &&
16430          { ac_try='test -z "$ac_c_werror_flag"
16431                          || test ! -s conftest.err'
16432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433   (eval $ac_try) 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }; } &&
16437          { ac_try='test -s conftest.$ac_objext'
16438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439   (eval $ac_try) 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); }; }; then
16443   ac_cv_have_decl_basename=yes
16444 else
16445   echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 ac_cv_have_decl_basename=no
16449 fi
16450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16451 fi
16452 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16453 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16454 if test $ac_cv_have_decl_basename = yes; then
16455
16456 cat >>confdefs.h <<_ACEOF
16457 #define HAVE_DECL_BASENAME 1
16458 _ACEOF
16459
16460
16461 else
16462   cat >>confdefs.h <<_ACEOF
16463 #define HAVE_DECL_BASENAME 0
16464 _ACEOF
16465
16466
16467 fi
16468
16469
16470 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16471 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16472 if test "${ac_cv_have_decl_ftello+set}" = set; then
16473   echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475   cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h.  */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h.  */
16481 $ac_includes_default
16482 int
16483 main ()
16484 {
16485 #ifndef ftello
16486   char *p = (char *) ftello;
16487 #endif
16488
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 rm -f conftest.$ac_objext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16495   (eval $ac_compile) 2>conftest.er1
16496   ac_status=$?
16497   grep -v '^ *+' conftest.er1 >conftest.err
16498   rm -f conftest.er1
16499   cat conftest.err >&5
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); } &&
16502          { ac_try='test -z "$ac_c_werror_flag"
16503                          || test ! -s conftest.err'
16504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505   (eval $ac_try) 2>&5
16506   ac_status=$?
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); }; } &&
16509          { ac_try='test -s conftest.$ac_objext'
16510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511   (eval $ac_try) 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; }; then
16515   ac_cv_have_decl_ftello=yes
16516 else
16517   echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16519
16520 ac_cv_have_decl_ftello=no
16521 fi
16522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16523 fi
16524 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16525 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16526 if test $ac_cv_have_decl_ftello = yes; then
16527
16528 cat >>confdefs.h <<_ACEOF
16529 #define HAVE_DECL_FTELLO 1
16530 _ACEOF
16531
16532
16533 else
16534   cat >>confdefs.h <<_ACEOF
16535 #define HAVE_DECL_FTELLO 0
16536 _ACEOF
16537
16538
16539 fi
16540
16541
16542 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16543 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16544 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547   cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 $ac_includes_default
16554 int
16555 main ()
16556 {
16557 #ifndef ftello64
16558   char *p = (char *) ftello64;
16559 #endif
16560
16561   ;
16562   return 0;
16563 }
16564 _ACEOF
16565 rm -f conftest.$ac_objext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567   (eval $ac_compile) 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -z "$ac_c_werror_flag"
16575                          || test ! -s conftest.err'
16576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577   (eval $ac_try) 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); }; } &&
16581          { ac_try='test -s conftest.$ac_objext'
16582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583   (eval $ac_try) 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; }; then
16587   ac_cv_have_decl_ftello64=yes
16588 else
16589   echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 ac_cv_have_decl_ftello64=no
16593 fi
16594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16595 fi
16596 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16597 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16598 if test $ac_cv_have_decl_ftello64 = yes; then
16599
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_DECL_FTELLO64 1
16602 _ACEOF
16603
16604
16605 else
16606   cat >>confdefs.h <<_ACEOF
16607 #define HAVE_DECL_FTELLO64 0
16608 _ACEOF
16609
16610
16611 fi
16612
16613
16614 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16615 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16616 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16617   echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619   cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625 $ac_includes_default
16626 int
16627 main ()
16628 {
16629 #ifndef fseeko
16630   char *p = (char *) fseeko;
16631 #endif
16632
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639   (eval $ac_compile) 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } &&
16646          { ac_try='test -z "$ac_c_werror_flag"
16647                          || test ! -s conftest.err'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; } &&
16653          { ac_try='test -s conftest.$ac_objext'
16654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655   (eval $ac_try) 2>&5
16656   ac_status=$?
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); }; }; then
16659   ac_cv_have_decl_fseeko=yes
16660 else
16661   echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664 ac_cv_have_decl_fseeko=no
16665 fi
16666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16667 fi
16668 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16669 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16670 if test $ac_cv_have_decl_fseeko = yes; then
16671
16672 cat >>confdefs.h <<_ACEOF
16673 #define HAVE_DECL_FSEEKO 1
16674 _ACEOF
16675
16676
16677 else
16678   cat >>confdefs.h <<_ACEOF
16679 #define HAVE_DECL_FSEEKO 0
16680 _ACEOF
16681
16682
16683 fi
16684
16685
16686 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16687 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16688 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16689   echo $ECHO_N "(cached) $ECHO_C" >&6
16690 else
16691   cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 $ac_includes_default
16698 int
16699 main ()
16700 {
16701 #ifndef fseeko64
16702   char *p = (char *) fseeko64;
16703 #endif
16704
16705   ;
16706   return 0;
16707 }
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711   (eval $ac_compile) 2>conftest.er1
16712   ac_status=$?
16713   grep -v '^ *+' conftest.er1 >conftest.err
16714   rm -f conftest.er1
16715   cat conftest.err >&5
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); } &&
16718          { ac_try='test -z "$ac_c_werror_flag"
16719                          || test ! -s conftest.err'
16720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721   (eval $ac_try) 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; } &&
16725          { ac_try='test -s conftest.$ac_objext'
16726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727   (eval $ac_try) 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; }; then
16731   ac_cv_have_decl_fseeko64=yes
16732 else
16733   echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 ac_cv_have_decl_fseeko64=no
16737 fi
16738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739 fi
16740 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16741 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16742 if test $ac_cv_have_decl_fseeko64 = yes; then
16743
16744 cat >>confdefs.h <<_ACEOF
16745 #define HAVE_DECL_FSEEKO64 1
16746 _ACEOF
16747
16748
16749 else
16750   cat >>confdefs.h <<_ACEOF
16751 #define HAVE_DECL_FSEEKO64 0
16752 _ACEOF
16753
16754
16755 fi
16756
16757
16758
16759
16760 case "${host}" in
16761 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16762
16763 cat >>confdefs.h <<\_ACEOF
16764 #define USE_BINARY_FOPEN 1
16765 _ACEOF
16766  ;;
16767 esac
16768
16769 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16770 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16771 if test "${ac_cv_have_decl_ffs+set}" = set; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h.  */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h.  */
16780 $ac_includes_default
16781 int
16782 main ()
16783 {
16784 #ifndef ffs
16785   char *p = (char *) ffs;
16786 #endif
16787
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16794   (eval $ac_compile) 2>conftest.er1
16795   ac_status=$?
16796   grep -v '^ *+' conftest.er1 >conftest.err
16797   rm -f conftest.er1
16798   cat conftest.err >&5
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); } &&
16801          { ac_try='test -z "$ac_c_werror_flag"
16802                          || test ! -s conftest.err'
16803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804   (eval $ac_try) 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); }; } &&
16808          { ac_try='test -s conftest.$ac_objext'
16809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810   (eval $ac_try) 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; }; then
16814   ac_cv_have_decl_ffs=yes
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 ac_cv_have_decl_ffs=no
16820 fi
16821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16822 fi
16823 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16824 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16825 if test $ac_cv_have_decl_ffs = yes; then
16826
16827 cat >>confdefs.h <<_ACEOF
16828 #define HAVE_DECL_FFS 1
16829 _ACEOF
16830
16831
16832 else
16833   cat >>confdefs.h <<_ACEOF
16834 #define HAVE_DECL_FFS 0
16835 _ACEOF
16836
16837
16838 fi
16839
16840
16841 echo "$as_me:$LINENO: checking whether free is declared" >&5
16842 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16843 if test "${ac_cv_have_decl_free+set}" = set; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846   cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h.  */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h.  */
16852 $ac_includes_default
16853 int
16854 main ()
16855 {
16856 #ifndef free
16857   char *p = (char *) free;
16858 #endif
16859
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16866   (eval $ac_compile) 2>conftest.er1
16867   ac_status=$?
16868   grep -v '^ *+' conftest.er1 >conftest.err
16869   rm -f conftest.er1
16870   cat conftest.err >&5
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); } &&
16873          { ac_try='test -z "$ac_c_werror_flag"
16874                          || test ! -s conftest.err'
16875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876   (eval $ac_try) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; } &&
16880          { ac_try='test -s conftest.$ac_objext'
16881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882   (eval $ac_try) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; }; then
16886   ac_cv_have_decl_free=yes
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ac_cv_have_decl_free=no
16892 fi
16893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16894 fi
16895 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16896 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16897 if test $ac_cv_have_decl_free = yes; then
16898
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_DECL_FREE 1
16901 _ACEOF
16902
16903
16904 else
16905   cat >>confdefs.h <<_ACEOF
16906 #define HAVE_DECL_FREE 0
16907 _ACEOF
16908
16909
16910 fi
16911
16912
16913 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16914 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16915 if test "${ac_cv_have_decl_getenv+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918   cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924 $ac_includes_default
16925 int
16926 main ()
16927 {
16928 #ifndef getenv
16929   char *p = (char *) getenv;
16930 #endif
16931
16932   ;
16933   return 0;
16934 }
16935 _ACEOF
16936 rm -f conftest.$ac_objext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16938   (eval $ac_compile) 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_c_werror_flag"
16946                          || test ! -s conftest.err'
16947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948   (eval $ac_try) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; } &&
16952          { ac_try='test -s conftest.$ac_objext'
16953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954   (eval $ac_try) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; }; then
16958   ac_cv_have_decl_getenv=yes
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963 ac_cv_have_decl_getenv=no
16964 fi
16965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16966 fi
16967 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16968 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16969 if test $ac_cv_have_decl_getenv = yes; then
16970
16971 cat >>confdefs.h <<_ACEOF
16972 #define HAVE_DECL_GETENV 1
16973 _ACEOF
16974
16975
16976 else
16977   cat >>confdefs.h <<_ACEOF
16978 #define HAVE_DECL_GETENV 0
16979 _ACEOF
16980
16981
16982 fi
16983
16984
16985 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16986 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16987 if test "${ac_cv_have_decl_malloc+set}" = set; then
16988   echo $ECHO_N "(cached) $ECHO_C" >&6
16989 else
16990   cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h.  */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h.  */
16996 $ac_includes_default
16997 int
16998 main ()
16999 {
17000 #ifndef malloc
17001   char *p = (char *) malloc;
17002 #endif
17003
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17010   (eval $ac_compile) 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -z "$ac_c_werror_flag"
17018                          || test ! -s conftest.err'
17019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020   (eval $ac_try) 2>&5
17021   ac_status=$?
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); }; } &&
17024          { ac_try='test -s conftest.$ac_objext'
17025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026   (eval $ac_try) 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; }; then
17030   ac_cv_have_decl_malloc=yes
17031 else
17032   echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 ac_cv_have_decl_malloc=no
17036 fi
17037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17038 fi
17039 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17040 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17041 if test $ac_cv_have_decl_malloc = yes; then
17042
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_DECL_MALLOC 1
17045 _ACEOF
17046
17047
17048 else
17049   cat >>confdefs.h <<_ACEOF
17050 #define HAVE_DECL_MALLOC 0
17051 _ACEOF
17052
17053
17054 fi
17055
17056
17057 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17058 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17059 if test "${ac_cv_have_decl_realloc+set}" = set; then
17060   echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062   cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h.  */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h.  */
17068 $ac_includes_default
17069 int
17070 main ()
17071 {
17072 #ifndef realloc
17073   char *p = (char *) realloc;
17074 #endif
17075
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082   (eval $ac_compile) 2>conftest.er1
17083   ac_status=$?
17084   grep -v '^ *+' conftest.er1 >conftest.err
17085   rm -f conftest.er1
17086   cat conftest.err >&5
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); } &&
17089          { ac_try='test -z "$ac_c_werror_flag"
17090                          || test ! -s conftest.err'
17091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; } &&
17096          { ac_try='test -s conftest.$ac_objext'
17097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098   (eval $ac_try) 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; }; then
17102   ac_cv_have_decl_realloc=yes
17103 else
17104   echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17106
17107 ac_cv_have_decl_realloc=no
17108 fi
17109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17110 fi
17111 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17112 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17113 if test $ac_cv_have_decl_realloc = yes; then
17114
17115 cat >>confdefs.h <<_ACEOF
17116 #define HAVE_DECL_REALLOC 1
17117 _ACEOF
17118
17119
17120 else
17121   cat >>confdefs.h <<_ACEOF
17122 #define HAVE_DECL_REALLOC 0
17123 _ACEOF
17124
17125
17126 fi
17127
17128
17129 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17130 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17131 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17132   echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134   cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h.  */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h.  */
17140 $ac_includes_default
17141 int
17142 main ()
17143 {
17144 #ifndef stpcpy
17145   char *p = (char *) stpcpy;
17146 #endif
17147
17148   ;
17149   return 0;
17150 }
17151 _ACEOF
17152 rm -f conftest.$ac_objext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17154   (eval $ac_compile) 2>conftest.er1
17155   ac_status=$?
17156   grep -v '^ *+' conftest.er1 >conftest.err
17157   rm -f conftest.er1
17158   cat conftest.err >&5
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); } &&
17161          { ac_try='test -z "$ac_c_werror_flag"
17162                          || test ! -s conftest.err'
17163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164   (eval $ac_try) 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; } &&
17168          { ac_try='test -s conftest.$ac_objext'
17169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170   (eval $ac_try) 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; }; then
17174   ac_cv_have_decl_stpcpy=yes
17175 else
17176   echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17178
17179 ac_cv_have_decl_stpcpy=no
17180 fi
17181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17182 fi
17183 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17184 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17185 if test $ac_cv_have_decl_stpcpy = yes; then
17186
17187 cat >>confdefs.h <<_ACEOF
17188 #define HAVE_DECL_STPCPY 1
17189 _ACEOF
17190
17191
17192 else
17193   cat >>confdefs.h <<_ACEOF
17194 #define HAVE_DECL_STPCPY 0
17195 _ACEOF
17196
17197
17198 fi
17199
17200
17201 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17202 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17203 if test "${ac_cv_have_decl_strstr+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206   cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h.  */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h.  */
17212 $ac_includes_default
17213 int
17214 main ()
17215 {
17216 #ifndef strstr
17217   char *p = (char *) strstr;
17218 #endif
17219
17220   ;
17221   return 0;
17222 }
17223 _ACEOF
17224 rm -f conftest.$ac_objext
17225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17226   (eval $ac_compile) 2>conftest.er1
17227   ac_status=$?
17228   grep -v '^ *+' conftest.er1 >conftest.err
17229   rm -f conftest.er1
17230   cat conftest.err >&5
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); } &&
17233          { ac_try='test -z "$ac_c_werror_flag"
17234                          || test ! -s conftest.err'
17235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236   (eval $ac_try) 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }; } &&
17240          { ac_try='test -s conftest.$ac_objext'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; }; then
17246   ac_cv_have_decl_strstr=yes
17247 else
17248   echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 ac_cv_have_decl_strstr=no
17252 fi
17253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17254 fi
17255 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17256 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17257 if test $ac_cv_have_decl_strstr = yes; then
17258
17259 cat >>confdefs.h <<_ACEOF
17260 #define HAVE_DECL_STRSTR 1
17261 _ACEOF
17262
17263
17264 else
17265   cat >>confdefs.h <<_ACEOF
17266 #define HAVE_DECL_STRSTR 0
17267 _ACEOF
17268
17269
17270 fi
17271
17272
17273 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17274 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17275 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17276   echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278   cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284 $ac_includes_default
17285 int
17286 main ()
17287 {
17288 #ifndef snprintf
17289   char *p = (char *) snprintf;
17290 #endif
17291
17292   ;
17293   return 0;
17294 }
17295 _ACEOF
17296 rm -f conftest.$ac_objext
17297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17298   (eval $ac_compile) 2>conftest.er1
17299   ac_status=$?
17300   grep -v '^ *+' conftest.er1 >conftest.err
17301   rm -f conftest.er1
17302   cat conftest.err >&5
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } &&
17305          { ac_try='test -z "$ac_c_werror_flag"
17306                          || test ! -s conftest.err'
17307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308   (eval $ac_try) 2>&5
17309   ac_status=$?
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); }; } &&
17312          { ac_try='test -s conftest.$ac_objext'
17313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314   (eval $ac_try) 2>&5
17315   ac_status=$?
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); }; }; then
17318   ac_cv_have_decl_snprintf=yes
17319 else
17320   echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17322
17323 ac_cv_have_decl_snprintf=no
17324 fi
17325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17326 fi
17327 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17328 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17329 if test $ac_cv_have_decl_snprintf = yes; then
17330
17331 cat >>confdefs.h <<_ACEOF
17332 #define HAVE_DECL_SNPRINTF 1
17333 _ACEOF
17334
17335
17336 else
17337   cat >>confdefs.h <<_ACEOF
17338 #define HAVE_DECL_SNPRINTF 0
17339 _ACEOF
17340
17341
17342 fi
17343
17344
17345 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17346 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17347 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17348   echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350   cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h.  */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h.  */
17356 $ac_includes_default
17357 int
17358 main ()
17359 {
17360 #ifndef vsnprintf
17361   char *p = (char *) vsnprintf;
17362 #endif
17363
17364   ;
17365   return 0;
17366 }
17367 _ACEOF
17368 rm -f conftest.$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370   (eval $ac_compile) 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -z "$ac_c_werror_flag"
17378                          || test ! -s conftest.err'
17379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380   (eval $ac_try) 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; } &&
17384          { ac_try='test -s conftest.$ac_objext'
17385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386   (eval $ac_try) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; }; then
17390   ac_cv_have_decl_vsnprintf=yes
17391 else
17392   echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17394
17395 ac_cv_have_decl_vsnprintf=no
17396 fi
17397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398 fi
17399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17400 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17401 if test $ac_cv_have_decl_vsnprintf = yes; then
17402
17403 cat >>confdefs.h <<_ACEOF
17404 #define HAVE_DECL_VSNPRINTF 1
17405 _ACEOF
17406
17407
17408 else
17409   cat >>confdefs.h <<_ACEOF
17410 #define HAVE_DECL_VSNPRINTF 0
17411 _ACEOF
17412
17413
17414 fi
17415
17416
17417
17418 # If we are configured native, pick a core file support file.
17419 COREFILE=
17420 COREFLAG=
17421 TRAD_HEADER=
17422 if test "${target}" = "${host}"; then
17423   case "${host}" in
17424   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
17425         COREFILE=''
17426         ;;
17427   alpha*-*-linux-*)
17428         COREFILE=trad-core.lo
17429         TRAD_HEADER='"hosts/alphalinux.h"'
17430         ;;
17431   alpha*-*-netbsd* | alpha*-*-openbsd*)
17432         COREFILE=netbsd-core.lo
17433         ;;
17434   alpha*-*-*)           COREFILE=osf-core.lo ;;
17435   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17436                         COREFILE='' ;;
17437   arm-*-netbsd* | arm-*-openbsd*)
17438         COREFILE=netbsd-core.lo
17439         ;;
17440   arm-*-riscix)         COREFILE=trad-core.lo ;;
17441   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
17442   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
17443   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
17444   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
17445                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
17446   hppa*-*-netbsd* | hppa*-*-openbsd*)
17447         COREFILE=netbsd-core.lo
17448         ;;
17449
17450   i370-*-*)
17451         COREFILE=trad-core.lo
17452         TRAD_HEADER='"hosts/i370linux.h"'
17453         ;;
17454
17455   i[3-7]86-sequent-bsd*)
17456         COREFILE=trad-core.lo
17457         TRAD_HEADER='"hosts/symmetry.h"'
17458         ;;
17459   i[3-7]86-sequent-sysv4*) ;;
17460   i[3-7]86-sequent-sysv*)
17461         COREFILE=trad-core.lo
17462         TRAD_HEADER='"hosts/symmetry.h"'
17463         ;;
17464   i[3-7]86-*-bsdi)
17465         COREFILE=
17466         ;;
17467   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
17468         COREFILE=trad-core.lo
17469         TRAD_HEADER='"hosts/i386bsd.h"'
17470         ;;
17471   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
17472         COREFILE=''
17473         TRAD_HEADER='"hosts/i386bsd.h"'
17474         ;;
17475   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
17476         COREFILE=netbsd-core.lo
17477         ;;
17478   i[3-7]86-esix-sysv3*)
17479         COREFILE=trad-core.lo
17480         TRAD_HEADER='"hosts/esix.h"'
17481         ;;
17482   i[3-7]86-*-sco3.2v5*)
17483         COREFILE=sco5-core.lo
17484         ;;
17485   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
17486         COREFILE=trad-core.lo
17487         TRAD_HEADER='"hosts/i386sco.h"'
17488         ;;
17489   i[3-7]86-*-mach3*)
17490         COREFILE=trad-core.lo
17491         TRAD_HEADER='"hosts/i386mach3.h"'
17492         ;;
17493   i[3-7]86-*-linux-*)
17494         COREFILE=trad-core.lo
17495         TRAD_HEADER='"hosts/i386linux.h"'
17496         ;;
17497   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
17498   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
17499   i860-*-mach3* | i860-*-osf1*)
17500         COREFILE=trad-core.lo
17501         TRAD_HEADER='"hosts/i860mach3.h"'
17502         ;;
17503   mips-*-netbsd* | mips*-*-openbsd*)
17504         COREFILE=netbsd-core.lo
17505         ;;
17506   mips-dec-*)
17507         COREFILE=trad-core.lo
17508         TRAD_HEADER='"hosts/decstation.h"'
17509         ;;
17510   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
17511   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
17512   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
17513   mips-*-sysv4*)        ;;
17514   mips-*-sysv* | mips-*-riscos*)
17515         COREFILE=trad-core.lo
17516         TRAD_HEADER='"hosts/riscos.h"'
17517         ;;
17518   mips-sony-bsd*)
17519         COREFILE=trad-core.lo
17520         TRAD_HEADER='"hosts/news-mips.h"'
17521         ;;
17522   m68*-bull*-sysv*)
17523         COREFILE=trad-core.lo
17524         TRAD_HEADER='"hosts/dpx2.h"'
17525         ;;
17526   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
17527   m68*-hp-bsd*)
17528         COREFILE=trad-core.lo
17529         TRAD_HEADER='"hosts/hp300bsd.h"'
17530         ;;
17531   m68*-*-linux-*)
17532         COREFILE=trad-core.lo
17533         TRAD_HEADER='"hosts/m68klinux.h"'
17534         ;;
17535   m68*-motorola-sysv*)
17536         COREFILE=trad-core.lo
17537         TRAD_HEADER='"hosts/delta68.h"'
17538         ;;
17539   m68*-sony-*)
17540         COREFILE=trad-core.lo
17541         TRAD_HEADER='"hosts/news.h"'
17542         ;;
17543   m68*-*-netbsd* | m68*-*-openbsd*)
17544         COREFILE=netbsd-core.lo
17545         ;;
17546   m68*-apple-aux*)
17547         COREFILE=trad-core.lo
17548         TRAD_HEADER='"hosts/m68kaux.h"'
17549         ;;
17550   m88*-*-sysv4*)
17551         ;;
17552   m88*-motorola-sysv*)
17553         COREFILE=ptrace-core.lo
17554         ;;
17555   m88*-*-mach3*)
17556         COREFILE=trad-core.lo
17557         TRAD_HEADER='"hosts/m88kmach3.h"'
17558         ;;
17559   m88*-*-openbsd*)
17560         COREFILE=netbsd-core.lo
17561         ;;
17562   ns32k-pc532-mach)
17563         COREFILE=trad-core.lo
17564         TRAD_HEADER='"hosts/pc532mach.h"'
17565         ;;
17566   ns32k-*-netbsd* | ns32k-*-openbsd*)
17567         COREFILE=netbsd-core.lo
17568         ;;
17569   rs6000-*-lynx*)
17570         COREFILE=lynx-core.lo
17571         ;;
17572   rs6000-*-aix5.* | powerpc-*-aix5.*)
17573         COREFILE=rs6000-core.lo
17574         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17575         ;;
17576   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
17577         COREFILE=rs6000-core.lo
17578         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
17579         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17580         # have c_impl as a member of struct core_dumpx
17581         echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17582 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17583         cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589 #include <core.h>
17590 int
17591 main ()
17592 {
17593 struct core_dumpx c; c.c_impl = 0;
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 rm -f conftest.$ac_objext
17599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17600   (eval $ac_compile) 2>conftest.er1
17601   ac_status=$?
17602   grep -v '^ *+' conftest.er1 >conftest.err
17603   rm -f conftest.er1
17604   cat conftest.err >&5
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } &&
17607          { ac_try='test -z "$ac_c_werror_flag"
17608                          || test ! -s conftest.err'
17609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610   (eval $ac_try) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; } &&
17614          { ac_try='test -s conftest.$ac_objext'
17615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616   (eval $ac_try) 2>&5
17617   ac_status=$?
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); }; }; then
17620
17621 cat >>confdefs.h <<\_ACEOF
17622 #define HAVE_ST_C_IMPL 1
17623 _ACEOF
17624
17625           echo "$as_me:$LINENO: result: yes" >&5
17626 echo "${ECHO_T}yes" >&6
17627 else
17628   echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17630
17631 echo "$as_me:$LINENO: result: no" >&5
17632 echo "${ECHO_T}no" >&6
17633 fi
17634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17635         ;;
17636   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
17637   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
17638   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
17639   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
17640   powerpc-*-beos*)      ;;
17641   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17642                         COREFILE='' ;;
17643   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
17644   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
17645   s390*-*-*)            COREFILE=trad-core.lo ;;
17646   sh*-*-netbsd* | sh*-*-openbsd*)
17647         COREFILE=netbsd-core.lo
17648         ;;
17649   sparc-*-netbsd* | sparc*-*-openbsd*)
17650         COREFILE=netbsd-core.lo
17651         ;;
17652   tahoe-*-*)
17653         COREFILE=trad-core.lo
17654         TRAD_HEADER='"hosts/tahoe.h"'
17655         ;;
17656   vax-*-netbsd* | vax-*-openbsd*)
17657         COREFILE=netbsd-core.lo
17658         ;;
17659   vax-*-ultrix2*)
17660         COREFILE=trad-core.lo
17661         TRAD_HEADER='"hosts/vaxult2.h"'
17662         ;;
17663   vax-*-ultrix*)
17664         COREFILE=trad-core.lo
17665         TRAD_HEADER='"hosts/vaxult2.h"'
17666         ;;
17667   vax-*-linux-*)
17668         COREFILE=trad-core.lo
17669         TRAD_HEADER='"hosts/vaxlinux.h"'
17670         ;;
17671   vax-*-*)
17672         COREFILE=trad-core.lo
17673         TRAD_HEADER='"hosts/vaxbsd.h"'
17674         ;;
17675   x86_64-*-netbsd* | x86_64-*-openbsd*)
17676         COREFILE=netbsd-core.lo
17677         ;;
17678   esac
17679
17680   case "$COREFILE" in
17681   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
17682   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
17683   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
17684   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
17685   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
17686   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
17687   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
17688   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
17689   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
17690   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17691   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17692   esac
17693
17694   # ELF corefile support has several flavors, but all of
17695   # them use something called <sys/procfs.h>
17696
17697 for ac_header in sys/procfs.h
17698 do
17699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17701   echo "$as_me:$LINENO: checking for $ac_header" >&5
17702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17704   echo $ECHO_N "(cached) $ECHO_C" >&6
17705 fi
17706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17708 else
17709   # Is the header compilable?
17710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17712 cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h.  */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h.  */
17718 $ac_includes_default
17719 #include <$ac_header>
17720 _ACEOF
17721 rm -f conftest.$ac_objext
17722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17723   (eval $ac_compile) 2>conftest.er1
17724   ac_status=$?
17725   grep -v '^ *+' conftest.er1 >conftest.err
17726   rm -f conftest.er1
17727   cat conftest.err >&5
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); } &&
17730          { ac_try='test -z "$ac_c_werror_flag"
17731                          || test ! -s conftest.err'
17732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733   (eval $ac_try) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; } &&
17737          { ac_try='test -s conftest.$ac_objext'
17738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739   (eval $ac_try) 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }; }; then
17743   ac_header_compiler=yes
17744 else
17745   echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17747
17748 ac_header_compiler=no
17749 fi
17750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17752 echo "${ECHO_T}$ac_header_compiler" >&6
17753
17754 # Is the header present?
17755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17757 cat >conftest.$ac_ext <<_ACEOF
17758 /* confdefs.h.  */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h.  */
17763 #include <$ac_header>
17764 _ACEOF
17765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17767   ac_status=$?
17768   grep -v '^ *+' conftest.er1 >conftest.err
17769   rm -f conftest.er1
17770   cat conftest.err >&5
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); } >/dev/null; then
17773   if test -s conftest.err; then
17774     ac_cpp_err=$ac_c_preproc_warn_flag
17775     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17776   else
17777     ac_cpp_err=
17778   fi
17779 else
17780   ac_cpp_err=yes
17781 fi
17782 if test -z "$ac_cpp_err"; then
17783   ac_header_preproc=yes
17784 else
17785   echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788   ac_header_preproc=no
17789 fi
17790 rm -f conftest.err conftest.$ac_ext
17791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17792 echo "${ECHO_T}$ac_header_preproc" >&6
17793
17794 # So?  What about this header?
17795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17796   yes:no: )
17797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17801     ac_header_preproc=yes
17802     ;;
17803   no:yes:* )
17804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17816     (
17817       cat <<\_ASBOX
17818 ## ------------------------------------------ ##
17819 ## Report this to the AC_PACKAGE_NAME lists.  ##
17820 ## ------------------------------------------ ##
17821 _ASBOX
17822     ) |
17823       sed "s/^/$as_me: WARNING:     /" >&2
17824     ;;
17825 esac
17826 echo "$as_me:$LINENO: checking for $ac_header" >&5
17827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17829   echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831   eval "$as_ac_Header=\$ac_header_preproc"
17832 fi
17833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17835
17836 fi
17837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17838   cat >>confdefs.h <<_ACEOF
17839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17840 _ACEOF
17841
17842 fi
17843
17844 done
17845
17846   if test "$ac_cv_header_sys_procfs_h" = yes; then
17847     echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17848 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17849  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17850   echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852   cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h.  */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h.  */
17858
17859 #define _SYSCALL32
17860 #include <sys/procfs.h>
17861 int
17862 main ()
17863 {
17864 prstatus_t avar
17865   ;
17866   return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17871   (eval $ac_compile) 2>conftest.er1
17872   ac_status=$?
17873   grep -v '^ *+' conftest.er1 >conftest.err
17874   rm -f conftest.er1
17875   cat conftest.err >&5
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); } &&
17878          { ac_try='test -z "$ac_c_werror_flag"
17879                          || test ! -s conftest.err'
17880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881   (eval $ac_try) 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); }; } &&
17885          { ac_try='test -s conftest.$ac_objext'
17886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887   (eval $ac_try) 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); }; }; then
17891   bfd_cv_have_sys_procfs_type_prstatus_t=yes
17892 else
17893   echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17895
17896 bfd_cv_have_sys_procfs_type_prstatus_t=no
17897
17898 fi
17899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17900 fi
17901
17902  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
17903
17904 cat >>confdefs.h <<\_ACEOF
17905 #define HAVE_PRSTATUS_T 1
17906 _ACEOF
17907
17908  fi
17909  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17910 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
17911
17912     echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17913 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17914  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17915   echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917   cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923
17924 #define _SYSCALL32
17925 #include <sys/procfs.h>
17926 int
17927 main ()
17928 {
17929 prstatus32_t avar
17930   ;
17931   return 0;
17932 }
17933 _ACEOF
17934 rm -f conftest.$ac_objext
17935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17936   (eval $ac_compile) 2>conftest.er1
17937   ac_status=$?
17938   grep -v '^ *+' conftest.er1 >conftest.err
17939   rm -f conftest.er1
17940   cat conftest.err >&5
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); } &&
17943          { ac_try='test -z "$ac_c_werror_flag"
17944                          || test ! -s conftest.err'
17945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946   (eval $ac_try) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; } &&
17950          { ac_try='test -s conftest.$ac_objext'
17951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952   (eval $ac_try) 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; }; then
17956   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17957 else
17958   echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961 bfd_cv_have_sys_procfs_type_prstatus32_t=no
17962
17963 fi
17964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965 fi
17966
17967  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
17968
17969 cat >>confdefs.h <<\_ACEOF
17970 #define HAVE_PRSTATUS32_T 1
17971 _ACEOF
17972
17973  fi
17974  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17975 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
17976
17977     echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17978 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17979  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17980   echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982   cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h.  */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h.  */
17988
17989 #define _SYSCALL32
17990 #include <sys/procfs.h>
17991 int
17992 main ()
17993 {
17994 prstatus_t avar; void* aref = (void*) &avar.pr_who
17995   ;
17996   return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18001   (eval $ac_compile) 2>conftest.er1
18002   ac_status=$?
18003   grep -v '^ *+' conftest.er1 >conftest.err
18004   rm -f conftest.er1
18005   cat conftest.err >&5
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); } &&
18008          { ac_try='test -z "$ac_c_werror_flag"
18009                          || test ! -s conftest.err'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; } &&
18015          { ac_try='test -s conftest.$ac_objext'
18016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017   (eval $ac_try) 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18027
18028 fi
18029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18030 fi
18031
18032  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18033
18034 cat >>confdefs.h <<\_ACEOF
18035 #define HAVE_PRSTATUS_T_PR_WHO 1
18036 _ACEOF
18037
18038  fi
18039  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18040 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18041
18042     echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18043 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18044  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18045   echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047   cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h.  */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h.  */
18053
18054 #define _SYSCALL32
18055 #include <sys/procfs.h>
18056 int
18057 main ()
18058 {
18059 prstatus32_t avar; void* aref = (void*) &avar.pr_who
18060   ;
18061   return 0;
18062 }
18063 _ACEOF
18064 rm -f conftest.$ac_objext
18065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18066   (eval $ac_compile) 2>conftest.er1
18067   ac_status=$?
18068   grep -v '^ *+' conftest.er1 >conftest.err
18069   rm -f conftest.er1
18070   cat conftest.err >&5
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); } &&
18073          { ac_try='test -z "$ac_c_werror_flag"
18074                          || test ! -s conftest.err'
18075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076   (eval $ac_try) 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; } &&
18080          { ac_try='test -s conftest.$ac_objext'
18081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082   (eval $ac_try) 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }; }; then
18086   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18087 else
18088   echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18090
18091 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18092
18093 fi
18094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18095 fi
18096
18097  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18098
18099 cat >>confdefs.h <<\_ACEOF
18100 #define HAVE_PRSTATUS32_T_PR_WHO 1
18101 _ACEOF
18102
18103  fi
18104  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18105 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18106
18107     echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18108 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18109  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18110   echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112   cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h.  */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h.  */
18118
18119 #define _SYSCALL32
18120 #include <sys/procfs.h>
18121 int
18122 main ()
18123 {
18124 pstatus_t avar
18125   ;
18126   return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131   (eval $ac_compile) 2>conftest.er1
18132   ac_status=$?
18133   grep -v '^ *+' conftest.er1 >conftest.err
18134   rm -f conftest.er1
18135   cat conftest.err >&5
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); } &&
18138          { ac_try='test -z "$ac_c_werror_flag"
18139                          || test ! -s conftest.err'
18140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141   (eval $ac_try) 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; } &&
18145          { ac_try='test -s conftest.$ac_objext'
18146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147   (eval $ac_try) 2>&5
18148   ac_status=$?
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); }; }; then
18151   bfd_cv_have_sys_procfs_type_pstatus_t=yes
18152 else
18153   echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 bfd_cv_have_sys_procfs_type_pstatus_t=no
18157
18158 fi
18159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18160 fi
18161
18162  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18163
18164 cat >>confdefs.h <<\_ACEOF
18165 #define HAVE_PSTATUS_T 1
18166 _ACEOF
18167
18168  fi
18169  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18170 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18171
18172     echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18173 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18174  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18175   echo $ECHO_N "(cached) $ECHO_C" >&6
18176 else
18177   cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h.  */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h.  */
18183
18184 #define _SYSCALL32
18185 #include <sys/procfs.h>
18186 int
18187 main ()
18188 {
18189 pxstatus_t avar
18190   ;
18191   return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196   (eval $ac_compile) 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } &&
18203          { ac_try='test -z "$ac_c_werror_flag"
18204                          || test ! -s conftest.err'
18205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206   (eval $ac_try) 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; } &&
18210          { ac_try='test -s conftest.$ac_objext'
18211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212   (eval $ac_try) 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; }; then
18216   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 bfd_cv_have_sys_procfs_type_pxstatus_t=no
18222
18223 fi
18224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18225 fi
18226
18227  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18228
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_PXSTATUS_T 1
18231 _ACEOF
18232
18233  fi
18234  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18235 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18236
18237     echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18238 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18239  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18240   echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242   cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h.  */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h.  */
18248
18249 #define _SYSCALL32
18250 #include <sys/procfs.h>
18251 int
18252 main ()
18253 {
18254 pstatus32_t avar
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 rm -f conftest.$ac_objext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261   (eval $ac_compile) 2>conftest.er1
18262   ac_status=$?
18263   grep -v '^ *+' conftest.er1 >conftest.err
18264   rm -f conftest.er1
18265   cat conftest.err >&5
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); } &&
18268          { ac_try='test -z "$ac_c_werror_flag"
18269                          || test ! -s conftest.err'
18270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271   (eval $ac_try) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); }; } &&
18275          { ac_try='test -s conftest.$ac_objext'
18276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277   (eval $ac_try) 2>&5
18278   ac_status=$?
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); }; }; then
18281   bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18282 else
18283   echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18285
18286 bfd_cv_have_sys_procfs_type_pstatus32_t=no
18287
18288 fi
18289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18290 fi
18291
18292  if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18293
18294 cat >>confdefs.h <<\_ACEOF
18295 #define HAVE_PSTATUS32_T 1
18296 _ACEOF
18297
18298  fi
18299  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18300 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18301
18302     echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18303 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18304  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18305   echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307   cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h.  */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h.  */
18313
18314 #define _SYSCALL32
18315 #include <sys/procfs.h>
18316 int
18317 main ()
18318 {
18319 prpsinfo_t avar
18320   ;
18321   return 0;
18322 }
18323 _ACEOF
18324 rm -f conftest.$ac_objext
18325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18326   (eval $ac_compile) 2>conftest.er1
18327   ac_status=$?
18328   grep -v '^ *+' conftest.er1 >conftest.err
18329   rm -f conftest.er1
18330   cat conftest.err >&5
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } &&
18333          { ac_try='test -z "$ac_c_werror_flag"
18334                          || test ! -s conftest.err'
18335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336   (eval $ac_try) 2>&5
18337   ac_status=$?
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); }; } &&
18340          { ac_try='test -s conftest.$ac_objext'
18341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342   (eval $ac_try) 2>&5
18343   ac_status=$?
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); }; }; then
18346   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18347 else
18348   echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18352
18353 fi
18354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18355 fi
18356
18357  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18358
18359 cat >>confdefs.h <<\_ACEOF
18360 #define HAVE_PRPSINFO_T 1
18361 _ACEOF
18362
18363  fi
18364  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18365 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18366
18367     echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18368 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18369  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18370   echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372   cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h.  */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h.  */
18378
18379 #define _SYSCALL32
18380 #include <sys/procfs.h>
18381 int
18382 main ()
18383 {
18384 prpsinfo32_t avar
18385   ;
18386   return 0;
18387 }
18388 _ACEOF
18389 rm -f conftest.$ac_objext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391   (eval $ac_compile) 2>conftest.er1
18392   ac_status=$?
18393   grep -v '^ *+' conftest.er1 >conftest.err
18394   rm -f conftest.er1
18395   cat conftest.err >&5
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); } &&
18398          { ac_try='test -z "$ac_c_werror_flag"
18399                          || test ! -s conftest.err'
18400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401   (eval $ac_try) 2>&5
18402   ac_status=$?
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); }; } &&
18405          { ac_try='test -s conftest.$ac_objext'
18406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407   (eval $ac_try) 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; }; then
18411   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18412 else
18413   echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18417
18418 fi
18419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18420 fi
18421
18422  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
18423
18424 cat >>confdefs.h <<\_ACEOF
18425 #define HAVE_PRPSINFO32_T 1
18426 _ACEOF
18427
18428  fi
18429  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18430 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
18431
18432     echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18433 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18434  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18435   echo $ECHO_N "(cached) $ECHO_C" >&6
18436 else
18437   cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443
18444 #define _SYSCALL32
18445 #include <sys/procfs.h>
18446 int
18447 main ()
18448 {
18449 psinfo_t avar
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext
18455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18456   (eval $ac_compile) 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } &&
18463          { ac_try='test -z "$ac_c_werror_flag"
18464                          || test ! -s conftest.err'
18465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466   (eval $ac_try) 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; } &&
18470          { ac_try='test -s conftest.$ac_objext'
18471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472   (eval $ac_try) 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; }; then
18476   bfd_cv_have_sys_procfs_type_psinfo_t=yes
18477 else
18478   echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 bfd_cv_have_sys_procfs_type_psinfo_t=no
18482
18483 fi
18484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18485 fi
18486
18487  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18488
18489 cat >>confdefs.h <<\_ACEOF
18490 #define HAVE_PSINFO_T 1
18491 _ACEOF
18492
18493  fi
18494  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18495 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
18496
18497     echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18498 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18499  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18500   echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502   cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h.  */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h.  */
18508
18509 #define _SYSCALL32
18510 #include <sys/procfs.h>
18511 int
18512 main ()
18513 {
18514 psinfo32_t avar
18515   ;
18516   return 0;
18517 }
18518 _ACEOF
18519 rm -f conftest.$ac_objext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521   (eval $ac_compile) 2>conftest.er1
18522   ac_status=$?
18523   grep -v '^ *+' conftest.er1 >conftest.err
18524   rm -f conftest.er1
18525   cat conftest.err >&5
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); } &&
18528          { ac_try='test -z "$ac_c_werror_flag"
18529                          || test ! -s conftest.err'
18530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531   (eval $ac_try) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest.$ac_objext'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 bfd_cv_have_sys_procfs_type_psinfo32_t=no
18547
18548 fi
18549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18550 fi
18551
18552  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18553
18554 cat >>confdefs.h <<\_ACEOF
18555 #define HAVE_PSINFO32_T 1
18556 _ACEOF
18557
18558  fi
18559  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18560 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
18561
18562     echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18563 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18564  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18565   echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567   cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573
18574 #define _SYSCALL32
18575 #include <sys/procfs.h>
18576 int
18577 main ()
18578 {
18579 lwpstatus_t avar
18580   ;
18581   return 0;
18582 }
18583 _ACEOF
18584 rm -f conftest.$ac_objext
18585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18586   (eval $ac_compile) 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } &&
18593          { ac_try='test -z "$ac_c_werror_flag"
18594                          || test ! -s conftest.err'
18595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596   (eval $ac_try) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; } &&
18600          { ac_try='test -s conftest.$ac_objext'
18601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602   (eval $ac_try) 2>&5
18603   ac_status=$?
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); }; }; then
18606   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18607 else
18608   echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18612
18613 fi
18614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18615 fi
18616
18617  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18618
18619 cat >>confdefs.h <<\_ACEOF
18620 #define HAVE_LWPSTATUS_T 1
18621 _ACEOF
18622
18623  fi
18624  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18625 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
18626
18627     echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18628 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18629  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h.  */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h.  */
18638
18639 #define _SYSCALL32
18640 #include <sys/procfs.h>
18641 int
18642 main ()
18643 {
18644 lwpxstatus_t avar
18645   ;
18646   return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18651   (eval $ac_compile) 2>conftest.er1
18652   ac_status=$?
18653   grep -v '^ *+' conftest.er1 >conftest.err
18654   rm -f conftest.er1
18655   cat conftest.err >&5
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } &&
18658          { ac_try='test -z "$ac_c_werror_flag"
18659                          || test ! -s conftest.err'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; } &&
18665          { ac_try='test -s conftest.$ac_objext'
18666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667   (eval $ac_try) 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; }; then
18671   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18677
18678 fi
18679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18680 fi
18681
18682  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18683
18684 cat >>confdefs.h <<\_ACEOF
18685 #define HAVE_LWPXSTATUS_T 1
18686 _ACEOF
18687
18688  fi
18689  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18690 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
18691
18692     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18693 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18694  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18695   echo $ECHO_N "(cached) $ECHO_C" >&6
18696 else
18697   cat >conftest.$ac_ext <<_ACEOF
18698 /* confdefs.h.  */
18699 _ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h.  */
18703
18704 #define _SYSCALL32
18705 #include <sys/procfs.h>
18706 int
18707 main ()
18708 {
18709 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
18710   ;
18711   return 0;
18712 }
18713 _ACEOF
18714 rm -f conftest.$ac_objext
18715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18716   (eval $ac_compile) 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } &&
18723          { ac_try='test -z "$ac_c_werror_flag"
18724                          || test ! -s conftest.err'
18725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726   (eval $ac_try) 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); }; } &&
18730          { ac_try='test -s conftest.$ac_objext'
18731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732   (eval $ac_try) 2>&5
18733   ac_status=$?
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); }; }; then
18736   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18737 else
18738   echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18740
18741 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18742
18743 fi
18744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18745 fi
18746
18747  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18748
18749 cat >>confdefs.h <<\_ACEOF
18750 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18751 _ACEOF
18752
18753  fi
18754  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18755 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
18756
18757     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18758 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18759  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18760   echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762   cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h.  */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h.  */
18768
18769 #define _SYSCALL32
18770 #include <sys/procfs.h>
18771 int
18772 main ()
18773 {
18774 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781   (eval $ac_compile) 2>conftest.er1
18782   ac_status=$?
18783   grep -v '^ *+' conftest.er1 >conftest.err
18784   rm -f conftest.er1
18785   cat conftest.err >&5
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); } &&
18788          { ac_try='test -z "$ac_c_werror_flag"
18789                          || test ! -s conftest.err'
18790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791   (eval $ac_try) 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }; } &&
18795          { ac_try='test -s conftest.$ac_objext'
18796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797   (eval $ac_try) 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); }; }; then
18801   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18802 else
18803   echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18807
18808 fi
18809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18810 fi
18811
18812  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18813
18814 cat >>confdefs.h <<\_ACEOF
18815 #define HAVE_LWPSTATUS_T_PR_REG 1
18816 _ACEOF
18817
18818  fi
18819  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18820 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
18821
18822     echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18823 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18824  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h.  */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h.  */
18833
18834 #define _SYSCALL32
18835 #include <sys/procfs.h>
18836 int
18837 main ()
18838 {
18839 win32_pstatus_t avar
18840   ;
18841   return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest.$ac_objext
18845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18846   (eval $ac_compile) 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } &&
18853          { ac_try='test -z "$ac_c_werror_flag"
18854                          || test ! -s conftest.err'
18855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856   (eval $ac_try) 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); }; } &&
18860          { ac_try='test -s conftest.$ac_objext'
18861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862   (eval $ac_try) 2>&5
18863   ac_status=$?
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); }; }; then
18866   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18867 else
18868   echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18872
18873 fi
18874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18875 fi
18876
18877  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
18878
18879 cat >>confdefs.h <<\_ACEOF
18880 #define HAVE_WIN32_PSTATUS_T 1
18881 _ACEOF
18882
18883  fi
18884  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18885 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
18886
18887   fi
18888 fi
18889
18890
18891 if test -n "$TRAD_HEADER"; then
18892
18893 cat >>confdefs.h <<_ACEOF
18894 #define TRAD_HEADER $TRAD_HEADER
18895 _ACEOF
18896
18897 fi
18898
18899 # Horrible hacks to build DLLs on Windows.
18900 WIN32LDFLAGS=
18901 WIN32LIBADD=
18902 case "${host}" in
18903 *-*-cygwin*)
18904   if test "$enable_shared" = "yes"; then
18905     WIN32LDFLAGS="-no-undefined"
18906     WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18907   fi
18908   ;;
18909 *-*-linux*)
18910   # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18911   # libiberty.a.
18912   x=`sed -n -e 's/^[    ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18913   if test -n "$x"; then
18914     WIN32LIBADD="-L../libiberty/pic -liberty"
18915   fi
18916   ;;
18917 esac
18918
18919
18920
18921 # target stuff:
18922
18923 # Canonicalize the secondary target names.
18924 if test -n "$enable_targets" ; then
18925     for targ in `echo $enable_targets | sed 's/,/ /g'`
18926     do
18927         result=`$ac_config_sub $targ 2>/dev/null`
18928         if test -n "$result" ; then
18929             canon_targets="$canon_targets $result"
18930         else
18931             # Allow targets that config.sub doesn't recognize, like "all".
18932             canon_targets="$canon_targets $targ"
18933         fi
18934     done
18935 fi
18936
18937 all_targets=false
18938 defvec=
18939 selvecs=
18940 assocvecs=
18941 selarchs=
18942 TDEFINES=
18943 for targ in $target $canon_targets
18944 do
18945     if test "x$targ" = "xall"; then
18946         all_targets=true
18947         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
18948     else
18949         . $srcdir/config.bfd
18950         if test "x$targ" = "x$target"; then
18951             defvec=$targ_defvec
18952         fi
18953         selvecs="$selvecs $targ_defvec $targ_selvecs"
18954         selarchs="$selarchs $targ_archs"
18955         TDEFINES="$TDEFINES $targ_cflags"
18956     fi
18957 done
18958
18959
18960 # This processing still needs to be done if we're to decide properly whether
18961 # 64-bit support needs to be compiled in.  Currently, it will be included if
18962 # the default or any other explicitly requested target requires it; it
18963 # will not be included on a 32-bit host if no 64-bit target is requested, and
18964 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
18965 # used.
18966
18967 # uniq the default and selected vectors in all the configured targets.
18968 f=""
18969 for i in $selvecs ; do
18970     case " $f " in
18971     *" $i "*) ;;
18972     *) f="$f $i" ;;
18973     esac
18974 done
18975 selvecs="$f"
18976
18977
18978 # uniq the associated vectors in all the configured targets.
18979 f=""
18980 for i in $assocvecs ; do
18981     case " $f " in
18982     *" $i "*) ;;
18983     *) f="$f $i" ;;
18984     esac
18985 done
18986 assocvecs="$f"
18987
18988
18989 # uniq the architectures in all the configured targets.
18990 f=""
18991 for i in $selarchs ; do
18992     case " $f " in
18993     *" $i "*) ;;
18994     *) f="$f $i" ;;
18995     esac
18996 done
18997 selarchs="$f"
18998
18999 # Target backend .o files.
19000 tb=
19001
19002 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
19003
19004 for vec in $selvecs
19005 do
19006     target_size=32
19007     case "$vec" in
19008     # This list is alphabetized to make it easy to compare
19009     # with the two vector lists in targets.c.  For the same reason,
19010     # use one entry per line, even though this leads to long lines.
19011     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
19012     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19013     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
19014     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
19015     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
19016     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
19017     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19018     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19019     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19020     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19021     arm_wince_pe_big_vec)       tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19022     arm_wince_pe_little_vec)    tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19023     arm_wince_pei_big_vec)      tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19024     arm_wince_pei_little_vec)   tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19025     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
19026     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
19027     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
19028     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19029     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19030     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19031     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19032     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
19033     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
19034     bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19035     bfd_efi_bsdrv_ia32_vec)     tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19036     bfd_efi_rtdrv_ia32_vec)     tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
19037     bfd_efi_app_x86_64_vec)     tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19038     bfd_efi_bsdrv_x86_64_vec)   tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19039     bfd_efi_rtdrv_x86_64_vec)   tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19040     bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19041     bfd_efi_bsdrv_ia64_vec)     tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19042     bfd_efi_rtdrv_ia64_vec)     tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19043     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19044     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19045     bfd_elf32_bfin_vec)         tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19046     bfd_elf32_bfinfdpic_vec)    tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19047     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19048     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19049     bfd_elf32_bigarm_vec)       tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19050     bfd_elf32_bigarm_symbian_vec)
19051                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19052     bfd_elf32_bigarm_vxworks_vec)
19053                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19054     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19055     bfd_elf32_bigmips_vxworks_vec)
19056                                 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19057     bfd_elf32_cr16_vec)         tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19058     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19059     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19060     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19061     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19062     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19063     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19064     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19065     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19066     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19067     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19068     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19069     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19070     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19071     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19072     bfd_elf32_i386_dragonfly_vec)
19073                                 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19074     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19075     bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19076     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19077     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19078     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19079     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19080     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19081     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19082     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19083     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19084     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19085     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19086     bfd_elf32_littlearm_symbian_vec)
19087                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19088     bfd_elf32_littlearm_vxworks_vec)
19089                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19090     bfd_elf32_littlearm_vec)    tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19091     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19092     bfd_elf32_littlemips_vxworks_vec)
19093                                 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19094     bfd_elf32_m32c_vec)         tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19095     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19096     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19097     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19098     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19099     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19100     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19101     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19102     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19103     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19104     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19105     bfd_elf32_mep_vec)          tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19106     bfd_elf32_mep_little_vec)   tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19107     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19108     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19109     bfd_elf32_mt_vec)           tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19110     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19111     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19112     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19113     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19114     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19115     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
19116     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19117     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
19118     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
19119     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19120     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19121     bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19122     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19123     bfd_elf32_bigscore_vec)     tb="$tb elf32-score.lo elf32.lo $elf" ;;
19124     bfd_elf32_littlescore_vec)  tb="$tb elf32-score.lo elf32.lo $elf" ;;
19125     # FIXME: We include cofflink.lo not because it's needed for
19126     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19127     # which needs it but does not list it.  Should be fixed in right place.
19128     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19129     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19130     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19131     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19132     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19133     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19134     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19135     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19136     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19137     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19138     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19139     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19140     bfd_elf32_shlvxworks_vec)   tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19141     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19142     bfd_elf32_shvxworks_vec)    tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19143     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19144     bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19145     bfd_elf32_spu_vec)          tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19146     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19147     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19148     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19149     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19150     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19151     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19152     bfd_elf32_xc16x_vec)                tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19153     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19154     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19155     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19156     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19157     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19158     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19159     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19160     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19161     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19162     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19163     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19164     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19165     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19166     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19167     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19168     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19169     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19170     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19171     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19172     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19173     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19174     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19175     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19176     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19177     bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19178     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19179     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19180     bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19181     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19182     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
19183     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19184     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19185     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19186     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19187     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
19188     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19189     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19190     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19191     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19192     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19193     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
19194     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
19195     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
19196     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
19197     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
19198     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
19199     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
19200     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
19201     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
19202     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
19203     x86_64coff_vec)             tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19204     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
19205     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
19206     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
19207     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19208     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19209     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
19210     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
19211     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
19212     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
19213     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19214     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19215     x86_64pe_vec)               tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19216     x86_64pei_vec)              tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19217     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
19218     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
19219     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
19220     ieee_vec)                   tb="$tb ieee.lo" ;;
19221     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19222     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19223     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
19224     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19225     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
19226     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
19227     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
19228     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
19229     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
19230     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
19231     maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
19232     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
19233     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
19234     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
19235     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19236     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19237     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19238     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19239     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19240     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19241     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
19242     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19243     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19244     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19245     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19246     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
19247     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19248     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19249     pef_vec)                    tb="$tb pef.lo" ;;
19250     pef_xlib_vec)               tb="$tb pef.lo" ;;
19251     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
19252     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19253     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
19254     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
19255     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19256     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19257     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
19258     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
19259     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
19260     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
19261     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19262     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19263     som_vec)                    tb="$tb som.lo" ;;
19264     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
19265     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
19266     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
19267     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19268     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19269     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
19270     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
19271     sym_vec)                    tb="$tb xsym.lo" ;;
19272     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
19273     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
19274     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
19275     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19276     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
19277     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19278     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
19279     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19280     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19281     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
19282     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19283     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
19284     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19285     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
19286     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
19287     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
19288     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
19289     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
19290     versados_vec)               tb="$tb versados.lo" ;;
19291     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19292     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19293     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
19294     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
19295     z80coff_vec)                tb="$tb coff-z80.lo reloc16.lo" ;;
19296     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19297
19298     # These appear out of order in targets.c
19299     srec_vec)                   tb="$tb srec.lo" ;;
19300     symbolsrec_vec)             tb="$tb srec.lo" ;;
19301     tekhex_vec)                 tb="$tb tekhex.lo" ;;
19302     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
19303     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
19304
19305     "")                 ;;
19306     *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19307 echo "$as_me: error: *** unknown target vector $vec" >&2;}
19308    { (exit 1); exit 1; }; } ;;
19309     esac
19310
19311     if test ${target_size} = 64; then
19312         target64=true
19313     fi
19314     if test x"${vec}" = x"${defvec}"; then
19315         bfd_default_target_size=${target_size}
19316     fi
19317 done
19318
19319 # Target architecture .o files.
19320 # A couple of CPUs use shorter file names to avoid problems on DOS
19321 # filesystems.
19322 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19323
19324 # Weed out duplicate .o files.
19325 f=""
19326 for i in $tb ; do
19327     case " $f " in
19328     *" $i "*) ;;
19329     *) f="$f $i" ;;
19330     esac
19331 done
19332 tb="$f"
19333
19334 f=""
19335 for i in $ta ; do
19336     case " $f " in
19337     *" $i "*) ;;
19338     *) f="$f $i" ;;
19339     esac
19340 done
19341 ta="$f"
19342
19343 bfd_backends="$tb"
19344 bfd_machines="$ta"
19345
19346 if test x${all_targets} = xtrue ; then
19347   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19348   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19349   selvecs=
19350   havevecs=
19351   selarchs=
19352   test -n "$assocvecs" &&
19353     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19354 else    # all_targets is true
19355   # Only set these if they will be nonempty, for the clever echo.
19356   havevecs=
19357   assocvecs=
19358   test -n "$selvecs" &&
19359     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19360   test -n "$selvecs" &&
19361     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19362   test -n "$selarchs" &&
19363     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19364 fi      # all_targets is true
19365
19366 case ${host64}-${target64}-${want64} in
19367   *true*)
19368     wordsize=64
19369     bfd64_libs='$(BFD64_LIBS)'
19370     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19371     if test $BFD_HOST_64_BIT_DEFINED = 0; then
19372       { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19373 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19374       { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19375 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19376     fi
19377     if test -n "$GCC" ; then
19378        bad_64bit_gcc=no;
19379        echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19380 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19381        # Add more tests for gcc versions with non-working 64-bit support here.
19382        cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h.  */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h.  */
19388 :__GNUC__:__GNUC_MINOR__:__i386__:
19389 _ACEOF
19390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19391   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19392   bad_64bit_gcc=yes;
19393                     echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19394 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19395 else
19396   echo "$as_me:$LINENO: result: no" >&5
19397 echo "${ECHO_T}no" >&6
19398 fi
19399 rm -f conftest*
19400
19401        if test $bad_64bit_gcc = yes ; then
19402          { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19403 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19404    { (exit 1); exit 1; }; }
19405        fi
19406     fi
19407     ;;
19408   false-false-false)
19409     wordsize=32
19410     all_backends='$(BFD32_BACKENDS)'
19411     ;;
19412 esac
19413
19414
19415
19416
19417
19418
19419
19420
19421 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
19422 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19423 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
19424 # Hopefully a reasonable assumption since fseeko et.al. should be
19425 # upward compatible.
19426
19427
19428
19429
19430
19431 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
19432 do
19433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19434 echo "$as_me:$LINENO: checking for $ac_func" >&5
19435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19436 if eval "test \"\${$as_ac_var+set}\" = set"; then
19437   echo $ECHO_N "(cached) $ECHO_C" >&6
19438 else
19439   cat >conftest.$ac_ext <<_ACEOF
19440 /* confdefs.h.  */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h.  */
19445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19447 #define $ac_func innocuous_$ac_func
19448
19449 /* System header to define __stub macros and hopefully few prototypes,
19450     which can conflict with char $ac_func (); below.
19451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19452     <limits.h> exists even on freestanding compilers.  */
19453
19454 #ifdef __STDC__
19455 # include <limits.h>
19456 #else
19457 # include <assert.h>
19458 #endif
19459
19460 #undef $ac_func
19461
19462 /* Override any gcc2 internal prototype to avoid an error.  */
19463 #ifdef __cplusplus
19464 extern "C"
19465 {
19466 #endif
19467 /* We use char because int might match the return type of a gcc2
19468    builtin and then its argument prototype would still apply.  */
19469 char $ac_func ();
19470 /* The GNU C library defines this for functions which it implements
19471     to always fail with ENOSYS.  Some functions are actually named
19472     something starting with __ and the normal name is an alias.  */
19473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19474 choke me
19475 #else
19476 char (*f) () = $ac_func;
19477 #endif
19478 #ifdef __cplusplus
19479 }
19480 #endif
19481
19482 int
19483 main ()
19484 {
19485 return f != $ac_func;
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19492   (eval $ac_link) 2>conftest.er1
19493   ac_status=$?
19494   grep -v '^ *+' conftest.er1 >conftest.err
19495   rm -f conftest.er1
19496   cat conftest.err >&5
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); } &&
19499          { ac_try='test -z "$ac_c_werror_flag"
19500                          || test ! -s conftest.err'
19501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502   (eval $ac_try) 2>&5
19503   ac_status=$?
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); }; } &&
19506          { ac_try='test -s conftest$ac_exeext'
19507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508   (eval $ac_try) 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; }; then
19512   eval "$as_ac_var=yes"
19513 else
19514   echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517 eval "$as_ac_var=no"
19518 fi
19519 rm -f conftest.err conftest.$ac_objext \
19520       conftest$ac_exeext conftest.$ac_ext
19521 fi
19522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19524 if test `eval echo '${'$as_ac_var'}'` = yes; then
19525   cat >>confdefs.h <<_ACEOF
19526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19527 _ACEOF
19528
19529 fi
19530 done
19531
19532 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19533     echo "$as_me:$LINENO: checking for off_t" >&5
19534 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19535 if test "${ac_cv_type_off_t+set}" = set; then
19536   echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538   cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 $ac_includes_default
19545 int
19546 main ()
19547 {
19548 if ((off_t *) 0)
19549   return 0;
19550 if (sizeof (off_t))
19551   return 0;
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558   (eval $ac_compile) 2>conftest.er1
19559   ac_status=$?
19560   grep -v '^ *+' conftest.er1 >conftest.err
19561   rm -f conftest.er1
19562   cat conftest.err >&5
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); } &&
19565          { ac_try='test -z "$ac_c_werror_flag"
19566                          || test ! -s conftest.err'
19567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568   (eval $ac_try) 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; } &&
19572          { ac_try='test -s conftest.$ac_objext'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; }; then
19578   ac_cv_type_off_t=yes
19579 else
19580   echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19582
19583 ac_cv_type_off_t=no
19584 fi
19585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19586 fi
19587 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19588 echo "${ECHO_T}$ac_cv_type_off_t" >&6
19589
19590 echo "$as_me:$LINENO: checking size of off_t" >&5
19591 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19592 if test "${ac_cv_sizeof_off_t+set}" = set; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   if test "$ac_cv_type_off_t" = yes; then
19596   # The cast to unsigned long works around a bug in the HP C Compiler
19597   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19598   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19599   # This bug is HP SR number 8606223364.
19600   if test "$cross_compiling" = yes; then
19601   # Depending upon the size, compute the lo and hi bounds.
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h.  */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h.  */
19608 $ac_includes_default
19609 int
19610 main ()
19611 {
19612 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19613 test_array [0] = 0
19614
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 rm -f conftest.$ac_objext
19620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19621   (eval $ac_compile) 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } &&
19628          { ac_try='test -z "$ac_c_werror_flag"
19629                          || test ! -s conftest.err'
19630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631   (eval $ac_try) 2>&5
19632   ac_status=$?
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); }; } &&
19635          { ac_try='test -s conftest.$ac_objext'
19636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637   (eval $ac_try) 2>&5
19638   ac_status=$?
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); }; }; then
19641   ac_lo=0 ac_mid=0
19642   while :; do
19643     cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h.  */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h.  */
19649 $ac_includes_default
19650 int
19651 main ()
19652 {
19653 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19654 test_array [0] = 0
19655
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19662   (eval $ac_compile) 2>conftest.er1
19663   ac_status=$?
19664   grep -v '^ *+' conftest.er1 >conftest.err
19665   rm -f conftest.er1
19666   cat conftest.err >&5
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); } &&
19669          { ac_try='test -z "$ac_c_werror_flag"
19670                          || test ! -s conftest.err'
19671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672   (eval $ac_try) 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; } &&
19676          { ac_try='test -s conftest.$ac_objext'
19677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678   (eval $ac_try) 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; }; then
19682   ac_hi=$ac_mid; break
19683 else
19684   echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687 ac_lo=`expr $ac_mid + 1`
19688                     if test $ac_lo -le $ac_mid; then
19689                       ac_lo= ac_hi=
19690                       break
19691                     fi
19692                     ac_mid=`expr 2 '*' $ac_mid + 1`
19693 fi
19694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19695   done
19696 else
19697   echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h.  */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h.  */
19706 $ac_includes_default
19707 int
19708 main ()
19709 {
19710 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19711 test_array [0] = 0
19712
19713   ;
19714   return 0;
19715 }
19716 _ACEOF
19717 rm -f conftest.$ac_objext
19718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19719   (eval $ac_compile) 2>conftest.er1
19720   ac_status=$?
19721   grep -v '^ *+' conftest.er1 >conftest.err
19722   rm -f conftest.er1
19723   cat conftest.err >&5
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } &&
19726          { ac_try='test -z "$ac_c_werror_flag"
19727                          || test ! -s conftest.err'
19728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729   (eval $ac_try) 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); }; } &&
19733          { ac_try='test -s conftest.$ac_objext'
19734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735   (eval $ac_try) 2>&5
19736   ac_status=$?
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); }; }; then
19739   ac_hi=-1 ac_mid=-1
19740   while :; do
19741     cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h.  */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h.  */
19747 $ac_includes_default
19748 int
19749 main ()
19750 {
19751 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19752 test_array [0] = 0
19753
19754   ;
19755   return 0;
19756 }
19757 _ACEOF
19758 rm -f conftest.$ac_objext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19760   (eval $ac_compile) 2>conftest.er1
19761   ac_status=$?
19762   grep -v '^ *+' conftest.er1 >conftest.err
19763   rm -f conftest.er1
19764   cat conftest.err >&5
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); } &&
19767          { ac_try='test -z "$ac_c_werror_flag"
19768                          || test ! -s conftest.err'
19769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770   (eval $ac_try) 2>&5
19771   ac_status=$?
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); }; } &&
19774          { ac_try='test -s conftest.$ac_objext'
19775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776   (eval $ac_try) 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); }; }; then
19780   ac_lo=$ac_mid; break
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785 ac_hi=`expr '(' $ac_mid ')' - 1`
19786                        if test $ac_mid -le $ac_hi; then
19787                          ac_lo= ac_hi=
19788                          break
19789                        fi
19790                        ac_mid=`expr 2 '*' $ac_mid`
19791 fi
19792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19793   done
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798 ac_lo= ac_hi=
19799 fi
19800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19801 fi
19802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 # Binary search between lo and hi bounds.
19804 while test "x$ac_lo" != "x$ac_hi"; do
19805   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19806   cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h.  */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h.  */
19812 $ac_includes_default
19813 int
19814 main ()
19815 {
19816 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19817 test_array [0] = 0
19818
19819   ;
19820   return 0;
19821 }
19822 _ACEOF
19823 rm -f conftest.$ac_objext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825   (eval $ac_compile) 2>conftest.er1
19826   ac_status=$?
19827   grep -v '^ *+' conftest.er1 >conftest.err
19828   rm -f conftest.er1
19829   cat conftest.err >&5
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } &&
19832          { ac_try='test -z "$ac_c_werror_flag"
19833                          || test ! -s conftest.err'
19834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835   (eval $ac_try) 2>&5
19836   ac_status=$?
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); }; } &&
19839          { ac_try='test -s conftest.$ac_objext'
19840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841   (eval $ac_try) 2>&5
19842   ac_status=$?
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }; }; then
19845   ac_hi=$ac_mid
19846 else
19847   echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19849
19850 ac_lo=`expr '(' $ac_mid ')' + 1`
19851 fi
19852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19853 done
19854 case $ac_lo in
19855 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19857 See \`config.log' for more details." >&5
19858 echo "$as_me: error: cannot compute sizeof (off_t), 77
19859 See \`config.log' for more details." >&2;}
19860    { (exit 1); exit 1; }; } ;;
19861 esac
19862 else
19863   if test "$cross_compiling" = yes; then
19864   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19865 See \`config.log' for more details." >&5
19866 echo "$as_me: error: cannot run test program while cross compiling
19867 See \`config.log' for more details." >&2;}
19868    { (exit 1); exit 1; }; }
19869 else
19870   cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876 $ac_includes_default
19877 long longval () { return (long) (sizeof (off_t)); }
19878 unsigned long ulongval () { return (long) (sizeof (off_t)); }
19879 #include <stdio.h>
19880 #include <stdlib.h>
19881 int
19882 main ()
19883 {
19884
19885   FILE *f = fopen ("conftest.val", "w");
19886   if (! f)
19887     exit (1);
19888   if (((long) (sizeof (off_t))) < 0)
19889     {
19890       long i = longval ();
19891       if (i != ((long) (sizeof (off_t))))
19892         exit (1);
19893       fprintf (f, "%ld\n", i);
19894     }
19895   else
19896     {
19897       unsigned long i = ulongval ();
19898       if (i != ((long) (sizeof (off_t))))
19899         exit (1);
19900       fprintf (f, "%lu\n", i);
19901     }
19902   exit (ferror (f) || fclose (f) != 0);
19903
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910   (eval $ac_link) 2>&5
19911   ac_status=$?
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915   (eval $ac_try) 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; }; then
19919   ac_cv_sizeof_off_t=`cat conftest.val`
19920 else
19921   echo "$as_me: program exited with status $ac_status" >&5
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19924
19925 ( exit $ac_status )
19926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19927 See \`config.log' for more details." >&5
19928 echo "$as_me: error: cannot compute sizeof (off_t), 77
19929 See \`config.log' for more details." >&2;}
19930    { (exit 1); exit 1; }; }
19931 fi
19932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19933 fi
19934 fi
19935 rm -f conftest.val
19936 else
19937   ac_cv_sizeof_off_t=0
19938 fi
19939 fi
19940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19941 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
19942 cat >>confdefs.h <<_ACEOF
19943 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19944 _ACEOF
19945
19946
19947 fi
19948 echo "$as_me:$LINENO: checking file_ptr type" >&5
19949 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
19950 bfd_file_ptr="long"
19951 bfd_ufile_ptr="unsigned long"
19952 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19953         -o x"${ac_cv_sizeof_off_t}" = x8; then
19954     bfd_file_ptr=BFD_HOST_64_BIT
19955     bfd_ufile_ptr=BFD_HOST_U_64_BIT
19956 fi
19957 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19958 echo "${ECHO_T}$bfd_file_ptr" >&6
19959
19960
19961
19962
19963 tdefaults=""
19964 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19965 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
19966 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
19967 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19968 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19969
19970
19971
19972
19973 for ac_header in stdlib.h unistd.h
19974 do
19975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19977   echo "$as_me:$LINENO: checking for $ac_header" >&5
19978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19980   echo $ECHO_N "(cached) $ECHO_C" >&6
19981 fi
19982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19984 else
19985   # Is the header compilable?
19986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19988 cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h.  */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h.  */
19994 $ac_includes_default
19995 #include <$ac_header>
19996 _ACEOF
19997 rm -f conftest.$ac_objext
19998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19999   (eval $ac_compile) 2>conftest.er1
20000   ac_status=$?
20001   grep -v '^ *+' conftest.er1 >conftest.err
20002   rm -f conftest.er1
20003   cat conftest.err >&5
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } &&
20006          { ac_try='test -z "$ac_c_werror_flag"
20007                          || test ! -s conftest.err'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; } &&
20013          { ac_try='test -s conftest.$ac_objext'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; }; then
20019   ac_header_compiler=yes
20020 else
20021   echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 ac_header_compiler=no
20025 fi
20026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20028 echo "${ECHO_T}$ac_header_compiler" >&6
20029
20030 # Is the header present?
20031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20033 cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h.  */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h.  */
20039 #include <$ac_header>
20040 _ACEOF
20041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20043   ac_status=$?
20044   grep -v '^ *+' conftest.er1 >conftest.err
20045   rm -f conftest.er1
20046   cat conftest.err >&5
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } >/dev/null; then
20049   if test -s conftest.err; then
20050     ac_cpp_err=$ac_c_preproc_warn_flag
20051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20052   else
20053     ac_cpp_err=
20054   fi
20055 else
20056   ac_cpp_err=yes
20057 fi
20058 if test -z "$ac_cpp_err"; then
20059   ac_header_preproc=yes
20060 else
20061   echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064   ac_header_preproc=no
20065 fi
20066 rm -f conftest.err conftest.$ac_ext
20067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20068 echo "${ECHO_T}$ac_header_preproc" >&6
20069
20070 # So?  What about this header?
20071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20072   yes:no: )
20073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20077     ac_header_preproc=yes
20078     ;;
20079   no:yes:* )
20080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20092     (
20093       cat <<\_ASBOX
20094 ## ------------------------------------------ ##
20095 ## Report this to the AC_PACKAGE_NAME lists.  ##
20096 ## ------------------------------------------ ##
20097 _ASBOX
20098     ) |
20099       sed "s/^/$as_me: WARNING:     /" >&2
20100     ;;
20101 esac
20102 echo "$as_me:$LINENO: checking for $ac_header" >&5
20103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107   eval "$as_ac_Header=\$ac_header_preproc"
20108 fi
20109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20111
20112 fi
20113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20114   cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20116 _ACEOF
20117
20118 fi
20119
20120 done
20121
20122
20123 for ac_func in getpagesize
20124 do
20125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20126 echo "$as_me:$LINENO: checking for $ac_func" >&5
20127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20128 if eval "test \"\${$as_ac_var+set}\" = set"; then
20129   echo $ECHO_N "(cached) $ECHO_C" >&6
20130 else
20131   cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20139 #define $ac_func innocuous_$ac_func
20140
20141 /* System header to define __stub macros and hopefully few prototypes,
20142     which can conflict with char $ac_func (); below.
20143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20144     <limits.h> exists even on freestanding compilers.  */
20145
20146 #ifdef __STDC__
20147 # include <limits.h>
20148 #else
20149 # include <assert.h>
20150 #endif
20151
20152 #undef $ac_func
20153
20154 /* Override any gcc2 internal prototype to avoid an error.  */
20155 #ifdef __cplusplus
20156 extern "C"
20157 {
20158 #endif
20159 /* We use char because int might match the return type of a gcc2
20160    builtin and then its argument prototype would still apply.  */
20161 char $ac_func ();
20162 /* The GNU C library defines this for functions which it implements
20163     to always fail with ENOSYS.  Some functions are actually named
20164     something starting with __ and the normal name is an alias.  */
20165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20166 choke me
20167 #else
20168 char (*f) () = $ac_func;
20169 #endif
20170 #ifdef __cplusplus
20171 }
20172 #endif
20173
20174 int
20175 main ()
20176 {
20177 return f != $ac_func;
20178   ;
20179   return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext conftest$ac_exeext
20183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20184   (eval $ac_link) 2>conftest.er1
20185   ac_status=$?
20186   grep -v '^ *+' conftest.er1 >conftest.err
20187   rm -f conftest.er1
20188   cat conftest.err >&5
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); } &&
20191          { ac_try='test -z "$ac_c_werror_flag"
20192                          || test ! -s conftest.err'
20193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194   (eval $ac_try) 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; } &&
20198          { ac_try='test -s conftest$ac_exeext'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; }; then
20204   eval "$as_ac_var=yes"
20205 else
20206   echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 eval "$as_ac_var=no"
20210 fi
20211 rm -f conftest.err conftest.$ac_objext \
20212       conftest$ac_exeext conftest.$ac_ext
20213 fi
20214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20216 if test `eval echo '${'$as_ac_var'}'` = yes; then
20217   cat >>confdefs.h <<_ACEOF
20218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20219 _ACEOF
20220
20221 fi
20222 done
20223
20224 echo "$as_me:$LINENO: checking for working mmap" >&5
20225 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20226 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20227   echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229   if test "$cross_compiling" = yes; then
20230   ac_cv_func_mmap_fixed_mapped=no
20231 else
20232   cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 $ac_includes_default
20239 /* malloc might have been renamed as rpl_malloc. */
20240 #undef malloc
20241
20242 /* Thanks to Mike Haertel and Jim Avera for this test.
20243    Here is a matrix of mmap possibilities:
20244         mmap private not fixed
20245         mmap private fixed at somewhere currently unmapped
20246         mmap private fixed at somewhere already mapped
20247         mmap shared not fixed
20248         mmap shared fixed at somewhere currently unmapped
20249         mmap shared fixed at somewhere already mapped
20250    For private mappings, we should verify that changes cannot be read()
20251    back from the file, nor mmap's back from the file at a different
20252    address.  (There have been systems where private was not correctly
20253    implemented like the infamous i386 svr4.0, and systems where the
20254    VM page cache was not coherent with the file system buffer cache
20255    like early versions of FreeBSD and possibly contemporary NetBSD.)
20256    For shared mappings, we should conversely verify that changes get
20257    propagated back to all the places they're supposed to be.
20258
20259    Grep wants private fixed already mapped.
20260    The main things grep needs to know about mmap are:
20261    * does it exist and is it safe to write into the mmap'd area
20262    * how to use it (BSD variants)  */
20263
20264 #include <fcntl.h>
20265 #include <sys/mman.h>
20266
20267 #if !STDC_HEADERS && !HAVE_STDLIB_H
20268 char *malloc ();
20269 #endif
20270
20271 /* This mess was copied from the GNU getpagesize.h.  */
20272 #if !HAVE_GETPAGESIZE
20273 /* Assume that all systems that can run configure have sys/param.h.  */
20274 # if !HAVE_SYS_PARAM_H
20275 #  define HAVE_SYS_PARAM_H 1
20276 # endif
20277
20278 # ifdef _SC_PAGESIZE
20279 #  define getpagesize() sysconf(_SC_PAGESIZE)
20280 # else /* no _SC_PAGESIZE */
20281 #  if HAVE_SYS_PARAM_H
20282 #   include <sys/param.h>
20283 #   ifdef EXEC_PAGESIZE
20284 #    define getpagesize() EXEC_PAGESIZE
20285 #   else /* no EXEC_PAGESIZE */
20286 #    ifdef NBPG
20287 #     define getpagesize() NBPG * CLSIZE
20288 #     ifndef CLSIZE
20289 #      define CLSIZE 1
20290 #     endif /* no CLSIZE */
20291 #    else /* no NBPG */
20292 #     ifdef NBPC
20293 #      define getpagesize() NBPC
20294 #     else /* no NBPC */
20295 #      ifdef PAGESIZE
20296 #       define getpagesize() PAGESIZE
20297 #      endif /* PAGESIZE */
20298 #     endif /* no NBPC */
20299 #    endif /* no NBPG */
20300 #   endif /* no EXEC_PAGESIZE */
20301 #  else /* no HAVE_SYS_PARAM_H */
20302 #   define getpagesize() 8192   /* punt totally */
20303 #  endif /* no HAVE_SYS_PARAM_H */
20304 # endif /* no _SC_PAGESIZE */
20305
20306 #endif /* no HAVE_GETPAGESIZE */
20307
20308 int
20309 main ()
20310 {
20311   char *data, *data2, *data3;
20312   int i, pagesize;
20313   int fd;
20314
20315   pagesize = getpagesize ();
20316
20317   /* First, make a file with some known garbage in it. */
20318   data = (char *) malloc (pagesize);
20319   if (!data)
20320     exit (1);
20321   for (i = 0; i < pagesize; ++i)
20322     *(data + i) = rand ();
20323   umask (0);
20324   fd = creat ("conftest.mmap", 0600);
20325   if (fd < 0)
20326     exit (1);
20327   if (write (fd, data, pagesize) != pagesize)
20328     exit (1);
20329   close (fd);
20330
20331   /* Next, try to mmap the file at a fixed address which already has
20332      something else allocated at it.  If we can, also make sure that
20333      we see the same garbage.  */
20334   fd = open ("conftest.mmap", O_RDWR);
20335   if (fd < 0)
20336     exit (1);
20337   data2 = (char *) malloc (2 * pagesize);
20338   if (!data2)
20339     exit (1);
20340   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20341   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20342                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20343     exit (1);
20344   for (i = 0; i < pagesize; ++i)
20345     if (*(data + i) != *(data2 + i))
20346       exit (1);
20347
20348   /* Finally, make sure that changes to the mapped area do not
20349      percolate back to the file as seen by read().  (This is a bug on
20350      some variants of i386 svr4.0.)  */
20351   for (i = 0; i < pagesize; ++i)
20352     *(data2 + i) = *(data2 + i) + 1;
20353   data3 = (char *) malloc (pagesize);
20354   if (!data3)
20355     exit (1);
20356   if (read (fd, data3, pagesize) != pagesize)
20357     exit (1);
20358   for (i = 0; i < pagesize; ++i)
20359     if (*(data + i) != *(data3 + i))
20360       exit (1);
20361   close (fd);
20362   exit (0);
20363 }
20364 _ACEOF
20365 rm -f conftest$ac_exeext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367   (eval $ac_link) 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372   (eval $ac_try) 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); }; }; then
20376   ac_cv_func_mmap_fixed_mapped=yes
20377 else
20378   echo "$as_me: program exited with status $ac_status" >&5
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 ( exit $ac_status )
20383 ac_cv_func_mmap_fixed_mapped=no
20384 fi
20385 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20386 fi
20387 fi
20388 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20389 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20390 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20391
20392 cat >>confdefs.h <<\_ACEOF
20393 #define HAVE_MMAP 1
20394 _ACEOF
20395
20396 fi
20397 rm -f conftest.mmap
20398
20399
20400
20401 for ac_func in madvise mprotect
20402 do
20403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20404 echo "$as_me:$LINENO: checking for $ac_func" >&5
20405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20406 if eval "test \"\${$as_ac_var+set}\" = set"; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20417 #define $ac_func innocuous_$ac_func
20418
20419 /* System header to define __stub macros and hopefully few prototypes,
20420     which can conflict with char $ac_func (); below.
20421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20422     <limits.h> exists even on freestanding compilers.  */
20423
20424 #ifdef __STDC__
20425 # include <limits.h>
20426 #else
20427 # include <assert.h>
20428 #endif
20429
20430 #undef $ac_func
20431
20432 /* Override any gcc2 internal prototype to avoid an error.  */
20433 #ifdef __cplusplus
20434 extern "C"
20435 {
20436 #endif
20437 /* We use char because int might match the return type of a gcc2
20438    builtin and then its argument prototype would still apply.  */
20439 char $ac_func ();
20440 /* The GNU C library defines this for functions which it implements
20441     to always fail with ENOSYS.  Some functions are actually named
20442     something starting with __ and the normal name is an alias.  */
20443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20444 choke me
20445 #else
20446 char (*f) () = $ac_func;
20447 #endif
20448 #ifdef __cplusplus
20449 }
20450 #endif
20451
20452 int
20453 main ()
20454 {
20455 return f != $ac_func;
20456   ;
20457   return 0;
20458 }
20459 _ACEOF
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20462   (eval $ac_link) 2>conftest.er1
20463   ac_status=$?
20464   grep -v '^ *+' conftest.er1 >conftest.err
20465   rm -f conftest.er1
20466   cat conftest.err >&5
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); } &&
20469          { ac_try='test -z "$ac_c_werror_flag"
20470                          || test ! -s conftest.err'
20471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472   (eval $ac_try) 2>&5
20473   ac_status=$?
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); }; } &&
20476          { ac_try='test -s conftest$ac_exeext'
20477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478   (eval $ac_try) 2>&5
20479   ac_status=$?
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); }; }; then
20482   eval "$as_ac_var=yes"
20483 else
20484   echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487 eval "$as_ac_var=no"
20488 fi
20489 rm -f conftest.err conftest.$ac_objext \
20490       conftest$ac_exeext conftest.$ac_ext
20491 fi
20492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20494 if test `eval echo '${'$as_ac_var'}'` = yes; then
20495   cat >>confdefs.h <<_ACEOF
20496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20497 _ACEOF
20498
20499 fi
20500 done
20501
20502 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20503   true+yes )
20504 cat >>confdefs.h <<\_ACEOF
20505 #define USE_MMAP 1
20506 _ACEOF
20507  ;;
20508 esac
20509
20510 rm -f doc/config.status
20511                                         ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20512
20513
20514           ac_config_commands="$ac_config_commands default"
20515
20516
20517
20518
20519
20520
20521 cat >confcache <<\_ACEOF
20522 # This file is a shell script that caches the results of configure
20523 # tests run on this system so they can be shared between configure
20524 # scripts and configure runs, see configure's option --config-cache.
20525 # It is not useful on other systems.  If it contains results you don't
20526 # want to keep, you may remove or edit it.
20527 #
20528 # config.status only pays attention to the cache file if you give it
20529 # the --recheck option to rerun configure.
20530 #
20531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20533 # following values.
20534
20535 _ACEOF
20536
20537 # The following way of writing the cache mishandles newlines in values,
20538 # but we know of no workaround that is simple, portable, and efficient.
20539 # So, don't put newlines in cache variables' values.
20540 # Ultrix sh set writes to stderr and can't be redirected directly,
20541 # and sets the high bit in the cache file unless we assign to the vars.
20542 {
20543   (set) 2>&1 |
20544     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20545     *ac_space=\ *)
20546       # `set' does not quote correctly, so add quotes (double-quote
20547       # substitution turns \\\\ into \\, and sed turns \\ into \).
20548       sed -n \
20549         "s/'/'\\\\''/g;
20550           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20551       ;;
20552     *)
20553       # `set' quotes correctly as required by POSIX, so do not add quotes.
20554       sed -n \
20555         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20556       ;;
20557     esac;
20558 } |
20559   sed '
20560      t clear
20561      : clear
20562      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20563      t end
20564      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20565      : end' >>confcache
20566 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20567   if test -w $cache_file; then
20568     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20569     cat confcache >$cache_file
20570   else
20571     echo "not updating unwritable cache $cache_file"
20572   fi
20573 fi
20574 rm -f confcache
20575
20576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20577 # Let make expand exec_prefix.
20578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20579
20580 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20581 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20582 # trailing colons and then remove the whole line if VPATH becomes empty
20583 # (actually we leave an empty line to preserve line numbers).
20584 if test "x$srcdir" = x.; then
20585   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20586 s/:*\$(srcdir):*/:/;
20587 s/:*\${srcdir}:*/:/;
20588 s/:*@srcdir@:*/:/;
20589 s/^\([^=]*=[     ]*\):*/\1/;
20590 s/:*$//;
20591 s/^[^=]*=[       ]*$//;
20592 }'
20593 fi
20594
20595 DEFS=-DHAVE_CONFIG_H
20596
20597 ac_libobjs=
20598 ac_ltlibobjs=
20599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20600   # 1. Remove the extension, and $U if already installed.
20601   ac_i=`echo "$ac_i" |
20602          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20603   # 2. Add them.
20604   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20605   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20606 done
20607 LIBOBJS=$ac_libobjs
20608
20609 LTLIBOBJS=$ac_ltlibobjs
20610
20611
20612 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20613   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20614 Usually this means the macro was only invoked conditionally." >&5
20615 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20616 Usually this means the macro was only invoked conditionally." >&2;}
20617    { (exit 1); exit 1; }; }
20618 fi
20619 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20620   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20621 Usually this means the macro was only invoked conditionally." >&5
20622 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20623 Usually this means the macro was only invoked conditionally." >&2;}
20624    { (exit 1); exit 1; }; }
20625 fi
20626 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20627   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20628 Usually this means the macro was only invoked conditionally." >&5
20629 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20630 Usually this means the macro was only invoked conditionally." >&2;}
20631    { (exit 1); exit 1; }; }
20632 fi
20633 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20634   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20635 Usually this means the macro was only invoked conditionally." >&5
20636 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20637 Usually this means the macro was only invoked conditionally." >&2;}
20638    { (exit 1); exit 1; }; }
20639 fi
20640 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20641   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20642 Usually this means the macro was only invoked conditionally." >&5
20643 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20644 Usually this means the macro was only invoked conditionally." >&2;}
20645    { (exit 1); exit 1; }; }
20646 fi
20647
20648 : ${CONFIG_STATUS=./config.status}
20649 ac_clean_files_save=$ac_clean_files
20650 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20651 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20652 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20653 cat >$CONFIG_STATUS <<_ACEOF
20654 #! $SHELL
20655 # Generated by $as_me.
20656 # Run this file to recreate the current configuration.
20657 # Compiler output produced by configure, useful for debugging
20658 # configure, is in config.log if it exists.
20659
20660 debug=false
20661 ac_cs_recheck=false
20662 ac_cs_silent=false
20663 SHELL=\${CONFIG_SHELL-$SHELL}
20664 _ACEOF
20665
20666 cat >>$CONFIG_STATUS <<\_ACEOF
20667 ## --------------------- ##
20668 ## M4sh Initialization.  ##
20669 ## --------------------- ##
20670
20671 # Be Bourne compatible
20672 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20673   emulate sh
20674   NULLCMD=:
20675   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20676   # is contrary to our usage.  Disable this feature.
20677   alias -g '${1+"$@"}'='"$@"'
20678 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20679   set -o posix
20680 fi
20681 DUALCASE=1; export DUALCASE # for MKS sh
20682
20683 # Support unset when possible.
20684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20685   as_unset=unset
20686 else
20687   as_unset=false
20688 fi
20689
20690
20691 # Work around bugs in pre-3.0 UWIN ksh.
20692 $as_unset ENV MAIL MAILPATH
20693 PS1='$ '
20694 PS2='> '
20695 PS4='+ '
20696
20697 # NLS nuisances.
20698 for as_var in \
20699   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20700   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20701   LC_TELEPHONE LC_TIME
20702 do
20703   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20704     eval $as_var=C; export $as_var
20705   else
20706     $as_unset $as_var
20707   fi
20708 done
20709
20710 # Required to use basename.
20711 if expr a : '\(a\)' >/dev/null 2>&1; then
20712   as_expr=expr
20713 else
20714   as_expr=false
20715 fi
20716
20717 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20718   as_basename=basename
20719 else
20720   as_basename=false
20721 fi
20722
20723
20724 # Name of the executable.
20725 as_me=`$as_basename "$0" ||
20726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20727          X"$0" : 'X\(//\)$' \| \
20728          X"$0" : 'X\(/\)$' \| \
20729          .     : '\(.\)' 2>/dev/null ||
20730 echo X/"$0" |
20731     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20732           /^X\/\(\/\/\)$/{ s//\1/; q; }
20733           /^X\/\(\/\).*/{ s//\1/; q; }
20734           s/.*/./; q'`
20735
20736
20737 # PATH needs CR, and LINENO needs CR and PATH.
20738 # Avoid depending upon Character Ranges.
20739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20742 as_cr_digits='0123456789'
20743 as_cr_alnum=$as_cr_Letters$as_cr_digits
20744
20745 # The user is always right.
20746 if test "${PATH_SEPARATOR+set}" != set; then
20747   echo "#! /bin/sh" >conf$$.sh
20748   echo  "exit 0"   >>conf$$.sh
20749   chmod +x conf$$.sh
20750   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20751     PATH_SEPARATOR=';'
20752   else
20753     PATH_SEPARATOR=:
20754   fi
20755   rm -f conf$$.sh
20756 fi
20757
20758
20759   as_lineno_1=$LINENO
20760   as_lineno_2=$LINENO
20761   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20762   test "x$as_lineno_1" != "x$as_lineno_2" &&
20763   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20764   # Find who we are.  Look in the path if we contain no path at all
20765   # relative or not.
20766   case $0 in
20767     *[\\/]* ) as_myself=$0 ;;
20768     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20769 for as_dir in $PATH
20770 do
20771   IFS=$as_save_IFS
20772   test -z "$as_dir" && as_dir=.
20773   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20774 done
20775
20776        ;;
20777   esac
20778   # We did not find ourselves, most probably we were run as `sh COMMAND'
20779   # in which case we are not to be found in the path.
20780   if test "x$as_myself" = x; then
20781     as_myself=$0
20782   fi
20783   if test ! -f "$as_myself"; then
20784     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20785 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20786    { (exit 1); exit 1; }; }
20787   fi
20788   case $CONFIG_SHELL in
20789   '')
20790     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20791 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20792 do
20793   IFS=$as_save_IFS
20794   test -z "$as_dir" && as_dir=.
20795   for as_base in sh bash ksh sh5; do
20796          case $as_dir in
20797          /*)
20798            if ("$as_dir/$as_base" -c '
20799   as_lineno_1=$LINENO
20800   as_lineno_2=$LINENO
20801   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20802   test "x$as_lineno_1" != "x$as_lineno_2" &&
20803   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20804              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20805              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20806              CONFIG_SHELL=$as_dir/$as_base
20807              export CONFIG_SHELL
20808              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20809            fi;;
20810          esac
20811        done
20812 done
20813 ;;
20814   esac
20815
20816   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20817   # uniformly replaced by the line number.  The first 'sed' inserts a
20818   # line-number line before each line; the second 'sed' does the real
20819   # work.  The second script uses 'N' to pair each line-number line
20820   # with the numbered line, and appends trailing '-' during
20821   # substitution so that $LINENO is not a special case at line end.
20822   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20823   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20824   sed '=' <$as_myself |
20825     sed '
20826       N
20827       s,$,-,
20828       : loop
20829       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20830       t loop
20831       s,-$,,
20832       s,^['$as_cr_digits']*\n,,
20833     ' >$as_me.lineno &&
20834   chmod +x $as_me.lineno ||
20835     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20836 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20837    { (exit 1); exit 1; }; }
20838
20839   # Don't try to exec as it changes $[0], causing all sort of problems
20840   # (the dirname of $[0] is not the place where we might find the
20841   # original and so on.  Autoconf is especially sensible to this).
20842   . ./$as_me.lineno
20843   # Exit status is that of the last command.
20844   exit
20845 }
20846
20847
20848 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20849   *c*,-n*) ECHO_N= ECHO_C='
20850 ' ECHO_T='      ' ;;
20851   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20852   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20853 esac
20854
20855 if expr a : '\(a\)' >/dev/null 2>&1; then
20856   as_expr=expr
20857 else
20858   as_expr=false
20859 fi
20860
20861 rm -f conf$$ conf$$.exe conf$$.file
20862 echo >conf$$.file
20863 if ln -s conf$$.file conf$$ 2>/dev/null; then
20864   # We could just check for DJGPP; but this test a) works b) is more generic
20865   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20866   if test -f conf$$.exe; then
20867     # Don't use ln at all; we don't have any links
20868     as_ln_s='cp -p'
20869   else
20870     as_ln_s='ln -s'
20871   fi
20872 elif ln conf$$.file conf$$ 2>/dev/null; then
20873   as_ln_s=ln
20874 else
20875   as_ln_s='cp -p'
20876 fi
20877 rm -f conf$$ conf$$.exe conf$$.file
20878
20879 if mkdir -p . 2>/dev/null; then
20880   as_mkdir_p=:
20881 else
20882   test -d ./-p && rmdir ./-p
20883   as_mkdir_p=false
20884 fi
20885
20886 as_executable_p="test -f"
20887
20888 # Sed expression to map a string onto a valid CPP name.
20889 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20890
20891 # Sed expression to map a string onto a valid variable name.
20892 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20893
20894
20895 # IFS
20896 # We need space, tab and new line, in precisely that order.
20897 as_nl='
20898 '
20899 IFS="   $as_nl"
20900
20901 # CDPATH.
20902 $as_unset CDPATH
20903
20904 exec 6>&1
20905
20906 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20907 # report actual input values of CONFIG_FILES etc. instead of their
20908 # values after options handling.  Logging --version etc. is OK.
20909 exec 5>>config.log
20910 {
20911   echo
20912   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20913 ## Running $as_me. ##
20914 _ASBOX
20915 } >&5
20916 cat >&5 <<_CSEOF
20917
20918 This file was extended by $as_me, which was
20919 generated by GNU Autoconf 2.59.  Invocation command line was
20920
20921   CONFIG_FILES    = $CONFIG_FILES
20922   CONFIG_HEADERS  = $CONFIG_HEADERS
20923   CONFIG_LINKS    = $CONFIG_LINKS
20924   CONFIG_COMMANDS = $CONFIG_COMMANDS
20925   $ $0 $@
20926
20927 _CSEOF
20928 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20929 echo >&5
20930 _ACEOF
20931
20932 # Files that config.status was made for.
20933 if test -n "$ac_config_files"; then
20934   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20935 fi
20936
20937 if test -n "$ac_config_headers"; then
20938   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20939 fi
20940
20941 if test -n "$ac_config_links"; then
20942   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20943 fi
20944
20945 if test -n "$ac_config_commands"; then
20946   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20947 fi
20948
20949 cat >>$CONFIG_STATUS <<\_ACEOF
20950
20951 ac_cs_usage="\
20952 \`$as_me' instantiates files from templates according to the
20953 current configuration.
20954
20955 Usage: $0 [OPTIONS] [FILE]...
20956
20957   -h, --help       print this help, then exit
20958   -V, --version    print version number, then exit
20959   -q, --quiet      do not print progress messages
20960   -d, --debug      don't remove temporary files
20961       --recheck    update $as_me by reconfiguring in the same conditions
20962   --file=FILE[:TEMPLATE]
20963                    instantiate the configuration file FILE
20964   --header=FILE[:TEMPLATE]
20965                    instantiate the configuration header FILE
20966
20967 Configuration files:
20968 $config_files
20969
20970 Configuration headers:
20971 $config_headers
20972
20973 Configuration commands:
20974 $config_commands
20975
20976 Report bugs to <bug-autoconf@gnu.org>."
20977 _ACEOF
20978
20979 cat >>$CONFIG_STATUS <<_ACEOF
20980 ac_cs_version="\\
20981 config.status
20982 configured by $0, generated by GNU Autoconf 2.59,
20983   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20984
20985 Copyright (C) 2003 Free Software Foundation, Inc.
20986 This config.status script is free software; the Free Software Foundation
20987 gives unlimited permission to copy, distribute and modify it."
20988 srcdir=$srcdir
20989 INSTALL="$INSTALL"
20990 _ACEOF
20991
20992 cat >>$CONFIG_STATUS <<\_ACEOF
20993 # If no file are specified by the user, then we need to provide default
20994 # value.  By we need to know if files were specified by the user.
20995 ac_need_defaults=:
20996 while test $# != 0
20997 do
20998   case $1 in
20999   --*=*)
21000     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21001     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21002     ac_shift=:
21003     ;;
21004   -*)
21005     ac_option=$1
21006     ac_optarg=$2
21007     ac_shift=shift
21008     ;;
21009   *) # This is not an option, so the user has probably given explicit
21010      # arguments.
21011      ac_option=$1
21012      ac_need_defaults=false;;
21013   esac
21014
21015   case $ac_option in
21016   # Handling of the options.
21017 _ACEOF
21018 cat >>$CONFIG_STATUS <<\_ACEOF
21019   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21020     ac_cs_recheck=: ;;
21021   --version | --vers* | -V )
21022     echo "$ac_cs_version"; exit 0 ;;
21023   --he | --h)
21024     # Conflict between --help and --header
21025     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21026 Try \`$0 --help' for more information." >&5
21027 echo "$as_me: error: ambiguous option: $1
21028 Try \`$0 --help' for more information." >&2;}
21029    { (exit 1); exit 1; }; };;
21030   --help | --hel | -h )
21031     echo "$ac_cs_usage"; exit 0 ;;
21032   --debug | --d* | -d )
21033     debug=: ;;
21034   --file | --fil | --fi | --f )
21035     $ac_shift
21036     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21037     ac_need_defaults=false;;
21038   --header | --heade | --head | --hea )
21039     $ac_shift
21040     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21041     ac_need_defaults=false;;
21042   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21043   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21044     ac_cs_silent=: ;;
21045
21046   # This is an error.
21047   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21048 Try \`$0 --help' for more information." >&5
21049 echo "$as_me: error: unrecognized option: $1
21050 Try \`$0 --help' for more information." >&2;}
21051    { (exit 1); exit 1; }; } ;;
21052
21053   *) ac_config_targets="$ac_config_targets $1" ;;
21054
21055   esac
21056   shift
21057 done
21058
21059 ac_configure_extra_args=
21060
21061 if $ac_cs_silent; then
21062   exec 6>/dev/null
21063   ac_configure_extra_args="$ac_configure_extra_args --silent"
21064 fi
21065
21066 _ACEOF
21067 cat >>$CONFIG_STATUS <<_ACEOF
21068 if \$ac_cs_recheck; then
21069   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21070   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21071 fi
21072
21073 _ACEOF
21074
21075 cat >>$CONFIG_STATUS <<_ACEOF
21076 #
21077 # INIT-COMMANDS section.
21078 #
21079
21080 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21081
21082
21083 # The HP-UX ksh and POSIX shell print the target directory to stdout
21084 # if CDPATH is set.
21085 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21086
21087 sed_quote_subst='$sed_quote_subst'
21088 double_quote_subst='$double_quote_subst'
21089 delay_variable_subst='$delay_variable_subst'
21090 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21091 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21092 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21093 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21094 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21095 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21096 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21097 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21098 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21099 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21100 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21101 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21102 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21103 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21104 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21105 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21106 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21107 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21108 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21109 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21110 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21111 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21112 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21113 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21114 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21115 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21116 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21117 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21118 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21119 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21120 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21121 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21122 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21123 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21124 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21125 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21126 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21127 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21128 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21129 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21130 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21131 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21132 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21133 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"`'
21134 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21135 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21136 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21137 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21138 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21139 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21140 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21141 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21142 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21143 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21144 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21145 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21146 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21147 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21148 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21149 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21150 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21151 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21152 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21153 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21154 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21155 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21156 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21157 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21158 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21159 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21160 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21161 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21162 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21163 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21164 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21165 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21166 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21167 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21168 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21169 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21170 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21171 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21172 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21173 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21174 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21175 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21176 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21177 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21178 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21179 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21180 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21181 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21182 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21183 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21184 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21185 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21186 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21187 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21188 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21189 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21190 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21191 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21192 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21193 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21194 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21195 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21196 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21197 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21198 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21199 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21200 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21201
21202 LTCC='$LTCC'
21203 LTCFLAGS='$LTCFLAGS'
21204 compiler='$compiler_DEFAULT'
21205
21206 # Quote evaled strings.
21207 for var in SED \
21208 GREP \
21209 EGREP \
21210 FGREP \
21211 LD \
21212 NM \
21213 LN_S \
21214 lt_SP2NL \
21215 lt_NL2SP \
21216 reload_flag \
21217 deplibs_check_method \
21218 file_magic_cmd \
21219 AR \
21220 AR_FLAGS \
21221 STRIP \
21222 RANLIB \
21223 CC \
21224 CFLAGS \
21225 compiler \
21226 lt_cv_sys_global_symbol_pipe \
21227 lt_cv_sys_global_symbol_to_cdecl \
21228 lt_cv_sys_global_symbol_to_c_name_address \
21229 SHELL \
21230 ECHO \
21231 lt_prog_compiler_no_builtin_flag \
21232 lt_prog_compiler_wl \
21233 lt_prog_compiler_pic \
21234 lt_prog_compiler_static \
21235 lt_cv_prog_compiler_c_o \
21236 need_locks \
21237 shrext_cmds \
21238 export_dynamic_flag_spec \
21239 whole_archive_flag_spec \
21240 compiler_needs_object \
21241 with_gnu_ld \
21242 allow_undefined_flag \
21243 no_undefined_flag \
21244 hardcode_libdir_flag_spec \
21245 hardcode_libdir_flag_spec_ld \
21246 hardcode_libdir_separator \
21247 fix_srcfile_path \
21248 exclude_expsyms \
21249 include_expsyms \
21250 file_list_spec \
21251 variables_saved_for_relink \
21252 libname_spec \
21253 library_names_spec \
21254 soname_spec \
21255 finish_eval \
21256 old_striplib \
21257 striplib; do
21258     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21259     *[\\\\\\\`\\"\\\$]*)
21260       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21261       ;;
21262     *)
21263       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21264       ;;
21265     esac
21266 done
21267
21268 # Double-quote double-evaled strings.
21269 for var in reload_cmds \
21270 old_postinstall_cmds \
21271 old_postuninstall_cmds \
21272 old_archive_cmds \
21273 extract_expsyms_cmds \
21274 old_archive_from_new_cmds \
21275 old_archive_from_expsyms_cmds \
21276 archive_cmds \
21277 archive_expsym_cmds \
21278 module_cmds \
21279 module_expsym_cmds \
21280 export_symbols_cmds \
21281 prelink_cmds \
21282 postinstall_cmds \
21283 postuninstall_cmds \
21284 finish_cmds \
21285 sys_lib_search_path_spec \
21286 sys_lib_dlsearch_path_spec; do
21287     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21288     *[\\\\\\\`\\"\\\$]*)
21289       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21290       ;;
21291     *)
21292       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21293       ;;
21294     esac
21295 done
21296
21297 # Fix-up fallback echo if it was mangled by the above quoting rules.
21298 case \$lt_ECHO in
21299 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21300   ;;
21301 esac
21302
21303 ac_aux_dir='$ac_aux_dir'
21304 xsi_shell='$xsi_shell'
21305 lt_shell_append='$lt_shell_append'
21306
21307 # See if we are running on zsh, and set the options which allow our
21308 # commands through without removal of \ escapes INIT.
21309 if test -n "\${ZSH_VERSION+set}" ; then
21310    setopt NO_GLOB_SUBST
21311 fi
21312
21313
21314     PACKAGE='$PACKAGE'
21315     VERSION='$VERSION'
21316     TIMESTAMP='$TIMESTAMP'
21317     RM='$RM'
21318     ofile='$ofile'
21319
21320
21321
21322 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21323     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21324     # from automake.
21325     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21326     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21327     LINGUAS="${LINGUAS-%UNSET%}"
21328
21329
21330 GCC="$GCC"
21331 CC="$CC"
21332 acx_cv_header_stdint="$acx_cv_header_stdint"
21333 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21334 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21335 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21336 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21337 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21338 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21339 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21340 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21341 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21342 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21343 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21344 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21345 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21346
21347
21348
21349 _ACEOF
21350
21351
21352
21353 cat >>$CONFIG_STATUS <<\_ACEOF
21354 for ac_config_target in $ac_config_targets
21355 do
21356   case "$ac_config_target" in
21357   # Handling of arguments.
21358   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21359   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21360   "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21361   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21362   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21363   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21364   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21365   "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21366   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21367   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21368   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21369 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21370    { (exit 1); exit 1; }; };;
21371   esac
21372 done
21373
21374 # If the user did not use the arguments to specify the items to instantiate,
21375 # then the envvar interface is used.  Set only those that are not.
21376 # We use the long form for the default assignment because of an extremely
21377 # bizarre bug on SunOS 4.1.3.
21378 if $ac_need_defaults; then
21379   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21380   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21381   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21382 fi
21383
21384 # Have a temporary directory for convenience.  Make it in the build tree
21385 # simply because there is no reason to put it here, and in addition,
21386 # creating and moving files from /tmp can sometimes cause problems.
21387 # Create a temporary directory, and hook for its removal unless debugging.
21388 $debug ||
21389 {
21390   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21391   trap '{ (exit 1); exit 1; }' 1 2 13 15
21392 }
21393
21394 # Create a (secure) tmp directory for tmp files.
21395
21396 {
21397   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21398   test -n "$tmp" && test -d "$tmp"
21399 }  ||
21400 {
21401   tmp=./confstat$$-$RANDOM
21402   (umask 077 && mkdir $tmp)
21403 } ||
21404 {
21405    echo "$me: cannot create a temporary directory in ." >&2
21406    { (exit 1); exit 1; }
21407 }
21408
21409 _ACEOF
21410
21411 cat >>$CONFIG_STATUS <<_ACEOF
21412
21413 #
21414 # CONFIG_FILES section.
21415 #
21416
21417 # No need to generate the scripts if there are no CONFIG_FILES.
21418 # This happens for instance when ./config.status config.h
21419 if test -n "\$CONFIG_FILES"; then
21420   # Protect against being on the right side of a sed subst in config.status.
21421   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21422    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21423 s,@SHELL@,$SHELL,;t t
21424 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21425 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21426 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21427 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21428 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21429 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21430 s,@exec_prefix@,$exec_prefix,;t t
21431 s,@prefix@,$prefix,;t t
21432 s,@program_transform_name@,$program_transform_name,;t t
21433 s,@bindir@,$bindir,;t t
21434 s,@sbindir@,$sbindir,;t t
21435 s,@libexecdir@,$libexecdir,;t t
21436 s,@datadir@,$datadir,;t t
21437 s,@sysconfdir@,$sysconfdir,;t t
21438 s,@sharedstatedir@,$sharedstatedir,;t t
21439 s,@localstatedir@,$localstatedir,;t t
21440 s,@libdir@,$libdir,;t t
21441 s,@includedir@,$includedir,;t t
21442 s,@oldincludedir@,$oldincludedir,;t t
21443 s,@infodir@,$infodir,;t t
21444 s,@mandir@,$mandir,;t t
21445 s,@build_alias@,$build_alias,;t t
21446 s,@host_alias@,$host_alias,;t t
21447 s,@target_alias@,$target_alias,;t t
21448 s,@DEFS@,$DEFS,;t t
21449 s,@ECHO_C@,$ECHO_C,;t t
21450 s,@ECHO_N@,$ECHO_N,;t t
21451 s,@ECHO_T@,$ECHO_T,;t t
21452 s,@LIBS@,$LIBS,;t t
21453 s,@build@,$build,;t t
21454 s,@build_cpu@,$build_cpu,;t t
21455 s,@build_vendor@,$build_vendor,;t t
21456 s,@build_os@,$build_os,;t t
21457 s,@host@,$host,;t t
21458 s,@host_cpu@,$host_cpu,;t t
21459 s,@host_vendor@,$host_vendor,;t t
21460 s,@host_os@,$host_os,;t t
21461 s,@target@,$target,;t t
21462 s,@target_cpu@,$target_cpu,;t t
21463 s,@target_vendor@,$target_vendor,;t t
21464 s,@target_os@,$target_os,;t t
21465 s,@CC@,$CC,;t t
21466 s,@CFLAGS@,$CFLAGS,;t t
21467 s,@LDFLAGS@,$LDFLAGS,;t t
21468 s,@CPPFLAGS@,$CPPFLAGS,;t t
21469 s,@ac_ct_CC@,$ac_ct_CC,;t t
21470 s,@EXEEXT@,$EXEEXT,;t t
21471 s,@OBJEXT@,$OBJEXT,;t t
21472 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21473 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21474 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21475 s,@CYGPATH_W@,$CYGPATH_W,;t t
21476 s,@PACKAGE@,$PACKAGE,;t t
21477 s,@VERSION@,$VERSION,;t t
21478 s,@ACLOCAL@,$ACLOCAL,;t t
21479 s,@AUTOCONF@,$AUTOCONF,;t t
21480 s,@AUTOMAKE@,$AUTOMAKE,;t t
21481 s,@AUTOHEADER@,$AUTOHEADER,;t t
21482 s,@MAKEINFO@,$MAKEINFO,;t t
21483 s,@install_sh@,$install_sh,;t t
21484 s,@STRIP@,$STRIP,;t t
21485 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21486 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21487 s,@mkdir_p@,$mkdir_p,;t t
21488 s,@AWK@,$AWK,;t t
21489 s,@SET_MAKE@,$SET_MAKE,;t t
21490 s,@am__leading_dot@,$am__leading_dot,;t t
21491 s,@AMTAR@,$AMTAR,;t t
21492 s,@am__tar@,$am__tar,;t t
21493 s,@am__untar@,$am__untar,;t t
21494 s,@DEPDIR@,$DEPDIR,;t t
21495 s,@am__include@,$am__include,;t t
21496 s,@am__quote@,$am__quote,;t t
21497 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21498 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21499 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21500 s,@CCDEPMODE@,$CCDEPMODE,;t t
21501 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21502 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21503 s,@AR@,$AR,;t t
21504 s,@ac_ct_AR@,$ac_ct_AR,;t t
21505 s,@RANLIB@,$RANLIB,;t t
21506 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21507 s,@LIBTOOL@,$LIBTOOL,;t t
21508 s,@SED@,$SED,;t t
21509 s,@EGREP@,$EGREP,;t t
21510 s,@FGREP@,$FGREP,;t t
21511 s,@GREP@,$GREP,;t t
21512 s,@LD@,$LD,;t t
21513 s,@DUMPBIN@,$DUMPBIN,;t t
21514 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21515 s,@NM@,$NM,;t t
21516 s,@LN_S@,$LN_S,;t t
21517 s,@lt_ECHO@,$lt_ECHO,;t t
21518 s,@CPP@,$CPP,;t t
21519 s,@DEBUGDIR@,$DEBUGDIR,;t t
21520 s,@PKGVERSION@,$PKGVERSION,;t t
21521 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21522 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21523 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21524 s,@NO_WERROR@,$NO_WERROR,;t t
21525 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21526 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21527 s,@MAINT@,$MAINT,;t t
21528 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21529 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21530 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21531 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21532 s,@host_noncanonical@,$host_noncanonical,;t t
21533 s,@target_noncanonical@,$target_noncanonical,;t t
21534 s,@bfdlibdir@,$bfdlibdir,;t t
21535 s,@bfdincludedir@,$bfdincludedir,;t t
21536 s,@USE_NLS@,$USE_NLS,;t t
21537 s,@LIBINTL@,$LIBINTL,;t t
21538 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21539 s,@INCINTL@,$INCINTL,;t t
21540 s,@XGETTEXT@,$XGETTEXT,;t t
21541 s,@GMSGFMT@,$GMSGFMT,;t t
21542 s,@POSUB@,$POSUB,;t t
21543 s,@CATALOGS@,$CATALOGS,;t t
21544 s,@DATADIRNAME@,$DATADIRNAME,;t t
21545 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21546 s,@GENCAT@,$GENCAT,;t t
21547 s,@CATOBJEXT@,$CATOBJEXT,;t t
21548 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21549 s,@MSGFMT@,$MSGFMT,;t t
21550 s,@MSGMERGE@,$MSGMERGE,;t t
21551 s,@HDEFINES@,$HDEFINES,;t t
21552 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21553 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
21554 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21555 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21556 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21557 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
21558 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21559 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21560 s,@COREFILE@,$COREFILE,;t t
21561 s,@COREFLAG@,$COREFLAG,;t t
21562 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21563 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21564 s,@TDEFINES@,$TDEFINES,;t t
21565 s,@wordsize@,$wordsize,;t t
21566 s,@bfd64_libs@,$bfd64_libs,;t t
21567 s,@all_backends@,$all_backends,;t t
21568 s,@bfd_backends@,$bfd_backends,;t t
21569 s,@bfd_machines@,$bfd_machines,;t t
21570 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21571 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21572 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21573 s,@tdefaults@,$tdefaults,;t t
21574 s,@datarootdir@,$datarootdir,;t t
21575 s,@docdir@,$docdir,;t t
21576 s,@htmldir@,$htmldir,;t t
21577 s,@LIBOBJS@,$LIBOBJS,;t t
21578 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21579 CEOF
21580
21581 _ACEOF
21582
21583   cat >>$CONFIG_STATUS <<\_ACEOF
21584   # Split the substitutions into bite-sized pieces for seds with
21585   # small command number limits, like on Digital OSF/1 and HP-UX.
21586   ac_max_sed_lines=48
21587   ac_sed_frag=1 # Number of current file.
21588   ac_beg=1 # First line for current file.
21589   ac_end=$ac_max_sed_lines # Line after last line for current file.
21590   ac_more_lines=:
21591   ac_sed_cmds=
21592   while $ac_more_lines; do
21593     if test $ac_beg -gt 1; then
21594       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21595     else
21596       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21597     fi
21598     if test ! -s $tmp/subs.frag; then
21599       ac_more_lines=false
21600     else
21601       # The purpose of the label and of the branching condition is to
21602       # speed up the sed processing (if there are no `@' at all, there
21603       # is no need to browse any of the substitutions).
21604       # These are the two extra sed commands mentioned above.
21605       (echo ':t
21606   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21607       if test -z "$ac_sed_cmds"; then
21608         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21609       else
21610         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21611       fi
21612       ac_sed_frag=`expr $ac_sed_frag + 1`
21613       ac_beg=$ac_end
21614       ac_end=`expr $ac_end + $ac_max_sed_lines`
21615     fi
21616   done
21617   if test -z "$ac_sed_cmds"; then
21618     ac_sed_cmds=cat
21619   fi
21620 fi # test -n "$CONFIG_FILES"
21621
21622 _ACEOF
21623 cat >>$CONFIG_STATUS <<\_ACEOF
21624 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21625   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21626   case $ac_file in
21627   - | *:- | *:-:* ) # input from stdin
21628         cat >$tmp/stdin
21629         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21630         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21631   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21632         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21633   * )   ac_file_in=$ac_file.in ;;
21634   esac
21635
21636   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21637   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21639          X"$ac_file" : 'X\(//\)[^/]' \| \
21640          X"$ac_file" : 'X\(//\)$' \| \
21641          X"$ac_file" : 'X\(/\)' \| \
21642          .     : '\(.\)' 2>/dev/null ||
21643 echo X"$ac_file" |
21644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21645           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21646           /^X\(\/\/\)$/{ s//\1/; q; }
21647           /^X\(\/\).*/{ s//\1/; q; }
21648           s/.*/./; q'`
21649   { if $as_mkdir_p; then
21650     mkdir -p "$ac_dir"
21651   else
21652     as_dir="$ac_dir"
21653     as_dirs=
21654     while test ! -d "$as_dir"; do
21655       as_dirs="$as_dir $as_dirs"
21656       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21658          X"$as_dir" : 'X\(//\)[^/]' \| \
21659          X"$as_dir" : 'X\(//\)$' \| \
21660          X"$as_dir" : 'X\(/\)' \| \
21661          .     : '\(.\)' 2>/dev/null ||
21662 echo X"$as_dir" |
21663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21664           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21665           /^X\(\/\/\)$/{ s//\1/; q; }
21666           /^X\(\/\).*/{ s//\1/; q; }
21667           s/.*/./; q'`
21668     done
21669     test ! -n "$as_dirs" || mkdir $as_dirs
21670   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21671 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21672    { (exit 1); exit 1; }; }; }
21673
21674   ac_builddir=.
21675
21676 if test "$ac_dir" != .; then
21677   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21678   # A "../" for each directory in $ac_dir_suffix.
21679   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21680 else
21681   ac_dir_suffix= ac_top_builddir=
21682 fi
21683
21684 case $srcdir in
21685   .)  # No --srcdir option.  We are building in place.
21686     ac_srcdir=.
21687     if test -z "$ac_top_builddir"; then
21688        ac_top_srcdir=.
21689     else
21690        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21691     fi ;;
21692   [\\/]* | ?:[\\/]* )  # Absolute path.
21693     ac_srcdir=$srcdir$ac_dir_suffix;
21694     ac_top_srcdir=$srcdir ;;
21695   *) # Relative path.
21696     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21697     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21698 esac
21699
21700 # Do not use `cd foo && pwd` to compute absolute paths, because
21701 # the directories may not exist.
21702 case `pwd` in
21703 .) ac_abs_builddir="$ac_dir";;
21704 *)
21705   case "$ac_dir" in
21706   .) ac_abs_builddir=`pwd`;;
21707   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21708   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21709   esac;;
21710 esac
21711 case $ac_abs_builddir in
21712 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21713 *)
21714   case ${ac_top_builddir}. in
21715   .) ac_abs_top_builddir=$ac_abs_builddir;;
21716   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21717   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21718   esac;;
21719 esac
21720 case $ac_abs_builddir in
21721 .) ac_abs_srcdir=$ac_srcdir;;
21722 *)
21723   case $ac_srcdir in
21724   .) ac_abs_srcdir=$ac_abs_builddir;;
21725   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21726   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21727   esac;;
21728 esac
21729 case $ac_abs_builddir in
21730 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21731 *)
21732   case $ac_top_srcdir in
21733   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21734   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21735   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21736   esac;;
21737 esac
21738
21739
21740   case $INSTALL in
21741   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21742   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21743   esac
21744
21745   if test x"$ac_file" != x-; then
21746     { echo "$as_me:$LINENO: creating $ac_file" >&5
21747 echo "$as_me: creating $ac_file" >&6;}
21748     rm -f "$ac_file"
21749   fi
21750   # Let's still pretend it is `configure' which instantiates (i.e., don't
21751   # use $as_me), people would be surprised to read:
21752   #    /* config.h.  Generated by config.status.  */
21753   if test x"$ac_file" = x-; then
21754     configure_input=
21755   else
21756     configure_input="$ac_file.  "
21757   fi
21758   configure_input=$configure_input"Generated from `echo $ac_file_in |
21759                                      sed 's,.*/,,'` by configure."
21760
21761   # First look for the input files in the build tree, otherwise in the
21762   # src tree.
21763   ac_file_inputs=`IFS=:
21764     for f in $ac_file_in; do
21765       case $f in
21766       -) echo $tmp/stdin ;;
21767       [\\/$]*)
21768          # Absolute (can't be DOS-style, as IFS=:)
21769          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21770 echo "$as_me: error: cannot find input file: $f" >&2;}
21771    { (exit 1); exit 1; }; }
21772          echo "$f";;
21773       *) # Relative
21774          if test -f "$f"; then
21775            # Build tree
21776            echo "$f"
21777          elif test -f "$srcdir/$f"; then
21778            # Source tree
21779            echo "$srcdir/$f"
21780          else
21781            # /dev/null tree
21782            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21783 echo "$as_me: error: cannot find input file: $f" >&2;}
21784    { (exit 1); exit 1; }; }
21785          fi;;
21786       esac
21787     done` || { (exit 1); exit 1; }
21788 _ACEOF
21789 cat >>$CONFIG_STATUS <<_ACEOF
21790   sed "$ac_vpsub
21791 $extrasub
21792 _ACEOF
21793 cat >>$CONFIG_STATUS <<\_ACEOF
21794 :t
21795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21796 s,@configure_input@,$configure_input,;t t
21797 s,@srcdir@,$ac_srcdir,;t t
21798 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21799 s,@top_srcdir@,$ac_top_srcdir,;t t
21800 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21801 s,@builddir@,$ac_builddir,;t t
21802 s,@abs_builddir@,$ac_abs_builddir,;t t
21803 s,@top_builddir@,$ac_top_builddir,;t t
21804 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21805 s,@INSTALL@,$ac_INSTALL,;t t
21806 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21807   rm -f $tmp/stdin
21808   if test x"$ac_file" != x-; then
21809     mv $tmp/out $ac_file
21810   else
21811     cat $tmp/out
21812     rm -f $tmp/out
21813   fi
21814
21815 done
21816 _ACEOF
21817 cat >>$CONFIG_STATUS <<\_ACEOF
21818
21819 #
21820 # CONFIG_HEADER section.
21821 #
21822
21823 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21824 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21825 #
21826 # ac_d sets the value in "#define NAME VALUE" lines.
21827 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21828 ac_dB='[         ].*$,\1#\2'
21829 ac_dC=' '
21830 ac_dD=',;t'
21831 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21832 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21833 ac_uB='$,\1#\2define\3'
21834 ac_uC=' '
21835 ac_uD=',;t'
21836
21837 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21838   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21839   case $ac_file in
21840   - | *:- | *:-:* ) # input from stdin
21841         cat >$tmp/stdin
21842         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21843         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21844   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21845         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21846   * )   ac_file_in=$ac_file.in ;;
21847   esac
21848
21849   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21850 echo "$as_me: creating $ac_file" >&6;}
21851
21852   # First look for the input files in the build tree, otherwise in the
21853   # src tree.
21854   ac_file_inputs=`IFS=:
21855     for f in $ac_file_in; do
21856       case $f in
21857       -) echo $tmp/stdin ;;
21858       [\\/$]*)
21859          # Absolute (can't be DOS-style, as IFS=:)
21860          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21861 echo "$as_me: error: cannot find input file: $f" >&2;}
21862    { (exit 1); exit 1; }; }
21863          # Do quote $f, to prevent DOS paths from being IFS'd.
21864          echo "$f";;
21865       *) # Relative
21866          if test -f "$f"; then
21867            # Build tree
21868            echo "$f"
21869          elif test -f "$srcdir/$f"; then
21870            # Source tree
21871            echo "$srcdir/$f"
21872          else
21873            # /dev/null tree
21874            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21875 echo "$as_me: error: cannot find input file: $f" >&2;}
21876    { (exit 1); exit 1; }; }
21877          fi;;
21878       esac
21879     done` || { (exit 1); exit 1; }
21880   # Remove the trailing spaces.
21881   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21882
21883 _ACEOF
21884
21885 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21886 # `conftest.undefs', that substitutes the proper values into
21887 # config.h.in to produce config.h.  The first handles `#define'
21888 # templates, and the second `#undef' templates.
21889 # And first: Protect against being on the right side of a sed subst in
21890 # config.status.  Protect against being in an unquoted here document
21891 # in config.status.
21892 rm -f conftest.defines conftest.undefs
21893 # Using a here document instead of a string reduces the quoting nightmare.
21894 # Putting comments in sed scripts is not portable.
21895 #
21896 # `end' is used to avoid that the second main sed command (meant for
21897 # 0-ary CPP macros) applies to n-ary macro definitions.
21898 # See the Autoconf documentation for `clear'.
21899 cat >confdef2sed.sed <<\_ACEOF
21900 s/[\\&,]/\\&/g
21901 s,[\\$`],\\&,g
21902 t clear
21903 : clear
21904 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21905 t end
21906 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21907 : end
21908 _ACEOF
21909 # If some macros were called several times there might be several times
21910 # the same #defines, which is useless.  Nevertheless, we may not want to
21911 # sort them, since we want the *last* AC-DEFINE to be honored.
21912 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21913 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21914 rm -f confdef2sed.sed
21915
21916 # This sed command replaces #undef with comments.  This is necessary, for
21917 # example, in the case of _POSIX_SOURCE, which is predefined and required
21918 # on some systems where configure will not decide to define it.
21919 cat >>conftest.undefs <<\_ACEOF
21920 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21921 _ACEOF
21922
21923 # Break up conftest.defines because some shells have a limit on the size
21924 # of here documents, and old seds have small limits too (100 cmds).
21925 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21926 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21927 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21928 echo '  :' >>$CONFIG_STATUS
21929 rm -f conftest.tail
21930 while grep . conftest.defines >/dev/null
21931 do
21932   # Write a limited-size here document to $tmp/defines.sed.
21933   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21934   # Speed up: don't consider the non `#define' lines.
21935   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21936   # Work around the forget-to-reset-the-flag bug.
21937   echo 't clr' >>$CONFIG_STATUS
21938   echo ': clr' >>$CONFIG_STATUS
21939   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21940   echo 'CEOF
21941   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21942   rm -f $tmp/in
21943   mv $tmp/out $tmp/in
21944 ' >>$CONFIG_STATUS
21945   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21946   rm -f conftest.defines
21947   mv conftest.tail conftest.defines
21948 done
21949 rm -f conftest.defines
21950 echo '  fi # grep' >>$CONFIG_STATUS
21951 echo >>$CONFIG_STATUS
21952
21953 # Break up conftest.undefs because some shells have a limit on the size
21954 # of here documents, and old seds have small limits too (100 cmds).
21955 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21956 rm -f conftest.tail
21957 while grep . conftest.undefs >/dev/null
21958 do
21959   # Write a limited-size here document to $tmp/undefs.sed.
21960   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21961   # Speed up: don't consider the non `#undef'
21962   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21963   # Work around the forget-to-reset-the-flag bug.
21964   echo 't clr' >>$CONFIG_STATUS
21965   echo ': clr' >>$CONFIG_STATUS
21966   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21967   echo 'CEOF
21968   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21969   rm -f $tmp/in
21970   mv $tmp/out $tmp/in
21971 ' >>$CONFIG_STATUS
21972   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21973   rm -f conftest.undefs
21974   mv conftest.tail conftest.undefs
21975 done
21976 rm -f conftest.undefs
21977
21978 cat >>$CONFIG_STATUS <<\_ACEOF
21979   # Let's still pretend it is `configure' which instantiates (i.e., don't
21980   # use $as_me), people would be surprised to read:
21981   #    /* config.h.  Generated by config.status.  */
21982   if test x"$ac_file" = x-; then
21983     echo "/* Generated by configure.  */" >$tmp/config.h
21984   else
21985     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21986   fi
21987   cat $tmp/in >>$tmp/config.h
21988   rm -f $tmp/in
21989   if test x"$ac_file" != x-; then
21990     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21991       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21992 echo "$as_me: $ac_file is unchanged" >&6;}
21993     else
21994       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21996          X"$ac_file" : 'X\(//\)[^/]' \| \
21997          X"$ac_file" : 'X\(//\)$' \| \
21998          X"$ac_file" : 'X\(/\)' \| \
21999          .     : '\(.\)' 2>/dev/null ||
22000 echo X"$ac_file" |
22001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22002           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22003           /^X\(\/\/\)$/{ s//\1/; q; }
22004           /^X\(\/\).*/{ s//\1/; q; }
22005           s/.*/./; q'`
22006       { if $as_mkdir_p; then
22007     mkdir -p "$ac_dir"
22008   else
22009     as_dir="$ac_dir"
22010     as_dirs=
22011     while test ! -d "$as_dir"; do
22012       as_dirs="$as_dir $as_dirs"
22013       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22015          X"$as_dir" : 'X\(//\)[^/]' \| \
22016          X"$as_dir" : 'X\(//\)$' \| \
22017          X"$as_dir" : 'X\(/\)' \| \
22018          .     : '\(.\)' 2>/dev/null ||
22019 echo X"$as_dir" |
22020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22021           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22022           /^X\(\/\/\)$/{ s//\1/; q; }
22023           /^X\(\/\).*/{ s//\1/; q; }
22024           s/.*/./; q'`
22025     done
22026     test ! -n "$as_dirs" || mkdir $as_dirs
22027   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22029    { (exit 1); exit 1; }; }; }
22030
22031       rm -f $ac_file
22032       mv $tmp/config.h $ac_file
22033     fi
22034   else
22035     cat $tmp/config.h
22036     rm -f $tmp/config.h
22037   fi
22038 # Compute $ac_file's index in $config_headers.
22039 _am_stamp_count=1
22040 for _am_header in $config_headers :; do
22041   case $_am_header in
22042     $ac_file | $ac_file:* )
22043       break ;;
22044     * )
22045       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22046   esac
22047 done
22048 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22049 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22050          X$ac_file : 'X\(//\)[^/]' \| \
22051          X$ac_file : 'X\(//\)$' \| \
22052          X$ac_file : 'X\(/\)' \| \
22053          .     : '\(.\)' 2>/dev/null ||
22054 echo X$ac_file |
22055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22056           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22057           /^X\(\/\/\)$/{ s//\1/; q; }
22058           /^X\(\/\).*/{ s//\1/; q; }
22059           s/.*/./; q'`/stamp-h$_am_stamp_count
22060 done
22061 _ACEOF
22062 cat >>$CONFIG_STATUS <<\_ACEOF
22063
22064 #
22065 # CONFIG_COMMANDS section.
22066 #
22067 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22068   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22069   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22070   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22071 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22072          X"$ac_dest" : 'X\(//\)[^/]' \| \
22073          X"$ac_dest" : 'X\(//\)$' \| \
22074          X"$ac_dest" : 'X\(/\)' \| \
22075          .     : '\(.\)' 2>/dev/null ||
22076 echo X"$ac_dest" |
22077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22079           /^X\(\/\/\)$/{ s//\1/; q; }
22080           /^X\(\/\).*/{ s//\1/; q; }
22081           s/.*/./; q'`
22082   { if $as_mkdir_p; then
22083     mkdir -p "$ac_dir"
22084   else
22085     as_dir="$ac_dir"
22086     as_dirs=
22087     while test ! -d "$as_dir"; do
22088       as_dirs="$as_dir $as_dirs"
22089       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22091          X"$as_dir" : 'X\(//\)[^/]' \| \
22092          X"$as_dir" : 'X\(//\)$' \| \
22093          X"$as_dir" : 'X\(/\)' \| \
22094          .     : '\(.\)' 2>/dev/null ||
22095 echo X"$as_dir" |
22096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22097           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22098           /^X\(\/\/\)$/{ s//\1/; q; }
22099           /^X\(\/\).*/{ s//\1/; q; }
22100           s/.*/./; q'`
22101     done
22102     test ! -n "$as_dirs" || mkdir $as_dirs
22103   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22105    { (exit 1); exit 1; }; }; }
22106
22107   ac_builddir=.
22108
22109 if test "$ac_dir" != .; then
22110   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22111   # A "../" for each directory in $ac_dir_suffix.
22112   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22113 else
22114   ac_dir_suffix= ac_top_builddir=
22115 fi
22116
22117 case $srcdir in
22118   .)  # No --srcdir option.  We are building in place.
22119     ac_srcdir=.
22120     if test -z "$ac_top_builddir"; then
22121        ac_top_srcdir=.
22122     else
22123        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22124     fi ;;
22125   [\\/]* | ?:[\\/]* )  # Absolute path.
22126     ac_srcdir=$srcdir$ac_dir_suffix;
22127     ac_top_srcdir=$srcdir ;;
22128   *) # Relative path.
22129     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22130     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22131 esac
22132
22133 # Do not use `cd foo && pwd` to compute absolute paths, because
22134 # the directories may not exist.
22135 case `pwd` in
22136 .) ac_abs_builddir="$ac_dir";;
22137 *)
22138   case "$ac_dir" in
22139   .) ac_abs_builddir=`pwd`;;
22140   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22141   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22142   esac;;
22143 esac
22144 case $ac_abs_builddir in
22145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22146 *)
22147   case ${ac_top_builddir}. in
22148   .) ac_abs_top_builddir=$ac_abs_builddir;;
22149   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22150   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22151   esac;;
22152 esac
22153 case $ac_abs_builddir in
22154 .) ac_abs_srcdir=$ac_srcdir;;
22155 *)
22156   case $ac_srcdir in
22157   .) ac_abs_srcdir=$ac_abs_builddir;;
22158   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22159   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22160   esac;;
22161 esac
22162 case $ac_abs_builddir in
22163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22164 *)
22165   case $ac_top_srcdir in
22166   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22167   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22168   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22169   esac;;
22170 esac
22171
22172
22173   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22174 echo "$as_me: executing $ac_dest commands" >&6;}
22175   case $ac_dest in
22176     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22177   # Strip MF so we end up with the name of the file.
22178   mf=`echo "$mf" | sed -e 's/:.*$//'`
22179   # Check whether this is an Automake generated Makefile or not.
22180   # We used to match only the files named `Makefile.in', but
22181   # some people rename them; so instead we look at the file content.
22182   # Grep'ing the first line is not enough: some people post-process
22183   # each Makefile.in and add a new line on top of each file to say so.
22184   # So let's grep whole file.
22185   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22186     dirpart=`(dirname "$mf") 2>/dev/null ||
22187 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22188          X"$mf" : 'X\(//\)[^/]' \| \
22189          X"$mf" : 'X\(//\)$' \| \
22190          X"$mf" : 'X\(/\)' \| \
22191          .     : '\(.\)' 2>/dev/null ||
22192 echo X"$mf" |
22193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22194           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22195           /^X\(\/\/\)$/{ s//\1/; q; }
22196           /^X\(\/\).*/{ s//\1/; q; }
22197           s/.*/./; q'`
22198   else
22199     continue
22200   fi
22201   # Extract the definition of DEPDIR, am__include, and am__quote
22202   # from the Makefile without running `make'.
22203   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22204   test -z "$DEPDIR" && continue
22205   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22206   test -z "am__include" && continue
22207   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22208   # When using ansi2knr, U may be empty or an underscore; expand it
22209   U=`sed -n 's/^U = //p' < "$mf"`
22210   # Find all dependency output files, they are included files with
22211   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22212   # simplest approach to changing $(DEPDIR) to its actual value in the
22213   # expansion.
22214   for file in `sed -n "
22215     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22216        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22217     # Make sure the directory exists.
22218     test -f "$dirpart/$file" && continue
22219     fdir=`(dirname "$file") 2>/dev/null ||
22220 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22221          X"$file" : 'X\(//\)[^/]' \| \
22222          X"$file" : 'X\(//\)$' \| \
22223          X"$file" : 'X\(/\)' \| \
22224          .     : '\(.\)' 2>/dev/null ||
22225 echo X"$file" |
22226     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22227           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22228           /^X\(\/\/\)$/{ s//\1/; q; }
22229           /^X\(\/\).*/{ s//\1/; q; }
22230           s/.*/./; q'`
22231     { if $as_mkdir_p; then
22232     mkdir -p $dirpart/$fdir
22233   else
22234     as_dir=$dirpart/$fdir
22235     as_dirs=
22236     while test ! -d "$as_dir"; do
22237       as_dirs="$as_dir $as_dirs"
22238       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22240          X"$as_dir" : 'X\(//\)[^/]' \| \
22241          X"$as_dir" : 'X\(//\)$' \| \
22242          X"$as_dir" : 'X\(/\)' \| \
22243          .     : '\(.\)' 2>/dev/null ||
22244 echo X"$as_dir" |
22245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22246           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22247           /^X\(\/\/\)$/{ s//\1/; q; }
22248           /^X\(\/\).*/{ s//\1/; q; }
22249           s/.*/./; q'`
22250     done
22251     test ! -n "$as_dirs" || mkdir $as_dirs
22252   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22253 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22254    { (exit 1); exit 1; }; }; }
22255
22256     # echo "creating $dirpart/$file"
22257     echo '# dummy' > "$dirpart/$file"
22258   done
22259 done
22260  ;;
22261     libtool )
22262
22263     # See if we are running on zsh, and set the options which allow our
22264     # commands through without removal of \ escapes.
22265     if test -n "${ZSH_VERSION+set}" ; then
22266       setopt NO_GLOB_SUBST
22267     fi
22268
22269     cfgfile="${ofile}T"
22270     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22271     $RM "$cfgfile"
22272
22273     cat <<_LT_EOF >> "$cfgfile"
22274 #! $SHELL
22275
22276 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22277 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22279 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22280 #
22281 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22282 # 2006, 2007 Free Software Foundation, Inc.
22283 #
22284 # This file is part of GNU Libtool:
22285 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22286 #
22287 # This program is free software; you can redistribute it and/or modify
22288 # it under the terms of the GNU General Public License as published by
22289 # the Free Software Foundation; either version 2 of the License, or
22290 # (at your option) any later version.
22291 #
22292 # This program is distributed in the hope that it will be useful, but
22293 # WITHOUT ANY WARRANTY; without even the implied warranty of
22294 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22295 # General Public License for more details.
22296 #
22297 # You should have received a copy of the GNU General Public License
22298 # along with this program; if not, a copy can be downloaded from
22299 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22300 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22301 # MA 02110-1301, USA.
22302 #
22303 # As a special exception to the GNU General Public License, if you
22304 # distribute this file as part of a program that contains a
22305 # configuration script generated by Autoconf, you may include it under
22306 # the same distribution terms that you use for the rest of that program.
22307
22308
22309 # The names of the tagged configurations supported by this script.
22310 available_tags=""
22311
22312 # ### BEGIN LIBTOOL CONFIG
22313
22314 # Whether or not to build shared libraries.
22315 build_libtool_libs=$enable_shared
22316
22317 # Which release of libtool.m4 was used?
22318 macro_version=$macro_version
22319 macro_revision=$macro_revision
22320
22321 # Whether or not to build static libraries.
22322 build_old_libs=$enable_static
22323
22324 # What type of objects to build.
22325 pic_mode=$pic_mode
22326
22327 # Whether or not to optimize for fast installation.
22328 fast_install=$enable_fast_install
22329
22330 # The host system.
22331 host_alias=$host_alias
22332 host=$host
22333 host_os=$host_os
22334
22335 # The build system.
22336 build_alias=$build_alias
22337 build=$build
22338 build_os=$build_os
22339
22340 # A sed program that does not truncate output.
22341 SED=$lt_SED
22342
22343 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22344 Xsed="\$SED -e 1s/^X//"
22345
22346 # A grep program that handles long lines.
22347 GREP=$lt_GREP
22348
22349 # An ERE matcher.
22350 EGREP=$lt_EGREP
22351
22352 # A literal string matcher.
22353 FGREP=$lt_FGREP
22354
22355 # A BSD- or MS-compatible name lister.
22356 NM=$lt_NM
22357
22358 # Whether we need soft or hard links.
22359 LN_S=$lt_LN_S
22360
22361 # What is the maximum length of a command?
22362 max_cmd_len=$max_cmd_len
22363
22364 # Object file suffix (normally "o").
22365 objext=$ac_objext
22366
22367 # Executable file suffix (normally "").
22368 exeext=$exeext
22369
22370 # whether the shell understands "unset".
22371 lt_unset=$lt_unset
22372
22373 # turn spaces into newlines.
22374 SP2NL=$lt_lt_SP2NL
22375
22376 # turn newlines into spaces.
22377 NL2SP=$lt_lt_NL2SP
22378
22379 # How to create reloadable object files.
22380 reload_flag=$lt_reload_flag
22381 reload_cmds=$lt_reload_cmds
22382
22383 # Method to check whether dependent libraries are shared objects.
22384 deplibs_check_method=$lt_deplibs_check_method
22385
22386 # Command to use when deplibs_check_method == "file_magic".
22387 file_magic_cmd=$lt_file_magic_cmd
22388
22389 # The archiver.
22390 AR=$lt_AR
22391 AR_FLAGS=$lt_AR_FLAGS
22392
22393 # A symbol stripping program.
22394 STRIP=$lt_STRIP
22395
22396 # Commands used to install an old-style archive.
22397 RANLIB=$lt_RANLIB
22398 old_postinstall_cmds=$lt_old_postinstall_cmds
22399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22400
22401 # A C compiler.
22402 LTCC=$lt_CC
22403
22404 # LTCC compiler flags.
22405 LTCFLAGS=$lt_CFLAGS
22406
22407 # Take the output of nm and produce a listing of raw symbols and C names.
22408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22409
22410 # Transform the output of nm in a proper C declaration.
22411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22412
22413 # Transform the output of nm in a C name address pair.
22414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22415
22416 # The name of the directory that contains temporary libtool files.
22417 objdir=$objdir
22418
22419 # Shell to use when invoking shell scripts.
22420 SHELL=$lt_SHELL
22421
22422 # An echo program that does not interpret backslashes.
22423 ECHO=$lt_ECHO
22424
22425 # Used to examine libraries when file_magic_cmd begins with "file".
22426 MAGIC_CMD=$MAGIC_CMD
22427
22428 # Must we lock files when doing compilation?
22429 need_locks=$lt_need_locks
22430
22431 # Old archive suffix (normally "a").
22432 libext=$libext
22433
22434 # Shared library suffix (normally ".so").
22435 shrext_cmds=$lt_shrext_cmds
22436
22437 # The commands to extract the exported symbol list from a shared archive.
22438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22439
22440 # Variables whose values should be saved in libtool wrapper scripts and
22441 # restored at link time.
22442 variables_saved_for_relink=$lt_variables_saved_for_relink
22443
22444 # Do we need the "lib" prefix for modules?
22445 need_lib_prefix=$need_lib_prefix
22446
22447 # Do we need a version for libraries?
22448 need_version=$need_version
22449
22450 # Library versioning type.
22451 version_type=$version_type
22452
22453 # Shared library runtime path variable.
22454 runpath_var=$runpath_var
22455
22456 # Shared library path variable.
22457 shlibpath_var=$shlibpath_var
22458
22459 # Is shlibpath searched before the hard-coded library search path?
22460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22461
22462 # Format of library name prefix.
22463 libname_spec=$lt_libname_spec
22464
22465 # List of archive names.  First name is the real one, the rest are links.
22466 # The last name is the one that the linker finds with -lNAME
22467 library_names_spec=$lt_library_names_spec
22468
22469 # The coded name of the library, if different from the real name.
22470 soname_spec=$lt_soname_spec
22471
22472 # Command to use after installation of a shared archive.
22473 postinstall_cmds=$lt_postinstall_cmds
22474
22475 # Command to use after uninstallation of a shared archive.
22476 postuninstall_cmds=$lt_postuninstall_cmds
22477
22478 # Commands used to finish a libtool library installation in a directory.
22479 finish_cmds=$lt_finish_cmds
22480
22481 # As "finish_cmds", except a single script fragment to be evaled but
22482 # not shown.
22483 finish_eval=$lt_finish_eval
22484
22485 # Whether we should hardcode library paths into libraries.
22486 hardcode_into_libs=$hardcode_into_libs
22487
22488 # Compile-time system search path for libraries.
22489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22490
22491 # Run-time system search path for libraries.
22492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22493
22494 # Whether dlopen is supported.
22495 dlopen_support=$enable_dlopen
22496
22497 # Whether dlopen of programs is supported.
22498 dlopen_self=$enable_dlopen_self
22499
22500 # Whether dlopen of statically linked programs is supported.
22501 dlopen_self_static=$enable_dlopen_self_static
22502
22503 # Commands to strip libraries.
22504 old_striplib=$lt_old_striplib
22505 striplib=$lt_striplib
22506
22507
22508 # The linker used to build libraries.
22509 LD=$lt_LD
22510
22511 # Commands used to build an old-style archive.
22512 old_archive_cmds=$lt_old_archive_cmds
22513
22514 # A language specific compiler.
22515 CC=$lt_compiler
22516
22517 # Is the compiler the GNU compiler?
22518 with_gcc=$GCC
22519
22520 # Compiler flag to turn off builtin functions.
22521 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22522
22523 # How to pass a linker flag through the compiler.
22524 wl=$lt_lt_prog_compiler_wl
22525
22526 # Additional compiler flags for building library objects.
22527 pic_flag=$lt_lt_prog_compiler_pic
22528
22529 # Compiler flag to prevent dynamic linking.
22530 link_static_flag=$lt_lt_prog_compiler_static
22531
22532 # Does compiler simultaneously support -c and -o options?
22533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22534
22535 # Whether or not to add -lc for building shared libraries.
22536 build_libtool_need_lc=$archive_cmds_need_lc
22537
22538 # Whether or not to disallow shared libs when runtime libs are static.
22539 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22540
22541 # Compiler flag to allow reflexive dlopens.
22542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22543
22544 # Compiler flag to generate shared objects directly from archives.
22545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22546
22547 # Whether the compiler copes with passing no objects directly.
22548 compiler_needs_object=$lt_compiler_needs_object
22549
22550 # Create an old-style archive from a shared archive.
22551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22552
22553 # Create a temporary old-style archive to link instead of a shared archive.
22554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22555
22556 # Commands used to build a shared archive.
22557 archive_cmds=$lt_archive_cmds
22558 archive_expsym_cmds=$lt_archive_expsym_cmds
22559
22560 # Commands used to build a loadable module if different from building
22561 # a shared archive.
22562 module_cmds=$lt_module_cmds
22563 module_expsym_cmds=$lt_module_expsym_cmds
22564
22565 # Whether we are building with GNU ld or not.
22566 with_gnu_ld=$lt_with_gnu_ld
22567
22568 # Flag that allows shared libraries with undefined symbols to be built.
22569 allow_undefined_flag=$lt_allow_undefined_flag
22570
22571 # Flag that enforces no undefined symbols.
22572 no_undefined_flag=$lt_no_undefined_flag
22573
22574 # Flag to hardcode \$libdir into a binary during linking.
22575 # This must work even if \$libdir does not exist
22576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22577
22578 # If ld is used when linking, flag to hardcode \$libdir into a binary
22579 # during linking.  This must work even if \$libdir does not exist.
22580 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22581
22582 # Whether we need a single "-rpath" flag with a separated argument.
22583 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22584
22585 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22586 # DIR into the resulting binary.
22587 hardcode_direct=$hardcode_direct
22588
22589 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22590 # DIR into the resulting binary and the resulting library dependency is
22591 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22592 # library is relocated.
22593 hardcode_direct_absolute=$hardcode_direct_absolute
22594
22595 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22596 # into the resulting binary.
22597 hardcode_minus_L=$hardcode_minus_L
22598
22599 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22600 # into the resulting binary.
22601 hardcode_shlibpath_var=$hardcode_shlibpath_var
22602
22603 # Set to "yes" if building a shared library automatically hardcodes DIR
22604 # into the library and all subsequent libraries and executables linked
22605 # against it.
22606 hardcode_automatic=$hardcode_automatic
22607
22608 # Set to yes if linker adds runtime paths of dependent libraries
22609 # to runtime path list.
22610 inherit_rpath=$inherit_rpath
22611
22612 # Whether libtool must link a program against all its dependency libraries.
22613 link_all_deplibs=$link_all_deplibs
22614
22615 # Fix the shell variable \$srcfile for the compiler.
22616 fix_srcfile_path=$lt_fix_srcfile_path
22617
22618 # Set to "yes" if exported symbols are required.
22619 always_export_symbols=$always_export_symbols
22620
22621 # The commands to list exported symbols.
22622 export_symbols_cmds=$lt_export_symbols_cmds
22623
22624 # Symbols that should not be listed in the preloaded symbols.
22625 exclude_expsyms=$lt_exclude_expsyms
22626
22627 # Symbols that must always be exported.
22628 include_expsyms=$lt_include_expsyms
22629
22630 # Commands necessary for linking programs (against libraries) with templates.
22631 prelink_cmds=$lt_prelink_cmds
22632
22633 # Specify filename containing input files.
22634 file_list_spec=$lt_file_list_spec
22635
22636 # How to hardcode a shared library path into an executable.
22637 hardcode_action=$hardcode_action
22638
22639 # ### END LIBTOOL CONFIG
22640
22641 _LT_EOF
22642
22643   case $host_os in
22644   aix3*)
22645     cat <<\_LT_EOF >> "$cfgfile"
22646 # AIX sometimes has problems with the GCC collect2 program.  For some
22647 # reason, if we set the COLLECT_NAMES environment variable, the problems
22648 # vanish in a puff of smoke.
22649 if test "X${COLLECT_NAMES+set}" != Xset; then
22650   COLLECT_NAMES=
22651   export COLLECT_NAMES
22652 fi
22653 _LT_EOF
22654     ;;
22655   esac
22656
22657
22658 ltmain="$ac_aux_dir/ltmain.sh"
22659
22660
22661   # We use sed instead of cat because bash on DJGPP gets confused if
22662   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22663   # text mode, it properly converts lines to CR/LF.  This bash problem
22664   # is reportedly fixed, but why not run on old versions too?
22665   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22666     || (rm -f "$cfgfile"; exit 1)
22667
22668   case $xsi_shell in
22669   yes)
22670     cat << \_LT_EOF >> "$cfgfile"
22671 # func_dirname file append nondir_replacement
22672 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22673 # otherwise set result to NONDIR_REPLACEMENT.
22674 func_dirname ()
22675 {
22676   case ${1} in
22677     */*) func_dirname_result="${1%/*}${2}" ;;
22678     *  ) func_dirname_result="${3}" ;;
22679   esac
22680 }
22681
22682 # func_basename file
22683 func_basename ()
22684 {
22685   func_basename_result="${1##*/}"
22686 }
22687
22688 # func_stripname prefix suffix name
22689 # strip PREFIX and SUFFIX off of NAME.
22690 # PREFIX and SUFFIX must not contain globbing or regex special
22691 # characters, hashes, percent signs, but SUFFIX may contain a leading
22692 # dot (in which case that matches only a dot).
22693 func_stripname ()
22694 {
22695   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22696   # positional parameters, so assign one to ordinary parameter first.
22697   func_stripname_result=${3}
22698   func_stripname_result=${func_stripname_result#"${1}"}
22699   func_stripname_result=${func_stripname_result%"${2}"}
22700 }
22701
22702 # func_opt_split
22703 func_opt_split ()
22704 {
22705   func_opt_split_opt=${1%%=*}
22706   func_opt_split_arg=${1#*=}
22707 }
22708
22709 # func_lo2o object
22710 func_lo2o ()
22711 {
22712   case ${1} in
22713     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22714     *)    func_lo2o_result=${1} ;;
22715   esac
22716 }
22717 _LT_EOF
22718     ;;
22719   *) # Bourne compatible functions.
22720     cat << \_LT_EOF >> "$cfgfile"
22721 # func_dirname file append nondir_replacement
22722 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22723 # otherwise set result to NONDIR_REPLACEMENT.
22724 func_dirname ()
22725 {
22726   # Extract subdirectory from the argument.
22727   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22728   if test "X$func_dirname_result" = "X${1}"; then
22729     func_dirname_result="${3}"
22730   else
22731     func_dirname_result="$func_dirname_result${2}"
22732   fi
22733 }
22734
22735 # func_basename file
22736 func_basename ()
22737 {
22738   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22739 }
22740
22741 # func_stripname prefix suffix name
22742 # strip PREFIX and SUFFIX off of NAME.
22743 # PREFIX and SUFFIX must not contain globbing or regex special
22744 # characters, hashes, percent signs, but SUFFIX may contain a leading
22745 # dot (in which case that matches only a dot).
22746 # func_strip_suffix prefix name
22747 func_stripname ()
22748 {
22749   case ${2} in
22750     .*) func_stripname_result=`$ECHO "X${3}" \
22751            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22752     *)  func_stripname_result=`$ECHO "X${3}" \
22753            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22754   esac
22755 }
22756
22757 # sed scripts:
22758 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22759 my_sed_long_arg='1s/^-[^=]*=//'
22760
22761 # func_opt_split
22762 func_opt_split ()
22763 {
22764   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22765   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22766 }
22767
22768 # func_lo2o object
22769 func_lo2o ()
22770 {
22771   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22772 }
22773 _LT_EOF
22774 esac
22775
22776 case $lt_shell_append in
22777   yes)
22778     cat << \_LT_EOF >> "$cfgfile"
22779
22780 # func_append var value
22781 # Append VALUE to the end of shell variable VAR.
22782 func_append ()
22783 {
22784   eval "$1+=\$2"
22785 }
22786 _LT_EOF
22787     ;;
22788   *)
22789     cat << \_LT_EOF >> "$cfgfile"
22790
22791 # func_append var value
22792 # Append VALUE to the end of shell variable VAR.
22793 func_append ()
22794 {
22795   eval "$1=\$$1\$2"
22796 }
22797 _LT_EOF
22798     ;;
22799   esac
22800
22801
22802   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22803     || (rm -f "$cfgfile"; exit 1)
22804
22805   mv -f "$cfgfile" "$ofile" ||
22806     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22807   chmod +x "$ofile"
22808
22809  ;;
22810     default-1 )
22811     for ac_file in $CONFIG_FILES; do
22812       # Support "outfile[:infile[:infile...]]"
22813       case "$ac_file" in
22814         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22815       esac
22816       # PO directories have a Makefile.in generated from Makefile.in.in.
22817       case "$ac_file" in */Makefile.in)
22818         # Adjust a relative srcdir.
22819         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22820         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22821         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22822         # In autoconf-2.13 it is called $ac_given_srcdir.
22823         # In autoconf-2.50 it is called $srcdir.
22824         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22825         case "$ac_given_srcdir" in
22826           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22827           /*) top_srcdir="$ac_given_srcdir" ;;
22828           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22829         esac
22830         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22831           rm -f "$ac_dir/POTFILES"
22832           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22833           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22834           POMAKEFILEDEPS="POTFILES.in"
22835           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22836           # on $ac_dir but don't depend on user-specified configuration
22837           # parameters.
22838           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22839             # The LINGUAS file contains the set of available languages.
22840             if test -n "$OBSOLETE_ALL_LINGUAS"; then
22841               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22842             fi
22843             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22844             # Hide the ALL_LINGUAS assigment from automake.
22845             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22846             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22847           else
22848             # The set of available languages was given in configure.in.
22849             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22850           fi
22851           case "$ac_given_srcdir" in
22852             .) srcdirpre= ;;
22853             *) srcdirpre='$(srcdir)/' ;;
22854           esac
22855           POFILES=
22856           GMOFILES=
22857           UPDATEPOFILES=
22858           DUMMYPOFILES=
22859           for lang in $ALL_LINGUAS; do
22860             POFILES="$POFILES $srcdirpre$lang.po"
22861             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22862             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22863             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22864           done
22865           # CATALOGS depends on both $ac_dir and the user's LINGUAS
22866           # environment variable.
22867           INST_LINGUAS=
22868           if test -n "$ALL_LINGUAS"; then
22869             for presentlang in $ALL_LINGUAS; do
22870               useit=no
22871               if test "%UNSET%" != "$LINGUAS"; then
22872                 desiredlanguages="$LINGUAS"
22873               else
22874                 desiredlanguages="$ALL_LINGUAS"
22875               fi
22876               for desiredlang in $desiredlanguages; do
22877                 # Use the presentlang catalog if desiredlang is
22878                 #   a. equal to presentlang, or
22879                 #   b. a variant of presentlang (because in this case,
22880                 #      presentlang can be used as a fallback for messages
22881                 #      which are not translated in the desiredlang catalog).
22882                 case "$desiredlang" in
22883                   "$presentlang"*) useit=yes;;
22884                 esac
22885               done
22886               if test $useit = yes; then
22887                 INST_LINGUAS="$INST_LINGUAS $presentlang"
22888               fi
22889             done
22890           fi
22891           CATALOGS=
22892           if test -n "$INST_LINGUAS"; then
22893             for lang in $INST_LINGUAS; do
22894               CATALOGS="$CATALOGS $lang.gmo"
22895             done
22896           fi
22897           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22898           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"
22899           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22900             if test -f "$f"; then
22901               case "$f" in
22902                 *.orig | *.bak | *~) ;;
22903                 *) cat "$f" >> "$ac_dir/Makefile" ;;
22904               esac
22905             fi
22906           done
22907         fi
22908         ;;
22909       esac
22910     done ;;
22911     bfd_stdint.h )
22912 if test "$GCC" = yes; then
22913   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22914 else
22915   echo "/* generated for $CC */" > tmp-stdint.h
22916 fi
22917
22918 sed 's/^ *//' >> tmp-stdint.h <<EOF
22919
22920   #ifndef GCC_GENERATED_STDINT_H
22921   #define GCC_GENERATED_STDINT_H 1
22922
22923   #include <sys/types.h>
22924 EOF
22925
22926 if test "$acx_cv_header_stdint" != stdint.h; then
22927   echo "#include <stddef.h>" >> tmp-stdint.h
22928 fi
22929 if test "$acx_cv_header_stdint" != stddef.h; then
22930   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22931 fi
22932
22933 sed 's/^ *//' >> tmp-stdint.h <<EOF
22934   /* glibc uses these symbols as guards to prevent redefinitions.  */
22935   #ifdef __int8_t_defined
22936   #define _INT8_T
22937   #define _INT16_T
22938   #define _INT32_T
22939   #endif
22940   #ifdef __uint32_t_defined
22941   #define _UINT32_T
22942   #endif
22943
22944 EOF
22945
22946 # ----------------- done header, emit basic int types -------------
22947 if test "$acx_cv_header_stdint" = stddef.h; then
22948   sed 's/^ *//' >> tmp-stdint.h <<EOF
22949
22950     #ifndef _UINT8_T
22951     #define _UINT8_T
22952     #ifndef __uint8_t_defined
22953     #define __uint8_t_defined
22954     typedef unsigned $acx_cv_type_int8_t uint8_t;
22955     #endif
22956     #endif
22957
22958     #ifndef _UINT16_T
22959     #define _UINT16_T
22960     #ifndef __uint16_t_defined
22961     #define __uint16_t_defined
22962     typedef unsigned $acx_cv_type_int16_t uint16_t;
22963     #endif
22964     #endif
22965
22966     #ifndef _UINT32_T
22967     #define _UINT32_T
22968     #ifndef __uint32_t_defined
22969     #define __uint32_t_defined
22970     typedef unsigned $acx_cv_type_int32_t uint32_t;
22971     #endif
22972     #endif
22973
22974     #ifndef _INT8_T
22975     #define _INT8_T
22976     #ifndef __int8_t_defined
22977     #define __int8_t_defined
22978     typedef $acx_cv_type_int8_t int8_t;
22979     #endif
22980     #endif
22981
22982     #ifndef _INT16_T
22983     #define _INT16_T
22984     #ifndef __int16_t_defined
22985     #define __int16_t_defined
22986     typedef $acx_cv_type_int16_t int16_t;
22987     #endif
22988     #endif
22989
22990     #ifndef _INT32_T
22991     #define _INT32_T
22992     #ifndef __int32_t_defined
22993     #define __int32_t_defined
22994     typedef $acx_cv_type_int32_t int32_t;
22995     #endif
22996     #endif
22997 EOF
22998 elif test "$ac_cv_type_u_int32_t" = yes; then
22999   sed 's/^ *//' >> tmp-stdint.h <<EOF
23000
23001     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23002     #ifndef _INT8_T
23003     #define _INT8_T
23004     #endif
23005     #ifndef _INT16_T
23006     #define _INT16_T
23007     #endif
23008     #ifndef _INT32_T
23009     #define _INT32_T
23010     #endif
23011
23012     #ifndef _UINT8_T
23013     #define _UINT8_T
23014     #ifndef __uint8_t_defined
23015     #define __uint8_t_defined
23016     typedef u_int8_t uint8_t;
23017     #endif
23018     #endif
23019
23020     #ifndef _UINT16_T
23021     #define _UINT16_T
23022     #ifndef __uint16_t_defined
23023     #define __uint16_t_defined
23024     typedef u_int16_t uint16_t;
23025     #endif
23026     #endif
23027
23028     #ifndef _UINT32_T
23029     #define _UINT32_T
23030     #ifndef __uint32_t_defined
23031     #define __uint32_t_defined
23032     typedef u_int32_t uint32_t;
23033     #endif
23034     #endif
23035 EOF
23036 else
23037   sed 's/^ *//' >> tmp-stdint.h <<EOF
23038
23039     /* Some systems have guard macros to prevent redefinitions, define them.  */
23040     #ifndef _INT8_T
23041     #define _INT8_T
23042     #endif
23043     #ifndef _INT16_T
23044     #define _INT16_T
23045     #endif
23046     #ifndef _INT32_T
23047     #define _INT32_T
23048     #endif
23049     #ifndef _UINT8_T
23050     #define _UINT8_T
23051     #endif
23052     #ifndef _UINT16_T
23053     #define _UINT16_T
23054     #endif
23055     #ifndef _UINT32_T
23056     #define _UINT32_T
23057     #endif
23058 EOF
23059 fi
23060
23061 # ------------- done basic int types, emit int64_t types ------------
23062 if test "$ac_cv_type_uint64_t" = yes; then
23063   sed 's/^ *//' >> tmp-stdint.h <<EOF
23064
23065     /* system headers have good uint64_t and int64_t */
23066     #ifndef _INT64_T
23067     #define _INT64_T
23068     #endif
23069     #ifndef _UINT64_T
23070     #define _UINT64_T
23071     #endif
23072 EOF
23073 elif test "$ac_cv_type_u_int64_t" = yes; then
23074   sed 's/^ *//' >> tmp-stdint.h <<EOF
23075
23076     /* system headers have an u_int64_t (and int64_t) */
23077     #ifndef _INT64_T
23078     #define _INT64_T
23079     #endif
23080     #ifndef _UINT64_T
23081     #define _UINT64_T
23082     #ifndef __uint64_t_defined
23083     #define __uint64_t_defined
23084     typedef u_int64_t uint64_t;
23085     #endif
23086     #endif
23087 EOF
23088 elif test -n "$acx_cv_type_int64_t"; then
23089   sed 's/^ *//' >> tmp-stdint.h <<EOF
23090
23091     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23092     #ifndef _INT64_T
23093     #define _INT64_T
23094     typedef $acx_cv_type_int64_t int64_t;
23095     #endif
23096     #ifndef _UINT64_T
23097     #define _UINT64_T
23098     #ifndef __uint64_t_defined
23099     #define __uint64_t_defined
23100     typedef unsigned $acx_cv_type_int64_t uint64_t;
23101     #endif
23102     #endif
23103 EOF
23104 else
23105   sed 's/^ *//' >> tmp-stdint.h <<EOF
23106
23107     /* some common heuristics for int64_t, using compiler-specific tests */
23108     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23109     #ifndef _INT64_T
23110     #define _INT64_T
23111     #ifndef __int64_t_defined
23112     typedef long long int64_t;
23113     #endif
23114     #endif
23115     #ifndef _UINT64_T
23116     #define _UINT64_T
23117     typedef unsigned long long uint64_t;
23118     #endif
23119
23120     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23121     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23122        does not implement __extension__.  But that compiler doesn't define
23123        __GNUC_MINOR__.  */
23124     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23125     # define __extension__
23126     # endif
23127
23128     # ifndef _INT64_T
23129     # define _INT64_T
23130     __extension__ typedef long long int64_t;
23131     # endif
23132     # ifndef _UINT64_T
23133     # define _UINT64_T
23134     __extension__ typedef unsigned long long uint64_t;
23135     # endif
23136
23137     #elif !defined __STRICT_ANSI__
23138     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23139
23140     #  ifndef _INT64_T
23141     #  define _INT64_T
23142     typedef __int64 int64_t;
23143     #  endif
23144     #  ifndef _UINT64_T
23145     #  define _UINT64_T
23146     typedef unsigned __int64 uint64_t;
23147     #  endif
23148     # endif /* compiler */
23149
23150     #endif /* ANSI version */
23151 EOF
23152 fi
23153
23154 # ------------- done int64_t types, emit intptr types ------------
23155 if test "$ac_cv_type_uintptr_t" != yes; then
23156   sed 's/^ *//' >> tmp-stdint.h <<EOF
23157
23158     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23159     #ifndef __uintptr_t_defined
23160     typedef u$acx_cv_type_intptr_t uintptr_t;
23161     #endif
23162     #ifndef __intptr_t_defined
23163     typedef $acx_cv_type_intptr_t  intptr_t;
23164     #endif
23165 EOF
23166 fi
23167
23168 # ------------- done intptr types, emit int_least types ------------
23169 if test "$ac_cv_type_int_least32_t" != yes; then
23170   sed 's/^ *//' >> tmp-stdint.h <<EOF
23171
23172     /* Define int_least types */
23173     typedef int8_t     int_least8_t;
23174     typedef int16_t    int_least16_t;
23175     typedef int32_t    int_least32_t;
23176     #ifdef _INT64_T
23177     typedef int64_t    int_least64_t;
23178     #endif
23179
23180     typedef uint8_t    uint_least8_t;
23181     typedef uint16_t   uint_least16_t;
23182     typedef uint32_t   uint_least32_t;
23183     #ifdef _UINT64_T
23184     typedef uint64_t   uint_least64_t;
23185     #endif
23186 EOF
23187 fi
23188
23189 # ------------- done intptr types, emit int_fast types ------------
23190 if test "$ac_cv_type_int_fast32_t" != yes; then
23191       sed 's/^ *//' >> tmp-stdint.h <<EOF
23192
23193     /* Define int_fast types.  short is often slow */
23194     typedef int8_t       int_fast8_t;
23195     typedef int          int_fast16_t;
23196     typedef int32_t      int_fast32_t;
23197     #ifdef _INT64_T
23198     typedef int64_t      int_fast64_t;
23199     #endif
23200
23201     typedef uint8_t      uint_fast8_t;
23202     typedef unsigned int uint_fast16_t;
23203     typedef uint32_t     uint_fast32_t;
23204     #ifdef _UINT64_T
23205     typedef uint64_t     uint_fast64_t;
23206     #endif
23207 EOF
23208 fi
23209
23210 if test "$ac_cv_type_uintmax_t" != yes; then
23211   sed 's/^ *//' >> tmp-stdint.h <<EOF
23212
23213     /* Define intmax based on what we found */
23214     #ifdef _INT64_T
23215     typedef int64_t       intmax_t;
23216     #else
23217     typedef long          intmax_t;
23218     #endif
23219     #ifdef _UINT64_T
23220     typedef uint64_t      uintmax_t;
23221     #else
23222     typedef unsigned long uintmax_t;
23223     #endif
23224 EOF
23225 fi
23226
23227 sed 's/^ *//' >> tmp-stdint.h <<EOF
23228
23229   #endif /* GCC_GENERATED_STDINT_H */
23230 EOF
23231
23232 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23233   rm -f tmp-stdint.h
23234 else
23235   mv -f tmp-stdint.h bfd_stdint.h
23236 fi
23237
23238  ;;
23239     default )
23240 case "$srcdir" in
23241   .) srcdirpre= ;;
23242   *) srcdirpre='$(srcdir)/' ;;
23243 esac
23244 POFILES=
23245 GMOFILES=
23246 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23247   if test $lang != dummy; then
23248     POFILES="$POFILES $srcdirpre$lang.po"
23249     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23250   fi
23251 done
23252 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23253     -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23254     -e "s,@POFILES@,$POFILES," \
23255     -e "s,@GMOFILES@,$GMOFILES," \
23256     po/Makefile.in > po/Makefile ;;
23257   esac
23258 done
23259 _ACEOF
23260
23261 cat >>$CONFIG_STATUS <<\_ACEOF
23262
23263 { (exit 0); exit 0; }
23264 _ACEOF
23265 chmod +x $CONFIG_STATUS
23266 ac_clean_files=$ac_clean_files_save
23267
23268
23269 # configure is writing to config.log, and then calls config.status.
23270 # config.status does its own redirection, appending to config.log.
23271 # Unfortunately, on DOS this fails, as config.log is still kept open
23272 # by configure, so config.status won't be able to write to it; its
23273 # output is simply discarded.  So we exec the FD to /dev/null,
23274 # effectively closing config.log, so it can be properly (re)opened and
23275 # appended to by config.status.  When coming back to configure, we
23276 # need to make the FD available again.
23277 if test "$no_create" != yes; then
23278   ac_cs_success=:
23279   ac_config_status_args=
23280   test "$silent" = yes &&
23281     ac_config_status_args="$ac_config_status_args --quiet"
23282   exec 5>/dev/null
23283   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23284   exec 5>>config.log
23285   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23286   # would make configure fail if this is the last instruction.
23287   $ac_cs_success || { (exit 1); exit 1; }
23288 fi
23289
23290