xref: /netbsd/external/gpl3/binutils/dist/bfd/configure (revision 6550d01e)
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $ECHO works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if 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
277fi
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
283if 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
381fi
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.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
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.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${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.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="libbfd.c"
424# Factoring default headers for most tests.
425ac_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
461ac_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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO 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'
462ac_subst_files=''
463ac_pwd=`pwd`
464
465# Initialize some variables set by options.
466ac_init_help=
467ac_init_version=false
468# The variables have the same names as the options, with
469# dashes changed to underlines.
470cache_file=/dev/null
471exec_prefix=NONE
472no_create=
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
481verbose=
482x_includes=NONE
483x_libraries=NONE
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
503ac_prev=
504for ac_option
505do
506  # If the previous option needs an argument, assign it.
507  if test -n "$ac_prev"; then
508    eval "$ac_prev=\$ac_option"
509    ac_prev=
510    continue
511  fi
512
513  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515  # Accept the important Cygnus configure options, so we can diagnose typos.
516
517  case $ac_option in
518
519  -bindir | --bindir | --bindi | --bind | --bin | --bi)
520    ac_prev=bindir ;;
521  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522    bindir=$ac_optarg ;;
523
524  -build | --build | --buil | --bui | --bu)
525    ac_prev=build_alias ;;
526  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527    build_alias=$ac_optarg ;;
528
529  -cache-file | --cache-file | --cache-fil | --cache-fi \
530  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531    ac_prev=cache_file ;;
532  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534    cache_file=$ac_optarg ;;
535
536  --config-cache | -C)
537    cache_file=config.cache ;;
538
539  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540    ac_prev=datadir ;;
541  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542  | --da=*)
543    datadir=$ac_optarg ;;
544
545  -disable-* | --disable-*)
546    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547    # Reject names that are not valid shell variable names.
548    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550   { (exit 1); exit 1; }; }
551    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552    eval "enable_$ac_feature=no" ;;
553
554  -enable-* | --enable-*)
555    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556    # Reject names that are not valid shell variable names.
557    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559   { (exit 1); exit 1; }; }
560    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561    case $ac_option in
562      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563      *) ac_optarg=yes ;;
564    esac
565    eval "enable_$ac_feature='$ac_optarg'" ;;
566
567  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569  | --exec | --exe | --ex)
570    ac_prev=exec_prefix ;;
571  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573  | --exec=* | --exe=* | --ex=*)
574    exec_prefix=$ac_optarg ;;
575
576  -gas | --gas | --ga | --g)
577    # Obsolete; use --with-gas.
578    with_gas=yes ;;
579
580  -help | --help | --hel | --he | -h)
581    ac_init_help=long ;;
582  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583    ac_init_help=recursive ;;
584  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585    ac_init_help=short ;;
586
587  -host | --host | --hos | --ho)
588    ac_prev=host_alias ;;
589  -host=* | --host=* | --hos=* | --ho=*)
590    host_alias=$ac_optarg ;;
591
592  -includedir | --includedir | --includedi | --included | --include \
593  | --includ | --inclu | --incl | --inc)
594    ac_prev=includedir ;;
595  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596  | --includ=* | --inclu=* | --incl=* | --inc=*)
597    includedir=$ac_optarg ;;
598
599  -infodir | --infodir | --infodi | --infod | --info | --inf)
600    ac_prev=infodir ;;
601  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602    infodir=$ac_optarg ;;
603
604  -libdir | --libdir | --libdi | --libd)
605    ac_prev=libdir ;;
606  -libdir=* | --libdir=* | --libdi=* | --libd=*)
607    libdir=$ac_optarg ;;
608
609  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610  | --libexe | --libex | --libe)
611    ac_prev=libexecdir ;;
612  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613  | --libexe=* | --libex=* | --libe=*)
614    libexecdir=$ac_optarg ;;
615
616  -localstatedir | --localstatedir | --localstatedi | --localstated \
617  | --localstate | --localstat | --localsta | --localst \
618  | --locals | --local | --loca | --loc | --lo)
619    ac_prev=localstatedir ;;
620  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623    localstatedir=$ac_optarg ;;
624
625  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626    ac_prev=mandir ;;
627  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628    mandir=$ac_optarg ;;
629
630  -nfp | --nfp | --nf)
631    # Obsolete; use --without-fp.
632    with_fp=no ;;
633
634  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635  | --no-cr | --no-c | -n)
636    no_create=yes ;;
637
638  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640    no_recursion=yes ;;
641
642  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644  | --oldin | --oldi | --old | --ol | --o)
645    ac_prev=oldincludedir ;;
646  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649    oldincludedir=$ac_optarg ;;
650
651  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652    ac_prev=prefix ;;
653  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654    prefix=$ac_optarg ;;
655
656  -program-prefix | --program-prefix | --program-prefi | --program-pref \
657  | --program-pre | --program-pr | --program-p)
658    ac_prev=program_prefix ;;
659  -program-prefix=* | --program-prefix=* | --program-prefi=* \
660  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661    program_prefix=$ac_optarg ;;
662
663  -program-suffix | --program-suffix | --program-suffi | --program-suff \
664  | --program-suf | --program-su | --program-s)
665    ac_prev=program_suffix ;;
666  -program-suffix=* | --program-suffix=* | --program-suffi=* \
667  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668    program_suffix=$ac_optarg ;;
669
670  -program-transform-name | --program-transform-name \
671  | --program-transform-nam | --program-transform-na \
672  | --program-transform-n | --program-transform- \
673  | --program-transform | --program-transfor \
674  | --program-transfo | --program-transf \
675  | --program-trans | --program-tran \
676  | --progr-tra | --program-tr | --program-t)
677    ac_prev=program_transform_name ;;
678  -program-transform-name=* | --program-transform-name=* \
679  | --program-transform-nam=* | --program-transform-na=* \
680  | --program-transform-n=* | --program-transform-=* \
681  | --program-transform=* | --program-transfor=* \
682  | --program-transfo=* | --program-transf=* \
683  | --program-trans=* | --program-tran=* \
684  | --progr-tra=* | --program-tr=* | --program-t=*)
685    program_transform_name=$ac_optarg ;;
686
687  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688  | -silent | --silent | --silen | --sile | --sil)
689    silent=yes ;;
690
691  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692    ac_prev=sbindir ;;
693  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694  | --sbi=* | --sb=*)
695    sbindir=$ac_optarg ;;
696
697  -sharedstatedir | --sharedstatedir | --sharedstatedi \
698  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699  | --sharedst | --shareds | --shared | --share | --shar \
700  | --sha | --sh)
701    ac_prev=sharedstatedir ;;
702  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705  | --sha=* | --sh=*)
706    sharedstatedir=$ac_optarg ;;
707
708  -site | --site | --sit)
709    ac_prev=site ;;
710  -site=* | --site=* | --sit=*)
711    site=$ac_optarg ;;
712
713  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714    ac_prev=srcdir ;;
715  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716    srcdir=$ac_optarg ;;
717
718  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719  | --syscon | --sysco | --sysc | --sys | --sy)
720    ac_prev=sysconfdir ;;
721  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723    sysconfdir=$ac_optarg ;;
724
725  -target | --target | --targe | --targ | --tar | --ta | --t)
726    ac_prev=target_alias ;;
727  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728    target_alias=$ac_optarg ;;
729
730  -v | -verbose | --verbose | --verbos | --verbo | --verb)
731    verbose=yes ;;
732
733  -version | --version | --versio | --versi | --vers | -V)
734    ac_init_version=: ;;
735
736  -with-* | --with-*)
737    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738    # Reject names that are not valid shell variable names.
739    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740      { echo "$as_me: error: invalid package name: $ac_package" >&2
741   { (exit 1); exit 1; }; }
742    ac_package=`echo $ac_package| sed 's/-/_/g'`
743    case $ac_option in
744      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745      *) ac_optarg=yes ;;
746    esac
747    eval "with_$ac_package='$ac_optarg'" ;;
748
749  -without-* | --without-*)
750    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package | sed 's/-/_/g'`
756    eval "with_$ac_package=no" ;;
757
758  --x)
759    # Obsolete; use --with-x.
760    with_x=yes ;;
761
762  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763  | --x-incl | --x-inc | --x-in | --x-i)
764    ac_prev=x_includes ;;
765  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767    x_includes=$ac_optarg ;;
768
769  -x-libraries | --x-libraries | --x-librarie | --x-librari \
770  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771    ac_prev=x_libraries ;;
772  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774    x_libraries=$ac_optarg ;;
775
776  -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778   { (exit 1); exit 1; }; }
779    ;;
780
781  *=*)
782    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783    # Reject names that are not valid shell variable names.
784    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786   { (exit 1); exit 1; }; }
787    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788    eval "$ac_envvar='$ac_optarg'"
789    export $ac_envvar ;;
790
791  *)
792    # FIXME: should be removed in autoconf 3.0.
793    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797    ;;
798
799  esac
800done
801
802if test -n "$ac_prev"; then
803  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804  { echo "$as_me: error: missing argument to $ac_option" >&2
805   { (exit 1); exit 1; }; }
806fi
807
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811  eval ac_val=$`echo $ac_var`
812  case $ac_val in
813    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815   { (exit 1); exit 1; }; };;
816  esac
817done
818
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821	      localstatedir libdir includedir oldincludedir infodir mandir
822do
823  eval ac_val=$`echo $ac_var`
824  case $ac_val in
825    [\\/$]* | ?:[\\/]* ) ;;
826    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827   { (exit 1); exit 1; }; };;
828  esac
829done
830
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840  if test "x$build_alias" = x; then
841    cross_compiling=maybe
842    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843    If a cross compiler is detected then cross compile mode will be used." >&2
844  elif test "x$build_alias" != "x$host_alias"; then
845    cross_compiling=yes
846  fi
847fi
848
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
853
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857  ac_srcdir_defaulted=yes
858  # Try the directory containing this script, then its parent.
859  ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861	 X"$0" : 'X\(//\)[^/]' \| \
862	 X"$0" : 'X\(//\)$' \| \
863	 X"$0" : 'X\(/\)' \| \
864	 .     : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868  	  /^X\(\/\/\)$/{ s//\1/; q; }
869  	  /^X\(\/\).*/{ s//\1/; q; }
870  	  s/.*/./; q'`
871  srcdir=$ac_confdir
872  if test ! -r $srcdir/$ac_unique_file; then
873    srcdir=..
874  fi
875else
876  ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879  if test "$ac_srcdir_defaulted" = yes; then
880    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881   { (exit 1); exit 1; }; }
882  else
883    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884   { (exit 1); exit 1; }; }
885  fi
886fi
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889   { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
923
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928  # Omit some internal or obsolete options to make the list less imposing.
929  # This message is too long to be a string in the A/UX 3.1 sh.
930  cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
932
933Usage: $0 [OPTION]... [VAR=VALUE]...
934
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE.  See below for descriptions of some of the useful variables.
937
938Defaults for the options are specified in brackets.
939
940Configuration:
941  -h, --help              display this help and exit
942      --help=short        display options specific to this package
943      --help=recursive    display the short help of all the included packages
944  -V, --version           display version information and exit
945  -q, --quiet, --silent   do not print \`checking...' messages
946      --cache-file=FILE   cache test results in FILE [disabled]
947  -C, --config-cache      alias for \`--cache-file=config.cache'
948  -n, --no-create         do not create output files
949      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953  cat <<_ACEOF
954Installation directories:
955  --prefix=PREFIX         install architecture-independent files in PREFIX
956			  [$ac_default_prefix]
957  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
958			  [PREFIX]
959
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
964
965For better control, use the options below.
966
967Fine tuning of the installation directories:
968  --bindir=DIR           user executables [EPREFIX/bin]
969  --sbindir=DIR          system admin executables [EPREFIX/sbin]
970  --libexecdir=DIR       program executables [EPREFIX/libexec]
971  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
972  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
973  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
974  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
975  --libdir=DIR           object code libraries [EPREFIX/lib]
976  --includedir=DIR       C header files [PREFIX/include]
977  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
978  --infodir=DIR          info documentation [PREFIX/info]
979  --mandir=DIR           man documentation [PREFIX/man]
980_ACEOF
981
982  cat <<\_ACEOF
983
984Program names:
985  --program-prefix=PREFIX            prepend PREFIX to installed program names
986  --program-suffix=SUFFIX            append SUFFIX to installed program names
987  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
988
989System types:
990  --build=BUILD     configure for building on BUILD [guessed]
991  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992  --target=TARGET   configure for building compilers for TARGET [HOST]
993_ACEOF
994fi
995
996if test -n "$ac_init_help"; then
997
998  cat <<\_ACEOF
999
1000Optional Features:
1001  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003  --disable-dependency-tracking  speeds up one-time build
1004  --enable-dependency-tracking   do not reject slow dependency extractors
1005  --enable-shared[=PKGS]
1006                          build shared libraries [default=no]
1007  --enable-static[=PKGS]
1008                          build static libraries [default=yes]
1009  --enable-fast-install[=PKGS]
1010                          optimize for fast installation [default=yes]
1011  --disable-libtool-lock  avoid locking (might break parallel builds)
1012  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1013  --enable-targets        alternative target configurations
1014  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1015  --enable-secureplt      Default to creating read-only plt entries
1016  --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1017  --enable-werror         treat compile warnings as errors
1018  --enable-build-warnings enable build-time compiler warnings
1019  --enable-maintainer-mode  enable make rules and dependencies not useful
1020			  (and sometimes confusing) to the casual installer
1021  --enable-install-libbfd controls installation of libbfd and related headers
1022  --disable-nls           do not use Native Language Support
1023
1024Optional Packages:
1025  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1026  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1027  --with-pic              try to use only PIC/non-PIC objects [default=use
1028                          both]
1029  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1030  --with-mmap             try using mmap for BFD input files if available
1031  --with-separate-debug-dir=DIR
1032                          Look for global separate debug info in DIR
1033                          [default=LIBDIR/debug]
1034  --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1035                          Binutils"
1036  --with-bugurl=URL       Direct users to URL to report a bug
1037
1038Some influential environment variables:
1039  CC          C compiler command
1040  CFLAGS      C compiler flags
1041  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1042              nonstandard directory <lib dir>
1043  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044              headers in a nonstandard directory <include dir>
1045  CPP         C preprocessor
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if test "$ac_init_help" = "recursive"; then
1054  # If there are subdirs, report their specific --help.
1055  ac_popdir=`pwd`
1056  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057    test -d $ac_dir || continue
1058    ac_builddir=.
1059
1060if test "$ac_dir" != .; then
1061  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062  # A "../" for each directory in $ac_dir_suffix.
1063  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064else
1065  ac_dir_suffix= ac_top_builddir=
1066fi
1067
1068case $srcdir in
1069  .)  # No --srcdir option.  We are building in place.
1070    ac_srcdir=.
1071    if test -z "$ac_top_builddir"; then
1072       ac_top_srcdir=.
1073    else
1074       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075    fi ;;
1076  [\\/]* | ?:[\\/]* )  # Absolute path.
1077    ac_srcdir=$srcdir$ac_dir_suffix;
1078    ac_top_srcdir=$srcdir ;;
1079  *) # Relative path.
1080    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082esac
1083
1084# Do not use `cd foo && pwd` to compute absolute paths, because
1085# the directories may not exist.
1086case `pwd` in
1087.) ac_abs_builddir="$ac_dir";;
1088*)
1089  case "$ac_dir" in
1090  .) ac_abs_builddir=`pwd`;;
1091  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093  esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_builddir=${ac_top_builddir}.;;
1097*)
1098  case ${ac_top_builddir}. in
1099  .) ac_abs_top_builddir=$ac_abs_builddir;;
1100  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102  esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_srcdir=$ac_srcdir;;
1106*)
1107  case $ac_srcdir in
1108  .) ac_abs_srcdir=$ac_abs_builddir;;
1109  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111  esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_srcdir=$ac_top_srcdir;;
1115*)
1116  case $ac_top_srcdir in
1117  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120  esac;;
1121esac
1122
1123    cd $ac_dir
1124    # Check for guested configure; otherwise get Cygnus style configure.
1125    if test -f $ac_srcdir/configure.gnu; then
1126      echo
1127      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1128    elif test -f $ac_srcdir/configure; then
1129      echo
1130      $SHELL $ac_srcdir/configure  --help=recursive
1131    elif test -f $ac_srcdir/configure.ac ||
1132	   test -f $ac_srcdir/configure.in; then
1133      echo
1134      $ac_configure --help
1135    else
1136      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137    fi
1138    cd $ac_popdir
1139  done
1140fi
1141
1142test -n "$ac_init_help" && exit 0
1143if $ac_init_version; then
1144  cat <<\_ACEOF
1145
1146Copyright (C) 2003 Free Software Foundation, Inc.
1147This configure script is free software; the Free Software Foundation
1148gives unlimited permission to copy, distribute and modify it.
1149_ACEOF
1150  exit 0
1151fi
1152exec 5>config.log
1153cat >&5 <<_ACEOF
1154This file contains any messages produced by compilers while
1155running configure, to aid debugging if configure makes a mistake.
1156
1157It was created by $as_me, which was
1158generated by GNU Autoconf 2.59.  Invocation command line was
1159
1160  $ $0 $@
1161
1162_ACEOF
1163{
1164cat <<_ASUNAME
1165## --------- ##
1166## Platform. ##
1167## --------- ##
1168
1169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1177
1178/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1179/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1182/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1183/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1184/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1185
1186_ASUNAME
1187
1188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189for as_dir in $PATH
1190do
1191  IFS=$as_save_IFS
1192  test -z "$as_dir" && as_dir=.
1193  echo "PATH: $as_dir"
1194done
1195
1196} >&5
1197
1198cat >&5 <<_ACEOF
1199
1200
1201## ----------- ##
1202## Core tests. ##
1203## ----------- ##
1204
1205_ACEOF
1206
1207
1208# Keep a trace of the command line.
1209# Strip out --no-create and --no-recursion so they do not pile up.
1210# Strip out --silent because we don't want to record it for future runs.
1211# Also quote any args containing shell meta-characters.
1212# Make two passes to allow for proper duplicate-argument suppression.
1213ac_configure_args=
1214ac_configure_args0=
1215ac_configure_args1=
1216ac_sep=
1217ac_must_keep_next=false
1218for ac_pass in 1 2
1219do
1220  for ac_arg
1221  do
1222    case $ac_arg in
1223    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225    | -silent | --silent | --silen | --sile | --sil)
1226      continue ;;
1227    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229    esac
1230    case $ac_pass in
1231    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232    2)
1233      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234      if test $ac_must_keep_next = true; then
1235	ac_must_keep_next=false # Got value, back to normal.
1236      else
1237	case $ac_arg in
1238	  *=* | --config-cache | -C | -disable-* | --disable-* \
1239	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241	  | -with-* | --with-* | -without-* | --without-* | --x)
1242	    case "$ac_configure_args0 " in
1243	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244	    esac
1245	    ;;
1246	  -* ) ac_must_keep_next=true ;;
1247	esac
1248      fi
1249      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250      # Get rid of the leading space.
1251      ac_sep=" "
1252      ;;
1253    esac
1254  done
1255done
1256$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259# When interrupted or exit'd, cleanup temporary files, and complete
1260# config.log.  We remove comments because anyway the quotes in there
1261# would cause problems or look ugly.
1262# WARNING: Be sure not to use single quotes in there, as some shells,
1263# such as our DU 5.0 friend, will then `close' the trap.
1264trap 'exit_status=$?
1265  # Save into config.log some information that might help in debugging.
1266  {
1267    echo
1268
1269    cat <<\_ASBOX
1270## ---------------- ##
1271## Cache variables. ##
1272## ---------------- ##
1273_ASBOX
1274    echo
1275    # The following way of writing the cache mishandles newlines in values,
1276{
1277  (set) 2>&1 |
1278    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279    *ac_space=\ *)
1280      sed -n \
1281	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283      ;;
1284    *)
1285      sed -n \
1286	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287      ;;
1288    esac;
1289}
1290    echo
1291
1292    cat <<\_ASBOX
1293## ----------------- ##
1294## Output variables. ##
1295## ----------------- ##
1296_ASBOX
1297    echo
1298    for ac_var in $ac_subst_vars
1299    do
1300      eval ac_val=$`echo $ac_var`
1301      echo "$ac_var='"'"'$ac_val'"'"'"
1302    done | sort
1303    echo
1304
1305    if test -n "$ac_subst_files"; then
1306      cat <<\_ASBOX
1307## ------------- ##
1308## Output files. ##
1309## ------------- ##
1310_ASBOX
1311      echo
1312      for ac_var in $ac_subst_files
1313      do
1314	eval ac_val=$`echo $ac_var`
1315	echo "$ac_var='"'"'$ac_val'"'"'"
1316      done | sort
1317      echo
1318    fi
1319
1320    if test -s confdefs.h; then
1321      cat <<\_ASBOX
1322## ----------- ##
1323## confdefs.h. ##
1324## ----------- ##
1325_ASBOX
1326      echo
1327      sed "/^$/d" confdefs.h | sort
1328      echo
1329    fi
1330    test "$ac_signal" != 0 &&
1331      echo "$as_me: caught signal $ac_signal"
1332    echo "$as_me: exit $exit_status"
1333  } >&5
1334  rm -f core *.core &&
1335  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336    exit $exit_status
1337     ' 0
1338for ac_signal in 1 2 13 15; do
1339  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340done
1341ac_signal=0
1342
1343# confdefs.h avoids OS command line length limits that DEFS can exceed.
1344rm -rf conftest* confdefs.h
1345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346echo >confdefs.h
1347
1348# Predefined preprocessor variables.
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_NAME "$PACKAGE_NAME"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_VERSION "$PACKAGE_VERSION"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_STRING "$PACKAGE_STRING"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372_ACEOF
1373
1374
1375# Let the site file select an alternate cache file if it wants to.
1376# Prefer explicitly selected file to automatically selected ones.
1377if test -z "$CONFIG_SITE"; then
1378  if test "x$prefix" != xNONE; then
1379    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380  else
1381    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382  fi
1383fi
1384for ac_site_file in $CONFIG_SITE; do
1385  if test -r "$ac_site_file"; then
1386    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387echo "$as_me: loading site script $ac_site_file" >&6;}
1388    sed 's/^/| /' "$ac_site_file" >&5
1389    . "$ac_site_file"
1390  fi
1391done
1392
1393if test -r "$cache_file"; then
1394  # Some versions of bash will fail to source /dev/null (special
1395  # files actually), so we avoid doing that.
1396  if test -f "$cache_file"; then
1397    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398echo "$as_me: loading cache $cache_file" >&6;}
1399    case $cache_file in
1400      [\\/]* | ?:[\\/]* ) . $cache_file;;
1401      *)                      . ./$cache_file;;
1402    esac
1403  fi
1404else
1405  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406echo "$as_me: creating cache $cache_file" >&6;}
1407  >$cache_file
1408fi
1409
1410# Check that the precious variables saved in the cache have kept the same
1411# value.
1412ac_cache_corrupted=false
1413for ac_var in `(set) 2>&1 |
1414	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416  eval ac_new_set=\$ac_env_${ac_var}_set
1417  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418  eval ac_new_val="\$ac_env_${ac_var}_value"
1419  case $ac_old_set,$ac_new_set in
1420    set,)
1421      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423      ac_cache_corrupted=: ;;
1424    ,set)
1425      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427      ac_cache_corrupted=: ;;
1428    ,);;
1429    *)
1430      if test "x$ac_old_val" != "x$ac_new_val"; then
1431        # differences in whitespace do not lead to failure.
1432        ac_old_val_w=`echo x $ac_old_val`
1433        ac_new_val_w=`echo x $ac_new_val`
1434        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1436echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1437          ac_cache_corrupted=:
1438        else
1439          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441          eval $ac_var=\$ac_old_val
1442        fi
1443        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1444echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1445        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1446echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1447      fi;;
1448  esac
1449  # Pass precious variables to config.status.
1450  if test "$ac_new_set" = set; then
1451    case $ac_new_val in
1452    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454    *) ac_arg=$ac_var=$ac_new_val ;;
1455    esac
1456    case " $ac_configure_args " in
1457      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1458      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459    esac
1460  fi
1461done
1462if $ac_cache_corrupted; then
1463  { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464echo "$as_me: error: in \`$ac_pwd':" >&2;}
1465  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469   { (exit 1); exit 1; }; }
1470fi
1471
1472ac_ext=c
1473ac_cpp='$CPP $CPPFLAGS'
1474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501ac_aux_dir=
1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503  if test -f $ac_dir/install-sh; then
1504    ac_aux_dir=$ac_dir
1505    ac_install_sh="$ac_aux_dir/install-sh -c"
1506    break
1507  elif test -f $ac_dir/install.sh; then
1508    ac_aux_dir=$ac_dir
1509    ac_install_sh="$ac_aux_dir/install.sh -c"
1510    break
1511  elif test -f $ac_dir/shtool; then
1512    ac_aux_dir=$ac_dir
1513    ac_install_sh="$ac_aux_dir/shtool install -c"
1514    break
1515  fi
1516done
1517if test -z "$ac_aux_dir"; then
1518  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520   { (exit 1); exit 1; }; }
1521fi
1522ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526# Make sure we can run config.sub.
1527$ac_config_sub sun4 >/dev/null 2>&1 ||
1528  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530   { (exit 1); exit 1; }; }
1531
1532echo "$as_me:$LINENO: checking build system type" >&5
1533echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534if test "${ac_cv_build+set}" = set; then
1535  echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537  ac_cv_build_alias=$build_alias
1538test -z "$ac_cv_build_alias" &&
1539  ac_cv_build_alias=`$ac_config_guess`
1540test -z "$ac_cv_build_alias" &&
1541  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543   { (exit 1); exit 1; }; }
1544ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547   { (exit 1); exit 1; }; }
1548
1549fi
1550echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551echo "${ECHO_T}$ac_cv_build" >&6
1552build=$ac_cv_build
1553build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565  ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569   { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583  echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585  ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587  ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591   { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
1605  test "$program_prefix$program_suffix$program_transform_name" = \
1606    NONENONEs,x,x, &&
1607  program_prefix=${target_alias}-
1608ac_ext=c
1609ac_cpp='$CPP $CPPFLAGS'
1610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613if test -n "$ac_tool_prefix"; then
1614  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616echo "$as_me:$LINENO: checking for $ac_word" >&5
1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618if test "${ac_cv_prog_CC+set}" = set; then
1619  echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621  if test -n "$CC"; then
1622  ac_cv_prog_CC="$CC" # Let the user override the test.
1623else
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627  IFS=$as_save_IFS
1628  test -z "$as_dir" && as_dir=.
1629  for ac_exec_ext in '' $ac_executable_extensions; do
1630  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633    break 2
1634  fi
1635done
1636done
1637
1638fi
1639fi
1640CC=$ac_cv_prog_CC
1641if test -n "$CC"; then
1642  echo "$as_me:$LINENO: result: $CC" >&5
1643echo "${ECHO_T}$CC" >&6
1644else
1645  echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647fi
1648
1649fi
1650if test -z "$ac_cv_prog_CC"; then
1651  ac_ct_CC=$CC
1652  # Extract the first word of "gcc", so it can be a program name with args.
1653set dummy gcc; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  if test -n "$ac_ct_CC"; then
1660  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665  IFS=$as_save_IFS
1666  test -z "$as_dir" && as_dir=.
1667  for ac_exec_ext in '' $ac_executable_extensions; do
1668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669    ac_cv_prog_ac_ct_CC="gcc"
1670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671    break 2
1672  fi
1673done
1674done
1675
1676fi
1677fi
1678ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679if test -n "$ac_ct_CC"; then
1680  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681echo "${ECHO_T}$ac_ct_CC" >&6
1682else
1683  echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687  CC=$ac_ct_CC
1688else
1689  CC="$ac_cv_prog_CC"
1690fi
1691
1692if test -z "$CC"; then
1693  if test -n "$ac_tool_prefix"; then
1694  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695set dummy ${ac_tool_prefix}cc; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_CC+set}" = set; then
1699  echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701  if test -n "$CC"; then
1702  ac_cv_prog_CC="$CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  for ac_exec_ext in '' $ac_executable_extensions; do
1710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711    ac_cv_prog_CC="${ac_tool_prefix}cc"
1712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713    break 2
1714  fi
1715done
1716done
1717
1718fi
1719fi
1720CC=$ac_cv_prog_CC
1721if test -n "$CC"; then
1722  echo "$as_me:$LINENO: result: $CC" >&5
1723echo "${ECHO_T}$CC" >&6
1724else
1725  echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729fi
1730if test -z "$ac_cv_prog_CC"; then
1731  ac_ct_CC=$CC
1732  # Extract the first word of "cc", so it can be a program name with args.
1733set dummy cc; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737  echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739  if test -n "$ac_ct_CC"; then
1740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH
1744do
1745  IFS=$as_save_IFS
1746  test -z "$as_dir" && as_dir=.
1747  for ac_exec_ext in '' $ac_executable_extensions; do
1748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749    ac_cv_prog_ac_ct_CC="cc"
1750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751    break 2
1752  fi
1753done
1754done
1755
1756fi
1757fi
1758ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759if test -n "$ac_ct_CC"; then
1760  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761echo "${ECHO_T}$ac_ct_CC" >&6
1762else
1763  echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765fi
1766
1767  CC=$ac_ct_CC
1768else
1769  CC="$ac_cv_prog_CC"
1770fi
1771
1772fi
1773if test -z "$CC"; then
1774  # Extract the first word of "cc", so it can be a program name with args.
1775set dummy cc; ac_word=$2
1776echo "$as_me:$LINENO: checking for $ac_word" >&5
1777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778if test "${ac_cv_prog_CC+set}" = set; then
1779  echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781  if test -n "$CC"; then
1782  ac_cv_prog_CC="$CC" # Let the user override the test.
1783else
1784  ac_prog_rejected=no
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788  IFS=$as_save_IFS
1789  test -z "$as_dir" && as_dir=.
1790  for ac_exec_ext in '' $ac_executable_extensions; do
1791  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793       ac_prog_rejected=yes
1794       continue
1795     fi
1796    ac_cv_prog_CC="cc"
1797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798    break 2
1799  fi
1800done
1801done
1802
1803if test $ac_prog_rejected = yes; then
1804  # We found a bogon in the path, so make sure we never use it.
1805  set dummy $ac_cv_prog_CC
1806  shift
1807  if test $# != 0; then
1808    # We chose a different compiler from the bogus one.
1809    # However, it has the same basename, so the bogon will be chosen
1810    # first if we set CC to just the basename; use the full file name.
1811    shift
1812    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1813  fi
1814fi
1815fi
1816fi
1817CC=$ac_cv_prog_CC
1818if test -n "$CC"; then
1819  echo "$as_me:$LINENO: result: $CC" >&5
1820echo "${ECHO_T}$CC" >&6
1821else
1822  echo "$as_me:$LINENO: result: no" >&5
1823echo "${ECHO_T}no" >&6
1824fi
1825
1826fi
1827if test -z "$CC"; then
1828  if test -n "$ac_tool_prefix"; then
1829  for ac_prog in cl
1830  do
1831    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835if test "${ac_cv_prog_CC+set}" = set; then
1836  echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838  if test -n "$CC"; then
1839  ac_cv_prog_CC="$CC" # Let the user override the test.
1840else
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844  IFS=$as_save_IFS
1845  test -z "$as_dir" && as_dir=.
1846  for ac_exec_ext in '' $ac_executable_extensions; do
1847  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850    break 2
1851  fi
1852done
1853done
1854
1855fi
1856fi
1857CC=$ac_cv_prog_CC
1858if test -n "$CC"; then
1859  echo "$as_me:$LINENO: result: $CC" >&5
1860echo "${ECHO_T}$CC" >&6
1861else
1862  echo "$as_me:$LINENO: result: no" >&5
1863echo "${ECHO_T}no" >&6
1864fi
1865
1866    test -n "$CC" && break
1867  done
1868fi
1869if test -z "$CC"; then
1870  ac_ct_CC=$CC
1871  for ac_prog in cl
1872do
1873  # Extract the first word of "$ac_prog", so it can be a program name with args.
1874set dummy $ac_prog; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878  echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880  if test -n "$ac_ct_CC"; then
1881  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882else
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886  IFS=$as_save_IFS
1887  test -z "$as_dir" && as_dir=.
1888  for ac_exec_ext in '' $ac_executable_extensions; do
1889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890    ac_cv_prog_ac_ct_CC="$ac_prog"
1891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892    break 2
1893  fi
1894done
1895done
1896
1897fi
1898fi
1899ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900if test -n "$ac_ct_CC"; then
1901  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902echo "${ECHO_T}$ac_ct_CC" >&6
1903else
1904  echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908  test -n "$ac_ct_CC" && break
1909done
1910
1911  CC=$ac_ct_CC
1912fi
1913
1914fi
1915
1916
1917test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1918echo "$as_me: error: in \`$ac_pwd':" >&2;}
1919{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1920See \`config.log' for more details." >&5
1921echo "$as_me: error: no acceptable C compiler found in \$PATH
1922See \`config.log' for more details." >&2;}
1923   { (exit 1); exit 1; }; }; }
1924
1925# Provide some information about the compiler.
1926echo "$as_me:$LINENO:" \
1927     "checking for C compiler version" >&5
1928ac_compiler=`set X $ac_compile; echo $2`
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930  (eval $ac_compiler --version </dev/null >&5) 2>&5
1931  ac_status=$?
1932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933  (exit $ac_status); }
1934{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935  (eval $ac_compiler -v </dev/null >&5) 2>&5
1936  ac_status=$?
1937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938  (exit $ac_status); }
1939{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940  (eval $ac_compiler -V </dev/null >&5) 2>&5
1941  ac_status=$?
1942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943  (exit $ac_status); }
1944
1945cat >conftest.$ac_ext <<_ACEOF
1946/* confdefs.h.  */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h.  */
1951
1952int
1953main ()
1954{
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960ac_clean_files_save=$ac_clean_files
1961ac_clean_files="$ac_clean_files a.out a.exe b.out"
1962# Try to create an executable without -o first, disregard a.out.
1963# It will help us diagnose broken compilers, and finding out an intuition
1964# of exeext.
1965echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1966echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1967ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1968if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969  (eval $ac_link_default) 2>&5
1970  ac_status=$?
1971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972  (exit $ac_status); }; then
1973  # Find the output, starting from the most likely.  This scheme is
1974# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1975# resort.
1976
1977# Be careful to initialize this variable, since it used to be cached.
1978# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1979ac_cv_exeext=
1980# b.out is created by i960 compilers.
1981for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1982do
1983  test -f "$ac_file" || continue
1984  case $ac_file in
1985    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1986	;;
1987    conftest.$ac_ext )
1988	# This is the source file.
1989	;;
1990    [ab].out )
1991	# We found the default executable, but exeext='' is most
1992	# certainly right.
1993	break;;
1994    *.* )
1995	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996	# FIXME: I believe we export ac_cv_exeext for Libtool,
1997	# but it would be cool to find out if it's true.  Does anybody
1998	# maintain Libtool? --akim.
1999	export ac_cv_exeext
2000	break;;
2001    * )
2002	break;;
2003  esac
2004done
2005else
2006  echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2010echo "$as_me: error: in \`$ac_pwd':" >&2;}
2011{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2012See \`config.log' for more details." >&5
2013echo "$as_me: error: C compiler cannot create executables
2014See \`config.log' for more details." >&2;}
2015   { (exit 77); exit 77; }; }; }
2016fi
2017
2018ac_exeext=$ac_cv_exeext
2019echo "$as_me:$LINENO: result: $ac_file" >&5
2020echo "${ECHO_T}$ac_file" >&6
2021
2022# Check the compiler produces executables we can run.  If not, either
2023# the compiler is broken, or we cross compile.
2024echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2025echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2026# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2027# If not cross compiling, check that we can run a simple program.
2028if test "$cross_compiling" != yes; then
2029  if { ac_try='./$ac_file'
2030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031  (eval $ac_try) 2>&5
2032  ac_status=$?
2033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034  (exit $ac_status); }; }; then
2035    cross_compiling=no
2036  else
2037    if test "$cross_compiling" = maybe; then
2038	cross_compiling=yes
2039    else
2040	{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043If you meant to cross compile, use \`--host'.
2044See \`config.log' for more details." >&5
2045echo "$as_me: error: cannot run C compiled programs.
2046If you meant to cross compile, use \`--host'.
2047See \`config.log' for more details." >&2;}
2048   { (exit 1); exit 1; }; }; }
2049    fi
2050  fi
2051fi
2052echo "$as_me:$LINENO: result: yes" >&5
2053echo "${ECHO_T}yes" >&6
2054
2055rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056ac_clean_files=$ac_clean_files_save
2057# Check the compiler produces executables we can run.  If not, either
2058# the compiler is broken, or we cross compile.
2059echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062echo "${ECHO_T}$cross_compiling" >&6
2063
2064echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067  (eval $ac_link) 2>&5
2068  ac_status=$?
2069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070  (exit $ac_status); }; then
2071  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2073# work properly (i.e., refer to `conftest.exe'), while it won't with
2074# `rm'.
2075for ac_file in conftest.exe conftest conftest.*; do
2076  test -f "$ac_file" || continue
2077  case $ac_file in
2078    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080	  export ac_cv_exeext
2081	  break;;
2082    * ) break;;
2083  esac
2084done
2085else
2086  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2087echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2089See \`config.log' for more details." >&5
2090echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&2;}
2092   { (exit 1); exit 1; }; }; }
2093fi
2094
2095rm -f conftest$ac_cv_exeext
2096echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097echo "${ECHO_T}$ac_cv_exeext" >&6
2098
2099rm -f conftest.$ac_ext
2100EXEEXT=$ac_cv_exeext
2101ac_exeext=$EXEEXT
2102echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104if test "${ac_cv_objext+set}" = set; then
2105  echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107  cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h.  */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h.  */
2113
2114int
2115main ()
2116{
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122rm -f conftest.o conftest.obj
2123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124  (eval $ac_compile) 2>&5
2125  ac_status=$?
2126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127  (exit $ac_status); }; then
2128  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129  case $ac_file in
2130    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2131    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2132       break;;
2133  esac
2134done
2135else
2136  echo "$as_me: failed program was:" >&5
2137sed 's/^/| /' conftest.$ac_ext >&5
2138
2139{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2140echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }; }
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170       choke me
2171#endif
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179  (eval $ac_compile) 2>conftest.er1
2180  ac_status=$?
2181  grep -v '^ *+' conftest.er1 >conftest.err
2182  rm -f conftest.er1
2183  cat conftest.err >&5
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); } &&
2186	 { ac_try='test -z "$ac_c_werror_flag"
2187			 || test ! -s conftest.err'
2188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189  (eval $ac_try) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; } &&
2193	 { ac_try='test -s conftest.$ac_objext'
2194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; }; then
2199  ac_compiler_gnu=yes
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>conftest.er1
2239  ac_status=$?
2240  grep -v '^ *+' conftest.er1 >conftest.err
2241  rm -f conftest.er1
2242  cat conftest.err >&5
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245	 { ac_try='test -z "$ac_c_werror_flag"
2246			 || test ! -s conftest.err'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; } &&
2252	 { ac_try='test -s conftest.$ac_objext'
2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254  (eval $ac_try) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; }; then
2258  ac_cv_prog_cc_g=yes
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270  CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272  if test "$GCC" = yes; then
2273    CFLAGS="-g -O2"
2274  else
2275    CFLAGS="-g"
2276  fi
2277else
2278  if test "$GCC" = yes; then
2279    CFLAGS="-O2"
2280  else
2281    CFLAGS=
2282  fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305     char **p;
2306     int i;
2307{
2308  return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312  char *s;
2313  va_list v;
2314  va_start (v,p);
2315  s = g (p, va_arg (v,int));
2316  va_end (v);
2317  return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2321   function prototypes and stuff, but not '\xHH' hex character constants.
2322   These don't provoke an error unfortunately, instead are silently treated
2323   as 'x'.  The following induces an error, until -std1 is added to get
2324   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2325   array size at least.  It's necessary to write '\x00'==0 to get something
2326   that's true only with -std1.  */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2339  ;
2340  return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX			-qlanglvl=ansi
2346# Ultrix and OSF/1	-std1
2347# HP-UX 10.20 and later	-Ae
2348# HP-UX older versions	-Aa -D_HPUX_SOURCE
2349# SVR4			-Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352  CC="$ac_save_CC $ac_arg"
2353  rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362	 { ac_try='test -z "$ac_c_werror_flag"
2363			 || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369	 { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390  x|xno)
2391    echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393  *)
2394    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396    CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C.  Since we use `exit',
2400# in C++ we need to declare it.  In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405  choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417	 { ac_try='test -z "$ac_c_werror_flag"
2418			 || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424	 { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  for ac_declaration in \
2431   '' \
2432   'extern "C" void std::exit (int) throw (); using std::exit;' \
2433   'extern "C" void std::exit (int); using std::exit;' \
2434   'extern "C" void exit (int) throw ();' \
2435   'extern "C" void exit (int);' \
2436   'void exit (int);'
2437do
2438  cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h.  */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h.  */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463	 { ac_try='test -z "$ac_c_werror_flag"
2464			 || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470	 { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  :
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484  cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501  (eval $ac_compile) 2>conftest.er1
2502  ac_status=$?
2503  grep -v '^ *+' conftest.er1 >conftest.err
2504  rm -f conftest.er1
2505  cat conftest.err >&5
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); } &&
2508	 { ac_try='test -z "$ac_c_werror_flag"
2509			 || test ! -s conftest.err'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; } &&
2515	 { ac_try='test -s conftest.$ac_objext'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; }; then
2521  break
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531  echo '#ifdef __cplusplus' >>confdefs.h
2532  echo $ac_declaration      >>confdefs.h
2533  echo '#endif'             >>confdefs.h
2534fi
2535
2536else
2537  echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
2549echo "$as_me:$LINENO: checking for library containing strerror" >&5
2550echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2551if test "${ac_cv_search_strerror+set}" = set; then
2552  echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554  ac_func_search_save_LIBS=$LIBS
2555ac_cv_search_strerror=no
2556cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h.  */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h.  */
2562
2563/* Override any gcc2 internal prototype to avoid an error.  */
2564#ifdef __cplusplus
2565extern "C"
2566#endif
2567/* We use char because int might match the return type of a gcc2
2568   builtin and then its argument prototype would still apply.  */
2569char strerror ();
2570int
2571main ()
2572{
2573strerror ();
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext conftest$ac_exeext
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580  (eval $ac_link) 2>conftest.er1
2581  ac_status=$?
2582  grep -v '^ *+' conftest.er1 >conftest.err
2583  rm -f conftest.er1
2584  cat conftest.err >&5
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); } &&
2587	 { ac_try='test -z "$ac_c_werror_flag"
2588			 || test ! -s conftest.err'
2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590  (eval $ac_try) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; } &&
2594	 { ac_try='test -s conftest$ac_exeext'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; }; then
2600  ac_cv_search_strerror="none required"
2601else
2602  echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605fi
2606rm -f conftest.err conftest.$ac_objext \
2607      conftest$ac_exeext conftest.$ac_ext
2608if test "$ac_cv_search_strerror" = no; then
2609  for ac_lib in cposix; do
2610    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2611    cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h.  */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h.  */
2617
2618/* Override any gcc2 internal prototype to avoid an error.  */
2619#ifdef __cplusplus
2620extern "C"
2621#endif
2622/* We use char because int might match the return type of a gcc2
2623   builtin and then its argument prototype would still apply.  */
2624char strerror ();
2625int
2626main ()
2627{
2628strerror ();
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext conftest$ac_exeext
2634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635  (eval $ac_link) 2>conftest.er1
2636  ac_status=$?
2637  grep -v '^ *+' conftest.er1 >conftest.err
2638  rm -f conftest.er1
2639  cat conftest.err >&5
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); } &&
2642	 { ac_try='test -z "$ac_c_werror_flag"
2643			 || test ! -s conftest.err'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; } &&
2649	 { ac_try='test -s conftest$ac_exeext'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; }; then
2655  ac_cv_search_strerror="-l$ac_lib"
2656break
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext \
2663      conftest$ac_exeext conftest.$ac_ext
2664  done
2665fi
2666LIBS=$ac_func_search_save_LIBS
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2669echo "${ECHO_T}$ac_cv_search_strerror" >&6
2670if test "$ac_cv_search_strerror" != no; then
2671  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2672
2673fi
2674
2675
2676am__api_version="1.9"
2677# Find a good install program.  We prefer a C program (faster),
2678# so one script is as good as another.  But avoid the broken or
2679# incompatible versions:
2680# SysV /etc/install, /usr/sbin/install
2681# SunOS /usr/etc/install
2682# IRIX /sbin/install
2683# AIX /bin/install
2684# AmigaOS /C/install, which installs bootblocks on floppy discs
2685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2688# OS/2's system install, which has a completely different semantic
2689# ./install, which can be erroneously created by make from ./install.sh.
2690# Reject install programs that cannot install multiple files.
2691echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2692echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2693if test -z "$INSTALL"; then
2694if test "${ac_cv_path_install+set}" = set; then
2695  echo $ECHO_N "(cached) $ECHO_C" >&6
2696else
2697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702  # Account for people who put trailing slashes in PATH elements.
2703case $as_dir/ in
2704  ./ | .// | /cC/* | \
2705  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2706  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2707  /usr/ucb/* ) ;;
2708  *)
2709    # OSF1 and SCO ODT 3.0 have their own names for install.
2710    # Don't use installbsd from OSF since it installs stuff as root
2711    # by default.
2712    for ac_prog in ginstall scoinst install; do
2713      for ac_exec_ext in '' $ac_executable_extensions; do
2714	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2715	  if test $ac_prog = install &&
2716	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717	    # AIX install.  It has an incompatible calling convention.
2718	    :
2719	  elif test $ac_prog = install &&
2720	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721	    # program-specific install script used by HP pwplus--don't use.
2722	    :
2723	  else
2724	    rm -rf conftest.one conftest.two conftest.dir
2725	    echo one > conftest.one
2726	    echo two > conftest.two
2727	    mkdir conftest.dir
2728	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729	      test -s conftest.one && test -s conftest.two &&
2730	      test -s conftest.dir/conftest.one &&
2731	      test -s conftest.dir/conftest.two
2732	    then
2733	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734	      break 3
2735	    fi
2736	  fi
2737	fi
2738      done
2739    done
2740    ;;
2741esac
2742done
2743
2744rm -rf conftest.one conftest.two conftest.dir
2745
2746fi
2747  if test "${ac_cv_path_install+set}" = set; then
2748    INSTALL=$ac_cv_path_install
2749  else
2750    # As a last resort, use the slow shell script.  Don't cache a
2751    # value for INSTALL within a source directory, because that will
2752    # break other packages using the cache if that directory is
2753    # removed, or if the value is a relative name.
2754    INSTALL=$ac_install_sh
2755  fi
2756fi
2757echo "$as_me:$LINENO: result: $INSTALL" >&5
2758echo "${ECHO_T}$INSTALL" >&6
2759
2760# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761# It thinks the first close brace ends the variable substitution.
2762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
2764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2765
2766test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767
2768echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2769echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2770# Just in case
2771sleep 1
2772echo timestamp > conftest.file
2773# Do `set' in a subshell so we don't clobber the current shell's
2774# arguments.  Must try -L first in case configure is actually a
2775# symlink; some systems play weird games with the mod time of symlinks
2776# (eg FreeBSD returns the mod time of the symlink's containing
2777# directory).
2778if (
2779   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2780   if test "$*" = "X"; then
2781      # -L didn't work.
2782      set X `ls -t $srcdir/configure conftest.file`
2783   fi
2784   rm -f conftest.file
2785   if test "$*" != "X $srcdir/configure conftest.file" \
2786      && test "$*" != "X conftest.file $srcdir/configure"; then
2787
2788      # If neither matched, then we have a broken ls.  This can happen
2789      # if, for instance, CONFIG_SHELL is bash and it inherits a
2790      # broken ls alias from the environment.  This has actually
2791      # happened.  Such a system could not be considered "sane".
2792      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2793alias in your environment" >&5
2794echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2795alias in your environment" >&2;}
2796   { (exit 1); exit 1; }; }
2797   fi
2798
2799   test "$2" = conftest.file
2800   )
2801then
2802   # Ok.
2803   :
2804else
2805   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2806Check your system clock" >&5
2807echo "$as_me: error: newly created file is older than distributed files!
2808Check your system clock" >&2;}
2809   { (exit 1); exit 1; }; }
2810fi
2811echo "$as_me:$LINENO: result: yes" >&5
2812echo "${ECHO_T}yes" >&6
2813test "$program_prefix" != NONE &&
2814  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2815# Use a double $ so make ignores it.
2816test "$program_suffix" != NONE &&
2817  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2818# Double any \ or $.  echo might interpret backslashes.
2819# By default was `s,x,x', remove it if useless.
2820cat <<\_ACEOF >conftest.sed
2821s/[\\$]/&&/g;s/;s,x,x,$//
2822_ACEOF
2823program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2824rm conftest.sed
2825
2826# expand $ac_aux_dir to an absolute path
2827am_aux_dir=`cd $ac_aux_dir && pwd`
2828
2829test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2830# Use eval to expand $SHELL
2831if eval "$MISSING --run true"; then
2832  am_missing_run="$MISSING --run "
2833else
2834  am_missing_run=
2835  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2836echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2837fi
2838
2839if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2840  # We used to keeping the `.' as first argument, in order to
2841  # allow $(mkdir_p) to be used without argument.  As in
2842  #   $(mkdir_p) $(somedir)
2843  # where $(somedir) is conditionally defined.  However this is wrong
2844  # for two reasons:
2845  #  1. if the package is installed by a user who cannot write `.'
2846  #     make install will fail,
2847  #  2. the above comment should most certainly read
2848  #     $(mkdir_p) $(DESTDIR)$(somedir)
2849  #     so it does not work when $(somedir) is undefined and
2850  #     $(DESTDIR) is not.
2851  #  To support the latter case, we have to write
2852  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2853  #  so the `.' trick is pointless.
2854  mkdir_p='mkdir -p --'
2855else
2856  # On NextStep and OpenStep, the `mkdir' command does not
2857  # recognize any option.  It will interpret all options as
2858  # directories to create, and then abort because `.' already
2859  # exists.
2860  for d in ./-p ./--version;
2861  do
2862    test -d $d && rmdir $d
2863  done
2864  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2865  if test -f "$ac_aux_dir/mkinstalldirs"; then
2866    mkdir_p='$(mkinstalldirs)'
2867  else
2868    mkdir_p='$(install_sh) -d'
2869  fi
2870fi
2871
2872for ac_prog in gawk mawk nawk awk
2873do
2874  # Extract the first word of "$ac_prog", so it can be a program name with args.
2875set dummy $ac_prog; ac_word=$2
2876echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878if test "${ac_cv_prog_AWK+set}" = set; then
2879  echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881  if test -n "$AWK"; then
2882  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889  for ac_exec_ext in '' $ac_executable_extensions; do
2890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891    ac_cv_prog_AWK="$ac_prog"
2892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896done
2897
2898fi
2899fi
2900AWK=$ac_cv_prog_AWK
2901if test -n "$AWK"; then
2902  echo "$as_me:$LINENO: result: $AWK" >&5
2903echo "${ECHO_T}$AWK" >&6
2904else
2905  echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907fi
2908
2909  test -n "$AWK" && break
2910done
2911
2912echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2914set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2915if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2916  echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918  cat >conftest.make <<\_ACEOF
2919all:
2920	@echo 'ac_maketemp="$(MAKE)"'
2921_ACEOF
2922# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2923eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2924if test -n "$ac_maketemp"; then
2925  eval ac_cv_prog_make_${ac_make}_set=yes
2926else
2927  eval ac_cv_prog_make_${ac_make}_set=no
2928fi
2929rm -f conftest.make
2930fi
2931if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2932  echo "$as_me:$LINENO: result: yes" >&5
2933echo "${ECHO_T}yes" >&6
2934  SET_MAKE=
2935else
2936  echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
2938  SET_MAKE="MAKE=${MAKE-make}"
2939fi
2940
2941rm -rf .tst 2>/dev/null
2942mkdir .tst 2>/dev/null
2943if test -d .tst; then
2944  am__leading_dot=.
2945else
2946  am__leading_dot=_
2947fi
2948rmdir .tst 2>/dev/null
2949
2950DEPDIR="${am__leading_dot}deps"
2951
2952          ac_config_commands="$ac_config_commands depfiles"
2953
2954
2955am_make=${MAKE-make}
2956cat > confinc << 'END'
2957am__doit:
2958	@echo done
2959.PHONY: am__doit
2960END
2961# If we don't find an include directive, just comment out the code.
2962echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2963echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2964am__include="#"
2965am__quote=
2966_am_result=none
2967# First try GNU make style include.
2968echo "include confinc" > confmf
2969# We grep out `Entering directory' and `Leaving directory'
2970# messages which can occur if `w' ends up in MAKEFLAGS.
2971# In particular we don't look at `^make:' because GNU make might
2972# be invoked under some other name (usually "gmake"), in which
2973# case it prints its new name instead of `make'.
2974if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2975   am__include=include
2976   am__quote=
2977   _am_result=GNU
2978fi
2979# Now try BSD make style include.
2980if test "$am__include" = "#"; then
2981   echo '.include "confinc"' > confmf
2982   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2983      am__include=.include
2984      am__quote="\""
2985      _am_result=BSD
2986   fi
2987fi
2988
2989
2990echo "$as_me:$LINENO: result: $_am_result" >&5
2991echo "${ECHO_T}$_am_result" >&6
2992rm -f confinc confmf
2993
2994# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2995if test "${enable_dependency_tracking+set}" = set; then
2996  enableval="$enable_dependency_tracking"
2997
2998fi;
2999if test "x$enable_dependency_tracking" != xno; then
3000  am_depcomp="$ac_aux_dir/depcomp"
3001  AMDEPBACKSLASH='\'
3002fi
3003
3004
3005if test "x$enable_dependency_tracking" != xno; then
3006  AMDEP_TRUE=
3007  AMDEP_FALSE='#'
3008else
3009  AMDEP_TRUE='#'
3010  AMDEP_FALSE=
3011fi
3012
3013
3014
3015# test to see if srcdir already configured
3016if test "`cd $srcdir && pwd`" != "`pwd`" &&
3017   test -f $srcdir/config.status; then
3018  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3019echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3020   { (exit 1); exit 1; }; }
3021fi
3022
3023# test whether we have cygpath
3024if test -z "$CYGPATH_W"; then
3025  if (cygpath --version) >/dev/null 2>/dev/null; then
3026    CYGPATH_W='cygpath -w'
3027  else
3028    CYGPATH_W=echo
3029  fi
3030fi
3031
3032
3033# Define the identity of the package.
3034 PACKAGE=bfd
3035 VERSION=2.19.1
3036
3037
3038cat >>confdefs.h <<_ACEOF
3039#define PACKAGE "$PACKAGE"
3040_ACEOF
3041
3042
3043cat >>confdefs.h <<_ACEOF
3044#define VERSION "$VERSION"
3045_ACEOF
3046
3047# Some tools Automake needs.
3048
3049ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3050
3051
3052AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3053
3054
3055AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3056
3057
3058AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3059
3060
3061MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3062
3063install_sh=${install_sh-"$am_aux_dir/install-sh"}
3064
3065# Installed binaries are usually stripped using `strip' when the user
3066# run `make install-strip'.  However `strip' might not be the right
3067# tool to use in cross-compilation environments, therefore Automake
3068# will honor the `STRIP' environment variable to overrule this program.
3069if test "$cross_compiling" != no; then
3070  if test -n "$ac_tool_prefix"; then
3071  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072set dummy ${ac_tool_prefix}strip; ac_word=$2
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_STRIP+set}" = set; then
3076  echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078  if test -n "$STRIP"; then
3079  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086  for ac_exec_ext in '' $ac_executable_extensions; do
3087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093done
3094
3095fi
3096fi
3097STRIP=$ac_cv_prog_STRIP
3098if test -n "$STRIP"; then
3099  echo "$as_me:$LINENO: result: $STRIP" >&5
3100echo "${ECHO_T}$STRIP" >&6
3101else
3102  echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104fi
3105
3106fi
3107if test -z "$ac_cv_prog_STRIP"; then
3108  ac_ct_STRIP=$STRIP
3109  # Extract the first word of "strip", so it can be a program name with args.
3110set dummy strip; ac_word=$2
3111echo "$as_me:$LINENO: checking for $ac_word" >&5
3112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3114  echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
3116  if test -n "$ac_ct_STRIP"; then
3117  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122  IFS=$as_save_IFS
3123  test -z "$as_dir" && as_dir=.
3124  for ac_exec_ext in '' $ac_executable_extensions; do
3125  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126    ac_cv_prog_ac_ct_STRIP="strip"
3127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128    break 2
3129  fi
3130done
3131done
3132
3133  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3134fi
3135fi
3136ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137if test -n "$ac_ct_STRIP"; then
3138  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3139echo "${ECHO_T}$ac_ct_STRIP" >&6
3140else
3141  echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
3143fi
3144
3145  STRIP=$ac_ct_STRIP
3146else
3147  STRIP="$ac_cv_prog_STRIP"
3148fi
3149
3150fi
3151INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3152
3153# We need awk for the "check" target.  The system "awk" is bad on
3154# some platforms.
3155# Always define AMTAR for backward compatibility.
3156
3157AMTAR=${AMTAR-"${am_missing_run}tar"}
3158
3159am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3160
3161
3162
3163
3164depcc="$CC"   am_compiler_list=
3165
3166echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3167echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3168if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3169  echo $ECHO_N "(cached) $ECHO_C" >&6
3170else
3171  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3172  # We make a subdir and do the tests there.  Otherwise we can end up
3173  # making bogus files that we don't know about and never remove.  For
3174  # instance it was reported that on HP-UX the gcc test will end up
3175  # making a dummy file named `D' -- because `-MD' means `put the output
3176  # in D'.
3177  mkdir conftest.dir
3178  # Copy depcomp to subdir because otherwise we won't find it if we're
3179  # using a relative directory.
3180  cp "$am_depcomp" conftest.dir
3181  cd conftest.dir
3182  # We will build objects and dependencies in a subdirectory because
3183  # it helps to detect inapplicable dependency modes.  For instance
3184  # both Tru64's cc and ICC support -MD to output dependencies as a
3185  # side effect of compilation, but ICC will put the dependencies in
3186  # the current directory while Tru64 will put them in the object
3187  # directory.
3188  mkdir sub
3189
3190  am_cv_CC_dependencies_compiler_type=none
3191  if test "$am_compiler_list" = ""; then
3192     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3193  fi
3194  for depmode in $am_compiler_list; do
3195    # Setup a source with many dependencies, because some compilers
3196    # like to wrap large dependency lists on column 80 (with \), and
3197    # we should not choose a depcomp mode which is confused by this.
3198    #
3199    # We need to recreate these files for each test, as the compiler may
3200    # overwrite some of them when testing with obscure command lines.
3201    # This happens at least with the AIX C compiler.
3202    : > sub/conftest.c
3203    for i in 1 2 3 4 5 6; do
3204      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3205      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3206      # Solaris 8's {/usr,}/bin/sh.
3207      touch sub/conftst$i.h
3208    done
3209    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3210
3211    case $depmode in
3212    nosideeffect)
3213      # after this tag, mechanisms are not by side-effect, so they'll
3214      # only be used when explicitly requested
3215      if test "x$enable_dependency_tracking" = xyes; then
3216	continue
3217      else
3218	break
3219      fi
3220      ;;
3221    none) break ;;
3222    esac
3223    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3224    # mode.  It turns out that the SunPro C++ compiler does not properly
3225    # handle `-M -o', and we need to detect this.
3226    if depmode=$depmode \
3227       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3228       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3229       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3230         >/dev/null 2>conftest.err &&
3231       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3232       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3233       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3234      # icc doesn't choke on unknown options, it will just issue warnings
3235      # or remarks (even with -Werror).  So we grep stderr for any message
3236      # that says an option was ignored or not supported.
3237      # When given -MP, icc 7.0 and 7.1 complain thusly:
3238      #   icc: Command line warning: ignoring option '-M'; no argument required
3239      # The diagnosis changed in icc 8.0:
3240      #   icc: Command line remark: option '-MP' not supported
3241      if (grep 'ignoring option' conftest.err ||
3242          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3243        am_cv_CC_dependencies_compiler_type=$depmode
3244        break
3245      fi
3246    fi
3247  done
3248
3249  cd ..
3250  rm -rf conftest.dir
3251else
3252  am_cv_CC_dependencies_compiler_type=none
3253fi
3254
3255fi
3256echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3257echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3258CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3259
3260
3261
3262if
3263  test "x$enable_dependency_tracking" != xno \
3264  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3265  am__fastdepCC_TRUE=
3266  am__fastdepCC_FALSE='#'
3267else
3268  am__fastdepCC_TRUE='#'
3269  am__fastdepCC_FALSE=
3270fi
3271
3272
3273
3274
3275if test -n "$ac_tool_prefix"; then
3276  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3277set dummy ${ac_tool_prefix}ar; ac_word=$2
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_AR+set}" = set; then
3281  echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283  if test -n "$AR"; then
3284  ac_cv_prog_AR="$AR" # Let the user override the test.
3285else
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289  IFS=$as_save_IFS
3290  test -z "$as_dir" && as_dir=.
3291  for ac_exec_ext in '' $ac_executable_extensions; do
3292  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293    ac_cv_prog_AR="${ac_tool_prefix}ar"
3294    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295    break 2
3296  fi
3297done
3298done
3299
3300fi
3301fi
3302AR=$ac_cv_prog_AR
3303if test -n "$AR"; then
3304  echo "$as_me:$LINENO: result: $AR" >&5
3305echo "${ECHO_T}$AR" >&6
3306else
3307  echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
3310
3311fi
3312if test -z "$ac_cv_prog_AR"; then
3313  ac_ct_AR=$AR
3314  # Extract the first word of "ar", so it can be a program name with args.
3315set dummy ar; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  if test -n "$ac_ct_AR"; then
3322  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329  for ac_exec_ext in '' $ac_executable_extensions; do
3330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_ac_ct_AR="ar"
3332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336done
3337
3338fi
3339fi
3340ac_ct_AR=$ac_cv_prog_ac_ct_AR
3341if test -n "$ac_ct_AR"; then
3342  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3343echo "${ECHO_T}$ac_ct_AR" >&6
3344else
3345  echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349  AR=$ac_ct_AR
3350else
3351  AR="$ac_cv_prog_AR"
3352fi
3353
3354if test -n "$ac_tool_prefix"; then
3355  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_RANLIB+set}" = set; then
3360  echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362  if test -n "$RANLIB"; then
3363  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368  IFS=$as_save_IFS
3369  test -z "$as_dir" && as_dir=.
3370  for ac_exec_ext in '' $ac_executable_extensions; do
3371  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377done
3378
3379fi
3380fi
3381RANLIB=$ac_cv_prog_RANLIB
3382if test -n "$RANLIB"; then
3383  echo "$as_me:$LINENO: result: $RANLIB" >&5
3384echo "${ECHO_T}$RANLIB" >&6
3385else
3386  echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
3388fi
3389
3390fi
3391if test -z "$ac_cv_prog_RANLIB"; then
3392  ac_ct_RANLIB=$RANLIB
3393  # Extract the first word of "ranlib", so it can be a program name with args.
3394set dummy ranlib; ac_word=$2
3395echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398  echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400  if test -n "$ac_ct_RANLIB"; then
3401  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3402else
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406  IFS=$as_save_IFS
3407  test -z "$as_dir" && as_dir=.
3408  for ac_exec_ext in '' $ac_executable_extensions; do
3409  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410    ac_cv_prog_ac_ct_RANLIB="ranlib"
3411    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412    break 2
3413  fi
3414done
3415done
3416
3417  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3418fi
3419fi
3420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421if test -n "$ac_ct_RANLIB"; then
3422  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423echo "${ECHO_T}$ac_ct_RANLIB" >&6
3424else
3425  echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
3427fi
3428
3429  RANLIB=$ac_ct_RANLIB
3430else
3431  RANLIB="$ac_cv_prog_RANLIB"
3432fi
3433
3434
3435# Check whether --enable-shared or --disable-shared was given.
3436if test "${enable_shared+set}" = set; then
3437  enableval="$enable_shared"
3438  p=${PACKAGE-default}
3439    case $enableval in
3440    yes) enable_shared=yes ;;
3441    no) enable_shared=no ;;
3442    *)
3443      enable_shared=no
3444      # Look at the argument we got.  We use all the common list separators.
3445      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3446      for pkg in $enableval; do
3447	IFS="$lt_save_ifs"
3448	if test "X$pkg" = "X$p"; then
3449	  enable_shared=yes
3450	fi
3451      done
3452      IFS="$lt_save_ifs"
3453      ;;
3454    esac
3455else
3456  enable_shared=no
3457fi;
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472if test -n "$ac_tool_prefix"; then
3473  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475echo "$as_me:$LINENO: checking for $ac_word" >&5
3476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477if test "${ac_cv_prog_CC+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480  if test -n "$CC"; then
3481  ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  test -z "$as_dir" && as_dir=.
3488  for ac_exec_ext in '' $ac_executable_extensions; do
3489  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492    break 2
3493  fi
3494done
3495done
3496
3497fi
3498fi
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501  echo "$as_me:$LINENO: result: $CC" >&5
3502echo "${ECHO_T}$CC" >&6
3503else
3504  echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6
3506fi
3507
3508fi
3509if test -z "$ac_cv_prog_CC"; then
3510  ac_ct_CC=$CC
3511  # Extract the first word of "gcc", so it can be a program name with args.
3512set dummy gcc; ac_word=$2
3513echo "$as_me:$LINENO: checking for $ac_word" >&5
3514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516  echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518  if test -n "$ac_ct_CC"; then
3519  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524  IFS=$as_save_IFS
3525  test -z "$as_dir" && as_dir=.
3526  for ac_exec_ext in '' $ac_executable_extensions; do
3527  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528    ac_cv_prog_ac_ct_CC="gcc"
3529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530    break 2
3531  fi
3532done
3533done
3534
3535fi
3536fi
3537ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538if test -n "$ac_ct_CC"; then
3539  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540echo "${ECHO_T}$ac_ct_CC" >&6
3541else
3542  echo "$as_me:$LINENO: result: no" >&5
3543echo "${ECHO_T}no" >&6
3544fi
3545
3546  CC=$ac_ct_CC
3547else
3548  CC="$ac_cv_prog_CC"
3549fi
3550
3551if test -z "$CC"; then
3552  if test -n "$ac_tool_prefix"; then
3553  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554set dummy ${ac_tool_prefix}cc; ac_word=$2
3555echo "$as_me:$LINENO: checking for $ac_word" >&5
3556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557if test "${ac_cv_prog_CC+set}" = set; then
3558  echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560  if test -n "$CC"; then
3561  ac_cv_prog_CC="$CC" # Let the user override the test.
3562else
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566  IFS=$as_save_IFS
3567  test -z "$as_dir" && as_dir=.
3568  for ac_exec_ext in '' $ac_executable_extensions; do
3569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570    ac_cv_prog_CC="${ac_tool_prefix}cc"
3571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572    break 2
3573  fi
3574done
3575done
3576
3577fi
3578fi
3579CC=$ac_cv_prog_CC
3580if test -n "$CC"; then
3581  echo "$as_me:$LINENO: result: $CC" >&5
3582echo "${ECHO_T}$CC" >&6
3583else
3584  echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
3586fi
3587
3588fi
3589if test -z "$ac_cv_prog_CC"; then
3590  ac_ct_CC=$CC
3591  # Extract the first word of "cc", so it can be a program name with args.
3592set dummy cc; ac_word=$2
3593echo "$as_me:$LINENO: checking for $ac_word" >&5
3594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3596  echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598  if test -n "$ac_ct_CC"; then
3599  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606  for ac_exec_ext in '' $ac_executable_extensions; do
3607  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_ac_ct_CC="cc"
3609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613done
3614
3615fi
3616fi
3617ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618if test -n "$ac_ct_CC"; then
3619  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620echo "${ECHO_T}$ac_ct_CC" >&6
3621else
3622  echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
3624fi
3625
3626  CC=$ac_ct_CC
3627else
3628  CC="$ac_cv_prog_CC"
3629fi
3630
3631fi
3632if test -z "$CC"; then
3633  # Extract the first word of "cc", so it can be a program name with args.
3634set dummy cc; ac_word=$2
3635echo "$as_me:$LINENO: checking for $ac_word" >&5
3636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637if test "${ac_cv_prog_CC+set}" = set; then
3638  echo $ECHO_N "(cached) $ECHO_C" >&6
3639else
3640  if test -n "$CC"; then
3641  ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643  ac_prog_rejected=no
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647  IFS=$as_save_IFS
3648  test -z "$as_dir" && as_dir=.
3649  for ac_exec_ext in '' $ac_executable_extensions; do
3650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652       ac_prog_rejected=yes
3653       continue
3654     fi
3655    ac_cv_prog_CC="cc"
3656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657    break 2
3658  fi
3659done
3660done
3661
3662if test $ac_prog_rejected = yes; then
3663  # We found a bogon in the path, so make sure we never use it.
3664  set dummy $ac_cv_prog_CC
3665  shift
3666  if test $# != 0; then
3667    # We chose a different compiler from the bogus one.
3668    # However, it has the same basename, so the bogon will be chosen
3669    # first if we set CC to just the basename; use the full file name.
3670    shift
3671    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672  fi
3673fi
3674fi
3675fi
3676CC=$ac_cv_prog_CC
3677if test -n "$CC"; then
3678  echo "$as_me:$LINENO: result: $CC" >&5
3679echo "${ECHO_T}$CC" >&6
3680else
3681  echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
3683fi
3684
3685fi
3686if test -z "$CC"; then
3687  if test -n "$ac_tool_prefix"; then
3688  for ac_prog in cl
3689  do
3690    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692echo "$as_me:$LINENO: checking for $ac_word" >&5
3693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694if test "${ac_cv_prog_CC+set}" = set; then
3695  echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
3697  if test -n "$CC"; then
3698  ac_cv_prog_CC="$CC" # Let the user override the test.
3699else
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703  IFS=$as_save_IFS
3704  test -z "$as_dir" && as_dir=.
3705  for ac_exec_ext in '' $ac_executable_extensions; do
3706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709    break 2
3710  fi
3711done
3712done
3713
3714fi
3715fi
3716CC=$ac_cv_prog_CC
3717if test -n "$CC"; then
3718  echo "$as_me:$LINENO: result: $CC" >&5
3719echo "${ECHO_T}$CC" >&6
3720else
3721  echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723fi
3724
3725    test -n "$CC" && break
3726  done
3727fi
3728if test -z "$CC"; then
3729  ac_ct_CC=$CC
3730  for ac_prog in cl
3731do
3732  # Extract the first word of "$ac_prog", so it can be a program name with args.
3733set dummy $ac_prog; ac_word=$2
3734echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3737  echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739  if test -n "$ac_ct_CC"; then
3740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745  IFS=$as_save_IFS
3746  test -z "$as_dir" && as_dir=.
3747  for ac_exec_ext in '' $ac_executable_extensions; do
3748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749    ac_cv_prog_ac_ct_CC="$ac_prog"
3750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751    break 2
3752  fi
3753done
3754done
3755
3756fi
3757fi
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761echo "${ECHO_T}$ac_ct_CC" >&6
3762else
3763  echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
3765fi
3766
3767  test -n "$ac_ct_CC" && break
3768done
3769
3770  CC=$ac_ct_CC
3771fi
3772
3773fi
3774
3775
3776test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3779See \`config.log' for more details." >&5
3780echo "$as_me: error: no acceptable C compiler found in \$PATH
3781See \`config.log' for more details." >&2;}
3782   { (exit 1); exit 1; }; }; }
3783
3784# Provide some information about the compiler.
3785echo "$as_me:$LINENO:" \
3786     "checking for C compiler version" >&5
3787ac_compiler=`set X $ac_compile; echo $2`
3788{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3789  (eval $ac_compiler --version </dev/null >&5) 2>&5
3790  ac_status=$?
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); }
3793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3794  (eval $ac_compiler -v </dev/null >&5) 2>&5
3795  ac_status=$?
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); }
3798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3799  (eval $ac_compiler -V </dev/null >&5) 2>&5
3800  ac_status=$?
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); }
3803
3804echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3805echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3806if test "${ac_cv_c_compiler_gnu+set}" = set; then
3807  echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
3809  cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h.  */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h.  */
3815
3816int
3817main ()
3818{
3819#ifndef __GNUC__
3820       choke me
3821#endif
3822
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829  (eval $ac_compile) 2>conftest.er1
3830  ac_status=$?
3831  grep -v '^ *+' conftest.er1 >conftest.err
3832  rm -f conftest.er1
3833  cat conftest.err >&5
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); } &&
3836	 { ac_try='test -z "$ac_c_werror_flag"
3837			 || test ! -s conftest.err'
3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839  (eval $ac_try) 2>&5
3840  ac_status=$?
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); }; } &&
3843	 { ac_try='test -s conftest.$ac_objext'
3844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845  (eval $ac_try) 2>&5
3846  ac_status=$?
3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); }; }; then
3849  ac_compiler_gnu=yes
3850else
3851  echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854ac_compiler_gnu=no
3855fi
3856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857ac_cv_c_compiler_gnu=$ac_compiler_gnu
3858
3859fi
3860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3862GCC=`test $ac_compiler_gnu = yes && echo yes`
3863ac_test_CFLAGS=${CFLAGS+set}
3864ac_save_CFLAGS=$CFLAGS
3865CFLAGS="-g"
3866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3868if test "${ac_cv_prog_cc_g+set}" = set; then
3869  echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871  cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h.  */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h.  */
3877
3878int
3879main ()
3880{
3881
3882  ;
3883  return 0;
3884}
3885_ACEOF
3886rm -f conftest.$ac_objext
3887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888  (eval $ac_compile) 2>conftest.er1
3889  ac_status=$?
3890  grep -v '^ *+' conftest.er1 >conftest.err
3891  rm -f conftest.er1
3892  cat conftest.err >&5
3893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894  (exit $ac_status); } &&
3895	 { ac_try='test -z "$ac_c_werror_flag"
3896			 || test ! -s conftest.err'
3897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898  (eval $ac_try) 2>&5
3899  ac_status=$?
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); }; } &&
3902	 { ac_try='test -s conftest.$ac_objext'
3903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904  (eval $ac_try) 2>&5
3905  ac_status=$?
3906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907  (exit $ac_status); }; }; then
3908  ac_cv_prog_cc_g=yes
3909else
3910  echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
3912
3913ac_cv_prog_cc_g=no
3914fi
3915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3916fi
3917echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3918echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3919if test "$ac_test_CFLAGS" = set; then
3920  CFLAGS=$ac_save_CFLAGS
3921elif test $ac_cv_prog_cc_g = yes; then
3922  if test "$GCC" = yes; then
3923    CFLAGS="-g -O2"
3924  else
3925    CFLAGS="-g"
3926  fi
3927else
3928  if test "$GCC" = yes; then
3929    CFLAGS="-O2"
3930  else
3931    CFLAGS=
3932  fi
3933fi
3934echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3935echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3936if test "${ac_cv_prog_cc_stdc+set}" = set; then
3937  echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939  ac_cv_prog_cc_stdc=no
3940ac_save_CC=$CC
3941cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h.  */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h.  */
3947#include <stdarg.h>
3948#include <stdio.h>
3949#include <sys/types.h>
3950#include <sys/stat.h>
3951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3952struct buf { int x; };
3953FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954static char *e (p, i)
3955     char **p;
3956     int i;
3957{
3958  return p[i];
3959}
3960static char *f (char * (*g) (char **, int), char **p, ...)
3961{
3962  char *s;
3963  va_list v;
3964  va_start (v,p);
3965  s = g (p, va_arg (v,int));
3966  va_end (v);
3967  return s;
3968}
3969
3970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3971   function prototypes and stuff, but not '\xHH' hex character constants.
3972   These don't provoke an error unfortunately, instead are silently treated
3973   as 'x'.  The following induces an error, until -std1 is added to get
3974   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3975   array size at least.  It's necessary to write '\x00'==0 to get something
3976   that's true only with -std1.  */
3977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3978
3979int test (int i, double x);
3980struct s1 {int (*f) (int a);};
3981struct s2 {int (*f) (double a);};
3982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983int argc;
3984char **argv;
3985int
3986main ()
3987{
3988return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3989  ;
3990  return 0;
3991}
3992_ACEOF
3993# Don't try gcc -ansi; that turns off useful extensions and
3994# breaks some systems' header files.
3995# AIX			-qlanglvl=ansi
3996# Ultrix and OSF/1	-std1
3997# HP-UX 10.20 and later	-Ae
3998# HP-UX older versions	-Aa -D_HPUX_SOURCE
3999# SVR4			-Xc -D__EXTENSIONS__
4000for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4001do
4002  CC="$ac_save_CC $ac_arg"
4003  rm -f conftest.$ac_objext
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005  (eval $ac_compile) 2>conftest.er1
4006  ac_status=$?
4007  grep -v '^ *+' conftest.er1 >conftest.err
4008  rm -f conftest.er1
4009  cat conftest.err >&5
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); } &&
4012	 { ac_try='test -z "$ac_c_werror_flag"
4013			 || test ! -s conftest.err'
4014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }; } &&
4019	 { ac_try='test -s conftest.$ac_objext'
4020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021  (eval $ac_try) 2>&5
4022  ac_status=$?
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); }; }; then
4025  ac_cv_prog_cc_stdc=$ac_arg
4026break
4027else
4028  echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031fi
4032rm -f conftest.err conftest.$ac_objext
4033done
4034rm -f conftest.$ac_ext conftest.$ac_objext
4035CC=$ac_save_CC
4036
4037fi
4038
4039case "x$ac_cv_prog_cc_stdc" in
4040  x|xno)
4041    echo "$as_me:$LINENO: result: none needed" >&5
4042echo "${ECHO_T}none needed" >&6 ;;
4043  *)
4044    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4045echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4046    CC="$CC $ac_cv_prog_cc_stdc" ;;
4047esac
4048
4049# Some people use a C++ compiler to compile C.  Since we use `exit',
4050# in C++ we need to declare it.  In case someone uses the same compiler
4051# for both compiling C and C++ we need to have the C++ compiler decide
4052# the declaration of exit, since it's the most demanding environment.
4053cat >conftest.$ac_ext <<_ACEOF
4054#ifndef __cplusplus
4055  choke me
4056#endif
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060  (eval $ac_compile) 2>conftest.er1
4061  ac_status=$?
4062  grep -v '^ *+' conftest.er1 >conftest.err
4063  rm -f conftest.er1
4064  cat conftest.err >&5
4065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066  (exit $ac_status); } &&
4067	 { ac_try='test -z "$ac_c_werror_flag"
4068			 || test ! -s conftest.err'
4069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070  (eval $ac_try) 2>&5
4071  ac_status=$?
4072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073  (exit $ac_status); }; } &&
4074	 { ac_try='test -s conftest.$ac_objext'
4075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076  (eval $ac_try) 2>&5
4077  ac_status=$?
4078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079  (exit $ac_status); }; }; then
4080  for ac_declaration in \
4081   '' \
4082   'extern "C" void std::exit (int) throw (); using std::exit;' \
4083   'extern "C" void std::exit (int); using std::exit;' \
4084   'extern "C" void exit (int) throw ();' \
4085   'extern "C" void exit (int);' \
4086   'void exit (int);'
4087do
4088  cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h.  */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h.  */
4094$ac_declaration
4095#include <stdlib.h>
4096int
4097main ()
4098{
4099exit (42);
4100  ;
4101  return 0;
4102}
4103_ACEOF
4104rm -f conftest.$ac_objext
4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106  (eval $ac_compile) 2>conftest.er1
4107  ac_status=$?
4108  grep -v '^ *+' conftest.er1 >conftest.err
4109  rm -f conftest.er1
4110  cat conftest.err >&5
4111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112  (exit $ac_status); } &&
4113	 { ac_try='test -z "$ac_c_werror_flag"
4114			 || test ! -s conftest.err'
4115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116  (eval $ac_try) 2>&5
4117  ac_status=$?
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); }; } &&
4120	 { ac_try='test -s conftest.$ac_objext'
4121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122  (eval $ac_try) 2>&5
4123  ac_status=$?
4124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125  (exit $ac_status); }; }; then
4126  :
4127else
4128  echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131continue
4132fi
4133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134  cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h.  */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h.  */
4140$ac_declaration
4141int
4142main ()
4143{
4144exit (42);
4145  ;
4146  return 0;
4147}
4148_ACEOF
4149rm -f conftest.$ac_objext
4150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151  (eval $ac_compile) 2>conftest.er1
4152  ac_status=$?
4153  grep -v '^ *+' conftest.er1 >conftest.err
4154  rm -f conftest.er1
4155  cat conftest.err >&5
4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157  (exit $ac_status); } &&
4158	 { ac_try='test -z "$ac_c_werror_flag"
4159			 || test ! -s conftest.err'
4160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161  (eval $ac_try) 2>&5
4162  ac_status=$?
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); }; } &&
4165	 { ac_try='test -s conftest.$ac_objext'
4166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167  (eval $ac_try) 2>&5
4168  ac_status=$?
4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170  (exit $ac_status); }; }; then
4171  break
4172else
4173  echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
4176fi
4177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178done
4179rm -f conftest*
4180if test -n "$ac_declaration"; then
4181  echo '#ifdef __cplusplus' >>confdefs.h
4182  echo $ac_declaration      >>confdefs.h
4183  echo '#endif'             >>confdefs.h
4184fi
4185
4186else
4187  echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198
4199cat >>confdefs.h <<\_ACEOF
4200#define _GNU_SOURCE 1
4201_ACEOF
4202
4203
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4210echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4211# On Suns, sometimes $CPP names a directory.
4212if test -n "$CPP" && test -d "$CPP"; then
4213  CPP=
4214fi
4215if test -z "$CPP"; then
4216  if test "${ac_cv_prog_CPP+set}" = set; then
4217  echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219      # Double quotes because CPP needs to be expanded
4220    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221    do
4222      ac_preproc_ok=false
4223for ac_c_preproc_warn_flag in '' yes
4224do
4225  # Use a header file that comes with gcc, so configuring glibc
4226  # with a fresh cross-compiler works.
4227  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228  # <limits.h> exists even on freestanding compilers.
4229  # On the NeXT, cc -E runs the code through the compiler's parser,
4230  # not just through cpp. "Syntax error" is here to catch this case.
4231  cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h.  */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h.  */
4237#ifdef __STDC__
4238# include <limits.h>
4239#else
4240# include <assert.h>
4241#endif
4242		     Syntax error
4243_ACEOF
4244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246  ac_status=$?
4247  grep -v '^ *+' conftest.er1 >conftest.err
4248  rm -f conftest.er1
4249  cat conftest.err >&5
4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251  (exit $ac_status); } >/dev/null; then
4252  if test -s conftest.err; then
4253    ac_cpp_err=$ac_c_preproc_warn_flag
4254    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4255  else
4256    ac_cpp_err=
4257  fi
4258else
4259  ac_cpp_err=yes
4260fi
4261if test -z "$ac_cpp_err"; then
4262  :
4263else
4264  echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
4267  # Broken: fails on valid input.
4268continue
4269fi
4270rm -f conftest.err conftest.$ac_ext
4271
4272  # OK, works on sane cases.  Now check whether non-existent headers
4273  # can be detected and how.
4274  cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h.  */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h.  */
4280#include <ac_nonexistent.h>
4281_ACEOF
4282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284  ac_status=$?
4285  grep -v '^ *+' conftest.er1 >conftest.err
4286  rm -f conftest.er1
4287  cat conftest.err >&5
4288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289  (exit $ac_status); } >/dev/null; then
4290  if test -s conftest.err; then
4291    ac_cpp_err=$ac_c_preproc_warn_flag
4292    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4293  else
4294    ac_cpp_err=
4295  fi
4296else
4297  ac_cpp_err=yes
4298fi
4299if test -z "$ac_cpp_err"; then
4300  # Broken: success on invalid input.
4301continue
4302else
4303  echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306  # Passes both tests.
4307ac_preproc_ok=:
4308break
4309fi
4310rm -f conftest.err conftest.$ac_ext
4311
4312done
4313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314rm -f conftest.err conftest.$ac_ext
4315if $ac_preproc_ok; then
4316  break
4317fi
4318
4319    done
4320    ac_cv_prog_CPP=$CPP
4321
4322fi
4323  CPP=$ac_cv_prog_CPP
4324else
4325  ac_cv_prog_CPP=$CPP
4326fi
4327echo "$as_me:$LINENO: result: $CPP" >&5
4328echo "${ECHO_T}$CPP" >&6
4329ac_preproc_ok=false
4330for ac_c_preproc_warn_flag in '' yes
4331do
4332  # Use a header file that comes with gcc, so configuring glibc
4333  # with a fresh cross-compiler works.
4334  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335  # <limits.h> exists even on freestanding compilers.
4336  # On the NeXT, cc -E runs the code through the compiler's parser,
4337  # not just through cpp. "Syntax error" is here to catch this case.
4338  cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h.  */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h.  */
4344#ifdef __STDC__
4345# include <limits.h>
4346#else
4347# include <assert.h>
4348#endif
4349		     Syntax error
4350_ACEOF
4351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353  ac_status=$?
4354  grep -v '^ *+' conftest.er1 >conftest.err
4355  rm -f conftest.er1
4356  cat conftest.err >&5
4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358  (exit $ac_status); } >/dev/null; then
4359  if test -s conftest.err; then
4360    ac_cpp_err=$ac_c_preproc_warn_flag
4361    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4362  else
4363    ac_cpp_err=
4364  fi
4365else
4366  ac_cpp_err=yes
4367fi
4368if test -z "$ac_cpp_err"; then
4369  :
4370else
4371  echo "$as_me: failed program was:" >&5
4372sed 's/^/| /' conftest.$ac_ext >&5
4373
4374  # Broken: fails on valid input.
4375continue
4376fi
4377rm -f conftest.err conftest.$ac_ext
4378
4379  # OK, works on sane cases.  Now check whether non-existent headers
4380  # can be detected and how.
4381  cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h.  */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h.  */
4387#include <ac_nonexistent.h>
4388_ACEOF
4389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391  ac_status=$?
4392  grep -v '^ *+' conftest.er1 >conftest.err
4393  rm -f conftest.er1
4394  cat conftest.err >&5
4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396  (exit $ac_status); } >/dev/null; then
4397  if test -s conftest.err; then
4398    ac_cpp_err=$ac_c_preproc_warn_flag
4399    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400  else
4401    ac_cpp_err=
4402  fi
4403else
4404  ac_cpp_err=yes
4405fi
4406if test -z "$ac_cpp_err"; then
4407  # Broken: success on invalid input.
4408continue
4409else
4410  echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413  # Passes both tests.
4414ac_preproc_ok=:
4415break
4416fi
4417rm -f conftest.err conftest.$ac_ext
4418
4419done
4420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421rm -f conftest.err conftest.$ac_ext
4422if $ac_preproc_ok; then
4423  :
4424else
4425  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4428See \`config.log' for more details." >&5
4429echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4430See \`config.log' for more details." >&2;}
4431   { (exit 1); exit 1; }; }; }
4432fi
4433
4434ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439
4440
4441echo "$as_me:$LINENO: checking for egrep" >&5
4442echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4443if test "${ac_cv_prog_egrep+set}" = set; then
4444  echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4447    then ac_cv_prog_egrep='grep -E'
4448    else ac_cv_prog_egrep='egrep'
4449    fi
4450fi
4451echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4452echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4453 EGREP=$ac_cv_prog_egrep
4454
4455
4456echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4457echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4458if test "${ac_cv_header_stdc+set}" = set; then
4459  echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461  cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h.  */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h.  */
4467#include <stdlib.h>
4468#include <stdarg.h>
4469#include <string.h>
4470#include <float.h>
4471
4472int
4473main ()
4474{
4475
4476  ;
4477  return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext
4481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482  (eval $ac_compile) 2>conftest.er1
4483  ac_status=$?
4484  grep -v '^ *+' conftest.er1 >conftest.err
4485  rm -f conftest.er1
4486  cat conftest.err >&5
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); } &&
4489	 { ac_try='test -z "$ac_c_werror_flag"
4490			 || test ! -s conftest.err'
4491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492  (eval $ac_try) 2>&5
4493  ac_status=$?
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); }; } &&
4496	 { ac_try='test -s conftest.$ac_objext'
4497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498  (eval $ac_try) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; }; then
4502  ac_cv_header_stdc=yes
4503else
4504  echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507ac_cv_header_stdc=no
4508fi
4509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4510
4511if test $ac_cv_header_stdc = yes; then
4512  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513  cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h.  */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h.  */
4519#include <string.h>
4520
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523  $EGREP "memchr" >/dev/null 2>&1; then
4524  :
4525else
4526  ac_cv_header_stdc=no
4527fi
4528rm -f conftest*
4529
4530fi
4531
4532if test $ac_cv_header_stdc = yes; then
4533  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534  cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h.  */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h.  */
4540#include <stdlib.h>
4541
4542_ACEOF
4543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544  $EGREP "free" >/dev/null 2>&1; then
4545  :
4546else
4547  ac_cv_header_stdc=no
4548fi
4549rm -f conftest*
4550
4551fi
4552
4553if test $ac_cv_header_stdc = yes; then
4554  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555  if test "$cross_compiling" = yes; then
4556  :
4557else
4558  cat >conftest.$ac_ext <<_ACEOF
4559/* confdefs.h.  */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h.  */
4564#include <ctype.h>
4565#if ((' ' & 0x0FF) == 0x020)
4566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4568#else
4569# define ISLOWER(c) \
4570		   (('a' <= (c) && (c) <= 'i') \
4571		     || ('j' <= (c) && (c) <= 'r') \
4572		     || ('s' <= (c) && (c) <= 'z'))
4573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4574#endif
4575
4576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4577int
4578main ()
4579{
4580  int i;
4581  for (i = 0; i < 256; i++)
4582    if (XOR (islower (i), ISLOWER (i))
4583	|| toupper (i) != TOUPPER (i))
4584      exit(2);
4585  exit (0);
4586}
4587_ACEOF
4588rm -f conftest$ac_exeext
4589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590  (eval $ac_link) 2>&5
4591  ac_status=$?
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595  (eval $ac_try) 2>&5
4596  ac_status=$?
4597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598  (exit $ac_status); }; }; then
4599  :
4600else
4601  echo "$as_me: program exited with status $ac_status" >&5
4602echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605( exit $ac_status )
4606ac_cv_header_stdc=no
4607fi
4608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4609fi
4610fi
4611fi
4612echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613echo "${ECHO_T}$ac_cv_header_stdc" >&6
4614if test $ac_cv_header_stdc = yes; then
4615
4616cat >>confdefs.h <<\_ACEOF
4617#define STDC_HEADERS 1
4618_ACEOF
4619
4620fi
4621
4622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633		  inttypes.h stdint.h unistd.h
4634do
4635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636echo "$as_me:$LINENO: checking for $ac_header" >&5
4637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639  echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641  cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h.  */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h.  */
4647$ac_includes_default
4648
4649#include <$ac_header>
4650_ACEOF
4651rm -f conftest.$ac_objext
4652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653  (eval $ac_compile) 2>conftest.er1
4654  ac_status=$?
4655  grep -v '^ *+' conftest.er1 >conftest.err
4656  rm -f conftest.er1
4657  cat conftest.err >&5
4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659  (exit $ac_status); } &&
4660	 { ac_try='test -z "$ac_c_werror_flag"
4661			 || test ! -s conftest.err'
4662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663  (eval $ac_try) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; } &&
4667	 { ac_try='test -s conftest.$ac_objext'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; }; then
4673  eval "$as_ac_Header=yes"
4674else
4675  echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678eval "$as_ac_Header=no"
4679fi
4680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681fi
4682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685  cat >>confdefs.h <<_ACEOF
4686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687_ACEOF
4688
4689fi
4690
4691done
4692
4693
4694
4695  if test "${ac_cv_header_minix_config_h+set}" = set; then
4696  echo "$as_me:$LINENO: checking for minix/config.h" >&5
4697echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4698if test "${ac_cv_header_minix_config_h+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700fi
4701echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4702echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4703else
4704  # Is the header compilable?
4705echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4706echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4707cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h.  */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h.  */
4713$ac_includes_default
4714#include <minix/config.h>
4715_ACEOF
4716rm -f conftest.$ac_objext
4717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718  (eval $ac_compile) 2>conftest.er1
4719  ac_status=$?
4720  grep -v '^ *+' conftest.er1 >conftest.err
4721  rm -f conftest.er1
4722  cat conftest.err >&5
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); } &&
4725	 { ac_try='test -z "$ac_c_werror_flag"
4726			 || test ! -s conftest.err'
4727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728  (eval $ac_try) 2>&5
4729  ac_status=$?
4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731  (exit $ac_status); }; } &&
4732	 { ac_try='test -s conftest.$ac_objext'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; }; then
4738  ac_header_compiler=yes
4739else
4740  echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743ac_header_compiler=no
4744fi
4745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4747echo "${ECHO_T}$ac_header_compiler" >&6
4748
4749# Is the header present?
4750echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4751echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4752cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h.  */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h.  */
4758#include <minix/config.h>
4759_ACEOF
4760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762  ac_status=$?
4763  grep -v '^ *+' conftest.er1 >conftest.err
4764  rm -f conftest.er1
4765  cat conftest.err >&5
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); } >/dev/null; then
4768  if test -s conftest.err; then
4769    ac_cpp_err=$ac_c_preproc_warn_flag
4770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771  else
4772    ac_cpp_err=
4773  fi
4774else
4775  ac_cpp_err=yes
4776fi
4777if test -z "$ac_cpp_err"; then
4778  ac_header_preproc=yes
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783  ac_header_preproc=no
4784fi
4785rm -f conftest.err conftest.$ac_ext
4786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4787echo "${ECHO_T}$ac_header_preproc" >&6
4788
4789# So?  What about this header?
4790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4791  yes:no: )
4792    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4793echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4794    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4795echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4796    ac_header_preproc=yes
4797    ;;
4798  no:yes:* )
4799    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4800echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4801    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4802echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4803    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4804echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4805    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4806echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4807    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4808echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4809    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4810echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4811    (
4812      cat <<\_ASBOX
4813## ------------------------------------------ ##
4814## Report this to the AC_PACKAGE_NAME lists.  ##
4815## ------------------------------------------ ##
4816_ASBOX
4817    ) |
4818      sed "s/^/$as_me: WARNING:     /" >&2
4819    ;;
4820esac
4821echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4823if test "${ac_cv_header_minix_config_h+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826  ac_cv_header_minix_config_h=$ac_header_preproc
4827fi
4828echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4830
4831fi
4832if test $ac_cv_header_minix_config_h = yes; then
4833  MINIX=yes
4834else
4835  MINIX=
4836fi
4837
4838
4839  if test "$MINIX" = yes; then
4840
4841cat >>confdefs.h <<\_ACEOF
4842#define _POSIX_SOURCE 1
4843_ACEOF
4844
4845
4846cat >>confdefs.h <<\_ACEOF
4847#define _POSIX_1_SOURCE 2
4848_ACEOF
4849
4850
4851cat >>confdefs.h <<\_ACEOF
4852#define _MINIX 1
4853_ACEOF
4854
4855  fi
4856
4857
4858
4859  echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4861if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4862  echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864  cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h.  */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h.  */
4870
4871#	  define __EXTENSIONS__ 1
4872	  $ac_includes_default
4873int
4874main ()
4875{
4876
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883  (eval $ac_compile) 2>conftest.er1
4884  ac_status=$?
4885  grep -v '^ *+' conftest.er1 >conftest.err
4886  rm -f conftest.er1
4887  cat conftest.err >&5
4888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889  (exit $ac_status); } &&
4890	 { ac_try='test -z "$ac_c_werror_flag"
4891			 || test ! -s conftest.err'
4892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893  (eval $ac_try) 2>&5
4894  ac_status=$?
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); }; } &&
4897	 { ac_try='test -s conftest.$ac_objext'
4898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899  (eval $ac_try) 2>&5
4900  ac_status=$?
4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902  (exit $ac_status); }; }; then
4903  ac_cv_safe_to_define___extensions__=yes
4904else
4905  echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908ac_cv_safe_to_define___extensions__=no
4909fi
4910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911fi
4912echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4913echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4914  test $ac_cv_safe_to_define___extensions__ = yes &&
4915    cat >>confdefs.h <<\_ACEOF
4916#define __EXTENSIONS__ 1
4917_ACEOF
4918
4919  cat >>confdefs.h <<\_ACEOF
4920#define _ALL_SOURCE 1
4921_ACEOF
4922
4923  cat >>confdefs.h <<\_ACEOF
4924#define _GNU_SOURCE 1
4925_ACEOF
4926
4927  cat >>confdefs.h <<\_ACEOF
4928#define _POSIX_PTHREAD_SEMANTICS 1
4929_ACEOF
4930
4931  cat >>confdefs.h <<\_ACEOF
4932#define _TANDEM_SOURCE 1
4933_ACEOF
4934
4935
4936
4937
4938
4939macro_version='2.1a'
4940macro_revision='1.2435'
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953ltmain="$ac_aux_dir/ltmain.sh"
4954
4955# Set options
4956
4957enable_dlopen=no
4958
4959
4960enable_win32_dll=no
4961
4962
4963
4964# Check whether --enable-static or --disable-static was given.
4965if test "${enable_static+set}" = set; then
4966  enableval="$enable_static"
4967  p=${PACKAGE-default}
4968    case $enableval in
4969    yes) enable_static=yes ;;
4970    no) enable_static=no ;;
4971    *)
4972     enable_static=no
4973      # Look at the argument we got.  We use all the common list separators.
4974      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4975      for pkg in $enableval; do
4976	IFS="$lt_save_ifs"
4977	if test "X$pkg" = "X$p"; then
4978	  enable_static=yes
4979	fi
4980      done
4981      IFS="$lt_save_ifs"
4982      ;;
4983    esac
4984else
4985  enable_static=yes
4986fi;
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996# Check whether --with-pic or --without-pic was given.
4997if test "${with_pic+set}" = set; then
4998  withval="$with_pic"
4999  pic_mode="$withval"
5000else
5001  pic_mode=default
5002fi;
5003
5004test -z "$pic_mode" && pic_mode=default
5005
5006
5007
5008
5009
5010
5011
5012# Check whether --enable-fast-install or --disable-fast-install was given.
5013if test "${enable_fast_install+set}" = set; then
5014  enableval="$enable_fast_install"
5015  p=${PACKAGE-default}
5016    case $enableval in
5017    yes) enable_fast_install=yes ;;
5018    no) enable_fast_install=no ;;
5019    *)
5020      enable_fast_install=no
5021      # Look at the argument we got.  We use all the common list separators.
5022      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5023      for pkg in $enableval; do
5024	IFS="$lt_save_ifs"
5025	if test "X$pkg" = "X$p"; then
5026	  enable_fast_install=yes
5027	fi
5028      done
5029      IFS="$lt_save_ifs"
5030      ;;
5031    esac
5032else
5033  enable_fast_install=yes
5034fi;
5035
5036
5037
5038
5039
5040
5041
5042
5043echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5044echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5045if test "${lt_cv_path_SED+set}" = set; then
5046  echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048  # Loop through the user's path and test for sed and gsed.
5049# Then use that list of sed's as ones to test for truncation.
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053  IFS=$as_save_IFS
5054  test -z "$as_dir" && as_dir=.
5055  for lt_ac_prog in sed gsed; do
5056    for ac_exec_ext in '' $ac_executable_extensions; do
5057      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5058        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5059      fi
5060    done
5061  done
5062done
5063IFS=$as_save_IFS
5064lt_ac_max=0
5065lt_ac_count=0
5066# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5067# along with /bin/sed that truncates output.
5068for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5069  test ! -f $lt_ac_sed && continue
5070  cat /dev/null > conftest.in
5071  lt_ac_count=0
5072  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5073  # Check for GNU sed and select it if it is found.
5074  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5075    lt_cv_path_SED=$lt_ac_sed
5076    break
5077  fi
5078  while true; do
5079    cat conftest.in conftest.in >conftest.tmp
5080    mv conftest.tmp conftest.in
5081    cp conftest.in conftest.nl
5082    echo >>conftest.nl
5083    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5084    cmp -s conftest.out conftest.nl || break
5085    # 10000 chars as input seems more than enough
5086    test $lt_ac_count -gt 10 && break
5087    lt_ac_count=`expr $lt_ac_count + 1`
5088    if test $lt_ac_count -gt $lt_ac_max; then
5089      lt_ac_max=$lt_ac_count
5090      lt_cv_path_SED=$lt_ac_sed
5091    fi
5092  done
5093done
5094
5095fi
5096
5097SED=$lt_cv_path_SED
5098
5099echo "$as_me:$LINENO: result: $SED" >&5
5100echo "${ECHO_T}$SED" >&6
5101
5102test -z "$SED" && SED=sed
5103Xsed="$SED -e 1s/^X//"
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115echo "$as_me:$LINENO: checking for fgrep" >&5
5116echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5117if test "${ac_cv_prog_fgrep+set}" = set; then
5118  echo $ECHO_N "(cached) $ECHO_C" >&6
5119else
5120  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5121    then ac_cv_prog_fgrep='grep -F'
5122    else ac_cv_prog_fgrep='fgrep'
5123    fi
5124fi
5125echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5126echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5127 FGREP=$ac_cv_prog_fgrep
5128
5129
5130test -z "$GREP" && GREP=grep
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150# Check whether --with-gnu-ld or --without-gnu-ld was given.
5151if test "${with_gnu_ld+set}" = set; then
5152  withval="$with_gnu_ld"
5153  test "$withval" = no || with_gnu_ld=yes
5154else
5155  with_gnu_ld=no
5156fi;
5157ac_prog=ld
5158if test "$GCC" = yes; then
5159  # Check if gcc -print-prog-name=ld gives a path.
5160  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5161echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5162  case $host in
5163  *-*-mingw*)
5164    # gcc leaves a trailing carriage return which upsets mingw
5165    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5166  *)
5167    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5168  esac
5169  case $ac_prog in
5170    # Accept absolute paths.
5171    [\\/]* | ?:[\\/]*)
5172      re_direlt='/[^/][^/]*/\.\./'
5173      # Canonicalize the pathname of ld
5174      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5175      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5176	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5177      done
5178      test -z "$LD" && LD="$ac_prog"
5179      ;;
5180  "")
5181    # If it fails, then pretend we aren't using GCC.
5182    ac_prog=ld
5183    ;;
5184  *)
5185    # If it is relative, then search for the first ld in PATH.
5186    with_gnu_ld=unknown
5187    ;;
5188  esac
5189elif test "$with_gnu_ld" = yes; then
5190  echo "$as_me:$LINENO: checking for GNU ld" >&5
5191echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5192else
5193  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5194echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5195fi
5196if test "${lt_cv_path_LD+set}" = set; then
5197  echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199  if test -z "$LD"; then
5200  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5201  for ac_dir in $PATH; do
5202    IFS="$lt_save_ifs"
5203    test -z "$ac_dir" && ac_dir=.
5204    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5205      lt_cv_path_LD="$ac_dir/$ac_prog"
5206      # Check to see if the program is GNU ld.  I'd rather use --version,
5207      # but apparently some variants of GNU ld only accept -v.
5208      # Break only if it was the GNU/non-GNU ld that we prefer.
5209      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5210      *GNU* | *'with BFD'*)
5211	test "$with_gnu_ld" != no && break
5212	;;
5213      *)
5214	test "$with_gnu_ld" != yes && break
5215	;;
5216      esac
5217    fi
5218  done
5219  IFS="$lt_save_ifs"
5220else
5221  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5222fi
5223fi
5224
5225LD="$lt_cv_path_LD"
5226if test -n "$LD"; then
5227  echo "$as_me:$LINENO: result: $LD" >&5
5228echo "${ECHO_T}$LD" >&6
5229else
5230  echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232fi
5233test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5234echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5235   { (exit 1); exit 1; }; }
5236echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5237echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5238if test "${lt_cv_prog_gnu_ld+set}" = set; then
5239  echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242case `$LD -v 2>&1 </dev/null` in
5243*GNU* | *'with BFD'*)
5244  lt_cv_prog_gnu_ld=yes
5245  ;;
5246*)
5247  lt_cv_prog_gnu_ld=no
5248  ;;
5249esac
5250fi
5251echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5252echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5253with_gnu_ld=$lt_cv_prog_gnu_ld
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5265echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5266if test "${lt_cv_path_NM+set}" = set; then
5267  echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269  if test -n "$NM"; then
5270  # Let the user override the test.
5271  lt_cv_path_NM="$NM"
5272else
5273  lt_nm_to_check="${ac_tool_prefix}nm"
5274  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5275    lt_nm_to_check="$lt_nm_to_check nm"
5276  fi
5277  for lt_tmp_nm in $lt_nm_to_check; do
5278    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5279    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5280      IFS="$lt_save_ifs"
5281      test -z "$ac_dir" && ac_dir=.
5282      tmp_nm="$ac_dir/$lt_tmp_nm"
5283      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5284	# Check to see if the nm accepts a BSD-compat flag.
5285	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5286	#   nm: unknown option "B" ignored
5287	# Tru64's nm complains that /dev/null is an invalid object file
5288	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5289	*/dev/null* | *'Invalid file or object type'*)
5290	  lt_cv_path_NM="$tmp_nm -B"
5291	  break
5292	  ;;
5293	*)
5294	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5295	  */dev/null*)
5296	    lt_cv_path_NM="$tmp_nm -p"
5297	    break
5298	    ;;
5299	  *)
5300	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5301	    continue # so that we can try to find one that supports BSD flags
5302	    ;;
5303	  esac
5304	  ;;
5305	esac
5306      fi
5307    done
5308    IFS="$lt_save_ifs"
5309  done
5310  : ${lt_cv_path_NM=no}
5311fi
5312fi
5313echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5314echo "${ECHO_T}$lt_cv_path_NM" >&6
5315if test "$lt_cv_path_NM" != "no"; then
5316  NM="$lt_cv_path_NM"
5317else
5318  # Didn't find any BSD compatible name lister, look for dumpbin.
5319  if test -n "$ac_tool_prefix"; then
5320  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5321  do
5322    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5324echo "$as_me:$LINENO: checking for $ac_word" >&5
5325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5327  echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329  if test -n "$DUMPBIN"; then
5330  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
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_DUMPBIN="$ac_tool_prefix$ac_prog"
5340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341    break 2
5342  fi
5343done
5344done
5345
5346fi
5347fi
5348DUMPBIN=$ac_cv_prog_DUMPBIN
5349if test -n "$DUMPBIN"; then
5350  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5351echo "${ECHO_T}$DUMPBIN" >&6
5352else
5353  echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355fi
5356
5357    test -n "$DUMPBIN" && break
5358  done
5359fi
5360if test -z "$DUMPBIN"; then
5361  ac_ct_DUMPBIN=$DUMPBIN
5362  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5363do
5364  # Extract the first word of "$ac_prog", so it can be a program name with args.
5365set dummy $ac_prog; ac_word=$2
5366echo "$as_me:$LINENO: checking for $ac_word" >&5
5367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5369  echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371  if test -n "$ac_ct_DUMPBIN"; then
5372  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377  IFS=$as_save_IFS
5378  test -z "$as_dir" && as_dir=.
5379  for ac_exec_ext in '' $ac_executable_extensions; do
5380  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383    break 2
5384  fi
5385done
5386done
5387
5388fi
5389fi
5390ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5391if test -n "$ac_ct_DUMPBIN"; then
5392  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5393echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5394else
5395  echo "$as_me:$LINENO: result: no" >&5
5396echo "${ECHO_T}no" >&6
5397fi
5398
5399  test -n "$ac_ct_DUMPBIN" && break
5400done
5401test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5402
5403  DUMPBIN=$ac_ct_DUMPBIN
5404fi
5405
5406
5407  if test "$DUMPBIN" != ":"; then
5408    NM="$DUMPBIN"
5409  fi
5410fi
5411test -z "$NM" && NM=nm
5412
5413
5414
5415
5416
5417
5418echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5419echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5420if test "${lt_cv_nm_interface+set}" = set; then
5421  echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423  lt_cv_nm_interface="BSD nm"
5424  echo "int some_variable = 0;" > conftest.$ac_ext
5425  (eval echo "\"\$as_me:5425: $ac_compile\"" >&5)
5426  (eval "$ac_compile" 2>conftest.err)
5427  cat conftest.err >&5
5428  (eval echo "\"\$as_me:5428: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5429  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5430  cat conftest.err >&5
5431  (eval echo "\"\$as_me:5431: output\"" >&5)
5432  cat conftest.out >&5
5433  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5434    lt_cv_nm_interface="MS dumpbin"
5435  fi
5436  rm -f conftest*
5437fi
5438echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5439echo "${ECHO_T}$lt_cv_nm_interface" >&6
5440
5441echo "$as_me:$LINENO: checking whether ln -s works" >&5
5442echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5443LN_S=$as_ln_s
5444if test "$LN_S" = "ln -s"; then
5445  echo "$as_me:$LINENO: result: yes" >&5
5446echo "${ECHO_T}yes" >&6
5447else
5448  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5449echo "${ECHO_T}no, using $LN_S" >&6
5450fi
5451
5452# find the maximum length of command line arguments
5453echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5454echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5455if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5456  echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458    i=0
5459  teststring="ABCD"
5460
5461  case $build_os in
5462  msdosdjgpp*)
5463    # On DJGPP, this test can blow up pretty badly due to problems in libc
5464    # (any single argument exceeding 2000 bytes causes a buffer overrun
5465    # during glob expansion).  Even if it were fixed, the result of this
5466    # check would be larger than it should be.
5467    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5468    ;;
5469
5470  gnu*)
5471    # Under GNU Hurd, this test is not required because there is
5472    # no limit to the length of command line arguments.
5473    # Libtool will interpret -1 as no limit whatsoever
5474    lt_cv_sys_max_cmd_len=-1;
5475    ;;
5476
5477  cygwin* | mingw*)
5478    # On Win9x/ME, this test blows up -- it succeeds, but takes
5479    # about 5 minutes as the teststring grows exponentially.
5480    # Worse, since 9x/ME are not pre-emptively multitasking,
5481    # you end up with a "frozen" computer, even though with patience
5482    # the test eventually succeeds (with a max line length of 256k).
5483    # Instead, let's just punt: use the minimum linelength reported by
5484    # all of the supported platforms: 8192 (on NT/2K/XP).
5485    lt_cv_sys_max_cmd_len=8192;
5486    ;;
5487
5488  amigaos*)
5489    # On AmigaOS with pdksh, this test takes hours, literally.
5490    # So we just punt and use a minimum line length of 8192.
5491    lt_cv_sys_max_cmd_len=8192;
5492    ;;
5493
5494  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5495    # This has been around since 386BSD, at least.  Likely further.
5496    if test -x /sbin/sysctl; then
5497      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5498    elif test -x /usr/sbin/sysctl; then
5499      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5500    else
5501      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5502    fi
5503    # And add a safety zone
5504    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5505    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5506    ;;
5507
5508  interix*)
5509    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5510    lt_cv_sys_max_cmd_len=196608
5511    ;;
5512
5513  osf*)
5514    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5515    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5516    # nice to cause kernel panics so lets avoid the loop below.
5517    # First set a reasonable default.
5518    lt_cv_sys_max_cmd_len=16384
5519    #
5520    if test -x /sbin/sysconfig; then
5521      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5522        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5523      esac
5524    fi
5525    ;;
5526  sco3.2v5*)
5527    lt_cv_sys_max_cmd_len=102400
5528    ;;
5529  sysv5* | sco5v6* | sysv4.2uw2*)
5530    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5531    if test -n "$kargmax"; then
5532      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5533    else
5534      lt_cv_sys_max_cmd_len=32768
5535    fi
5536    ;;
5537  *)
5538    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5539    if test -n $lt_cv_sys_max_cmd_len; then
5540      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5541      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5542    else
5543      # Make teststring a little bigger before we do anything with it.
5544      # a 1K string should be a reasonable start.
5545      for i in 1 2 3 4 5 6 7 8 ; do
5546        teststring=$teststring$teststring
5547      done
5548      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5549      # If test is not a shell built-in, we'll probably end up computing a
5550      # maximum length that is only half of the actual maximum length, but
5551      # we can't tell.
5552      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5553	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5554	      test $i != 17 # 1/2 MB should be enough
5555      do
5556        i=`expr $i + 1`
5557        teststring=$teststring$teststring
5558      done
5559      # Only check the string length outside the loop.
5560      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5561      teststring=
5562      # Add a significant safety factor because C++ compilers can tack on
5563      # massive amounts of additional arguments before passing them to the
5564      # linker.  It appears as though 1/2 is a usable value.
5565      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5566    fi
5567    ;;
5568  esac
5569
5570fi
5571
5572if test -n $lt_cv_sys_max_cmd_len ; then
5573  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5574echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5575else
5576  echo "$as_me:$LINENO: result: none" >&5
5577echo "${ECHO_T}none" >&6
5578fi
5579max_cmd_len=$lt_cv_sys_max_cmd_len
5580
5581
5582
5583
5584
5585
5586
5587: ${CP="cp -f"}
5588: ${MV="mv -f"}
5589: ${RM="rm -f"}
5590
5591echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5592echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5593# Try some XSI features
5594xsi_shell=no
5595( _lt_dummy="a/b/c"
5596  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5597      = c,a/b,, ) >/dev/null 2>&1 \
5598  && xsi_shell=yes
5599echo "$as_me:$LINENO: result: $xsi_shell" >&5
5600echo "${ECHO_T}$xsi_shell" >&6
5601
5602
5603echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5604echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5605lt_shell_append=no
5606( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5607    >/dev/null 2>&1 \
5608  && lt_shell_append=yes
5609echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5610echo "${ECHO_T}$lt_shell_append" >&6
5611
5612
5613if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5614  lt_unset=unset
5615else
5616  lt_unset=false
5617fi
5618
5619
5620
5621
5622
5623# test EBCDIC or ASCII
5624case `echo X|tr X '\101'` in
5625 A) # ASCII based system
5626    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5627  lt_SP2NL='tr \040 \012'
5628  lt_NL2SP='tr \015\012 \040\040'
5629  ;;
5630 *) # EBCDIC based system
5631  lt_SP2NL='tr \100 \n'
5632  lt_NL2SP='tr \r\n \100\100'
5633  ;;
5634esac
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5645echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5646if test "${lt_cv_ld_reload_flag+set}" = set; then
5647  echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649  lt_cv_ld_reload_flag='-r'
5650fi
5651echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5652echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5653reload_flag=$lt_cv_ld_reload_flag
5654case $reload_flag in
5655"" | " "*) ;;
5656*) reload_flag=" $reload_flag" ;;
5657esac
5658reload_cmds='$LD$reload_flag -o $output$reload_objs'
5659case $host_os in
5660  darwin*)
5661    if test "$GCC" = yes; then
5662      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5663    else
5664      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5665    fi
5666    ;;
5667esac
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5679echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5680if test "${lt_cv_deplibs_check_method+set}" = set; then
5681  echo $ECHO_N "(cached) $ECHO_C" >&6
5682else
5683  lt_cv_file_magic_cmd='$MAGIC_CMD'
5684lt_cv_file_magic_test_file=
5685lt_cv_deplibs_check_method='unknown'
5686# Need to set the preceding variable on all platforms that support
5687# interlibrary dependencies.
5688# 'none' -- dependencies not supported.
5689# `unknown' -- same as none, but documents that we really don't know.
5690# 'pass_all' -- all dependencies passed with no checks.
5691# 'test_compile' -- check by making test program.
5692# 'file_magic [[regex]]' -- check by looking for files in library path
5693# which responds to the $file_magic_cmd with a given extended regex.
5694# If you have `file' or equivalent on your system and you're not sure
5695# whether `pass_all' will *always* work, you probably want this one.
5696
5697case $host_os in
5698aix[4-9]*)
5699  lt_cv_deplibs_check_method=pass_all
5700  ;;
5701
5702beos*)
5703  lt_cv_deplibs_check_method=pass_all
5704  ;;
5705
5706bsdi[45]*)
5707  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5708  lt_cv_file_magic_cmd='/usr/bin/file -L'
5709  lt_cv_file_magic_test_file=/shlib/libc.so
5710  ;;
5711
5712cygwin*)
5713  # func_win32_libid is a shell function defined in ltmain.sh
5714  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715  lt_cv_file_magic_cmd='func_win32_libid'
5716  ;;
5717
5718mingw* | pw32*)
5719  # Base MSYS/MinGW do not provide the 'file' command needed by
5720  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5721  # unless we find 'file', for example because we are cross-compiling.
5722  if ( file / ) >/dev/null 2>&1; then
5723    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724    lt_cv_file_magic_cmd='func_win32_libid'
5725  else
5726    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5727    lt_cv_file_magic_cmd='$OBJDUMP -f'
5728  fi
5729  ;;
5730
5731darwin* | rhapsody*)
5732  lt_cv_deplibs_check_method=pass_all
5733  ;;
5734
5735freebsd* | dragonfly*)
5736  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5737    case $host_cpu in
5738    i*86 )
5739      # Not sure whether the presence of OpenBSD here was a mistake.
5740      # Let's accept both of them until this is cleared up.
5741      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5742      lt_cv_file_magic_cmd=/usr/bin/file
5743      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5744      ;;
5745    esac
5746  else
5747    lt_cv_deplibs_check_method=pass_all
5748  fi
5749  ;;
5750
5751gnu*)
5752  lt_cv_deplibs_check_method=pass_all
5753  ;;
5754
5755hpux10.20* | hpux11*)
5756  lt_cv_file_magic_cmd=/usr/bin/file
5757  case $host_cpu in
5758  ia64*)
5759    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5760    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5761    ;;
5762  hppa*64*)
5763    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]'
5764    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5765    ;;
5766  *)
5767    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5768    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5769    ;;
5770  esac
5771  ;;
5772
5773interix[3-9]*)
5774  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5775  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5776  ;;
5777
5778irix5* | irix6* | nonstopux*)
5779  case $LD in
5780  *-32|*"-32 ") libmagic=32-bit;;
5781  *-n32|*"-n32 ") libmagic=N32;;
5782  *-64|*"-64 ") libmagic=64-bit;;
5783  *) libmagic=never-match;;
5784  esac
5785  lt_cv_deplibs_check_method=pass_all
5786  ;;
5787
5788# This must be Linux ELF.
5789linux* | k*bsd*-gnu)
5790  lt_cv_deplibs_check_method=pass_all
5791  ;;
5792
5793netbsd*)
5794  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796  else
5797    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5798  fi
5799  ;;
5800
5801newos6*)
5802  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5803  lt_cv_file_magic_cmd=/usr/bin/file
5804  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5805  ;;
5806
5807*nto* | *qnx*)
5808  lt_cv_deplibs_check_method=pass_all
5809  ;;
5810
5811openbsd*)
5812  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814  else
5815    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5816  fi
5817  ;;
5818
5819osf3* | osf4* | osf5*)
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822
5823rdos*)
5824  lt_cv_deplibs_check_method=pass_all
5825  ;;
5826
5827solaris*)
5828  lt_cv_deplibs_check_method=pass_all
5829  ;;
5830
5831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5832  lt_cv_deplibs_check_method=pass_all
5833  ;;
5834
5835sysv4 | sysv4.3*)
5836  case $host_vendor in
5837  motorola)
5838    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]'
5839    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5840    ;;
5841  ncr)
5842    lt_cv_deplibs_check_method=pass_all
5843    ;;
5844  sequent)
5845    lt_cv_file_magic_cmd='/bin/file'
5846    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5847    ;;
5848  sni)
5849    lt_cv_file_magic_cmd='/bin/file'
5850    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5851    lt_cv_file_magic_test_file=/lib/libc.so
5852    ;;
5853  siemens)
5854    lt_cv_deplibs_check_method=pass_all
5855    ;;
5856  pc)
5857    lt_cv_deplibs_check_method=pass_all
5858    ;;
5859  esac
5860  ;;
5861
5862tpf*)
5863  lt_cv_deplibs_check_method=pass_all
5864  ;;
5865esac
5866
5867fi
5868echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5869echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5870file_magic_cmd=$lt_cv_file_magic_cmd
5871deplibs_check_method=$lt_cv_deplibs_check_method
5872test -z "$deplibs_check_method" && deplibs_check_method=unknown
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885if test -n "$ac_tool_prefix"; then
5886  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}ar; ac_word=$2
5888echo "$as_me:$LINENO: checking for $ac_word" >&5
5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890if test "${ac_cv_prog_AR+set}" = set; then
5891  echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893  if test -n "$AR"; then
5894  ac_cv_prog_AR="$AR" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899  IFS=$as_save_IFS
5900  test -z "$as_dir" && as_dir=.
5901  for ac_exec_ext in '' $ac_executable_extensions; do
5902  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903    ac_cv_prog_AR="${ac_tool_prefix}ar"
5904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905    break 2
5906  fi
5907done
5908done
5909
5910fi
5911fi
5912AR=$ac_cv_prog_AR
5913if test -n "$AR"; then
5914  echo "$as_me:$LINENO: result: $AR" >&5
5915echo "${ECHO_T}$AR" >&6
5916else
5917  echo "$as_me:$LINENO: result: no" >&5
5918echo "${ECHO_T}no" >&6
5919fi
5920
5921fi
5922if test -z "$ac_cv_prog_AR"; then
5923  ac_ct_AR=$AR
5924  # Extract the first word of "ar", so it can be a program name with args.
5925set dummy ar; ac_word=$2
5926echo "$as_me:$LINENO: checking for $ac_word" >&5
5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5929  echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931  if test -n "$ac_ct_AR"; then
5932  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939  for ac_exec_ext in '' $ac_executable_extensions; do
5940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941    ac_cv_prog_ac_ct_AR="ar"
5942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946done
5947
5948  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5949fi
5950fi
5951ac_ct_AR=$ac_cv_prog_ac_ct_AR
5952if test -n "$ac_ct_AR"; then
5953  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5954echo "${ECHO_T}$ac_ct_AR" >&6
5955else
5956  echo "$as_me:$LINENO: result: no" >&5
5957echo "${ECHO_T}no" >&6
5958fi
5959
5960  AR=$ac_ct_AR
5961else
5962  AR="$ac_cv_prog_AR"
5963fi
5964
5965test -z "$AR" && AR=ar
5966test -z "$AR_FLAGS" && AR_FLAGS=cru
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978if test -n "$ac_tool_prefix"; then
5979  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5980set dummy ${ac_tool_prefix}strip; ac_word=$2
5981echo "$as_me:$LINENO: checking for $ac_word" >&5
5982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983if test "${ac_cv_prog_STRIP+set}" = set; then
5984  echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986  if test -n "$STRIP"; then
5987  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5988else
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992  IFS=$as_save_IFS
5993  test -z "$as_dir" && as_dir=.
5994  for ac_exec_ext in '' $ac_executable_extensions; do
5995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998    break 2
5999  fi
6000done
6001done
6002
6003fi
6004fi
6005STRIP=$ac_cv_prog_STRIP
6006if test -n "$STRIP"; then
6007  echo "$as_me:$LINENO: result: $STRIP" >&5
6008echo "${ECHO_T}$STRIP" >&6
6009else
6010  echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6
6012fi
6013
6014fi
6015if test -z "$ac_cv_prog_STRIP"; then
6016  ac_ct_STRIP=$STRIP
6017  # Extract the first word of "strip", so it can be a program name with args.
6018set dummy strip; ac_word=$2
6019echo "$as_me:$LINENO: checking for $ac_word" >&5
6020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6021if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6022  echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024  if test -n "$ac_ct_STRIP"; then
6025  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030  IFS=$as_save_IFS
6031  test -z "$as_dir" && as_dir=.
6032  for ac_exec_ext in '' $ac_executable_extensions; do
6033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034    ac_cv_prog_ac_ct_STRIP="strip"
6035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036    break 2
6037  fi
6038done
6039done
6040
6041  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6042fi
6043fi
6044ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6045if test -n "$ac_ct_STRIP"; then
6046  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6047echo "${ECHO_T}$ac_ct_STRIP" >&6
6048else
6049  echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051fi
6052
6053  STRIP=$ac_ct_STRIP
6054else
6055  STRIP="$ac_cv_prog_STRIP"
6056fi
6057
6058test -z "$STRIP" && STRIP=:
6059
6060
6061
6062
6063
6064
6065if test -n "$ac_tool_prefix"; then
6066  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6068echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070if test "${ac_cv_prog_RANLIB+set}" = set; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073  if test -n "$RANLIB"; then
6074  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079  IFS=$as_save_IFS
6080  test -z "$as_dir" && as_dir=.
6081  for ac_exec_ext in '' $ac_executable_extensions; do
6082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085    break 2
6086  fi
6087done
6088done
6089
6090fi
6091fi
6092RANLIB=$ac_cv_prog_RANLIB
6093if test -n "$RANLIB"; then
6094  echo "$as_me:$LINENO: result: $RANLIB" >&5
6095echo "${ECHO_T}$RANLIB" >&6
6096else
6097  echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099fi
6100
6101fi
6102if test -z "$ac_cv_prog_RANLIB"; then
6103  ac_ct_RANLIB=$RANLIB
6104  # Extract the first word of "ranlib", so it can be a program name with args.
6105set dummy ranlib; ac_word=$2
6106echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6109  echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111  if test -n "$ac_ct_RANLIB"; then
6112  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117  IFS=$as_save_IFS
6118  test -z "$as_dir" && as_dir=.
6119  for ac_exec_ext in '' $ac_executable_extensions; do
6120  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121    ac_cv_prog_ac_ct_RANLIB="ranlib"
6122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123    break 2
6124  fi
6125done
6126done
6127
6128  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6129fi
6130fi
6131ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6132if test -n "$ac_ct_RANLIB"; then
6133  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6134echo "${ECHO_T}$ac_ct_RANLIB" >&6
6135else
6136  echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
6138fi
6139
6140  RANLIB=$ac_ct_RANLIB
6141else
6142  RANLIB="$ac_cv_prog_RANLIB"
6143fi
6144
6145test -z "$RANLIB" && RANLIB=:
6146
6147
6148
6149
6150
6151
6152# Determine commands to create old-style static archives.
6153old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6154old_postinstall_cmds='chmod 644 $oldlib'
6155old_postuninstall_cmds=
6156
6157if test -n "$RANLIB"; then
6158  case $host_os in
6159  openbsd*)
6160    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6161    ;;
6162  *)
6163    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6164    ;;
6165  esac
6166  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6167fi
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202# If no C compiler was specified, use CC.
6203LTCC=${LTCC-"$CC"}
6204
6205# If no C compiler flags were specified, use CFLAGS.
6206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6207
6208# Allow CC to be a program name with arguments.
6209compiler=$CC
6210
6211
6212# Check for command to grab the raw symbol name followed by C symbol from nm.
6213echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6214echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6215if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6216  echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218
6219# These are sane defaults that work on at least a few old systems.
6220# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6221
6222# Character class describing NM global symbol codes.
6223symcode='[BCDEGRST]'
6224
6225# Regexp to match symbols that can be accessed directly from C.
6226sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6227
6228# Define system-specific variables.
6229case $host_os in
6230aix*)
6231  symcode='[BCDT]'
6232  ;;
6233cygwin* | mingw* | pw32*)
6234  symcode='[ABCDGISTW]'
6235  ;;
6236hpux*)
6237  if test "$host_cpu" = ia64; then
6238    symcode='[ABCDEGRST]'
6239  fi
6240  ;;
6241irix* | nonstopux*)
6242  symcode='[BCDEGRST]'
6243  ;;
6244osf*)
6245  symcode='[BCDEGQRST]'
6246  ;;
6247solaris*)
6248  symcode='[BDRT]'
6249  ;;
6250sco3.2v5*)
6251  symcode='[DT]'
6252  ;;
6253sysv4.2uw2*)
6254  symcode='[DT]'
6255  ;;
6256sysv5* | sco5v6* | unixware* | OpenUNIX*)
6257  symcode='[ABDT]'
6258  ;;
6259sysv4)
6260  symcode='[DFNSTU]'
6261  ;;
6262esac
6263
6264# If we're using GNU nm, then use its standard symbol codes.
6265case `$NM -V 2>&1` in
6266*GNU* | *'with BFD'*)
6267  symcode='[ABCDGIRSTW]' ;;
6268esac
6269
6270# Transform an extracted symbol line into a proper C declaration.
6271# Some systems (esp. on ia64) link data and code symbols differently,
6272# so use this general approach.
6273lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6274
6275# Transform an extracted symbol line into symbol name and symbol address
6276lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6277
6278# Handle CRLF in mingw tool chain
6279opt_cr=
6280case $build_os in
6281mingw*)
6282  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6283  ;;
6284esac
6285
6286# Try without a prefix underscore, then with it.
6287for ac_symprfx in "" "_"; do
6288
6289  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290  symxfrm="\\1 $ac_symprfx\\2 \\2"
6291
6292  # Write the raw and C identifiers.
6293  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294    # Fake it for dumpbin and say T for any non-static function
6295    # and D for any global variable.
6296    # Also find C++ and __fastcall symbols from MSVC++,
6297    # which start with @ or ?.
6298    lt_cv_sys_global_symbol_pipe="$AWK '"\
6299"     {last_section=section; section=\$ 3};"\
6300"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6301"     \$ 0!~/External *\|/{next};"\
6302"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6303"     {if(hide[section]) next};"\
6304"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6305"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6306"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6307"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6308"     ' prfx=^$ac_symprfx"
6309  else
6310    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6311  fi
6312
6313  # Check to see that the pipe works correctly.
6314  pipe_works=no
6315
6316  rm -f conftest*
6317  cat > conftest.$ac_ext <<_LT_EOF
6318#ifdef __cplusplus
6319extern "C" {
6320#endif
6321char nm_test_var;
6322void nm_test_func(void);
6323void nm_test_func(void){}
6324#ifdef __cplusplus
6325}
6326#endif
6327int main(){nm_test_var='a';nm_test_func();return(0);}
6328_LT_EOF
6329
6330  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331  (eval $ac_compile) 2>&5
6332  ac_status=$?
6333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334  (exit $ac_status); }; then
6335    # Now try to grab the symbols.
6336    nlist=conftest.nm
6337    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6338  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6339  ac_status=$?
6340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341  (exit $ac_status); } && test -s "$nlist"; then
6342      # Try sorting and uniquifying the output.
6343      if sort "$nlist" | uniq > "$nlist"T; then
6344	mv -f "$nlist"T "$nlist"
6345      else
6346	rm -f "$nlist"T
6347      fi
6348
6349      # Make sure that we snagged all the symbols we need.
6350      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6351	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6352	  cat <<_LT_EOF > conftest.$ac_ext
6353#ifdef __cplusplus
6354extern "C" {
6355#endif
6356
6357_LT_EOF
6358	  # Now generate the symbol file.
6359	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6360
6361	  cat <<_LT_EOF >> conftest.$ac_ext
6362
6363/* The mapping between symbol names and symbols.  */
6364const struct {
6365  const char *name;
6366  void       *address;
6367}
6368lt__PROGRAM__LTX_preloaded_symbols[] =
6369{
6370  { "@PROGRAM@", (void *) 0 },
6371_LT_EOF
6372	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6373	  cat <<\_LT_EOF >> conftest.$ac_ext
6374  {0, (void *) 0}
6375};
6376
6377/* This works around a problem in FreeBSD linker */
6378#ifdef FREEBSD_WORKAROUND
6379static const void *lt_preloaded_setup() {
6380  return lt__PROGRAM__LTX_preloaded_symbols;
6381}
6382#endif
6383
6384#ifdef __cplusplus
6385}
6386#endif
6387_LT_EOF
6388	  # Now try linking the two files.
6389	  mv conftest.$ac_objext conftstm.$ac_objext
6390	  lt_save_LIBS="$LIBS"
6391	  lt_save_CFLAGS="$CFLAGS"
6392	  LIBS="conftstm.$ac_objext"
6393	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6394	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395  (eval $ac_link) 2>&5
6396  ac_status=$?
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6399	    pipe_works=yes
6400	  fi
6401	  LIBS="$lt_save_LIBS"
6402	  CFLAGS="$lt_save_CFLAGS"
6403	else
6404	  echo "cannot find nm_test_func in $nlist" >&5
6405	fi
6406      else
6407	echo "cannot find nm_test_var in $nlist" >&5
6408      fi
6409    else
6410      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6411    fi
6412  else
6413    echo "$progname: failed program was:" >&5
6414    cat conftest.$ac_ext >&5
6415  fi
6416  rm -f conftest* conftst*
6417
6418  # Do not use the global_symbol_pipe unless it works.
6419  if test "$pipe_works" = yes; then
6420    break
6421  else
6422    lt_cv_sys_global_symbol_pipe=
6423  fi
6424done
6425
6426fi
6427
6428if test -z "$lt_cv_sys_global_symbol_pipe"; then
6429  lt_cv_sys_global_symbol_to_cdecl=
6430fi
6431if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6432  echo "$as_me:$LINENO: result: failed" >&5
6433echo "${ECHO_T}failed" >&6
6434else
6435  echo "$as_me:$LINENO: result: ok" >&5
6436echo "${ECHO_T}ok" >&6
6437fi
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6456if test "${enable_libtool_lock+set}" = set; then
6457  enableval="$enable_libtool_lock"
6458
6459fi;
6460test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6461
6462# Some flags need to be propagated to the compiler or linker for good
6463# libtool support.
6464case $host in
6465ia64-*-hpux*)
6466  # Find out which ABI we are using.
6467  echo 'int i;' > conftest.$ac_ext
6468  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469  (eval $ac_compile) 2>&5
6470  ac_status=$?
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); }; then
6473    case `/usr/bin/file conftest.$ac_objext` in
6474      *ELF-32*)
6475	HPUX_IA64_MODE="32"
6476	;;
6477      *ELF-64*)
6478	HPUX_IA64_MODE="64"
6479	;;
6480    esac
6481  fi
6482  rm -rf conftest*
6483  ;;
6484*-*-irix6*)
6485  # Find out which ABI we are using.
6486  echo '#line 6486 "configure"' > conftest.$ac_ext
6487  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488  (eval $ac_compile) 2>&5
6489  ac_status=$?
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; then
6492    if test "$lt_cv_prog_gnu_ld" = yes; then
6493      case `/usr/bin/file conftest.$ac_objext` in
6494	*32-bit*)
6495	  LD="${LD-ld} -melf32bsmip"
6496	  ;;
6497	*N32*)
6498	  LD="${LD-ld} -melf32bmipn32"
6499	  ;;
6500	*64-bit*)
6501	  LD="${LD-ld} -melf64bmip"
6502	;;
6503      esac
6504    else
6505      case `/usr/bin/file conftest.$ac_objext` in
6506	*32-bit*)
6507	  LD="${LD-ld} -32"
6508	  ;;
6509	*N32*)
6510	  LD="${LD-ld} -n32"
6511	  ;;
6512	*64-bit*)
6513	  LD="${LD-ld} -64"
6514	  ;;
6515      esac
6516    fi
6517  fi
6518  rm -rf conftest*
6519  ;;
6520
6521x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6522s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6523  # Find out which ABI we are using.
6524  echo 'int i;' > conftest.$ac_ext
6525  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526  (eval $ac_compile) 2>&5
6527  ac_status=$?
6528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529  (exit $ac_status); }; then
6530    case `/usr/bin/file conftest.o` in
6531      *32-bit*)
6532	case $host in
6533	  x86_64-*kfreebsd*-gnu)
6534	    LD="${LD-ld} -m elf_i386_fbsd"
6535	    ;;
6536	  x86_64-*linux*)
6537	    LD="${LD-ld} -m elf_i386"
6538	    ;;
6539	  ppc64-*linux*|powerpc64-*linux*)
6540	    LD="${LD-ld} -m elf32ppclinux"
6541	    ;;
6542	  s390x-*linux*)
6543	    LD="${LD-ld} -m elf_s390"
6544	    ;;
6545	  sparc64-*linux*)
6546	    LD="${LD-ld} -m elf32_sparc"
6547	    ;;
6548	esac
6549	;;
6550      *64-bit*)
6551	case $host in
6552	  x86_64-*kfreebsd*-gnu)
6553	    LD="${LD-ld} -m elf_x86_64_fbsd"
6554	    ;;
6555	  x86_64-*linux*)
6556	    LD="${LD-ld} -m elf_x86_64"
6557	    ;;
6558	  ppc*-*linux*|powerpc*-*linux*)
6559	    LD="${LD-ld} -m elf64ppc"
6560	    ;;
6561	  s390*-*linux*|s390*-*tpf*)
6562	    LD="${LD-ld} -m elf64_s390"
6563	    ;;
6564	  sparc*-*linux*)
6565	    LD="${LD-ld} -m elf64_sparc"
6566	    ;;
6567	esac
6568	;;
6569    esac
6570  fi
6571  rm -rf conftest*
6572  ;;
6573
6574*-*-sco3.2v5*)
6575  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6576  SAVE_CFLAGS="$CFLAGS"
6577  CFLAGS="$CFLAGS -belf"
6578  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6579echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6580if test "${lt_cv_cc_needs_belf+set}" = set; then
6581  echo $ECHO_N "(cached) $ECHO_C" >&6
6582else
6583  ac_ext=c
6584ac_cpp='$CPP $CPPFLAGS'
6585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588
6589     cat >conftest.$ac_ext <<_ACEOF
6590/* confdefs.h.  */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h.  */
6595
6596int
6597main ()
6598{
6599
6600  ;
6601  return 0;
6602}
6603_ACEOF
6604rm -f conftest.$ac_objext conftest$ac_exeext
6605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606  (eval $ac_link) 2>conftest.er1
6607  ac_status=$?
6608  grep -v '^ *+' conftest.er1 >conftest.err
6609  rm -f conftest.er1
6610  cat conftest.err >&5
6611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612  (exit $ac_status); } &&
6613	 { ac_try='test -z "$ac_c_werror_flag"
6614			 || test ! -s conftest.err'
6615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616  (eval $ac_try) 2>&5
6617  ac_status=$?
6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); }; } &&
6620	 { ac_try='test -s conftest$ac_exeext'
6621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622  (eval $ac_try) 2>&5
6623  ac_status=$?
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); }; }; then
6626  lt_cv_cc_needs_belf=yes
6627else
6628  echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631lt_cv_cc_needs_belf=no
6632fi
6633rm -f conftest.err conftest.$ac_objext \
6634      conftest$ac_exeext conftest.$ac_ext
6635     ac_ext=c
6636ac_cpp='$CPP $CPPFLAGS'
6637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641fi
6642echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6643echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6644  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6645    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646    CFLAGS="$SAVE_CFLAGS"
6647  fi
6648  ;;
6649sparc*-*solaris*)
6650  # Find out which ABI we are using.
6651  echo 'int i;' > conftest.$ac_ext
6652  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653  (eval $ac_compile) 2>&5
6654  ac_status=$?
6655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656  (exit $ac_status); }; then
6657    case `/usr/bin/file conftest.o` in
6658    *64-bit*)
6659      case $lt_cv_prog_gnu_ld in
6660      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6661      *)    LD="${LD-ld} -64" ;;
6662      esac
6663      ;;
6664    esac
6665  fi
6666  rm -rf conftest*
6667  ;;
6668esac
6669
6670need_locks="$enable_libtool_lock"
6671
6672
6673for ac_header in dlfcn.h
6674do
6675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676echo "$as_me:$LINENO: checking for $ac_header" >&5
6677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6678if eval "test \"\${$as_ac_Header+set}\" = set"; then
6679  echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681  cat >conftest.$ac_ext <<_ACEOF
6682/* confdefs.h.  */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h.  */
6687$ac_includes_default
6688
6689#include <$ac_header>
6690_ACEOF
6691rm -f conftest.$ac_objext
6692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693  (eval $ac_compile) 2>conftest.er1
6694  ac_status=$?
6695  grep -v '^ *+' conftest.er1 >conftest.err
6696  rm -f conftest.er1
6697  cat conftest.err >&5
6698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); } &&
6700	 { ac_try='test -z "$ac_c_werror_flag"
6701			 || test ! -s conftest.err'
6702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703  (eval $ac_try) 2>&5
6704  ac_status=$?
6705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706  (exit $ac_status); }; } &&
6707	 { ac_try='test -s conftest.$ac_objext'
6708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709  (eval $ac_try) 2>&5
6710  ac_status=$?
6711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712  (exit $ac_status); }; }; then
6713  eval "$as_ac_Header=yes"
6714else
6715  echo "$as_me: failed program was:" >&5
6716sed 's/^/| /' conftest.$ac_ext >&5
6717
6718eval "$as_ac_Header=no"
6719fi
6720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6721fi
6722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6724if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725  cat >>confdefs.h <<_ACEOF
6726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727_ACEOF
6728
6729fi
6730
6731done
6732
6733
6734
6735# This can be used to rebuild libtool when needed
6736LIBTOOL_DEPS="$ltmain"
6737
6738# Always use our own libtool.
6739LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765test -z "$LN_S" && LN_S="ln -s"
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780if test -n "${ZSH_VERSION+set}" ; then
6781   setopt NO_GLOB_SUBST
6782fi
6783
6784echo "$as_me:$LINENO: checking for objdir" >&5
6785echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6786if test "${lt_cv_objdir+set}" = set; then
6787  echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789  rm -f .libs 2>/dev/null
6790mkdir .libs 2>/dev/null
6791if test -d .libs; then
6792  lt_cv_objdir=.libs
6793else
6794  # MS-DOS does not allow filenames that begin with a dot.
6795  lt_cv_objdir=_libs
6796fi
6797rmdir .libs 2>/dev/null
6798fi
6799echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6800echo "${ECHO_T}$lt_cv_objdir" >&6
6801objdir=$lt_cv_objdir
6802
6803
6804
6805
6806
6807cat >>confdefs.h <<_ACEOF
6808#define LT_OBJDIR "$lt_cv_objdir/"
6809_ACEOF
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827case $host_os in
6828aix3*)
6829  # AIX sometimes has problems with the GCC collect2 program.  For some
6830  # reason, if we set the COLLECT_NAMES environment variable, the problems
6831  # vanish in a puff of smoke.
6832  if test "X${COLLECT_NAMES+set}" != Xset; then
6833    COLLECT_NAMES=
6834    export COLLECT_NAMES
6835  fi
6836  ;;
6837esac
6838
6839# Sed substitution that helps us do robust quoting.  It backslashifies
6840# metacharacters that are still active within double-quoted strings.
6841sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6842
6843# Same as above, but do not quote variable references.
6844double_quote_subst='s/\(["`\\]\)/\\\1/g'
6845
6846# Sed substitution to delay expansion of an escaped shell variable in a
6847# double_quote_subst'ed string.
6848delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6849
6850# Sed substitution to delay expansion of an escaped single quote.
6851delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6852
6853# Sed substitution to avoid accidental globbing in evaled expressions
6854no_glob_subst='s/\*/\\\*/g'
6855
6856# Global variables:
6857ofile=libtool
6858can_build_shared=yes
6859
6860# All known linkers require a `.a' archive for static linking (except MSVC,
6861# which needs '.lib').
6862libext=a
6863
6864with_gnu_ld="$lt_cv_prog_gnu_ld"
6865
6866old_CC="$CC"
6867old_CFLAGS="$CFLAGS"
6868
6869# Set sane defaults for various variables
6870test -z "$CC" && CC=cc
6871test -z "$LTCC" && LTCC=$CC
6872test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6873test -z "$LD" && LD=ld
6874test -z "$ac_objext" && ac_objext=o
6875
6876for cc_temp in $compiler""; do
6877  case $cc_temp in
6878    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6879    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6880    \-*) ;;
6881    *) break;;
6882  esac
6883done
6884cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6885
6886
6887# Only perform the check for file, if the check method requires it
6888test -z "$MAGIC_CMD" && MAGIC_CMD=file
6889case $deplibs_check_method in
6890file_magic*)
6891  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6892    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6893echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6894if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6895  echo $ECHO_N "(cached) $ECHO_C" >&6
6896else
6897  case $MAGIC_CMD in
6898[\\/*] |  ?:[\\/]*)
6899  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6900  ;;
6901*)
6902  lt_save_MAGIC_CMD="$MAGIC_CMD"
6903  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6904  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6905  for ac_dir in $ac_dummy; do
6906    IFS="$lt_save_ifs"
6907    test -z "$ac_dir" && ac_dir=.
6908    if test -f $ac_dir/${ac_tool_prefix}file; then
6909      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6910      if test -n "$file_magic_test_file"; then
6911	case $deplibs_check_method in
6912	"file_magic "*)
6913	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6914	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6915	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6916	    $EGREP "$file_magic_regex" > /dev/null; then
6917	    :
6918	  else
6919	    cat <<_LT_EOF 1>&2
6920
6921*** Warning: the command libtool uses to detect shared libraries,
6922*** $file_magic_cmd, produces output that libtool cannot recognize.
6923*** The result is that libtool may fail to recognize shared libraries
6924*** as such.  This will affect the creation of libtool libraries that
6925*** depend on shared libraries, but programs linked with such libtool
6926*** libraries will work regardless of this problem.  Nevertheless, you
6927*** may want to report the problem to your system manager and/or to
6928*** bug-libtool@gnu.org
6929
6930_LT_EOF
6931	  fi ;;
6932	esac
6933      fi
6934      break
6935    fi
6936  done
6937  IFS="$lt_save_ifs"
6938  MAGIC_CMD="$lt_save_MAGIC_CMD"
6939  ;;
6940esac
6941fi
6942
6943MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6944if test -n "$MAGIC_CMD"; then
6945  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6946echo "${ECHO_T}$MAGIC_CMD" >&6
6947else
6948  echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6
6950fi
6951
6952
6953
6954
6955
6956if test -z "$lt_cv_path_MAGIC_CMD"; then
6957  if test -n "$ac_tool_prefix"; then
6958    echo "$as_me:$LINENO: checking for file" >&5
6959echo $ECHO_N "checking for file... $ECHO_C" >&6
6960if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961  echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963  case $MAGIC_CMD in
6964[\\/*] |  ?:[\\/]*)
6965  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6966  ;;
6967*)
6968  lt_save_MAGIC_CMD="$MAGIC_CMD"
6969  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971  for ac_dir in $ac_dummy; do
6972    IFS="$lt_save_ifs"
6973    test -z "$ac_dir" && ac_dir=.
6974    if test -f $ac_dir/file; then
6975      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976      if test -n "$file_magic_test_file"; then
6977	case $deplibs_check_method in
6978	"file_magic "*)
6979	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982	    $EGREP "$file_magic_regex" > /dev/null; then
6983	    :
6984	  else
6985	    cat <<_LT_EOF 1>&2
6986
6987*** Warning: the command libtool uses to detect shared libraries,
6988*** $file_magic_cmd, produces output that libtool cannot recognize.
6989*** The result is that libtool may fail to recognize shared libraries
6990*** as such.  This will affect the creation of libtool libraries that
6991*** depend on shared libraries, but programs linked with such libtool
6992*** libraries will work regardless of this problem.  Nevertheless, you
6993*** may want to report the problem to your system manager and/or to
6994*** bug-libtool@gnu.org
6995
6996_LT_EOF
6997	  fi ;;
6998	esac
6999      fi
7000      break
7001    fi
7002  done
7003  IFS="$lt_save_ifs"
7004  MAGIC_CMD="$lt_save_MAGIC_CMD"
7005  ;;
7006esac
7007fi
7008
7009MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010if test -n "$MAGIC_CMD"; then
7011  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012echo "${ECHO_T}$MAGIC_CMD" >&6
7013else
7014  echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6
7016fi
7017
7018
7019  else
7020    MAGIC_CMD=:
7021  fi
7022fi
7023
7024  fi
7025  ;;
7026esac
7027
7028# Use C for the default configuration in the libtool script
7029
7030lt_save_CC="$CC"
7031ac_ext=c
7032ac_cpp='$CPP $CPPFLAGS'
7033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037
7038# Source file extension for C test sources.
7039ac_ext=c
7040
7041# Object file extension for compiled C test sources.
7042objext=o
7043objext=$objext
7044
7045# Code to be used in simple compile tests
7046lt_simple_compile_test_code="int some_variable = 0;"
7047
7048# Code to be used in simple link tests
7049lt_simple_link_test_code='int main(){return(0);}'
7050
7051
7052
7053
7054
7055
7056
7057# If no C compiler was specified, use CC.
7058LTCC=${LTCC-"$CC"}
7059
7060# If no C compiler flags were specified, use CFLAGS.
7061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7062
7063# Allow CC to be a program name with arguments.
7064compiler=$CC
7065
7066# Save the default compiler, since it gets overwritten when the other
7067# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7068compiler_DEFAULT=$CC
7069
7070# save warnings/boilerplate of simple test code
7071ac_outfile=conftest.$ac_objext
7072echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7073eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7074_lt_compiler_boilerplate=`cat conftest.err`
7075$RM conftest*
7076
7077ac_outfile=conftest.$ac_objext
7078echo "$lt_simple_link_test_code" >conftest.$ac_ext
7079eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7080_lt_linker_boilerplate=`cat conftest.err`
7081$RM conftest*
7082
7083
7084## CAVEAT EMPTOR:
7085## There is no encapsulation within the following macros, do not change
7086## the running order or otherwise move them around unless you know exactly
7087## what you are doing...
7088if test -n "$compiler"; then
7089
7090lt_prog_compiler_no_builtin_flag=
7091
7092if test "$GCC" = yes; then
7093  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7094
7095  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7096echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7097if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7098  echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100  lt_cv_prog_compiler_rtti_exceptions=no
7101   ac_outfile=conftest.$ac_objext
7102   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7103   lt_compiler_flag="-fno-rtti -fno-exceptions"
7104   # Insert the option either (1) after the last *FLAGS variable, or
7105   # (2) before a word containing "conftest.", or (3) at the end.
7106   # Note that $ac_compile itself does not contain backslashes and begins
7107   # with a dollar sign (not a hyphen), so the echo should work correctly.
7108   # The option is referenced via a variable to avoid confusing sed.
7109   lt_compile=`echo "$ac_compile" | $SED \
7110   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7111   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7112   -e 's:$: $lt_compiler_flag:'`
7113   (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
7114   (eval "$lt_compile" 2>conftest.err)
7115   ac_status=$?
7116   cat conftest.err >&5
7117   echo "$as_me:7117: \$? = $ac_status" >&5
7118   if (exit $ac_status) && test -s "$ac_outfile"; then
7119     # The compiler can only warn and ignore the option if not recognized
7120     # So say no if there are warnings other than the usual output.
7121     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7122     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7123     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7124       lt_cv_prog_compiler_rtti_exceptions=yes
7125     fi
7126   fi
7127   $RM conftest*
7128
7129fi
7130echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7131echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7132
7133if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7134    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7135else
7136    :
7137fi
7138
7139fi
7140
7141
7142
7143
7144
7145
7146  lt_prog_compiler_wl=
7147lt_prog_compiler_pic=
7148lt_prog_compiler_static=
7149
7150echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7151echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7152
7153  if test "$GCC" = yes; then
7154    lt_prog_compiler_wl='-Wl,'
7155    lt_prog_compiler_static='-static'
7156
7157    case $host_os in
7158      aix*)
7159      # All AIX code is PIC.
7160      if test "$host_cpu" = ia64; then
7161	# AIX 5 now supports IA64 processor
7162	lt_prog_compiler_static='-Bstatic'
7163      fi
7164      ;;
7165
7166    amigaos*)
7167      if test "$host_cpu" = m68k; then
7168        # FIXME: we need at least 68020 code to build shared libraries, but
7169        # adding the `-m68020' flag to GCC prevents building anything better,
7170        # like `-m68040'.
7171        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7172      fi
7173      ;;
7174
7175    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7176      # PIC is the default for these OSes.
7177      ;;
7178
7179    mingw* | cygwin* | pw32* | os2*)
7180      # This hack is so that the source file can tell whether it is being
7181      # built for inclusion in a dll (and should export symbols for example).
7182      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7183      # (--disable-auto-import) libraries
7184      lt_prog_compiler_pic='-DDLL_EXPORT'
7185      ;;
7186
7187    darwin* | rhapsody*)
7188      # PIC is the default on this platform
7189      # Common symbols not allowed in MH_DYLIB files
7190      lt_prog_compiler_pic='-fno-common'
7191      ;;
7192
7193    hpux*)
7194      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7195      # not for PA HP-UX.
7196      case $host_cpu in
7197      hppa*64*|ia64*)
7198	# +Z the default
7199	;;
7200      *)
7201	lt_prog_compiler_pic='-fPIC'
7202	;;
7203      esac
7204      ;;
7205
7206    interix[3-9]*)
7207      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7208      # Instead, we relocate shared libraries at runtime.
7209      ;;
7210
7211    msdosdjgpp*)
7212      # Just because we use GCC doesn't mean we suddenly get shared libraries
7213      # on systems that don't support them.
7214      lt_prog_compiler_can_build_shared=no
7215      enable_shared=no
7216      ;;
7217
7218    *nto* | *qnx*)
7219      # QNX uses GNU C++, but need to define -shared option too, otherwise
7220      # it will coredump.
7221      lt_prog_compiler_pic='-fPIC -shared'
7222      ;;
7223
7224    sysv4*MP*)
7225      if test -d /usr/nec; then
7226	lt_prog_compiler_pic=-Kconform_pic
7227      fi
7228      ;;
7229
7230    *)
7231      lt_prog_compiler_pic='-fPIC'
7232      ;;
7233    esac
7234  else
7235    # PORTME Check for flag to pass linker flags through the system compiler.
7236    case $host_os in
7237    aix*)
7238      lt_prog_compiler_wl='-Wl,'
7239      if test "$host_cpu" = ia64; then
7240	# AIX 5 now supports IA64 processor
7241	lt_prog_compiler_static='-Bstatic'
7242      else
7243	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7244      fi
7245      ;;
7246    darwin*)
7247      # PIC is the default on this platform
7248      # Common symbols not allowed in MH_DYLIB files
7249      case $cc_basename in
7250      xlc*)
7251        lt_prog_compiler_pic='-qnocommon'
7252        lt_prog_compiler_wl='-Wl,'
7253        ;;
7254      esac
7255      ;;
7256
7257    mingw* | cygwin* | pw32* | os2*)
7258      # This hack is so that the source file can tell whether it is being
7259      # built for inclusion in a dll (and should export symbols for example).
7260      lt_prog_compiler_pic='-DDLL_EXPORT'
7261      ;;
7262
7263    hpux9* | hpux10* | hpux11*)
7264      lt_prog_compiler_wl='-Wl,'
7265      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7266      # not for PA HP-UX.
7267      case $host_cpu in
7268      hppa*64*|ia64*)
7269	# +Z the default
7270	;;
7271      *)
7272	lt_prog_compiler_pic='+Z'
7273	;;
7274      esac
7275      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7276      lt_prog_compiler_static='${wl}-a ${wl}archive'
7277      ;;
7278
7279    irix5* | irix6* | nonstopux*)
7280      lt_prog_compiler_wl='-Wl,'
7281      # PIC (with -KPIC) is the default.
7282      lt_prog_compiler_static='-non_shared'
7283      ;;
7284
7285    linux* | k*bsd*-gnu)
7286      case $cc_basename in
7287      icc* | ecc*)
7288	lt_prog_compiler_wl='-Wl,'
7289	lt_prog_compiler_pic='-KPIC'
7290	lt_prog_compiler_static='-static'
7291        ;;
7292      pgcc* | pgf77* | pgf90* | pgf95*)
7293        # Portland Group compilers (*not* the Pentium gcc compiler,
7294	# which looks to be a dead project)
7295	lt_prog_compiler_wl='-Wl,'
7296	lt_prog_compiler_pic='-fpic'
7297	lt_prog_compiler_static='-Bstatic'
7298        ;;
7299      ccc*)
7300        lt_prog_compiler_wl='-Wl,'
7301        # All Alpha code is PIC.
7302        lt_prog_compiler_static='-non_shared'
7303        ;;
7304      *)
7305	case `$CC -V 2>&1 | sed 5q` in
7306	*Sun\ C*)
7307	  # Sun C 5.9
7308	  lt_prog_compiler_pic='-KPIC'
7309	  lt_prog_compiler_static='-Bstatic'
7310	  lt_prog_compiler_wl='-Wl,'
7311	  ;;
7312	*Sun\ F*)
7313	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7314	  lt_prog_compiler_pic='-KPIC'
7315	  lt_prog_compiler_static='-Bstatic'
7316	  lt_prog_compiler_wl=''
7317	  ;;
7318	esac
7319	;;
7320      esac
7321      ;;
7322
7323    newsos6)
7324      lt_prog_compiler_pic='-KPIC'
7325      lt_prog_compiler_static='-Bstatic'
7326      ;;
7327
7328    *nto* | *qnx*)
7329      # QNX uses GNU C++, but need to define -shared option too, otherwise
7330      # it will coredump.
7331      lt_prog_compiler_pic='-fPIC -shared'
7332      ;;
7333
7334    osf3* | osf4* | osf5*)
7335      lt_prog_compiler_wl='-Wl,'
7336      # All OSF/1 code is PIC.
7337      lt_prog_compiler_static='-non_shared'
7338      ;;
7339
7340    rdos*)
7341      lt_prog_compiler_static='-non_shared'
7342      ;;
7343
7344    solaris*)
7345      lt_prog_compiler_pic='-KPIC'
7346      lt_prog_compiler_static='-Bstatic'
7347      case $cc_basename in
7348      f77* | f90* | f95*)
7349	lt_prog_compiler_wl='-Qoption ld ';;
7350      *)
7351	lt_prog_compiler_wl='-Wl,';;
7352      esac
7353      ;;
7354
7355    sunos4*)
7356      lt_prog_compiler_wl='-Qoption ld '
7357      lt_prog_compiler_pic='-PIC'
7358      lt_prog_compiler_static='-Bstatic'
7359      ;;
7360
7361    sysv4 | sysv4.2uw2* | sysv4.3*)
7362      lt_prog_compiler_wl='-Wl,'
7363      lt_prog_compiler_pic='-KPIC'
7364      lt_prog_compiler_static='-Bstatic'
7365      ;;
7366
7367    sysv4*MP*)
7368      if test -d /usr/nec ;then
7369	lt_prog_compiler_pic='-Kconform_pic'
7370	lt_prog_compiler_static='-Bstatic'
7371      fi
7372      ;;
7373
7374    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7375      lt_prog_compiler_wl='-Wl,'
7376      lt_prog_compiler_pic='-KPIC'
7377      lt_prog_compiler_static='-Bstatic'
7378      ;;
7379
7380    unicos*)
7381      lt_prog_compiler_wl='-Wl,'
7382      lt_prog_compiler_can_build_shared=no
7383      ;;
7384
7385    uts4*)
7386      lt_prog_compiler_pic='-pic'
7387      lt_prog_compiler_static='-Bstatic'
7388      ;;
7389
7390    *)
7391      lt_prog_compiler_can_build_shared=no
7392      ;;
7393    esac
7394  fi
7395
7396case $host_os in
7397  # For platforms which do not support PIC, -DPIC is meaningless:
7398  *djgpp*)
7399    lt_prog_compiler_pic=
7400    ;;
7401  *)
7402    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7403    ;;
7404esac
7405echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7406echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7407
7408
7409
7410
7411
7412
7413#
7414# Check to make sure the PIC flag actually works.
7415#
7416if test -n "$lt_prog_compiler_pic"; then
7417  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7418echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7419if test "${lt_prog_compiler_pic_works+set}" = set; then
7420  echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422  lt_prog_compiler_pic_works=no
7423   ac_outfile=conftest.$ac_objext
7424   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7425   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7426   # Insert the option either (1) after the last *FLAGS variable, or
7427   # (2) before a word containing "conftest.", or (3) at the end.
7428   # Note that $ac_compile itself does not contain backslashes and begins
7429   # with a dollar sign (not a hyphen), so the echo should work correctly.
7430   # The option is referenced via a variable to avoid confusing sed.
7431   lt_compile=`echo "$ac_compile" | $SED \
7432   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434   -e 's:$: $lt_compiler_flag:'`
7435   (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
7436   (eval "$lt_compile" 2>conftest.err)
7437   ac_status=$?
7438   cat conftest.err >&5
7439   echo "$as_me:7439: \$? = $ac_status" >&5
7440   if (exit $ac_status) && test -s "$ac_outfile"; then
7441     # The compiler can only warn and ignore the option if not recognized
7442     # So say no if there are warnings other than the usual output.
7443     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7444     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7445     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7446       lt_prog_compiler_pic_works=yes
7447     fi
7448   fi
7449   $RM conftest*
7450
7451fi
7452echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7453echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7454
7455if test x"$lt_prog_compiler_pic_works" = xyes; then
7456    case $lt_prog_compiler_pic in
7457     "" | " "*) ;;
7458     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7459     esac
7460else
7461    lt_prog_compiler_pic=
7462     lt_prog_compiler_can_build_shared=no
7463fi
7464
7465fi
7466
7467
7468
7469
7470
7471
7472#
7473# Check to make sure the static flag actually works.
7474#
7475wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7476echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7477echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7478if test "${lt_prog_compiler_static_works+set}" = set; then
7479  echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481  lt_prog_compiler_static_works=no
7482   save_LDFLAGS="$LDFLAGS"
7483   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7484   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7485   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7486     # The linker can only warn and ignore the option if not recognized
7487     # So say no if there are warnings
7488     if test -s conftest.err; then
7489       # Append any errors to the config.log.
7490       cat conftest.err 1>&5
7491       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7492       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7493       if diff conftest.exp conftest.er2 >/dev/null; then
7494         lt_prog_compiler_static_works=yes
7495       fi
7496     else
7497       lt_prog_compiler_static_works=yes
7498     fi
7499   fi
7500   $RM conftest*
7501   LDFLAGS="$save_LDFLAGS"
7502
7503fi
7504echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7505echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7506
7507if test x"$lt_prog_compiler_static_works" = xyes; then
7508    :
7509else
7510    lt_prog_compiler_static=
7511fi
7512
7513
7514
7515
7516
7517
7518
7519  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7520echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7521if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7522  echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524  lt_cv_prog_compiler_c_o=no
7525   $RM -r conftest 2>/dev/null
7526   mkdir conftest
7527   cd conftest
7528   mkdir out
7529   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7530
7531   lt_compiler_flag="-o out/conftest2.$ac_objext"
7532   # Insert the option either (1) after the last *FLAGS variable, or
7533   # (2) before a word containing "conftest.", or (3) at the end.
7534   # Note that $ac_compile itself does not contain backslashes and begins
7535   # with a dollar sign (not a hyphen), so the echo should work correctly.
7536   lt_compile=`echo "$ac_compile" | $SED \
7537   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7538   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7539   -e 's:$: $lt_compiler_flag:'`
7540   (eval echo "\"\$as_me:7540: $lt_compile\"" >&5)
7541   (eval "$lt_compile" 2>out/conftest.err)
7542   ac_status=$?
7543   cat out/conftest.err >&5
7544   echo "$as_me:7544: \$? = $ac_status" >&5
7545   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7546   then
7547     # The compiler can only warn and ignore the option if not recognized
7548     # So say no if there are warnings
7549     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7550     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7551     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7552       lt_cv_prog_compiler_c_o=yes
7553     fi
7554   fi
7555   chmod u+w . 2>&5
7556   $RM conftest*
7557   # SGI C++ compiler will create directory out/ii_files/ for
7558   # template instantiation
7559   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7560   $RM out/* && rmdir out
7561   cd ..
7562   $RM -r conftest
7563   $RM conftest*
7564
7565fi
7566echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7567echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7568
7569
7570
7571
7572
7573
7574  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7576if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7577  echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579  lt_cv_prog_compiler_c_o=no
7580   $RM -r conftest 2>/dev/null
7581   mkdir conftest
7582   cd conftest
7583   mkdir out
7584   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7585
7586   lt_compiler_flag="-o out/conftest2.$ac_objext"
7587   # Insert the option either (1) after the last *FLAGS variable, or
7588   # (2) before a word containing "conftest.", or (3) at the end.
7589   # Note that $ac_compile itself does not contain backslashes and begins
7590   # with a dollar sign (not a hyphen), so the echo should work correctly.
7591   lt_compile=`echo "$ac_compile" | $SED \
7592   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594   -e 's:$: $lt_compiler_flag:'`
7595   (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596   (eval "$lt_compile" 2>out/conftest.err)
7597   ac_status=$?
7598   cat out/conftest.err >&5
7599   echo "$as_me:7599: \$? = $ac_status" >&5
7600   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7601   then
7602     # The compiler can only warn and ignore the option if not recognized
7603     # So say no if there are warnings
7604     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7605     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7606     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7607       lt_cv_prog_compiler_c_o=yes
7608     fi
7609   fi
7610   chmod u+w . 2>&5
7611   $RM conftest*
7612   # SGI C++ compiler will create directory out/ii_files/ for
7613   # template instantiation
7614   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7615   $RM out/* && rmdir out
7616   cd ..
7617   $RM -r conftest
7618   $RM conftest*
7619
7620fi
7621echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7622echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7623
7624
7625
7626
7627hard_links="nottested"
7628if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7629  # do not overwrite the value of need_locks provided by the user
7630  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7631echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7632  hard_links=yes
7633  $RM conftest*
7634  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7635  touch conftest.a
7636  ln conftest.a conftest.b 2>&5 || hard_links=no
7637  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7638  echo "$as_me:$LINENO: result: $hard_links" >&5
7639echo "${ECHO_T}$hard_links" >&6
7640  if test "$hard_links" = no; then
7641    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7642echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7643    need_locks=warn
7644  fi
7645else
7646  need_locks=no
7647fi
7648
7649
7650
7651
7652
7653
7654  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7655echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7656
7657  runpath_var=
7658  allow_undefined_flag=
7659  always_export_symbols=no
7660  archive_cmds=
7661  archive_expsym_cmds=
7662  compiler_needs_object=no
7663  enable_shared_with_static_runtimes=no
7664  export_dynamic_flag_spec=
7665  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7666  hardcode_automatic=no
7667  hardcode_direct=no
7668  hardcode_direct_absolute=no
7669  hardcode_libdir_flag_spec=
7670  hardcode_libdir_flag_spec_ld=
7671  hardcode_libdir_separator=
7672  hardcode_minus_L=no
7673  hardcode_shlibpath_var=unsupported
7674  inherit_rpath=no
7675  link_all_deplibs=unknown
7676  module_cmds=
7677  module_expsym_cmds=
7678  old_archive_from_new_cmds=
7679  old_archive_from_expsyms_cmds=
7680  thread_safe_flag_spec=
7681  whole_archive_flag_spec=
7682  # include_expsyms should be a list of space-separated symbols to be *always*
7683  # included in the symbol list
7684  include_expsyms=
7685  # exclude_expsyms can be an extended regexp of symbols to exclude
7686  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7687  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7688  # as well as any symbol that contains `d'.
7689  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7690  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7691  # platforms (ab)use it in PIC code, but their linkers get confused if
7692  # the symbol is explicitly referenced.  Since portable code cannot
7693  # rely on this symbol name, it's probably fine to never include it in
7694  # preloaded symbol tables.
7695  extract_expsyms_cmds=
7696
7697  case $host_os in
7698  cygwin* | mingw* | pw32*)
7699    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7700    # When not using gcc, we currently assume that we are using
7701    # Microsoft Visual C++.
7702    if test "$GCC" != yes; then
7703      with_gnu_ld=no
7704    fi
7705    ;;
7706  interix*)
7707    # we just hope/assume this is gcc and not c89 (= MSVC++)
7708    with_gnu_ld=yes
7709    ;;
7710  openbsd*)
7711    with_gnu_ld=no
7712    ;;
7713  esac
7714
7715  ld_shlibs=yes
7716  if test "$with_gnu_ld" = yes; then
7717    # If archive_cmds runs LD, not CC, wlarc should be empty
7718    wlarc='${wl}'
7719
7720    # Set some defaults for GNU ld with shared library support. These
7721    # are reset later if shared libraries are not supported. Putting them
7722    # here allows them to be overridden if necessary.
7723    runpath_var=LD_RUN_PATH
7724    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7725    export_dynamic_flag_spec='${wl}--export-dynamic'
7726    # ancient GNU ld didn't support --whole-archive et. al.
7727    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7728      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7729    else
7730      whole_archive_flag_spec=
7731    fi
7732    supports_anon_versioning=no
7733    case `$LD -v 2>&1` in
7734      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7735      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7736      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7737      *\ 2.11.*) ;; # other 2.11 versions
7738      *) supports_anon_versioning=yes ;;
7739    esac
7740
7741    # See if GNU ld supports shared libraries.
7742    case $host_os in
7743    aix[3-9]*)
7744      # On AIX/PPC, the GNU linker is very broken
7745      if test "$host_cpu" != ia64; then
7746	ld_shlibs=no
7747	cat <<_LT_EOF 1>&2
7748
7749*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7750*** to be unable to reliably create shared libraries on AIX.
7751*** Therefore, libtool is disabling shared libraries support.  If you
7752*** really care for shared libraries, you may want to modify your PATH
7753*** so that a non-GNU linker is found, and then restart.
7754
7755_LT_EOF
7756      fi
7757      ;;
7758
7759    amigaos*)
7760      if test "$host_cpu" = m68k; then
7761        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)'
7762        hardcode_libdir_flag_spec='-L$libdir'
7763        hardcode_minus_L=yes
7764      fi
7765
7766      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7767      # that the semantics of dynamic libraries on AmigaOS, at least up
7768      # to version 4, is to share data among multiple programs linked
7769      # with the same dynamic library.  Since this doesn't match the
7770      # behavior of shared libraries on other platforms, we can't use
7771      # them.
7772      ld_shlibs=no
7773      ;;
7774
7775    beos*)
7776      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7777	allow_undefined_flag=unsupported
7778	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7779	# support --undefined.  This deserves some investigation.  FIXME
7780	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7781      else
7782	ld_shlibs=no
7783      fi
7784      ;;
7785
7786    cygwin* | mingw* | pw32*)
7787      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7788      # as there is no search path for DLLs.
7789      hardcode_libdir_flag_spec='-L$libdir'
7790      allow_undefined_flag=unsupported
7791      always_export_symbols=no
7792      enable_shared_with_static_runtimes=yes
7793      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7794
7795      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7796        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7797	# If the export-symbols file already is a .def file (1st line
7798	# is EXPORTS), use it as is; otherwise, prepend...
7799	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7800	  cp $export_symbols $output_objdir/$soname.def;
7801	else
7802	  echo EXPORTS > $output_objdir/$soname.def;
7803	  cat $export_symbols >> $output_objdir/$soname.def;
7804	fi~
7805	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7806      else
7807	ld_shlibs=no
7808      fi
7809      ;;
7810
7811    interix[3-9]*)
7812      hardcode_direct=no
7813      hardcode_shlibpath_var=no
7814      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7815      export_dynamic_flag_spec='${wl}-E'
7816      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7817      # Instead, shared libraries are loaded at an image base (0x10000000 by
7818      # default) and relocated if they conflict, which is a slow very memory
7819      # consuming and fragmenting process.  To avoid this, we pick a random,
7820      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7821      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7822      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7823      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'
7824      ;;
7825
7826    gnu* | linux* | tpf* | k*bsd*-gnu)
7827      tmp_diet=no
7828      if test "$host_os" = linux-dietlibc; then
7829	case $cc_basename in
7830	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7831	esac
7832      fi
7833      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7834	 && test "$tmp_diet" = no
7835      then
7836	tmp_addflag=
7837	case $cc_basename,$host_cpu in
7838        pgcc*)				# Portland Group C compiler
7839	  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'
7840	  tmp_addflag=' $pic_flag'
7841	  ;;
7842	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7843	  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'
7844	  tmp_addflag=' $pic_flag -Mnomain' ;;
7845	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7846	  tmp_addflag=' -i_dynamic' ;;
7847	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7848	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7849	ifc* | ifort*)			# Intel Fortran compiler
7850	  tmp_addflag=' -nofor_main' ;;
7851	esac
7852	case `$CC -V 2>&1 | sed 5q` in
7853	*Sun\ C*)			# Sun C 5.9
7854	  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'
7855	  compiler_needs_object=yes
7856	  tmp_sharedflag='-G' ;;
7857	*Sun\ F*)			# Sun Fortran 8.3
7858	  tmp_sharedflag='-G' ;;
7859	*)
7860	  tmp_sharedflag='-shared' ;;
7861	esac
7862	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863
7864        if test "x$supports_anon_versioning" = xyes; then
7865          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7866	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7867	    echo "local: *; };" >> $output_objdir/$libname.ver~
7868	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7869        fi
7870      else
7871        ld_shlibs=no
7872      fi
7873      ;;
7874
7875    netbsd*)
7876      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7877	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7878	wlarc=
7879      else
7880	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7881	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7882      fi
7883      ;;
7884
7885    solaris*)
7886      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7887	ld_shlibs=no
7888	cat <<_LT_EOF 1>&2
7889
7890*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7891*** create shared libraries on Solaris systems.  Therefore, libtool
7892*** is disabling shared libraries support.  We urge you to upgrade GNU
7893*** binutils to release 2.9.1 or newer.  Another option is to modify
7894*** your PATH or compiler configuration so that the native linker is
7895*** used, and then restart.
7896
7897_LT_EOF
7898      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7899	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7901      else
7902	ld_shlibs=no
7903      fi
7904      ;;
7905
7906    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7907      case `$LD -v 2>&1` in
7908        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7909	ld_shlibs=no
7910	cat <<_LT_EOF 1>&2
7911
7912*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7913*** reliably create shared libraries on SCO systems.  Therefore, libtool
7914*** is disabling shared libraries support.  We urge you to upgrade GNU
7915*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7916*** your PATH or compiler configuration so that the native linker is
7917*** used, and then restart.
7918
7919_LT_EOF
7920	;;
7921	*)
7922	  # For security reasons, it is highly recommended that you always
7923	  # use absolute paths for naming shared libraries, and exclude the
7924	  # DT_RUNPATH tag from executables and libraries.  But doing so
7925	  # requires that you compile everything twice, which is a pain.
7926	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7927	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7928	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7930	  else
7931	    ld_shlibs=no
7932	  fi
7933	;;
7934      esac
7935      ;;
7936
7937    sunos4*)
7938      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7939      wlarc=
7940      hardcode_direct=yes
7941      hardcode_shlibpath_var=no
7942      ;;
7943
7944    *)
7945      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7946	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7948      else
7949	ld_shlibs=no
7950      fi
7951      ;;
7952    esac
7953
7954    if test "$ld_shlibs" = no; then
7955      runpath_var=
7956      hardcode_libdir_flag_spec=
7957      export_dynamic_flag_spec=
7958      whole_archive_flag_spec=
7959    fi
7960  else
7961    # PORTME fill in a description of your system's linker (not GNU ld)
7962    case $host_os in
7963    aix3*)
7964      allow_undefined_flag=unsupported
7965      always_export_symbols=yes
7966      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'
7967      # Note: this linker hardcodes the directories in LIBPATH if there
7968      # are no directories specified by -L.
7969      hardcode_minus_L=yes
7970      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7971	# Neither direct hardcoding nor static linking is supported with a
7972	# broken collect2.
7973	hardcode_direct=unsupported
7974      fi
7975      ;;
7976
7977    aix[4-9]*)
7978      if test "$host_cpu" = ia64; then
7979	# On IA64, the linker does run time linking by default, so we don't
7980	# have to do anything special.
7981	aix_use_runtimelinking=no
7982	exp_sym_flag='-Bexport'
7983	no_entry_flag=""
7984      else
7985	# If we're using GNU nm, then we don't want the "-C" option.
7986	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7987	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7988	  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'
7989	else
7990	  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'
7991	fi
7992	aix_use_runtimelinking=no
7993
7994	# Test if we are trying to use run time linking or normal
7995	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7996	# need to do runtime linking.
7997	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7998	  for ld_flag in $LDFLAGS; do
7999	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8000	    aix_use_runtimelinking=yes
8001	    break
8002	  fi
8003	  done
8004	  ;;
8005	esac
8006
8007	exp_sym_flag='-bexport'
8008	no_entry_flag='-bnoentry'
8009      fi
8010
8011      # When large executables or shared objects are built, AIX ld can
8012      # have problems creating the table of contents.  If linking a library
8013      # or program results in "error TOC overflow" add -mminimal-toc to
8014      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8015      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8016
8017      archive_cmds=''
8018      hardcode_direct=yes
8019      hardcode_direct_absolute=yes
8020      hardcode_libdir_separator=':'
8021      link_all_deplibs=yes
8022      file_list_spec='${wl}-f,'
8023
8024      if test "$GCC" = yes; then
8025	case $host_os in aix4.[012]|aix4.[012].*)
8026	# We only want to do this on AIX 4.2 and lower, the check
8027	# below for broken collect2 doesn't work under 4.3+
8028	  collect2name=`${CC} -print-prog-name=collect2`
8029	  if test -f "$collect2name" &&
8030	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8031	  then
8032	  # We have reworked collect2
8033	  :
8034	  else
8035	  # We have old collect2
8036	  hardcode_direct=unsupported
8037	  # It fails to find uninstalled libraries when the uninstalled
8038	  # path is not listed in the libpath.  Setting hardcode_minus_L
8039	  # to unsupported forces relinking
8040	  hardcode_minus_L=yes
8041	  hardcode_libdir_flag_spec='-L$libdir'
8042	  hardcode_libdir_separator=
8043	  fi
8044	  ;;
8045	esac
8046	shared_flag='-shared'
8047	if test "$aix_use_runtimelinking" = yes; then
8048	  shared_flag="$shared_flag "'${wl}-G'
8049	fi
8050      else
8051	# not using gcc
8052	if test "$host_cpu" = ia64; then
8053	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8054	# chokes on -Wl,-G. The following line is correct:
8055	  shared_flag='-G'
8056	else
8057	  if test "$aix_use_runtimelinking" = yes; then
8058	    shared_flag='${wl}-G'
8059	  else
8060	    shared_flag='${wl}-bM:SRE'
8061	  fi
8062	fi
8063      fi
8064
8065      # It seems that -bexpall does not export symbols beginning with
8066      # underscore (_), so it is better to generate a list of symbols to export.
8067      always_export_symbols=yes
8068      if test "$aix_use_runtimelinking" = yes; then
8069	# Warning - without using the other runtime loading flags (-brtl),
8070	# -berok will link without error, but may produce a broken library.
8071	allow_undefined_flag='-berok'
8072        # Determine the default libpath from the value encoded in an
8073        # empty executable.
8074        cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h.  */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h.  */
8080
8081int
8082main ()
8083{
8084
8085  ;
8086  return 0;
8087}
8088_ACEOF
8089rm -f conftest.$ac_objext conftest$ac_exeext
8090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091  (eval $ac_link) 2>conftest.er1
8092  ac_status=$?
8093  grep -v '^ *+' conftest.er1 >conftest.err
8094  rm -f conftest.er1
8095  cat conftest.err >&5
8096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097  (exit $ac_status); } &&
8098	 { ac_try='test -z "$ac_c_werror_flag"
8099			 || test ! -s conftest.err'
8100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101  (eval $ac_try) 2>&5
8102  ac_status=$?
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); }; } &&
8105	 { ac_try='test -s conftest$ac_exeext'
8106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107  (eval $ac_try) 2>&5
8108  ac_status=$?
8109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110  (exit $ac_status); }; }; then
8111
8112lt_aix_libpath_sed='
8113    /Import File Strings/,/^$/ {
8114	/^0/ {
8115	    s/^0  *\(.*\)$/\1/
8116	    p
8117	}
8118    }'
8119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8120# Check for a 64-bit object if we didn't find anything.
8121if test -z "$aix_libpath"; then
8122  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8123fi
8124else
8125  echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
8128fi
8129rm -f conftest.err conftest.$ac_objext \
8130      conftest$ac_exeext conftest.$ac_ext
8131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8132
8133        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8134        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"
8135      else
8136	if test "$host_cpu" = ia64; then
8137	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8138	  allow_undefined_flag="-z nodefs"
8139	  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"
8140	else
8141	 # Determine the default libpath from the value encoded in an
8142	 # empty executable.
8143	 cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h.  */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h.  */
8149
8150int
8151main ()
8152{
8153
8154  ;
8155  return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext conftest$ac_exeext
8159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160  (eval $ac_link) 2>conftest.er1
8161  ac_status=$?
8162  grep -v '^ *+' conftest.er1 >conftest.err
8163  rm -f conftest.er1
8164  cat conftest.err >&5
8165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166  (exit $ac_status); } &&
8167	 { ac_try='test -z "$ac_c_werror_flag"
8168			 || test ! -s conftest.err'
8169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170  (eval $ac_try) 2>&5
8171  ac_status=$?
8172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173  (exit $ac_status); }; } &&
8174	 { ac_try='test -s conftest$ac_exeext'
8175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176  (eval $ac_try) 2>&5
8177  ac_status=$?
8178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179  (exit $ac_status); }; }; then
8180
8181lt_aix_libpath_sed='
8182    /Import File Strings/,/^$/ {
8183	/^0/ {
8184	    s/^0  *\(.*\)$/\1/
8185	    p
8186	}
8187    }'
8188aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189# Check for a 64-bit object if we didn't find anything.
8190if test -z "$aix_libpath"; then
8191  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8192fi
8193else
8194  echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197fi
8198rm -f conftest.err conftest.$ac_objext \
8199      conftest$ac_exeext conftest.$ac_ext
8200if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8201
8202	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203	  # Warning - without using the other run time loading flags,
8204	  # -berok will link without error, but may produce a broken library.
8205	  no_undefined_flag=' ${wl}-bernotok'
8206	  allow_undefined_flag=' ${wl}-berok'
8207	  # Exported symbols can be pulled into shared objects from archives
8208	  whole_archive_flag_spec='$convenience'
8209	  archive_cmds_need_lc=yes
8210	  # This is similar to how AIX traditionally builds its shared libraries.
8211	  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'
8212	fi
8213      fi
8214      ;;
8215
8216    amigaos*)
8217      if test "$host_cpu" = m68k; then
8218        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)'
8219        hardcode_libdir_flag_spec='-L$libdir'
8220        hardcode_minus_L=yes
8221      fi
8222      # see comment about different semantics on the GNU ld section
8223      ld_shlibs=no
8224      ;;
8225
8226    bsdi[45]*)
8227      export_dynamic_flag_spec=-rdynamic
8228      ;;
8229
8230    cygwin* | mingw* | pw32*)
8231      # When not using gcc, we currently assume that we are using
8232      # Microsoft Visual C++.
8233      # hardcode_libdir_flag_spec is actually meaningless, as there is
8234      # no search path for DLLs.
8235      hardcode_libdir_flag_spec=' '
8236      allow_undefined_flag=unsupported
8237      # Tell ltmain to make .lib files, not .a files.
8238      libext=lib
8239      # Tell ltmain to make .dll files, not .so files.
8240      shrext_cmds=".dll"
8241      # FIXME: Setting linknames here is a bad hack.
8242      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8243      # The linker will automatically build a .lib file if we build a DLL.
8244      old_archive_from_new_cmds='true'
8245      # FIXME: Should let the user specify the lib program.
8246      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8247      fix_srcfile_path='`cygpath -w "$srcfile"`'
8248      enable_shared_with_static_runtimes=yes
8249      ;;
8250
8251    darwin* | rhapsody*)
8252      case $host_os in
8253      rhapsody* | darwin1.[012])
8254	allow_undefined_flag='${wl}-undefined ${wl}suppress'
8255	;;
8256      *) # Darwin 1.3 on
8257	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8258	10.[012])
8259	  allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8260	  ;;
8261	10.*)
8262	  allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8263	  ;;
8264	esac
8265	;;
8266      esac
8267      archive_cmds_need_lc=no
8268      hardcode_direct=no
8269      hardcode_automatic=yes
8270      hardcode_shlibpath_var=unsupported
8271      whole_archive_flag_spec=''
8272      link_all_deplibs=yes
8273      if test "$GCC" = yes ; then
8274	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8275  echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277  lt_cv_apple_cc_single_mod=no
8278	if test -z "${LT_MULTI_MODULE}"; then
8279	  # By default we will add the -single_module flag. You can override
8280	  # by either setting the environment variable LT_MULTI_MODULE
8281	  # non-empty at configure time, or by adding -multi-module to the
8282	  # link flags.
8283	  echo "int foo(void){return 1;}" > conftest.c
8284	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8285	      -dynamiclib ${wl}-single_module conftest.c
8286	  if test -f libconftest.dylib; then
8287	      lt_cv_apple_cc_single_mod=yes
8288	      rm libconftest.dylib
8289	  fi
8290	  rm conftest.$ac_ext
8291	fi
8292fi
8293
8294	output_verbose_link_cmd=echo
8295	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8296	  archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8297	  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}'
8298	else
8299	  archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8300	  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}'
8301	fi
8302	module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8303	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}'
8304      else
8305	case $cc_basename in
8306	xlc*)
8307	  output_verbose_link_cmd=echo
8308	  archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8309	  module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8310	  # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8311	  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}'
8312	  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}'
8313	  ;;
8314	*)
8315	  ld_shlibs=no
8316	  ;;
8317	esac
8318      fi
8319      ;;
8320
8321    dgux*)
8322      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8323      hardcode_libdir_flag_spec='-L$libdir'
8324      hardcode_shlibpath_var=no
8325      ;;
8326
8327    freebsd1*)
8328      ld_shlibs=no
8329      ;;
8330
8331    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8332    # support.  Future versions do this automatically, but an explicit c++rt0.o
8333    # does not break anything, and helps significantly (at the cost of a little
8334    # extra space).
8335    freebsd2.2*)
8336      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8337      hardcode_libdir_flag_spec='-R$libdir'
8338      hardcode_direct=yes
8339      hardcode_shlibpath_var=no
8340      ;;
8341
8342    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8343    freebsd2*)
8344      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8345      hardcode_direct=yes
8346      hardcode_minus_L=yes
8347      hardcode_shlibpath_var=no
8348      ;;
8349
8350    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8351    freebsd* | dragonfly*)
8352      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8353      hardcode_libdir_flag_spec='-R$libdir'
8354      hardcode_direct=yes
8355      hardcode_shlibpath_var=no
8356      ;;
8357
8358    hpux9*)
8359      if test "$GCC" = yes; then
8360	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'
8361      else
8362	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'
8363      fi
8364      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8365      hardcode_libdir_separator=:
8366      hardcode_direct=yes
8367
8368      # hardcode_minus_L: Not really in the search PATH,
8369      # but as the default location of the library.
8370      hardcode_minus_L=yes
8371      export_dynamic_flag_spec='${wl}-E'
8372      ;;
8373
8374    hpux10*)
8375      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8376	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8377      else
8378	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8379      fi
8380      if test "$with_gnu_ld" = no; then
8381	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8382	hardcode_libdir_flag_spec_ld='+b $libdir'
8383	hardcode_libdir_separator=:
8384	hardcode_direct=yes
8385	hardcode_direct_absolute=yes
8386	export_dynamic_flag_spec='${wl}-E'
8387	# hardcode_minus_L: Not really in the search PATH,
8388	# but as the default location of the library.
8389	hardcode_minus_L=yes
8390      fi
8391      ;;
8392
8393    hpux11*)
8394      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8395	case $host_cpu in
8396	hppa*64*)
8397	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8398	  ;;
8399	ia64*)
8400	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8401	  ;;
8402	*)
8403	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8404	  ;;
8405	esac
8406      else
8407	case $host_cpu in
8408	hppa*64*)
8409	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8410	  ;;
8411	ia64*)
8412	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8413	  ;;
8414	*)
8415	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8416	  ;;
8417	esac
8418      fi
8419      if test "$with_gnu_ld" = no; then
8420	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8421	hardcode_libdir_separator=:
8422
8423	case $host_cpu in
8424	hppa*64*|ia64*)
8425	  hardcode_direct=no
8426	  hardcode_shlibpath_var=no
8427	  ;;
8428	*)
8429	  hardcode_direct=yes
8430	  hardcode_direct_absolute=yes
8431	  export_dynamic_flag_spec='${wl}-E'
8432
8433	  # hardcode_minus_L: Not really in the search PATH,
8434	  # but as the default location of the library.
8435	  hardcode_minus_L=yes
8436	  ;;
8437	esac
8438      fi
8439      ;;
8440
8441    irix5* | irix6* | nonstopux*)
8442      if test "$GCC" = yes; then
8443	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'
8444	# Try to use the -exported_symbol ld option, if it does not
8445	# work, assume that -exports_file does not work either and
8446	# implicitly export all symbols.
8447        save_LDFLAGS="$LDFLAGS"
8448        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8449        cat >conftest.$ac_ext <<_ACEOF
8450int foo(void) {}
8451_ACEOF
8452rm -f conftest.$ac_objext conftest$ac_exeext
8453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454  (eval $ac_link) 2>conftest.er1
8455  ac_status=$?
8456  grep -v '^ *+' conftest.er1 >conftest.err
8457  rm -f conftest.er1
8458  cat conftest.err >&5
8459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460  (exit $ac_status); } &&
8461	 { ac_try='test -z "$ac_c_werror_flag"
8462			 || test ! -s conftest.err'
8463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464  (eval $ac_try) 2>&5
8465  ac_status=$?
8466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467  (exit $ac_status); }; } &&
8468	 { ac_try='test -s conftest$ac_exeext'
8469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470  (eval $ac_try) 2>&5
8471  ac_status=$?
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); }; }; then
8474  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'
8475
8476else
8477  echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480fi
8481rm -f conftest.err conftest.$ac_objext \
8482      conftest$ac_exeext conftest.$ac_ext
8483        LDFLAGS="$save_LDFLAGS"
8484      else
8485	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'
8486	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'
8487      fi
8488      archive_cmds_need_lc='no'
8489      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8490      hardcode_libdir_separator=:
8491      inherit_rpath=yes
8492      link_all_deplibs=yes
8493      ;;
8494
8495    netbsd*)
8496      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8497	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8498      else
8499	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8500      fi
8501      hardcode_libdir_flag_spec='-R$libdir'
8502      hardcode_direct=yes
8503      hardcode_shlibpath_var=no
8504      ;;
8505
8506    newsos6)
8507      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508      hardcode_direct=yes
8509      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510      hardcode_libdir_separator=:
8511      hardcode_shlibpath_var=no
8512      ;;
8513
8514    *nto* | *qnx*)
8515      ;;
8516
8517    openbsd*)
8518      hardcode_direct=yes
8519      hardcode_shlibpath_var=no
8520      hardcode_direct_absolute=yes
8521      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8522	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8523	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8524	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8525	export_dynamic_flag_spec='${wl}-E'
8526      else
8527        case $host_os in
8528	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8529	  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8530	  hardcode_libdir_flag_spec='-R$libdir'
8531	  ;;
8532	*)
8533	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8534	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8535	  ;;
8536        esac
8537      fi
8538      ;;
8539
8540    os2*)
8541      hardcode_libdir_flag_spec='-L$libdir'
8542      hardcode_minus_L=yes
8543      allow_undefined_flag=unsupported
8544      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'
8545      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8546      ;;
8547
8548    osf3*)
8549      if test "$GCC" = yes; then
8550	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8551	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'
8552      else
8553	allow_undefined_flag=' -expect_unresolved \*'
8554	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'
8555      fi
8556      archive_cmds_need_lc='no'
8557      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8558      hardcode_libdir_separator=:
8559      ;;
8560
8561    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8562      if test "$GCC" = yes; then
8563	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8564	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'
8565	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8566      else
8567	allow_undefined_flag=' -expect_unresolved \*'
8568	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'
8569	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~
8570	$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'
8571
8572	# Both c and cxx compiler support -rpath directly
8573	hardcode_libdir_flag_spec='-rpath $libdir'
8574      fi
8575      archive_cmds_need_lc='no'
8576      hardcode_libdir_separator=:
8577      ;;
8578
8579    solaris*)
8580      no_undefined_flag=' -z defs'
8581      if test "$GCC" = yes; then
8582	wlarc='${wl}'
8583	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8585	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8586      else
8587	case `$CC -V 2>&1` in
8588	*"Compilers 5.0"*)
8589	  wlarc=''
8590	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8592	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8593	  ;;
8594	*)
8595	  wlarc='${wl}'
8596	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8597	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8598	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8599	  ;;
8600	esac
8601      fi
8602      hardcode_libdir_flag_spec='-R$libdir'
8603      hardcode_shlibpath_var=no
8604      case $host_os in
8605      solaris2.[0-5] | solaris2.[0-5].*) ;;
8606      *)
8607	# The compiler driver will combine and reorder linker options,
8608	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8609	# but is careful enough not to reorder.
8610	# Supported since Solaris 2.6 (maybe 2.5.1?)
8611	if test "$GCC" = yes; then
8612	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8613	else
8614	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8615	fi
8616	;;
8617      esac
8618      link_all_deplibs=yes
8619      ;;
8620
8621    sunos4*)
8622      if test "x$host_vendor" = xsequent; then
8623	# Use $CC to link under sequent, because it throws in some extra .o
8624	# files that make .init and .fini sections work.
8625	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8626      else
8627	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8628      fi
8629      hardcode_libdir_flag_spec='-L$libdir'
8630      hardcode_direct=yes
8631      hardcode_minus_L=yes
8632      hardcode_shlibpath_var=no
8633      ;;
8634
8635    sysv4)
8636      case $host_vendor in
8637	sni)
8638	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639	  hardcode_direct=yes # is this really true???
8640	;;
8641	siemens)
8642	  ## LD is ld it makes a PLAMLIB
8643	  ## CC just makes a GrossModule.
8644	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8645	  reload_cmds='$CC -r -o $output$reload_objs'
8646	  hardcode_direct=no
8647        ;;
8648	motorola)
8649	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8651	;;
8652      esac
8653      runpath_var='LD_RUN_PATH'
8654      hardcode_shlibpath_var=no
8655      ;;
8656
8657    sysv4.3*)
8658      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8659      hardcode_shlibpath_var=no
8660      export_dynamic_flag_spec='-Bexport'
8661      ;;
8662
8663    sysv4*MP*)
8664      if test -d /usr/nec; then
8665	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666	hardcode_shlibpath_var=no
8667	runpath_var=LD_RUN_PATH
8668	hardcode_runpath_var=yes
8669	ld_shlibs=yes
8670      fi
8671      ;;
8672
8673    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8674      no_undefined_flag='${wl}-z,text'
8675      archive_cmds_need_lc=no
8676      hardcode_shlibpath_var=no
8677      runpath_var='LD_RUN_PATH'
8678
8679      if test "$GCC" = yes; then
8680	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8682      else
8683	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8684	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8685      fi
8686      ;;
8687
8688    sysv5* | sco3.2v5* | sco5v6*)
8689      # Note: We can NOT use -z defs as we might desire, because we do not
8690      # link with -lc, and that would cause any symbols used from libc to
8691      # always be unresolved, which means just about no library would
8692      # ever link correctly.  If we're not using GNU ld we use -z text
8693      # though, which does catch some bad symbols but isn't as heavy-handed
8694      # as -z defs.
8695      no_undefined_flag='${wl}-z,text'
8696      allow_undefined_flag='${wl}-z,nodefs'
8697      archive_cmds_need_lc=no
8698      hardcode_shlibpath_var=no
8699      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8700      hardcode_libdir_separator=':'
8701      link_all_deplibs=yes
8702      export_dynamic_flag_spec='${wl}-Bexport'
8703      runpath_var='LD_RUN_PATH'
8704
8705      if test "$GCC" = yes; then
8706	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8708      else
8709	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8710	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8711      fi
8712      ;;
8713
8714    uts4*)
8715      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716      hardcode_libdir_flag_spec='-L$libdir'
8717      hardcode_shlibpath_var=no
8718      ;;
8719
8720    *)
8721      ld_shlibs=no
8722      ;;
8723    esac
8724
8725    if test x$host_vendor = xsni; then
8726      case $host in
8727      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8728	export_dynamic_flag_spec='${wl}-Blargedynsym'
8729	;;
8730      esac
8731    fi
8732  fi
8733
8734echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8735echo "${ECHO_T}$ld_shlibs" >&6
8736test "$ld_shlibs" = no && can_build_shared=no
8737
8738with_gnu_ld=$with_gnu_ld
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754#
8755# Do we need to explicitly link libc?
8756#
8757case "x$archive_cmds_need_lc" in
8758x|xyes)
8759  # Assume -lc should be added
8760  archive_cmds_need_lc=yes
8761
8762  if test "$enable_shared" = yes && test "$GCC" = yes; then
8763    case $archive_cmds in
8764    *'~'*)
8765      # FIXME: we may have to deal with multi-command sequences.
8766      ;;
8767    '$CC '*)
8768      # Test whether the compiler implicitly links with -lc since on some
8769      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8770      # to ld, don't add -lc before -lgcc.
8771      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8772echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8773      $RM conftest*
8774      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775
8776      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777  (eval $ac_compile) 2>&5
8778  ac_status=$?
8779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780  (exit $ac_status); } 2>conftest.err; then
8781        soname=conftest
8782        lib=conftest
8783        libobjs=conftest.$ac_objext
8784        deplibs=
8785        wl=$lt_prog_compiler_wl
8786	pic_flag=$lt_prog_compiler_pic
8787        compiler_flags=-v
8788        linker_flags=-v
8789        verstring=
8790        output_objdir=.
8791        libname=conftest
8792        lt_save_allow_undefined_flag=$allow_undefined_flag
8793        allow_undefined_flag=
8794        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8795  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8796  ac_status=$?
8797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798  (exit $ac_status); }
8799        then
8800	  archive_cmds_need_lc=no
8801        else
8802	  archive_cmds_need_lc=yes
8803        fi
8804        allow_undefined_flag=$lt_save_allow_undefined_flag
8805      else
8806        cat conftest.err 1>&5
8807      fi
8808      $RM conftest*
8809      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8810echo "${ECHO_T}$archive_cmds_need_lc" >&6
8811      ;;
8812    esac
8813  fi
8814  ;;
8815esac
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8974echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8975withGCC=$GCC
8976if test "$withGCC" = yes; then
8977  case $host_os in
8978    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8979    *) lt_awk_arg="/^libraries:/" ;;
8980  esac
8981  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8982  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8983    # if the path contains ";" then we assume it to be the separator
8984    # otherwise default to the standard path separator (i.e. ":") - it is
8985    # assumed that no part of a normal pathname contains ";" but that should
8986    # okay in the real world where ";" in dirpaths is itself problematic.
8987    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8988  else
8989    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8990  fi
8991  # Ok, now we have the path, separated by spaces, we can step through it
8992  # and add multilib dir if necessary.
8993  lt_tmp_lt_search_path_spec=
8994  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8995  for lt_sys_path in $lt_search_path_spec; do
8996    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8997      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8998    else
8999      test -d "$lt_sys_path" && \
9000	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9001    fi
9002  done
9003  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9004BEGIN {RS=" "; FS="/|\n";} {
9005  lt_foo="";
9006  lt_count=0;
9007  for (lt_i = NF; lt_i > 0; lt_i--) {
9008    if ($lt_i != "" && $lt_i != ".") {
9009      if ($lt_i == "..") {
9010        lt_count++;
9011      } else {
9012        if (lt_count == 0) {
9013          lt_foo="/" $lt_i lt_foo;
9014        } else {
9015          lt_count--;
9016        }
9017      }
9018    }
9019  }
9020  if (lt_foo != "") { lt_freq[lt_foo]++; }
9021  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9022}'`
9023  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9024else
9025  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9026fi
9027library_names_spec=
9028libname_spec='lib$name'
9029soname_spec=
9030shrext_cmds=".so"
9031postinstall_cmds=
9032postuninstall_cmds=
9033finish_cmds=
9034finish_eval=
9035shlibpath_var=
9036shlibpath_overrides_runpath=unknown
9037version_type=none
9038dynamic_linker="$host_os ld.so"
9039sys_lib_dlsearch_path_spec="/lib /usr/lib"
9040need_lib_prefix=unknown
9041hardcode_into_libs=no
9042
9043# when you set need_version to no, make sure it does not cause -set_version
9044# flags to be left without arguments
9045need_version=unknown
9046
9047case $host_os in
9048aix3*)
9049  version_type=linux
9050  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9051  shlibpath_var=LIBPATH
9052
9053  # AIX 3 has no versioning support, so we append a major version to the name.
9054  soname_spec='${libname}${release}${shared_ext}$major'
9055  ;;
9056
9057aix[4-9]*)
9058  version_type=linux
9059  need_lib_prefix=no
9060  need_version=no
9061  hardcode_into_libs=yes
9062  if test "$host_cpu" = ia64; then
9063    # AIX 5 supports IA64
9064    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9065    shlibpath_var=LD_LIBRARY_PATH
9066  else
9067    # With GCC up to 2.95.x, collect2 would create an import file
9068    # for dependence libraries.  The import file would start with
9069    # the line `#! .'.  This would cause the generated library to
9070    # depend on `.', always an invalid library.  This was fixed in
9071    # development snapshots of GCC prior to 3.0.
9072    case $host_os in
9073      aix4 | aix4.[01] | aix4.[01].*)
9074      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9075	   echo ' yes '
9076	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9077	:
9078      else
9079	can_build_shared=no
9080      fi
9081      ;;
9082    esac
9083    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9084    # soname into executable. Probably we can add versioning support to
9085    # collect2, so additional links can be useful in future.
9086    if test "$aix_use_runtimelinking" = yes; then
9087      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9088      # instead of lib<name>.a to let people know that these are not
9089      # typical AIX shared libraries.
9090      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091    else
9092      # We preserve .a as extension for shared libraries through AIX4.2
9093      # and later when we are not doing run time linking.
9094      library_names_spec='${libname}${release}.a $libname.a'
9095      soname_spec='${libname}${release}${shared_ext}$major'
9096    fi
9097    shlibpath_var=LIBPATH
9098  fi
9099  ;;
9100
9101amigaos*)
9102  if test "$host_cpu" = m68k; then
9103    library_names_spec='$libname.ixlibrary $libname.a'
9104    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105    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'
9106  else
9107    dynamic_linker=no
9108  fi
9109  ;;
9110
9111beos*)
9112  library_names_spec='${libname}${shared_ext}'
9113  dynamic_linker="$host_os ld.so"
9114  shlibpath_var=LIBRARY_PATH
9115  ;;
9116
9117bsdi[45]*)
9118  version_type=linux
9119  need_version=no
9120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121  soname_spec='${libname}${release}${shared_ext}$major'
9122  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9123  shlibpath_var=LD_LIBRARY_PATH
9124  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9125  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9126  # the default ld.so.conf also contains /usr/contrib/lib and
9127  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9128  # libtool to hard-code these into programs
9129  ;;
9130
9131cygwin* | mingw* | pw32*)
9132  version_type=windows
9133  shrext_cmds=".dll"
9134  need_version=no
9135  need_lib_prefix=no
9136
9137  case $withGCC,$host_os in
9138  yes,cygwin* | yes,mingw* | yes,pw32*)
9139    library_names_spec='$libname.dll.a'
9140    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9141    postinstall_cmds='base_file=`basename \${file}`~
9142      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9143      dldir=$destdir/`dirname \$dlpath`~
9144      test -d \$dldir || mkdir -p \$dldir~
9145      $install_prog $dir/$dlname \$dldir/$dlname~
9146      chmod a+x \$dldir/$dlname~
9147      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9148        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9149      fi'
9150    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9151      dlpath=$dir/\$dldll~
9152       $RM \$dlpath'
9153    shlibpath_overrides_runpath=yes
9154
9155    case $host_os in
9156    cygwin*)
9157      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9158      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9160      ;;
9161    mingw*)
9162      # MinGW DLLs use traditional 'lib' prefix
9163      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9164      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9165      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9166        # It is most probably a Windows format PATH printed by
9167        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9168        # path with ; separators, and with drive letters. We can handle the
9169        # drive letters (cygwin fileutils understands them), so leave them,
9170        # especially as we might pass files found there to a mingw objdump,
9171        # which wouldn't understand a cygwinified path. Ahh.
9172        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9173      else
9174        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9175      fi
9176      ;;
9177    pw32*)
9178      # pw32 DLLs use 'pw' prefix rather than 'lib'
9179      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180      ;;
9181    esac
9182    ;;
9183
9184  *)
9185    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9186    ;;
9187  esac
9188  dynamic_linker='Win32 ld.exe'
9189  # FIXME: first we should search . and the directory the executable is in
9190  shlibpath_var=PATH
9191  ;;
9192
9193darwin* | rhapsody*)
9194  dynamic_linker="$host_os dyld"
9195  version_type=darwin
9196  need_lib_prefix=no
9197  need_version=no
9198  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9199  soname_spec='${libname}${release}${major}$shared_ext'
9200  shlibpath_overrides_runpath=yes
9201  shlibpath_var=DYLD_LIBRARY_PATH
9202  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9203
9204  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9205  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9206  ;;
9207
9208dgux*)
9209  version_type=linux
9210  need_lib_prefix=no
9211  need_version=no
9212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9213  soname_spec='${libname}${release}${shared_ext}$major'
9214  shlibpath_var=LD_LIBRARY_PATH
9215  ;;
9216
9217freebsd1*)
9218  dynamic_linker=no
9219  ;;
9220
9221freebsd* | dragonfly*)
9222  # DragonFly does not have aout.  When/if they implement a new
9223  # versioning mechanism, adjust this.
9224  if test -x /usr/bin/objformat; then
9225    objformat=`/usr/bin/objformat`
9226  else
9227    case $host_os in
9228    freebsd[123]*) objformat=aout ;;
9229    *) objformat=elf ;;
9230    esac
9231  fi
9232  version_type=freebsd-$objformat
9233  case $version_type in
9234    freebsd-elf*)
9235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9236      need_version=no
9237      need_lib_prefix=no
9238      ;;
9239    freebsd-*)
9240      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9241      need_version=yes
9242      ;;
9243  esac
9244  shlibpath_var=LD_LIBRARY_PATH
9245  case $host_os in
9246  freebsd2*)
9247    shlibpath_overrides_runpath=yes
9248    ;;
9249  freebsd3.[01]* | freebsdelf3.[01]*)
9250    shlibpath_overrides_runpath=yes
9251    hardcode_into_libs=yes
9252    ;;
9253  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9254  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9255    shlibpath_overrides_runpath=no
9256    hardcode_into_libs=yes
9257    ;;
9258  *) # from 4.6 on, and DragonFly
9259    shlibpath_overrides_runpath=yes
9260    hardcode_into_libs=yes
9261    ;;
9262  esac
9263  ;;
9264
9265gnu*)
9266  version_type=linux
9267  need_lib_prefix=no
9268  need_version=no
9269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9270  soname_spec='${libname}${release}${shared_ext}$major'
9271  shlibpath_var=LD_LIBRARY_PATH
9272  hardcode_into_libs=yes
9273  ;;
9274
9275hpux9* | hpux10* | hpux11*)
9276  # Give a soname corresponding to the major version so that dld.sl refuses to
9277  # link against other versions.
9278  version_type=sunos
9279  need_lib_prefix=no
9280  need_version=no
9281  case $host_cpu in
9282  ia64*)
9283    shrext_cmds='.so'
9284    hardcode_into_libs=yes
9285    dynamic_linker="$host_os dld.so"
9286    shlibpath_var=LD_LIBRARY_PATH
9287    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9288    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289    soname_spec='${libname}${release}${shared_ext}$major'
9290    if test "X$HPUX_IA64_MODE" = X32; then
9291      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9292    else
9293      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9294    fi
9295    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9296    ;;
9297  hppa*64*)
9298    shrext_cmds='.sl'
9299    hardcode_into_libs=yes
9300    dynamic_linker="$host_os dld.sl"
9301    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9302    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9303    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304    soname_spec='${libname}${release}${shared_ext}$major'
9305    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9306    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9307    ;;
9308  *)
9309    shrext_cmds='.sl'
9310    dynamic_linker="$host_os dld.sl"
9311    shlibpath_var=SHLIB_PATH
9312    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9313    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314    soname_spec='${libname}${release}${shared_ext}$major'
9315    ;;
9316  esac
9317  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9318  postinstall_cmds='chmod 555 $lib'
9319  ;;
9320
9321interix[3-9]*)
9322  version_type=linux
9323  need_lib_prefix=no
9324  need_version=no
9325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9326  soname_spec='${libname}${release}${shared_ext}$major'
9327  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9328  shlibpath_var=LD_LIBRARY_PATH
9329  shlibpath_overrides_runpath=no
9330  hardcode_into_libs=yes
9331  ;;
9332
9333irix5* | irix6* | nonstopux*)
9334  case $host_os in
9335    nonstopux*) version_type=nonstopux ;;
9336    *)
9337	if test "$lt_cv_prog_gnu_ld" = yes; then
9338		version_type=linux
9339	else
9340		version_type=irix
9341	fi ;;
9342  esac
9343  need_lib_prefix=no
9344  need_version=no
9345  soname_spec='${libname}${release}${shared_ext}$major'
9346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9347  case $host_os in
9348  irix5* | nonstopux*)
9349    libsuff= shlibsuff=
9350    ;;
9351  *)
9352    case $LD in # libtool.m4 will add one of these switches to LD
9353    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9354      libsuff= shlibsuff= libmagic=32-bit;;
9355    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9356      libsuff=32 shlibsuff=N32 libmagic=N32;;
9357    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9358      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9359    *) libsuff= shlibsuff= libmagic=never-match;;
9360    esac
9361    ;;
9362  esac
9363  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9364  shlibpath_overrides_runpath=no
9365  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9366  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9367  hardcode_into_libs=yes
9368  ;;
9369
9370# No shared lib support for Linux oldld, aout, or coff.
9371linux*oldld* | linux*aout* | linux*coff*)
9372  dynamic_linker=no
9373  ;;
9374
9375# This must be Linux ELF.
9376linux* | k*bsd*-gnu)
9377  version_type=linux
9378  need_lib_prefix=no
9379  need_version=no
9380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381  soname_spec='${libname}${release}${shared_ext}$major'
9382  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9383  shlibpath_var=LD_LIBRARY_PATH
9384  shlibpath_overrides_runpath=no
9385  # Some binutils ld are patched to set DT_RUNPATH
9386  save_LDFLAGS=$LDFLAGS
9387  save_libdir=$libdir
9388  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9389       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9390  cat >conftest.$ac_ext <<_ACEOF
9391/* confdefs.h.  */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h.  */
9396
9397int
9398main ()
9399{
9400
9401  ;
9402  return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
9406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407  (eval $ac_link) 2>conftest.er1
9408  ac_status=$?
9409  grep -v '^ *+' conftest.er1 >conftest.err
9410  rm -f conftest.er1
9411  cat conftest.err >&5
9412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413  (exit $ac_status); } &&
9414	 { ac_try='test -z "$ac_c_werror_flag"
9415			 || test ! -s conftest.err'
9416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417  (eval $ac_try) 2>&5
9418  ac_status=$?
9419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420  (exit $ac_status); }; } &&
9421	 { ac_try='test -s conftest$ac_exeext'
9422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423  (eval $ac_try) 2>&5
9424  ac_status=$?
9425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426  (exit $ac_status); }; }; then
9427  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9428  shlibpath_overrides_runpath=yes
9429fi
9430
9431else
9432  echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435fi
9436rm -f conftest.err conftest.$ac_objext \
9437      conftest$ac_exeext conftest.$ac_ext
9438  LDFLAGS=$save_LDFLAGS
9439  libdir=$save_libdir
9440
9441  # This implies no fast_install, which is unacceptable.
9442  # Some rework will be needed to allow for fast_install
9443  # before this can be enabled.
9444  hardcode_into_libs=yes
9445
9446  # Append ld.so.conf contents to the search path
9447  if test -f /etc/ld.so.conf; then
9448    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' ' '`
9449    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9450  fi
9451
9452  # We used to test for /lib/ld.so.1 and disable shared libraries on
9453  # powerpc, because MkLinux only supported shared libraries with the
9454  # GNU dynamic linker.  Since this was broken with cross compilers,
9455  # most powerpc-linux boxes support dynamic linking these days and
9456  # people can always --disable-shared, the test was removed, and we
9457  # assume the GNU/Linux dynamic linker is in use.
9458  dynamic_linker='GNU/Linux ld.so'
9459  ;;
9460
9461netbsd*)
9462  version_type=sunos
9463  need_lib_prefix=no
9464  need_version=no
9465  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9466    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9467    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9468    dynamic_linker='NetBSD (a.out) ld.so'
9469  else
9470    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471    soname_spec='${libname}${release}${shared_ext}$major'
9472    dynamic_linker='NetBSD ld.elf_so'
9473  fi
9474  shlibpath_var=LD_LIBRARY_PATH
9475  shlibpath_overrides_runpath=yes
9476  hardcode_into_libs=yes
9477  ;;
9478
9479newsos6)
9480  version_type=linux
9481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482  shlibpath_var=LD_LIBRARY_PATH
9483  shlibpath_overrides_runpath=yes
9484  ;;
9485
9486*nto* | *qnx*)
9487  version_type=qnx
9488  need_lib_prefix=no
9489  need_version=no
9490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491  soname_spec='${libname}${release}${shared_ext}$major'
9492  shlibpath_var=LD_LIBRARY_PATH
9493  shlibpath_overrides_runpath=no
9494  hardcode_into_libs=yes
9495  dynamic_linker='ldqnx.so'
9496  ;;
9497
9498openbsd*)
9499  version_type=sunos
9500  sys_lib_dlsearch_path_spec="/usr/lib"
9501  need_lib_prefix=no
9502  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9503  case $host_os in
9504    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9505    *)				need_version=no  ;;
9506  esac
9507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509  shlibpath_var=LD_LIBRARY_PATH
9510  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511    case $host_os in
9512      openbsd2.[89] | openbsd2.[89].*)
9513	shlibpath_overrides_runpath=no
9514	;;
9515      *)
9516	shlibpath_overrides_runpath=yes
9517	;;
9518      esac
9519  else
9520    shlibpath_overrides_runpath=yes
9521  fi
9522  ;;
9523
9524os2*)
9525  libname_spec='$name'
9526  shrext_cmds=".dll"
9527  need_lib_prefix=no
9528  library_names_spec='$libname${shared_ext} $libname.a'
9529  dynamic_linker='OS/2 ld.exe'
9530  shlibpath_var=LIBPATH
9531  ;;
9532
9533osf3* | osf4* | osf5*)
9534  version_type=osf
9535  need_lib_prefix=no
9536  need_version=no
9537  soname_spec='${libname}${release}${shared_ext}$major'
9538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539  shlibpath_var=LD_LIBRARY_PATH
9540  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9541  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9542  ;;
9543
9544rdos*)
9545  dynamic_linker=no
9546  ;;
9547
9548solaris*)
9549  version_type=linux
9550  need_lib_prefix=no
9551  need_version=no
9552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553  soname_spec='${libname}${release}${shared_ext}$major'
9554  shlibpath_var=LD_LIBRARY_PATH
9555  shlibpath_overrides_runpath=yes
9556  hardcode_into_libs=yes
9557  # ldd complains unless libraries are executable
9558  postinstall_cmds='chmod +x $lib'
9559  ;;
9560
9561sunos4*)
9562  version_type=sunos
9563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9565  shlibpath_var=LD_LIBRARY_PATH
9566  shlibpath_overrides_runpath=yes
9567  if test "$with_gnu_ld" = yes; then
9568    need_lib_prefix=no
9569  fi
9570  need_version=yes
9571  ;;
9572
9573sysv4 | sysv4.3*)
9574  version_type=linux
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  shlibpath_var=LD_LIBRARY_PATH
9578  case $host_vendor in
9579    sni)
9580      shlibpath_overrides_runpath=no
9581      need_lib_prefix=no
9582      runpath_var=LD_RUN_PATH
9583      ;;
9584    siemens)
9585      need_lib_prefix=no
9586      ;;
9587    motorola)
9588      need_lib_prefix=no
9589      need_version=no
9590      shlibpath_overrides_runpath=no
9591      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9592      ;;
9593  esac
9594  ;;
9595
9596sysv4*MP*)
9597  if test -d /usr/nec ;then
9598    version_type=linux
9599    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9600    soname_spec='$libname${shared_ext}.$major'
9601    shlibpath_var=LD_LIBRARY_PATH
9602  fi
9603  ;;
9604
9605sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9606  version_type=freebsd-elf
9607  need_lib_prefix=no
9608  need_version=no
9609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9610  soname_spec='${libname}${release}${shared_ext}$major'
9611  shlibpath_var=LD_LIBRARY_PATH
9612  shlibpath_overrides_runpath=yes
9613  hardcode_into_libs=yes
9614  if test "$with_gnu_ld" = yes; then
9615    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9616  else
9617    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9618    case $host_os in
9619      sco3.2v5*)
9620        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9621	;;
9622    esac
9623  fi
9624  sys_lib_dlsearch_path_spec='/usr/lib'
9625  ;;
9626
9627tpf*)
9628  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9629  version_type=linux
9630  need_lib_prefix=no
9631  need_version=no
9632  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633  shlibpath_var=LD_LIBRARY_PATH
9634  shlibpath_overrides_runpath=no
9635  hardcode_into_libs=yes
9636  ;;
9637
9638uts4*)
9639  version_type=linux
9640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641  soname_spec='${libname}${release}${shared_ext}$major'
9642  shlibpath_var=LD_LIBRARY_PATH
9643  ;;
9644
9645*)
9646  dynamic_linker=no
9647  ;;
9648esac
9649echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9650echo "${ECHO_T}$dynamic_linker" >&6
9651test "$dynamic_linker" = no && can_build_shared=no
9652
9653variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9654if test "$GCC" = yes; then
9655  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9656fi
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9745echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9746hardcode_action=
9747if test -n "$hardcode_libdir_flag_spec" ||
9748   test -n "$runpath_var" ||
9749   test "X$hardcode_automatic" = "Xyes" ; then
9750
9751  # We can hardcode non-existent directories.
9752  if test "$hardcode_direct" != no &&
9753     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9754     # have to relink, otherwise we might link with an installed library
9755     # when we should be linking with a yet-to-be-installed one
9756     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9757     test "$hardcode_minus_L" != no; then
9758    # Linking always hardcodes the temporary library directory.
9759    hardcode_action=relink
9760  else
9761    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9762    hardcode_action=immediate
9763  fi
9764else
9765  # We cannot hardcode anything, or else we can only hardcode existing
9766  # directories.
9767  hardcode_action=unsupported
9768fi
9769echo "$as_me:$LINENO: result: $hardcode_action" >&5
9770echo "${ECHO_T}$hardcode_action" >&6
9771
9772if test "$hardcode_action" = relink ||
9773   test "$inherit_rpath" = yes; then
9774  # Fast installation is not supported
9775  enable_fast_install=no
9776elif test "$shlibpath_overrides_runpath" = yes ||
9777     test "$enable_shared" = no; then
9778  # Fast installation is not necessary
9779  enable_fast_install=needless
9780fi
9781
9782
9783
9784
9785
9786
9787  if test "x$enable_dlopen" != xyes; then
9788  enable_dlopen=unknown
9789  enable_dlopen_self=unknown
9790  enable_dlopen_self_static=unknown
9791else
9792  lt_cv_dlopen=no
9793  lt_cv_dlopen_libs=
9794
9795  case $host_os in
9796  beos*)
9797    lt_cv_dlopen="load_add_on"
9798    lt_cv_dlopen_libs=
9799    lt_cv_dlopen_self=yes
9800    ;;
9801
9802  mingw* | pw32*)
9803    lt_cv_dlopen="LoadLibrary"
9804    lt_cv_dlopen_libs=
9805    ;;
9806
9807  cygwin*)
9808    lt_cv_dlopen="dlopen"
9809    lt_cv_dlopen_libs=
9810    ;;
9811
9812  darwin*)
9813  # if libdl is installed we need to link against it
9814    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9815echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9816if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9817  echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819  ac_check_lib_save_LIBS=$LIBS
9820LIBS="-ldl  $LIBS"
9821cat >conftest.$ac_ext <<_ACEOF
9822/* confdefs.h.  */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h.  */
9827
9828/* Override any gcc2 internal prototype to avoid an error.  */
9829#ifdef __cplusplus
9830extern "C"
9831#endif
9832/* We use char because int might match the return type of a gcc2
9833   builtin and then its argument prototype would still apply.  */
9834char dlopen ();
9835int
9836main ()
9837{
9838dlopen ();
9839  ;
9840  return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext conftest$ac_exeext
9844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845  (eval $ac_link) 2>conftest.er1
9846  ac_status=$?
9847  grep -v '^ *+' conftest.er1 >conftest.err
9848  rm -f conftest.er1
9849  cat conftest.err >&5
9850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851  (exit $ac_status); } &&
9852	 { ac_try='test -z "$ac_c_werror_flag"
9853			 || test ! -s conftest.err'
9854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855  (eval $ac_try) 2>&5
9856  ac_status=$?
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); }; } &&
9859	 { ac_try='test -s conftest$ac_exeext'
9860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861  (eval $ac_try) 2>&5
9862  ac_status=$?
9863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864  (exit $ac_status); }; }; then
9865  ac_cv_lib_dl_dlopen=yes
9866else
9867  echo "$as_me: failed program was:" >&5
9868sed 's/^/| /' conftest.$ac_ext >&5
9869
9870ac_cv_lib_dl_dlopen=no
9871fi
9872rm -f conftest.err conftest.$ac_objext \
9873      conftest$ac_exeext conftest.$ac_ext
9874LIBS=$ac_check_lib_save_LIBS
9875fi
9876echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9878if test $ac_cv_lib_dl_dlopen = yes; then
9879  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9880else
9881
9882    lt_cv_dlopen="dyld"
9883    lt_cv_dlopen_libs=
9884    lt_cv_dlopen_self=yes
9885
9886fi
9887
9888    ;;
9889
9890  *)
9891    echo "$as_me:$LINENO: checking for shl_load" >&5
9892echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9893if test "${ac_cv_func_shl_load+set}" = set; then
9894  echo $ECHO_N "(cached) $ECHO_C" >&6
9895else
9896  cat >conftest.$ac_ext <<_ACEOF
9897/* confdefs.h.  */
9898_ACEOF
9899cat confdefs.h >>conftest.$ac_ext
9900cat >>conftest.$ac_ext <<_ACEOF
9901/* end confdefs.h.  */
9902/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9904#define shl_load innocuous_shl_load
9905
9906/* System header to define __stub macros and hopefully few prototypes,
9907    which can conflict with char shl_load (); below.
9908    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909    <limits.h> exists even on freestanding compilers.  */
9910
9911#ifdef __STDC__
9912# include <limits.h>
9913#else
9914# include <assert.h>
9915#endif
9916
9917#undef shl_load
9918
9919/* Override any gcc2 internal prototype to avoid an error.  */
9920#ifdef __cplusplus
9921extern "C"
9922{
9923#endif
9924/* We use char because int might match the return type of a gcc2
9925   builtin and then its argument prototype would still apply.  */
9926char shl_load ();
9927/* The GNU C library defines this for functions which it implements
9928    to always fail with ENOSYS.  Some functions are actually named
9929    something starting with __ and the normal name is an alias.  */
9930#if defined (__stub_shl_load) || defined (__stub___shl_load)
9931choke me
9932#else
9933char (*f) () = shl_load;
9934#endif
9935#ifdef __cplusplus
9936}
9937#endif
9938
9939int
9940main ()
9941{
9942return f != shl_load;
9943  ;
9944  return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
9948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949  (eval $ac_link) 2>conftest.er1
9950  ac_status=$?
9951  grep -v '^ *+' conftest.er1 >conftest.err
9952  rm -f conftest.er1
9953  cat conftest.err >&5
9954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955  (exit $ac_status); } &&
9956	 { ac_try='test -z "$ac_c_werror_flag"
9957			 || test ! -s conftest.err'
9958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959  (eval $ac_try) 2>&5
9960  ac_status=$?
9961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); }; } &&
9963	 { ac_try='test -s conftest$ac_exeext'
9964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965  (eval $ac_try) 2>&5
9966  ac_status=$?
9967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); }; }; then
9969  ac_cv_func_shl_load=yes
9970else
9971  echo "$as_me: failed program was:" >&5
9972sed 's/^/| /' conftest.$ac_ext >&5
9973
9974ac_cv_func_shl_load=no
9975fi
9976rm -f conftest.err conftest.$ac_objext \
9977      conftest$ac_exeext conftest.$ac_ext
9978fi
9979echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9981if test $ac_cv_func_shl_load = yes; then
9982  lt_cv_dlopen="shl_load"
9983else
9984  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9986if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987  echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989  ac_check_lib_save_LIBS=$LIBS
9990LIBS="-ldld  $LIBS"
9991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h.  */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h.  */
9997
9998/* Override any gcc2 internal prototype to avoid an error.  */
9999#ifdef __cplusplus
10000extern "C"
10001#endif
10002/* We use char because int might match the return type of a gcc2
10003   builtin and then its argument prototype would still apply.  */
10004char shl_load ();
10005int
10006main ()
10007{
10008shl_load ();
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015  (eval $ac_link) 2>conftest.er1
10016  ac_status=$?
10017  grep -v '^ *+' conftest.er1 >conftest.err
10018  rm -f conftest.er1
10019  cat conftest.err >&5
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); } &&
10022	 { ac_try='test -z "$ac_c_werror_flag"
10023			 || test ! -s conftest.err'
10024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025  (eval $ac_try) 2>&5
10026  ac_status=$?
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); }; } &&
10029	 { ac_try='test -s conftest$ac_exeext'
10030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031  (eval $ac_try) 2>&5
10032  ac_status=$?
10033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); }; }; then
10035  ac_cv_lib_dld_shl_load=yes
10036else
10037  echo "$as_me: failed program was:" >&5
10038sed 's/^/| /' conftest.$ac_ext >&5
10039
10040ac_cv_lib_dld_shl_load=no
10041fi
10042rm -f conftest.err conftest.$ac_objext \
10043      conftest$ac_exeext conftest.$ac_ext
10044LIBS=$ac_check_lib_save_LIBS
10045fi
10046echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10047echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10048if test $ac_cv_lib_dld_shl_load = yes; then
10049  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10050else
10051  echo "$as_me:$LINENO: checking for dlopen" >&5
10052echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10053if test "${ac_cv_func_dlopen+set}" = set; then
10054  echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056  cat >conftest.$ac_ext <<_ACEOF
10057/* confdefs.h.  */
10058_ACEOF
10059cat confdefs.h >>conftest.$ac_ext
10060cat >>conftest.$ac_ext <<_ACEOF
10061/* end confdefs.h.  */
10062/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10063   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10064#define dlopen innocuous_dlopen
10065
10066/* System header to define __stub macros and hopefully few prototypes,
10067    which can conflict with char dlopen (); below.
10068    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10069    <limits.h> exists even on freestanding compilers.  */
10070
10071#ifdef __STDC__
10072# include <limits.h>
10073#else
10074# include <assert.h>
10075#endif
10076
10077#undef dlopen
10078
10079/* Override any gcc2 internal prototype to avoid an error.  */
10080#ifdef __cplusplus
10081extern "C"
10082{
10083#endif
10084/* We use char because int might match the return type of a gcc2
10085   builtin and then its argument prototype would still apply.  */
10086char dlopen ();
10087/* The GNU C library defines this for functions which it implements
10088    to always fail with ENOSYS.  Some functions are actually named
10089    something starting with __ and the normal name is an alias.  */
10090#if defined (__stub_dlopen) || defined (__stub___dlopen)
10091choke me
10092#else
10093char (*f) () = dlopen;
10094#endif
10095#ifdef __cplusplus
10096}
10097#endif
10098
10099int
10100main ()
10101{
10102return f != dlopen;
10103  ;
10104  return 0;
10105}
10106_ACEOF
10107rm -f conftest.$ac_objext conftest$ac_exeext
10108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109  (eval $ac_link) 2>conftest.er1
10110  ac_status=$?
10111  grep -v '^ *+' conftest.er1 >conftest.err
10112  rm -f conftest.er1
10113  cat conftest.err >&5
10114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115  (exit $ac_status); } &&
10116	 { ac_try='test -z "$ac_c_werror_flag"
10117			 || test ! -s conftest.err'
10118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119  (eval $ac_try) 2>&5
10120  ac_status=$?
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); }; } &&
10123	 { ac_try='test -s conftest$ac_exeext'
10124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125  (eval $ac_try) 2>&5
10126  ac_status=$?
10127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128  (exit $ac_status); }; }; then
10129  ac_cv_func_dlopen=yes
10130else
10131  echo "$as_me: failed program was:" >&5
10132sed 's/^/| /' conftest.$ac_ext >&5
10133
10134ac_cv_func_dlopen=no
10135fi
10136rm -f conftest.err conftest.$ac_objext \
10137      conftest$ac_exeext conftest.$ac_ext
10138fi
10139echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10140echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10141if test $ac_cv_func_dlopen = yes; then
10142  lt_cv_dlopen="dlopen"
10143else
10144  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10145echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10146if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10147  echo $ECHO_N "(cached) $ECHO_C" >&6
10148else
10149  ac_check_lib_save_LIBS=$LIBS
10150LIBS="-ldl  $LIBS"
10151cat >conftest.$ac_ext <<_ACEOF
10152/* confdefs.h.  */
10153_ACEOF
10154cat confdefs.h >>conftest.$ac_ext
10155cat >>conftest.$ac_ext <<_ACEOF
10156/* end confdefs.h.  */
10157
10158/* Override any gcc2 internal prototype to avoid an error.  */
10159#ifdef __cplusplus
10160extern "C"
10161#endif
10162/* We use char because int might match the return type of a gcc2
10163   builtin and then its argument prototype would still apply.  */
10164char dlopen ();
10165int
10166main ()
10167{
10168dlopen ();
10169  ;
10170  return 0;
10171}
10172_ACEOF
10173rm -f conftest.$ac_objext conftest$ac_exeext
10174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175  (eval $ac_link) 2>conftest.er1
10176  ac_status=$?
10177  grep -v '^ *+' conftest.er1 >conftest.err
10178  rm -f conftest.er1
10179  cat conftest.err >&5
10180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181  (exit $ac_status); } &&
10182	 { ac_try='test -z "$ac_c_werror_flag"
10183			 || test ! -s conftest.err'
10184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185  (eval $ac_try) 2>&5
10186  ac_status=$?
10187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188  (exit $ac_status); }; } &&
10189	 { ac_try='test -s conftest$ac_exeext'
10190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191  (eval $ac_try) 2>&5
10192  ac_status=$?
10193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194  (exit $ac_status); }; }; then
10195  ac_cv_lib_dl_dlopen=yes
10196else
10197  echo "$as_me: failed program was:" >&5
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
10200ac_cv_lib_dl_dlopen=no
10201fi
10202rm -f conftest.err conftest.$ac_objext \
10203      conftest$ac_exeext conftest.$ac_ext
10204LIBS=$ac_check_lib_save_LIBS
10205fi
10206echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10207echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10208if test $ac_cv_lib_dl_dlopen = yes; then
10209  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10210else
10211  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10212echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10213if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10214  echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216  ac_check_lib_save_LIBS=$LIBS
10217LIBS="-lsvld  $LIBS"
10218cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h.  */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h.  */
10224
10225/* Override any gcc2 internal prototype to avoid an error.  */
10226#ifdef __cplusplus
10227extern "C"
10228#endif
10229/* We use char because int might match the return type of a gcc2
10230   builtin and then its argument prototype would still apply.  */
10231char dlopen ();
10232int
10233main ()
10234{
10235dlopen ();
10236  ;
10237  return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
10241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242  (eval $ac_link) 2>conftest.er1
10243  ac_status=$?
10244  grep -v '^ *+' conftest.er1 >conftest.err
10245  rm -f conftest.er1
10246  cat conftest.err >&5
10247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248  (exit $ac_status); } &&
10249	 { ac_try='test -z "$ac_c_werror_flag"
10250			 || test ! -s conftest.err'
10251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252  (eval $ac_try) 2>&5
10253  ac_status=$?
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); }; } &&
10256	 { ac_try='test -s conftest$ac_exeext'
10257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258  (eval $ac_try) 2>&5
10259  ac_status=$?
10260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); }; }; then
10262  ac_cv_lib_svld_dlopen=yes
10263else
10264  echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267ac_cv_lib_svld_dlopen=no
10268fi
10269rm -f conftest.err conftest.$ac_objext \
10270      conftest$ac_exeext conftest.$ac_ext
10271LIBS=$ac_check_lib_save_LIBS
10272fi
10273echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10275if test $ac_cv_lib_svld_dlopen = yes; then
10276  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10277else
10278  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10279echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10280if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10281  echo $ECHO_N "(cached) $ECHO_C" >&6
10282else
10283  ac_check_lib_save_LIBS=$LIBS
10284LIBS="-ldld  $LIBS"
10285cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h.  */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h.  */
10291
10292/* Override any gcc2 internal prototype to avoid an error.  */
10293#ifdef __cplusplus
10294extern "C"
10295#endif
10296/* We use char because int might match the return type of a gcc2
10297   builtin and then its argument prototype would still apply.  */
10298char dld_link ();
10299int
10300main ()
10301{
10302dld_link ();
10303  ;
10304  return 0;
10305}
10306_ACEOF
10307rm -f conftest.$ac_objext conftest$ac_exeext
10308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309  (eval $ac_link) 2>conftest.er1
10310  ac_status=$?
10311  grep -v '^ *+' conftest.er1 >conftest.err
10312  rm -f conftest.er1
10313  cat conftest.err >&5
10314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315  (exit $ac_status); } &&
10316	 { ac_try='test -z "$ac_c_werror_flag"
10317			 || test ! -s conftest.err'
10318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319  (eval $ac_try) 2>&5
10320  ac_status=$?
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); }; } &&
10323	 { ac_try='test -s conftest$ac_exeext'
10324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325  (eval $ac_try) 2>&5
10326  ac_status=$?
10327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328  (exit $ac_status); }; }; then
10329  ac_cv_lib_dld_dld_link=yes
10330else
10331  echo "$as_me: failed program was:" >&5
10332sed 's/^/| /' conftest.$ac_ext >&5
10333
10334ac_cv_lib_dld_dld_link=no
10335fi
10336rm -f conftest.err conftest.$ac_objext \
10337      conftest$ac_exeext conftest.$ac_ext
10338LIBS=$ac_check_lib_save_LIBS
10339fi
10340echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10342if test $ac_cv_lib_dld_dld_link = yes; then
10343  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10344fi
10345
10346
10347fi
10348
10349
10350fi
10351
10352
10353fi
10354
10355
10356fi
10357
10358
10359fi
10360
10361    ;;
10362  esac
10363
10364  if test "x$lt_cv_dlopen" != xno; then
10365    enable_dlopen=yes
10366  else
10367    enable_dlopen=no
10368  fi
10369
10370  case $lt_cv_dlopen in
10371  dlopen)
10372    save_CPPFLAGS="$CPPFLAGS"
10373    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10374
10375    save_LDFLAGS="$LDFLAGS"
10376    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10377
10378    save_LIBS="$LIBS"
10379    LIBS="$lt_cv_dlopen_libs $LIBS"
10380
10381    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10383if test "${lt_cv_dlopen_self+set}" = set; then
10384  echo $ECHO_N "(cached) $ECHO_C" >&6
10385else
10386  	  if test "$cross_compiling" = yes; then :
10387  lt_cv_dlopen_self=cross
10388else
10389  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390  lt_status=$lt_dlunknown
10391  cat > conftest.$ac_ext <<_LT_EOF
10392#line 10392 "configure"
10393#include "confdefs.h"
10394
10395#if HAVE_DLFCN_H
10396#include <dlfcn.h>
10397#endif
10398
10399#include <stdio.h>
10400
10401#ifdef RTLD_GLOBAL
10402#  define LT_DLGLOBAL		RTLD_GLOBAL
10403#else
10404#  ifdef DL_GLOBAL
10405#    define LT_DLGLOBAL		DL_GLOBAL
10406#  else
10407#    define LT_DLGLOBAL		0
10408#  endif
10409#endif
10410
10411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412   find out it does not work in some platform. */
10413#ifndef LT_DLLAZY_OR_NOW
10414#  ifdef RTLD_LAZY
10415#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10416#  else
10417#    ifdef DL_LAZY
10418#      define LT_DLLAZY_OR_NOW		DL_LAZY
10419#    else
10420#      ifdef RTLD_NOW
10421#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10422#      else
10423#        ifdef DL_NOW
10424#          define LT_DLLAZY_OR_NOW	DL_NOW
10425#        else
10426#          define LT_DLLAZY_OR_NOW	0
10427#        endif
10428#      endif
10429#    endif
10430#  endif
10431#endif
10432
10433#ifdef __cplusplus
10434extern "C" void exit (int);
10435#endif
10436
10437void fnord() { int i=42;}
10438int main ()
10439{
10440  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441  int status = $lt_dlunknown;
10442
10443  if (self)
10444    {
10445      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10446      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447      /* dlclose (self); */
10448    }
10449  else
10450    puts (dlerror ());
10451
10452    exit (status);
10453}
10454_LT_EOF
10455  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456  (eval $ac_link) 2>&5
10457  ac_status=$?
10458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10460    (./conftest; exit; ) >&5 2>/dev/null
10461    lt_status=$?
10462    case x$lt_status in
10463      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10464      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10465      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10466    esac
10467  else :
10468    # compilation failed
10469    lt_cv_dlopen_self=no
10470  fi
10471fi
10472rm -fr conftest*
10473
10474
10475fi
10476echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10477echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10478
10479    if test "x$lt_cv_dlopen_self" = xyes; then
10480      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10481      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10482echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10483if test "${lt_cv_dlopen_self_static+set}" = set; then
10484  echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486  	  if test "$cross_compiling" = yes; then :
10487  lt_cv_dlopen_self_static=cross
10488else
10489  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490  lt_status=$lt_dlunknown
10491  cat > conftest.$ac_ext <<_LT_EOF
10492#line 10492 "configure"
10493#include "confdefs.h"
10494
10495#if HAVE_DLFCN_H
10496#include <dlfcn.h>
10497#endif
10498
10499#include <stdio.h>
10500
10501#ifdef RTLD_GLOBAL
10502#  define LT_DLGLOBAL		RTLD_GLOBAL
10503#else
10504#  ifdef DL_GLOBAL
10505#    define LT_DLGLOBAL		DL_GLOBAL
10506#  else
10507#    define LT_DLGLOBAL		0
10508#  endif
10509#endif
10510
10511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512   find out it does not work in some platform. */
10513#ifndef LT_DLLAZY_OR_NOW
10514#  ifdef RTLD_LAZY
10515#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10516#  else
10517#    ifdef DL_LAZY
10518#      define LT_DLLAZY_OR_NOW		DL_LAZY
10519#    else
10520#      ifdef RTLD_NOW
10521#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10522#      else
10523#        ifdef DL_NOW
10524#          define LT_DLLAZY_OR_NOW	DL_NOW
10525#        else
10526#          define LT_DLLAZY_OR_NOW	0
10527#        endif
10528#      endif
10529#    endif
10530#  endif
10531#endif
10532
10533#ifdef __cplusplus
10534extern "C" void exit (int);
10535#endif
10536
10537void fnord() { int i=42;}
10538int main ()
10539{
10540  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541  int status = $lt_dlunknown;
10542
10543  if (self)
10544    {
10545      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10546      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547      /* dlclose (self); */
10548    }
10549  else
10550    puts (dlerror ());
10551
10552    exit (status);
10553}
10554_LT_EOF
10555  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556  (eval $ac_link) 2>&5
10557  ac_status=$?
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560    (./conftest; exit; ) >&5 2>/dev/null
10561    lt_status=$?
10562    case x$lt_status in
10563      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10564      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10565      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10566    esac
10567  else :
10568    # compilation failed
10569    lt_cv_dlopen_self_static=no
10570  fi
10571fi
10572rm -fr conftest*
10573
10574
10575fi
10576echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10577echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10578    fi
10579
10580    CPPFLAGS="$save_CPPFLAGS"
10581    LDFLAGS="$save_LDFLAGS"
10582    LIBS="$save_LIBS"
10583    ;;
10584  esac
10585
10586  case $lt_cv_dlopen_self in
10587  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10588  *) enable_dlopen_self=unknown ;;
10589  esac
10590
10591  case $lt_cv_dlopen_self_static in
10592  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10593  *) enable_dlopen_self_static=unknown ;;
10594  esac
10595fi
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613striplib=
10614old_striplib=
10615echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10616echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10617if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10618  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10619  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10620  echo "$as_me:$LINENO: result: yes" >&5
10621echo "${ECHO_T}yes" >&6
10622else
10623# FIXME - insert some real tests, host_os isn't really good enough
10624  case $host_os in
10625  darwin*)
10626    if test -n "$STRIP" ; then
10627      striplib="$STRIP -x"
10628      old_striplib="$STRIP -S"
10629      echo "$as_me:$LINENO: result: yes" >&5
10630echo "${ECHO_T}yes" >&6
10631    else
10632      echo "$as_me:$LINENO: result: no" >&5
10633echo "${ECHO_T}no" >&6
10634    fi
10635    ;;
10636  *)
10637    echo "$as_me:$LINENO: result: no" >&5
10638echo "${ECHO_T}no" >&6
10639    ;;
10640  esac
10641fi
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654  # Report which library types will actually be built
10655  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10656echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10657  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10658echo "${ECHO_T}$can_build_shared" >&6
10659
10660  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10661echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10662  test "$can_build_shared" = "no" && enable_shared=no
10663
10664  # On AIX, shared libraries and static libraries use the same namespace, and
10665  # are all built from PIC.
10666  case $host_os in
10667  aix3*)
10668    test "$enable_shared" = yes && enable_static=no
10669    if test -n "$RANLIB"; then
10670      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10671      postinstall_cmds='$RANLIB $lib'
10672    fi
10673    ;;
10674
10675  aix[4-9]*)
10676    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10677      test "$enable_shared" = yes && enable_static=no
10678    fi
10679    ;;
10680  esac
10681  echo "$as_me:$LINENO: result: $enable_shared" >&5
10682echo "${ECHO_T}$enable_shared" >&6
10683
10684  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10685echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10686  # Make sure either enable_shared or enable_static is yes.
10687  test "$enable_shared" = yes || enable_static=yes
10688  echo "$as_me:$LINENO: result: $enable_static" >&5
10689echo "${ECHO_T}$enable_static" >&6
10690
10691
10692
10693
10694fi
10695ac_ext=c
10696ac_cpp='$CPP $CPPFLAGS'
10697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699ac_compiler_gnu=$ac_cv_c_compiler_gnu
10700
10701CC="$lt_save_CC"
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715                  ac_config_commands="$ac_config_commands libtool"
10716
10717
10718
10719
10720# Only expand once:
10721
10722
10723
10724# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10725if test "${enable_64_bit_bfd+set}" = set; then
10726  enableval="$enable_64_bit_bfd"
10727  case "${enableval}" in
10728  yes)  want64=true  ;;
10729  no)   want64=false ;;
10730  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10731echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10732   { (exit 1); exit 1; }; } ;;
10733esac
10734else
10735  want64=false
10736fi;
10737# Check whether --enable-targets or --disable-targets was given.
10738if test "${enable_targets+set}" = set; then
10739  enableval="$enable_targets"
10740  case "${enableval}" in
10741  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10742echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10743   { (exit 1); exit 1; }; }
10744            ;;
10745  no)       enable_targets= ;;
10746  *)        enable_targets=$enableval ;;
10747esac
10748fi;
10749# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10750if test "${enable_commonbfdlib+set}" = set; then
10751  enableval="$enable_commonbfdlib"
10752  case "${enableval}" in
10753  yes) commonbfdlib=true ;;
10754  no)  commonbfdlib=false ;;
10755  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10756echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10757   { (exit 1); exit 1; }; } ;;
10758esac
10759fi;
10760
10761# Check whether --with-mmap or --without-mmap was given.
10762if test "${with_mmap+set}" = set; then
10763  withval="$with_mmap"
10764  case "${withval}" in
10765  yes)  want_mmap=true ;;
10766  no)   want_mmap=false ;;
10767  *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10768echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10769   { (exit 1); exit 1; }; } ;;
10770esac
10771else
10772  want_mmap=false
10773fi;
10774# Check whether --enable-secureplt or --disable-secureplt was given.
10775if test "${enable_secureplt+set}" = set; then
10776  enableval="$enable_secureplt"
10777  case "${enableval}" in
10778  yes)  use_secureplt=true  ;;
10779  no)   use_secureplt=false ;;
10780  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10781echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10782   { (exit 1); exit 1; }; } ;;
10783esac
10784else
10785  use_secureplt=false
10786fi; if test $use_secureplt = true; then
10787
10788cat >>confdefs.h <<\_ACEOF
10789#define USE_SECUREPLT 1
10790_ACEOF
10791
10792fi
10793
10794DEBUGDIR=${libdir}/debug
10795
10796# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10797if test "${with_separate_debug_dir+set}" = set; then
10798  withval="$with_separate_debug_dir"
10799  DEBUGDIR="${withval}"
10800fi;
10801
10802
10803# Check to see if we should allow the generation of
10804# symbols with the ELF standard's STT_COMMON type.
10805# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10806if test "${enable_elf_stt_common+set}" = set; then
10807  enableval="$enable_elf_stt_common"
10808  case "${enableval}" in
10809  yes) want_elf_stt_common=true ;;
10810  no)  want_elf_stt_common=false ;;
10811  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10812echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10813   { (exit 1); exit 1; }; } ;;
10814 esac
10815else
10816  # We have to choose a default behaviour.  For native builds we could
10817# test whether the loader supports the STT_COMMON type, but that would
10818# mean that built binaries could not be exported to older systems where
10819# the loader does not support it. So by default we always choose to
10820# disable this feature.
10821  want_elf_stt_common=false
10822fi; if test $want_elf_stt_common = true; then
10823
10824cat >>confdefs.h <<\_ACEOF
10825#define USE_STT_COMMON 1
10826_ACEOF
10827
10828fi
10829
10830
10831
10832# Check whether --with-pkgversion or --without-pkgversion was given.
10833if test "${with_pkgversion+set}" = set; then
10834  withval="$with_pkgversion"
10835  case "$withval" in
10836      yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10837echo "$as_me: error: package version not specified" >&2;}
10838   { (exit 1); exit 1; }; } ;;
10839      no)  PKGVERSION= ;;
10840      *)   PKGVERSION="($withval)\ " ;;
10841     esac
10842else
10843  PKGVERSION="(GNU Binutils)\ "
10844
10845fi;
10846
10847
10848
10849
10850# Check whether --with-bugurl or --without-bugurl was given.
10851if test "${with_bugurl+set}" = set; then
10852  withval="$with_bugurl"
10853  case "$withval" in
10854      yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10855echo "$as_me: error: bug URL not specified" >&2;}
10856   { (exit 1); exit 1; }; } ;;
10857      no)  BUGURL=
10858	   ;;
10859      *)   BUGURL="$withval"
10860	   ;;
10861     esac
10862else
10863  BUGURL="http://www.sourceware.org/bugzilla/"
10864
10865fi;
10866  case ${BUGURL} in
10867  "")
10868    REPORT_BUGS_TO=
10869    REPORT_BUGS_TEXI=
10870    ;;
10871  *)
10872    REPORT_BUGS_TO="<$BUGURL>"
10873    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10874    ;;
10875  esac;
10876
10877
10878
10879
10880
10881GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10882
10883# Check whether --enable-werror or --disable-werror was given.
10884if test "${enable_werror+set}" = set; then
10885  enableval="$enable_werror"
10886  case "${enableval}" in
10887     yes | y) ERROR_ON_WARNING="yes" ;;
10888     no | n)  ERROR_ON_WARNING="no" ;;
10889     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10890echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10891   { (exit 1); exit 1; }; } ;;
10892   esac
10893fi;
10894
10895# Enable -Wno-format by default when using gcc on mingw
10896case "${host}" in
10897  *-*-mingw32*)
10898    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10899      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10900    fi
10901    ;;
10902  *) ;;
10903esac
10904
10905# Enable -Werror by default when using gcc
10906if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10907    ERROR_ON_WARNING=yes
10908fi
10909
10910NO_WERROR=
10911if test "${ERROR_ON_WARNING}" = yes ; then
10912    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10913    NO_WERROR="-Wno-error"
10914fi
10915
10916if test "${GCC}" = yes ; then
10917  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10918fi
10919
10920# Check whether --enable-build-warnings or --disable-build-warnings was given.
10921if test "${enable_build_warnings+set}" = set; then
10922  enableval="$enable_build_warnings"
10923  case "${enableval}" in
10924  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10925  no)	if test "${GCC}" = yes ; then
10926	  WARN_CFLAGS="-w"
10927	fi;;
10928  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10929        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10930  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10931        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10932  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10933esac
10934fi;
10935
10936if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10937  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10938fi
10939
10940
10941
10942
10943
10944          ac_config_headers="$ac_config_headers config.h:config.in"
10945
10946
10947if test -z "$target" ; then
10948    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10949echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10950   { (exit 1); exit 1; }; }
10951fi
10952
10953echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10954echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10955    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10956if test "${enable_maintainer_mode+set}" = set; then
10957  enableval="$enable_maintainer_mode"
10958  USE_MAINTAINER_MODE=$enableval
10959else
10960  USE_MAINTAINER_MODE=no
10961fi;
10962  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10963echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10964
10965
10966if test $USE_MAINTAINER_MODE = yes; then
10967  MAINTAINER_MODE_TRUE=
10968  MAINTAINER_MODE_FALSE='#'
10969else
10970  MAINTAINER_MODE_TRUE='#'
10971  MAINTAINER_MODE_FALSE=
10972fi
10973
10974  MAINT=$MAINTAINER_MODE_TRUE
10975
10976
10977
10978
10979if false; then
10980  GENINSRC_NEVER_TRUE=
10981  GENINSRC_NEVER_FALSE='#'
10982else
10983  GENINSRC_NEVER_TRUE='#'
10984  GENINSRC_NEVER_FALSE=
10985fi
10986
10987 case ${build_alias} in
10988  "") build_noncanonical=${build} ;;
10989  *) build_noncanonical=${build_alias} ;;
10990esac
10991
10992 case ${host_alias} in
10993  "") host_noncanonical=${build_noncanonical} ;;
10994  *) host_noncanonical=${host_alias} ;;
10995esac
10996
10997 case ${target_alias} in
10998  "") target_noncanonical=${host_noncanonical} ;;
10999  *) target_noncanonical=${target_alias} ;;
11000esac
11001
11002echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11003echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11004  # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11005if test "${enable_install_libbfd+set}" = set; then
11006  enableval="$enable_install_libbfd"
11007  install_libbfd_p=$enableval
11008else
11009  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11010        install_libbfd_p=yes
11011      else
11012        install_libbfd_p=no
11013      fi
11014fi;
11015  echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11016echo "${ECHO_T}$install_libbfd_p" >&6
11017
11018
11019if test $install_libbfd_p = yes; then
11020  INSTALL_LIBBFD_TRUE=
11021  INSTALL_LIBBFD_FALSE='#'
11022else
11023  INSTALL_LIBBFD_TRUE='#'
11024  INSTALL_LIBBFD_FALSE=
11025fi
11026
11027  # Need _noncanonical variables for this.
11028
11029
11030
11031
11032  # libbfd.a is a host library containing target dependent code
11033  bfdlibdir='$(libdir)'
11034  bfdincludedir='$(includedir)'
11035  if test "${host}" != "${target}"; then
11036    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11037    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11038  fi
11039
11040
11041
11042
11043
11044
11045host64=false
11046target64=false
11047bfd_default_target_size=32
11048
11049# host stuff:
11050
11051ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
11052# If we haven't got the data from the intl directory,
11053# assume NLS is disabled.
11054USE_NLS=no
11055LIBINTL=
11056LIBINTL_DEP=
11057INCINTL=
11058XGETTEXT=
11059GMSGFMT=
11060POSUB=
11061
11062if test -f  ../intl/config.intl; then
11063  .  ../intl/config.intl
11064fi
11065echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11066echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11067if test x"$USE_NLS" != xyes; then
11068  echo "$as_me:$LINENO: result: no" >&5
11069echo "${ECHO_T}no" >&6
11070else
11071  echo "$as_me:$LINENO: result: yes" >&5
11072echo "${ECHO_T}yes" >&6
11073
11074cat >>confdefs.h <<\_ACEOF
11075#define ENABLE_NLS 1
11076_ACEOF
11077
11078
11079  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11080echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11081  # Look for .po and .gmo files in the source directory.
11082  CATALOGS=
11083  XLINGUAS=
11084  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11085    # If there aren't any .gmo files the shell will give us the
11086    # literal string "../path/to/srcdir/po/*.gmo" which has to be
11087    # weeded out.
11088    case "$cat" in *\**)
11089      continue;;
11090    esac
11091    # The quadruple backslash is collapsed to a double backslash
11092    # by the backticks, then collapsed again by the double quotes,
11093    # leaving us with one backslash in the sed expression (right
11094    # before the dot that mustn't act as a wildcard).
11095    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11096    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11097    # The user is allowed to set LINGUAS to a list of languages to
11098    # install catalogs for.  If it's empty that means "all of them."
11099    if test "x$LINGUAS" = x; then
11100      CATALOGS="$CATALOGS $cat"
11101      XLINGUAS="$XLINGUAS $lang"
11102    else
11103      case "$LINGUAS" in *$lang*)
11104        CATALOGS="$CATALOGS $cat"
11105        XLINGUAS="$XLINGUAS $lang"
11106        ;;
11107      esac
11108    fi
11109  done
11110  LINGUAS="$XLINGUAS"
11111  echo "$as_me:$LINENO: result: $LINGUAS" >&5
11112echo "${ECHO_T}$LINGUAS" >&6
11113
11114
11115    DATADIRNAME=share
11116
11117  INSTOBJEXT=.mo
11118
11119  GENCAT=gencat
11120
11121  CATOBJEXT=.gmo
11122
11123fi
11124
11125        MKINSTALLDIRS=
11126  if test -n "$ac_aux_dir"; then
11127    case "$ac_aux_dir" in
11128      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11129      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11130    esac
11131  fi
11132  if test -z "$MKINSTALLDIRS"; then
11133    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11134  fi
11135
11136
11137
11138  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11139echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11140    # Check whether --enable-nls or --disable-nls was given.
11141if test "${enable_nls+set}" = set; then
11142  enableval="$enable_nls"
11143  USE_NLS=$enableval
11144else
11145  USE_NLS=yes
11146fi;
11147  echo "$as_me:$LINENO: result: $USE_NLS" >&5
11148echo "${ECHO_T}$USE_NLS" >&6
11149
11150
11151
11152
11153
11154
11155# Prepare PATH_SEPARATOR.
11156# The user is always right.
11157if test "${PATH_SEPARATOR+set}" != set; then
11158  echo "#! /bin/sh" >conf$$.sh
11159  echo  "exit 0"   >>conf$$.sh
11160  chmod +x conf$$.sh
11161  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11162    PATH_SEPARATOR=';'
11163  else
11164    PATH_SEPARATOR=:
11165  fi
11166  rm -f conf$$.sh
11167fi
11168
11169# Find out how to test for executable files. Don't use a zero-byte file,
11170# as systems may use methods other than mode bits to determine executability.
11171cat >conf$$.file <<_ASEOF
11172#! /bin/sh
11173exit 0
11174_ASEOF
11175chmod +x conf$$.file
11176if test -x conf$$.file >/dev/null 2>&1; then
11177  ac_executable_p="test -x"
11178else
11179  ac_executable_p="test -f"
11180fi
11181rm -f conf$$.file
11182
11183# Extract the first word of "msgfmt", so it can be a program name with args.
11184set dummy msgfmt; ac_word=$2
11185echo "$as_me:$LINENO: checking for $ac_word" >&5
11186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11187if test "${ac_cv_path_MSGFMT+set}" = set; then
11188  echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190  case "$MSGFMT" in
11191  [\\/]* | ?:[\\/]*)
11192    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11193    ;;
11194  *)
11195    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11196    for ac_dir in $PATH; do
11197      IFS="$ac_save_IFS"
11198      test -z "$ac_dir" && ac_dir=.
11199      for ac_exec_ext in '' $ac_executable_extensions; do
11200        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11201          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11202     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11203            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11204            break 2
11205          fi
11206        fi
11207      done
11208    done
11209    IFS="$ac_save_IFS"
11210  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11211    ;;
11212esac
11213fi
11214MSGFMT="$ac_cv_path_MSGFMT"
11215if test "$MSGFMT" != ":"; then
11216  echo "$as_me:$LINENO: result: $MSGFMT" >&5
11217echo "${ECHO_T}$MSGFMT" >&6
11218else
11219  echo "$as_me:$LINENO: result: no" >&5
11220echo "${ECHO_T}no" >&6
11221fi
11222
11223  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11224set dummy gmsgfmt; ac_word=$2
11225echo "$as_me:$LINENO: checking for $ac_word" >&5
11226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11227if test "${ac_cv_path_GMSGFMT+set}" = set; then
11228  echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
11230  case $GMSGFMT in
11231  [\\/]* | ?:[\\/]*)
11232  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11233  ;;
11234  *)
11235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236for as_dir in $PATH
11237do
11238  IFS=$as_save_IFS
11239  test -z "$as_dir" && as_dir=.
11240  for ac_exec_ext in '' $ac_executable_extensions; do
11241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244    break 2
11245  fi
11246done
11247done
11248
11249  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11250  ;;
11251esac
11252fi
11253GMSGFMT=$ac_cv_path_GMSGFMT
11254
11255if test -n "$GMSGFMT"; then
11256  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11257echo "${ECHO_T}$GMSGFMT" >&6
11258else
11259  echo "$as_me:$LINENO: result: no" >&5
11260echo "${ECHO_T}no" >&6
11261fi
11262
11263
11264
11265# Prepare PATH_SEPARATOR.
11266# The user is always right.
11267if test "${PATH_SEPARATOR+set}" != set; then
11268  echo "#! /bin/sh" >conf$$.sh
11269  echo  "exit 0"   >>conf$$.sh
11270  chmod +x conf$$.sh
11271  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11272    PATH_SEPARATOR=';'
11273  else
11274    PATH_SEPARATOR=:
11275  fi
11276  rm -f conf$$.sh
11277fi
11278
11279# Find out how to test for executable files. Don't use a zero-byte file,
11280# as systems may use methods other than mode bits to determine executability.
11281cat >conf$$.file <<_ASEOF
11282#! /bin/sh
11283exit 0
11284_ASEOF
11285chmod +x conf$$.file
11286if test -x conf$$.file >/dev/null 2>&1; then
11287  ac_executable_p="test -x"
11288else
11289  ac_executable_p="test -f"
11290fi
11291rm -f conf$$.file
11292
11293# Extract the first word of "xgettext", so it can be a program name with args.
11294set dummy xgettext; ac_word=$2
11295echo "$as_me:$LINENO: checking for $ac_word" >&5
11296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297if test "${ac_cv_path_XGETTEXT+set}" = set; then
11298  echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300  case "$XGETTEXT" in
11301  [\\/]* | ?:[\\/]*)
11302    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11303    ;;
11304  *)
11305    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11306    for ac_dir in $PATH; do
11307      IFS="$ac_save_IFS"
11308      test -z "$ac_dir" && ac_dir=.
11309      for ac_exec_ext in '' $ac_executable_extensions; do
11310        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11311          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11312     (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
11313            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11314            break 2
11315          fi
11316        fi
11317      done
11318    done
11319    IFS="$ac_save_IFS"
11320  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11321    ;;
11322esac
11323fi
11324XGETTEXT="$ac_cv_path_XGETTEXT"
11325if test "$XGETTEXT" != ":"; then
11326  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11327echo "${ECHO_T}$XGETTEXT" >&6
11328else
11329  echo "$as_me:$LINENO: result: no" >&5
11330echo "${ECHO_T}no" >&6
11331fi
11332
11333    rm -f messages.po
11334
11335
11336# Prepare PATH_SEPARATOR.
11337# The user is always right.
11338if test "${PATH_SEPARATOR+set}" != set; then
11339  echo "#! /bin/sh" >conf$$.sh
11340  echo  "exit 0"   >>conf$$.sh
11341  chmod +x conf$$.sh
11342  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11343    PATH_SEPARATOR=';'
11344  else
11345    PATH_SEPARATOR=:
11346  fi
11347  rm -f conf$$.sh
11348fi
11349
11350# Find out how to test for executable files. Don't use a zero-byte file,
11351# as systems may use methods other than mode bits to determine executability.
11352cat >conf$$.file <<_ASEOF
11353#! /bin/sh
11354exit 0
11355_ASEOF
11356chmod +x conf$$.file
11357if test -x conf$$.file >/dev/null 2>&1; then
11358  ac_executable_p="test -x"
11359else
11360  ac_executable_p="test -f"
11361fi
11362rm -f conf$$.file
11363
11364# Extract the first word of "msgmerge", so it can be a program name with args.
11365set dummy msgmerge; ac_word=$2
11366echo "$as_me:$LINENO: checking for $ac_word" >&5
11367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11368if test "${ac_cv_path_MSGMERGE+set}" = set; then
11369  echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371  case "$MSGMERGE" in
11372  [\\/]* | ?:[\\/]*)
11373    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11374    ;;
11375  *)
11376    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11377    for ac_dir in $PATH; do
11378      IFS="$ac_save_IFS"
11379      test -z "$ac_dir" && ac_dir=.
11380      for ac_exec_ext in '' $ac_executable_extensions; do
11381        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11382          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11383            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11384            break 2
11385          fi
11386        fi
11387      done
11388    done
11389    IFS="$ac_save_IFS"
11390  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11391    ;;
11392esac
11393fi
11394MSGMERGE="$ac_cv_path_MSGMERGE"
11395if test "$MSGMERGE" != ":"; then
11396  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11397echo "${ECHO_T}$MSGMERGE" >&6
11398else
11399  echo "$as_me:$LINENO: result: no" >&5
11400echo "${ECHO_T}no" >&6
11401fi
11402
11403
11404      if test "$GMSGFMT" != ":"; then
11405            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11406       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11407      : ;
11408    else
11409      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11410      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11411echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11412      GMSGFMT=":"
11413    fi
11414  fi
11415
11416      if test "$XGETTEXT" != ":"; then
11417            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11418       (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
11419      : ;
11420    else
11421      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11422echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11423      XGETTEXT=":"
11424    fi
11425        rm -f messages.po
11426  fi
11427
11428            ac_config_commands="$ac_config_commands default-1"
11429
11430
11431
11432# Permit host specific settings.
11433. ${srcdir}/configure.host
11434
11435
11436# Find a good install program.  We prefer a C program (faster),
11437# so one script is as good as another.  But avoid the broken or
11438# incompatible versions:
11439# SysV /etc/install, /usr/sbin/install
11440# SunOS /usr/etc/install
11441# IRIX /sbin/install
11442# AIX /bin/install
11443# AmigaOS /C/install, which installs bootblocks on floppy discs
11444# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11445# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11446# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11447# OS/2's system install, which has a completely different semantic
11448# ./install, which can be erroneously created by make from ./install.sh.
11449# Reject install programs that cannot install multiple files.
11450echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11451echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11452if test -z "$INSTALL"; then
11453if test "${ac_cv_path_install+set}" = set; then
11454  echo $ECHO_N "(cached) $ECHO_C" >&6
11455else
11456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457for as_dir in $PATH
11458do
11459  IFS=$as_save_IFS
11460  test -z "$as_dir" && as_dir=.
11461  # Account for people who put trailing slashes in PATH elements.
11462case $as_dir/ in
11463  ./ | .// | /cC/* | \
11464  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11465  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11466  /usr/ucb/* ) ;;
11467  *)
11468    # OSF1 and SCO ODT 3.0 have their own names for install.
11469    # Don't use installbsd from OSF since it installs stuff as root
11470    # by default.
11471    for ac_prog in ginstall scoinst install; do
11472      for ac_exec_ext in '' $ac_executable_extensions; do
11473	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11474	  if test $ac_prog = install &&
11475	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11476	    # AIX install.  It has an incompatible calling convention.
11477	    :
11478	  elif test $ac_prog = install &&
11479	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11480	    # program-specific install script used by HP pwplus--don't use.
11481	    :
11482	  else
11483	    rm -rf conftest.one conftest.two conftest.dir
11484	    echo one > conftest.one
11485	    echo two > conftest.two
11486	    mkdir conftest.dir
11487	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11488	      test -s conftest.one && test -s conftest.two &&
11489	      test -s conftest.dir/conftest.one &&
11490	      test -s conftest.dir/conftest.two
11491	    then
11492	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11493	      break 3
11494	    fi
11495	  fi
11496	fi
11497      done
11498    done
11499    ;;
11500esac
11501done
11502
11503rm -rf conftest.one conftest.two conftest.dir
11504
11505fi
11506  if test "${ac_cv_path_install+set}" = set; then
11507    INSTALL=$ac_cv_path_install
11508  else
11509    # As a last resort, use the slow shell script.  Don't cache a
11510    # value for INSTALL within a source directory, because that will
11511    # break other packages using the cache if that directory is
11512    # removed, or if the value is a relative name.
11513    INSTALL=$ac_install_sh
11514  fi
11515fi
11516echo "$as_me:$LINENO: result: $INSTALL" >&5
11517echo "${ECHO_T}$INSTALL" >&6
11518
11519# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11520# It thinks the first close brace ends the variable substitution.
11521test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11522
11523test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11524
11525test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11526
11527
11528BFD_HOST_64BIT_LONG=0
11529BFD_HOST_64BIT_LONG_LONG=0
11530BFD_HOST_64_BIT_DEFINED=0
11531BFD_HOST_64_BIT=
11532BFD_HOST_U_64_BIT=
11533BFD_HOSTPTR_T="unsigned long"
11534
11535echo "$as_me:$LINENO: checking for long long" >&5
11536echo $ECHO_N "checking for long long... $ECHO_C" >&6
11537if test "${ac_cv_type_long_long+set}" = set; then
11538  echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
11540  cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h.  */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h.  */
11546$ac_includes_default
11547int
11548main ()
11549{
11550if ((long long *) 0)
11551  return 0;
11552if (sizeof (long long))
11553  return 0;
11554  ;
11555  return 0;
11556}
11557_ACEOF
11558rm -f conftest.$ac_objext
11559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560  (eval $ac_compile) 2>conftest.er1
11561  ac_status=$?
11562  grep -v '^ *+' conftest.er1 >conftest.err
11563  rm -f conftest.er1
11564  cat conftest.err >&5
11565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566  (exit $ac_status); } &&
11567	 { ac_try='test -z "$ac_c_werror_flag"
11568			 || test ! -s conftest.err'
11569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570  (eval $ac_try) 2>&5
11571  ac_status=$?
11572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573  (exit $ac_status); }; } &&
11574	 { ac_try='test -s conftest.$ac_objext'
11575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576  (eval $ac_try) 2>&5
11577  ac_status=$?
11578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579  (exit $ac_status); }; }; then
11580  ac_cv_type_long_long=yes
11581else
11582  echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
11585ac_cv_type_long_long=no
11586fi
11587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588fi
11589echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11590echo "${ECHO_T}$ac_cv_type_long_long" >&6
11591
11592echo "$as_me:$LINENO: checking size of long long" >&5
11593echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11594if test "${ac_cv_sizeof_long_long+set}" = set; then
11595  echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597  if test "$ac_cv_type_long_long" = yes; then
11598  # The cast to unsigned long works around a bug in the HP C Compiler
11599  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11600  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11601  # This bug is HP SR number 8606223364.
11602  if test "$cross_compiling" = yes; then
11603  # Depending upon the size, compute the lo and hi bounds.
11604cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h.  */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h.  */
11610$ac_includes_default
11611int
11612main ()
11613{
11614static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11615test_array [0] = 0
11616
11617  ;
11618  return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623  (eval $ac_compile) 2>conftest.er1
11624  ac_status=$?
11625  grep -v '^ *+' conftest.er1 >conftest.err
11626  rm -f conftest.er1
11627  cat conftest.err >&5
11628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629  (exit $ac_status); } &&
11630	 { ac_try='test -z "$ac_c_werror_flag"
11631			 || test ! -s conftest.err'
11632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633  (eval $ac_try) 2>&5
11634  ac_status=$?
11635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636  (exit $ac_status); }; } &&
11637	 { ac_try='test -s conftest.$ac_objext'
11638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639  (eval $ac_try) 2>&5
11640  ac_status=$?
11641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642  (exit $ac_status); }; }; then
11643  ac_lo=0 ac_mid=0
11644  while :; do
11645    cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h.  */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h.  */
11651$ac_includes_default
11652int
11653main ()
11654{
11655static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11656test_array [0] = 0
11657
11658  ;
11659  return 0;
11660}
11661_ACEOF
11662rm -f conftest.$ac_objext
11663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664  (eval $ac_compile) 2>conftest.er1
11665  ac_status=$?
11666  grep -v '^ *+' conftest.er1 >conftest.err
11667  rm -f conftest.er1
11668  cat conftest.err >&5
11669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670  (exit $ac_status); } &&
11671	 { ac_try='test -z "$ac_c_werror_flag"
11672			 || test ! -s conftest.err'
11673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674  (eval $ac_try) 2>&5
11675  ac_status=$?
11676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677  (exit $ac_status); }; } &&
11678	 { ac_try='test -s conftest.$ac_objext'
11679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680  (eval $ac_try) 2>&5
11681  ac_status=$?
11682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683  (exit $ac_status); }; }; then
11684  ac_hi=$ac_mid; break
11685else
11686  echo "$as_me: failed program was:" >&5
11687sed 's/^/| /' conftest.$ac_ext >&5
11688
11689ac_lo=`expr $ac_mid + 1`
11690		    if test $ac_lo -le $ac_mid; then
11691		      ac_lo= ac_hi=
11692		      break
11693		    fi
11694		    ac_mid=`expr 2 '*' $ac_mid + 1`
11695fi
11696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697  done
11698else
11699  echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702cat >conftest.$ac_ext <<_ACEOF
11703/* confdefs.h.  */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h.  */
11708$ac_includes_default
11709int
11710main ()
11711{
11712static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11713test_array [0] = 0
11714
11715  ;
11716  return 0;
11717}
11718_ACEOF
11719rm -f conftest.$ac_objext
11720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11721  (eval $ac_compile) 2>conftest.er1
11722  ac_status=$?
11723  grep -v '^ *+' conftest.er1 >conftest.err
11724  rm -f conftest.er1
11725  cat conftest.err >&5
11726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727  (exit $ac_status); } &&
11728	 { ac_try='test -z "$ac_c_werror_flag"
11729			 || test ! -s conftest.err'
11730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731  (eval $ac_try) 2>&5
11732  ac_status=$?
11733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734  (exit $ac_status); }; } &&
11735	 { ac_try='test -s conftest.$ac_objext'
11736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737  (eval $ac_try) 2>&5
11738  ac_status=$?
11739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740  (exit $ac_status); }; }; then
11741  ac_hi=-1 ac_mid=-1
11742  while :; do
11743    cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h.  */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h.  */
11749$ac_includes_default
11750int
11751main ()
11752{
11753static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11754test_array [0] = 0
11755
11756  ;
11757  return 0;
11758}
11759_ACEOF
11760rm -f conftest.$ac_objext
11761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11762  (eval $ac_compile) 2>conftest.er1
11763  ac_status=$?
11764  grep -v '^ *+' conftest.er1 >conftest.err
11765  rm -f conftest.er1
11766  cat conftest.err >&5
11767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768  (exit $ac_status); } &&
11769	 { ac_try='test -z "$ac_c_werror_flag"
11770			 || test ! -s conftest.err'
11771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772  (eval $ac_try) 2>&5
11773  ac_status=$?
11774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775  (exit $ac_status); }; } &&
11776	 { ac_try='test -s conftest.$ac_objext'
11777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778  (eval $ac_try) 2>&5
11779  ac_status=$?
11780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781  (exit $ac_status); }; }; then
11782  ac_lo=$ac_mid; break
11783else
11784  echo "$as_me: failed program was:" >&5
11785sed 's/^/| /' conftest.$ac_ext >&5
11786
11787ac_hi=`expr '(' $ac_mid ')' - 1`
11788		       if test $ac_mid -le $ac_hi; then
11789			 ac_lo= ac_hi=
11790			 break
11791		       fi
11792		       ac_mid=`expr 2 '*' $ac_mid`
11793fi
11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11795  done
11796else
11797  echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
11800ac_lo= ac_hi=
11801fi
11802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11803fi
11804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805# Binary search between lo and hi bounds.
11806while test "x$ac_lo" != "x$ac_hi"; do
11807  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11808  cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h.  */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h.  */
11814$ac_includes_default
11815int
11816main ()
11817{
11818static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11819test_array [0] = 0
11820
11821  ;
11822  return 0;
11823}
11824_ACEOF
11825rm -f conftest.$ac_objext
11826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827  (eval $ac_compile) 2>conftest.er1
11828  ac_status=$?
11829  grep -v '^ *+' conftest.er1 >conftest.err
11830  rm -f conftest.er1
11831  cat conftest.err >&5
11832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833  (exit $ac_status); } &&
11834	 { ac_try='test -z "$ac_c_werror_flag"
11835			 || test ! -s conftest.err'
11836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837  (eval $ac_try) 2>&5
11838  ac_status=$?
11839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840  (exit $ac_status); }; } &&
11841	 { ac_try='test -s conftest.$ac_objext'
11842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843  (eval $ac_try) 2>&5
11844  ac_status=$?
11845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846  (exit $ac_status); }; }; then
11847  ac_hi=$ac_mid
11848else
11849  echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
11852ac_lo=`expr '(' $ac_mid ')' + 1`
11853fi
11854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11855done
11856case $ac_lo in
11857?*) ac_cv_sizeof_long_long=$ac_lo;;
11858'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11859echo "$as_me: error: in \`$ac_pwd':" >&2;}
11860{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11861See \`config.log' for more details." >&5
11862echo "$as_me: error: cannot compute sizeof (long long), 77
11863See \`config.log' for more details." >&2;}
11864   { (exit 1); exit 1; }; }; } ;;
11865esac
11866else
11867  if test "$cross_compiling" = yes; then
11868  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11869echo "$as_me: error: in \`$ac_pwd':" >&2;}
11870{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11871See \`config.log' for more details." >&5
11872echo "$as_me: error: cannot run test program while cross compiling
11873See \`config.log' for more details." >&2;}
11874   { (exit 1); exit 1; }; }; }
11875else
11876  cat >conftest.$ac_ext <<_ACEOF
11877/* confdefs.h.  */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h.  */
11882$ac_includes_default
11883long longval () { return (long) (sizeof (long long)); }
11884unsigned long ulongval () { return (long) (sizeof (long long)); }
11885#include <stdio.h>
11886#include <stdlib.h>
11887int
11888main ()
11889{
11890
11891  FILE *f = fopen ("conftest.val", "w");
11892  if (! f)
11893    exit (1);
11894  if (((long) (sizeof (long long))) < 0)
11895    {
11896      long i = longval ();
11897      if (i != ((long) (sizeof (long long))))
11898	exit (1);
11899      fprintf (f, "%ld\n", i);
11900    }
11901  else
11902    {
11903      unsigned long i = ulongval ();
11904      if (i != ((long) (sizeof (long long))))
11905	exit (1);
11906      fprintf (f, "%lu\n", i);
11907    }
11908  exit (ferror (f) || fclose (f) != 0);
11909
11910  ;
11911  return 0;
11912}
11913_ACEOF
11914rm -f conftest$ac_exeext
11915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916  (eval $ac_link) 2>&5
11917  ac_status=$?
11918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long_long=`cat conftest.val`
11926else
11927  echo "$as_me: program exited with status $ac_status" >&5
11928echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931( exit $ac_status )
11932{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11933echo "$as_me: error: in \`$ac_pwd':" >&2;}
11934{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11935See \`config.log' for more details." >&5
11936echo "$as_me: error: cannot compute sizeof (long long), 77
11937See \`config.log' for more details." >&2;}
11938   { (exit 1); exit 1; }; }; }
11939fi
11940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11941fi
11942fi
11943rm -f conftest.val
11944else
11945  ac_cv_sizeof_long_long=0
11946fi
11947fi
11948echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11949echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11950cat >>confdefs.h <<_ACEOF
11951#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11952_ACEOF
11953
11954
11955echo "$as_me:$LINENO: checking for void *" >&5
11956echo $ECHO_N "checking for void *... $ECHO_C" >&6
11957if test "${ac_cv_type_void_p+set}" = set; then
11958  echo $ECHO_N "(cached) $ECHO_C" >&6
11959else
11960  cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h.  */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h.  */
11966$ac_includes_default
11967int
11968main ()
11969{
11970if ((void * *) 0)
11971  return 0;
11972if (sizeof (void *))
11973  return 0;
11974  ;
11975  return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext
11979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980  (eval $ac_compile) 2>conftest.er1
11981  ac_status=$?
11982  grep -v '^ *+' conftest.er1 >conftest.err
11983  rm -f conftest.er1
11984  cat conftest.err >&5
11985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986  (exit $ac_status); } &&
11987	 { ac_try='test -z "$ac_c_werror_flag"
11988			 || test ! -s conftest.err'
11989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990  (eval $ac_try) 2>&5
11991  ac_status=$?
11992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993  (exit $ac_status); }; } &&
11994	 { ac_try='test -s conftest.$ac_objext'
11995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996  (eval $ac_try) 2>&5
11997  ac_status=$?
11998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999  (exit $ac_status); }; }; then
12000  ac_cv_type_void_p=yes
12001else
12002  echo "$as_me: failed program was:" >&5
12003sed 's/^/| /' conftest.$ac_ext >&5
12004
12005ac_cv_type_void_p=no
12006fi
12007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008fi
12009echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12010echo "${ECHO_T}$ac_cv_type_void_p" >&6
12011
12012echo "$as_me:$LINENO: checking size of void *" >&5
12013echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12014if test "${ac_cv_sizeof_void_p+set}" = set; then
12015  echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017  if test "$ac_cv_type_void_p" = yes; then
12018  # The cast to unsigned long works around a bug in the HP C Compiler
12019  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12020  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12021  # This bug is HP SR number 8606223364.
12022  if test "$cross_compiling" = yes; then
12023  # Depending upon the size, compute the lo and hi bounds.
12024cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h.  */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h.  */
12030$ac_includes_default
12031int
12032main ()
12033{
12034static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12035test_array [0] = 0
12036
12037  ;
12038  return 0;
12039}
12040_ACEOF
12041rm -f conftest.$ac_objext
12042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12043  (eval $ac_compile) 2>conftest.er1
12044  ac_status=$?
12045  grep -v '^ *+' conftest.er1 >conftest.err
12046  rm -f conftest.er1
12047  cat conftest.err >&5
12048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049  (exit $ac_status); } &&
12050	 { ac_try='test -z "$ac_c_werror_flag"
12051			 || test ! -s conftest.err'
12052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053  (eval $ac_try) 2>&5
12054  ac_status=$?
12055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056  (exit $ac_status); }; } &&
12057	 { ac_try='test -s conftest.$ac_objext'
12058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059  (eval $ac_try) 2>&5
12060  ac_status=$?
12061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062  (exit $ac_status); }; }; then
12063  ac_lo=0 ac_mid=0
12064  while :; do
12065    cat >conftest.$ac_ext <<_ACEOF
12066/* confdefs.h.  */
12067_ACEOF
12068cat confdefs.h >>conftest.$ac_ext
12069cat >>conftest.$ac_ext <<_ACEOF
12070/* end confdefs.h.  */
12071$ac_includes_default
12072int
12073main ()
12074{
12075static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12076test_array [0] = 0
12077
12078  ;
12079  return 0;
12080}
12081_ACEOF
12082rm -f conftest.$ac_objext
12083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084  (eval $ac_compile) 2>conftest.er1
12085  ac_status=$?
12086  grep -v '^ *+' conftest.er1 >conftest.err
12087  rm -f conftest.er1
12088  cat conftest.err >&5
12089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090  (exit $ac_status); } &&
12091	 { ac_try='test -z "$ac_c_werror_flag"
12092			 || test ! -s conftest.err'
12093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094  (eval $ac_try) 2>&5
12095  ac_status=$?
12096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097  (exit $ac_status); }; } &&
12098	 { ac_try='test -s conftest.$ac_objext'
12099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100  (eval $ac_try) 2>&5
12101  ac_status=$?
12102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103  (exit $ac_status); }; }; then
12104  ac_hi=$ac_mid; break
12105else
12106  echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109ac_lo=`expr $ac_mid + 1`
12110		    if test $ac_lo -le $ac_mid; then
12111		      ac_lo= ac_hi=
12112		      break
12113		    fi
12114		    ac_mid=`expr 2 '*' $ac_mid + 1`
12115fi
12116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12117  done
12118else
12119  echo "$as_me: failed program was:" >&5
12120sed 's/^/| /' conftest.$ac_ext >&5
12121
12122cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h.  */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h.  */
12128$ac_includes_default
12129int
12130main ()
12131{
12132static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12133test_array [0] = 0
12134
12135  ;
12136  return 0;
12137}
12138_ACEOF
12139rm -f conftest.$ac_objext
12140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141  (eval $ac_compile) 2>conftest.er1
12142  ac_status=$?
12143  grep -v '^ *+' conftest.er1 >conftest.err
12144  rm -f conftest.er1
12145  cat conftest.err >&5
12146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147  (exit $ac_status); } &&
12148	 { ac_try='test -z "$ac_c_werror_flag"
12149			 || test ! -s conftest.err'
12150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151  (eval $ac_try) 2>&5
12152  ac_status=$?
12153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154  (exit $ac_status); }; } &&
12155	 { ac_try='test -s conftest.$ac_objext'
12156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157  (eval $ac_try) 2>&5
12158  ac_status=$?
12159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160  (exit $ac_status); }; }; then
12161  ac_hi=-1 ac_mid=-1
12162  while :; do
12163    cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h.  */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h.  */
12169$ac_includes_default
12170int
12171main ()
12172{
12173static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12174test_array [0] = 0
12175
12176  ;
12177  return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182  (eval $ac_compile) 2>conftest.er1
12183  ac_status=$?
12184  grep -v '^ *+' conftest.er1 >conftest.err
12185  rm -f conftest.er1
12186  cat conftest.err >&5
12187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188  (exit $ac_status); } &&
12189	 { ac_try='test -z "$ac_c_werror_flag"
12190			 || test ! -s conftest.err'
12191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192  (eval $ac_try) 2>&5
12193  ac_status=$?
12194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195  (exit $ac_status); }; } &&
12196	 { ac_try='test -s conftest.$ac_objext'
12197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198  (eval $ac_try) 2>&5
12199  ac_status=$?
12200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201  (exit $ac_status); }; }; then
12202  ac_lo=$ac_mid; break
12203else
12204  echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207ac_hi=`expr '(' $ac_mid ')' - 1`
12208		       if test $ac_mid -le $ac_hi; then
12209			 ac_lo= ac_hi=
12210			 break
12211		       fi
12212		       ac_mid=`expr 2 '*' $ac_mid`
12213fi
12214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215  done
12216else
12217  echo "$as_me: failed program was:" >&5
12218sed 's/^/| /' conftest.$ac_ext >&5
12219
12220ac_lo= ac_hi=
12221fi
12222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12223fi
12224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12225# Binary search between lo and hi bounds.
12226while test "x$ac_lo" != "x$ac_hi"; do
12227  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12228  cat >conftest.$ac_ext <<_ACEOF
12229/* confdefs.h.  */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h.  */
12234$ac_includes_default
12235int
12236main ()
12237{
12238static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12239test_array [0] = 0
12240
12241  ;
12242  return 0;
12243}
12244_ACEOF
12245rm -f conftest.$ac_objext
12246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12247  (eval $ac_compile) 2>conftest.er1
12248  ac_status=$?
12249  grep -v '^ *+' conftest.er1 >conftest.err
12250  rm -f conftest.er1
12251  cat conftest.err >&5
12252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253  (exit $ac_status); } &&
12254	 { ac_try='test -z "$ac_c_werror_flag"
12255			 || test ! -s conftest.err'
12256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257  (eval $ac_try) 2>&5
12258  ac_status=$?
12259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260  (exit $ac_status); }; } &&
12261	 { ac_try='test -s conftest.$ac_objext'
12262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263  (eval $ac_try) 2>&5
12264  ac_status=$?
12265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266  (exit $ac_status); }; }; then
12267  ac_hi=$ac_mid
12268else
12269  echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272ac_lo=`expr '(' $ac_mid ')' + 1`
12273fi
12274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12275done
12276case $ac_lo in
12277?*) ac_cv_sizeof_void_p=$ac_lo;;
12278'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12279echo "$as_me: error: in \`$ac_pwd':" >&2;}
12280{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12281See \`config.log' for more details." >&5
12282echo "$as_me: error: cannot compute sizeof (void *), 77
12283See \`config.log' for more details." >&2;}
12284   { (exit 1); exit 1; }; }; } ;;
12285esac
12286else
12287  if test "$cross_compiling" = yes; then
12288  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12289echo "$as_me: error: in \`$ac_pwd':" >&2;}
12290{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12291See \`config.log' for more details." >&5
12292echo "$as_me: error: cannot run test program while cross compiling
12293See \`config.log' for more details." >&2;}
12294   { (exit 1); exit 1; }; }; }
12295else
12296  cat >conftest.$ac_ext <<_ACEOF
12297/* confdefs.h.  */
12298_ACEOF
12299cat confdefs.h >>conftest.$ac_ext
12300cat >>conftest.$ac_ext <<_ACEOF
12301/* end confdefs.h.  */
12302$ac_includes_default
12303long longval () { return (long) (sizeof (void *)); }
12304unsigned long ulongval () { return (long) (sizeof (void *)); }
12305#include <stdio.h>
12306#include <stdlib.h>
12307int
12308main ()
12309{
12310
12311  FILE *f = fopen ("conftest.val", "w");
12312  if (! f)
12313    exit (1);
12314  if (((long) (sizeof (void *))) < 0)
12315    {
12316      long i = longval ();
12317      if (i != ((long) (sizeof (void *))))
12318	exit (1);
12319      fprintf (f, "%ld\n", i);
12320    }
12321  else
12322    {
12323      unsigned long i = ulongval ();
12324      if (i != ((long) (sizeof (void *))))
12325	exit (1);
12326      fprintf (f, "%lu\n", i);
12327    }
12328  exit (ferror (f) || fclose (f) != 0);
12329
12330  ;
12331  return 0;
12332}
12333_ACEOF
12334rm -f conftest$ac_exeext
12335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336  (eval $ac_link) 2>&5
12337  ac_status=$?
12338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341  (eval $ac_try) 2>&5
12342  ac_status=$?
12343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344  (exit $ac_status); }; }; then
12345  ac_cv_sizeof_void_p=`cat conftest.val`
12346else
12347  echo "$as_me: program exited with status $ac_status" >&5
12348echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
12351( exit $ac_status )
12352{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12353echo "$as_me: error: in \`$ac_pwd':" >&2;}
12354{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12355See \`config.log' for more details." >&5
12356echo "$as_me: error: cannot compute sizeof (void *), 77
12357See \`config.log' for more details." >&2;}
12358   { (exit 1); exit 1; }; }; }
12359fi
12360rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12361fi
12362fi
12363rm -f conftest.val
12364else
12365  ac_cv_sizeof_void_p=0
12366fi
12367fi
12368echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12369echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12370cat >>confdefs.h <<_ACEOF
12371#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12372_ACEOF
12373
12374
12375echo "$as_me:$LINENO: checking for long" >&5
12376echo $ECHO_N "checking for long... $ECHO_C" >&6
12377if test "${ac_cv_type_long+set}" = set; then
12378  echo $ECHO_N "(cached) $ECHO_C" >&6
12379else
12380  cat >conftest.$ac_ext <<_ACEOF
12381/* confdefs.h.  */
12382_ACEOF
12383cat confdefs.h >>conftest.$ac_ext
12384cat >>conftest.$ac_ext <<_ACEOF
12385/* end confdefs.h.  */
12386$ac_includes_default
12387int
12388main ()
12389{
12390if ((long *) 0)
12391  return 0;
12392if (sizeof (long))
12393  return 0;
12394  ;
12395  return 0;
12396}
12397_ACEOF
12398rm -f conftest.$ac_objext
12399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400  (eval $ac_compile) 2>conftest.er1
12401  ac_status=$?
12402  grep -v '^ *+' conftest.er1 >conftest.err
12403  rm -f conftest.er1
12404  cat conftest.err >&5
12405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406  (exit $ac_status); } &&
12407	 { ac_try='test -z "$ac_c_werror_flag"
12408			 || test ! -s conftest.err'
12409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410  (eval $ac_try) 2>&5
12411  ac_status=$?
12412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413  (exit $ac_status); }; } &&
12414	 { ac_try='test -s conftest.$ac_objext'
12415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416  (eval $ac_try) 2>&5
12417  ac_status=$?
12418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419  (exit $ac_status); }; }; then
12420  ac_cv_type_long=yes
12421else
12422  echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
12425ac_cv_type_long=no
12426fi
12427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12428fi
12429echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12430echo "${ECHO_T}$ac_cv_type_long" >&6
12431
12432echo "$as_me:$LINENO: checking size of long" >&5
12433echo $ECHO_N "checking size of long... $ECHO_C" >&6
12434if test "${ac_cv_sizeof_long+set}" = set; then
12435  echo $ECHO_N "(cached) $ECHO_C" >&6
12436else
12437  if test "$ac_cv_type_long" = yes; then
12438  # The cast to unsigned long works around a bug in the HP C Compiler
12439  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12440  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12441  # This bug is HP SR number 8606223364.
12442  if test "$cross_compiling" = yes; then
12443  # Depending upon the size, compute the lo and hi bounds.
12444cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h.  */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h.  */
12450$ac_includes_default
12451int
12452main ()
12453{
12454static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12455test_array [0] = 0
12456
12457  ;
12458  return 0;
12459}
12460_ACEOF
12461rm -f conftest.$ac_objext
12462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463  (eval $ac_compile) 2>conftest.er1
12464  ac_status=$?
12465  grep -v '^ *+' conftest.er1 >conftest.err
12466  rm -f conftest.er1
12467  cat conftest.err >&5
12468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469  (exit $ac_status); } &&
12470	 { ac_try='test -z "$ac_c_werror_flag"
12471			 || test ! -s conftest.err'
12472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473  (eval $ac_try) 2>&5
12474  ac_status=$?
12475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476  (exit $ac_status); }; } &&
12477	 { ac_try='test -s conftest.$ac_objext'
12478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479  (eval $ac_try) 2>&5
12480  ac_status=$?
12481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482  (exit $ac_status); }; }; then
12483  ac_lo=0 ac_mid=0
12484  while :; do
12485    cat >conftest.$ac_ext <<_ACEOF
12486/* confdefs.h.  */
12487_ACEOF
12488cat confdefs.h >>conftest.$ac_ext
12489cat >>conftest.$ac_ext <<_ACEOF
12490/* end confdefs.h.  */
12491$ac_includes_default
12492int
12493main ()
12494{
12495static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12496test_array [0] = 0
12497
12498  ;
12499  return 0;
12500}
12501_ACEOF
12502rm -f conftest.$ac_objext
12503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504  (eval $ac_compile) 2>conftest.er1
12505  ac_status=$?
12506  grep -v '^ *+' conftest.er1 >conftest.err
12507  rm -f conftest.er1
12508  cat conftest.err >&5
12509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510  (exit $ac_status); } &&
12511	 { ac_try='test -z "$ac_c_werror_flag"
12512			 || test ! -s conftest.err'
12513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514  (eval $ac_try) 2>&5
12515  ac_status=$?
12516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517  (exit $ac_status); }; } &&
12518	 { ac_try='test -s conftest.$ac_objext'
12519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520  (eval $ac_try) 2>&5
12521  ac_status=$?
12522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523  (exit $ac_status); }; }; then
12524  ac_hi=$ac_mid; break
12525else
12526  echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
12529ac_lo=`expr $ac_mid + 1`
12530		    if test $ac_lo -le $ac_mid; then
12531		      ac_lo= ac_hi=
12532		      break
12533		    fi
12534		    ac_mid=`expr 2 '*' $ac_mid + 1`
12535fi
12536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12537  done
12538else
12539  echo "$as_me: failed program was:" >&5
12540sed 's/^/| /' conftest.$ac_ext >&5
12541
12542cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h.  */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h.  */
12548$ac_includes_default
12549int
12550main ()
12551{
12552static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12553test_array [0] = 0
12554
12555  ;
12556  return 0;
12557}
12558_ACEOF
12559rm -f conftest.$ac_objext
12560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561  (eval $ac_compile) 2>conftest.er1
12562  ac_status=$?
12563  grep -v '^ *+' conftest.er1 >conftest.err
12564  rm -f conftest.er1
12565  cat conftest.err >&5
12566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567  (exit $ac_status); } &&
12568	 { ac_try='test -z "$ac_c_werror_flag"
12569			 || test ! -s conftest.err'
12570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571  (eval $ac_try) 2>&5
12572  ac_status=$?
12573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574  (exit $ac_status); }; } &&
12575	 { ac_try='test -s conftest.$ac_objext'
12576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577  (eval $ac_try) 2>&5
12578  ac_status=$?
12579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580  (exit $ac_status); }; }; then
12581  ac_hi=-1 ac_mid=-1
12582  while :; do
12583    cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h.  */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h.  */
12589$ac_includes_default
12590int
12591main ()
12592{
12593static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12594test_array [0] = 0
12595
12596  ;
12597  return 0;
12598}
12599_ACEOF
12600rm -f conftest.$ac_objext
12601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602  (eval $ac_compile) 2>conftest.er1
12603  ac_status=$?
12604  grep -v '^ *+' conftest.er1 >conftest.err
12605  rm -f conftest.er1
12606  cat conftest.err >&5
12607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608  (exit $ac_status); } &&
12609	 { ac_try='test -z "$ac_c_werror_flag"
12610			 || test ! -s conftest.err'
12611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612  (eval $ac_try) 2>&5
12613  ac_status=$?
12614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615  (exit $ac_status); }; } &&
12616	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12622  ac_lo=$ac_mid; break
12623else
12624  echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
12627ac_hi=`expr '(' $ac_mid ')' - 1`
12628		       if test $ac_mid -le $ac_hi; then
12629			 ac_lo= ac_hi=
12630			 break
12631		       fi
12632		       ac_mid=`expr 2 '*' $ac_mid`
12633fi
12634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635  done
12636else
12637  echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
12640ac_lo= ac_hi=
12641fi
12642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12643fi
12644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645# Binary search between lo and hi bounds.
12646while test "x$ac_lo" != "x$ac_hi"; do
12647  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12648  cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h.  */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h.  */
12654$ac_includes_default
12655int
12656main ()
12657{
12658static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12659test_array [0] = 0
12660
12661  ;
12662  return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext
12666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667  (eval $ac_compile) 2>conftest.er1
12668  ac_status=$?
12669  grep -v '^ *+' conftest.er1 >conftest.err
12670  rm -f conftest.er1
12671  cat conftest.err >&5
12672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673  (exit $ac_status); } &&
12674	 { ac_try='test -z "$ac_c_werror_flag"
12675			 || test ! -s conftest.err'
12676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677  (eval $ac_try) 2>&5
12678  ac_status=$?
12679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680  (exit $ac_status); }; } &&
12681	 { ac_try='test -s conftest.$ac_objext'
12682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683  (eval $ac_try) 2>&5
12684  ac_status=$?
12685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686  (exit $ac_status); }; }; then
12687  ac_hi=$ac_mid
12688else
12689  echo "$as_me: failed program was:" >&5
12690sed 's/^/| /' conftest.$ac_ext >&5
12691
12692ac_lo=`expr '(' $ac_mid ')' + 1`
12693fi
12694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695done
12696case $ac_lo in
12697?*) ac_cv_sizeof_long=$ac_lo;;
12698'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12699echo "$as_me: error: in \`$ac_pwd':" >&2;}
12700{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12701See \`config.log' for more details." >&5
12702echo "$as_me: error: cannot compute sizeof (long), 77
12703See \`config.log' for more details." >&2;}
12704   { (exit 1); exit 1; }; }; } ;;
12705esac
12706else
12707  if test "$cross_compiling" = yes; then
12708  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12709echo "$as_me: error: in \`$ac_pwd':" >&2;}
12710{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12711See \`config.log' for more details." >&5
12712echo "$as_me: error: cannot run test program while cross compiling
12713See \`config.log' for more details." >&2;}
12714   { (exit 1); exit 1; }; }; }
12715else
12716  cat >conftest.$ac_ext <<_ACEOF
12717/* confdefs.h.  */
12718_ACEOF
12719cat confdefs.h >>conftest.$ac_ext
12720cat >>conftest.$ac_ext <<_ACEOF
12721/* end confdefs.h.  */
12722$ac_includes_default
12723long longval () { return (long) (sizeof (long)); }
12724unsigned long ulongval () { return (long) (sizeof (long)); }
12725#include <stdio.h>
12726#include <stdlib.h>
12727int
12728main ()
12729{
12730
12731  FILE *f = fopen ("conftest.val", "w");
12732  if (! f)
12733    exit (1);
12734  if (((long) (sizeof (long))) < 0)
12735    {
12736      long i = longval ();
12737      if (i != ((long) (sizeof (long))))
12738	exit (1);
12739      fprintf (f, "%ld\n", i);
12740    }
12741  else
12742    {
12743      unsigned long i = ulongval ();
12744      if (i != ((long) (sizeof (long))))
12745	exit (1);
12746      fprintf (f, "%lu\n", i);
12747    }
12748  exit (ferror (f) || fclose (f) != 0);
12749
12750  ;
12751  return 0;
12752}
12753_ACEOF
12754rm -f conftest$ac_exeext
12755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756  (eval $ac_link) 2>&5
12757  ac_status=$?
12758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761  (eval $ac_try) 2>&5
12762  ac_status=$?
12763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764  (exit $ac_status); }; }; then
12765  ac_cv_sizeof_long=`cat conftest.val`
12766else
12767  echo "$as_me: program exited with status $ac_status" >&5
12768echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771( exit $ac_status )
12772{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12773echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12775See \`config.log' for more details." >&5
12776echo "$as_me: error: cannot compute sizeof (long), 77
12777See \`config.log' for more details." >&2;}
12778   { (exit 1); exit 1; }; }; }
12779fi
12780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12781fi
12782fi
12783rm -f conftest.val
12784else
12785  ac_cv_sizeof_long=0
12786fi
12787fi
12788echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12789echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12790cat >>confdefs.h <<_ACEOF
12791#define SIZEOF_LONG $ac_cv_sizeof_long
12792_ACEOF
12793
12794
12795
12796if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12797  host64=true
12798fi
12799
12800if test "x${ac_cv_sizeof_long}" = "x8"; then
12801  BFD_HOST_64BIT_LONG=1
12802  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12803  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12804elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12805  BFD_HOST_64BIT_LONG_LONG=1
12806  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12807  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12808  if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12809    BFD_HOSTPTR_T="unsigned long long"
12810  fi
12811fi
12812
12813if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12814  BFD_HOST_64_BIT_DEFINED=1
12815  BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12816  BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12817fi
12818
12819
12820
12821
12822
12823
12824
12825
12826# Put a plausible default for CC_FOR_BUILD in Makefile.
12827if test -z "$CC_FOR_BUILD"; then
12828  if test "x$cross_compiling" = "xno"; then
12829    CC_FOR_BUILD='$(CC)'
12830  else
12831    CC_FOR_BUILD=gcc
12832  fi
12833fi
12834
12835# Also set EXEEXT_FOR_BUILD.
12836if test "x$cross_compiling" = "xno"; then
12837  EXEEXT_FOR_BUILD='$(EXEEXT)'
12838else
12839  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12840echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12841if test "${bfd_cv_build_exeext+set}" = set; then
12842  echo $ECHO_N "(cached) $ECHO_C" >&6
12843else
12844  rm -f conftest*
12845     echo 'int main () { return 0; }' > conftest.c
12846     bfd_cv_build_exeext=
12847     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12848     for file in conftest.*; do
12849       case $file in
12850       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12851       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12852       esac
12853     done
12854     rm -f conftest*
12855     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12856fi
12857echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12858echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12859  EXEEXT_FOR_BUILD=""
12860  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12861fi
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12872do
12873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12874if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875  echo "$as_me:$LINENO: checking for $ac_header" >&5
12876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12877if eval "test \"\${$as_ac_Header+set}\" = set"; then
12878  echo $ECHO_N "(cached) $ECHO_C" >&6
12879fi
12880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882else
12883  # Is the header compilable?
12884echo "$as_me:$LINENO: checking $ac_header usability" >&5
12885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12886cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h.  */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h.  */
12892$ac_includes_default
12893#include <$ac_header>
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897  (eval $ac_compile) 2>conftest.er1
12898  ac_status=$?
12899  grep -v '^ *+' conftest.er1 >conftest.err
12900  rm -f conftest.er1
12901  cat conftest.err >&5
12902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903  (exit $ac_status); } &&
12904	 { ac_try='test -z "$ac_c_werror_flag"
12905			 || test ! -s conftest.err'
12906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907  (eval $ac_try) 2>&5
12908  ac_status=$?
12909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910  (exit $ac_status); }; } &&
12911	 { ac_try='test -s conftest.$ac_objext'
12912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913  (eval $ac_try) 2>&5
12914  ac_status=$?
12915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916  (exit $ac_status); }; }; then
12917  ac_header_compiler=yes
12918else
12919  echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922ac_header_compiler=no
12923fi
12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12926echo "${ECHO_T}$ac_header_compiler" >&6
12927
12928# Is the header present?
12929echo "$as_me:$LINENO: checking $ac_header presence" >&5
12930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12931cat >conftest.$ac_ext <<_ACEOF
12932/* confdefs.h.  */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h.  */
12937#include <$ac_header>
12938_ACEOF
12939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12940  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12941  ac_status=$?
12942  grep -v '^ *+' conftest.er1 >conftest.err
12943  rm -f conftest.er1
12944  cat conftest.err >&5
12945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946  (exit $ac_status); } >/dev/null; then
12947  if test -s conftest.err; then
12948    ac_cpp_err=$ac_c_preproc_warn_flag
12949    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12950  else
12951    ac_cpp_err=
12952  fi
12953else
12954  ac_cpp_err=yes
12955fi
12956if test -z "$ac_cpp_err"; then
12957  ac_header_preproc=yes
12958else
12959  echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
12961
12962  ac_header_preproc=no
12963fi
12964rm -f conftest.err conftest.$ac_ext
12965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12966echo "${ECHO_T}$ac_header_preproc" >&6
12967
12968# So?  What about this header?
12969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12970  yes:no: )
12971    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12973    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12975    ac_header_preproc=yes
12976    ;;
12977  no:yes:* )
12978    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12980    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12981echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12982    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12984    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12985echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12988    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12990    (
12991      cat <<\_ASBOX
12992## ------------------------------------------ ##
12993## Report this to the AC_PACKAGE_NAME lists.  ##
12994## ------------------------------------------ ##
12995_ASBOX
12996    ) |
12997      sed "s/^/$as_me: WARNING:     /" >&2
12998    ;;
12999esac
13000echo "$as_me:$LINENO: checking for $ac_header" >&5
13001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13002if eval "test \"\${$as_ac_Header+set}\" = set"; then
13003  echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
13005  eval "$as_ac_Header=\$ac_header_preproc"
13006fi
13007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13009
13010fi
13011if test `eval echo '${'$as_ac_Header'}'` = yes; then
13012  cat >>confdefs.h <<_ACEOF
13013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13014_ACEOF
13015
13016fi
13017
13018done
13019
13020
13021
13022
13023for ac_header in fcntl.h sys/file.h sys/time.h
13024do
13025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13026if eval "test \"\${$as_ac_Header+set}\" = set"; then
13027  echo "$as_me:$LINENO: checking for $ac_header" >&5
13028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030  echo $ECHO_N "(cached) $ECHO_C" >&6
13031fi
13032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13034else
13035  # Is the header compilable?
13036echo "$as_me:$LINENO: checking $ac_header usability" >&5
13037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h.  */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h.  */
13044$ac_includes_default
13045#include <$ac_header>
13046_ACEOF
13047rm -f conftest.$ac_objext
13048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049  (eval $ac_compile) 2>conftest.er1
13050  ac_status=$?
13051  grep -v '^ *+' conftest.er1 >conftest.err
13052  rm -f conftest.er1
13053  cat conftest.err >&5
13054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055  (exit $ac_status); } &&
13056	 { ac_try='test -z "$ac_c_werror_flag"
13057			 || test ! -s conftest.err'
13058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059  (eval $ac_try) 2>&5
13060  ac_status=$?
13061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062  (exit $ac_status); }; } &&
13063	 { ac_try='test -s conftest.$ac_objext'
13064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065  (eval $ac_try) 2>&5
13066  ac_status=$?
13067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068  (exit $ac_status); }; }; then
13069  ac_header_compiler=yes
13070else
13071  echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074ac_header_compiler=no
13075fi
13076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13078echo "${ECHO_T}$ac_header_compiler" >&6
13079
13080# Is the header present?
13081echo "$as_me:$LINENO: checking $ac_header presence" >&5
13082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13083cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h.  */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h.  */
13089#include <$ac_header>
13090_ACEOF
13091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13092  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13093  ac_status=$?
13094  grep -v '^ *+' conftest.er1 >conftest.err
13095  rm -f conftest.er1
13096  cat conftest.err >&5
13097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098  (exit $ac_status); } >/dev/null; then
13099  if test -s conftest.err; then
13100    ac_cpp_err=$ac_c_preproc_warn_flag
13101    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13102  else
13103    ac_cpp_err=
13104  fi
13105else
13106  ac_cpp_err=yes
13107fi
13108if test -z "$ac_cpp_err"; then
13109  ac_header_preproc=yes
13110else
13111  echo "$as_me: failed program was:" >&5
13112sed 's/^/| /' conftest.$ac_ext >&5
13113
13114  ac_header_preproc=no
13115fi
13116rm -f conftest.err conftest.$ac_ext
13117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13118echo "${ECHO_T}$ac_header_preproc" >&6
13119
13120# So?  What about this header?
13121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13122  yes:no: )
13123    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13125    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13127    ac_header_preproc=yes
13128    ;;
13129  no:yes:* )
13130    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13132    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13133echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13134    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13136    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13137echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13138    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13140    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13142    (
13143      cat <<\_ASBOX
13144## ------------------------------------------ ##
13145## Report this to the AC_PACKAGE_NAME lists.  ##
13146## ------------------------------------------ ##
13147_ASBOX
13148    ) |
13149      sed "s/^/$as_me: WARNING:     /" >&2
13150    ;;
13151esac
13152echo "$as_me:$LINENO: checking for $ac_header" >&5
13153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155  echo $ECHO_N "(cached) $ECHO_C" >&6
13156else
13157  eval "$as_ac_Header=\$ac_header_preproc"
13158fi
13159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13161
13162fi
13163if test `eval echo '${'$as_ac_Header'}'` = yes; then
13164  cat >>confdefs.h <<_ACEOF
13165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13166_ACEOF
13167
13168fi
13169
13170done
13171
13172
13173
13174inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
13175
13176acx_cv_header_stdint=stddef.h
13177acx_cv_header_stdint_kind="(already complete)"
13178for i in stdint.h $inttype_headers; do
13179  unset ac_cv_type_uintptr_t
13180  unset ac_cv_type_uintmax_t
13181  unset ac_cv_type_int_least32_t
13182  unset ac_cv_type_int_fast32_t
13183  unset ac_cv_type_uint64_t
13184  echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13185  echo "$as_me:$LINENO: checking for uintmax_t" >&5
13186echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13187if test "${ac_cv_type_uintmax_t+set}" = set; then
13188  echo $ECHO_N "(cached) $ECHO_C" >&6
13189else
13190  cat >conftest.$ac_ext <<_ACEOF
13191/* confdefs.h.  */
13192_ACEOF
13193cat confdefs.h >>conftest.$ac_ext
13194cat >>conftest.$ac_ext <<_ACEOF
13195/* end confdefs.h.  */
13196#include <sys/types.h>
13197#include <$i>
13198
13199int
13200main ()
13201{
13202if ((uintmax_t *) 0)
13203  return 0;
13204if (sizeof (uintmax_t))
13205  return 0;
13206  ;
13207  return 0;
13208}
13209_ACEOF
13210rm -f conftest.$ac_objext
13211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212  (eval $ac_compile) 2>conftest.er1
13213  ac_status=$?
13214  grep -v '^ *+' conftest.er1 >conftest.err
13215  rm -f conftest.er1
13216  cat conftest.err >&5
13217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218  (exit $ac_status); } &&
13219	 { ac_try='test -z "$ac_c_werror_flag"
13220			 || test ! -s conftest.err'
13221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222  (eval $ac_try) 2>&5
13223  ac_status=$?
13224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225  (exit $ac_status); }; } &&
13226	 { ac_try='test -s conftest.$ac_objext'
13227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228  (eval $ac_try) 2>&5
13229  ac_status=$?
13230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231  (exit $ac_status); }; }; then
13232  ac_cv_type_uintmax_t=yes
13233else
13234  echo "$as_me: failed program was:" >&5
13235sed 's/^/| /' conftest.$ac_ext >&5
13236
13237ac_cv_type_uintmax_t=no
13238fi
13239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13240fi
13241echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13242echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13243if test $ac_cv_type_uintmax_t = yes; then
13244  acx_cv_header_stdint=$i
13245else
13246  continue
13247fi
13248
13249  echo "$as_me:$LINENO: checking for uintptr_t" >&5
13250echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13251if test "${ac_cv_type_uintptr_t+set}" = set; then
13252  echo $ECHO_N "(cached) $ECHO_C" >&6
13253else
13254  cat >conftest.$ac_ext <<_ACEOF
13255/* confdefs.h.  */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h.  */
13260#include <sys/types.h>
13261#include <$i>
13262
13263int
13264main ()
13265{
13266if ((uintptr_t *) 0)
13267  return 0;
13268if (sizeof (uintptr_t))
13269  return 0;
13270  ;
13271  return 0;
13272}
13273_ACEOF
13274rm -f conftest.$ac_objext
13275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276  (eval $ac_compile) 2>conftest.er1
13277  ac_status=$?
13278  grep -v '^ *+' conftest.er1 >conftest.err
13279  rm -f conftest.er1
13280  cat conftest.err >&5
13281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282  (exit $ac_status); } &&
13283	 { ac_try='test -z "$ac_c_werror_flag"
13284			 || test ! -s conftest.err'
13285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286  (eval $ac_try) 2>&5
13287  ac_status=$?
13288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289  (exit $ac_status); }; } &&
13290	 { ac_try='test -s conftest.$ac_objext'
13291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292  (eval $ac_try) 2>&5
13293  ac_status=$?
13294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295  (exit $ac_status); }; }; then
13296  ac_cv_type_uintptr_t=yes
13297else
13298  echo "$as_me: failed program was:" >&5
13299sed 's/^/| /' conftest.$ac_ext >&5
13300
13301ac_cv_type_uintptr_t=no
13302fi
13303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304fi
13305echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13306echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13307if test $ac_cv_type_uintptr_t = yes; then
13308  :
13309else
13310  acx_cv_header_stdint_kind="(mostly complete)"
13311fi
13312
13313  echo "$as_me:$LINENO: checking for int_least32_t" >&5
13314echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13315if test "${ac_cv_type_int_least32_t+set}" = set; then
13316  echo $ECHO_N "(cached) $ECHO_C" >&6
13317else
13318  cat >conftest.$ac_ext <<_ACEOF
13319/* confdefs.h.  */
13320_ACEOF
13321cat confdefs.h >>conftest.$ac_ext
13322cat >>conftest.$ac_ext <<_ACEOF
13323/* end confdefs.h.  */
13324#include <sys/types.h>
13325#include <$i>
13326
13327int
13328main ()
13329{
13330if ((int_least32_t *) 0)
13331  return 0;
13332if (sizeof (int_least32_t))
13333  return 0;
13334  ;
13335  return 0;
13336}
13337_ACEOF
13338rm -f conftest.$ac_objext
13339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13340  (eval $ac_compile) 2>conftest.er1
13341  ac_status=$?
13342  grep -v '^ *+' conftest.er1 >conftest.err
13343  rm -f conftest.er1
13344  cat conftest.err >&5
13345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346  (exit $ac_status); } &&
13347	 { ac_try='test -z "$ac_c_werror_flag"
13348			 || test ! -s conftest.err'
13349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350  (eval $ac_try) 2>&5
13351  ac_status=$?
13352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353  (exit $ac_status); }; } &&
13354	 { ac_try='test -s conftest.$ac_objext'
13355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356  (eval $ac_try) 2>&5
13357  ac_status=$?
13358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359  (exit $ac_status); }; }; then
13360  ac_cv_type_int_least32_t=yes
13361else
13362  echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365ac_cv_type_int_least32_t=no
13366fi
13367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13368fi
13369echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13370echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13371if test $ac_cv_type_int_least32_t = yes; then
13372  :
13373else
13374  acx_cv_header_stdint_kind="(mostly complete)"
13375fi
13376
13377  echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13378echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13379if test "${ac_cv_type_int_fast32_t+set}" = set; then
13380  echo $ECHO_N "(cached) $ECHO_C" >&6
13381else
13382  cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h.  */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h.  */
13388#include <sys/types.h>
13389#include <$i>
13390
13391int
13392main ()
13393{
13394if ((int_fast32_t *) 0)
13395  return 0;
13396if (sizeof (int_fast32_t))
13397  return 0;
13398  ;
13399  return 0;
13400}
13401_ACEOF
13402rm -f conftest.$ac_objext
13403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404  (eval $ac_compile) 2>conftest.er1
13405  ac_status=$?
13406  grep -v '^ *+' conftest.er1 >conftest.err
13407  rm -f conftest.er1
13408  cat conftest.err >&5
13409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410  (exit $ac_status); } &&
13411	 { ac_try='test -z "$ac_c_werror_flag"
13412			 || test ! -s conftest.err'
13413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414  (eval $ac_try) 2>&5
13415  ac_status=$?
13416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417  (exit $ac_status); }; } &&
13418	 { ac_try='test -s conftest.$ac_objext'
13419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420  (eval $ac_try) 2>&5
13421  ac_status=$?
13422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423  (exit $ac_status); }; }; then
13424  ac_cv_type_int_fast32_t=yes
13425else
13426  echo "$as_me: failed program was:" >&5
13427sed 's/^/| /' conftest.$ac_ext >&5
13428
13429ac_cv_type_int_fast32_t=no
13430fi
13431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13432fi
13433echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13434echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13435if test $ac_cv_type_int_fast32_t = yes; then
13436  :
13437else
13438  acx_cv_header_stdint_kind="(mostly complete)"
13439fi
13440
13441  echo "$as_me:$LINENO: checking for uint64_t" >&5
13442echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13443if test "${ac_cv_type_uint64_t+set}" = set; then
13444  echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446  cat >conftest.$ac_ext <<_ACEOF
13447/* confdefs.h.  */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h.  */
13452#include <sys/types.h>
13453#include <$i>
13454
13455int
13456main ()
13457{
13458if ((uint64_t *) 0)
13459  return 0;
13460if (sizeof (uint64_t))
13461  return 0;
13462  ;
13463  return 0;
13464}
13465_ACEOF
13466rm -f conftest.$ac_objext
13467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468  (eval $ac_compile) 2>conftest.er1
13469  ac_status=$?
13470  grep -v '^ *+' conftest.er1 >conftest.err
13471  rm -f conftest.er1
13472  cat conftest.err >&5
13473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474  (exit $ac_status); } &&
13475	 { ac_try='test -z "$ac_c_werror_flag"
13476			 || test ! -s conftest.err'
13477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478  (eval $ac_try) 2>&5
13479  ac_status=$?
13480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481  (exit $ac_status); }; } &&
13482	 { ac_try='test -s conftest.$ac_objext'
13483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484  (eval $ac_try) 2>&5
13485  ac_status=$?
13486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487  (exit $ac_status); }; }; then
13488  ac_cv_type_uint64_t=yes
13489else
13490  echo "$as_me: failed program was:" >&5
13491sed 's/^/| /' conftest.$ac_ext >&5
13492
13493ac_cv_type_uint64_t=no
13494fi
13495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13496fi
13497echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13498echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13499if test $ac_cv_type_uint64_t = yes; then
13500  :
13501else
13502  acx_cv_header_stdint_kind="(lacks uint64_t)"
13503fi
13504
13505  break
13506done
13507if test "$acx_cv_header_stdint" = stddef.h; then
13508  acx_cv_header_stdint_kind="(lacks uintmax_t)"
13509  for i in stdint.h $inttype_headers; do
13510    unset ac_cv_type_uintptr_t
13511    unset ac_cv_type_uint32_t
13512    unset ac_cv_type_uint64_t
13513    echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13514    echo "$as_me:$LINENO: checking for uint32_t" >&5
13515echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13516if test "${ac_cv_type_uint32_t+set}" = set; then
13517  echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
13519  cat >conftest.$ac_ext <<_ACEOF
13520/* confdefs.h.  */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h.  */
13525#include <sys/types.h>
13526#include <$i>
13527
13528int
13529main ()
13530{
13531if ((uint32_t *) 0)
13532  return 0;
13533if (sizeof (uint32_t))
13534  return 0;
13535  ;
13536  return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541  (eval $ac_compile) 2>conftest.er1
13542  ac_status=$?
13543  grep -v '^ *+' conftest.er1 >conftest.err
13544  rm -f conftest.er1
13545  cat conftest.err >&5
13546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547  (exit $ac_status); } &&
13548	 { ac_try='test -z "$ac_c_werror_flag"
13549			 || test ! -s conftest.err'
13550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551  (eval $ac_try) 2>&5
13552  ac_status=$?
13553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554  (exit $ac_status); }; } &&
13555	 { ac_try='test -s conftest.$ac_objext'
13556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557  (eval $ac_try) 2>&5
13558  ac_status=$?
13559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560  (exit $ac_status); }; }; then
13561  ac_cv_type_uint32_t=yes
13562else
13563  echo "$as_me: failed program was:" >&5
13564sed 's/^/| /' conftest.$ac_ext >&5
13565
13566ac_cv_type_uint32_t=no
13567fi
13568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569fi
13570echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13571echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13572if test $ac_cv_type_uint32_t = yes; then
13573  acx_cv_header_stdint=$i
13574else
13575  continue
13576fi
13577
13578    echo "$as_me:$LINENO: checking for uint64_t" >&5
13579echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13580if test "${ac_cv_type_uint64_t+set}" = set; then
13581  echo $ECHO_N "(cached) $ECHO_C" >&6
13582else
13583  cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h.  */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h.  */
13589#include <sys/types.h>
13590#include <$i>
13591
13592int
13593main ()
13594{
13595if ((uint64_t *) 0)
13596  return 0;
13597if (sizeof (uint64_t))
13598  return 0;
13599  ;
13600  return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext
13604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605  (eval $ac_compile) 2>conftest.er1
13606  ac_status=$?
13607  grep -v '^ *+' conftest.er1 >conftest.err
13608  rm -f conftest.er1
13609  cat conftest.err >&5
13610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611  (exit $ac_status); } &&
13612	 { ac_try='test -z "$ac_c_werror_flag"
13613			 || test ! -s conftest.err'
13614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615  (eval $ac_try) 2>&5
13616  ac_status=$?
13617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618  (exit $ac_status); }; } &&
13619	 { ac_try='test -s conftest.$ac_objext'
13620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621  (eval $ac_try) 2>&5
13622  ac_status=$?
13623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624  (exit $ac_status); }; }; then
13625  ac_cv_type_uint64_t=yes
13626else
13627  echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630ac_cv_type_uint64_t=no
13631fi
13632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13633fi
13634echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13635echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13636
13637    echo "$as_me:$LINENO: checking for uintptr_t" >&5
13638echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13639if test "${ac_cv_type_uintptr_t+set}" = set; then
13640  echo $ECHO_N "(cached) $ECHO_C" >&6
13641else
13642  cat >conftest.$ac_ext <<_ACEOF
13643/* confdefs.h.  */
13644_ACEOF
13645cat confdefs.h >>conftest.$ac_ext
13646cat >>conftest.$ac_ext <<_ACEOF
13647/* end confdefs.h.  */
13648#include <sys/types.h>
13649#include <$i>
13650
13651int
13652main ()
13653{
13654if ((uintptr_t *) 0)
13655  return 0;
13656if (sizeof (uintptr_t))
13657  return 0;
13658  ;
13659  return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext
13663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13664  (eval $ac_compile) 2>conftest.er1
13665  ac_status=$?
13666  grep -v '^ *+' conftest.er1 >conftest.err
13667  rm -f conftest.er1
13668  cat conftest.err >&5
13669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670  (exit $ac_status); } &&
13671	 { ac_try='test -z "$ac_c_werror_flag"
13672			 || test ! -s conftest.err'
13673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674  (eval $ac_try) 2>&5
13675  ac_status=$?
13676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677  (exit $ac_status); }; } &&
13678	 { ac_try='test -s conftest.$ac_objext'
13679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680  (eval $ac_try) 2>&5
13681  ac_status=$?
13682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683  (exit $ac_status); }; }; then
13684  ac_cv_type_uintptr_t=yes
13685else
13686  echo "$as_me: failed program was:" >&5
13687sed 's/^/| /' conftest.$ac_ext >&5
13688
13689ac_cv_type_uintptr_t=no
13690fi
13691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13692fi
13693echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13694echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13695
13696    break
13697  done
13698fi
13699if test "$acx_cv_header_stdint" = stddef.h; then
13700  acx_cv_header_stdint_kind="(u_intXX_t style)"
13701  for i in sys/types.h $inttype_headers; do
13702    unset ac_cv_type_u_int32_t
13703    unset ac_cv_type_u_int64_t
13704    echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13705    echo "$as_me:$LINENO: checking for u_int32_t" >&5
13706echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13707if test "${ac_cv_type_u_int32_t+set}" = set; then
13708  echo $ECHO_N "(cached) $ECHO_C" >&6
13709else
13710  cat >conftest.$ac_ext <<_ACEOF
13711/* confdefs.h.  */
13712_ACEOF
13713cat confdefs.h >>conftest.$ac_ext
13714cat >>conftest.$ac_ext <<_ACEOF
13715/* end confdefs.h.  */
13716#include <sys/types.h>
13717#include <$i>
13718
13719int
13720main ()
13721{
13722if ((u_int32_t *) 0)
13723  return 0;
13724if (sizeof (u_int32_t))
13725  return 0;
13726  ;
13727  return 0;
13728}
13729_ACEOF
13730rm -f conftest.$ac_objext
13731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732  (eval $ac_compile) 2>conftest.er1
13733  ac_status=$?
13734  grep -v '^ *+' conftest.er1 >conftest.err
13735  rm -f conftest.er1
13736  cat conftest.err >&5
13737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738  (exit $ac_status); } &&
13739	 { ac_try='test -z "$ac_c_werror_flag"
13740			 || test ! -s conftest.err'
13741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742  (eval $ac_try) 2>&5
13743  ac_status=$?
13744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745  (exit $ac_status); }; } &&
13746	 { ac_try='test -s conftest.$ac_objext'
13747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748  (eval $ac_try) 2>&5
13749  ac_status=$?
13750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751  (exit $ac_status); }; }; then
13752  ac_cv_type_u_int32_t=yes
13753else
13754  echo "$as_me: failed program was:" >&5
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
13757ac_cv_type_u_int32_t=no
13758fi
13759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760fi
13761echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13762echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13763if test $ac_cv_type_u_int32_t = yes; then
13764  acx_cv_header_stdint=$i
13765else
13766  continue
13767fi
13768
13769    echo "$as_me:$LINENO: checking for u_int64_t" >&5
13770echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13771if test "${ac_cv_type_u_int64_t+set}" = set; then
13772  echo $ECHO_N "(cached) $ECHO_C" >&6
13773else
13774  cat >conftest.$ac_ext <<_ACEOF
13775/* confdefs.h.  */
13776_ACEOF
13777cat confdefs.h >>conftest.$ac_ext
13778cat >>conftest.$ac_ext <<_ACEOF
13779/* end confdefs.h.  */
13780#include <sys/types.h>
13781#include <$i>
13782
13783int
13784main ()
13785{
13786if ((u_int64_t *) 0)
13787  return 0;
13788if (sizeof (u_int64_t))
13789  return 0;
13790  ;
13791  return 0;
13792}
13793_ACEOF
13794rm -f conftest.$ac_objext
13795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796  (eval $ac_compile) 2>conftest.er1
13797  ac_status=$?
13798  grep -v '^ *+' conftest.er1 >conftest.err
13799  rm -f conftest.er1
13800  cat conftest.err >&5
13801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802  (exit $ac_status); } &&
13803	 { ac_try='test -z "$ac_c_werror_flag"
13804			 || test ! -s conftest.err'
13805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806  (eval $ac_try) 2>&5
13807  ac_status=$?
13808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809  (exit $ac_status); }; } &&
13810	 { ac_try='test -s conftest.$ac_objext'
13811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812  (eval $ac_try) 2>&5
13813  ac_status=$?
13814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815  (exit $ac_status); }; }; then
13816  ac_cv_type_u_int64_t=yes
13817else
13818  echo "$as_me: failed program was:" >&5
13819sed 's/^/| /' conftest.$ac_ext >&5
13820
13821ac_cv_type_u_int64_t=no
13822fi
13823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13824fi
13825echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13826echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13827
13828    break
13829  done
13830fi
13831if test "$acx_cv_header_stdint" = stddef.h; then
13832  acx_cv_header_stdint_kind="(using manual detection)"
13833fi
13834
13835test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13836test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13837test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13838test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13839test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13840
13841# ----------------- Summarize what we found so far
13842
13843echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13844echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13845
13846case `$as_basename bfd_stdint.h ||
13847$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13848	 Xbfd_stdint.h : 'X\(//\)$' \| \
13849	 Xbfd_stdint.h : 'X\(/\)$' \| \
13850	 .     : '\(.\)' 2>/dev/null ||
13851echo X/bfd_stdint.h |
13852    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13853  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
13854  	  /^X\/\(\/\).*/{ s//\1/; q; }
13855  	  s/.*/./; q'` in
13856  stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13857echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13858  inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13859echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13860  *) ;;
13861esac
13862
13863echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13864echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13865
13866# ----------------- done included file, check C basic types --------
13867
13868# Lacking an uintptr_t?  Test size of void *
13869case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13870  stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13871echo $ECHO_N "checking for void *... $ECHO_C" >&6
13872if test "${ac_cv_type_void_p+set}" = set; then
13873  echo $ECHO_N "(cached) $ECHO_C" >&6
13874else
13875  cat >conftest.$ac_ext <<_ACEOF
13876/* confdefs.h.  */
13877_ACEOF
13878cat confdefs.h >>conftest.$ac_ext
13879cat >>conftest.$ac_ext <<_ACEOF
13880/* end confdefs.h.  */
13881$ac_includes_default
13882int
13883main ()
13884{
13885if ((void * *) 0)
13886  return 0;
13887if (sizeof (void *))
13888  return 0;
13889  ;
13890  return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895  (eval $ac_compile) 2>conftest.er1
13896  ac_status=$?
13897  grep -v '^ *+' conftest.er1 >conftest.err
13898  rm -f conftest.er1
13899  cat conftest.err >&5
13900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901  (exit $ac_status); } &&
13902	 { ac_try='test -z "$ac_c_werror_flag"
13903			 || test ! -s conftest.err'
13904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905  (eval $ac_try) 2>&5
13906  ac_status=$?
13907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908  (exit $ac_status); }; } &&
13909	 { ac_try='test -s conftest.$ac_objext'
13910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911  (eval $ac_try) 2>&5
13912  ac_status=$?
13913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914  (exit $ac_status); }; }; then
13915  ac_cv_type_void_p=yes
13916else
13917  echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
13920ac_cv_type_void_p=no
13921fi
13922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13923fi
13924echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13925echo "${ECHO_T}$ac_cv_type_void_p" >&6
13926
13927echo "$as_me:$LINENO: checking size of void *" >&5
13928echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13929if test "${ac_cv_sizeof_void_p+set}" = set; then
13930  echo $ECHO_N "(cached) $ECHO_C" >&6
13931else
13932  if test "$ac_cv_type_void_p" = yes; then
13933  # The cast to unsigned long works around a bug in the HP C Compiler
13934  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13935  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13936  # This bug is HP SR number 8606223364.
13937  if test "$cross_compiling" = yes; then
13938  # Depending upon the size, compute the lo and hi bounds.
13939cat >conftest.$ac_ext <<_ACEOF
13940/* confdefs.h.  */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h.  */
13945$ac_includes_default
13946int
13947main ()
13948{
13949static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13950test_array [0] = 0
13951
13952  ;
13953  return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958  (eval $ac_compile) 2>conftest.er1
13959  ac_status=$?
13960  grep -v '^ *+' conftest.er1 >conftest.err
13961  rm -f conftest.er1
13962  cat conftest.err >&5
13963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964  (exit $ac_status); } &&
13965	 { ac_try='test -z "$ac_c_werror_flag"
13966			 || test ! -s conftest.err'
13967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968  (eval $ac_try) 2>&5
13969  ac_status=$?
13970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971  (exit $ac_status); }; } &&
13972	 { ac_try='test -s conftest.$ac_objext'
13973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974  (eval $ac_try) 2>&5
13975  ac_status=$?
13976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977  (exit $ac_status); }; }; then
13978  ac_lo=0 ac_mid=0
13979  while :; do
13980    cat >conftest.$ac_ext <<_ACEOF
13981/* confdefs.h.  */
13982_ACEOF
13983cat confdefs.h >>conftest.$ac_ext
13984cat >>conftest.$ac_ext <<_ACEOF
13985/* end confdefs.h.  */
13986$ac_includes_default
13987int
13988main ()
13989{
13990static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13991test_array [0] = 0
13992
13993  ;
13994  return 0;
13995}
13996_ACEOF
13997rm -f conftest.$ac_objext
13998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999  (eval $ac_compile) 2>conftest.er1
14000  ac_status=$?
14001  grep -v '^ *+' conftest.er1 >conftest.err
14002  rm -f conftest.er1
14003  cat conftest.err >&5
14004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005  (exit $ac_status); } &&
14006	 { ac_try='test -z "$ac_c_werror_flag"
14007			 || test ! -s conftest.err'
14008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009  (eval $ac_try) 2>&5
14010  ac_status=$?
14011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012  (exit $ac_status); }; } &&
14013	 { ac_try='test -s conftest.$ac_objext'
14014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015  (eval $ac_try) 2>&5
14016  ac_status=$?
14017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018  (exit $ac_status); }; }; then
14019  ac_hi=$ac_mid; break
14020else
14021  echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
14024ac_lo=`expr $ac_mid + 1`
14025		    if test $ac_lo -le $ac_mid; then
14026		      ac_lo= ac_hi=
14027		      break
14028		    fi
14029		    ac_mid=`expr 2 '*' $ac_mid + 1`
14030fi
14031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14032  done
14033else
14034  echo "$as_me: failed program was:" >&5
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
14037cat >conftest.$ac_ext <<_ACEOF
14038/* confdefs.h.  */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h.  */
14043$ac_includes_default
14044int
14045main ()
14046{
14047static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14048test_array [0] = 0
14049
14050  ;
14051  return 0;
14052}
14053_ACEOF
14054rm -f conftest.$ac_objext
14055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056  (eval $ac_compile) 2>conftest.er1
14057  ac_status=$?
14058  grep -v '^ *+' conftest.er1 >conftest.err
14059  rm -f conftest.er1
14060  cat conftest.err >&5
14061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062  (exit $ac_status); } &&
14063	 { ac_try='test -z "$ac_c_werror_flag"
14064			 || test ! -s conftest.err'
14065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066  (eval $ac_try) 2>&5
14067  ac_status=$?
14068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069  (exit $ac_status); }; } &&
14070	 { ac_try='test -s conftest.$ac_objext'
14071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072  (eval $ac_try) 2>&5
14073  ac_status=$?
14074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075  (exit $ac_status); }; }; then
14076  ac_hi=-1 ac_mid=-1
14077  while :; do
14078    cat >conftest.$ac_ext <<_ACEOF
14079/* confdefs.h.  */
14080_ACEOF
14081cat confdefs.h >>conftest.$ac_ext
14082cat >>conftest.$ac_ext <<_ACEOF
14083/* end confdefs.h.  */
14084$ac_includes_default
14085int
14086main ()
14087{
14088static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14089test_array [0] = 0
14090
14091  ;
14092  return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097  (eval $ac_compile) 2>conftest.er1
14098  ac_status=$?
14099  grep -v '^ *+' conftest.er1 >conftest.err
14100  rm -f conftest.er1
14101  cat conftest.err >&5
14102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103  (exit $ac_status); } &&
14104	 { ac_try='test -z "$ac_c_werror_flag"
14105			 || test ! -s conftest.err'
14106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107  (eval $ac_try) 2>&5
14108  ac_status=$?
14109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110  (exit $ac_status); }; } &&
14111	 { ac_try='test -s conftest.$ac_objext'
14112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113  (eval $ac_try) 2>&5
14114  ac_status=$?
14115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116  (exit $ac_status); }; }; then
14117  ac_lo=$ac_mid; break
14118else
14119  echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122ac_hi=`expr '(' $ac_mid ')' - 1`
14123		       if test $ac_mid -le $ac_hi; then
14124			 ac_lo= ac_hi=
14125			 break
14126		       fi
14127		       ac_mid=`expr 2 '*' $ac_mid`
14128fi
14129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14130  done
14131else
14132  echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135ac_lo= ac_hi=
14136fi
14137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14138fi
14139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140# Binary search between lo and hi bounds.
14141while test "x$ac_lo" != "x$ac_hi"; do
14142  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14143  cat >conftest.$ac_ext <<_ACEOF
14144/* confdefs.h.  */
14145_ACEOF
14146cat confdefs.h >>conftest.$ac_ext
14147cat >>conftest.$ac_ext <<_ACEOF
14148/* end confdefs.h.  */
14149$ac_includes_default
14150int
14151main ()
14152{
14153static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14154test_array [0] = 0
14155
14156  ;
14157  return 0;
14158}
14159_ACEOF
14160rm -f conftest.$ac_objext
14161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162  (eval $ac_compile) 2>conftest.er1
14163  ac_status=$?
14164  grep -v '^ *+' conftest.er1 >conftest.err
14165  rm -f conftest.er1
14166  cat conftest.err >&5
14167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168  (exit $ac_status); } &&
14169	 { ac_try='test -z "$ac_c_werror_flag"
14170			 || test ! -s conftest.err'
14171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172  (eval $ac_try) 2>&5
14173  ac_status=$?
14174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175  (exit $ac_status); }; } &&
14176	 { ac_try='test -s conftest.$ac_objext'
14177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178  (eval $ac_try) 2>&5
14179  ac_status=$?
14180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181  (exit $ac_status); }; }; then
14182  ac_hi=$ac_mid
14183else
14184  echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187ac_lo=`expr '(' $ac_mid ')' + 1`
14188fi
14189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14190done
14191case $ac_lo in
14192?*) ac_cv_sizeof_void_p=$ac_lo;;
14193'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14194echo "$as_me: error: in \`$ac_pwd':" >&2;}
14195{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14196See \`config.log' for more details." >&5
14197echo "$as_me: error: cannot compute sizeof (void *), 77
14198See \`config.log' for more details." >&2;}
14199   { (exit 1); exit 1; }; }; } ;;
14200esac
14201else
14202  if test "$cross_compiling" = yes; then
14203  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14204echo "$as_me: error: in \`$ac_pwd':" >&2;}
14205{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14206See \`config.log' for more details." >&5
14207echo "$as_me: error: cannot run test program while cross compiling
14208See \`config.log' for more details." >&2;}
14209   { (exit 1); exit 1; }; }; }
14210else
14211  cat >conftest.$ac_ext <<_ACEOF
14212/* confdefs.h.  */
14213_ACEOF
14214cat confdefs.h >>conftest.$ac_ext
14215cat >>conftest.$ac_ext <<_ACEOF
14216/* end confdefs.h.  */
14217$ac_includes_default
14218long longval () { return (long) (sizeof (void *)); }
14219unsigned long ulongval () { return (long) (sizeof (void *)); }
14220#include <stdio.h>
14221#include <stdlib.h>
14222int
14223main ()
14224{
14225
14226  FILE *f = fopen ("conftest.val", "w");
14227  if (! f)
14228    exit (1);
14229  if (((long) (sizeof (void *))) < 0)
14230    {
14231      long i = longval ();
14232      if (i != ((long) (sizeof (void *))))
14233	exit (1);
14234      fprintf (f, "%ld\n", i);
14235    }
14236  else
14237    {
14238      unsigned long i = ulongval ();
14239      if (i != ((long) (sizeof (void *))))
14240	exit (1);
14241      fprintf (f, "%lu\n", i);
14242    }
14243  exit (ferror (f) || fclose (f) != 0);
14244
14245  ;
14246  return 0;
14247}
14248_ACEOF
14249rm -f conftest$ac_exeext
14250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251  (eval $ac_link) 2>&5
14252  ac_status=$?
14253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256  (eval $ac_try) 2>&5
14257  ac_status=$?
14258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259  (exit $ac_status); }; }; then
14260  ac_cv_sizeof_void_p=`cat conftest.val`
14261else
14262  echo "$as_me: program exited with status $ac_status" >&5
14263echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266( exit $ac_status )
14267{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14268echo "$as_me: error: in \`$ac_pwd':" >&2;}
14269{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14270See \`config.log' for more details." >&5
14271echo "$as_me: error: cannot compute sizeof (void *), 77
14272See \`config.log' for more details." >&2;}
14273   { (exit 1); exit 1; }; }; }
14274fi
14275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14276fi
14277fi
14278rm -f conftest.val
14279else
14280  ac_cv_sizeof_void_p=0
14281fi
14282fi
14283echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14284echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14285cat >>confdefs.h <<_ACEOF
14286#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14287_ACEOF
14288
14289 ;;
14290esac
14291
14292# Lacking an uint64_t?  Test size of long
14293case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14294  stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14295echo $ECHO_N "checking for long... $ECHO_C" >&6
14296if test "${ac_cv_type_long+set}" = set; then
14297  echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
14299  cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h.  */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h.  */
14305$ac_includes_default
14306int
14307main ()
14308{
14309if ((long *) 0)
14310  return 0;
14311if (sizeof (long))
14312  return 0;
14313  ;
14314  return 0;
14315}
14316_ACEOF
14317rm -f conftest.$ac_objext
14318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319  (eval $ac_compile) 2>conftest.er1
14320  ac_status=$?
14321  grep -v '^ *+' conftest.er1 >conftest.err
14322  rm -f conftest.er1
14323  cat conftest.err >&5
14324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325  (exit $ac_status); } &&
14326	 { ac_try='test -z "$ac_c_werror_flag"
14327			 || test ! -s conftest.err'
14328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329  (eval $ac_try) 2>&5
14330  ac_status=$?
14331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332  (exit $ac_status); }; } &&
14333	 { ac_try='test -s conftest.$ac_objext'
14334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335  (eval $ac_try) 2>&5
14336  ac_status=$?
14337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338  (exit $ac_status); }; }; then
14339  ac_cv_type_long=yes
14340else
14341  echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344ac_cv_type_long=no
14345fi
14346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14347fi
14348echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14349echo "${ECHO_T}$ac_cv_type_long" >&6
14350
14351echo "$as_me:$LINENO: checking size of long" >&5
14352echo $ECHO_N "checking size of long... $ECHO_C" >&6
14353if test "${ac_cv_sizeof_long+set}" = set; then
14354  echo $ECHO_N "(cached) $ECHO_C" >&6
14355else
14356  if test "$ac_cv_type_long" = yes; then
14357  # The cast to unsigned long works around a bug in the HP C Compiler
14358  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14359  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14360  # This bug is HP SR number 8606223364.
14361  if test "$cross_compiling" = yes; then
14362  # Depending upon the size, compute the lo and hi bounds.
14363cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h.  */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
14368/* end confdefs.h.  */
14369$ac_includes_default
14370int
14371main ()
14372{
14373static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14374test_array [0] = 0
14375
14376  ;
14377  return 0;
14378}
14379_ACEOF
14380rm -f conftest.$ac_objext
14381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382  (eval $ac_compile) 2>conftest.er1
14383  ac_status=$?
14384  grep -v '^ *+' conftest.er1 >conftest.err
14385  rm -f conftest.er1
14386  cat conftest.err >&5
14387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388  (exit $ac_status); } &&
14389	 { ac_try='test -z "$ac_c_werror_flag"
14390			 || test ! -s conftest.err'
14391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392  (eval $ac_try) 2>&5
14393  ac_status=$?
14394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395  (exit $ac_status); }; } &&
14396	 { ac_try='test -s conftest.$ac_objext'
14397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398  (eval $ac_try) 2>&5
14399  ac_status=$?
14400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401  (exit $ac_status); }; }; then
14402  ac_lo=0 ac_mid=0
14403  while :; do
14404    cat >conftest.$ac_ext <<_ACEOF
14405/* confdefs.h.  */
14406_ACEOF
14407cat confdefs.h >>conftest.$ac_ext
14408cat >>conftest.$ac_ext <<_ACEOF
14409/* end confdefs.h.  */
14410$ac_includes_default
14411int
14412main ()
14413{
14414static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14415test_array [0] = 0
14416
14417  ;
14418  return 0;
14419}
14420_ACEOF
14421rm -f conftest.$ac_objext
14422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14423  (eval $ac_compile) 2>conftest.er1
14424  ac_status=$?
14425  grep -v '^ *+' conftest.er1 >conftest.err
14426  rm -f conftest.er1
14427  cat conftest.err >&5
14428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429  (exit $ac_status); } &&
14430	 { ac_try='test -z "$ac_c_werror_flag"
14431			 || test ! -s conftest.err'
14432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433  (eval $ac_try) 2>&5
14434  ac_status=$?
14435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436  (exit $ac_status); }; } &&
14437	 { ac_try='test -s conftest.$ac_objext'
14438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439  (eval $ac_try) 2>&5
14440  ac_status=$?
14441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442  (exit $ac_status); }; }; then
14443  ac_hi=$ac_mid; break
14444else
14445  echo "$as_me: failed program was:" >&5
14446sed 's/^/| /' conftest.$ac_ext >&5
14447
14448ac_lo=`expr $ac_mid + 1`
14449		    if test $ac_lo -le $ac_mid; then
14450		      ac_lo= ac_hi=
14451		      break
14452		    fi
14453		    ac_mid=`expr 2 '*' $ac_mid + 1`
14454fi
14455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14456  done
14457else
14458  echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h.  */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h.  */
14467$ac_includes_default
14468int
14469main ()
14470{
14471static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14472test_array [0] = 0
14473
14474  ;
14475  return 0;
14476}
14477_ACEOF
14478rm -f conftest.$ac_objext
14479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480  (eval $ac_compile) 2>conftest.er1
14481  ac_status=$?
14482  grep -v '^ *+' conftest.er1 >conftest.err
14483  rm -f conftest.er1
14484  cat conftest.err >&5
14485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486  (exit $ac_status); } &&
14487	 { ac_try='test -z "$ac_c_werror_flag"
14488			 || test ! -s conftest.err'
14489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490  (eval $ac_try) 2>&5
14491  ac_status=$?
14492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493  (exit $ac_status); }; } &&
14494	 { ac_try='test -s conftest.$ac_objext'
14495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496  (eval $ac_try) 2>&5
14497  ac_status=$?
14498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499  (exit $ac_status); }; }; then
14500  ac_hi=-1 ac_mid=-1
14501  while :; do
14502    cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h.  */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h.  */
14508$ac_includes_default
14509int
14510main ()
14511{
14512static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14513test_array [0] = 0
14514
14515  ;
14516  return 0;
14517}
14518_ACEOF
14519rm -f conftest.$ac_objext
14520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521  (eval $ac_compile) 2>conftest.er1
14522  ac_status=$?
14523  grep -v '^ *+' conftest.er1 >conftest.err
14524  rm -f conftest.er1
14525  cat conftest.err >&5
14526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527  (exit $ac_status); } &&
14528	 { ac_try='test -z "$ac_c_werror_flag"
14529			 || test ! -s conftest.err'
14530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531  (eval $ac_try) 2>&5
14532  ac_status=$?
14533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534  (exit $ac_status); }; } &&
14535	 { ac_try='test -s conftest.$ac_objext'
14536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537  (eval $ac_try) 2>&5
14538  ac_status=$?
14539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540  (exit $ac_status); }; }; then
14541  ac_lo=$ac_mid; break
14542else
14543  echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546ac_hi=`expr '(' $ac_mid ')' - 1`
14547		       if test $ac_mid -le $ac_hi; then
14548			 ac_lo= ac_hi=
14549			 break
14550		       fi
14551		       ac_mid=`expr 2 '*' $ac_mid`
14552fi
14553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554  done
14555else
14556  echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559ac_lo= ac_hi=
14560fi
14561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14562fi
14563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564# Binary search between lo and hi bounds.
14565while test "x$ac_lo" != "x$ac_hi"; do
14566  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14567  cat >conftest.$ac_ext <<_ACEOF
14568/* confdefs.h.  */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
14572/* end confdefs.h.  */
14573$ac_includes_default
14574int
14575main ()
14576{
14577static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14578test_array [0] = 0
14579
14580  ;
14581  return 0;
14582}
14583_ACEOF
14584rm -f conftest.$ac_objext
14585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586  (eval $ac_compile) 2>conftest.er1
14587  ac_status=$?
14588  grep -v '^ *+' conftest.er1 >conftest.err
14589  rm -f conftest.er1
14590  cat conftest.err >&5
14591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592  (exit $ac_status); } &&
14593	 { ac_try='test -z "$ac_c_werror_flag"
14594			 || test ! -s conftest.err'
14595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596  (eval $ac_try) 2>&5
14597  ac_status=$?
14598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599  (exit $ac_status); }; } &&
14600	 { ac_try='test -s conftest.$ac_objext'
14601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602  (eval $ac_try) 2>&5
14603  ac_status=$?
14604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605  (exit $ac_status); }; }; then
14606  ac_hi=$ac_mid
14607else
14608  echo "$as_me: failed program was:" >&5
14609sed 's/^/| /' conftest.$ac_ext >&5
14610
14611ac_lo=`expr '(' $ac_mid ')' + 1`
14612fi
14613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14614done
14615case $ac_lo in
14616?*) ac_cv_sizeof_long=$ac_lo;;
14617'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14618echo "$as_me: error: in \`$ac_pwd':" >&2;}
14619{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14620See \`config.log' for more details." >&5
14621echo "$as_me: error: cannot compute sizeof (long), 77
14622See \`config.log' for more details." >&2;}
14623   { (exit 1); exit 1; }; }; } ;;
14624esac
14625else
14626  if test "$cross_compiling" = yes; then
14627  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14628echo "$as_me: error: in \`$ac_pwd':" >&2;}
14629{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14630See \`config.log' for more details." >&5
14631echo "$as_me: error: cannot run test program while cross compiling
14632See \`config.log' for more details." >&2;}
14633   { (exit 1); exit 1; }; }; }
14634else
14635  cat >conftest.$ac_ext <<_ACEOF
14636/* confdefs.h.  */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h.  */
14641$ac_includes_default
14642long longval () { return (long) (sizeof (long)); }
14643unsigned long ulongval () { return (long) (sizeof (long)); }
14644#include <stdio.h>
14645#include <stdlib.h>
14646int
14647main ()
14648{
14649
14650  FILE *f = fopen ("conftest.val", "w");
14651  if (! f)
14652    exit (1);
14653  if (((long) (sizeof (long))) < 0)
14654    {
14655      long i = longval ();
14656      if (i != ((long) (sizeof (long))))
14657	exit (1);
14658      fprintf (f, "%ld\n", i);
14659    }
14660  else
14661    {
14662      unsigned long i = ulongval ();
14663      if (i != ((long) (sizeof (long))))
14664	exit (1);
14665      fprintf (f, "%lu\n", i);
14666    }
14667  exit (ferror (f) || fclose (f) != 0);
14668
14669  ;
14670  return 0;
14671}
14672_ACEOF
14673rm -f conftest$ac_exeext
14674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675  (eval $ac_link) 2>&5
14676  ac_status=$?
14677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680  (eval $ac_try) 2>&5
14681  ac_status=$?
14682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683  (exit $ac_status); }; }; then
14684  ac_cv_sizeof_long=`cat conftest.val`
14685else
14686  echo "$as_me: program exited with status $ac_status" >&5
14687echo "$as_me: failed program was:" >&5
14688sed 's/^/| /' conftest.$ac_ext >&5
14689
14690( exit $ac_status )
14691{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14692echo "$as_me: error: in \`$ac_pwd':" >&2;}
14693{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14694See \`config.log' for more details." >&5
14695echo "$as_me: error: cannot compute sizeof (long), 77
14696See \`config.log' for more details." >&2;}
14697   { (exit 1); exit 1; }; }; }
14698fi
14699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14700fi
14701fi
14702rm -f conftest.val
14703else
14704  ac_cv_sizeof_long=0
14705fi
14706fi
14707echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14708echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14709cat >>confdefs.h <<_ACEOF
14710#define SIZEOF_LONG $ac_cv_sizeof_long
14711_ACEOF
14712
14713 ;;
14714esac
14715
14716if test $acx_cv_header_stdint = stddef.h; then
14717  # Lacking a good header?  Test size of everything and deduce all types.
14718  echo "$as_me:$LINENO: checking for int" >&5
14719echo $ECHO_N "checking for int... $ECHO_C" >&6
14720if test "${ac_cv_type_int+set}" = set; then
14721  echo $ECHO_N "(cached) $ECHO_C" >&6
14722else
14723  cat >conftest.$ac_ext <<_ACEOF
14724/* confdefs.h.  */
14725_ACEOF
14726cat confdefs.h >>conftest.$ac_ext
14727cat >>conftest.$ac_ext <<_ACEOF
14728/* end confdefs.h.  */
14729$ac_includes_default
14730int
14731main ()
14732{
14733if ((int *) 0)
14734  return 0;
14735if (sizeof (int))
14736  return 0;
14737  ;
14738  return 0;
14739}
14740_ACEOF
14741rm -f conftest.$ac_objext
14742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743  (eval $ac_compile) 2>conftest.er1
14744  ac_status=$?
14745  grep -v '^ *+' conftest.er1 >conftest.err
14746  rm -f conftest.er1
14747  cat conftest.err >&5
14748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749  (exit $ac_status); } &&
14750	 { ac_try='test -z "$ac_c_werror_flag"
14751			 || test ! -s conftest.err'
14752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753  (eval $ac_try) 2>&5
14754  ac_status=$?
14755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756  (exit $ac_status); }; } &&
14757	 { ac_try='test -s conftest.$ac_objext'
14758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759  (eval $ac_try) 2>&5
14760  ac_status=$?
14761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762  (exit $ac_status); }; }; then
14763  ac_cv_type_int=yes
14764else
14765  echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
14768ac_cv_type_int=no
14769fi
14770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14771fi
14772echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14773echo "${ECHO_T}$ac_cv_type_int" >&6
14774
14775echo "$as_me:$LINENO: checking size of int" >&5
14776echo $ECHO_N "checking size of int... $ECHO_C" >&6
14777if test "${ac_cv_sizeof_int+set}" = set; then
14778  echo $ECHO_N "(cached) $ECHO_C" >&6
14779else
14780  if test "$ac_cv_type_int" = yes; then
14781  # The cast to unsigned long works around a bug in the HP C Compiler
14782  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14783  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14784  # This bug is HP SR number 8606223364.
14785  if test "$cross_compiling" = yes; then
14786  # Depending upon the size, compute the lo and hi bounds.
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h.  */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h.  */
14793$ac_includes_default
14794int
14795main ()
14796{
14797static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14798test_array [0] = 0
14799
14800  ;
14801  return 0;
14802}
14803_ACEOF
14804rm -f conftest.$ac_objext
14805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806  (eval $ac_compile) 2>conftest.er1
14807  ac_status=$?
14808  grep -v '^ *+' conftest.er1 >conftest.err
14809  rm -f conftest.er1
14810  cat conftest.err >&5
14811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812  (exit $ac_status); } &&
14813	 { ac_try='test -z "$ac_c_werror_flag"
14814			 || test ! -s conftest.err'
14815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816  (eval $ac_try) 2>&5
14817  ac_status=$?
14818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819  (exit $ac_status); }; } &&
14820	 { ac_try='test -s conftest.$ac_objext'
14821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822  (eval $ac_try) 2>&5
14823  ac_status=$?
14824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825  (exit $ac_status); }; }; then
14826  ac_lo=0 ac_mid=0
14827  while :; do
14828    cat >conftest.$ac_ext <<_ACEOF
14829/* confdefs.h.  */
14830_ACEOF
14831cat confdefs.h >>conftest.$ac_ext
14832cat >>conftest.$ac_ext <<_ACEOF
14833/* end confdefs.h.  */
14834$ac_includes_default
14835int
14836main ()
14837{
14838static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14839test_array [0] = 0
14840
14841  ;
14842  return 0;
14843}
14844_ACEOF
14845rm -f conftest.$ac_objext
14846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847  (eval $ac_compile) 2>conftest.er1
14848  ac_status=$?
14849  grep -v '^ *+' conftest.er1 >conftest.err
14850  rm -f conftest.er1
14851  cat conftest.err >&5
14852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853  (exit $ac_status); } &&
14854	 { ac_try='test -z "$ac_c_werror_flag"
14855			 || test ! -s conftest.err'
14856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857  (eval $ac_try) 2>&5
14858  ac_status=$?
14859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860  (exit $ac_status); }; } &&
14861	 { ac_try='test -s conftest.$ac_objext'
14862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863  (eval $ac_try) 2>&5
14864  ac_status=$?
14865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866  (exit $ac_status); }; }; then
14867  ac_hi=$ac_mid; break
14868else
14869  echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872ac_lo=`expr $ac_mid + 1`
14873		    if test $ac_lo -le $ac_mid; then
14874		      ac_lo= ac_hi=
14875		      break
14876		    fi
14877		    ac_mid=`expr 2 '*' $ac_mid + 1`
14878fi
14879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14880  done
14881else
14882  echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
14885cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h.  */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h.  */
14891$ac_includes_default
14892int
14893main ()
14894{
14895static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14896test_array [0] = 0
14897
14898  ;
14899  return 0;
14900}
14901_ACEOF
14902rm -f conftest.$ac_objext
14903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904  (eval $ac_compile) 2>conftest.er1
14905  ac_status=$?
14906  grep -v '^ *+' conftest.er1 >conftest.err
14907  rm -f conftest.er1
14908  cat conftest.err >&5
14909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910  (exit $ac_status); } &&
14911	 { ac_try='test -z "$ac_c_werror_flag"
14912			 || test ! -s conftest.err'
14913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914  (eval $ac_try) 2>&5
14915  ac_status=$?
14916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917  (exit $ac_status); }; } &&
14918	 { ac_try='test -s conftest.$ac_objext'
14919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920  (eval $ac_try) 2>&5
14921  ac_status=$?
14922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923  (exit $ac_status); }; }; then
14924  ac_hi=-1 ac_mid=-1
14925  while :; do
14926    cat >conftest.$ac_ext <<_ACEOF
14927/* confdefs.h.  */
14928_ACEOF
14929cat confdefs.h >>conftest.$ac_ext
14930cat >>conftest.$ac_ext <<_ACEOF
14931/* end confdefs.h.  */
14932$ac_includes_default
14933int
14934main ()
14935{
14936static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14937test_array [0] = 0
14938
14939  ;
14940  return 0;
14941}
14942_ACEOF
14943rm -f conftest.$ac_objext
14944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14945  (eval $ac_compile) 2>conftest.er1
14946  ac_status=$?
14947  grep -v '^ *+' conftest.er1 >conftest.err
14948  rm -f conftest.er1
14949  cat conftest.err >&5
14950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951  (exit $ac_status); } &&
14952	 { ac_try='test -z "$ac_c_werror_flag"
14953			 || test ! -s conftest.err'
14954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955  (eval $ac_try) 2>&5
14956  ac_status=$?
14957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958  (exit $ac_status); }; } &&
14959	 { ac_try='test -s conftest.$ac_objext'
14960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961  (eval $ac_try) 2>&5
14962  ac_status=$?
14963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964  (exit $ac_status); }; }; then
14965  ac_lo=$ac_mid; break
14966else
14967  echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_hi=`expr '(' $ac_mid ')' - 1`
14971		       if test $ac_mid -le $ac_hi; then
14972			 ac_lo= ac_hi=
14973			 break
14974		       fi
14975		       ac_mid=`expr 2 '*' $ac_mid`
14976fi
14977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978  done
14979else
14980  echo "$as_me: failed program was:" >&5
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
14983ac_lo= ac_hi=
14984fi
14985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14986fi
14987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14988# Binary search between lo and hi bounds.
14989while test "x$ac_lo" != "x$ac_hi"; do
14990  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14991  cat >conftest.$ac_ext <<_ACEOF
14992/* confdefs.h.  */
14993_ACEOF
14994cat confdefs.h >>conftest.$ac_ext
14995cat >>conftest.$ac_ext <<_ACEOF
14996/* end confdefs.h.  */
14997$ac_includes_default
14998int
14999main ()
15000{
15001static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15002test_array [0] = 0
15003
15004  ;
15005  return 0;
15006}
15007_ACEOF
15008rm -f conftest.$ac_objext
15009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010  (eval $ac_compile) 2>conftest.er1
15011  ac_status=$?
15012  grep -v '^ *+' conftest.er1 >conftest.err
15013  rm -f conftest.er1
15014  cat conftest.err >&5
15015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016  (exit $ac_status); } &&
15017	 { ac_try='test -z "$ac_c_werror_flag"
15018			 || test ! -s conftest.err'
15019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020  (eval $ac_try) 2>&5
15021  ac_status=$?
15022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023  (exit $ac_status); }; } &&
15024	 { ac_try='test -s conftest.$ac_objext'
15025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026  (eval $ac_try) 2>&5
15027  ac_status=$?
15028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029  (exit $ac_status); }; }; then
15030  ac_hi=$ac_mid
15031else
15032  echo "$as_me: failed program was:" >&5
15033sed 's/^/| /' conftest.$ac_ext >&5
15034
15035ac_lo=`expr '(' $ac_mid ')' + 1`
15036fi
15037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15038done
15039case $ac_lo in
15040?*) ac_cv_sizeof_int=$ac_lo;;
15041'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15042echo "$as_me: error: in \`$ac_pwd':" >&2;}
15043{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15044See \`config.log' for more details." >&5
15045echo "$as_me: error: cannot compute sizeof (int), 77
15046See \`config.log' for more details." >&2;}
15047   { (exit 1); exit 1; }; }; } ;;
15048esac
15049else
15050  if test "$cross_compiling" = yes; then
15051  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15052echo "$as_me: error: in \`$ac_pwd':" >&2;}
15053{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15054See \`config.log' for more details." >&5
15055echo "$as_me: error: cannot run test program while cross compiling
15056See \`config.log' for more details." >&2;}
15057   { (exit 1); exit 1; }; }; }
15058else
15059  cat >conftest.$ac_ext <<_ACEOF
15060/* confdefs.h.  */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h.  */
15065$ac_includes_default
15066long longval () { return (long) (sizeof (int)); }
15067unsigned long ulongval () { return (long) (sizeof (int)); }
15068#include <stdio.h>
15069#include <stdlib.h>
15070int
15071main ()
15072{
15073
15074  FILE *f = fopen ("conftest.val", "w");
15075  if (! f)
15076    exit (1);
15077  if (((long) (sizeof (int))) < 0)
15078    {
15079      long i = longval ();
15080      if (i != ((long) (sizeof (int))))
15081	exit (1);
15082      fprintf (f, "%ld\n", i);
15083    }
15084  else
15085    {
15086      unsigned long i = ulongval ();
15087      if (i != ((long) (sizeof (int))))
15088	exit (1);
15089      fprintf (f, "%lu\n", i);
15090    }
15091  exit (ferror (f) || fclose (f) != 0);
15092
15093  ;
15094  return 0;
15095}
15096_ACEOF
15097rm -f conftest$ac_exeext
15098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15099  (eval $ac_link) 2>&5
15100  ac_status=$?
15101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104  (eval $ac_try) 2>&5
15105  ac_status=$?
15106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107  (exit $ac_status); }; }; then
15108  ac_cv_sizeof_int=`cat conftest.val`
15109else
15110  echo "$as_me: program exited with status $ac_status" >&5
15111echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114( exit $ac_status )
15115{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15116echo "$as_me: error: in \`$ac_pwd':" >&2;}
15117{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15118See \`config.log' for more details." >&5
15119echo "$as_me: error: cannot compute sizeof (int), 77
15120See \`config.log' for more details." >&2;}
15121   { (exit 1); exit 1; }; }; }
15122fi
15123rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15124fi
15125fi
15126rm -f conftest.val
15127else
15128  ac_cv_sizeof_int=0
15129fi
15130fi
15131echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15132echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15133cat >>confdefs.h <<_ACEOF
15134#define SIZEOF_INT $ac_cv_sizeof_int
15135_ACEOF
15136
15137
15138  echo "$as_me:$LINENO: checking for short" >&5
15139echo $ECHO_N "checking for short... $ECHO_C" >&6
15140if test "${ac_cv_type_short+set}" = set; then
15141  echo $ECHO_N "(cached) $ECHO_C" >&6
15142else
15143  cat >conftest.$ac_ext <<_ACEOF
15144/* confdefs.h.  */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
15148/* end confdefs.h.  */
15149$ac_includes_default
15150int
15151main ()
15152{
15153if ((short *) 0)
15154  return 0;
15155if (sizeof (short))
15156  return 0;
15157  ;
15158  return 0;
15159}
15160_ACEOF
15161rm -f conftest.$ac_objext
15162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163  (eval $ac_compile) 2>conftest.er1
15164  ac_status=$?
15165  grep -v '^ *+' conftest.er1 >conftest.err
15166  rm -f conftest.er1
15167  cat conftest.err >&5
15168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169  (exit $ac_status); } &&
15170	 { ac_try='test -z "$ac_c_werror_flag"
15171			 || test ! -s conftest.err'
15172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173  (eval $ac_try) 2>&5
15174  ac_status=$?
15175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176  (exit $ac_status); }; } &&
15177	 { ac_try='test -s conftest.$ac_objext'
15178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179  (eval $ac_try) 2>&5
15180  ac_status=$?
15181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182  (exit $ac_status); }; }; then
15183  ac_cv_type_short=yes
15184else
15185  echo "$as_me: failed program was:" >&5
15186sed 's/^/| /' conftest.$ac_ext >&5
15187
15188ac_cv_type_short=no
15189fi
15190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15191fi
15192echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15193echo "${ECHO_T}$ac_cv_type_short" >&6
15194
15195echo "$as_me:$LINENO: checking size of short" >&5
15196echo $ECHO_N "checking size of short... $ECHO_C" >&6
15197if test "${ac_cv_sizeof_short+set}" = set; then
15198  echo $ECHO_N "(cached) $ECHO_C" >&6
15199else
15200  if test "$ac_cv_type_short" = yes; then
15201  # The cast to unsigned long works around a bug in the HP C Compiler
15202  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15203  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15204  # This bug is HP SR number 8606223364.
15205  if test "$cross_compiling" = yes; then
15206  # Depending upon the size, compute the lo and hi bounds.
15207cat >conftest.$ac_ext <<_ACEOF
15208/* confdefs.h.  */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h.  */
15213$ac_includes_default
15214int
15215main ()
15216{
15217static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15218test_array [0] = 0
15219
15220  ;
15221  return 0;
15222}
15223_ACEOF
15224rm -f conftest.$ac_objext
15225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15226  (eval $ac_compile) 2>conftest.er1
15227  ac_status=$?
15228  grep -v '^ *+' conftest.er1 >conftest.err
15229  rm -f conftest.er1
15230  cat conftest.err >&5
15231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232  (exit $ac_status); } &&
15233	 { ac_try='test -z "$ac_c_werror_flag"
15234			 || test ! -s conftest.err'
15235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236  (eval $ac_try) 2>&5
15237  ac_status=$?
15238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239  (exit $ac_status); }; } &&
15240	 { ac_try='test -s conftest.$ac_objext'
15241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242  (eval $ac_try) 2>&5
15243  ac_status=$?
15244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245  (exit $ac_status); }; }; then
15246  ac_lo=0 ac_mid=0
15247  while :; do
15248    cat >conftest.$ac_ext <<_ACEOF
15249/* confdefs.h.  */
15250_ACEOF
15251cat confdefs.h >>conftest.$ac_ext
15252cat >>conftest.$ac_ext <<_ACEOF
15253/* end confdefs.h.  */
15254$ac_includes_default
15255int
15256main ()
15257{
15258static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15259test_array [0] = 0
15260
15261  ;
15262  return 0;
15263}
15264_ACEOF
15265rm -f conftest.$ac_objext
15266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267  (eval $ac_compile) 2>conftest.er1
15268  ac_status=$?
15269  grep -v '^ *+' conftest.er1 >conftest.err
15270  rm -f conftest.er1
15271  cat conftest.err >&5
15272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273  (exit $ac_status); } &&
15274	 { ac_try='test -z "$ac_c_werror_flag"
15275			 || test ! -s conftest.err'
15276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277  (eval $ac_try) 2>&5
15278  ac_status=$?
15279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280  (exit $ac_status); }; } &&
15281	 { ac_try='test -s conftest.$ac_objext'
15282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283  (eval $ac_try) 2>&5
15284  ac_status=$?
15285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286  (exit $ac_status); }; }; then
15287  ac_hi=$ac_mid; break
15288else
15289  echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292ac_lo=`expr $ac_mid + 1`
15293		    if test $ac_lo -le $ac_mid; then
15294		      ac_lo= ac_hi=
15295		      break
15296		    fi
15297		    ac_mid=`expr 2 '*' $ac_mid + 1`
15298fi
15299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15300  done
15301else
15302  echo "$as_me: failed program was:" >&5
15303sed 's/^/| /' conftest.$ac_ext >&5
15304
15305cat >conftest.$ac_ext <<_ACEOF
15306/* confdefs.h.  */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h.  */
15311$ac_includes_default
15312int
15313main ()
15314{
15315static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15316test_array [0] = 0
15317
15318  ;
15319  return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext
15323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15324  (eval $ac_compile) 2>conftest.er1
15325  ac_status=$?
15326  grep -v '^ *+' conftest.er1 >conftest.err
15327  rm -f conftest.er1
15328  cat conftest.err >&5
15329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330  (exit $ac_status); } &&
15331	 { ac_try='test -z "$ac_c_werror_flag"
15332			 || test ! -s conftest.err'
15333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334  (eval $ac_try) 2>&5
15335  ac_status=$?
15336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337  (exit $ac_status); }; } &&
15338	 { ac_try='test -s conftest.$ac_objext'
15339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340  (eval $ac_try) 2>&5
15341  ac_status=$?
15342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343  (exit $ac_status); }; }; then
15344  ac_hi=-1 ac_mid=-1
15345  while :; do
15346    cat >conftest.$ac_ext <<_ACEOF
15347/* confdefs.h.  */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
15351/* end confdefs.h.  */
15352$ac_includes_default
15353int
15354main ()
15355{
15356static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15357test_array [0] = 0
15358
15359  ;
15360  return 0;
15361}
15362_ACEOF
15363rm -f conftest.$ac_objext
15364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15365  (eval $ac_compile) 2>conftest.er1
15366  ac_status=$?
15367  grep -v '^ *+' conftest.er1 >conftest.err
15368  rm -f conftest.er1
15369  cat conftest.err >&5
15370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371  (exit $ac_status); } &&
15372	 { ac_try='test -z "$ac_c_werror_flag"
15373			 || test ! -s conftest.err'
15374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375  (eval $ac_try) 2>&5
15376  ac_status=$?
15377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378  (exit $ac_status); }; } &&
15379	 { ac_try='test -s conftest.$ac_objext'
15380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381  (eval $ac_try) 2>&5
15382  ac_status=$?
15383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384  (exit $ac_status); }; }; then
15385  ac_lo=$ac_mid; break
15386else
15387  echo "$as_me: failed program was:" >&5
15388sed 's/^/| /' conftest.$ac_ext >&5
15389
15390ac_hi=`expr '(' $ac_mid ')' - 1`
15391		       if test $ac_mid -le $ac_hi; then
15392			 ac_lo= ac_hi=
15393			 break
15394		       fi
15395		       ac_mid=`expr 2 '*' $ac_mid`
15396fi
15397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15398  done
15399else
15400  echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_lo= ac_hi=
15404fi
15405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15406fi
15407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15408# Binary search between lo and hi bounds.
15409while test "x$ac_lo" != "x$ac_hi"; do
15410  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15411  cat >conftest.$ac_ext <<_ACEOF
15412/* confdefs.h.  */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h.  */
15417$ac_includes_default
15418int
15419main ()
15420{
15421static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15422test_array [0] = 0
15423
15424  ;
15425  return 0;
15426}
15427_ACEOF
15428rm -f conftest.$ac_objext
15429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15430  (eval $ac_compile) 2>conftest.er1
15431  ac_status=$?
15432  grep -v '^ *+' conftest.er1 >conftest.err
15433  rm -f conftest.er1
15434  cat conftest.err >&5
15435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436  (exit $ac_status); } &&
15437	 { ac_try='test -z "$ac_c_werror_flag"
15438			 || test ! -s conftest.err'
15439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440  (eval $ac_try) 2>&5
15441  ac_status=$?
15442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443  (exit $ac_status); }; } &&
15444	 { ac_try='test -s conftest.$ac_objext'
15445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446  (eval $ac_try) 2>&5
15447  ac_status=$?
15448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449  (exit $ac_status); }; }; then
15450  ac_hi=$ac_mid
15451else
15452  echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455ac_lo=`expr '(' $ac_mid ')' + 1`
15456fi
15457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15458done
15459case $ac_lo in
15460?*) ac_cv_sizeof_short=$ac_lo;;
15461'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15462echo "$as_me: error: in \`$ac_pwd':" >&2;}
15463{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15464See \`config.log' for more details." >&5
15465echo "$as_me: error: cannot compute sizeof (short), 77
15466See \`config.log' for more details." >&2;}
15467   { (exit 1); exit 1; }; }; } ;;
15468esac
15469else
15470  if test "$cross_compiling" = yes; then
15471  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15472echo "$as_me: error: in \`$ac_pwd':" >&2;}
15473{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15474See \`config.log' for more details." >&5
15475echo "$as_me: error: cannot run test program while cross compiling
15476See \`config.log' for more details." >&2;}
15477   { (exit 1); exit 1; }; }; }
15478else
15479  cat >conftest.$ac_ext <<_ACEOF
15480/* confdefs.h.  */
15481_ACEOF
15482cat confdefs.h >>conftest.$ac_ext
15483cat >>conftest.$ac_ext <<_ACEOF
15484/* end confdefs.h.  */
15485$ac_includes_default
15486long longval () { return (long) (sizeof (short)); }
15487unsigned long ulongval () { return (long) (sizeof (short)); }
15488#include <stdio.h>
15489#include <stdlib.h>
15490int
15491main ()
15492{
15493
15494  FILE *f = fopen ("conftest.val", "w");
15495  if (! f)
15496    exit (1);
15497  if (((long) (sizeof (short))) < 0)
15498    {
15499      long i = longval ();
15500      if (i != ((long) (sizeof (short))))
15501	exit (1);
15502      fprintf (f, "%ld\n", i);
15503    }
15504  else
15505    {
15506      unsigned long i = ulongval ();
15507      if (i != ((long) (sizeof (short))))
15508	exit (1);
15509      fprintf (f, "%lu\n", i);
15510    }
15511  exit (ferror (f) || fclose (f) != 0);
15512
15513  ;
15514  return 0;
15515}
15516_ACEOF
15517rm -f conftest$ac_exeext
15518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519  (eval $ac_link) 2>&5
15520  ac_status=$?
15521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524  (eval $ac_try) 2>&5
15525  ac_status=$?
15526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527  (exit $ac_status); }; }; then
15528  ac_cv_sizeof_short=`cat conftest.val`
15529else
15530  echo "$as_me: program exited with status $ac_status" >&5
15531echo "$as_me: failed program was:" >&5
15532sed 's/^/| /' conftest.$ac_ext >&5
15533
15534( exit $ac_status )
15535{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15536echo "$as_me: error: in \`$ac_pwd':" >&2;}
15537{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15538See \`config.log' for more details." >&5
15539echo "$as_me: error: cannot compute sizeof (short), 77
15540See \`config.log' for more details." >&2;}
15541   { (exit 1); exit 1; }; }; }
15542fi
15543rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15544fi
15545fi
15546rm -f conftest.val
15547else
15548  ac_cv_sizeof_short=0
15549fi
15550fi
15551echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15552echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15553cat >>confdefs.h <<_ACEOF
15554#define SIZEOF_SHORT $ac_cv_sizeof_short
15555_ACEOF
15556
15557
15558  echo "$as_me:$LINENO: checking for char" >&5
15559echo $ECHO_N "checking for char... $ECHO_C" >&6
15560if test "${ac_cv_type_char+set}" = set; then
15561  echo $ECHO_N "(cached) $ECHO_C" >&6
15562else
15563  cat >conftest.$ac_ext <<_ACEOF
15564/* confdefs.h.  */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h.  */
15569$ac_includes_default
15570int
15571main ()
15572{
15573if ((char *) 0)
15574  return 0;
15575if (sizeof (char))
15576  return 0;
15577  ;
15578  return 0;
15579}
15580_ACEOF
15581rm -f conftest.$ac_objext
15582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583  (eval $ac_compile) 2>conftest.er1
15584  ac_status=$?
15585  grep -v '^ *+' conftest.er1 >conftest.err
15586  rm -f conftest.er1
15587  cat conftest.err >&5
15588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589  (exit $ac_status); } &&
15590	 { ac_try='test -z "$ac_c_werror_flag"
15591			 || test ! -s conftest.err'
15592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593  (eval $ac_try) 2>&5
15594  ac_status=$?
15595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596  (exit $ac_status); }; } &&
15597	 { ac_try='test -s conftest.$ac_objext'
15598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599  (eval $ac_try) 2>&5
15600  ac_status=$?
15601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602  (exit $ac_status); }; }; then
15603  ac_cv_type_char=yes
15604else
15605  echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608ac_cv_type_char=no
15609fi
15610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15611fi
15612echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15613echo "${ECHO_T}$ac_cv_type_char" >&6
15614
15615echo "$as_me:$LINENO: checking size of char" >&5
15616echo $ECHO_N "checking size of char... $ECHO_C" >&6
15617if test "${ac_cv_sizeof_char+set}" = set; then
15618  echo $ECHO_N "(cached) $ECHO_C" >&6
15619else
15620  if test "$ac_cv_type_char" = yes; then
15621  # The cast to unsigned long works around a bug in the HP C Compiler
15622  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15623  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15624  # This bug is HP SR number 8606223364.
15625  if test "$cross_compiling" = yes; then
15626  # Depending upon the size, compute the lo and hi bounds.
15627cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h.  */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h.  */
15633$ac_includes_default
15634int
15635main ()
15636{
15637static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15638test_array [0] = 0
15639
15640  ;
15641  return 0;
15642}
15643_ACEOF
15644rm -f conftest.$ac_objext
15645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646  (eval $ac_compile) 2>conftest.er1
15647  ac_status=$?
15648  grep -v '^ *+' conftest.er1 >conftest.err
15649  rm -f conftest.er1
15650  cat conftest.err >&5
15651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652  (exit $ac_status); } &&
15653	 { ac_try='test -z "$ac_c_werror_flag"
15654			 || test ! -s conftest.err'
15655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656  (eval $ac_try) 2>&5
15657  ac_status=$?
15658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659  (exit $ac_status); }; } &&
15660	 { ac_try='test -s conftest.$ac_objext'
15661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662  (eval $ac_try) 2>&5
15663  ac_status=$?
15664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665  (exit $ac_status); }; }; then
15666  ac_lo=0 ac_mid=0
15667  while :; do
15668    cat >conftest.$ac_ext <<_ACEOF
15669/* confdefs.h.  */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h.  */
15674$ac_includes_default
15675int
15676main ()
15677{
15678static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15679test_array [0] = 0
15680
15681  ;
15682  return 0;
15683}
15684_ACEOF
15685rm -f conftest.$ac_objext
15686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15687  (eval $ac_compile) 2>conftest.er1
15688  ac_status=$?
15689  grep -v '^ *+' conftest.er1 >conftest.err
15690  rm -f conftest.er1
15691  cat conftest.err >&5
15692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693  (exit $ac_status); } &&
15694	 { ac_try='test -z "$ac_c_werror_flag"
15695			 || test ! -s conftest.err'
15696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697  (eval $ac_try) 2>&5
15698  ac_status=$?
15699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700  (exit $ac_status); }; } &&
15701	 { ac_try='test -s conftest.$ac_objext'
15702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703  (eval $ac_try) 2>&5
15704  ac_status=$?
15705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706  (exit $ac_status); }; }; then
15707  ac_hi=$ac_mid; break
15708else
15709  echo "$as_me: failed program was:" >&5
15710sed 's/^/| /' conftest.$ac_ext >&5
15711
15712ac_lo=`expr $ac_mid + 1`
15713		    if test $ac_lo -le $ac_mid; then
15714		      ac_lo= ac_hi=
15715		      break
15716		    fi
15717		    ac_mid=`expr 2 '*' $ac_mid + 1`
15718fi
15719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15720  done
15721else
15722  echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725cat >conftest.$ac_ext <<_ACEOF
15726/* confdefs.h.  */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h.  */
15731$ac_includes_default
15732int
15733main ()
15734{
15735static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15736test_array [0] = 0
15737
15738  ;
15739  return 0;
15740}
15741_ACEOF
15742rm -f conftest.$ac_objext
15743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744  (eval $ac_compile) 2>conftest.er1
15745  ac_status=$?
15746  grep -v '^ *+' conftest.er1 >conftest.err
15747  rm -f conftest.er1
15748  cat conftest.err >&5
15749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750  (exit $ac_status); } &&
15751	 { ac_try='test -z "$ac_c_werror_flag"
15752			 || test ! -s conftest.err'
15753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754  (eval $ac_try) 2>&5
15755  ac_status=$?
15756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757  (exit $ac_status); }; } &&
15758	 { ac_try='test -s conftest.$ac_objext'
15759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760  (eval $ac_try) 2>&5
15761  ac_status=$?
15762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763  (exit $ac_status); }; }; then
15764  ac_hi=-1 ac_mid=-1
15765  while :; do
15766    cat >conftest.$ac_ext <<_ACEOF
15767/* confdefs.h.  */
15768_ACEOF
15769cat confdefs.h >>conftest.$ac_ext
15770cat >>conftest.$ac_ext <<_ACEOF
15771/* end confdefs.h.  */
15772$ac_includes_default
15773int
15774main ()
15775{
15776static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15777test_array [0] = 0
15778
15779  ;
15780  return 0;
15781}
15782_ACEOF
15783rm -f conftest.$ac_objext
15784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785  (eval $ac_compile) 2>conftest.er1
15786  ac_status=$?
15787  grep -v '^ *+' conftest.er1 >conftest.err
15788  rm -f conftest.er1
15789  cat conftest.err >&5
15790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791  (exit $ac_status); } &&
15792	 { ac_try='test -z "$ac_c_werror_flag"
15793			 || test ! -s conftest.err'
15794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795  (eval $ac_try) 2>&5
15796  ac_status=$?
15797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798  (exit $ac_status); }; } &&
15799	 { ac_try='test -s conftest.$ac_objext'
15800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801  (eval $ac_try) 2>&5
15802  ac_status=$?
15803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804  (exit $ac_status); }; }; then
15805  ac_lo=$ac_mid; break
15806else
15807  echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810ac_hi=`expr '(' $ac_mid ')' - 1`
15811		       if test $ac_mid -le $ac_hi; then
15812			 ac_lo= ac_hi=
15813			 break
15814		       fi
15815		       ac_mid=`expr 2 '*' $ac_mid`
15816fi
15817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15818  done
15819else
15820  echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823ac_lo= ac_hi=
15824fi
15825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15826fi
15827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15828# Binary search between lo and hi bounds.
15829while test "x$ac_lo" != "x$ac_hi"; do
15830  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15831  cat >conftest.$ac_ext <<_ACEOF
15832/* confdefs.h.  */
15833_ACEOF
15834cat confdefs.h >>conftest.$ac_ext
15835cat >>conftest.$ac_ext <<_ACEOF
15836/* end confdefs.h.  */
15837$ac_includes_default
15838int
15839main ()
15840{
15841static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15842test_array [0] = 0
15843
15844  ;
15845  return 0;
15846}
15847_ACEOF
15848rm -f conftest.$ac_objext
15849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850  (eval $ac_compile) 2>conftest.er1
15851  ac_status=$?
15852  grep -v '^ *+' conftest.er1 >conftest.err
15853  rm -f conftest.er1
15854  cat conftest.err >&5
15855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856  (exit $ac_status); } &&
15857	 { ac_try='test -z "$ac_c_werror_flag"
15858			 || test ! -s conftest.err'
15859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860  (eval $ac_try) 2>&5
15861  ac_status=$?
15862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863  (exit $ac_status); }; } &&
15864	 { ac_try='test -s conftest.$ac_objext'
15865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866  (eval $ac_try) 2>&5
15867  ac_status=$?
15868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869  (exit $ac_status); }; }; then
15870  ac_hi=$ac_mid
15871else
15872  echo "$as_me: failed program was:" >&5
15873sed 's/^/| /' conftest.$ac_ext >&5
15874
15875ac_lo=`expr '(' $ac_mid ')' + 1`
15876fi
15877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15878done
15879case $ac_lo in
15880?*) ac_cv_sizeof_char=$ac_lo;;
15881'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15882echo "$as_me: error: in \`$ac_pwd':" >&2;}
15883{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15884See \`config.log' for more details." >&5
15885echo "$as_me: error: cannot compute sizeof (char), 77
15886See \`config.log' for more details." >&2;}
15887   { (exit 1); exit 1; }; }; } ;;
15888esac
15889else
15890  if test "$cross_compiling" = yes; then
15891  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15892echo "$as_me: error: in \`$ac_pwd':" >&2;}
15893{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15894See \`config.log' for more details." >&5
15895echo "$as_me: error: cannot run test program while cross compiling
15896See \`config.log' for more details." >&2;}
15897   { (exit 1); exit 1; }; }; }
15898else
15899  cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h.  */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h.  */
15905$ac_includes_default
15906long longval () { return (long) (sizeof (char)); }
15907unsigned long ulongval () { return (long) (sizeof (char)); }
15908#include <stdio.h>
15909#include <stdlib.h>
15910int
15911main ()
15912{
15913
15914  FILE *f = fopen ("conftest.val", "w");
15915  if (! f)
15916    exit (1);
15917  if (((long) (sizeof (char))) < 0)
15918    {
15919      long i = longval ();
15920      if (i != ((long) (sizeof (char))))
15921	exit (1);
15922      fprintf (f, "%ld\n", i);
15923    }
15924  else
15925    {
15926      unsigned long i = ulongval ();
15927      if (i != ((long) (sizeof (char))))
15928	exit (1);
15929      fprintf (f, "%lu\n", i);
15930    }
15931  exit (ferror (f) || fclose (f) != 0);
15932
15933  ;
15934  return 0;
15935}
15936_ACEOF
15937rm -f conftest$ac_exeext
15938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939  (eval $ac_link) 2>&5
15940  ac_status=$?
15941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944  (eval $ac_try) 2>&5
15945  ac_status=$?
15946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947  (exit $ac_status); }; }; then
15948  ac_cv_sizeof_char=`cat conftest.val`
15949else
15950  echo "$as_me: program exited with status $ac_status" >&5
15951echo "$as_me: failed program was:" >&5
15952sed 's/^/| /' conftest.$ac_ext >&5
15953
15954( exit $ac_status )
15955{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15956echo "$as_me: error: in \`$ac_pwd':" >&2;}
15957{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15958See \`config.log' for more details." >&5
15959echo "$as_me: error: cannot compute sizeof (char), 77
15960See \`config.log' for more details." >&2;}
15961   { (exit 1); exit 1; }; }; }
15962fi
15963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15964fi
15965fi
15966rm -f conftest.val
15967else
15968  ac_cv_sizeof_char=0
15969fi
15970fi
15971echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15972echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15973cat >>confdefs.h <<_ACEOF
15974#define SIZEOF_CHAR $ac_cv_sizeof_char
15975_ACEOF
15976
15977
15978
15979  echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15980echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15981  case "$ac_cv_sizeof_char" in
15982    1) acx_cv_type_int8_t=char ;;
15983    *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15984echo "$as_me: error: no 8-bit type" >&2;}
15985   { (exit please report a bug); exit please report a bug; }; }
15986  esac
15987  echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15988echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15989
15990  echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15991echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15992  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15993    2:*) acx_cv_type_int16_t=int ;;
15994    *:2) acx_cv_type_int16_t=short ;;
15995    *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15996echo "$as_me: error: no 16-bit type" >&2;}
15997   { (exit please report a bug); exit please report a bug; }; }
15998  esac
15999  echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16000echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16001
16002  echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16003echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16004  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16005    4:*) acx_cv_type_int32_t=int ;;
16006    *:4) acx_cv_type_int32_t=long ;;
16007    *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16008echo "$as_me: error: no 32-bit type" >&2;}
16009   { (exit please report a bug); exit please report a bug; }; }
16010  esac
16011  echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16012echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16013fi
16014
16015# These tests are here to make the output prettier
16016
16017if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16018  case "$ac_cv_sizeof_long" in
16019    8) acx_cv_type_int64_t=long ;;
16020  esac
16021  echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16022echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16023  echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16024echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16025fi
16026
16027# Now we can use the above types
16028
16029if test "$ac_cv_type_uintptr_t" != yes; then
16030  echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16031echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16032  case $ac_cv_sizeof_void_p in
16033    2) acx_cv_type_intptr_t=int16_t ;;
16034    4) acx_cv_type_intptr_t=int32_t ;;
16035    8) acx_cv_type_intptr_t=int64_t ;;
16036    *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16037echo "$as_me: error: no equivalent for intptr_t" >&2;}
16038   { (exit please report a bug); exit please report a bug; }; }
16039  esac
16040  echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16041echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16042fi
16043
16044# ----------------- done all checks, emit header -------------
16045          ac_config_commands="$ac_config_commands bfd_stdint.h"
16046
16047
16048
16049echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16050echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16051if test "${ac_cv_header_time+set}" = set; then
16052  echo $ECHO_N "(cached) $ECHO_C" >&6
16053else
16054  cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h.  */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h.  */
16060#include <sys/types.h>
16061#include <sys/time.h>
16062#include <time.h>
16063
16064int
16065main ()
16066{
16067if ((struct tm *) 0)
16068return 0;
16069  ;
16070  return 0;
16071}
16072_ACEOF
16073rm -f conftest.$ac_objext
16074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16075  (eval $ac_compile) 2>conftest.er1
16076  ac_status=$?
16077  grep -v '^ *+' conftest.er1 >conftest.err
16078  rm -f conftest.er1
16079  cat conftest.err >&5
16080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081  (exit $ac_status); } &&
16082	 { ac_try='test -z "$ac_c_werror_flag"
16083			 || test ! -s conftest.err'
16084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085  (eval $ac_try) 2>&5
16086  ac_status=$?
16087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088  (exit $ac_status); }; } &&
16089	 { ac_try='test -s conftest.$ac_objext'
16090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091  (eval $ac_try) 2>&5
16092  ac_status=$?
16093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094  (exit $ac_status); }; }; then
16095  ac_cv_header_time=yes
16096else
16097  echo "$as_me: failed program was:" >&5
16098sed 's/^/| /' conftest.$ac_ext >&5
16099
16100ac_cv_header_time=no
16101fi
16102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16103fi
16104echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16105echo "${ECHO_T}$ac_cv_header_time" >&6
16106if test $ac_cv_header_time = yes; then
16107
16108cat >>confdefs.h <<\_ACEOF
16109#define TIME_WITH_SYS_TIME 1
16110_ACEOF
16111
16112fi
16113
16114
16115
16116
16117
16118
16119ac_header_dirent=no
16120for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16121  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16122echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16123echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
16124if eval "test \"\${$as_ac_Header+set}\" = set"; then
16125  echo $ECHO_N "(cached) $ECHO_C" >&6
16126else
16127  cat >conftest.$ac_ext <<_ACEOF
16128/* confdefs.h.  */
16129_ACEOF
16130cat confdefs.h >>conftest.$ac_ext
16131cat >>conftest.$ac_ext <<_ACEOF
16132/* end confdefs.h.  */
16133#include <sys/types.h>
16134#include <$ac_hdr>
16135
16136int
16137main ()
16138{
16139if ((DIR *) 0)
16140return 0;
16141  ;
16142  return 0;
16143}
16144_ACEOF
16145rm -f conftest.$ac_objext
16146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147  (eval $ac_compile) 2>conftest.er1
16148  ac_status=$?
16149  grep -v '^ *+' conftest.er1 >conftest.err
16150  rm -f conftest.er1
16151  cat conftest.err >&5
16152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153  (exit $ac_status); } &&
16154	 { ac_try='test -z "$ac_c_werror_flag"
16155			 || test ! -s conftest.err'
16156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157  (eval $ac_try) 2>&5
16158  ac_status=$?
16159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160  (exit $ac_status); }; } &&
16161	 { ac_try='test -s conftest.$ac_objext'
16162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163  (eval $ac_try) 2>&5
16164  ac_status=$?
16165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166  (exit $ac_status); }; }; then
16167  eval "$as_ac_Header=yes"
16168else
16169  echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172eval "$as_ac_Header=no"
16173fi
16174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16175fi
16176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16178if test `eval echo '${'$as_ac_Header'}'` = yes; then
16179  cat >>confdefs.h <<_ACEOF
16180#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16181_ACEOF
16182
16183ac_header_dirent=$ac_hdr; break
16184fi
16185
16186done
16187# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16188if test $ac_header_dirent = dirent.h; then
16189  echo "$as_me:$LINENO: checking for library containing opendir" >&5
16190echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16191if test "${ac_cv_search_opendir+set}" = set; then
16192  echo $ECHO_N "(cached) $ECHO_C" >&6
16193else
16194  ac_func_search_save_LIBS=$LIBS
16195ac_cv_search_opendir=no
16196cat >conftest.$ac_ext <<_ACEOF
16197/* confdefs.h.  */
16198_ACEOF
16199cat confdefs.h >>conftest.$ac_ext
16200cat >>conftest.$ac_ext <<_ACEOF
16201/* end confdefs.h.  */
16202
16203/* Override any gcc2 internal prototype to avoid an error.  */
16204#ifdef __cplusplus
16205extern "C"
16206#endif
16207/* We use char because int might match the return type of a gcc2
16208   builtin and then its argument prototype would still apply.  */
16209char opendir ();
16210int
16211main ()
16212{
16213opendir ();
16214  ;
16215  return 0;
16216}
16217_ACEOF
16218rm -f conftest.$ac_objext conftest$ac_exeext
16219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220  (eval $ac_link) 2>conftest.er1
16221  ac_status=$?
16222  grep -v '^ *+' conftest.er1 >conftest.err
16223  rm -f conftest.er1
16224  cat conftest.err >&5
16225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226  (exit $ac_status); } &&
16227	 { ac_try='test -z "$ac_c_werror_flag"
16228			 || test ! -s conftest.err'
16229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230  (eval $ac_try) 2>&5
16231  ac_status=$?
16232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233  (exit $ac_status); }; } &&
16234	 { ac_try='test -s conftest$ac_exeext'
16235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236  (eval $ac_try) 2>&5
16237  ac_status=$?
16238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239  (exit $ac_status); }; }; then
16240  ac_cv_search_opendir="none required"
16241else
16242  echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245fi
16246rm -f conftest.err conftest.$ac_objext \
16247      conftest$ac_exeext conftest.$ac_ext
16248if test "$ac_cv_search_opendir" = no; then
16249  for ac_lib in dir; do
16250    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16251    cat >conftest.$ac_ext <<_ACEOF
16252/* confdefs.h.  */
16253_ACEOF
16254cat confdefs.h >>conftest.$ac_ext
16255cat >>conftest.$ac_ext <<_ACEOF
16256/* end confdefs.h.  */
16257
16258/* Override any gcc2 internal prototype to avoid an error.  */
16259#ifdef __cplusplus
16260extern "C"
16261#endif
16262/* We use char because int might match the return type of a gcc2
16263   builtin and then its argument prototype would still apply.  */
16264char opendir ();
16265int
16266main ()
16267{
16268opendir ();
16269  ;
16270  return 0;
16271}
16272_ACEOF
16273rm -f conftest.$ac_objext conftest$ac_exeext
16274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275  (eval $ac_link) 2>conftest.er1
16276  ac_status=$?
16277  grep -v '^ *+' conftest.er1 >conftest.err
16278  rm -f conftest.er1
16279  cat conftest.err >&5
16280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281  (exit $ac_status); } &&
16282	 { ac_try='test -z "$ac_c_werror_flag"
16283			 || test ! -s conftest.err'
16284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285  (eval $ac_try) 2>&5
16286  ac_status=$?
16287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288  (exit $ac_status); }; } &&
16289	 { ac_try='test -s conftest$ac_exeext'
16290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291  (eval $ac_try) 2>&5
16292  ac_status=$?
16293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294  (exit $ac_status); }; }; then
16295  ac_cv_search_opendir="-l$ac_lib"
16296break
16297else
16298  echo "$as_me: failed program was:" >&5
16299sed 's/^/| /' conftest.$ac_ext >&5
16300
16301fi
16302rm -f conftest.err conftest.$ac_objext \
16303      conftest$ac_exeext conftest.$ac_ext
16304  done
16305fi
16306LIBS=$ac_func_search_save_LIBS
16307fi
16308echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16309echo "${ECHO_T}$ac_cv_search_opendir" >&6
16310if test "$ac_cv_search_opendir" != no; then
16311  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16312
16313fi
16314
16315else
16316  echo "$as_me:$LINENO: checking for library containing opendir" >&5
16317echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16318if test "${ac_cv_search_opendir+set}" = set; then
16319  echo $ECHO_N "(cached) $ECHO_C" >&6
16320else
16321  ac_func_search_save_LIBS=$LIBS
16322ac_cv_search_opendir=no
16323cat >conftest.$ac_ext <<_ACEOF
16324/* confdefs.h.  */
16325_ACEOF
16326cat confdefs.h >>conftest.$ac_ext
16327cat >>conftest.$ac_ext <<_ACEOF
16328/* end confdefs.h.  */
16329
16330/* Override any gcc2 internal prototype to avoid an error.  */
16331#ifdef __cplusplus
16332extern "C"
16333#endif
16334/* We use char because int might match the return type of a gcc2
16335   builtin and then its argument prototype would still apply.  */
16336char opendir ();
16337int
16338main ()
16339{
16340opendir ();
16341  ;
16342  return 0;
16343}
16344_ACEOF
16345rm -f conftest.$ac_objext conftest$ac_exeext
16346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347  (eval $ac_link) 2>conftest.er1
16348  ac_status=$?
16349  grep -v '^ *+' conftest.er1 >conftest.err
16350  rm -f conftest.er1
16351  cat conftest.err >&5
16352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353  (exit $ac_status); } &&
16354	 { ac_try='test -z "$ac_c_werror_flag"
16355			 || test ! -s conftest.err'
16356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357  (eval $ac_try) 2>&5
16358  ac_status=$?
16359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360  (exit $ac_status); }; } &&
16361	 { ac_try='test -s conftest$ac_exeext'
16362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363  (eval $ac_try) 2>&5
16364  ac_status=$?
16365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366  (exit $ac_status); }; }; then
16367  ac_cv_search_opendir="none required"
16368else
16369  echo "$as_me: failed program was:" >&5
16370sed 's/^/| /' conftest.$ac_ext >&5
16371
16372fi
16373rm -f conftest.err conftest.$ac_objext \
16374      conftest$ac_exeext conftest.$ac_ext
16375if test "$ac_cv_search_opendir" = no; then
16376  for ac_lib in x; do
16377    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16378    cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h.  */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h.  */
16384
16385/* Override any gcc2 internal prototype to avoid an error.  */
16386#ifdef __cplusplus
16387extern "C"
16388#endif
16389/* We use char because int might match the return type of a gcc2
16390   builtin and then its argument prototype would still apply.  */
16391char opendir ();
16392int
16393main ()
16394{
16395opendir ();
16396  ;
16397  return 0;
16398}
16399_ACEOF
16400rm -f conftest.$ac_objext conftest$ac_exeext
16401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402  (eval $ac_link) 2>conftest.er1
16403  ac_status=$?
16404  grep -v '^ *+' conftest.er1 >conftest.err
16405  rm -f conftest.er1
16406  cat conftest.err >&5
16407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408  (exit $ac_status); } &&
16409	 { ac_try='test -z "$ac_c_werror_flag"
16410			 || test ! -s conftest.err'
16411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412  (eval $ac_try) 2>&5
16413  ac_status=$?
16414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415  (exit $ac_status); }; } &&
16416	 { ac_try='test -s conftest$ac_exeext'
16417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418  (eval $ac_try) 2>&5
16419  ac_status=$?
16420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421  (exit $ac_status); }; }; then
16422  ac_cv_search_opendir="-l$ac_lib"
16423break
16424else
16425  echo "$as_me: failed program was:" >&5
16426sed 's/^/| /' conftest.$ac_ext >&5
16427
16428fi
16429rm -f conftest.err conftest.$ac_objext \
16430      conftest$ac_exeext conftest.$ac_ext
16431  done
16432fi
16433LIBS=$ac_func_search_save_LIBS
16434fi
16435echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16436echo "${ECHO_T}$ac_cv_search_opendir" >&6
16437if test "$ac_cv_search_opendir" != no; then
16438  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16439
16440fi
16441
16442fi
16443
16444echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16445echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16446if test "${gcc_cv_header_string+set}" = set; then
16447  echo $ECHO_N "(cached) $ECHO_C" >&6
16448else
16449  cat >conftest.$ac_ext <<_ACEOF
16450/* confdefs.h.  */
16451_ACEOF
16452cat confdefs.h >>conftest.$ac_ext
16453cat >>conftest.$ac_ext <<_ACEOF
16454/* end confdefs.h.  */
16455#include <string.h>
16456#include <strings.h>
16457int
16458main ()
16459{
16460
16461  ;
16462  return 0;
16463}
16464_ACEOF
16465rm -f conftest.$ac_objext
16466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467  (eval $ac_compile) 2>conftest.er1
16468  ac_status=$?
16469  grep -v '^ *+' conftest.er1 >conftest.err
16470  rm -f conftest.er1
16471  cat conftest.err >&5
16472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473  (exit $ac_status); } &&
16474	 { ac_try='test -z "$ac_c_werror_flag"
16475			 || test ! -s conftest.err'
16476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477  (eval $ac_try) 2>&5
16478  ac_status=$?
16479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480  (exit $ac_status); }; } &&
16481	 { ac_try='test -s conftest.$ac_objext'
16482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483  (eval $ac_try) 2>&5
16484  ac_status=$?
16485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486  (exit $ac_status); }; }; then
16487  gcc_cv_header_string=yes
16488else
16489  echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492gcc_cv_header_string=no
16493fi
16494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16495fi
16496echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16497echo "${ECHO_T}$gcc_cv_header_string" >&6
16498if test $gcc_cv_header_string = yes; then
16499
16500cat >>confdefs.h <<\_ACEOF
16501#define STRING_WITH_STRINGS 1
16502_ACEOF
16503
16504fi
16505
16506
16507
16508
16509
16510
16511
16512
16513for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16514do
16515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16516echo "$as_me:$LINENO: checking for $ac_func" >&5
16517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16518if eval "test \"\${$as_ac_var+set}\" = set"; then
16519  echo $ECHO_N "(cached) $ECHO_C" >&6
16520else
16521  cat >conftest.$ac_ext <<_ACEOF
16522/* confdefs.h.  */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h.  */
16527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16528   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16529#define $ac_func innocuous_$ac_func
16530
16531/* System header to define __stub macros and hopefully few prototypes,
16532    which can conflict with char $ac_func (); below.
16533    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16534    <limits.h> exists even on freestanding compilers.  */
16535
16536#ifdef __STDC__
16537# include <limits.h>
16538#else
16539# include <assert.h>
16540#endif
16541
16542#undef $ac_func
16543
16544/* Override any gcc2 internal prototype to avoid an error.  */
16545#ifdef __cplusplus
16546extern "C"
16547{
16548#endif
16549/* We use char because int might match the return type of a gcc2
16550   builtin and then its argument prototype would still apply.  */
16551char $ac_func ();
16552/* The GNU C library defines this for functions which it implements
16553    to always fail with ENOSYS.  Some functions are actually named
16554    something starting with __ and the normal name is an alias.  */
16555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16556choke me
16557#else
16558char (*f) () = $ac_func;
16559#endif
16560#ifdef __cplusplus
16561}
16562#endif
16563
16564int
16565main ()
16566{
16567return f != $ac_func;
16568  ;
16569  return 0;
16570}
16571_ACEOF
16572rm -f conftest.$ac_objext conftest$ac_exeext
16573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574  (eval $ac_link) 2>conftest.er1
16575  ac_status=$?
16576  grep -v '^ *+' conftest.er1 >conftest.err
16577  rm -f conftest.er1
16578  cat conftest.err >&5
16579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580  (exit $ac_status); } &&
16581	 { ac_try='test -z "$ac_c_werror_flag"
16582			 || test ! -s conftest.err'
16583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584  (eval $ac_try) 2>&5
16585  ac_status=$?
16586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587  (exit $ac_status); }; } &&
16588	 { ac_try='test -s conftest$ac_exeext'
16589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590  (eval $ac_try) 2>&5
16591  ac_status=$?
16592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593  (exit $ac_status); }; }; then
16594  eval "$as_ac_var=yes"
16595else
16596  echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599eval "$as_ac_var=no"
16600fi
16601rm -f conftest.err conftest.$ac_objext \
16602      conftest$ac_exeext conftest.$ac_ext
16603fi
16604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16605echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16606if test `eval echo '${'$as_ac_var'}'` = yes; then
16607  cat >>confdefs.h <<_ACEOF
16608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16609_ACEOF
16610
16611fi
16612done
16613
16614
16615for ac_func in strtoull
16616do
16617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16618echo "$as_me:$LINENO: checking for $ac_func" >&5
16619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620if eval "test \"\${$as_ac_var+set}\" = set"; then
16621  echo $ECHO_N "(cached) $ECHO_C" >&6
16622else
16623  cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h.  */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h.  */
16629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16630   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16631#define $ac_func innocuous_$ac_func
16632
16633/* System header to define __stub macros and hopefully few prototypes,
16634    which can conflict with char $ac_func (); below.
16635    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636    <limits.h> exists even on freestanding compilers.  */
16637
16638#ifdef __STDC__
16639# include <limits.h>
16640#else
16641# include <assert.h>
16642#endif
16643
16644#undef $ac_func
16645
16646/* Override any gcc2 internal prototype to avoid an error.  */
16647#ifdef __cplusplus
16648extern "C"
16649{
16650#endif
16651/* We use char because int might match the return type of a gcc2
16652   builtin and then its argument prototype would still apply.  */
16653char $ac_func ();
16654/* The GNU C library defines this for functions which it implements
16655    to always fail with ENOSYS.  Some functions are actually named
16656    something starting with __ and the normal name is an alias.  */
16657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658choke me
16659#else
16660char (*f) () = $ac_func;
16661#endif
16662#ifdef __cplusplus
16663}
16664#endif
16665
16666int
16667main ()
16668{
16669return f != $ac_func;
16670  ;
16671  return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext conftest$ac_exeext
16675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676  (eval $ac_link) 2>conftest.er1
16677  ac_status=$?
16678  grep -v '^ *+' conftest.er1 >conftest.err
16679  rm -f conftest.er1
16680  cat conftest.err >&5
16681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682  (exit $ac_status); } &&
16683	 { ac_try='test -z "$ac_c_werror_flag"
16684			 || test ! -s conftest.err'
16685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686  (eval $ac_try) 2>&5
16687  ac_status=$?
16688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689  (exit $ac_status); }; } &&
16690	 { ac_try='test -s conftest$ac_exeext'
16691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692  (eval $ac_try) 2>&5
16693  ac_status=$?
16694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695  (exit $ac_status); }; }; then
16696  eval "$as_ac_var=yes"
16697else
16698  echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
16701eval "$as_ac_var=no"
16702fi
16703rm -f conftest.err conftest.$ac_objext \
16704      conftest$ac_exeext conftest.$ac_ext
16705fi
16706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16708if test `eval echo '${'$as_ac_var'}'` = yes; then
16709  cat >>confdefs.h <<_ACEOF
16710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16711_ACEOF
16712
16713fi
16714done
16715
16716
16717echo "$as_me:$LINENO: checking whether basename is declared" >&5
16718echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16719if test "${ac_cv_have_decl_basename+set}" = set; then
16720  echo $ECHO_N "(cached) $ECHO_C" >&6
16721else
16722  cat >conftest.$ac_ext <<_ACEOF
16723/* confdefs.h.  */
16724_ACEOF
16725cat confdefs.h >>conftest.$ac_ext
16726cat >>conftest.$ac_ext <<_ACEOF
16727/* end confdefs.h.  */
16728$ac_includes_default
16729int
16730main ()
16731{
16732#ifndef basename
16733  char *p = (char *) basename;
16734#endif
16735
16736  ;
16737  return 0;
16738}
16739_ACEOF
16740rm -f conftest.$ac_objext
16741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742  (eval $ac_compile) 2>conftest.er1
16743  ac_status=$?
16744  grep -v '^ *+' conftest.er1 >conftest.err
16745  rm -f conftest.er1
16746  cat conftest.err >&5
16747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748  (exit $ac_status); } &&
16749	 { ac_try='test -z "$ac_c_werror_flag"
16750			 || test ! -s conftest.err'
16751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752  (eval $ac_try) 2>&5
16753  ac_status=$?
16754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755  (exit $ac_status); }; } &&
16756	 { ac_try='test -s conftest.$ac_objext'
16757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758  (eval $ac_try) 2>&5
16759  ac_status=$?
16760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761  (exit $ac_status); }; }; then
16762  ac_cv_have_decl_basename=yes
16763else
16764  echo "$as_me: failed program was:" >&5
16765sed 's/^/| /' conftest.$ac_ext >&5
16766
16767ac_cv_have_decl_basename=no
16768fi
16769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16770fi
16771echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16772echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16773if test $ac_cv_have_decl_basename = yes; then
16774
16775cat >>confdefs.h <<_ACEOF
16776#define HAVE_DECL_BASENAME 1
16777_ACEOF
16778
16779
16780else
16781  cat >>confdefs.h <<_ACEOF
16782#define HAVE_DECL_BASENAME 0
16783_ACEOF
16784
16785
16786fi
16787
16788
16789echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16790echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16791if test "${ac_cv_have_decl_ftello+set}" = set; then
16792  echo $ECHO_N "(cached) $ECHO_C" >&6
16793else
16794  cat >conftest.$ac_ext <<_ACEOF
16795/* confdefs.h.  */
16796_ACEOF
16797cat confdefs.h >>conftest.$ac_ext
16798cat >>conftest.$ac_ext <<_ACEOF
16799/* end confdefs.h.  */
16800$ac_includes_default
16801int
16802main ()
16803{
16804#ifndef ftello
16805  char *p = (char *) ftello;
16806#endif
16807
16808  ;
16809  return 0;
16810}
16811_ACEOF
16812rm -f conftest.$ac_objext
16813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814  (eval $ac_compile) 2>conftest.er1
16815  ac_status=$?
16816  grep -v '^ *+' conftest.er1 >conftest.err
16817  rm -f conftest.er1
16818  cat conftest.err >&5
16819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820  (exit $ac_status); } &&
16821	 { ac_try='test -z "$ac_c_werror_flag"
16822			 || test ! -s conftest.err'
16823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824  (eval $ac_try) 2>&5
16825  ac_status=$?
16826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827  (exit $ac_status); }; } &&
16828	 { ac_try='test -s conftest.$ac_objext'
16829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830  (eval $ac_try) 2>&5
16831  ac_status=$?
16832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833  (exit $ac_status); }; }; then
16834  ac_cv_have_decl_ftello=yes
16835else
16836  echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
16839ac_cv_have_decl_ftello=no
16840fi
16841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16842fi
16843echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16844echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16845if test $ac_cv_have_decl_ftello = yes; then
16846
16847cat >>confdefs.h <<_ACEOF
16848#define HAVE_DECL_FTELLO 1
16849_ACEOF
16850
16851
16852else
16853  cat >>confdefs.h <<_ACEOF
16854#define HAVE_DECL_FTELLO 0
16855_ACEOF
16856
16857
16858fi
16859
16860
16861echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16862echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16863if test "${ac_cv_have_decl_ftello64+set}" = set; then
16864  echo $ECHO_N "(cached) $ECHO_C" >&6
16865else
16866  cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h.  */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h.  */
16872$ac_includes_default
16873int
16874main ()
16875{
16876#ifndef ftello64
16877  char *p = (char *) ftello64;
16878#endif
16879
16880  ;
16881  return 0;
16882}
16883_ACEOF
16884rm -f conftest.$ac_objext
16885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886  (eval $ac_compile) 2>conftest.er1
16887  ac_status=$?
16888  grep -v '^ *+' conftest.er1 >conftest.err
16889  rm -f conftest.er1
16890  cat conftest.err >&5
16891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892  (exit $ac_status); } &&
16893	 { ac_try='test -z "$ac_c_werror_flag"
16894			 || test ! -s conftest.err'
16895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896  (eval $ac_try) 2>&5
16897  ac_status=$?
16898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899  (exit $ac_status); }; } &&
16900	 { ac_try='test -s conftest.$ac_objext'
16901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902  (eval $ac_try) 2>&5
16903  ac_status=$?
16904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905  (exit $ac_status); }; }; then
16906  ac_cv_have_decl_ftello64=yes
16907else
16908  echo "$as_me: failed program was:" >&5
16909sed 's/^/| /' conftest.$ac_ext >&5
16910
16911ac_cv_have_decl_ftello64=no
16912fi
16913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16914fi
16915echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16916echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16917if test $ac_cv_have_decl_ftello64 = yes; then
16918
16919cat >>confdefs.h <<_ACEOF
16920#define HAVE_DECL_FTELLO64 1
16921_ACEOF
16922
16923
16924else
16925  cat >>confdefs.h <<_ACEOF
16926#define HAVE_DECL_FTELLO64 0
16927_ACEOF
16928
16929
16930fi
16931
16932
16933echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16934echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16935if test "${ac_cv_have_decl_fseeko+set}" = set; then
16936  echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938  cat >conftest.$ac_ext <<_ACEOF
16939/* confdefs.h.  */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h.  */
16944$ac_includes_default
16945int
16946main ()
16947{
16948#ifndef fseeko
16949  char *p = (char *) fseeko;
16950#endif
16951
16952  ;
16953  return 0;
16954}
16955_ACEOF
16956rm -f conftest.$ac_objext
16957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958  (eval $ac_compile) 2>conftest.er1
16959  ac_status=$?
16960  grep -v '^ *+' conftest.er1 >conftest.err
16961  rm -f conftest.er1
16962  cat conftest.err >&5
16963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964  (exit $ac_status); } &&
16965	 { ac_try='test -z "$ac_c_werror_flag"
16966			 || test ! -s conftest.err'
16967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968  (eval $ac_try) 2>&5
16969  ac_status=$?
16970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971  (exit $ac_status); }; } &&
16972	 { ac_try='test -s conftest.$ac_objext'
16973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974  (eval $ac_try) 2>&5
16975  ac_status=$?
16976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977  (exit $ac_status); }; }; then
16978  ac_cv_have_decl_fseeko=yes
16979else
16980  echo "$as_me: failed program was:" >&5
16981sed 's/^/| /' conftest.$ac_ext >&5
16982
16983ac_cv_have_decl_fseeko=no
16984fi
16985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16986fi
16987echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16988echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16989if test $ac_cv_have_decl_fseeko = yes; then
16990
16991cat >>confdefs.h <<_ACEOF
16992#define HAVE_DECL_FSEEKO 1
16993_ACEOF
16994
16995
16996else
16997  cat >>confdefs.h <<_ACEOF
16998#define HAVE_DECL_FSEEKO 0
16999_ACEOF
17000
17001
17002fi
17003
17004
17005echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
17006echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
17007if test "${ac_cv_have_decl_fseeko64+set}" = set; then
17008  echo $ECHO_N "(cached) $ECHO_C" >&6
17009else
17010  cat >conftest.$ac_ext <<_ACEOF
17011/* confdefs.h.  */
17012_ACEOF
17013cat confdefs.h >>conftest.$ac_ext
17014cat >>conftest.$ac_ext <<_ACEOF
17015/* end confdefs.h.  */
17016$ac_includes_default
17017int
17018main ()
17019{
17020#ifndef fseeko64
17021  char *p = (char *) fseeko64;
17022#endif
17023
17024  ;
17025  return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext
17029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030  (eval $ac_compile) 2>conftest.er1
17031  ac_status=$?
17032  grep -v '^ *+' conftest.er1 >conftest.err
17033  rm -f conftest.er1
17034  cat conftest.err >&5
17035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036  (exit $ac_status); } &&
17037	 { ac_try='test -z "$ac_c_werror_flag"
17038			 || test ! -s conftest.err'
17039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040  (eval $ac_try) 2>&5
17041  ac_status=$?
17042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043  (exit $ac_status); }; } &&
17044	 { ac_try='test -s conftest.$ac_objext'
17045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046  (eval $ac_try) 2>&5
17047  ac_status=$?
17048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049  (exit $ac_status); }; }; then
17050  ac_cv_have_decl_fseeko64=yes
17051else
17052  echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055ac_cv_have_decl_fseeko64=no
17056fi
17057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17058fi
17059echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
17060echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
17061if test $ac_cv_have_decl_fseeko64 = yes; then
17062
17063cat >>confdefs.h <<_ACEOF
17064#define HAVE_DECL_FSEEKO64 1
17065_ACEOF
17066
17067
17068else
17069  cat >>confdefs.h <<_ACEOF
17070#define HAVE_DECL_FSEEKO64 0
17071_ACEOF
17072
17073
17074fi
17075
17076
17077
17078
17079case "${host}" in
17080*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
17081
17082cat >>confdefs.h <<\_ACEOF
17083#define USE_BINARY_FOPEN 1
17084_ACEOF
17085 ;;
17086esac
17087
17088echo "$as_me:$LINENO: checking whether ffs is declared" >&5
17089echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
17090if test "${ac_cv_have_decl_ffs+set}" = set; then
17091  echo $ECHO_N "(cached) $ECHO_C" >&6
17092else
17093  cat >conftest.$ac_ext <<_ACEOF
17094/* confdefs.h.  */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h.  */
17099$ac_includes_default
17100int
17101main ()
17102{
17103#ifndef ffs
17104  char *p = (char *) ffs;
17105#endif
17106
17107  ;
17108  return 0;
17109}
17110_ACEOF
17111rm -f conftest.$ac_objext
17112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17113  (eval $ac_compile) 2>conftest.er1
17114  ac_status=$?
17115  grep -v '^ *+' conftest.er1 >conftest.err
17116  rm -f conftest.er1
17117  cat conftest.err >&5
17118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119  (exit $ac_status); } &&
17120	 { ac_try='test -z "$ac_c_werror_flag"
17121			 || test ! -s conftest.err'
17122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123  (eval $ac_try) 2>&5
17124  ac_status=$?
17125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126  (exit $ac_status); }; } &&
17127	 { ac_try='test -s conftest.$ac_objext'
17128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129  (eval $ac_try) 2>&5
17130  ac_status=$?
17131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132  (exit $ac_status); }; }; then
17133  ac_cv_have_decl_ffs=yes
17134else
17135  echo "$as_me: failed program was:" >&5
17136sed 's/^/| /' conftest.$ac_ext >&5
17137
17138ac_cv_have_decl_ffs=no
17139fi
17140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17141fi
17142echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
17143echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
17144if test $ac_cv_have_decl_ffs = yes; then
17145
17146cat >>confdefs.h <<_ACEOF
17147#define HAVE_DECL_FFS 1
17148_ACEOF
17149
17150
17151else
17152  cat >>confdefs.h <<_ACEOF
17153#define HAVE_DECL_FFS 0
17154_ACEOF
17155
17156
17157fi
17158
17159
17160echo "$as_me:$LINENO: checking whether free is declared" >&5
17161echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
17162if test "${ac_cv_have_decl_free+set}" = set; then
17163  echo $ECHO_N "(cached) $ECHO_C" >&6
17164else
17165  cat >conftest.$ac_ext <<_ACEOF
17166/* confdefs.h.  */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h.  */
17171$ac_includes_default
17172int
17173main ()
17174{
17175#ifndef free
17176  char *p = (char *) free;
17177#endif
17178
17179  ;
17180  return 0;
17181}
17182_ACEOF
17183rm -f conftest.$ac_objext
17184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17185  (eval $ac_compile) 2>conftest.er1
17186  ac_status=$?
17187  grep -v '^ *+' conftest.er1 >conftest.err
17188  rm -f conftest.er1
17189  cat conftest.err >&5
17190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191  (exit $ac_status); } &&
17192	 { ac_try='test -z "$ac_c_werror_flag"
17193			 || test ! -s conftest.err'
17194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195  (eval $ac_try) 2>&5
17196  ac_status=$?
17197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198  (exit $ac_status); }; } &&
17199	 { ac_try='test -s conftest.$ac_objext'
17200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201  (eval $ac_try) 2>&5
17202  ac_status=$?
17203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204  (exit $ac_status); }; }; then
17205  ac_cv_have_decl_free=yes
17206else
17207  echo "$as_me: failed program was:" >&5
17208sed 's/^/| /' conftest.$ac_ext >&5
17209
17210ac_cv_have_decl_free=no
17211fi
17212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17213fi
17214echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
17215echo "${ECHO_T}$ac_cv_have_decl_free" >&6
17216if test $ac_cv_have_decl_free = yes; then
17217
17218cat >>confdefs.h <<_ACEOF
17219#define HAVE_DECL_FREE 1
17220_ACEOF
17221
17222
17223else
17224  cat >>confdefs.h <<_ACEOF
17225#define HAVE_DECL_FREE 0
17226_ACEOF
17227
17228
17229fi
17230
17231
17232echo "$as_me:$LINENO: checking whether getenv is declared" >&5
17233echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
17234if test "${ac_cv_have_decl_getenv+set}" = set; then
17235  echo $ECHO_N "(cached) $ECHO_C" >&6
17236else
17237  cat >conftest.$ac_ext <<_ACEOF
17238/* confdefs.h.  */
17239_ACEOF
17240cat confdefs.h >>conftest.$ac_ext
17241cat >>conftest.$ac_ext <<_ACEOF
17242/* end confdefs.h.  */
17243$ac_includes_default
17244int
17245main ()
17246{
17247#ifndef getenv
17248  char *p = (char *) getenv;
17249#endif
17250
17251  ;
17252  return 0;
17253}
17254_ACEOF
17255rm -f conftest.$ac_objext
17256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17257  (eval $ac_compile) 2>conftest.er1
17258  ac_status=$?
17259  grep -v '^ *+' conftest.er1 >conftest.err
17260  rm -f conftest.er1
17261  cat conftest.err >&5
17262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263  (exit $ac_status); } &&
17264	 { ac_try='test -z "$ac_c_werror_flag"
17265			 || test ! -s conftest.err'
17266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267  (eval $ac_try) 2>&5
17268  ac_status=$?
17269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270  (exit $ac_status); }; } &&
17271	 { ac_try='test -s conftest.$ac_objext'
17272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273  (eval $ac_try) 2>&5
17274  ac_status=$?
17275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276  (exit $ac_status); }; }; then
17277  ac_cv_have_decl_getenv=yes
17278else
17279  echo "$as_me: failed program was:" >&5
17280sed 's/^/| /' conftest.$ac_ext >&5
17281
17282ac_cv_have_decl_getenv=no
17283fi
17284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17285fi
17286echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17287echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17288if test $ac_cv_have_decl_getenv = yes; then
17289
17290cat >>confdefs.h <<_ACEOF
17291#define HAVE_DECL_GETENV 1
17292_ACEOF
17293
17294
17295else
17296  cat >>confdefs.h <<_ACEOF
17297#define HAVE_DECL_GETENV 0
17298_ACEOF
17299
17300
17301fi
17302
17303
17304echo "$as_me:$LINENO: checking whether malloc is declared" >&5
17305echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
17306if test "${ac_cv_have_decl_malloc+set}" = set; then
17307  echo $ECHO_N "(cached) $ECHO_C" >&6
17308else
17309  cat >conftest.$ac_ext <<_ACEOF
17310/* confdefs.h.  */
17311_ACEOF
17312cat confdefs.h >>conftest.$ac_ext
17313cat >>conftest.$ac_ext <<_ACEOF
17314/* end confdefs.h.  */
17315$ac_includes_default
17316int
17317main ()
17318{
17319#ifndef malloc
17320  char *p = (char *) malloc;
17321#endif
17322
17323  ;
17324  return 0;
17325}
17326_ACEOF
17327rm -f conftest.$ac_objext
17328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17329  (eval $ac_compile) 2>conftest.er1
17330  ac_status=$?
17331  grep -v '^ *+' conftest.er1 >conftest.err
17332  rm -f conftest.er1
17333  cat conftest.err >&5
17334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335  (exit $ac_status); } &&
17336	 { ac_try='test -z "$ac_c_werror_flag"
17337			 || test ! -s conftest.err'
17338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339  (eval $ac_try) 2>&5
17340  ac_status=$?
17341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342  (exit $ac_status); }; } &&
17343	 { ac_try='test -s conftest.$ac_objext'
17344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345  (eval $ac_try) 2>&5
17346  ac_status=$?
17347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348  (exit $ac_status); }; }; then
17349  ac_cv_have_decl_malloc=yes
17350else
17351  echo "$as_me: failed program was:" >&5
17352sed 's/^/| /' conftest.$ac_ext >&5
17353
17354ac_cv_have_decl_malloc=no
17355fi
17356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17357fi
17358echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17359echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17360if test $ac_cv_have_decl_malloc = yes; then
17361
17362cat >>confdefs.h <<_ACEOF
17363#define HAVE_DECL_MALLOC 1
17364_ACEOF
17365
17366
17367else
17368  cat >>confdefs.h <<_ACEOF
17369#define HAVE_DECL_MALLOC 0
17370_ACEOF
17371
17372
17373fi
17374
17375
17376echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17377echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17378if test "${ac_cv_have_decl_realloc+set}" = set; then
17379  echo $ECHO_N "(cached) $ECHO_C" >&6
17380else
17381  cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h.  */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h.  */
17387$ac_includes_default
17388int
17389main ()
17390{
17391#ifndef realloc
17392  char *p = (char *) realloc;
17393#endif
17394
17395  ;
17396  return 0;
17397}
17398_ACEOF
17399rm -f conftest.$ac_objext
17400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401  (eval $ac_compile) 2>conftest.er1
17402  ac_status=$?
17403  grep -v '^ *+' conftest.er1 >conftest.err
17404  rm -f conftest.er1
17405  cat conftest.err >&5
17406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407  (exit $ac_status); } &&
17408	 { ac_try='test -z "$ac_c_werror_flag"
17409			 || test ! -s conftest.err'
17410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411  (eval $ac_try) 2>&5
17412  ac_status=$?
17413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414  (exit $ac_status); }; } &&
17415	 { ac_try='test -s conftest.$ac_objext'
17416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417  (eval $ac_try) 2>&5
17418  ac_status=$?
17419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420  (exit $ac_status); }; }; then
17421  ac_cv_have_decl_realloc=yes
17422else
17423  echo "$as_me: failed program was:" >&5
17424sed 's/^/| /' conftest.$ac_ext >&5
17425
17426ac_cv_have_decl_realloc=no
17427fi
17428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17429fi
17430echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17431echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17432if test $ac_cv_have_decl_realloc = yes; then
17433
17434cat >>confdefs.h <<_ACEOF
17435#define HAVE_DECL_REALLOC 1
17436_ACEOF
17437
17438
17439else
17440  cat >>confdefs.h <<_ACEOF
17441#define HAVE_DECL_REALLOC 0
17442_ACEOF
17443
17444
17445fi
17446
17447
17448echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17449echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17450if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17451  echo $ECHO_N "(cached) $ECHO_C" >&6
17452else
17453  cat >conftest.$ac_ext <<_ACEOF
17454/* confdefs.h.  */
17455_ACEOF
17456cat confdefs.h >>conftest.$ac_ext
17457cat >>conftest.$ac_ext <<_ACEOF
17458/* end confdefs.h.  */
17459$ac_includes_default
17460int
17461main ()
17462{
17463#ifndef stpcpy
17464  char *p = (char *) stpcpy;
17465#endif
17466
17467  ;
17468  return 0;
17469}
17470_ACEOF
17471rm -f conftest.$ac_objext
17472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17473  (eval $ac_compile) 2>conftest.er1
17474  ac_status=$?
17475  grep -v '^ *+' conftest.er1 >conftest.err
17476  rm -f conftest.er1
17477  cat conftest.err >&5
17478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479  (exit $ac_status); } &&
17480	 { ac_try='test -z "$ac_c_werror_flag"
17481			 || test ! -s conftest.err'
17482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483  (eval $ac_try) 2>&5
17484  ac_status=$?
17485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486  (exit $ac_status); }; } &&
17487	 { ac_try='test -s conftest.$ac_objext'
17488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489  (eval $ac_try) 2>&5
17490  ac_status=$?
17491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492  (exit $ac_status); }; }; then
17493  ac_cv_have_decl_stpcpy=yes
17494else
17495  echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498ac_cv_have_decl_stpcpy=no
17499fi
17500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17501fi
17502echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17503echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17504if test $ac_cv_have_decl_stpcpy = yes; then
17505
17506cat >>confdefs.h <<_ACEOF
17507#define HAVE_DECL_STPCPY 1
17508_ACEOF
17509
17510
17511else
17512  cat >>confdefs.h <<_ACEOF
17513#define HAVE_DECL_STPCPY 0
17514_ACEOF
17515
17516
17517fi
17518
17519
17520echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17521echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17522if test "${ac_cv_have_decl_strstr+set}" = set; then
17523  echo $ECHO_N "(cached) $ECHO_C" >&6
17524else
17525  cat >conftest.$ac_ext <<_ACEOF
17526/* confdefs.h.  */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h.  */
17531$ac_includes_default
17532int
17533main ()
17534{
17535#ifndef strstr
17536  char *p = (char *) strstr;
17537#endif
17538
17539  ;
17540  return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext
17544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545  (eval $ac_compile) 2>conftest.er1
17546  ac_status=$?
17547  grep -v '^ *+' conftest.er1 >conftest.err
17548  rm -f conftest.er1
17549  cat conftest.err >&5
17550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551  (exit $ac_status); } &&
17552	 { ac_try='test -z "$ac_c_werror_flag"
17553			 || test ! -s conftest.err'
17554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555  (eval $ac_try) 2>&5
17556  ac_status=$?
17557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558  (exit $ac_status); }; } &&
17559	 { ac_try='test -s conftest.$ac_objext'
17560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561  (eval $ac_try) 2>&5
17562  ac_status=$?
17563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564  (exit $ac_status); }; }; then
17565  ac_cv_have_decl_strstr=yes
17566else
17567  echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570ac_cv_have_decl_strstr=no
17571fi
17572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17573fi
17574echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17575echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17576if test $ac_cv_have_decl_strstr = yes; then
17577
17578cat >>confdefs.h <<_ACEOF
17579#define HAVE_DECL_STRSTR 1
17580_ACEOF
17581
17582
17583else
17584  cat >>confdefs.h <<_ACEOF
17585#define HAVE_DECL_STRSTR 0
17586_ACEOF
17587
17588
17589fi
17590
17591
17592echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17593echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17594if test "${ac_cv_have_decl_snprintf+set}" = set; then
17595  echo $ECHO_N "(cached) $ECHO_C" >&6
17596else
17597  cat >conftest.$ac_ext <<_ACEOF
17598/* confdefs.h.  */
17599_ACEOF
17600cat confdefs.h >>conftest.$ac_ext
17601cat >>conftest.$ac_ext <<_ACEOF
17602/* end confdefs.h.  */
17603$ac_includes_default
17604int
17605main ()
17606{
17607#ifndef snprintf
17608  char *p = (char *) snprintf;
17609#endif
17610
17611  ;
17612  return 0;
17613}
17614_ACEOF
17615rm -f conftest.$ac_objext
17616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17617  (eval $ac_compile) 2>conftest.er1
17618  ac_status=$?
17619  grep -v '^ *+' conftest.er1 >conftest.err
17620  rm -f conftest.er1
17621  cat conftest.err >&5
17622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623  (exit $ac_status); } &&
17624	 { ac_try='test -z "$ac_c_werror_flag"
17625			 || test ! -s conftest.err'
17626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627  (eval $ac_try) 2>&5
17628  ac_status=$?
17629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630  (exit $ac_status); }; } &&
17631	 { ac_try='test -s conftest.$ac_objext'
17632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633  (eval $ac_try) 2>&5
17634  ac_status=$?
17635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636  (exit $ac_status); }; }; then
17637  ac_cv_have_decl_snprintf=yes
17638else
17639  echo "$as_me: failed program was:" >&5
17640sed 's/^/| /' conftest.$ac_ext >&5
17641
17642ac_cv_have_decl_snprintf=no
17643fi
17644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17645fi
17646echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17647echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17648if test $ac_cv_have_decl_snprintf = yes; then
17649
17650cat >>confdefs.h <<_ACEOF
17651#define HAVE_DECL_SNPRINTF 1
17652_ACEOF
17653
17654
17655else
17656  cat >>confdefs.h <<_ACEOF
17657#define HAVE_DECL_SNPRINTF 0
17658_ACEOF
17659
17660
17661fi
17662
17663
17664echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17665echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17666if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17667  echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669  cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h.  */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h.  */
17675$ac_includes_default
17676int
17677main ()
17678{
17679#ifndef vsnprintf
17680  char *p = (char *) vsnprintf;
17681#endif
17682
17683  ;
17684  return 0;
17685}
17686_ACEOF
17687rm -f conftest.$ac_objext
17688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689  (eval $ac_compile) 2>conftest.er1
17690  ac_status=$?
17691  grep -v '^ *+' conftest.er1 >conftest.err
17692  rm -f conftest.er1
17693  cat conftest.err >&5
17694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695  (exit $ac_status); } &&
17696	 { ac_try='test -z "$ac_c_werror_flag"
17697			 || test ! -s conftest.err'
17698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699  (eval $ac_try) 2>&5
17700  ac_status=$?
17701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702  (exit $ac_status); }; } &&
17703	 { ac_try='test -s conftest.$ac_objext'
17704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705  (eval $ac_try) 2>&5
17706  ac_status=$?
17707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708  (exit $ac_status); }; }; then
17709  ac_cv_have_decl_vsnprintf=yes
17710else
17711  echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713
17714ac_cv_have_decl_vsnprintf=no
17715fi
17716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17717fi
17718echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17719echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17720if test $ac_cv_have_decl_vsnprintf = yes; then
17721
17722cat >>confdefs.h <<_ACEOF
17723#define HAVE_DECL_VSNPRINTF 1
17724_ACEOF
17725
17726
17727else
17728  cat >>confdefs.h <<_ACEOF
17729#define HAVE_DECL_VSNPRINTF 0
17730_ACEOF
17731
17732
17733fi
17734
17735
17736
17737# Link in zlib if we can.  This allows us to read compressed debug sections.
17738# This is used only by compress.c.
17739echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
17740echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
17741if test "${ac_cv_search_zlibVersion+set}" = set; then
17742  echo $ECHO_N "(cached) $ECHO_C" >&6
17743else
17744  ac_func_search_save_LIBS=$LIBS
17745ac_cv_search_zlibVersion=no
17746cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h.  */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
17751/* end confdefs.h.  */
17752
17753/* Override any gcc2 internal prototype to avoid an error.  */
17754#ifdef __cplusplus
17755extern "C"
17756#endif
17757/* We use char because int might match the return type of a gcc2
17758   builtin and then its argument prototype would still apply.  */
17759char zlibVersion ();
17760int
17761main ()
17762{
17763zlibVersion ();
17764  ;
17765  return 0;
17766}
17767_ACEOF
17768rm -f conftest.$ac_objext conftest$ac_exeext
17769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17770  (eval $ac_link) 2>conftest.er1
17771  ac_status=$?
17772  grep -v '^ *+' conftest.er1 >conftest.err
17773  rm -f conftest.er1
17774  cat conftest.err >&5
17775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776  (exit $ac_status); } &&
17777	 { ac_try='test -z "$ac_c_werror_flag"
17778			 || test ! -s conftest.err'
17779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780  (eval $ac_try) 2>&5
17781  ac_status=$?
17782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783  (exit $ac_status); }; } &&
17784	 { ac_try='test -s conftest$ac_exeext'
17785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786  (eval $ac_try) 2>&5
17787  ac_status=$?
17788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789  (exit $ac_status); }; }; then
17790  ac_cv_search_zlibVersion="none required"
17791else
17792  echo "$as_me: failed program was:" >&5
17793sed 's/^/| /' conftest.$ac_ext >&5
17794
17795fi
17796rm -f conftest.err conftest.$ac_objext \
17797      conftest$ac_exeext conftest.$ac_ext
17798if test "$ac_cv_search_zlibVersion" = no; then
17799  for ac_lib in z; do
17800    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17801    cat >conftest.$ac_ext <<_ACEOF
17802/* confdefs.h.  */
17803_ACEOF
17804cat confdefs.h >>conftest.$ac_ext
17805cat >>conftest.$ac_ext <<_ACEOF
17806/* end confdefs.h.  */
17807
17808/* Override any gcc2 internal prototype to avoid an error.  */
17809#ifdef __cplusplus
17810extern "C"
17811#endif
17812/* We use char because int might match the return type of a gcc2
17813   builtin and then its argument prototype would still apply.  */
17814char zlibVersion ();
17815int
17816main ()
17817{
17818zlibVersion ();
17819  ;
17820  return 0;
17821}
17822_ACEOF
17823rm -f conftest.$ac_objext conftest$ac_exeext
17824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825  (eval $ac_link) 2>conftest.er1
17826  ac_status=$?
17827  grep -v '^ *+' conftest.er1 >conftest.err
17828  rm -f conftest.er1
17829  cat conftest.err >&5
17830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831  (exit $ac_status); } &&
17832	 { ac_try='test -z "$ac_c_werror_flag"
17833			 || test ! -s conftest.err'
17834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835  (eval $ac_try) 2>&5
17836  ac_status=$?
17837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838  (exit $ac_status); }; } &&
17839	 { ac_try='test -s conftest$ac_exeext'
17840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841  (eval $ac_try) 2>&5
17842  ac_status=$?
17843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844  (exit $ac_status); }; }; then
17845  ac_cv_search_zlibVersion="-l$ac_lib"
17846break
17847else
17848  echo "$as_me: failed program was:" >&5
17849sed 's/^/| /' conftest.$ac_ext >&5
17850
17851fi
17852rm -f conftest.err conftest.$ac_objext \
17853      conftest$ac_exeext conftest.$ac_ext
17854  done
17855fi
17856LIBS=$ac_func_search_save_LIBS
17857fi
17858echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
17859echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
17860if test "$ac_cv_search_zlibVersion" != no; then
17861  test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
17862
17863for ac_header in zlib.h
17864do
17865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17866if eval "test \"\${$as_ac_Header+set}\" = set"; then
17867  echo "$as_me:$LINENO: checking for $ac_header" >&5
17868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17869if eval "test \"\${$as_ac_Header+set}\" = set"; then
17870  echo $ECHO_N "(cached) $ECHO_C" >&6
17871fi
17872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17874else
17875  # Is the header compilable?
17876echo "$as_me:$LINENO: checking $ac_header usability" >&5
17877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17878cat >conftest.$ac_ext <<_ACEOF
17879/* confdefs.h.  */
17880_ACEOF
17881cat confdefs.h >>conftest.$ac_ext
17882cat >>conftest.$ac_ext <<_ACEOF
17883/* end confdefs.h.  */
17884$ac_includes_default
17885#include <$ac_header>
17886_ACEOF
17887rm -f conftest.$ac_objext
17888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889  (eval $ac_compile) 2>conftest.er1
17890  ac_status=$?
17891  grep -v '^ *+' conftest.er1 >conftest.err
17892  rm -f conftest.er1
17893  cat conftest.err >&5
17894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895  (exit $ac_status); } &&
17896	 { ac_try='test -z "$ac_c_werror_flag"
17897			 || test ! -s conftest.err'
17898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899  (eval $ac_try) 2>&5
17900  ac_status=$?
17901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902  (exit $ac_status); }; } &&
17903	 { ac_try='test -s conftest.$ac_objext'
17904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905  (eval $ac_try) 2>&5
17906  ac_status=$?
17907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908  (exit $ac_status); }; }; then
17909  ac_header_compiler=yes
17910else
17911  echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
17914ac_header_compiler=no
17915fi
17916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17918echo "${ECHO_T}$ac_header_compiler" >&6
17919
17920# Is the header present?
17921echo "$as_me:$LINENO: checking $ac_header presence" >&5
17922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17923cat >conftest.$ac_ext <<_ACEOF
17924/* confdefs.h.  */
17925_ACEOF
17926cat confdefs.h >>conftest.$ac_ext
17927cat >>conftest.$ac_ext <<_ACEOF
17928/* end confdefs.h.  */
17929#include <$ac_header>
17930_ACEOF
17931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17932  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17933  ac_status=$?
17934  grep -v '^ *+' conftest.er1 >conftest.err
17935  rm -f conftest.er1
17936  cat conftest.err >&5
17937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938  (exit $ac_status); } >/dev/null; then
17939  if test -s conftest.err; then
17940    ac_cpp_err=$ac_c_preproc_warn_flag
17941    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17942  else
17943    ac_cpp_err=
17944  fi
17945else
17946  ac_cpp_err=yes
17947fi
17948if test -z "$ac_cpp_err"; then
17949  ac_header_preproc=yes
17950else
17951  echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954  ac_header_preproc=no
17955fi
17956rm -f conftest.err conftest.$ac_ext
17957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17958echo "${ECHO_T}$ac_header_preproc" >&6
17959
17960# So?  What about this header?
17961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17962  yes:no: )
17963    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17965    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17967    ac_header_preproc=yes
17968    ;;
17969  no:yes:* )
17970    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17972    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17973echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17974    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17976    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17977echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17978    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17980    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17982    (
17983      cat <<\_ASBOX
17984## ------------------------------------------ ##
17985## Report this to the AC_PACKAGE_NAME lists.  ##
17986## ------------------------------------------ ##
17987_ASBOX
17988    ) |
17989      sed "s/^/$as_me: WARNING:     /" >&2
17990    ;;
17991esac
17992echo "$as_me:$LINENO: checking for $ac_header" >&5
17993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17994if eval "test \"\${$as_ac_Header+set}\" = set"; then
17995  echo $ECHO_N "(cached) $ECHO_C" >&6
17996else
17997  eval "$as_ac_Header=\$ac_header_preproc"
17998fi
17999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18001
18002fi
18003if test `eval echo '${'$as_ac_Header'}'` = yes; then
18004  cat >>confdefs.h <<_ACEOF
18005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18006_ACEOF
18007
18008fi
18009
18010done
18011
18012fi
18013
18014
18015# If we are configured native, pick a core file support file.
18016COREFILE=
18017COREFLAG=
18018TRAD_HEADER=
18019if test "${target}" = "${host}"; then
18020  case "${host}" in
18021  alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
18022	COREFILE=''
18023	;;
18024  alpha*-*-linux-*)
18025	COREFILE=trad-core.lo
18026	TRAD_HEADER='"hosts/alphalinux.h"'
18027	;;
18028  alpha*-*-netbsd* | alpha*-*-openbsd*)
18029	COREFILE=netbsd-core.lo
18030	;;
18031  alpha*-*-*)		COREFILE=osf-core.lo ;;
18032  arm-*-freebsd* | arm-*-kfreebsd*-gnu)
18033			COREFILE='' ;;
18034  arm-*-netbsd* | arm-*-openbsd*)
18035	COREFILE=netbsd-core.lo
18036	;;
18037  arm-*-riscix)		COREFILE=trad-core.lo ;;
18038  arm*-*-netbsd*)	COREFILE=netbsd-core.lo ;;
18039  hppa*-*-hpux*)	COREFILE=hpux-core.lo ;;
18040  hppa*-*-hiux*)	COREFILE=hpux-core.lo ;;
18041  hppa*-*-mpeix*)	COREFILE=hpux-core.lo ;;
18042  hppa*-*-bsd*)		COREFILE="hpux-core.lo hppabsd-core.lo"
18043			COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
18044  hppa*-*-netbsd* | hppa*-*-openbsd*)
18045	COREFILE=netbsd-core.lo
18046	;;
18047
18048  i370-*-*)
18049	COREFILE=trad-core.lo
18050	TRAD_HEADER='"hosts/i370linux.h"'
18051	;;
18052
18053  i[3-7]86-sequent-bsd*)
18054	COREFILE=trad-core.lo
18055	TRAD_HEADER='"hosts/symmetry.h"'
18056	;;
18057  i[3-7]86-sequent-sysv4*) ;;
18058  i[3-7]86-sequent-sysv*)
18059	COREFILE=trad-core.lo
18060	TRAD_HEADER='"hosts/symmetry.h"'
18061	;;
18062  i[3-7]86-*-bsdi)
18063	COREFILE=
18064	;;
18065  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*)
18066	COREFILE=trad-core.lo
18067	TRAD_HEADER='"hosts/i386bsd.h"'
18068	;;
18069  i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
18070	COREFILE=''
18071	TRAD_HEADER='"hosts/i386bsd.h"'
18072	;;
18073  i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
18074	COREFILE=netbsd-core.lo
18075	;;
18076  i[3-7]86-esix-sysv3*)
18077	COREFILE=trad-core.lo
18078	TRAD_HEADER='"hosts/esix.h"'
18079	;;
18080  i[3-7]86-*-sco3.2v5*)
18081	COREFILE=sco5-core.lo
18082	;;
18083  i[3-7]86-*-sco* | i[3-7]86-*-isc*)
18084	COREFILE=trad-core.lo
18085	TRAD_HEADER='"hosts/i386sco.h"'
18086	;;
18087  i[3-7]86-*-mach3*)
18088	COREFILE=trad-core.lo
18089	TRAD_HEADER='"hosts/i386mach3.h"'
18090	;;
18091  i[3-7]86-*-linux-*)
18092	COREFILE=trad-core.lo
18093	TRAD_HEADER='"hosts/i386linux.h"'
18094	;;
18095  i[3-7]86-*-isc*)	COREFILE=trad-core.lo ;;
18096  i[3-7]86-*-aix*)	COREFILE=aix386-core.lo ;;
18097  i860-*-mach3* | i860-*-osf1*)
18098	COREFILE=trad-core.lo
18099	TRAD_HEADER='"hosts/i860mach3.h"'
18100	;;
18101  mips*-*-netbsd* | mips*-*-openbsd*)
18102	COREFILE=netbsd-core.lo
18103	;;
18104  mips-dec-*)
18105	COREFILE=trad-core.lo
18106	TRAD_HEADER='"hosts/decstation.h"'
18107	;;
18108  mips-sgi-irix4*)	COREFILE=irix-core.lo ;;
18109  mips-sgi-irix5*)	COREFILE=irix-core.lo ;;
18110  mips-sgi-irix6*)	COREFILE=irix-core.lo ;;
18111  mips-*-sysv4*)	;;
18112  mips-*-sysv* | mips-*-riscos*)
18113	COREFILE=trad-core.lo
18114	TRAD_HEADER='"hosts/riscos.h"'
18115	;;
18116  mips-sony-bsd*)
18117	COREFILE=trad-core.lo
18118	TRAD_HEADER='"hosts/news-mips.h"'
18119	;;
18120  m68*-bull*-sysv*)
18121	COREFILE=trad-core.lo
18122	TRAD_HEADER='"hosts/dpx2.h"'
18123	;;
18124  m68*-hp-hpux*)	COREFILE=hpux-core.lo ;;
18125  m68*-hp-bsd*)
18126	COREFILE=trad-core.lo
18127	TRAD_HEADER='"hosts/hp300bsd.h"'
18128	;;
18129  m68*-*-linux-*)
18130	COREFILE=trad-core.lo
18131	TRAD_HEADER='"hosts/m68klinux.h"'
18132	;;
18133  m68*-motorola-sysv*)
18134	COREFILE=trad-core.lo
18135	TRAD_HEADER='"hosts/delta68.h"'
18136	;;
18137  m68*-sony-*)
18138	COREFILE=trad-core.lo
18139	TRAD_HEADER='"hosts/news.h"'
18140	;;
18141  m68*-*-netbsd* | m68*-*-openbsd*)
18142	COREFILE=netbsd-core.lo
18143	;;
18144  m68*-apple-aux*)
18145	COREFILE=trad-core.lo
18146	TRAD_HEADER='"hosts/m68kaux.h"'
18147	;;
18148  m88*-*-sysv4*)
18149	;;
18150  m88*-motorola-sysv*)
18151	COREFILE=ptrace-core.lo
18152	;;
18153  m88*-*-mach3*)
18154	COREFILE=trad-core.lo
18155	TRAD_HEADER='"hosts/m88kmach3.h"'
18156	;;
18157  m88*-*-openbsd*)
18158	COREFILE=netbsd-core.lo
18159	;;
18160  ns32k-pc532-mach)
18161	COREFILE=trad-core.lo
18162	TRAD_HEADER='"hosts/pc532mach.h"'
18163	;;
18164  ns32k-*-netbsd* | ns32k-*-openbsd*)
18165	COREFILE=netbsd-core.lo
18166	;;
18167  rs6000-*-lynx*)
18168  	COREFILE=lynx-core.lo
18169	;;
18170  rs6000-*-aix5.* | powerpc-*-aix5.*)
18171        COREFILE=rs6000-core.lo
18172	COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
18173	;;
18174  rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
18175        COREFILE=rs6000-core.lo
18176	COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
18177	# Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
18178	# have c_impl as a member of struct core_dumpx
18179	echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
18180echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
18181	cat >conftest.$ac_ext <<_ACEOF
18182/* confdefs.h.  */
18183_ACEOF
18184cat confdefs.h >>conftest.$ac_ext
18185cat >>conftest.$ac_ext <<_ACEOF
18186/* end confdefs.h.  */
18187#include <core.h>
18188int
18189main ()
18190{
18191struct core_dumpx c; c.c_impl = 0;
18192  ;
18193  return 0;
18194}
18195_ACEOF
18196rm -f conftest.$ac_objext
18197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18198  (eval $ac_compile) 2>conftest.er1
18199  ac_status=$?
18200  grep -v '^ *+' conftest.er1 >conftest.err
18201  rm -f conftest.er1
18202  cat conftest.err >&5
18203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204  (exit $ac_status); } &&
18205	 { ac_try='test -z "$ac_c_werror_flag"
18206			 || test ! -s conftest.err'
18207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208  (eval $ac_try) 2>&5
18209  ac_status=$?
18210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211  (exit $ac_status); }; } &&
18212	 { ac_try='test -s conftest.$ac_objext'
18213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214  (eval $ac_try) 2>&5
18215  ac_status=$?
18216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217  (exit $ac_status); }; }; then
18218
18219cat >>confdefs.h <<\_ACEOF
18220#define HAVE_ST_C_IMPL 1
18221_ACEOF
18222
18223	  echo "$as_me:$LINENO: result: yes" >&5
18224echo "${ECHO_T}yes" >&6
18225else
18226  echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229echo "$as_me:$LINENO: result: no" >&5
18230echo "${ECHO_T}no" >&6
18231fi
18232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18233	;;
18234  rs6000-*-aix4*)	COREFILE=rs6000-core.lo ;;
18235  rs6000-*-*)		COREFILE=rs6000-core.lo ;;
18236  powerpc-*-aix4*)	COREFILE=rs6000-core.lo ;;
18237  powerpc-*-aix*)	COREFILE=rs6000-core.lo ;;
18238  powerpc-*-beos*)	;;
18239  powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
18240		        COREFILE='' ;;
18241  powerpc-*-netbsd*)	COREFILE=netbsd-core.lo ;;
18242  powerpc-*-*bsd*)	COREFILE=netbsd-core.lo ;;
18243  s390*-*-*)            COREFILE=trad-core.lo ;;
18244  sh*-*-netbsd* | sh*-*-openbsd*)
18245	COREFILE=netbsd-core.lo
18246	;;
18247  sparc-*-netbsd* | sparc*-*-openbsd*)
18248	COREFILE=netbsd-core.lo
18249	;;
18250  tahoe-*-*)
18251	COREFILE=trad-core.lo
18252	TRAD_HEADER='"hosts/tahoe.h"'
18253	;;
18254  vax-*-netbsd* | vax-*-openbsd*)
18255  	COREFILE=netbsd-core.lo
18256	;;
18257  vax-*-ultrix2*)
18258	COREFILE=trad-core.lo
18259	TRAD_HEADER='"hosts/vaxult2.h"'
18260	;;
18261  vax-*-ultrix*)
18262	COREFILE=trad-core.lo
18263	TRAD_HEADER='"hosts/vaxult2.h"'
18264	;;
18265  vax-*-linux-*)
18266	COREFILE=trad-core.lo
18267	TRAD_HEADER='"hosts/vaxlinux.h"'
18268	;;
18269  vax-*-*)
18270	COREFILE=trad-core.lo
18271	TRAD_HEADER='"hosts/vaxbsd.h"'
18272	;;
18273  x86_64-*-netbsd* | x86_64-*-openbsd*)
18274	COREFILE=netbsd-core.lo
18275	;;
18276  esac
18277
18278  case "$COREFILE" in
18279  aix386-core.lo)	COREFLAG=-DAIX386_CORE ;;
18280  hppabsd-core.lo)	COREFLAG=-DHPPABSD_CORE ;;
18281  hpux-core.lo)		COREFLAG=-DHPUX_CORE ;;
18282  irix-core.lo)		COREFLAG=-DIRIX_CORE ;;
18283  lynx-core.lo)		COREFLAG=-DLYNX_CORE ;;
18284  netbsd-core.lo)	COREFLAG=-DNETBSD_CORE ;;
18285  osf-core.lo)		COREFLAG=-DOSF_CORE ;;
18286  ptrace-core.lo)	COREFLAG=-DPTRACE_CORE ;;
18287  rs6000-core.lo)	COREFLAG="$COREFLAG -DAIX_CORE" ;;
18288  sco5-core.lo)		COREFLAG="$COREFLAG -DSCO5_CORE" ;;
18289  trad-core.lo)		COREFLAG="$COREFLAG -DTRAD_CORE" ;;
18290  esac
18291
18292  # ELF corefile support has several flavors, but all of
18293  # them use something called <sys/procfs.h>
18294
18295for ac_header in sys/procfs.h
18296do
18297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18298if eval "test \"\${$as_ac_Header+set}\" = set"; then
18299  echo "$as_me:$LINENO: checking for $ac_header" >&5
18300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18301if eval "test \"\${$as_ac_Header+set}\" = set"; then
18302  echo $ECHO_N "(cached) $ECHO_C" >&6
18303fi
18304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18306else
18307  # Is the header compilable?
18308echo "$as_me:$LINENO: checking $ac_header usability" >&5
18309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18310cat >conftest.$ac_ext <<_ACEOF
18311/* confdefs.h.  */
18312_ACEOF
18313cat confdefs.h >>conftest.$ac_ext
18314cat >>conftest.$ac_ext <<_ACEOF
18315/* end confdefs.h.  */
18316$ac_includes_default
18317#include <$ac_header>
18318_ACEOF
18319rm -f conftest.$ac_objext
18320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18321  (eval $ac_compile) 2>conftest.er1
18322  ac_status=$?
18323  grep -v '^ *+' conftest.er1 >conftest.err
18324  rm -f conftest.er1
18325  cat conftest.err >&5
18326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327  (exit $ac_status); } &&
18328	 { ac_try='test -z "$ac_c_werror_flag"
18329			 || test ! -s conftest.err'
18330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331  (eval $ac_try) 2>&5
18332  ac_status=$?
18333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334  (exit $ac_status); }; } &&
18335	 { ac_try='test -s conftest.$ac_objext'
18336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337  (eval $ac_try) 2>&5
18338  ac_status=$?
18339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340  (exit $ac_status); }; }; then
18341  ac_header_compiler=yes
18342else
18343  echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346ac_header_compiler=no
18347fi
18348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18350echo "${ECHO_T}$ac_header_compiler" >&6
18351
18352# Is the header present?
18353echo "$as_me:$LINENO: checking $ac_header presence" >&5
18354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18355cat >conftest.$ac_ext <<_ACEOF
18356/* confdefs.h.  */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h.  */
18361#include <$ac_header>
18362_ACEOF
18363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18364  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18365  ac_status=$?
18366  grep -v '^ *+' conftest.er1 >conftest.err
18367  rm -f conftest.er1
18368  cat conftest.err >&5
18369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370  (exit $ac_status); } >/dev/null; then
18371  if test -s conftest.err; then
18372    ac_cpp_err=$ac_c_preproc_warn_flag
18373    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18374  else
18375    ac_cpp_err=
18376  fi
18377else
18378  ac_cpp_err=yes
18379fi
18380if test -z "$ac_cpp_err"; then
18381  ac_header_preproc=yes
18382else
18383  echo "$as_me: failed program was:" >&5
18384sed 's/^/| /' conftest.$ac_ext >&5
18385
18386  ac_header_preproc=no
18387fi
18388rm -f conftest.err conftest.$ac_ext
18389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18390echo "${ECHO_T}$ac_header_preproc" >&6
18391
18392# So?  What about this header?
18393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18394  yes:no: )
18395    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18397    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18399    ac_header_preproc=yes
18400    ;;
18401  no:yes:* )
18402    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18404    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18405echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18406    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18408    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18409echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18412    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18414    (
18415      cat <<\_ASBOX
18416## ------------------------------------------ ##
18417## Report this to the AC_PACKAGE_NAME lists.  ##
18418## ------------------------------------------ ##
18419_ASBOX
18420    ) |
18421      sed "s/^/$as_me: WARNING:     /" >&2
18422    ;;
18423esac
18424echo "$as_me:$LINENO: checking for $ac_header" >&5
18425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18426if eval "test \"\${$as_ac_Header+set}\" = set"; then
18427  echo $ECHO_N "(cached) $ECHO_C" >&6
18428else
18429  eval "$as_ac_Header=\$ac_header_preproc"
18430fi
18431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18433
18434fi
18435if test `eval echo '${'$as_ac_Header'}'` = yes; then
18436  cat >>confdefs.h <<_ACEOF
18437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18438_ACEOF
18439
18440fi
18441
18442done
18443
18444  if test "$ac_cv_header_sys_procfs_h" = yes; then
18445    echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
18446echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
18447 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
18448  echo $ECHO_N "(cached) $ECHO_C" >&6
18449else
18450  cat >conftest.$ac_ext <<_ACEOF
18451/* confdefs.h.  */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h.  */
18456
18457#define _SYSCALL32
18458#include <sys/procfs.h>
18459int
18460main ()
18461{
18462prstatus_t avar
18463  ;
18464  return 0;
18465}
18466_ACEOF
18467rm -f conftest.$ac_objext
18468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18469  (eval $ac_compile) 2>conftest.er1
18470  ac_status=$?
18471  grep -v '^ *+' conftest.er1 >conftest.err
18472  rm -f conftest.er1
18473  cat conftest.err >&5
18474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475  (exit $ac_status); } &&
18476	 { ac_try='test -z "$ac_c_werror_flag"
18477			 || test ! -s conftest.err'
18478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479  (eval $ac_try) 2>&5
18480  ac_status=$?
18481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482  (exit $ac_status); }; } &&
18483	 { ac_try='test -s conftest.$ac_objext'
18484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485  (eval $ac_try) 2>&5
18486  ac_status=$?
18487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488  (exit $ac_status); }; }; then
18489  bfd_cv_have_sys_procfs_type_prstatus_t=yes
18490else
18491  echo "$as_me: failed program was:" >&5
18492sed 's/^/| /' conftest.$ac_ext >&5
18493
18494bfd_cv_have_sys_procfs_type_prstatus_t=no
18495
18496fi
18497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18498fi
18499
18500 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
18501
18502cat >>confdefs.h <<\_ACEOF
18503#define HAVE_PRSTATUS_T 1
18504_ACEOF
18505
18506 fi
18507 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
18508echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
18509
18510    echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
18511echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
18512 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
18513  echo $ECHO_N "(cached) $ECHO_C" >&6
18514else
18515  cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h.  */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h.  */
18521
18522#define _SYSCALL32
18523#include <sys/procfs.h>
18524int
18525main ()
18526{
18527prstatus32_t avar
18528  ;
18529  return 0;
18530}
18531_ACEOF
18532rm -f conftest.$ac_objext
18533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18534  (eval $ac_compile) 2>conftest.er1
18535  ac_status=$?
18536  grep -v '^ *+' conftest.er1 >conftest.err
18537  rm -f conftest.er1
18538  cat conftest.err >&5
18539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540  (exit $ac_status); } &&
18541	 { ac_try='test -z "$ac_c_werror_flag"
18542			 || test ! -s conftest.err'
18543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544  (eval $ac_try) 2>&5
18545  ac_status=$?
18546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547  (exit $ac_status); }; } &&
18548	 { ac_try='test -s conftest.$ac_objext'
18549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550  (eval $ac_try) 2>&5
18551  ac_status=$?
18552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553  (exit $ac_status); }; }; then
18554  bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18555else
18556  echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559bfd_cv_have_sys_procfs_type_prstatus32_t=no
18560
18561fi
18562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18563fi
18564
18565 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
18566
18567cat >>confdefs.h <<\_ACEOF
18568#define HAVE_PRSTATUS32_T 1
18569_ACEOF
18570
18571 fi
18572 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18573echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
18574
18575    echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18576echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18577 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
18578  echo $ECHO_N "(cached) $ECHO_C" >&6
18579else
18580  cat >conftest.$ac_ext <<_ACEOF
18581/* confdefs.h.  */
18582_ACEOF
18583cat confdefs.h >>conftest.$ac_ext
18584cat >>conftest.$ac_ext <<_ACEOF
18585/* end confdefs.h.  */
18586
18587#define _SYSCALL32
18588#include <sys/procfs.h>
18589int
18590main ()
18591{
18592prstatus_t avar; void* aref = (void*) &avar.pr_who
18593  ;
18594  return 0;
18595}
18596_ACEOF
18597rm -f conftest.$ac_objext
18598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18599  (eval $ac_compile) 2>conftest.er1
18600  ac_status=$?
18601  grep -v '^ *+' conftest.er1 >conftest.err
18602  rm -f conftest.er1
18603  cat conftest.err >&5
18604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605  (exit $ac_status); } &&
18606	 { ac_try='test -z "$ac_c_werror_flag"
18607			 || test ! -s conftest.err'
18608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609  (eval $ac_try) 2>&5
18610  ac_status=$?
18611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612  (exit $ac_status); }; } &&
18613	 { ac_try='test -s conftest.$ac_objext'
18614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615  (eval $ac_try) 2>&5
18616  ac_status=$?
18617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618  (exit $ac_status); }; }; then
18619  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18620else
18621  echo "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18625
18626fi
18627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18628fi
18629
18630 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18631
18632cat >>confdefs.h <<\_ACEOF
18633#define HAVE_PRSTATUS_T_PR_WHO 1
18634_ACEOF
18635
18636 fi
18637 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18638echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18639
18640    echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18641echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18642 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18643  echo $ECHO_N "(cached) $ECHO_C" >&6
18644else
18645  cat >conftest.$ac_ext <<_ACEOF
18646/* confdefs.h.  */
18647_ACEOF
18648cat confdefs.h >>conftest.$ac_ext
18649cat >>conftest.$ac_ext <<_ACEOF
18650/* end confdefs.h.  */
18651
18652#define _SYSCALL32
18653#include <sys/procfs.h>
18654int
18655main ()
18656{
18657prstatus32_t avar; void* aref = (void*) &avar.pr_who
18658  ;
18659  return 0;
18660}
18661_ACEOF
18662rm -f conftest.$ac_objext
18663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18664  (eval $ac_compile) 2>conftest.er1
18665  ac_status=$?
18666  grep -v '^ *+' conftest.er1 >conftest.err
18667  rm -f conftest.er1
18668  cat conftest.err >&5
18669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670  (exit $ac_status); } &&
18671	 { ac_try='test -z "$ac_c_werror_flag"
18672			 || test ! -s conftest.err'
18673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674  (eval $ac_try) 2>&5
18675  ac_status=$?
18676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677  (exit $ac_status); }; } &&
18678	 { ac_try='test -s conftest.$ac_objext'
18679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680  (eval $ac_try) 2>&5
18681  ac_status=$?
18682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683  (exit $ac_status); }; }; then
18684  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18685else
18686  echo "$as_me: failed program was:" >&5
18687sed 's/^/| /' conftest.$ac_ext >&5
18688
18689bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18690
18691fi
18692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18693fi
18694
18695 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18696
18697cat >>confdefs.h <<\_ACEOF
18698#define HAVE_PRSTATUS32_T_PR_WHO 1
18699_ACEOF
18700
18701 fi
18702 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18703echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18704
18705    echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18706echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18707 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18708  echo $ECHO_N "(cached) $ECHO_C" >&6
18709else
18710  cat >conftest.$ac_ext <<_ACEOF
18711/* confdefs.h.  */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h.  */
18716
18717#define _SYSCALL32
18718#include <sys/procfs.h>
18719int
18720main ()
18721{
18722pstatus_t avar
18723  ;
18724  return 0;
18725}
18726_ACEOF
18727rm -f conftest.$ac_objext
18728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18729  (eval $ac_compile) 2>conftest.er1
18730  ac_status=$?
18731  grep -v '^ *+' conftest.er1 >conftest.err
18732  rm -f conftest.er1
18733  cat conftest.err >&5
18734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735  (exit $ac_status); } &&
18736	 { ac_try='test -z "$ac_c_werror_flag"
18737			 || test ! -s conftest.err'
18738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739  (eval $ac_try) 2>&5
18740  ac_status=$?
18741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742  (exit $ac_status); }; } &&
18743	 { ac_try='test -s conftest.$ac_objext'
18744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745  (eval $ac_try) 2>&5
18746  ac_status=$?
18747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748  (exit $ac_status); }; }; then
18749  bfd_cv_have_sys_procfs_type_pstatus_t=yes
18750else
18751  echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
18754bfd_cv_have_sys_procfs_type_pstatus_t=no
18755
18756fi
18757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18758fi
18759
18760 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18761
18762cat >>confdefs.h <<\_ACEOF
18763#define HAVE_PSTATUS_T 1
18764_ACEOF
18765
18766 fi
18767 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18768echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18769
18770    echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18771echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18772 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18773  echo $ECHO_N "(cached) $ECHO_C" >&6
18774else
18775  cat >conftest.$ac_ext <<_ACEOF
18776/* confdefs.h.  */
18777_ACEOF
18778cat confdefs.h >>conftest.$ac_ext
18779cat >>conftest.$ac_ext <<_ACEOF
18780/* end confdefs.h.  */
18781
18782#define _SYSCALL32
18783#include <sys/procfs.h>
18784int
18785main ()
18786{
18787pxstatus_t avar
18788  ;
18789  return 0;
18790}
18791_ACEOF
18792rm -f conftest.$ac_objext
18793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18794  (eval $ac_compile) 2>conftest.er1
18795  ac_status=$?
18796  grep -v '^ *+' conftest.er1 >conftest.err
18797  rm -f conftest.er1
18798  cat conftest.err >&5
18799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800  (exit $ac_status); } &&
18801	 { ac_try='test -z "$ac_c_werror_flag"
18802			 || test ! -s conftest.err'
18803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804  (eval $ac_try) 2>&5
18805  ac_status=$?
18806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807  (exit $ac_status); }; } &&
18808	 { ac_try='test -s conftest.$ac_objext'
18809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810  (eval $ac_try) 2>&5
18811  ac_status=$?
18812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813  (exit $ac_status); }; }; then
18814  bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18815else
18816  echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819bfd_cv_have_sys_procfs_type_pxstatus_t=no
18820
18821fi
18822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18823fi
18824
18825 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18826
18827cat >>confdefs.h <<\_ACEOF
18828#define HAVE_PXSTATUS_T 1
18829_ACEOF
18830
18831 fi
18832 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18833echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18834
18835    echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18836echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18837 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18838  echo $ECHO_N "(cached) $ECHO_C" >&6
18839else
18840  cat >conftest.$ac_ext <<_ACEOF
18841/* confdefs.h.  */
18842_ACEOF
18843cat confdefs.h >>conftest.$ac_ext
18844cat >>conftest.$ac_ext <<_ACEOF
18845/* end confdefs.h.  */
18846
18847#define _SYSCALL32
18848#include <sys/procfs.h>
18849int
18850main ()
18851{
18852pstatus32_t avar
18853  ;
18854  return 0;
18855}
18856_ACEOF
18857rm -f conftest.$ac_objext
18858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18859  (eval $ac_compile) 2>conftest.er1
18860  ac_status=$?
18861  grep -v '^ *+' conftest.er1 >conftest.err
18862  rm -f conftest.er1
18863  cat conftest.err >&5
18864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865  (exit $ac_status); } &&
18866	 { ac_try='test -z "$ac_c_werror_flag"
18867			 || test ! -s conftest.err'
18868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869  (eval $ac_try) 2>&5
18870  ac_status=$?
18871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872  (exit $ac_status); }; } &&
18873	 { ac_try='test -s conftest.$ac_objext'
18874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875  (eval $ac_try) 2>&5
18876  ac_status=$?
18877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878  (exit $ac_status); }; }; then
18879  bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18880else
18881  echo "$as_me: failed program was:" >&5
18882sed 's/^/| /' conftest.$ac_ext >&5
18883
18884bfd_cv_have_sys_procfs_type_pstatus32_t=no
18885
18886fi
18887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18888fi
18889
18890 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18891
18892cat >>confdefs.h <<\_ACEOF
18893#define HAVE_PSTATUS32_T 1
18894_ACEOF
18895
18896 fi
18897 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18898echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18899
18900    echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18901echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18902 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18903  echo $ECHO_N "(cached) $ECHO_C" >&6
18904else
18905  cat >conftest.$ac_ext <<_ACEOF
18906/* confdefs.h.  */
18907_ACEOF
18908cat confdefs.h >>conftest.$ac_ext
18909cat >>conftest.$ac_ext <<_ACEOF
18910/* end confdefs.h.  */
18911
18912#define _SYSCALL32
18913#include <sys/procfs.h>
18914int
18915main ()
18916{
18917prpsinfo_t avar
18918  ;
18919  return 0;
18920}
18921_ACEOF
18922rm -f conftest.$ac_objext
18923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18924  (eval $ac_compile) 2>conftest.er1
18925  ac_status=$?
18926  grep -v '^ *+' conftest.er1 >conftest.err
18927  rm -f conftest.er1
18928  cat conftest.err >&5
18929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930  (exit $ac_status); } &&
18931	 { ac_try='test -z "$ac_c_werror_flag"
18932			 || test ! -s conftest.err'
18933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934  (eval $ac_try) 2>&5
18935  ac_status=$?
18936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937  (exit $ac_status); }; } &&
18938	 { ac_try='test -s conftest.$ac_objext'
18939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940  (eval $ac_try) 2>&5
18941  ac_status=$?
18942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943  (exit $ac_status); }; }; then
18944  bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18945else
18946  echo "$as_me: failed program was:" >&5
18947sed 's/^/| /' conftest.$ac_ext >&5
18948
18949bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18950
18951fi
18952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18953fi
18954
18955 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18956
18957cat >>confdefs.h <<\_ACEOF
18958#define HAVE_PRPSINFO_T 1
18959_ACEOF
18960
18961 fi
18962 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18963echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18964
18965    echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18966echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18967 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18968  echo $ECHO_N "(cached) $ECHO_C" >&6
18969else
18970  cat >conftest.$ac_ext <<_ACEOF
18971/* confdefs.h.  */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h.  */
18976
18977#define _SYSCALL32
18978#include <sys/procfs.h>
18979int
18980main ()
18981{
18982prpsinfo32_t avar
18983  ;
18984  return 0;
18985}
18986_ACEOF
18987rm -f conftest.$ac_objext
18988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989  (eval $ac_compile) 2>conftest.er1
18990  ac_status=$?
18991  grep -v '^ *+' conftest.er1 >conftest.err
18992  rm -f conftest.er1
18993  cat conftest.err >&5
18994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995  (exit $ac_status); } &&
18996	 { ac_try='test -z "$ac_c_werror_flag"
18997			 || test ! -s conftest.err'
18998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999  (eval $ac_try) 2>&5
19000  ac_status=$?
19001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002  (exit $ac_status); }; } &&
19003	 { ac_try='test -s conftest.$ac_objext'
19004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005  (eval $ac_try) 2>&5
19006  ac_status=$?
19007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008  (exit $ac_status); }; }; then
19009  bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
19010else
19011  echo "$as_me: failed program was:" >&5
19012sed 's/^/| /' conftest.$ac_ext >&5
19013
19014bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
19015
19016fi
19017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19018fi
19019
19020 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
19021
19022cat >>confdefs.h <<\_ACEOF
19023#define HAVE_PRPSINFO32_T 1
19024_ACEOF
19025
19026 fi
19027 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
19028echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
19029
19030    echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
19031echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
19032 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
19033  echo $ECHO_N "(cached) $ECHO_C" >&6
19034else
19035  cat >conftest.$ac_ext <<_ACEOF
19036/* confdefs.h.  */
19037_ACEOF
19038cat confdefs.h >>conftest.$ac_ext
19039cat >>conftest.$ac_ext <<_ACEOF
19040/* end confdefs.h.  */
19041
19042#define _SYSCALL32
19043#include <sys/procfs.h>
19044int
19045main ()
19046{
19047psinfo_t avar
19048  ;
19049  return 0;
19050}
19051_ACEOF
19052rm -f conftest.$ac_objext
19053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19054  (eval $ac_compile) 2>conftest.er1
19055  ac_status=$?
19056  grep -v '^ *+' conftest.er1 >conftest.err
19057  rm -f conftest.er1
19058  cat conftest.err >&5
19059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060  (exit $ac_status); } &&
19061	 { ac_try='test -z "$ac_c_werror_flag"
19062			 || test ! -s conftest.err'
19063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064  (eval $ac_try) 2>&5
19065  ac_status=$?
19066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067  (exit $ac_status); }; } &&
19068	 { ac_try='test -s conftest.$ac_objext'
19069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070  (eval $ac_try) 2>&5
19071  ac_status=$?
19072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073  (exit $ac_status); }; }; then
19074  bfd_cv_have_sys_procfs_type_psinfo_t=yes
19075else
19076  echo "$as_me: failed program was:" >&5
19077sed 's/^/| /' conftest.$ac_ext >&5
19078
19079bfd_cv_have_sys_procfs_type_psinfo_t=no
19080
19081fi
19082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19083fi
19084
19085 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
19086
19087cat >>confdefs.h <<\_ACEOF
19088#define HAVE_PSINFO_T 1
19089_ACEOF
19090
19091 fi
19092 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
19093echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
19094
19095    echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
19096echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
19097 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
19098  echo $ECHO_N "(cached) $ECHO_C" >&6
19099else
19100  cat >conftest.$ac_ext <<_ACEOF
19101/* confdefs.h.  */
19102_ACEOF
19103cat confdefs.h >>conftest.$ac_ext
19104cat >>conftest.$ac_ext <<_ACEOF
19105/* end confdefs.h.  */
19106
19107#define _SYSCALL32
19108#include <sys/procfs.h>
19109int
19110main ()
19111{
19112psinfo32_t avar
19113  ;
19114  return 0;
19115}
19116_ACEOF
19117rm -f conftest.$ac_objext
19118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19119  (eval $ac_compile) 2>conftest.er1
19120  ac_status=$?
19121  grep -v '^ *+' conftest.er1 >conftest.err
19122  rm -f conftest.er1
19123  cat conftest.err >&5
19124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125  (exit $ac_status); } &&
19126	 { ac_try='test -z "$ac_c_werror_flag"
19127			 || test ! -s conftest.err'
19128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129  (eval $ac_try) 2>&5
19130  ac_status=$?
19131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132  (exit $ac_status); }; } &&
19133	 { ac_try='test -s conftest.$ac_objext'
19134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135  (eval $ac_try) 2>&5
19136  ac_status=$?
19137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138  (exit $ac_status); }; }; then
19139  bfd_cv_have_sys_procfs_type_psinfo32_t=yes
19140else
19141  echo "$as_me: failed program was:" >&5
19142sed 's/^/| /' conftest.$ac_ext >&5
19143
19144bfd_cv_have_sys_procfs_type_psinfo32_t=no
19145
19146fi
19147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19148fi
19149
19150 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
19151
19152cat >>confdefs.h <<\_ACEOF
19153#define HAVE_PSINFO32_T 1
19154_ACEOF
19155
19156 fi
19157 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
19158echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
19159
19160    echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
19161echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
19162 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
19163  echo $ECHO_N "(cached) $ECHO_C" >&6
19164else
19165  cat >conftest.$ac_ext <<_ACEOF
19166/* confdefs.h.  */
19167_ACEOF
19168cat confdefs.h >>conftest.$ac_ext
19169cat >>conftest.$ac_ext <<_ACEOF
19170/* end confdefs.h.  */
19171
19172#define _SYSCALL32
19173#include <sys/procfs.h>
19174int
19175main ()
19176{
19177lwpstatus_t avar
19178  ;
19179  return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19184  (eval $ac_compile) 2>conftest.er1
19185  ac_status=$?
19186  grep -v '^ *+' conftest.er1 >conftest.err
19187  rm -f conftest.er1
19188  cat conftest.err >&5
19189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190  (exit $ac_status); } &&
19191	 { ac_try='test -z "$ac_c_werror_flag"
19192			 || test ! -s conftest.err'
19193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194  (eval $ac_try) 2>&5
19195  ac_status=$?
19196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197  (exit $ac_status); }; } &&
19198	 { ac_try='test -s conftest.$ac_objext'
19199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200  (eval $ac_try) 2>&5
19201  ac_status=$?
19202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203  (exit $ac_status); }; }; then
19204  bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
19205else
19206  echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209bfd_cv_have_sys_procfs_type_lwpstatus_t=no
19210
19211fi
19212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19213fi
19214
19215 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
19216
19217cat >>confdefs.h <<\_ACEOF
19218#define HAVE_LWPSTATUS_T 1
19219_ACEOF
19220
19221 fi
19222 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
19223echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
19224
19225    echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
19226echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
19227 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
19228  echo $ECHO_N "(cached) $ECHO_C" >&6
19229else
19230  cat >conftest.$ac_ext <<_ACEOF
19231/* confdefs.h.  */
19232_ACEOF
19233cat confdefs.h >>conftest.$ac_ext
19234cat >>conftest.$ac_ext <<_ACEOF
19235/* end confdefs.h.  */
19236
19237#define _SYSCALL32
19238#include <sys/procfs.h>
19239int
19240main ()
19241{
19242lwpxstatus_t avar
19243  ;
19244  return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext
19248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249  (eval $ac_compile) 2>conftest.er1
19250  ac_status=$?
19251  grep -v '^ *+' conftest.er1 >conftest.err
19252  rm -f conftest.er1
19253  cat conftest.err >&5
19254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255  (exit $ac_status); } &&
19256	 { ac_try='test -z "$ac_c_werror_flag"
19257			 || test ! -s conftest.err'
19258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259  (eval $ac_try) 2>&5
19260  ac_status=$?
19261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262  (exit $ac_status); }; } &&
19263	 { ac_try='test -s conftest.$ac_objext'
19264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265  (eval $ac_try) 2>&5
19266  ac_status=$?
19267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268  (exit $ac_status); }; }; then
19269  bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
19270else
19271  echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
19275
19276fi
19277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19278fi
19279
19280 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
19281
19282cat >>confdefs.h <<\_ACEOF
19283#define HAVE_LWPXSTATUS_T 1
19284_ACEOF
19285
19286 fi
19287 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
19288echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
19289
19290    echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
19291echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
19292 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
19293  echo $ECHO_N "(cached) $ECHO_C" >&6
19294else
19295  cat >conftest.$ac_ext <<_ACEOF
19296/* confdefs.h.  */
19297_ACEOF
19298cat confdefs.h >>conftest.$ac_ext
19299cat >>conftest.$ac_ext <<_ACEOF
19300/* end confdefs.h.  */
19301
19302#define _SYSCALL32
19303#include <sys/procfs.h>
19304int
19305main ()
19306{
19307lwpstatus_t avar; void* aref = (void*) &avar.pr_context
19308  ;
19309  return 0;
19310}
19311_ACEOF
19312rm -f conftest.$ac_objext
19313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19314  (eval $ac_compile) 2>conftest.er1
19315  ac_status=$?
19316  grep -v '^ *+' conftest.er1 >conftest.err
19317  rm -f conftest.er1
19318  cat conftest.err >&5
19319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320  (exit $ac_status); } &&
19321	 { ac_try='test -z "$ac_c_werror_flag"
19322			 || test ! -s conftest.err'
19323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324  (eval $ac_try) 2>&5
19325  ac_status=$?
19326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327  (exit $ac_status); }; } &&
19328	 { ac_try='test -s conftest.$ac_objext'
19329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330  (eval $ac_try) 2>&5
19331  ac_status=$?
19332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333  (exit $ac_status); }; }; then
19334  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
19335else
19336  echo "$as_me: failed program was:" >&5
19337sed 's/^/| /' conftest.$ac_ext >&5
19338
19339bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
19340
19341fi
19342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19343fi
19344
19345 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
19346
19347cat >>confdefs.h <<\_ACEOF
19348#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
19349_ACEOF
19350
19351 fi
19352 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
19353echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
19354
19355    echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
19356echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
19357 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
19358  echo $ECHO_N "(cached) $ECHO_C" >&6
19359else
19360  cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h.  */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h.  */
19366
19367#define _SYSCALL32
19368#include <sys/procfs.h>
19369int
19370main ()
19371{
19372lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
19373  ;
19374  return 0;
19375}
19376_ACEOF
19377rm -f conftest.$ac_objext
19378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19379  (eval $ac_compile) 2>conftest.er1
19380  ac_status=$?
19381  grep -v '^ *+' conftest.er1 >conftest.err
19382  rm -f conftest.er1
19383  cat conftest.err >&5
19384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385  (exit $ac_status); } &&
19386	 { ac_try='test -z "$ac_c_werror_flag"
19387			 || test ! -s conftest.err'
19388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389  (eval $ac_try) 2>&5
19390  ac_status=$?
19391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392  (exit $ac_status); }; } &&
19393	 { ac_try='test -s conftest.$ac_objext'
19394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395  (eval $ac_try) 2>&5
19396  ac_status=$?
19397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398  (exit $ac_status); }; }; then
19399  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
19400else
19401  echo "$as_me: failed program was:" >&5
19402sed 's/^/| /' conftest.$ac_ext >&5
19403
19404bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
19405
19406fi
19407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19408fi
19409
19410 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
19411
19412cat >>confdefs.h <<\_ACEOF
19413#define HAVE_LWPSTATUS_T_PR_REG 1
19414_ACEOF
19415
19416 fi
19417 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
19418echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
19419
19420    echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
19421echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
19422 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
19423  echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425  cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h.  */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h.  */
19431
19432#define _SYSCALL32
19433#include <sys/procfs.h>
19434int
19435main ()
19436{
19437win32_pstatus_t avar
19438  ;
19439  return 0;
19440}
19441_ACEOF
19442rm -f conftest.$ac_objext
19443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444  (eval $ac_compile) 2>conftest.er1
19445  ac_status=$?
19446  grep -v '^ *+' conftest.er1 >conftest.err
19447  rm -f conftest.er1
19448  cat conftest.err >&5
19449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450  (exit $ac_status); } &&
19451	 { ac_try='test -z "$ac_c_werror_flag"
19452			 || test ! -s conftest.err'
19453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454  (eval $ac_try) 2>&5
19455  ac_status=$?
19456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457  (exit $ac_status); }; } &&
19458	 { ac_try='test -s conftest.$ac_objext'
19459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460  (eval $ac_try) 2>&5
19461  ac_status=$?
19462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463  (exit $ac_status); }; }; then
19464  bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
19465else
19466  echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
19469bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
19470
19471fi
19472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19473fi
19474
19475 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
19476
19477cat >>confdefs.h <<\_ACEOF
19478#define HAVE_WIN32_PSTATUS_T 1
19479_ACEOF
19480
19481 fi
19482 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
19483echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
19484
19485  fi
19486fi
19487
19488
19489if test -n "$TRAD_HEADER"; then
19490
19491cat >>confdefs.h <<_ACEOF
19492#define TRAD_HEADER $TRAD_HEADER
19493_ACEOF
19494
19495fi
19496
19497# Horrible hacks to build DLLs on Windows.
19498WIN32LDFLAGS=
19499WIN32LIBADD=
19500case "${host}" in
19501*-*-cygwin*)
19502  if test "$enable_shared" = "yes"; then
19503    WIN32LDFLAGS="-no-undefined"
19504    WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
19505  fi
19506  ;;
19507*-*-linux*)
19508  # We borrow WIN32LIBADD so that the shared libbfd won't depend on
19509  # libiberty.a.
19510  x=`sed -n -e 's/^[ 	]*PICFLAG[ 	]*=[ 	]*//p' < ../libiberty/Makefile | sed -n '$p'`
19511  if test -n "$x"; then
19512    WIN32LIBADD="-L../libiberty/pic -liberty"
19513  fi
19514  ;;
19515esac
19516
19517
19518
19519# target stuff:
19520
19521# Canonicalize the secondary target names.
19522if test -n "$enable_targets" ; then
19523    for targ in `echo $enable_targets | sed 's/,/ /g'`
19524    do
19525	result=`$ac_config_sub $targ 2>/dev/null`
19526	if test -n "$result" ; then
19527	    canon_targets="$canon_targets $result"
19528	else
19529	    # Allow targets that config.sub doesn't recognize, like "all".
19530	    canon_targets="$canon_targets $targ"
19531	fi
19532    done
19533fi
19534
19535all_targets=false
19536defvec=
19537selvecs=
19538assocvecs=
19539selarchs=
19540TDEFINES=
19541for targ in $target $canon_targets
19542do
19543    if test "x$targ" = "xall"; then
19544        all_targets=true
19545	assocvecs="$assocvecs $targ_defvec $targ_selvecs"
19546    else
19547	. $srcdir/config.bfd
19548	if test "x$targ" = "x$target"; then
19549	    defvec=$targ_defvec
19550	fi
19551	selvecs="$selvecs $targ_defvec $targ_selvecs"
19552	selarchs="$selarchs $targ_archs"
19553	TDEFINES="$TDEFINES $targ_cflags"
19554    fi
19555done
19556
19557
19558# This processing still needs to be done if we're to decide properly whether
19559# 64-bit support needs to be compiled in.  Currently, it will be included if
19560# the default or any other explicitly requested target requires it; it
19561# will not be included on a 32-bit host if no 64-bit target is requested, and
19562# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
19563# used.
19564
19565# uniq the default and selected vectors in all the configured targets.
19566f=""
19567for i in $selvecs ; do
19568    case " $f " in
19569    *" $i "*) ;;
19570    *) f="$f $i" ;;
19571    esac
19572done
19573selvecs="$f"
19574
19575
19576# uniq the associated vectors in all the configured targets.
19577f=""
19578for i in $assocvecs ; do
19579    case " $f " in
19580    *" $i "*) ;;
19581    *) f="$f $i" ;;
19582    esac
19583done
19584assocvecs="$f"
19585
19586
19587# uniq the architectures in all the configured targets.
19588f=""
19589for i in $selarchs ; do
19590    case " $f " in
19591    *" $i "*) ;;
19592    *) f="$f $i" ;;
19593    esac
19594done
19595selarchs="$f"
19596
19597# Target backend .o files.
19598tb=
19599
19600elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
19601
19602for vec in $selvecs
19603do
19604    target_size=32
19605    case "$vec" in
19606    # This list is alphabetized to make it easy to compare
19607    # with the two vector lists in targets.c.  For the same reason,
19608    # use one entry per line, even though this leads to long lines.
19609    a_out_adobe_vec)		tb="$tb aout-adobe.lo aout32.lo" ;;
19610    aix5coff64_vec)		tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19611    aout0_big_vec)		tb="$tb aout0.lo aout32.lo" ;;
19612    aout_arm_big_vec)		tb="$tb aout-arm.lo aout32.lo" ;;
19613    aout_arm_little_vec)	tb="$tb aout-arm.lo aout32.lo" ;;
19614    apollocoff_vec)		tb="$tb coff-apollo.lo" ;;
19615    arm_epoc_pe_big_vec)	tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19616    arm_epoc_pe_little_vec)	tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19617    arm_epoc_pei_big_vec)	tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19618    arm_epoc_pei_little_vec)	tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19619    arm_wince_pe_big_vec)	tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19620    arm_wince_pe_little_vec)	tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19621    arm_wince_pei_big_vec)	tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19622    arm_wince_pei_little_vec)	tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19623    armcoff_big_vec)		tb="$tb coff-arm.lo cofflink.lo " ;;
19624    armcoff_little_vec)		tb="$tb coff-arm.lo cofflink.lo " ;;
19625    armnetbsd_vec)		tb="$tb armnetbsd.lo aout32.lo" ;;
19626    armpe_big_vec)		tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19627    armpe_little_vec)		tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19628    armpei_big_vec)		tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19629    armpei_little_vec)		tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19630    b_out_vec_big_host)		tb="$tb bout.lo aout32.lo" ;;
19631    b_out_vec_little_host)	tb="$tb bout.lo aout32.lo" ;;
19632    bfd_efi_app_ia32_vec)	tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19633    bfd_efi_bsdrv_ia32_vec)	tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19634    bfd_efi_rtdrv_ia32_vec)	tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
19635    bfd_efi_app_x86_64_vec)	tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19636    bfd_efi_bsdrv_x86_64_vec)	tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19637    bfd_efi_rtdrv_x86_64_vec)	tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19638    bfd_efi_app_ia64_vec)	tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19639    bfd_efi_bsdrv_ia64_vec)	tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19640    bfd_efi_rtdrv_ia64_vec)	tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19641    bfd_elf32_am33lin_vec)	tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19642    bfd_elf32_avr_vec)		tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19643    bfd_elf32_bfin_vec)		tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19644    bfd_elf32_bfinfdpic_vec)	tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19645    bfd_elf32_big_generic_vec) 	tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19646    bfd_elf32_bigarc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19647    bfd_elf32_bigarm_vec)	tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19648    bfd_elf32_bigarm_symbian_vec)
19649                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19650    bfd_elf32_bigarm_vxworks_vec)
19651                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19652    bfd_elf32_bigmips_vec) 	tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19653    bfd_elf32_bigmips_vxworks_vec)
19654			 	tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19655    bfd_elf32_cr16_vec)		tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19656    bfd_elf32_cr16c_vec)	tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19657    bfd_elf32_cris_vec)		tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19658    bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19659    bfd_elf32_d10v_vec)		tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19660    bfd_elf32_d30v_vec)		tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19661    bfd_elf32_dlx_big_vec)	tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19662    bfd_elf32_fr30_vec)		tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19663    bfd_elf32_frv_vec)		tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19664    bfd_elf32_frvfdpic_vec)	tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19665    bfd_elf32_h8300_vec)	tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19666    bfd_elf32_hppa_linux_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19667    bfd_elf32_hppa_nbsd_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19668    bfd_elf32_hppa_vec)		tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19669    bfd_elf32_i370_vec)		tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19670    bfd_elf32_i386_dragonfly_vec)
19671				tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19672    bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19673    bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19674    bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19675    bfd_elf32_i860_little_vec)	tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19676    bfd_elf32_i860_vec)		tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19677    bfd_elf32_i960_vec)		tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19678    bfd_elf32_ia64_big_vec)	tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19679    bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19680    bfd_elf32_ip2k_vec)		tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19681    bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19682    bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19683    bfd_elf32_littlearc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19684    bfd_elf32_littlearm_symbian_vec)
19685                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19686    bfd_elf32_littlearm_vxworks_vec)
19687                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19688    bfd_elf32_littlearm_vec)	tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19689    bfd_elf32_littlemips_vec) 	tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19690    bfd_elf32_littlemips_vxworks_vec)
19691			 	tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19692    bfd_elf32_m32c_vec)         tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19693    bfd_elf32_m32r_vec)		tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19694    bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19695    bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19696    bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19697    bfd_elf32_m68hc11_vec)	tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19698    bfd_elf32_m68hc12_vec)	tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19699    bfd_elf32_m68k_vec)		tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19700    bfd_elf32_m88k_vec)		tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19701    bfd_elf32_mcore_big_vec)	tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19702    bfd_elf32_mcore_little_vec)	tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19703    bfd_elf32_mep_vec)		tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19704    bfd_elf32_mep_little_vec)	tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19705    bfd_elf32_mn10200_vec)	tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19706    bfd_elf32_mn10300_vec)	tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19707    bfd_elf32_mt_vec)           tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19708    bfd_elf32_msp430_vec)	tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19709    bfd_elf32_nbigmips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19710    bfd_elf32_nlittlemips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19711    bfd_elf32_ntradbigmips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19712    bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19713    bfd_elf32_openrisc_vec)	tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
19714    bfd_elf32_or32_big_vec)	tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19715    bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
19716    bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
19717    bfd_elf32_powerpc_vec)	tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19718    bfd_elf32_powerpcle_vec)	tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19719    bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19720    bfd_elf32_s390_vec)		tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19721    bfd_elf32_bigscore_vec)     tb="$tb elf32-score.lo elf32.lo $elf" ;;
19722    bfd_elf32_littlescore_vec)  tb="$tb elf32-score.lo elf32.lo $elf" ;;
19723    # FIXME: We include cofflink.lo not because it's needed for
19724    # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19725    # which needs it but does not list it.  Should be fixed in right place.
19726    bfd_elf32_sh64_vec)		tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19727    bfd_elf32_sh64l_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19728    bfd_elf32_sh64lin_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19729    bfd_elf32_sh64blin_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19730    bfd_elf32_sh64lnbsd_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19731    bfd_elf32_sh64nbsd_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19732    bfd_elf32_sh_vec)		tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19733    bfd_elf32_shblin_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19734    bfd_elf32_shl_vec)		tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19735    bfd_elf32_shl_symbian_vec)	tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19736    bfd_elf32_shlin_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19737    bfd_elf32_shlnbsd_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19738    bfd_elf32_shlvxworks_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19739    bfd_elf32_shnbsd_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19740    bfd_elf32_shvxworks_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19741    bfd_elf32_sparc_vec)	tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19742    bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19743    bfd_elf32_spu_vec)		tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19744    bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19745    bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19746    bfd_elf32_us_cris_vec)	tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19747    bfd_elf32_v850_vec)		tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19748    bfd_elf32_vax_vec)		tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19749    bfd_elf32_xstormy16_vec)	tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19750    bfd_elf32_xc16x_vec)		tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19751    bfd_elf32_xtensa_le_vec)	tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19752    bfd_elf32_xtensa_be_vec)	tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19753    bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19754    bfd_elf64_alpha_vec)	tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19755    bfd_elf64_big_generic_vec) 	tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19756    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 ;;
19757    bfd_elf64_hppa_linux_vec)	tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19758    bfd_elf64_hppa_vec)		tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19759    bfd_elf64_ia64_big_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19760    bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19761    bfd_elf64_ia64_little_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19762    bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19763    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 ;;
19764    bfd_elf64_mmix_vec) 	tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19765    bfd_elf64_powerpc_vec)	tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19766    bfd_elf64_powerpcle_vec)	tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19767    bfd_elf64_s390_vec)		tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19768    bfd_elf64_sh64_vec)		tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19769    bfd_elf64_sh64l_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19770    bfd_elf64_sh64lin_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19771    bfd_elf64_sh64blin_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19772    bfd_elf64_sh64lnbsd_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19773    bfd_elf64_sh64nbsd_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19774    bfd_elf64_sparc_vec)	tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19775    bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19776    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 ;;
19777    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 ;;
19778    bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19779    bfd_elf64_x86_64_vec)	tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19780    bfd_mmo_vec)		tb="$tb mmo.lo" target_size=64 ;;
19781    bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19782    bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19783    bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19784    bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19785    cris_aout_vec)		tb="$tb aout-cris.lo" ;;
19786    demo_64_vec)		tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19787    ecoff_big_vec)		tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19788    ecoff_biglittle_vec)	tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19789    ecoff_little_vec)		tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19790    ecoffalpha_little_vec)	tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19791    go32coff_vec)		tb="$tb coff-go32.lo cofflink.lo" ;;
19792    go32stubbedcoff_vec)	tb="$tb coff-stgo32.lo cofflink.lo" ;;
19793    h8300coff_vec)		tb="$tb coff-h8300.lo reloc16.lo" ;;
19794    h8500coff_vec)		tb="$tb coff-h8500.lo reloc16.lo" ;;
19795    host_aout_vec)		tb="$tb host-aout.lo aout32.lo" ;;
19796    hp300bsd_vec)		tb="$tb hp300bsd.lo aout32.lo" ;;
19797    hp300hpux_vec)		tb="$tb hp300hpux.lo aout32.lo" ;;
19798    i386aout_vec)		tb="$tb i386aout.lo aout32.lo" ;;
19799    i386bsd_vec)		tb="$tb i386bsd.lo aout32.lo" ;;
19800    i386coff_vec)		tb="$tb coff-i386.lo cofflink.lo" ;;
19801    x86_64coff_vec)		tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19802    i386dynix_vec)		tb="$tb i386dynix.lo aout32.lo" ;;
19803    i386freebsd_vec)		tb="$tb i386freebsd.lo aout32.lo" ;;
19804    i386linux_vec)		tb="$tb i386linux.lo aout32.lo" ;;
19805    i386lynx_aout_vec)		tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19806    i386lynx_coff_vec)		tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19807    i386mach3_vec)		tb="$tb i386mach3.lo aout32.lo" ;;
19808    i386msdos_vec)		tb="$tb i386msdos.lo" ;;
19809    i386netbsd_vec)		tb="$tb i386netbsd.lo aout32.lo" ;;
19810    i386os9k_vec)		tb="$tb i386os9k.lo aout32.lo" ;;
19811    i386pe_vec)			tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19812    i386pei_vec)		tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19813    x86_64pe_vec)		tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19814    x86_64pei_vec)		tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19815    i860coff_vec)		tb="$tb coff-i860.lo cofflink.lo" ;;
19816    icoff_big_vec)		tb="$tb coff-i960.lo cofflink.lo" ;;
19817    icoff_little_vec)		tb="$tb coff-i960.lo cofflink.lo" ;;
19818    ieee_vec)			tb="$tb ieee.lo" ;;
19819    m68k4knetbsd_vec)		tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19820    m68kaux_coff_vec)		tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19821    m68kcoff_vec)		tb="$tb coff-m68k.lo cofflink.lo" ;;
19822    m68kcoffun_vec)		tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19823    m68klinux_vec)		tb="$tb m68klinux.lo aout32.lo" ;;
19824    m68knetbsd_vec)		tb="$tb m68knetbsd.lo aout32.lo" ;;
19825    m68ksysvcoff_vec)		tb="$tb coff-svm68k.lo cofflink.lo" ;;
19826    m88kbcs_vec)		tb="$tb coff-m88k.lo" ;;
19827    m88kmach3_vec)		tb="$tb m88kmach3.lo aout32.lo" ;;
19828    m88kopenbsd_vec)		tb="$tb m88kopenbsd.lo aout32.lo" ;;
19829    maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
19830    mach_o_be_vec)              tb="$tb mach-o.lo" ;;
19831    mach_o_le_vec)              tb="$tb mach-o.lo" ;;
19832    mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
19833    mcore_pe_big_vec)		tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19834    mcore_pe_little_vec)	tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19835    mcore_pei_big_vec)		tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19836    mcore_pei_little_vec)	tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19837    mipslpe_vec)		tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19838    mipslpei_vec)		tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19839    newsos3_vec)		tb="$tb newsos3.lo aout32.lo" ;;
19840    nlm32_alpha_vec)		tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19841    nlm32_i386_vec)		tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19842    nlm32_powerpc_vec)		tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19843    nlm32_sparc_vec)		tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19844    or32coff_big_vec)		tb="$tb coff-or32.lo cofflink.lo" ;;
19845    pc532machaout_vec)		tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19846    pc532netbsd_vec)		tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19847    pef_vec)                    tb="$tb pef.lo" ;;
19848    pef_xlib_vec)               tb="$tb pef.lo" ;;
19849    pdp11_aout_vec)		tb="$tb pdp11.lo" ;;
19850    pmac_xcoff_vec)		tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19851    ppcboot_vec)		tb="$tb ppcboot.lo" ;;
19852    riscix_vec)			tb="$tb aout32.lo riscix.lo" ;;
19853    rs6000coff64_vec)		tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19854    rs6000coff_vec)		tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19855    shcoff_small_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
19856    shcoff_vec)			tb="$tb coff-sh.lo cofflink.lo" ;;
19857    shlcoff_small_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
19858    shlcoff_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
19859    shlpe_vec)			tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19860    shlpei_vec)			tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19861    som_vec)			tb="$tb som.lo" ;;
19862    sparccoff_vec)		tb="$tb coff-sparc.lo" ;;
19863    sparcle_aout_vec)		tb="$tb aout-sparcle.lo aout32.lo" ;;
19864    sparclinux_vec)		tb="$tb sparclinux.lo aout32.lo" ;;
19865    sparclynx_aout_vec)		tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19866    sparclynx_coff_vec)		tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19867    sparcnetbsd_vec)		tb="$tb sparcnetbsd.lo aout32.lo" ;;
19868    sunos_big_vec)		tb="$tb sunos.lo aout32.lo" ;;
19869    sym_vec)                    tb="$tb xsym.lo" ;;
19870    tic30_aout_vec)		tb="$tb aout-tic30.lo" ;;
19871    tic30_coff_vec)		tb="$tb coff-tic30.lo" ;;
19872    tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
19873    tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19874    tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
19875    tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19876    tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
19877    tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19878    tic54x_coff0_beh_vec)	tb="$tb coff-tic54x.lo" ;;
19879    tic54x_coff0_vec)		tb="$tb coff-tic54x.lo" ;;
19880    tic54x_coff1_beh_vec)	tb="$tb coff-tic54x.lo" ;;
19881    tic54x_coff1_vec)		tb="$tb coff-tic54x.lo" ;;
19882    tic54x_coff2_beh_vec)	tb="$tb coff-tic54x.lo" ;;
19883    tic54x_coff2_vec)		tb="$tb coff-tic54x.lo" ;;
19884    tic80coff_vec)		tb="$tb coff-tic80.lo cofflink.lo" ;;
19885    vaxnetbsd_vec)		tb="$tb vaxnetbsd.lo aout32.lo" ;;
19886    vax1knetbsd_vec)		tb="$tb vax1knetbsd.lo aout32.lo" ;;
19887    vaxbsd_vec)			tb="$tb vaxbsd.lo aout32.lo" ;;
19888    versados_vec)		tb="$tb versados.lo" ;;
19889    vms_alpha_vec)		tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19890    vms_vax_vec)		tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19891    w65_vec)			tb="$tb coff-w65.lo reloc16.lo" ;;
19892    we32kcoff_vec)		tb="$tb coff-we32k.lo" ;;
19893    z80coff_vec)		tb="$tb coff-z80.lo reloc16.lo" ;;
19894    z8kcoff_vec)		tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19895
19896    # These appear out of order in targets.c
19897    srec_vec)			tb="$tb srec.lo" ;;
19898    symbolsrec_vec)		tb="$tb srec.lo" ;;
19899    tekhex_vec)			tb="$tb tekhex.lo" ;;
19900    cisco_core_big_vec)		tb="$tb cisco-core.lo" ;;
19901    cisco_core_little_vec)	tb="$tb cisco-core.lo" ;;
19902
19903    "")			;;
19904    *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19905echo "$as_me: error: *** unknown target vector $vec" >&2;}
19906   { (exit 1); exit 1; }; } ;;
19907    esac
19908
19909    if test ${target_size} = 64; then
19910	target64=true
19911    fi
19912    if test x"${vec}" = x"${defvec}"; then
19913	bfd_default_target_size=${target_size}
19914    fi
19915done
19916
19917# Target architecture .o files.
19918# A couple of CPUs use shorter file names to avoid problems on DOS
19919# filesystems.
19920ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19921
19922# Weed out duplicate .o files.
19923f=""
19924for i in $tb ; do
19925    case " $f " in
19926    *" $i "*) ;;
19927    *) f="$f $i" ;;
19928    esac
19929done
19930tb="$f"
19931
19932f=""
19933for i in $ta ; do
19934    case " $f " in
19935    *" $i "*) ;;
19936    *) f="$f $i" ;;
19937    esac
19938done
19939ta="$f"
19940
19941bfd_backends="$tb"
19942bfd_machines="$ta"
19943
19944if test x${all_targets} = xtrue ; then
19945  bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19946  bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19947  selvecs=
19948  havevecs=
19949  selarchs=
19950  test -n "$assocvecs" &&
19951    assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19952else	# all_targets is true
19953  # Only set these if they will be nonempty, for the clever echo.
19954  havevecs=
19955  assocvecs=
19956  test -n "$selvecs" &&
19957    havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19958  test -n "$selvecs" &&
19959    selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19960  test -n "$selarchs" &&
19961    selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19962fi	# all_targets is true
19963
19964case ${host64}-${target64}-${want64} in
19965  *true*)
19966    wordsize=64
19967    bfd64_libs='$(BFD64_LIBS)'
19968    all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19969    if test $BFD_HOST_64_BIT_DEFINED = 0; then
19970      { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19971echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19972      { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19973echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19974    fi
19975    if test -n "$GCC" ; then
19976       bad_64bit_gcc=no;
19977       echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19978echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19979       # Add more tests for gcc versions with non-working 64-bit support here.
19980       cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h.  */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h.  */
19986:__GNUC__:__GNUC_MINOR__:__i386__:
19987_ACEOF
19988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19989  $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19990  bad_64bit_gcc=yes;
19991		    echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19992echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19993else
19994  echo "$as_me:$LINENO: result: no" >&5
19995echo "${ECHO_T}no" >&6
19996fi
19997rm -f conftest*
19998
19999       if test $bad_64bit_gcc = yes ; then
20000	 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
20001echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
20002   { (exit 1); exit 1; }; }
20003       fi
20004    fi
20005    ;;
20006  false-false-false)
20007    wordsize=32
20008    all_backends='$(BFD32_BACKENDS)'
20009    ;;
20010esac
20011
20012
20013
20014
20015
20016
20017
20018
20019# Determine the host dependant file_ptr a.k.a. off_t type.  In order
20020# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
20021# fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
20022# Hopefully a reasonable assumption since fseeko et.al. should be
20023# upward compatible.
20024
20025
20026
20027
20028
20029for ac_func in ftello ftello64 fseeko fseeko64 fopen64
20030do
20031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20032echo "$as_me:$LINENO: checking for $ac_func" >&5
20033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20034if eval "test \"\${$as_ac_var+set}\" = set"; then
20035  echo $ECHO_N "(cached) $ECHO_C" >&6
20036else
20037  cat >conftest.$ac_ext <<_ACEOF
20038/* confdefs.h.  */
20039_ACEOF
20040cat confdefs.h >>conftest.$ac_ext
20041cat >>conftest.$ac_ext <<_ACEOF
20042/* end confdefs.h.  */
20043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20044   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20045#define $ac_func innocuous_$ac_func
20046
20047/* System header to define __stub macros and hopefully few prototypes,
20048    which can conflict with char $ac_func (); below.
20049    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20050    <limits.h> exists even on freestanding compilers.  */
20051
20052#ifdef __STDC__
20053# include <limits.h>
20054#else
20055# include <assert.h>
20056#endif
20057
20058#undef $ac_func
20059
20060/* Override any gcc2 internal prototype to avoid an error.  */
20061#ifdef __cplusplus
20062extern "C"
20063{
20064#endif
20065/* We use char because int might match the return type of a gcc2
20066   builtin and then its argument prototype would still apply.  */
20067char $ac_func ();
20068/* The GNU C library defines this for functions which it implements
20069    to always fail with ENOSYS.  Some functions are actually named
20070    something starting with __ and the normal name is an alias.  */
20071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20072choke me
20073#else
20074char (*f) () = $ac_func;
20075#endif
20076#ifdef __cplusplus
20077}
20078#endif
20079
20080int
20081main ()
20082{
20083return f != $ac_func;
20084  ;
20085  return 0;
20086}
20087_ACEOF
20088rm -f conftest.$ac_objext conftest$ac_exeext
20089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20090  (eval $ac_link) 2>conftest.er1
20091  ac_status=$?
20092  grep -v '^ *+' conftest.er1 >conftest.err
20093  rm -f conftest.er1
20094  cat conftest.err >&5
20095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096  (exit $ac_status); } &&
20097	 { ac_try='test -z "$ac_c_werror_flag"
20098			 || test ! -s conftest.err'
20099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100  (eval $ac_try) 2>&5
20101  ac_status=$?
20102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103  (exit $ac_status); }; } &&
20104	 { ac_try='test -s conftest$ac_exeext'
20105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106  (eval $ac_try) 2>&5
20107  ac_status=$?
20108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109  (exit $ac_status); }; }; then
20110  eval "$as_ac_var=yes"
20111else
20112  echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115eval "$as_ac_var=no"
20116fi
20117rm -f conftest.err conftest.$ac_objext \
20118      conftest$ac_exeext conftest.$ac_ext
20119fi
20120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20122if test `eval echo '${'$as_ac_var'}'` = yes; then
20123  cat >>confdefs.h <<_ACEOF
20124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20125_ACEOF
20126
20127fi
20128done
20129
20130if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
20131    echo "$as_me:$LINENO: checking for off_t" >&5
20132echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20133if test "${ac_cv_type_off_t+set}" = set; then
20134  echo $ECHO_N "(cached) $ECHO_C" >&6
20135else
20136  cat >conftest.$ac_ext <<_ACEOF
20137/* confdefs.h.  */
20138_ACEOF
20139cat confdefs.h >>conftest.$ac_ext
20140cat >>conftest.$ac_ext <<_ACEOF
20141/* end confdefs.h.  */
20142$ac_includes_default
20143int
20144main ()
20145{
20146if ((off_t *) 0)
20147  return 0;
20148if (sizeof (off_t))
20149  return 0;
20150  ;
20151  return 0;
20152}
20153_ACEOF
20154rm -f conftest.$ac_objext
20155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20156  (eval $ac_compile) 2>conftest.er1
20157  ac_status=$?
20158  grep -v '^ *+' conftest.er1 >conftest.err
20159  rm -f conftest.er1
20160  cat conftest.err >&5
20161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162  (exit $ac_status); } &&
20163	 { ac_try='test -z "$ac_c_werror_flag"
20164			 || test ! -s conftest.err'
20165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166  (eval $ac_try) 2>&5
20167  ac_status=$?
20168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169  (exit $ac_status); }; } &&
20170	 { ac_try='test -s conftest.$ac_objext'
20171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172  (eval $ac_try) 2>&5
20173  ac_status=$?
20174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175  (exit $ac_status); }; }; then
20176  ac_cv_type_off_t=yes
20177else
20178  echo "$as_me: failed program was:" >&5
20179sed 's/^/| /' conftest.$ac_ext >&5
20180
20181ac_cv_type_off_t=no
20182fi
20183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20184fi
20185echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20186echo "${ECHO_T}$ac_cv_type_off_t" >&6
20187
20188echo "$as_me:$LINENO: checking size of off_t" >&5
20189echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
20190if test "${ac_cv_sizeof_off_t+set}" = set; then
20191  echo $ECHO_N "(cached) $ECHO_C" >&6
20192else
20193  if test "$ac_cv_type_off_t" = yes; then
20194  # The cast to unsigned long works around a bug in the HP C Compiler
20195  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20196  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20197  # This bug is HP SR number 8606223364.
20198  if test "$cross_compiling" = yes; then
20199  # Depending upon the size, compute the lo and hi bounds.
20200cat >conftest.$ac_ext <<_ACEOF
20201/* confdefs.h.  */
20202_ACEOF
20203cat confdefs.h >>conftest.$ac_ext
20204cat >>conftest.$ac_ext <<_ACEOF
20205/* end confdefs.h.  */
20206$ac_includes_default
20207int
20208main ()
20209{
20210static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
20211test_array [0] = 0
20212
20213  ;
20214  return 0;
20215}
20216_ACEOF
20217rm -f conftest.$ac_objext
20218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219  (eval $ac_compile) 2>conftest.er1
20220  ac_status=$?
20221  grep -v '^ *+' conftest.er1 >conftest.err
20222  rm -f conftest.er1
20223  cat conftest.err >&5
20224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225  (exit $ac_status); } &&
20226	 { ac_try='test -z "$ac_c_werror_flag"
20227			 || test ! -s conftest.err'
20228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229  (eval $ac_try) 2>&5
20230  ac_status=$?
20231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232  (exit $ac_status); }; } &&
20233	 { ac_try='test -s conftest.$ac_objext'
20234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235  (eval $ac_try) 2>&5
20236  ac_status=$?
20237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238  (exit $ac_status); }; }; then
20239  ac_lo=0 ac_mid=0
20240  while :; do
20241    cat >conftest.$ac_ext <<_ACEOF
20242/* confdefs.h.  */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h.  */
20247$ac_includes_default
20248int
20249main ()
20250{
20251static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20252test_array [0] = 0
20253
20254  ;
20255  return 0;
20256}
20257_ACEOF
20258rm -f conftest.$ac_objext
20259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260  (eval $ac_compile) 2>conftest.er1
20261  ac_status=$?
20262  grep -v '^ *+' conftest.er1 >conftest.err
20263  rm -f conftest.er1
20264  cat conftest.err >&5
20265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266  (exit $ac_status); } &&
20267	 { ac_try='test -z "$ac_c_werror_flag"
20268			 || test ! -s conftest.err'
20269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270  (eval $ac_try) 2>&5
20271  ac_status=$?
20272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273  (exit $ac_status); }; } &&
20274	 { ac_try='test -s conftest.$ac_objext'
20275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276  (eval $ac_try) 2>&5
20277  ac_status=$?
20278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279  (exit $ac_status); }; }; then
20280  ac_hi=$ac_mid; break
20281else
20282  echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
20285ac_lo=`expr $ac_mid + 1`
20286		    if test $ac_lo -le $ac_mid; then
20287		      ac_lo= ac_hi=
20288		      break
20289		    fi
20290		    ac_mid=`expr 2 '*' $ac_mid + 1`
20291fi
20292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20293  done
20294else
20295  echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298cat >conftest.$ac_ext <<_ACEOF
20299/* confdefs.h.  */
20300_ACEOF
20301cat confdefs.h >>conftest.$ac_ext
20302cat >>conftest.$ac_ext <<_ACEOF
20303/* end confdefs.h.  */
20304$ac_includes_default
20305int
20306main ()
20307{
20308static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
20309test_array [0] = 0
20310
20311  ;
20312  return 0;
20313}
20314_ACEOF
20315rm -f conftest.$ac_objext
20316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20317  (eval $ac_compile) 2>conftest.er1
20318  ac_status=$?
20319  grep -v '^ *+' conftest.er1 >conftest.err
20320  rm -f conftest.er1
20321  cat conftest.err >&5
20322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323  (exit $ac_status); } &&
20324	 { ac_try='test -z "$ac_c_werror_flag"
20325			 || test ! -s conftest.err'
20326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327  (eval $ac_try) 2>&5
20328  ac_status=$?
20329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330  (exit $ac_status); }; } &&
20331	 { ac_try='test -s conftest.$ac_objext'
20332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333  (eval $ac_try) 2>&5
20334  ac_status=$?
20335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336  (exit $ac_status); }; }; then
20337  ac_hi=-1 ac_mid=-1
20338  while :; do
20339    cat >conftest.$ac_ext <<_ACEOF
20340/* confdefs.h.  */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h.  */
20345$ac_includes_default
20346int
20347main ()
20348{
20349static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
20350test_array [0] = 0
20351
20352  ;
20353  return 0;
20354}
20355_ACEOF
20356rm -f conftest.$ac_objext
20357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20358  (eval $ac_compile) 2>conftest.er1
20359  ac_status=$?
20360  grep -v '^ *+' conftest.er1 >conftest.err
20361  rm -f conftest.er1
20362  cat conftest.err >&5
20363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364  (exit $ac_status); } &&
20365	 { ac_try='test -z "$ac_c_werror_flag"
20366			 || test ! -s conftest.err'
20367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368  (eval $ac_try) 2>&5
20369  ac_status=$?
20370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371  (exit $ac_status); }; } &&
20372	 { ac_try='test -s conftest.$ac_objext'
20373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374  (eval $ac_try) 2>&5
20375  ac_status=$?
20376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377  (exit $ac_status); }; }; then
20378  ac_lo=$ac_mid; break
20379else
20380  echo "$as_me: failed program was:" >&5
20381sed 's/^/| /' conftest.$ac_ext >&5
20382
20383ac_hi=`expr '(' $ac_mid ')' - 1`
20384		       if test $ac_mid -le $ac_hi; then
20385			 ac_lo= ac_hi=
20386			 break
20387		       fi
20388		       ac_mid=`expr 2 '*' $ac_mid`
20389fi
20390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20391  done
20392else
20393  echo "$as_me: failed program was:" >&5
20394sed 's/^/| /' conftest.$ac_ext >&5
20395
20396ac_lo= ac_hi=
20397fi
20398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20399fi
20400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20401# Binary search between lo and hi bounds.
20402while test "x$ac_lo" != "x$ac_hi"; do
20403  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20404  cat >conftest.$ac_ext <<_ACEOF
20405/* confdefs.h.  */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
20409/* end confdefs.h.  */
20410$ac_includes_default
20411int
20412main ()
20413{
20414static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20415test_array [0] = 0
20416
20417  ;
20418  return 0;
20419}
20420_ACEOF
20421rm -f conftest.$ac_objext
20422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423  (eval $ac_compile) 2>conftest.er1
20424  ac_status=$?
20425  grep -v '^ *+' conftest.er1 >conftest.err
20426  rm -f conftest.er1
20427  cat conftest.err >&5
20428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429  (exit $ac_status); } &&
20430	 { ac_try='test -z "$ac_c_werror_flag"
20431			 || test ! -s conftest.err'
20432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433  (eval $ac_try) 2>&5
20434  ac_status=$?
20435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436  (exit $ac_status); }; } &&
20437	 { ac_try='test -s conftest.$ac_objext'
20438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439  (eval $ac_try) 2>&5
20440  ac_status=$?
20441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442  (exit $ac_status); }; }; then
20443  ac_hi=$ac_mid
20444else
20445  echo "$as_me: failed program was:" >&5
20446sed 's/^/| /' conftest.$ac_ext >&5
20447
20448ac_lo=`expr '(' $ac_mid ')' + 1`
20449fi
20450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20451done
20452case $ac_lo in
20453?*) ac_cv_sizeof_off_t=$ac_lo;;
20454'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20455echo "$as_me: error: in \`$ac_pwd':" >&2;}
20456{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20457See \`config.log' for more details." >&5
20458echo "$as_me: error: cannot compute sizeof (off_t), 77
20459See \`config.log' for more details." >&2;}
20460   { (exit 1); exit 1; }; }; } ;;
20461esac
20462else
20463  if test "$cross_compiling" = yes; then
20464  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20465echo "$as_me: error: in \`$ac_pwd':" >&2;}
20466{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20467See \`config.log' for more details." >&5
20468echo "$as_me: error: cannot run test program while cross compiling
20469See \`config.log' for more details." >&2;}
20470   { (exit 1); exit 1; }; }; }
20471else
20472  cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h.  */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h.  */
20478$ac_includes_default
20479long longval () { return (long) (sizeof (off_t)); }
20480unsigned long ulongval () { return (long) (sizeof (off_t)); }
20481#include <stdio.h>
20482#include <stdlib.h>
20483int
20484main ()
20485{
20486
20487  FILE *f = fopen ("conftest.val", "w");
20488  if (! f)
20489    exit (1);
20490  if (((long) (sizeof (off_t))) < 0)
20491    {
20492      long i = longval ();
20493      if (i != ((long) (sizeof (off_t))))
20494	exit (1);
20495      fprintf (f, "%ld\n", i);
20496    }
20497  else
20498    {
20499      unsigned long i = ulongval ();
20500      if (i != ((long) (sizeof (off_t))))
20501	exit (1);
20502      fprintf (f, "%lu\n", i);
20503    }
20504  exit (ferror (f) || fclose (f) != 0);
20505
20506  ;
20507  return 0;
20508}
20509_ACEOF
20510rm -f conftest$ac_exeext
20511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20512  (eval $ac_link) 2>&5
20513  ac_status=$?
20514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517  (eval $ac_try) 2>&5
20518  ac_status=$?
20519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520  (exit $ac_status); }; }; then
20521  ac_cv_sizeof_off_t=`cat conftest.val`
20522else
20523  echo "$as_me: program exited with status $ac_status" >&5
20524echo "$as_me: failed program was:" >&5
20525sed 's/^/| /' conftest.$ac_ext >&5
20526
20527( exit $ac_status )
20528{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20529echo "$as_me: error: in \`$ac_pwd':" >&2;}
20530{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20531See \`config.log' for more details." >&5
20532echo "$as_me: error: cannot compute sizeof (off_t), 77
20533See \`config.log' for more details." >&2;}
20534   { (exit 1); exit 1; }; }; }
20535fi
20536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20537fi
20538fi
20539rm -f conftest.val
20540else
20541  ac_cv_sizeof_off_t=0
20542fi
20543fi
20544echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20545echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
20546cat >>confdefs.h <<_ACEOF
20547#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20548_ACEOF
20549
20550
20551fi
20552echo "$as_me:$LINENO: checking file_ptr type" >&5
20553echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
20554bfd_file_ptr="long"
20555bfd_ufile_ptr="unsigned long"
20556if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20557	-o x"${ac_cv_sizeof_off_t}" = x8; then
20558    bfd_file_ptr=BFD_HOST_64_BIT
20559    bfd_ufile_ptr=BFD_HOST_U_64_BIT
20560fi
20561echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20562echo "${ECHO_T}$bfd_file_ptr" >&6
20563
20564
20565
20566
20567tdefaults=""
20568test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20569test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
20570test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
20571test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20572test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20573
20574
20575
20576
20577for ac_header in stdlib.h unistd.h
20578do
20579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20580if eval "test \"\${$as_ac_Header+set}\" = set"; then
20581  echo "$as_me:$LINENO: checking for $ac_header" >&5
20582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20583if eval "test \"\${$as_ac_Header+set}\" = set"; then
20584  echo $ECHO_N "(cached) $ECHO_C" >&6
20585fi
20586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20588else
20589  # Is the header compilable?
20590echo "$as_me:$LINENO: checking $ac_header usability" >&5
20591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20592cat >conftest.$ac_ext <<_ACEOF
20593/* confdefs.h.  */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h.  */
20598$ac_includes_default
20599#include <$ac_header>
20600_ACEOF
20601rm -f conftest.$ac_objext
20602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20603  (eval $ac_compile) 2>conftest.er1
20604  ac_status=$?
20605  grep -v '^ *+' conftest.er1 >conftest.err
20606  rm -f conftest.er1
20607  cat conftest.err >&5
20608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609  (exit $ac_status); } &&
20610	 { ac_try='test -z "$ac_c_werror_flag"
20611			 || test ! -s conftest.err'
20612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613  (eval $ac_try) 2>&5
20614  ac_status=$?
20615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616  (exit $ac_status); }; } &&
20617	 { ac_try='test -s conftest.$ac_objext'
20618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619  (eval $ac_try) 2>&5
20620  ac_status=$?
20621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622  (exit $ac_status); }; }; then
20623  ac_header_compiler=yes
20624else
20625  echo "$as_me: failed program was:" >&5
20626sed 's/^/| /' conftest.$ac_ext >&5
20627
20628ac_header_compiler=no
20629fi
20630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20631echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20632echo "${ECHO_T}$ac_header_compiler" >&6
20633
20634# Is the header present?
20635echo "$as_me:$LINENO: checking $ac_header presence" >&5
20636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20637cat >conftest.$ac_ext <<_ACEOF
20638/* confdefs.h.  */
20639_ACEOF
20640cat confdefs.h >>conftest.$ac_ext
20641cat >>conftest.$ac_ext <<_ACEOF
20642/* end confdefs.h.  */
20643#include <$ac_header>
20644_ACEOF
20645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20646  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20647  ac_status=$?
20648  grep -v '^ *+' conftest.er1 >conftest.err
20649  rm -f conftest.er1
20650  cat conftest.err >&5
20651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652  (exit $ac_status); } >/dev/null; then
20653  if test -s conftest.err; then
20654    ac_cpp_err=$ac_c_preproc_warn_flag
20655    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20656  else
20657    ac_cpp_err=
20658  fi
20659else
20660  ac_cpp_err=yes
20661fi
20662if test -z "$ac_cpp_err"; then
20663  ac_header_preproc=yes
20664else
20665  echo "$as_me: failed program was:" >&5
20666sed 's/^/| /' conftest.$ac_ext >&5
20667
20668  ac_header_preproc=no
20669fi
20670rm -f conftest.err conftest.$ac_ext
20671echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20672echo "${ECHO_T}$ac_header_preproc" >&6
20673
20674# So?  What about this header?
20675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20676  yes:no: )
20677    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20679    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20681    ac_header_preproc=yes
20682    ;;
20683  no:yes:* )
20684    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20686    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20687echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20688    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20690    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20691echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20692    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20694    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20696    (
20697      cat <<\_ASBOX
20698## ------------------------------------------ ##
20699## Report this to the AC_PACKAGE_NAME lists.  ##
20700## ------------------------------------------ ##
20701_ASBOX
20702    ) |
20703      sed "s/^/$as_me: WARNING:     /" >&2
20704    ;;
20705esac
20706echo "$as_me:$LINENO: checking for $ac_header" >&5
20707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20708if eval "test \"\${$as_ac_Header+set}\" = set"; then
20709  echo $ECHO_N "(cached) $ECHO_C" >&6
20710else
20711  eval "$as_ac_Header=\$ac_header_preproc"
20712fi
20713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20715
20716fi
20717if test `eval echo '${'$as_ac_Header'}'` = yes; then
20718  cat >>confdefs.h <<_ACEOF
20719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20720_ACEOF
20721
20722fi
20723
20724done
20725
20726
20727for ac_func in getpagesize
20728do
20729as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20730echo "$as_me:$LINENO: checking for $ac_func" >&5
20731echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20732if eval "test \"\${$as_ac_var+set}\" = set"; then
20733  echo $ECHO_N "(cached) $ECHO_C" >&6
20734else
20735  cat >conftest.$ac_ext <<_ACEOF
20736/* confdefs.h.  */
20737_ACEOF
20738cat confdefs.h >>conftest.$ac_ext
20739cat >>conftest.$ac_ext <<_ACEOF
20740/* end confdefs.h.  */
20741/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20742   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20743#define $ac_func innocuous_$ac_func
20744
20745/* System header to define __stub macros and hopefully few prototypes,
20746    which can conflict with char $ac_func (); below.
20747    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20748    <limits.h> exists even on freestanding compilers.  */
20749
20750#ifdef __STDC__
20751# include <limits.h>
20752#else
20753# include <assert.h>
20754#endif
20755
20756#undef $ac_func
20757
20758/* Override any gcc2 internal prototype to avoid an error.  */
20759#ifdef __cplusplus
20760extern "C"
20761{
20762#endif
20763/* We use char because int might match the return type of a gcc2
20764   builtin and then its argument prototype would still apply.  */
20765char $ac_func ();
20766/* The GNU C library defines this for functions which it implements
20767    to always fail with ENOSYS.  Some functions are actually named
20768    something starting with __ and the normal name is an alias.  */
20769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20770choke me
20771#else
20772char (*f) () = $ac_func;
20773#endif
20774#ifdef __cplusplus
20775}
20776#endif
20777
20778int
20779main ()
20780{
20781return f != $ac_func;
20782  ;
20783  return 0;
20784}
20785_ACEOF
20786rm -f conftest.$ac_objext conftest$ac_exeext
20787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20788  (eval $ac_link) 2>conftest.er1
20789  ac_status=$?
20790  grep -v '^ *+' conftest.er1 >conftest.err
20791  rm -f conftest.er1
20792  cat conftest.err >&5
20793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794  (exit $ac_status); } &&
20795	 { ac_try='test -z "$ac_c_werror_flag"
20796			 || test ! -s conftest.err'
20797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798  (eval $ac_try) 2>&5
20799  ac_status=$?
20800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801  (exit $ac_status); }; } &&
20802	 { ac_try='test -s conftest$ac_exeext'
20803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804  (eval $ac_try) 2>&5
20805  ac_status=$?
20806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807  (exit $ac_status); }; }; then
20808  eval "$as_ac_var=yes"
20809else
20810  echo "$as_me: failed program was:" >&5
20811sed 's/^/| /' conftest.$ac_ext >&5
20812
20813eval "$as_ac_var=no"
20814fi
20815rm -f conftest.err conftest.$ac_objext \
20816      conftest$ac_exeext conftest.$ac_ext
20817fi
20818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20820if test `eval echo '${'$as_ac_var'}'` = yes; then
20821  cat >>confdefs.h <<_ACEOF
20822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823_ACEOF
20824
20825fi
20826done
20827
20828echo "$as_me:$LINENO: checking for working mmap" >&5
20829echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20830if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20831  echo $ECHO_N "(cached) $ECHO_C" >&6
20832else
20833  if test "$cross_compiling" = yes; then
20834  ac_cv_func_mmap_fixed_mapped=no
20835else
20836  cat >conftest.$ac_ext <<_ACEOF
20837/* confdefs.h.  */
20838_ACEOF
20839cat confdefs.h >>conftest.$ac_ext
20840cat >>conftest.$ac_ext <<_ACEOF
20841/* end confdefs.h.  */
20842$ac_includes_default
20843/* malloc might have been renamed as rpl_malloc. */
20844#undef malloc
20845
20846/* Thanks to Mike Haertel and Jim Avera for this test.
20847   Here is a matrix of mmap possibilities:
20848	mmap private not fixed
20849	mmap private fixed at somewhere currently unmapped
20850	mmap private fixed at somewhere already mapped
20851	mmap shared not fixed
20852	mmap shared fixed at somewhere currently unmapped
20853	mmap shared fixed at somewhere already mapped
20854   For private mappings, we should verify that changes cannot be read()
20855   back from the file, nor mmap's back from the file at a different
20856   address.  (There have been systems where private was not correctly
20857   implemented like the infamous i386 svr4.0, and systems where the
20858   VM page cache was not coherent with the file system buffer cache
20859   like early versions of FreeBSD and possibly contemporary NetBSD.)
20860   For shared mappings, we should conversely verify that changes get
20861   propagated back to all the places they're supposed to be.
20862
20863   Grep wants private fixed already mapped.
20864   The main things grep needs to know about mmap are:
20865   * does it exist and is it safe to write into the mmap'd area
20866   * how to use it (BSD variants)  */
20867
20868#include <fcntl.h>
20869#include <sys/mman.h>
20870
20871#if !STDC_HEADERS && !HAVE_STDLIB_H
20872char *malloc ();
20873#endif
20874
20875/* This mess was copied from the GNU getpagesize.h.  */
20876#if !HAVE_GETPAGESIZE
20877/* Assume that all systems that can run configure have sys/param.h.  */
20878# if !HAVE_SYS_PARAM_H
20879#  define HAVE_SYS_PARAM_H 1
20880# endif
20881
20882# ifdef _SC_PAGESIZE
20883#  define getpagesize() sysconf(_SC_PAGESIZE)
20884# else /* no _SC_PAGESIZE */
20885#  if HAVE_SYS_PARAM_H
20886#   include <sys/param.h>
20887#   ifdef EXEC_PAGESIZE
20888#    define getpagesize() EXEC_PAGESIZE
20889#   else /* no EXEC_PAGESIZE */
20890#    ifdef NBPG
20891#     define getpagesize() NBPG * CLSIZE
20892#     ifndef CLSIZE
20893#      define CLSIZE 1
20894#     endif /* no CLSIZE */
20895#    else /* no NBPG */
20896#     ifdef NBPC
20897#      define getpagesize() NBPC
20898#     else /* no NBPC */
20899#      ifdef PAGESIZE
20900#       define getpagesize() PAGESIZE
20901#      endif /* PAGESIZE */
20902#     endif /* no NBPC */
20903#    endif /* no NBPG */
20904#   endif /* no EXEC_PAGESIZE */
20905#  else /* no HAVE_SYS_PARAM_H */
20906#   define getpagesize() 8192	/* punt totally */
20907#  endif /* no HAVE_SYS_PARAM_H */
20908# endif /* no _SC_PAGESIZE */
20909
20910#endif /* no HAVE_GETPAGESIZE */
20911
20912int
20913main ()
20914{
20915  char *data, *data2, *data3;
20916  int i, pagesize;
20917  int fd;
20918
20919  pagesize = getpagesize ();
20920
20921  /* First, make a file with some known garbage in it. */
20922  data = (char *) malloc (pagesize);
20923  if (!data)
20924    exit (1);
20925  for (i = 0; i < pagesize; ++i)
20926    *(data + i) = rand ();
20927  umask (0);
20928  fd = creat ("conftest.mmap", 0600);
20929  if (fd < 0)
20930    exit (1);
20931  if (write (fd, data, pagesize) != pagesize)
20932    exit (1);
20933  close (fd);
20934
20935  /* Next, try to mmap the file at a fixed address which already has
20936     something else allocated at it.  If we can, also make sure that
20937     we see the same garbage.  */
20938  fd = open ("conftest.mmap", O_RDWR);
20939  if (fd < 0)
20940    exit (1);
20941  data2 = (char *) malloc (2 * pagesize);
20942  if (!data2)
20943    exit (1);
20944  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20945  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20946		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20947    exit (1);
20948  for (i = 0; i < pagesize; ++i)
20949    if (*(data + i) != *(data2 + i))
20950      exit (1);
20951
20952  /* Finally, make sure that changes to the mapped area do not
20953     percolate back to the file as seen by read().  (This is a bug on
20954     some variants of i386 svr4.0.)  */
20955  for (i = 0; i < pagesize; ++i)
20956    *(data2 + i) = *(data2 + i) + 1;
20957  data3 = (char *) malloc (pagesize);
20958  if (!data3)
20959    exit (1);
20960  if (read (fd, data3, pagesize) != pagesize)
20961    exit (1);
20962  for (i = 0; i < pagesize; ++i)
20963    if (*(data + i) != *(data3 + i))
20964      exit (1);
20965  close (fd);
20966  exit (0);
20967}
20968_ACEOF
20969rm -f conftest$ac_exeext
20970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971  (eval $ac_link) 2>&5
20972  ac_status=$?
20973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976  (eval $ac_try) 2>&5
20977  ac_status=$?
20978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979  (exit $ac_status); }; }; then
20980  ac_cv_func_mmap_fixed_mapped=yes
20981else
20982  echo "$as_me: program exited with status $ac_status" >&5
20983echo "$as_me: failed program was:" >&5
20984sed 's/^/| /' conftest.$ac_ext >&5
20985
20986( exit $ac_status )
20987ac_cv_func_mmap_fixed_mapped=no
20988fi
20989rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20990fi
20991fi
20992echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20993echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20994if test $ac_cv_func_mmap_fixed_mapped = yes; then
20995
20996cat >>confdefs.h <<\_ACEOF
20997#define HAVE_MMAP 1
20998_ACEOF
20999
21000fi
21001rm -f conftest.mmap
21002
21003
21004
21005for ac_func in madvise mprotect
21006do
21007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008echo "$as_me:$LINENO: checking for $ac_func" >&5
21009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21010if eval "test \"\${$as_ac_var+set}\" = set"; then
21011  echo $ECHO_N "(cached) $ECHO_C" >&6
21012else
21013  cat >conftest.$ac_ext <<_ACEOF
21014/* confdefs.h.  */
21015_ACEOF
21016cat confdefs.h >>conftest.$ac_ext
21017cat >>conftest.$ac_ext <<_ACEOF
21018/* end confdefs.h.  */
21019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21020   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21021#define $ac_func innocuous_$ac_func
21022
21023/* System header to define __stub macros and hopefully few prototypes,
21024    which can conflict with char $ac_func (); below.
21025    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21026    <limits.h> exists even on freestanding compilers.  */
21027
21028#ifdef __STDC__
21029# include <limits.h>
21030#else
21031# include <assert.h>
21032#endif
21033
21034#undef $ac_func
21035
21036/* Override any gcc2 internal prototype to avoid an error.  */
21037#ifdef __cplusplus
21038extern "C"
21039{
21040#endif
21041/* We use char because int might match the return type of a gcc2
21042   builtin and then its argument prototype would still apply.  */
21043char $ac_func ();
21044/* The GNU C library defines this for functions which it implements
21045    to always fail with ENOSYS.  Some functions are actually named
21046    something starting with __ and the normal name is an alias.  */
21047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21048choke me
21049#else
21050char (*f) () = $ac_func;
21051#endif
21052#ifdef __cplusplus
21053}
21054#endif
21055
21056int
21057main ()
21058{
21059return f != $ac_func;
21060  ;
21061  return 0;
21062}
21063_ACEOF
21064rm -f conftest.$ac_objext conftest$ac_exeext
21065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21066  (eval $ac_link) 2>conftest.er1
21067  ac_status=$?
21068  grep -v '^ *+' conftest.er1 >conftest.err
21069  rm -f conftest.er1
21070  cat conftest.err >&5
21071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072  (exit $ac_status); } &&
21073	 { ac_try='test -z "$ac_c_werror_flag"
21074			 || test ! -s conftest.err'
21075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076  (eval $ac_try) 2>&5
21077  ac_status=$?
21078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079  (exit $ac_status); }; } &&
21080	 { ac_try='test -s conftest$ac_exeext'
21081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082  (eval $ac_try) 2>&5
21083  ac_status=$?
21084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085  (exit $ac_status); }; }; then
21086  eval "$as_ac_var=yes"
21087else
21088  echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091eval "$as_ac_var=no"
21092fi
21093rm -f conftest.err conftest.$ac_objext \
21094      conftest$ac_exeext conftest.$ac_ext
21095fi
21096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21098if test `eval echo '${'$as_ac_var'}'` = yes; then
21099  cat >>confdefs.h <<_ACEOF
21100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21101_ACEOF
21102
21103fi
21104done
21105
21106case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
21107  true+yes )
21108cat >>confdefs.h <<\_ACEOF
21109#define USE_MMAP 1
21110_ACEOF
21111 ;;
21112esac
21113
21114rm -f doc/config.status
21115                                        ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
21116
21117
21118          ac_config_commands="$ac_config_commands default"
21119
21120
21121
21122
21123
21124
21125cat >confcache <<\_ACEOF
21126# This file is a shell script that caches the results of configure
21127# tests run on this system so they can be shared between configure
21128# scripts and configure runs, see configure's option --config-cache.
21129# It is not useful on other systems.  If it contains results you don't
21130# want to keep, you may remove or edit it.
21131#
21132# config.status only pays attention to the cache file if you give it
21133# the --recheck option to rerun configure.
21134#
21135# `ac_cv_env_foo' variables (set or unset) will be overridden when
21136# loading this file, other *unset* `ac_cv_foo' will be assigned the
21137# following values.
21138
21139_ACEOF
21140
21141# The following way of writing the cache mishandles newlines in values,
21142# but we know of no workaround that is simple, portable, and efficient.
21143# So, don't put newlines in cache variables' values.
21144# Ultrix sh set writes to stderr and can't be redirected directly,
21145# and sets the high bit in the cache file unless we assign to the vars.
21146{
21147  (set) 2>&1 |
21148    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21149    *ac_space=\ *)
21150      # `set' does not quote correctly, so add quotes (double-quote
21151      # substitution turns \\\\ into \\, and sed turns \\ into \).
21152      sed -n \
21153	"s/'/'\\\\''/g;
21154	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21155      ;;
21156    *)
21157      # `set' quotes correctly as required by POSIX, so do not add quotes.
21158      sed -n \
21159	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21160      ;;
21161    esac;
21162} |
21163  sed '
21164     t clear
21165     : clear
21166     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21167     t end
21168     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21169     : end' >>confcache
21170if diff $cache_file confcache >/dev/null 2>&1; then :; else
21171  if test -w $cache_file; then
21172    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21173    cat confcache >$cache_file
21174  else
21175    echo "not updating unwritable cache $cache_file"
21176  fi
21177fi
21178rm -f confcache
21179
21180test "x$prefix" = xNONE && prefix=$ac_default_prefix
21181# Let make expand exec_prefix.
21182test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21183
21184# VPATH may cause trouble with some makes, so we remove $(srcdir),
21185# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21186# trailing colons and then remove the whole line if VPATH becomes empty
21187# (actually we leave an empty line to preserve line numbers).
21188if test "x$srcdir" = x.; then
21189  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21190s/:*\$(srcdir):*/:/;
21191s/:*\${srcdir}:*/:/;
21192s/:*@srcdir@:*/:/;
21193s/^\([^=]*=[	 ]*\):*/\1/;
21194s/:*$//;
21195s/^[^=]*=[	 ]*$//;
21196}'
21197fi
21198
21199DEFS=-DHAVE_CONFIG_H
21200
21201ac_libobjs=
21202ac_ltlibobjs=
21203for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21204  # 1. Remove the extension, and $U if already installed.
21205  ac_i=`echo "$ac_i" |
21206	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21207  # 2. Add them.
21208  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21209  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21210done
21211LIBOBJS=$ac_libobjs
21212
21213LTLIBOBJS=$ac_ltlibobjs
21214
21215
21216if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21217  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21218Usually this means the macro was only invoked conditionally." >&5
21219echo "$as_me: error: conditional \"AMDEP\" was never defined.
21220Usually this means the macro was only invoked conditionally." >&2;}
21221   { (exit 1); exit 1; }; }
21222fi
21223if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21224  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21225Usually this means the macro was only invoked conditionally." >&5
21226echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21227Usually this means the macro was only invoked conditionally." >&2;}
21228   { (exit 1); exit 1; }; }
21229fi
21230if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21231  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21232Usually this means the macro was only invoked conditionally." >&5
21233echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21234Usually this means the macro was only invoked conditionally." >&2;}
21235   { (exit 1); exit 1; }; }
21236fi
21237if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
21238  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
21239Usually this means the macro was only invoked conditionally." >&5
21240echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
21241Usually this means the macro was only invoked conditionally." >&2;}
21242   { (exit 1); exit 1; }; }
21243fi
21244if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
21245  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
21246Usually this means the macro was only invoked conditionally." >&5
21247echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
21248Usually this means the macro was only invoked conditionally." >&2;}
21249   { (exit 1); exit 1; }; }
21250fi
21251
21252: ${CONFIG_STATUS=./config.status}
21253ac_clean_files_save=$ac_clean_files
21254ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21255{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21256echo "$as_me: creating $CONFIG_STATUS" >&6;}
21257cat >$CONFIG_STATUS <<_ACEOF
21258#! $SHELL
21259# Generated by $as_me.
21260# Run this file to recreate the current configuration.
21261# Compiler output produced by configure, useful for debugging
21262# configure, is in config.log if it exists.
21263
21264debug=false
21265ac_cs_recheck=false
21266ac_cs_silent=false
21267SHELL=\${CONFIG_SHELL-$SHELL}
21268_ACEOF
21269
21270cat >>$CONFIG_STATUS <<\_ACEOF
21271## --------------------- ##
21272## M4sh Initialization.  ##
21273## --------------------- ##
21274
21275# Be Bourne compatible
21276if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21277  emulate sh
21278  NULLCMD=:
21279  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21280  # is contrary to our usage.  Disable this feature.
21281  alias -g '${1+"$@"}'='"$@"'
21282elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21283  set -o posix
21284fi
21285DUALCASE=1; export DUALCASE # for MKS sh
21286
21287# Support unset when possible.
21288if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21289  as_unset=unset
21290else
21291  as_unset=false
21292fi
21293
21294
21295# Work around bugs in pre-3.0 UWIN ksh.
21296$as_unset ENV MAIL MAILPATH
21297PS1='$ '
21298PS2='> '
21299PS4='+ '
21300
21301# NLS nuisances.
21302for as_var in \
21303  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21304  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21305  LC_TELEPHONE LC_TIME
21306do
21307  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21308    eval $as_var=C; export $as_var
21309  else
21310    $as_unset $as_var
21311  fi
21312done
21313
21314# Required to use basename.
21315if expr a : '\(a\)' >/dev/null 2>&1; then
21316  as_expr=expr
21317else
21318  as_expr=false
21319fi
21320
21321if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21322  as_basename=basename
21323else
21324  as_basename=false
21325fi
21326
21327
21328# Name of the executable.
21329as_me=`$as_basename "$0" ||
21330$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21331	 X"$0" : 'X\(//\)$' \| \
21332	 X"$0" : 'X\(/\)$' \| \
21333	 .     : '\(.\)' 2>/dev/null ||
21334echo X/"$0" |
21335    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21336  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21337  	  /^X\/\(\/\).*/{ s//\1/; q; }
21338  	  s/.*/./; q'`
21339
21340
21341# PATH needs CR, and LINENO needs CR and PATH.
21342# Avoid depending upon Character Ranges.
21343as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21344as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21345as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21346as_cr_digits='0123456789'
21347as_cr_alnum=$as_cr_Letters$as_cr_digits
21348
21349# The user is always right.
21350if test "${PATH_SEPARATOR+set}" != set; then
21351  echo "#! /bin/sh" >conf$$.sh
21352  echo  "exit 0"   >>conf$$.sh
21353  chmod +x conf$$.sh
21354  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21355    PATH_SEPARATOR=';'
21356  else
21357    PATH_SEPARATOR=:
21358  fi
21359  rm -f conf$$.sh
21360fi
21361
21362
21363  as_lineno_1=$LINENO
21364  as_lineno_2=$LINENO
21365  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21366  test "x$as_lineno_1" != "x$as_lineno_2" &&
21367  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21368  # Find who we are.  Look in the path if we contain no path at all
21369  # relative or not.
21370  case $0 in
21371    *[\\/]* ) as_myself=$0 ;;
21372    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21373for as_dir in $PATH
21374do
21375  IFS=$as_save_IFS
21376  test -z "$as_dir" && as_dir=.
21377  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21378done
21379
21380       ;;
21381  esac
21382  # We did not find ourselves, most probably we were run as `sh COMMAND'
21383  # in which case we are not to be found in the path.
21384  if test "x$as_myself" = x; then
21385    as_myself=$0
21386  fi
21387  if test ! -f "$as_myself"; then
21388    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21389echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21390   { (exit 1); exit 1; }; }
21391  fi
21392  case $CONFIG_SHELL in
21393  '')
21394    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21395for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21396do
21397  IFS=$as_save_IFS
21398  test -z "$as_dir" && as_dir=.
21399  for as_base in sh bash ksh sh5; do
21400	 case $as_dir in
21401	 /*)
21402	   if ("$as_dir/$as_base" -c '
21403  as_lineno_1=$LINENO
21404  as_lineno_2=$LINENO
21405  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21406  test "x$as_lineno_1" != "x$as_lineno_2" &&
21407  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21408	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21409	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21410	     CONFIG_SHELL=$as_dir/$as_base
21411	     export CONFIG_SHELL
21412	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21413	   fi;;
21414	 esac
21415       done
21416done
21417;;
21418  esac
21419
21420  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21421  # uniformly replaced by the line number.  The first 'sed' inserts a
21422  # line-number line before each line; the second 'sed' does the real
21423  # work.  The second script uses 'N' to pair each line-number line
21424  # with the numbered line, and appends trailing '-' during
21425  # substitution so that $LINENO is not a special case at line end.
21426  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21427  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21428  sed '=' <$as_myself |
21429    sed '
21430      N
21431      s,$,-,
21432      : loop
21433      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21434      t loop
21435      s,-$,,
21436      s,^['$as_cr_digits']*\n,,
21437    ' >$as_me.lineno &&
21438  chmod +x $as_me.lineno ||
21439    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21440echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21441   { (exit 1); exit 1; }; }
21442
21443  # Don't try to exec as it changes $[0], causing all sort of problems
21444  # (the dirname of $[0] is not the place where we might find the
21445  # original and so on.  Autoconf is especially sensible to this).
21446  . ./$as_me.lineno
21447  # Exit status is that of the last command.
21448  exit
21449}
21450
21451
21452case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21453  *c*,-n*) ECHO_N= ECHO_C='
21454' ECHO_T='	' ;;
21455  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21456  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21457esac
21458
21459if expr a : '\(a\)' >/dev/null 2>&1; then
21460  as_expr=expr
21461else
21462  as_expr=false
21463fi
21464
21465rm -f conf$$ conf$$.exe conf$$.file
21466echo >conf$$.file
21467if ln -s conf$$.file conf$$ 2>/dev/null; then
21468  # We could just check for DJGPP; but this test a) works b) is more generic
21469  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21470  if test -f conf$$.exe; then
21471    # Don't use ln at all; we don't have any links
21472    as_ln_s='cp -p'
21473  else
21474    as_ln_s='ln -s'
21475  fi
21476elif ln conf$$.file conf$$ 2>/dev/null; then
21477  as_ln_s=ln
21478else
21479  as_ln_s='cp -p'
21480fi
21481rm -f conf$$ conf$$.exe conf$$.file
21482
21483if mkdir -p . 2>/dev/null; then
21484  as_mkdir_p=:
21485else
21486  test -d ./-p && rmdir ./-p
21487  as_mkdir_p=false
21488fi
21489
21490as_executable_p="test -f"
21491
21492# Sed expression to map a string onto a valid CPP name.
21493as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21494
21495# Sed expression to map a string onto a valid variable name.
21496as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21497
21498
21499# IFS
21500# We need space, tab and new line, in precisely that order.
21501as_nl='
21502'
21503IFS=" 	$as_nl"
21504
21505# CDPATH.
21506$as_unset CDPATH
21507
21508exec 6>&1
21509
21510# Open the log real soon, to keep \$[0] and so on meaningful, and to
21511# report actual input values of CONFIG_FILES etc. instead of their
21512# values after options handling.  Logging --version etc. is OK.
21513exec 5>>config.log
21514{
21515  echo
21516  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21517## Running $as_me. ##
21518_ASBOX
21519} >&5
21520cat >&5 <<_CSEOF
21521
21522This file was extended by $as_me, which was
21523generated by GNU Autoconf 2.59.  Invocation command line was
21524
21525  CONFIG_FILES    = $CONFIG_FILES
21526  CONFIG_HEADERS  = $CONFIG_HEADERS
21527  CONFIG_LINKS    = $CONFIG_LINKS
21528  CONFIG_COMMANDS = $CONFIG_COMMANDS
21529  $ $0 $@
21530
21531_CSEOF
21532echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21533echo >&5
21534_ACEOF
21535
21536# Files that config.status was made for.
21537if test -n "$ac_config_files"; then
21538  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21539fi
21540
21541if test -n "$ac_config_headers"; then
21542  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21543fi
21544
21545if test -n "$ac_config_links"; then
21546  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21547fi
21548
21549if test -n "$ac_config_commands"; then
21550  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21551fi
21552
21553cat >>$CONFIG_STATUS <<\_ACEOF
21554
21555ac_cs_usage="\
21556\`$as_me' instantiates files from templates according to the
21557current configuration.
21558
21559Usage: $0 [OPTIONS] [FILE]...
21560
21561  -h, --help       print this help, then exit
21562  -V, --version    print version number, then exit
21563  -q, --quiet      do not print progress messages
21564  -d, --debug      don't remove temporary files
21565      --recheck    update $as_me by reconfiguring in the same conditions
21566  --file=FILE[:TEMPLATE]
21567		   instantiate the configuration file FILE
21568  --header=FILE[:TEMPLATE]
21569		   instantiate the configuration header FILE
21570
21571Configuration files:
21572$config_files
21573
21574Configuration headers:
21575$config_headers
21576
21577Configuration commands:
21578$config_commands
21579
21580Report bugs to <bug-autoconf@gnu.org>."
21581_ACEOF
21582
21583cat >>$CONFIG_STATUS <<_ACEOF
21584ac_cs_version="\\
21585config.status
21586configured by $0, generated by GNU Autoconf 2.59,
21587  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21588
21589Copyright (C) 2003 Free Software Foundation, Inc.
21590This config.status script is free software; the Free Software Foundation
21591gives unlimited permission to copy, distribute and modify it."
21592srcdir=$srcdir
21593INSTALL="$INSTALL"
21594_ACEOF
21595
21596cat >>$CONFIG_STATUS <<\_ACEOF
21597# If no file are specified by the user, then we need to provide default
21598# value.  By we need to know if files were specified by the user.
21599ac_need_defaults=:
21600while test $# != 0
21601do
21602  case $1 in
21603  --*=*)
21604    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21605    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21606    ac_shift=:
21607    ;;
21608  -*)
21609    ac_option=$1
21610    ac_optarg=$2
21611    ac_shift=shift
21612    ;;
21613  *) # This is not an option, so the user has probably given explicit
21614     # arguments.
21615     ac_option=$1
21616     ac_need_defaults=false;;
21617  esac
21618
21619  case $ac_option in
21620  # Handling of the options.
21621_ACEOF
21622cat >>$CONFIG_STATUS <<\_ACEOF
21623  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21624    ac_cs_recheck=: ;;
21625  --version | --vers* | -V )
21626    echo "$ac_cs_version"; exit 0 ;;
21627  --he | --h)
21628    # Conflict between --help and --header
21629    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21630Try \`$0 --help' for more information." >&5
21631echo "$as_me: error: ambiguous option: $1
21632Try \`$0 --help' for more information." >&2;}
21633   { (exit 1); exit 1; }; };;
21634  --help | --hel | -h )
21635    echo "$ac_cs_usage"; exit 0 ;;
21636  --debug | --d* | -d )
21637    debug=: ;;
21638  --file | --fil | --fi | --f )
21639    $ac_shift
21640    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21641    ac_need_defaults=false;;
21642  --header | --heade | --head | --hea )
21643    $ac_shift
21644    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21645    ac_need_defaults=false;;
21646  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21647  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21648    ac_cs_silent=: ;;
21649
21650  # This is an error.
21651  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21652Try \`$0 --help' for more information." >&5
21653echo "$as_me: error: unrecognized option: $1
21654Try \`$0 --help' for more information." >&2;}
21655   { (exit 1); exit 1; }; } ;;
21656
21657  *) ac_config_targets="$ac_config_targets $1" ;;
21658
21659  esac
21660  shift
21661done
21662
21663ac_configure_extra_args=
21664
21665if $ac_cs_silent; then
21666  exec 6>/dev/null
21667  ac_configure_extra_args="$ac_configure_extra_args --silent"
21668fi
21669
21670_ACEOF
21671cat >>$CONFIG_STATUS <<_ACEOF
21672if \$ac_cs_recheck; then
21673  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21674  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21675fi
21676
21677_ACEOF
21678
21679cat >>$CONFIG_STATUS <<_ACEOF
21680#
21681# INIT-COMMANDS section.
21682#
21683
21684AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21685
21686
21687# The HP-UX ksh and POSIX shell print the target directory to stdout
21688# if CDPATH is set.
21689(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21690
21691sed_quote_subst='$sed_quote_subst'
21692double_quote_subst='$double_quote_subst'
21693delay_variable_subst='$delay_variable_subst'
21694enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21695macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21696macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21697enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21698pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21699enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21700host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21701host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21702host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21703build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21704build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21705build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21706SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21707Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21708GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21709EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21710FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21711LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21712NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21713LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21714max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21715ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21716exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21717lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21718lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21719lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21720reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21721reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21722deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21723file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21724AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21725AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21726STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21727RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21728old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21729old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21730old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21731CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21732CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21733compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21734GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21735lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21736lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21737lt_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"`'
21738objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21739SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21740ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21741MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21742lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21743lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21744lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21745lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21746lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21747need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21748libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21749shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21750extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21751archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21752enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21753export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21754whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21755compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21756old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21757old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21758archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21759archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21760module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21761module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21762with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21763allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21764no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21765hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21766hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21767hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21768hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21769hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21770hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21771hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21772hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21773inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21774link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21775fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21776always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21777export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21778exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21779include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21780prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21781file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21782variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21783need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21784need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21785version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21786runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21787shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21788shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21789libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21790library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21791soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21792postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21793postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21794finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21795finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21796hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21797sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21798sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21799hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21800enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21801enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21802enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21803old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21804striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21805
21806LTCC='$LTCC'
21807LTCFLAGS='$LTCFLAGS'
21808compiler='$compiler_DEFAULT'
21809
21810# Quote evaled strings.
21811for var in SED \
21812GREP \
21813EGREP \
21814FGREP \
21815LD \
21816NM \
21817LN_S \
21818lt_SP2NL \
21819lt_NL2SP \
21820reload_flag \
21821deplibs_check_method \
21822file_magic_cmd \
21823AR \
21824AR_FLAGS \
21825STRIP \
21826RANLIB \
21827CC \
21828CFLAGS \
21829compiler \
21830lt_cv_sys_global_symbol_pipe \
21831lt_cv_sys_global_symbol_to_cdecl \
21832lt_cv_sys_global_symbol_to_c_name_address \
21833SHELL \
21834ECHO \
21835lt_prog_compiler_no_builtin_flag \
21836lt_prog_compiler_wl \
21837lt_prog_compiler_pic \
21838lt_prog_compiler_static \
21839lt_cv_prog_compiler_c_o \
21840need_locks \
21841shrext_cmds \
21842export_dynamic_flag_spec \
21843whole_archive_flag_spec \
21844compiler_needs_object \
21845with_gnu_ld \
21846allow_undefined_flag \
21847no_undefined_flag \
21848hardcode_libdir_flag_spec \
21849hardcode_libdir_flag_spec_ld \
21850hardcode_libdir_separator \
21851fix_srcfile_path \
21852exclude_expsyms \
21853include_expsyms \
21854file_list_spec \
21855variables_saved_for_relink \
21856libname_spec \
21857library_names_spec \
21858soname_spec \
21859finish_eval \
21860old_striplib \
21861striplib; do
21862    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21863    *[\\\\\\\`\\"\\\$]*)
21864      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21865      ;;
21866    *)
21867      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21868      ;;
21869    esac
21870done
21871
21872# Double-quote double-evaled strings.
21873for var in reload_cmds \
21874old_postinstall_cmds \
21875old_postuninstall_cmds \
21876old_archive_cmds \
21877extract_expsyms_cmds \
21878old_archive_from_new_cmds \
21879old_archive_from_expsyms_cmds \
21880archive_cmds \
21881archive_expsym_cmds \
21882module_cmds \
21883module_expsym_cmds \
21884export_symbols_cmds \
21885prelink_cmds \
21886postinstall_cmds \
21887postuninstall_cmds \
21888finish_cmds \
21889sys_lib_search_path_spec \
21890sys_lib_dlsearch_path_spec; do
21891    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21892    *[\\\\\\\`\\"\\\$]*)
21893      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21894      ;;
21895    *)
21896      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21897      ;;
21898    esac
21899done
21900
21901# Fix-up fallback echo if it was mangled by the above quoting rules.
21902case \$lt_ECHO in
21903*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21904  ;;
21905esac
21906
21907ac_aux_dir='$ac_aux_dir'
21908xsi_shell='$xsi_shell'
21909lt_shell_append='$lt_shell_append'
21910
21911# See if we are running on zsh, and set the options which allow our
21912# commands through without removal of \ escapes INIT.
21913if test -n "\${ZSH_VERSION+set}" ; then
21914   setopt NO_GLOB_SUBST
21915fi
21916
21917
21918    PACKAGE='$PACKAGE'
21919    VERSION='$VERSION'
21920    TIMESTAMP='$TIMESTAMP'
21921    RM='$RM'
21922    ofile='$ofile'
21923
21924
21925
21926# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21927    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21928    # from automake.
21929    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21930    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21931    LINGUAS="${LINGUAS-%UNSET%}"
21932
21933
21934GCC="$GCC"
21935CC="$CC"
21936acx_cv_header_stdint="$acx_cv_header_stdint"
21937acx_cv_type_int8_t="$acx_cv_type_int8_t"
21938acx_cv_type_int16_t="$acx_cv_type_int16_t"
21939acx_cv_type_int32_t="$acx_cv_type_int32_t"
21940acx_cv_type_int64_t="$acx_cv_type_int64_t"
21941acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21942ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21943ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21944ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21945ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21946ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21947ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21948ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21949ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21950
21951
21952
21953_ACEOF
21954
21955
21956
21957cat >>$CONFIG_STATUS <<\_ACEOF
21958for ac_config_target in $ac_config_targets
21959do
21960  case "$ac_config_target" in
21961  # Handling of arguments.
21962  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21963  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21964  "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21965  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21966  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21967  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21968  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21969  "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21970  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21971  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21972  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21973echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21974   { (exit 1); exit 1; }; };;
21975  esac
21976done
21977
21978# If the user did not use the arguments to specify the items to instantiate,
21979# then the envvar interface is used.  Set only those that are not.
21980# We use the long form for the default assignment because of an extremely
21981# bizarre bug on SunOS 4.1.3.
21982if $ac_need_defaults; then
21983  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21984  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21985  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21986fi
21987
21988# Have a temporary directory for convenience.  Make it in the build tree
21989# simply because there is no reason to put it here, and in addition,
21990# creating and moving files from /tmp can sometimes cause problems.
21991# Create a temporary directory, and hook for its removal unless debugging.
21992$debug ||
21993{
21994  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21995  trap '{ (exit 1); exit 1; }' 1 2 13 15
21996}
21997
21998# Create a (secure) tmp directory for tmp files.
21999
22000{
22001  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22002  test -n "$tmp" && test -d "$tmp"
22003}  ||
22004{
22005  tmp=./confstat$$-$RANDOM
22006  (umask 077 && mkdir $tmp)
22007} ||
22008{
22009   echo "$me: cannot create a temporary directory in ." >&2
22010   { (exit 1); exit 1; }
22011}
22012
22013_ACEOF
22014
22015cat >>$CONFIG_STATUS <<_ACEOF
22016
22017#
22018# CONFIG_FILES section.
22019#
22020
22021# No need to generate the scripts if there are no CONFIG_FILES.
22022# This happens for instance when ./config.status config.h
22023if test -n "\$CONFIG_FILES"; then
22024  # Protect against being on the right side of a sed subst in config.status.
22025  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22026   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22027s,@SHELL@,$SHELL,;t t
22028s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22029s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22030s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22031s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22032s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22033s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22034s,@exec_prefix@,$exec_prefix,;t t
22035s,@prefix@,$prefix,;t t
22036s,@program_transform_name@,$program_transform_name,;t t
22037s,@bindir@,$bindir,;t t
22038s,@sbindir@,$sbindir,;t t
22039s,@libexecdir@,$libexecdir,;t t
22040s,@datadir@,$datadir,;t t
22041s,@sysconfdir@,$sysconfdir,;t t
22042s,@sharedstatedir@,$sharedstatedir,;t t
22043s,@localstatedir@,$localstatedir,;t t
22044s,@libdir@,$libdir,;t t
22045s,@includedir@,$includedir,;t t
22046s,@oldincludedir@,$oldincludedir,;t t
22047s,@infodir@,$infodir,;t t
22048s,@mandir@,$mandir,;t t
22049s,@build_alias@,$build_alias,;t t
22050s,@host_alias@,$host_alias,;t t
22051s,@target_alias@,$target_alias,;t t
22052s,@DEFS@,$DEFS,;t t
22053s,@ECHO_C@,$ECHO_C,;t t
22054s,@ECHO_N@,$ECHO_N,;t t
22055s,@ECHO_T@,$ECHO_T,;t t
22056s,@LIBS@,$LIBS,;t t
22057s,@build@,$build,;t t
22058s,@build_cpu@,$build_cpu,;t t
22059s,@build_vendor@,$build_vendor,;t t
22060s,@build_os@,$build_os,;t t
22061s,@host@,$host,;t t
22062s,@host_cpu@,$host_cpu,;t t
22063s,@host_vendor@,$host_vendor,;t t
22064s,@host_os@,$host_os,;t t
22065s,@target@,$target,;t t
22066s,@target_cpu@,$target_cpu,;t t
22067s,@target_vendor@,$target_vendor,;t t
22068s,@target_os@,$target_os,;t t
22069s,@CC@,$CC,;t t
22070s,@CFLAGS@,$CFLAGS,;t t
22071s,@LDFLAGS@,$LDFLAGS,;t t
22072s,@CPPFLAGS@,$CPPFLAGS,;t t
22073s,@ac_ct_CC@,$ac_ct_CC,;t t
22074s,@EXEEXT@,$EXEEXT,;t t
22075s,@OBJEXT@,$OBJEXT,;t t
22076s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22077s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22078s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22079s,@CYGPATH_W@,$CYGPATH_W,;t t
22080s,@PACKAGE@,$PACKAGE,;t t
22081s,@VERSION@,$VERSION,;t t
22082s,@ACLOCAL@,$ACLOCAL,;t t
22083s,@AUTOCONF@,$AUTOCONF,;t t
22084s,@AUTOMAKE@,$AUTOMAKE,;t t
22085s,@AUTOHEADER@,$AUTOHEADER,;t t
22086s,@MAKEINFO@,$MAKEINFO,;t t
22087s,@install_sh@,$install_sh,;t t
22088s,@STRIP@,$STRIP,;t t
22089s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22090s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22091s,@mkdir_p@,$mkdir_p,;t t
22092s,@AWK@,$AWK,;t t
22093s,@SET_MAKE@,$SET_MAKE,;t t
22094s,@am__leading_dot@,$am__leading_dot,;t t
22095s,@AMTAR@,$AMTAR,;t t
22096s,@am__tar@,$am__tar,;t t
22097s,@am__untar@,$am__untar,;t t
22098s,@DEPDIR@,$DEPDIR,;t t
22099s,@am__include@,$am__include,;t t
22100s,@am__quote@,$am__quote,;t t
22101s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22102s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22103s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22104s,@CCDEPMODE@,$CCDEPMODE,;t t
22105s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22106s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22107s,@AR@,$AR,;t t
22108s,@ac_ct_AR@,$ac_ct_AR,;t t
22109s,@RANLIB@,$RANLIB,;t t
22110s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22111s,@CPP@,$CPP,;t t
22112s,@EGREP@,$EGREP,;t t
22113s,@LIBTOOL@,$LIBTOOL,;t t
22114s,@SED@,$SED,;t t
22115s,@FGREP@,$FGREP,;t t
22116s,@GREP@,$GREP,;t t
22117s,@LD@,$LD,;t t
22118s,@DUMPBIN@,$DUMPBIN,;t t
22119s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22120s,@NM@,$NM,;t t
22121s,@LN_S@,$LN_S,;t t
22122s,@lt_ECHO@,$lt_ECHO,;t t
22123s,@DEBUGDIR@,$DEBUGDIR,;t t
22124s,@PKGVERSION@,$PKGVERSION,;t t
22125s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22126s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22127s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22128s,@NO_WERROR@,$NO_WERROR,;t t
22129s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22130s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22131s,@MAINT@,$MAINT,;t t
22132s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
22133s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
22134s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
22135s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
22136s,@host_noncanonical@,$host_noncanonical,;t t
22137s,@target_noncanonical@,$target_noncanonical,;t t
22138s,@bfdlibdir@,$bfdlibdir,;t t
22139s,@bfdincludedir@,$bfdincludedir,;t t
22140s,@USE_NLS@,$USE_NLS,;t t
22141s,@LIBINTL@,$LIBINTL,;t t
22142s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22143s,@INCINTL@,$INCINTL,;t t
22144s,@XGETTEXT@,$XGETTEXT,;t t
22145s,@GMSGFMT@,$GMSGFMT,;t t
22146s,@POSUB@,$POSUB,;t t
22147s,@CATALOGS@,$CATALOGS,;t t
22148s,@DATADIRNAME@,$DATADIRNAME,;t t
22149s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22150s,@GENCAT@,$GENCAT,;t t
22151s,@CATOBJEXT@,$CATOBJEXT,;t t
22152s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22153s,@MSGFMT@,$MSGFMT,;t t
22154s,@MSGMERGE@,$MSGMERGE,;t t
22155s,@HDEFINES@,$HDEFINES,;t t
22156s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
22157s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
22158s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
22159s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
22160s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
22161s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
22162s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
22163s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
22164s,@COREFILE@,$COREFILE,;t t
22165s,@COREFLAG@,$COREFLAG,;t t
22166s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
22167s,@WIN32LIBADD@,$WIN32LIBADD,;t t
22168s,@TDEFINES@,$TDEFINES,;t t
22169s,@wordsize@,$wordsize,;t t
22170s,@bfd64_libs@,$bfd64_libs,;t t
22171s,@all_backends@,$all_backends,;t t
22172s,@bfd_backends@,$bfd_backends,;t t
22173s,@bfd_machines@,$bfd_machines,;t t
22174s,@bfd_default_target_size@,$bfd_default_target_size,;t t
22175s,@bfd_file_ptr@,$bfd_file_ptr,;t t
22176s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
22177s,@tdefaults@,$tdefaults,;t t
22178s,@datarootdir@,$datarootdir,;t t
22179s,@docdir@,$docdir,;t t
22180s,@htmldir@,$htmldir,;t t
22181s,@LIBOBJS@,$LIBOBJS,;t t
22182s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22183CEOF
22184
22185_ACEOF
22186
22187  cat >>$CONFIG_STATUS <<\_ACEOF
22188  # Split the substitutions into bite-sized pieces for seds with
22189  # small command number limits, like on Digital OSF/1 and HP-UX.
22190  ac_max_sed_lines=48
22191  ac_sed_frag=1 # Number of current file.
22192  ac_beg=1 # First line for current file.
22193  ac_end=$ac_max_sed_lines # Line after last line for current file.
22194  ac_more_lines=:
22195  ac_sed_cmds=
22196  while $ac_more_lines; do
22197    if test $ac_beg -gt 1; then
22198      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22199    else
22200      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22201    fi
22202    if test ! -s $tmp/subs.frag; then
22203      ac_more_lines=false
22204    else
22205      # The purpose of the label and of the branching condition is to
22206      # speed up the sed processing (if there are no `@' at all, there
22207      # is no need to browse any of the substitutions).
22208      # These are the two extra sed commands mentioned above.
22209      (echo ':t
22210  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22211      if test -z "$ac_sed_cmds"; then
22212	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22213      else
22214	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22215      fi
22216      ac_sed_frag=`expr $ac_sed_frag + 1`
22217      ac_beg=$ac_end
22218      ac_end=`expr $ac_end + $ac_max_sed_lines`
22219    fi
22220  done
22221  if test -z "$ac_sed_cmds"; then
22222    ac_sed_cmds=cat
22223  fi
22224fi # test -n "$CONFIG_FILES"
22225
22226_ACEOF
22227cat >>$CONFIG_STATUS <<\_ACEOF
22228for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22229  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22230  case $ac_file in
22231  - | *:- | *:-:* ) # input from stdin
22232	cat >$tmp/stdin
22233	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22234	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22235  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22236	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22237  * )   ac_file_in=$ac_file.in ;;
22238  esac
22239
22240  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22241  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22243	 X"$ac_file" : 'X\(//\)[^/]' \| \
22244	 X"$ac_file" : 'X\(//\)$' \| \
22245	 X"$ac_file" : 'X\(/\)' \| \
22246	 .     : '\(.\)' 2>/dev/null ||
22247echo X"$ac_file" |
22248    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22249  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22250  	  /^X\(\/\/\)$/{ s//\1/; q; }
22251  	  /^X\(\/\).*/{ s//\1/; q; }
22252  	  s/.*/./; q'`
22253  { if $as_mkdir_p; then
22254    mkdir -p "$ac_dir"
22255  else
22256    as_dir="$ac_dir"
22257    as_dirs=
22258    while test ! -d "$as_dir"; do
22259      as_dirs="$as_dir $as_dirs"
22260      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22261$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22262	 X"$as_dir" : 'X\(//\)[^/]' \| \
22263	 X"$as_dir" : 'X\(//\)$' \| \
22264	 X"$as_dir" : 'X\(/\)' \| \
22265	 .     : '\(.\)' 2>/dev/null ||
22266echo X"$as_dir" |
22267    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22268  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22269  	  /^X\(\/\/\)$/{ s//\1/; q; }
22270  	  /^X\(\/\).*/{ s//\1/; q; }
22271  	  s/.*/./; q'`
22272    done
22273    test ! -n "$as_dirs" || mkdir $as_dirs
22274  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22275echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22276   { (exit 1); exit 1; }; }; }
22277
22278  ac_builddir=.
22279
22280if test "$ac_dir" != .; then
22281  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22282  # A "../" for each directory in $ac_dir_suffix.
22283  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22284else
22285  ac_dir_suffix= ac_top_builddir=
22286fi
22287
22288case $srcdir in
22289  .)  # No --srcdir option.  We are building in place.
22290    ac_srcdir=.
22291    if test -z "$ac_top_builddir"; then
22292       ac_top_srcdir=.
22293    else
22294       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22295    fi ;;
22296  [\\/]* | ?:[\\/]* )  # Absolute path.
22297    ac_srcdir=$srcdir$ac_dir_suffix;
22298    ac_top_srcdir=$srcdir ;;
22299  *) # Relative path.
22300    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22301    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22302esac
22303
22304# Do not use `cd foo && pwd` to compute absolute paths, because
22305# the directories may not exist.
22306case `pwd` in
22307.) ac_abs_builddir="$ac_dir";;
22308*)
22309  case "$ac_dir" in
22310  .) ac_abs_builddir=`pwd`;;
22311  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22312  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22313  esac;;
22314esac
22315case $ac_abs_builddir in
22316.) ac_abs_top_builddir=${ac_top_builddir}.;;
22317*)
22318  case ${ac_top_builddir}. in
22319  .) ac_abs_top_builddir=$ac_abs_builddir;;
22320  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22321  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22322  esac;;
22323esac
22324case $ac_abs_builddir in
22325.) ac_abs_srcdir=$ac_srcdir;;
22326*)
22327  case $ac_srcdir in
22328  .) ac_abs_srcdir=$ac_abs_builddir;;
22329  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22330  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22331  esac;;
22332esac
22333case $ac_abs_builddir in
22334.) ac_abs_top_srcdir=$ac_top_srcdir;;
22335*)
22336  case $ac_top_srcdir in
22337  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22338  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22339  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22340  esac;;
22341esac
22342
22343
22344  case $INSTALL in
22345  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22346  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22347  esac
22348
22349  if test x"$ac_file" != x-; then
22350    { echo "$as_me:$LINENO: creating $ac_file" >&5
22351echo "$as_me: creating $ac_file" >&6;}
22352    rm -f "$ac_file"
22353  fi
22354  # Let's still pretend it is `configure' which instantiates (i.e., don't
22355  # use $as_me), people would be surprised to read:
22356  #    /* config.h.  Generated by config.status.  */
22357  if test x"$ac_file" = x-; then
22358    configure_input=
22359  else
22360    configure_input="$ac_file.  "
22361  fi
22362  configure_input=$configure_input"Generated from `echo $ac_file_in |
22363				     sed 's,.*/,,'` by configure."
22364
22365  # First look for the input files in the build tree, otherwise in the
22366  # src tree.
22367  ac_file_inputs=`IFS=:
22368    for f in $ac_file_in; do
22369      case $f in
22370      -) echo $tmp/stdin ;;
22371      [\\/$]*)
22372	 # Absolute (can't be DOS-style, as IFS=:)
22373	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22374echo "$as_me: error: cannot find input file: $f" >&2;}
22375   { (exit 1); exit 1; }; }
22376	 echo "$f";;
22377      *) # Relative
22378	 if test -f "$f"; then
22379	   # Build tree
22380	   echo "$f"
22381	 elif test -f "$srcdir/$f"; then
22382	   # Source tree
22383	   echo "$srcdir/$f"
22384	 else
22385	   # /dev/null tree
22386	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22387echo "$as_me: error: cannot find input file: $f" >&2;}
22388   { (exit 1); exit 1; }; }
22389	 fi;;
22390      esac
22391    done` || { (exit 1); exit 1; }
22392_ACEOF
22393cat >>$CONFIG_STATUS <<_ACEOF
22394  sed "$ac_vpsub
22395$extrasub
22396_ACEOF
22397cat >>$CONFIG_STATUS <<\_ACEOF
22398:t
22399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22400s,@configure_input@,$configure_input,;t t
22401s,@srcdir@,$ac_srcdir,;t t
22402s,@abs_srcdir@,$ac_abs_srcdir,;t t
22403s,@top_srcdir@,$ac_top_srcdir,;t t
22404s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22405s,@builddir@,$ac_builddir,;t t
22406s,@abs_builddir@,$ac_abs_builddir,;t t
22407s,@top_builddir@,$ac_top_builddir,;t t
22408s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22409s,@INSTALL@,$ac_INSTALL,;t t
22410" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22411  rm -f $tmp/stdin
22412  if test x"$ac_file" != x-; then
22413    mv $tmp/out $ac_file
22414  else
22415    cat $tmp/out
22416    rm -f $tmp/out
22417  fi
22418
22419done
22420_ACEOF
22421cat >>$CONFIG_STATUS <<\_ACEOF
22422
22423#
22424# CONFIG_HEADER section.
22425#
22426
22427# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22428# NAME is the cpp macro being defined and VALUE is the value it is being given.
22429#
22430# ac_d sets the value in "#define NAME VALUE" lines.
22431ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
22432ac_dB='[	 ].*$,\1#\2'
22433ac_dC=' '
22434ac_dD=',;t'
22435# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22436ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
22437ac_uB='$,\1#\2define\3'
22438ac_uC=' '
22439ac_uD=',;t'
22440
22441for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22442  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22443  case $ac_file in
22444  - | *:- | *:-:* ) # input from stdin
22445	cat >$tmp/stdin
22446	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22447	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22448  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22449	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22450  * )   ac_file_in=$ac_file.in ;;
22451  esac
22452
22453  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22454echo "$as_me: creating $ac_file" >&6;}
22455
22456  # First look for the input files in the build tree, otherwise in the
22457  # src tree.
22458  ac_file_inputs=`IFS=:
22459    for f in $ac_file_in; do
22460      case $f in
22461      -) echo $tmp/stdin ;;
22462      [\\/$]*)
22463	 # Absolute (can't be DOS-style, as IFS=:)
22464	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22465echo "$as_me: error: cannot find input file: $f" >&2;}
22466   { (exit 1); exit 1; }; }
22467	 # Do quote $f, to prevent DOS paths from being IFS'd.
22468	 echo "$f";;
22469      *) # Relative
22470	 if test -f "$f"; then
22471	   # Build tree
22472	   echo "$f"
22473	 elif test -f "$srcdir/$f"; then
22474	   # Source tree
22475	   echo "$srcdir/$f"
22476	 else
22477	   # /dev/null tree
22478	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22479echo "$as_me: error: cannot find input file: $f" >&2;}
22480   { (exit 1); exit 1; }; }
22481	 fi;;
22482      esac
22483    done` || { (exit 1); exit 1; }
22484  # Remove the trailing spaces.
22485  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
22486
22487_ACEOF
22488
22489# Transform confdefs.h into two sed scripts, `conftest.defines' and
22490# `conftest.undefs', that substitutes the proper values into
22491# config.h.in to produce config.h.  The first handles `#define'
22492# templates, and the second `#undef' templates.
22493# And first: Protect against being on the right side of a sed subst in
22494# config.status.  Protect against being in an unquoted here document
22495# in config.status.
22496rm -f conftest.defines conftest.undefs
22497# Using a here document instead of a string reduces the quoting nightmare.
22498# Putting comments in sed scripts is not portable.
22499#
22500# `end' is used to avoid that the second main sed command (meant for
22501# 0-ary CPP macros) applies to n-ary macro definitions.
22502# See the Autoconf documentation for `clear'.
22503cat >confdef2sed.sed <<\_ACEOF
22504s/[\\&,]/\\&/g
22505s,[\\$`],\\&,g
22506t clear
22507: clear
22508s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22509t end
22510s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22511: end
22512_ACEOF
22513# If some macros were called several times there might be several times
22514# the same #defines, which is useless.  Nevertheless, we may not want to
22515# sort them, since we want the *last* AC-DEFINE to be honored.
22516uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22517sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22518rm -f confdef2sed.sed
22519
22520# This sed command replaces #undef with comments.  This is necessary, for
22521# example, in the case of _POSIX_SOURCE, which is predefined and required
22522# on some systems where configure will not decide to define it.
22523cat >>conftest.undefs <<\_ACEOF
22524s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22525_ACEOF
22526
22527# Break up conftest.defines because some shells have a limit on the size
22528# of here documents, and old seds have small limits too (100 cmds).
22529echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22530echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22531echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22532echo '  :' >>$CONFIG_STATUS
22533rm -f conftest.tail
22534while grep . conftest.defines >/dev/null
22535do
22536  # Write a limited-size here document to $tmp/defines.sed.
22537  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22538  # Speed up: don't consider the non `#define' lines.
22539  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
22540  # Work around the forget-to-reset-the-flag bug.
22541  echo 't clr' >>$CONFIG_STATUS
22542  echo ': clr' >>$CONFIG_STATUS
22543  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22544  echo 'CEOF
22545  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22546  rm -f $tmp/in
22547  mv $tmp/out $tmp/in
22548' >>$CONFIG_STATUS
22549  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22550  rm -f conftest.defines
22551  mv conftest.tail conftest.defines
22552done
22553rm -f conftest.defines
22554echo '  fi # grep' >>$CONFIG_STATUS
22555echo >>$CONFIG_STATUS
22556
22557# Break up conftest.undefs because some shells have a limit on the size
22558# of here documents, and old seds have small limits too (100 cmds).
22559echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22560rm -f conftest.tail
22561while grep . conftest.undefs >/dev/null
22562do
22563  # Write a limited-size here document to $tmp/undefs.sed.
22564  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22565  # Speed up: don't consider the non `#undef'
22566  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
22567  # Work around the forget-to-reset-the-flag bug.
22568  echo 't clr' >>$CONFIG_STATUS
22569  echo ': clr' >>$CONFIG_STATUS
22570  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22571  echo 'CEOF
22572  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22573  rm -f $tmp/in
22574  mv $tmp/out $tmp/in
22575' >>$CONFIG_STATUS
22576  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22577  rm -f conftest.undefs
22578  mv conftest.tail conftest.undefs
22579done
22580rm -f conftest.undefs
22581
22582cat >>$CONFIG_STATUS <<\_ACEOF
22583  # Let's still pretend it is `configure' which instantiates (i.e., don't
22584  # use $as_me), people would be surprised to read:
22585  #    /* config.h.  Generated by config.status.  */
22586  if test x"$ac_file" = x-; then
22587    echo "/* Generated by configure.  */" >$tmp/config.h
22588  else
22589    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22590  fi
22591  cat $tmp/in >>$tmp/config.h
22592  rm -f $tmp/in
22593  if test x"$ac_file" != x-; then
22594    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22595      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22596echo "$as_me: $ac_file is unchanged" >&6;}
22597    else
22598      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600	 X"$ac_file" : 'X\(//\)[^/]' \| \
22601	 X"$ac_file" : 'X\(//\)$' \| \
22602	 X"$ac_file" : 'X\(/\)' \| \
22603	 .     : '\(.\)' 2>/dev/null ||
22604echo X"$ac_file" |
22605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22606  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22607  	  /^X\(\/\/\)$/{ s//\1/; q; }
22608  	  /^X\(\/\).*/{ s//\1/; q; }
22609  	  s/.*/./; q'`
22610      { if $as_mkdir_p; then
22611    mkdir -p "$ac_dir"
22612  else
22613    as_dir="$ac_dir"
22614    as_dirs=
22615    while test ! -d "$as_dir"; do
22616      as_dirs="$as_dir $as_dirs"
22617      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22619	 X"$as_dir" : 'X\(//\)[^/]' \| \
22620	 X"$as_dir" : 'X\(//\)$' \| \
22621	 X"$as_dir" : 'X\(/\)' \| \
22622	 .     : '\(.\)' 2>/dev/null ||
22623echo X"$as_dir" |
22624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22625  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22626  	  /^X\(\/\/\)$/{ s//\1/; q; }
22627  	  /^X\(\/\).*/{ s//\1/; q; }
22628  	  s/.*/./; q'`
22629    done
22630    test ! -n "$as_dirs" || mkdir $as_dirs
22631  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22632echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22633   { (exit 1); exit 1; }; }; }
22634
22635      rm -f $ac_file
22636      mv $tmp/config.h $ac_file
22637    fi
22638  else
22639    cat $tmp/config.h
22640    rm -f $tmp/config.h
22641  fi
22642# Compute $ac_file's index in $config_headers.
22643_am_stamp_count=1
22644for _am_header in $config_headers :; do
22645  case $_am_header in
22646    $ac_file | $ac_file:* )
22647      break ;;
22648    * )
22649      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22650  esac
22651done
22652echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22653$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22654	 X$ac_file : 'X\(//\)[^/]' \| \
22655	 X$ac_file : 'X\(//\)$' \| \
22656	 X$ac_file : 'X\(/\)' \| \
22657	 .     : '\(.\)' 2>/dev/null ||
22658echo X$ac_file |
22659    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22660  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22661  	  /^X\(\/\/\)$/{ s//\1/; q; }
22662  	  /^X\(\/\).*/{ s//\1/; q; }
22663  	  s/.*/./; q'`/stamp-h$_am_stamp_count
22664done
22665_ACEOF
22666cat >>$CONFIG_STATUS <<\_ACEOF
22667
22668#
22669# CONFIG_COMMANDS section.
22670#
22671for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22672  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22673  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22674  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22675$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22676	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22677	 X"$ac_dest" : 'X\(//\)$' \| \
22678	 X"$ac_dest" : 'X\(/\)' \| \
22679	 .     : '\(.\)' 2>/dev/null ||
22680echo X"$ac_dest" |
22681    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22682  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22683  	  /^X\(\/\/\)$/{ s//\1/; q; }
22684  	  /^X\(\/\).*/{ s//\1/; q; }
22685  	  s/.*/./; q'`
22686  { if $as_mkdir_p; then
22687    mkdir -p "$ac_dir"
22688  else
22689    as_dir="$ac_dir"
22690    as_dirs=
22691    while test ! -d "$as_dir"; do
22692      as_dirs="$as_dir $as_dirs"
22693      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22695	 X"$as_dir" : 'X\(//\)[^/]' \| \
22696	 X"$as_dir" : 'X\(//\)$' \| \
22697	 X"$as_dir" : 'X\(/\)' \| \
22698	 .     : '\(.\)' 2>/dev/null ||
22699echo X"$as_dir" |
22700    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22701  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22702  	  /^X\(\/\/\)$/{ s//\1/; q; }
22703  	  /^X\(\/\).*/{ s//\1/; q; }
22704  	  s/.*/./; q'`
22705    done
22706    test ! -n "$as_dirs" || mkdir $as_dirs
22707  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22708echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22709   { (exit 1); exit 1; }; }; }
22710
22711  ac_builddir=.
22712
22713if test "$ac_dir" != .; then
22714  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22715  # A "../" for each directory in $ac_dir_suffix.
22716  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22717else
22718  ac_dir_suffix= ac_top_builddir=
22719fi
22720
22721case $srcdir in
22722  .)  # No --srcdir option.  We are building in place.
22723    ac_srcdir=.
22724    if test -z "$ac_top_builddir"; then
22725       ac_top_srcdir=.
22726    else
22727       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22728    fi ;;
22729  [\\/]* | ?:[\\/]* )  # Absolute path.
22730    ac_srcdir=$srcdir$ac_dir_suffix;
22731    ac_top_srcdir=$srcdir ;;
22732  *) # Relative path.
22733    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22734    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22735esac
22736
22737# Do not use `cd foo && pwd` to compute absolute paths, because
22738# the directories may not exist.
22739case `pwd` in
22740.) ac_abs_builddir="$ac_dir";;
22741*)
22742  case "$ac_dir" in
22743  .) ac_abs_builddir=`pwd`;;
22744  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22745  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22746  esac;;
22747esac
22748case $ac_abs_builddir in
22749.) ac_abs_top_builddir=${ac_top_builddir}.;;
22750*)
22751  case ${ac_top_builddir}. in
22752  .) ac_abs_top_builddir=$ac_abs_builddir;;
22753  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22754  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22755  esac;;
22756esac
22757case $ac_abs_builddir in
22758.) ac_abs_srcdir=$ac_srcdir;;
22759*)
22760  case $ac_srcdir in
22761  .) ac_abs_srcdir=$ac_abs_builddir;;
22762  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22763  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22764  esac;;
22765esac
22766case $ac_abs_builddir in
22767.) ac_abs_top_srcdir=$ac_top_srcdir;;
22768*)
22769  case $ac_top_srcdir in
22770  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22771  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22772  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22773  esac;;
22774esac
22775
22776
22777  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22778echo "$as_me: executing $ac_dest commands" >&6;}
22779  case $ac_dest in
22780    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22781  # Strip MF so we end up with the name of the file.
22782  mf=`echo "$mf" | sed -e 's/:.*$//'`
22783  # Check whether this is an Automake generated Makefile or not.
22784  # We used to match only the files named `Makefile.in', but
22785  # some people rename them; so instead we look at the file content.
22786  # Grep'ing the first line is not enough: some people post-process
22787  # each Makefile.in and add a new line on top of each file to say so.
22788  # So let's grep whole file.
22789  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22790    dirpart=`(dirname "$mf") 2>/dev/null ||
22791$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22792	 X"$mf" : 'X\(//\)[^/]' \| \
22793	 X"$mf" : 'X\(//\)$' \| \
22794	 X"$mf" : 'X\(/\)' \| \
22795	 .     : '\(.\)' 2>/dev/null ||
22796echo X"$mf" |
22797    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22798  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22799  	  /^X\(\/\/\)$/{ s//\1/; q; }
22800  	  /^X\(\/\).*/{ s//\1/; q; }
22801  	  s/.*/./; q'`
22802  else
22803    continue
22804  fi
22805  # Extract the definition of DEPDIR, am__include, and am__quote
22806  # from the Makefile without running `make'.
22807  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22808  test -z "$DEPDIR" && continue
22809  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22810  test -z "am__include" && continue
22811  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22812  # When using ansi2knr, U may be empty or an underscore; expand it
22813  U=`sed -n 's/^U = //p' < "$mf"`
22814  # Find all dependency output files, they are included files with
22815  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22816  # simplest approach to changing $(DEPDIR) to its actual value in the
22817  # expansion.
22818  for file in `sed -n "
22819    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22820       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22821    # Make sure the directory exists.
22822    test -f "$dirpart/$file" && continue
22823    fdir=`(dirname "$file") 2>/dev/null ||
22824$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22825	 X"$file" : 'X\(//\)[^/]' \| \
22826	 X"$file" : 'X\(//\)$' \| \
22827	 X"$file" : 'X\(/\)' \| \
22828	 .     : '\(.\)' 2>/dev/null ||
22829echo X"$file" |
22830    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22831  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22832  	  /^X\(\/\/\)$/{ s//\1/; q; }
22833  	  /^X\(\/\).*/{ s//\1/; q; }
22834  	  s/.*/./; q'`
22835    { if $as_mkdir_p; then
22836    mkdir -p $dirpart/$fdir
22837  else
22838    as_dir=$dirpart/$fdir
22839    as_dirs=
22840    while test ! -d "$as_dir"; do
22841      as_dirs="$as_dir $as_dirs"
22842      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22843$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22844	 X"$as_dir" : 'X\(//\)[^/]' \| \
22845	 X"$as_dir" : 'X\(//\)$' \| \
22846	 X"$as_dir" : 'X\(/\)' \| \
22847	 .     : '\(.\)' 2>/dev/null ||
22848echo X"$as_dir" |
22849    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22850  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22851  	  /^X\(\/\/\)$/{ s//\1/; q; }
22852  	  /^X\(\/\).*/{ s//\1/; q; }
22853  	  s/.*/./; q'`
22854    done
22855    test ! -n "$as_dirs" || mkdir $as_dirs
22856  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22857echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22858   { (exit 1); exit 1; }; }; }
22859
22860    # echo "creating $dirpart/$file"
22861    echo '# dummy' > "$dirpart/$file"
22862  done
22863done
22864 ;;
22865    libtool )
22866
22867    # See if we are running on zsh, and set the options which allow our
22868    # commands through without removal of \ escapes.
22869    if test -n "${ZSH_VERSION+set}" ; then
22870      setopt NO_GLOB_SUBST
22871    fi
22872
22873    cfgfile="${ofile}T"
22874    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22875    $RM "$cfgfile"
22876
22877    cat <<_LT_EOF >> "$cfgfile"
22878#! $SHELL
22879
22880# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22881# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22882# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22883# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22884#
22885# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22886# 2006, 2007 Free Software Foundation, Inc.
22887#
22888# This file is part of GNU Libtool:
22889# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22890#
22891# This program is free software; you can redistribute it and/or modify
22892# it under the terms of the GNU General Public License as published by
22893# the Free Software Foundation; either version 2 of the License, or
22894# (at your option) any later version.
22895#
22896# This program is distributed in the hope that it will be useful, but
22897# WITHOUT ANY WARRANTY; without even the implied warranty of
22898# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22899# General Public License for more details.
22900#
22901# You should have received a copy of the GNU General Public License
22902# along with this program; if not, a copy can be downloaded from
22903# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22904# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22905# MA 02110-1301, USA.
22906#
22907# As a special exception to the GNU General Public License, if you
22908# distribute this file as part of a program that contains a
22909# configuration script generated by Autoconf, you may include it under
22910# the same distribution terms that you use for the rest of that program.
22911
22912
22913# The names of the tagged configurations supported by this script.
22914available_tags=""
22915
22916# ### BEGIN LIBTOOL CONFIG
22917
22918# Whether or not to build shared libraries.
22919build_libtool_libs=$enable_shared
22920
22921# Which release of libtool.m4 was used?
22922macro_version=$macro_version
22923macro_revision=$macro_revision
22924
22925# Whether or not to build static libraries.
22926build_old_libs=$enable_static
22927
22928# What type of objects to build.
22929pic_mode=$pic_mode
22930
22931# Whether or not to optimize for fast installation.
22932fast_install=$enable_fast_install
22933
22934# The host system.
22935host_alias=$host_alias
22936host=$host
22937host_os=$host_os
22938
22939# The build system.
22940build_alias=$build_alias
22941build=$build
22942build_os=$build_os
22943
22944# A sed program that does not truncate output.
22945SED=$lt_SED
22946
22947# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22948Xsed="\$SED -e 1s/^X//"
22949
22950# A grep program that handles long lines.
22951GREP=$lt_GREP
22952
22953# An ERE matcher.
22954EGREP=$lt_EGREP
22955
22956# A literal string matcher.
22957FGREP=$lt_FGREP
22958
22959# A BSD- or MS-compatible name lister.
22960NM=$lt_NM
22961
22962# Whether we need soft or hard links.
22963LN_S=$lt_LN_S
22964
22965# What is the maximum length of a command?
22966max_cmd_len=$max_cmd_len
22967
22968# Object file suffix (normally "o").
22969objext=$ac_objext
22970
22971# Executable file suffix (normally "").
22972exeext=$exeext
22973
22974# whether the shell understands "unset".
22975lt_unset=$lt_unset
22976
22977# turn spaces into newlines.
22978SP2NL=$lt_lt_SP2NL
22979
22980# turn newlines into spaces.
22981NL2SP=$lt_lt_NL2SP
22982
22983# How to create reloadable object files.
22984reload_flag=$lt_reload_flag
22985reload_cmds=$lt_reload_cmds
22986
22987# Method to check whether dependent libraries are shared objects.
22988deplibs_check_method=$lt_deplibs_check_method
22989
22990# Command to use when deplibs_check_method == "file_magic".
22991file_magic_cmd=$lt_file_magic_cmd
22992
22993# The archiver.
22994AR=$lt_AR
22995AR_FLAGS=$lt_AR_FLAGS
22996
22997# A symbol stripping program.
22998STRIP=$lt_STRIP
22999
23000# Commands used to install an old-style archive.
23001RANLIB=$lt_RANLIB
23002old_postinstall_cmds=$lt_old_postinstall_cmds
23003old_postuninstall_cmds=$lt_old_postuninstall_cmds
23004
23005# A C compiler.
23006LTCC=$lt_CC
23007
23008# LTCC compiler flags.
23009LTCFLAGS=$lt_CFLAGS
23010
23011# Take the output of nm and produce a listing of raw symbols and C names.
23012global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23013
23014# Transform the output of nm in a proper C declaration.
23015global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23016
23017# Transform the output of nm in a C name address pair.
23018global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23019
23020# The name of the directory that contains temporary libtool files.
23021objdir=$objdir
23022
23023# Shell to use when invoking shell scripts.
23024SHELL=$lt_SHELL
23025
23026# An echo program that does not interpret backslashes.
23027ECHO=$lt_ECHO
23028
23029# Used to examine libraries when file_magic_cmd begins with "file".
23030MAGIC_CMD=$MAGIC_CMD
23031
23032# Must we lock files when doing compilation?
23033need_locks=$lt_need_locks
23034
23035# Old archive suffix (normally "a").
23036libext=$libext
23037
23038# Shared library suffix (normally ".so").
23039shrext_cmds=$lt_shrext_cmds
23040
23041# The commands to extract the exported symbol list from a shared archive.
23042extract_expsyms_cmds=$lt_extract_expsyms_cmds
23043
23044# Variables whose values should be saved in libtool wrapper scripts and
23045# restored at link time.
23046variables_saved_for_relink=$lt_variables_saved_for_relink
23047
23048# Do we need the "lib" prefix for modules?
23049need_lib_prefix=$need_lib_prefix
23050
23051# Do we need a version for libraries?
23052need_version=$need_version
23053
23054# Library versioning type.
23055version_type=$version_type
23056
23057# Shared library runtime path variable.
23058runpath_var=$runpath_var
23059
23060# Shared library path variable.
23061shlibpath_var=$shlibpath_var
23062
23063# Is shlibpath searched before the hard-coded library search path?
23064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23065
23066# Format of library name prefix.
23067libname_spec=$lt_libname_spec
23068
23069# List of archive names.  First name is the real one, the rest are links.
23070# The last name is the one that the linker finds with -lNAME
23071library_names_spec=$lt_library_names_spec
23072
23073# The coded name of the library, if different from the real name.
23074soname_spec=$lt_soname_spec
23075
23076# Command to use after installation of a shared archive.
23077postinstall_cmds=$lt_postinstall_cmds
23078
23079# Command to use after uninstallation of a shared archive.
23080postuninstall_cmds=$lt_postuninstall_cmds
23081
23082# Commands used to finish a libtool library installation in a directory.
23083finish_cmds=$lt_finish_cmds
23084
23085# As "finish_cmds", except a single script fragment to be evaled but
23086# not shown.
23087finish_eval=$lt_finish_eval
23088
23089# Whether we should hardcode library paths into libraries.
23090hardcode_into_libs=$hardcode_into_libs
23091
23092# Compile-time system search path for libraries.
23093sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23094
23095# Run-time system search path for libraries.
23096sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23097
23098# Whether dlopen is supported.
23099dlopen_support=$enable_dlopen
23100
23101# Whether dlopen of programs is supported.
23102dlopen_self=$enable_dlopen_self
23103
23104# Whether dlopen of statically linked programs is supported.
23105dlopen_self_static=$enable_dlopen_self_static
23106
23107# Commands to strip libraries.
23108old_striplib=$lt_old_striplib
23109striplib=$lt_striplib
23110
23111
23112# The linker used to build libraries.
23113LD=$lt_LD
23114
23115# Commands used to build an old-style archive.
23116old_archive_cmds=$lt_old_archive_cmds
23117
23118# A language specific compiler.
23119CC=$lt_compiler
23120
23121# Is the compiler the GNU compiler?
23122with_gcc=$GCC
23123
23124# Compiler flag to turn off builtin functions.
23125no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23126
23127# How to pass a linker flag through the compiler.
23128wl=$lt_lt_prog_compiler_wl
23129
23130# Additional compiler flags for building library objects.
23131pic_flag=$lt_lt_prog_compiler_pic
23132
23133# Compiler flag to prevent dynamic linking.
23134link_static_flag=$lt_lt_prog_compiler_static
23135
23136# Does compiler simultaneously support -c and -o options?
23137compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23138
23139# Whether or not to add -lc for building shared libraries.
23140build_libtool_need_lc=$archive_cmds_need_lc
23141
23142# Whether or not to disallow shared libs when runtime libs are static.
23143allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23144
23145# Compiler flag to allow reflexive dlopens.
23146export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23147
23148# Compiler flag to generate shared objects directly from archives.
23149whole_archive_flag_spec=$lt_whole_archive_flag_spec
23150
23151# Whether the compiler copes with passing no objects directly.
23152compiler_needs_object=$lt_compiler_needs_object
23153
23154# Create an old-style archive from a shared archive.
23155old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23156
23157# Create a temporary old-style archive to link instead of a shared archive.
23158old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23159
23160# Commands used to build a shared archive.
23161archive_cmds=$lt_archive_cmds
23162archive_expsym_cmds=$lt_archive_expsym_cmds
23163
23164# Commands used to build a loadable module if different from building
23165# a shared archive.
23166module_cmds=$lt_module_cmds
23167module_expsym_cmds=$lt_module_expsym_cmds
23168
23169# Whether we are building with GNU ld or not.
23170with_gnu_ld=$lt_with_gnu_ld
23171
23172# Flag that allows shared libraries with undefined symbols to be built.
23173allow_undefined_flag=$lt_allow_undefined_flag
23174
23175# Flag that enforces no undefined symbols.
23176no_undefined_flag=$lt_no_undefined_flag
23177
23178# Flag to hardcode \$libdir into a binary during linking.
23179# This must work even if \$libdir does not exist
23180hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23181
23182# If ld is used when linking, flag to hardcode \$libdir into a binary
23183# during linking.  This must work even if \$libdir does not exist.
23184hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23185
23186# Whether we need a single "-rpath" flag with a separated argument.
23187hardcode_libdir_separator=$lt_hardcode_libdir_separator
23188
23189# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23190# DIR into the resulting binary.
23191hardcode_direct=$hardcode_direct
23192
23193# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23194# DIR into the resulting binary and the resulting library dependency is
23195# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23196# library is relocated.
23197hardcode_direct_absolute=$hardcode_direct_absolute
23198
23199# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23200# into the resulting binary.
23201hardcode_minus_L=$hardcode_minus_L
23202
23203# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23204# into the resulting binary.
23205hardcode_shlibpath_var=$hardcode_shlibpath_var
23206
23207# Set to "yes" if building a shared library automatically hardcodes DIR
23208# into the library and all subsequent libraries and executables linked
23209# against it.
23210hardcode_automatic=$hardcode_automatic
23211
23212# Set to yes if linker adds runtime paths of dependent libraries
23213# to runtime path list.
23214inherit_rpath=$inherit_rpath
23215
23216# Whether libtool must link a program against all its dependency libraries.
23217link_all_deplibs=$link_all_deplibs
23218
23219# Fix the shell variable \$srcfile for the compiler.
23220fix_srcfile_path=$lt_fix_srcfile_path
23221
23222# Set to "yes" if exported symbols are required.
23223always_export_symbols=$always_export_symbols
23224
23225# The commands to list exported symbols.
23226export_symbols_cmds=$lt_export_symbols_cmds
23227
23228# Symbols that should not be listed in the preloaded symbols.
23229exclude_expsyms=$lt_exclude_expsyms
23230
23231# Symbols that must always be exported.
23232include_expsyms=$lt_include_expsyms
23233
23234# Commands necessary for linking programs (against libraries) with templates.
23235prelink_cmds=$lt_prelink_cmds
23236
23237# Specify filename containing input files.
23238file_list_spec=$lt_file_list_spec
23239
23240# How to hardcode a shared library path into an executable.
23241hardcode_action=$hardcode_action
23242
23243# ### END LIBTOOL CONFIG
23244
23245_LT_EOF
23246
23247  case $host_os in
23248  aix3*)
23249    cat <<\_LT_EOF >> "$cfgfile"
23250# AIX sometimes has problems with the GCC collect2 program.  For some
23251# reason, if we set the COLLECT_NAMES environment variable, the problems
23252# vanish in a puff of smoke.
23253if test "X${COLLECT_NAMES+set}" != Xset; then
23254  COLLECT_NAMES=
23255  export COLLECT_NAMES
23256fi
23257_LT_EOF
23258    ;;
23259  esac
23260
23261
23262ltmain="$ac_aux_dir/ltmain.sh"
23263
23264
23265  # We use sed instead of cat because bash on DJGPP gets confused if
23266  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23267  # text mode, it properly converts lines to CR/LF.  This bash problem
23268  # is reportedly fixed, but why not run on old versions too?
23269  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23270    || (rm -f "$cfgfile"; exit 1)
23271
23272  case $xsi_shell in
23273  yes)
23274    cat << \_LT_EOF >> "$cfgfile"
23275# func_dirname file append nondir_replacement
23276# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23277# otherwise set result to NONDIR_REPLACEMENT.
23278func_dirname ()
23279{
23280  case ${1} in
23281    */*) func_dirname_result="${1%/*}${2}" ;;
23282    *  ) func_dirname_result="${3}" ;;
23283  esac
23284}
23285
23286# func_basename file
23287func_basename ()
23288{
23289  func_basename_result="${1##*/}"
23290}
23291
23292# func_stripname prefix suffix name
23293# strip PREFIX and SUFFIX off of NAME.
23294# PREFIX and SUFFIX must not contain globbing or regex special
23295# characters, hashes, percent signs, but SUFFIX may contain a leading
23296# dot (in which case that matches only a dot).
23297func_stripname ()
23298{
23299  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23300  # positional parameters, so assign one to ordinary parameter first.
23301  func_stripname_result=${3}
23302  func_stripname_result=${func_stripname_result#"${1}"}
23303  func_stripname_result=${func_stripname_result%"${2}"}
23304}
23305
23306# func_opt_split
23307func_opt_split ()
23308{
23309  func_opt_split_opt=${1%%=*}
23310  func_opt_split_arg=${1#*=}
23311}
23312
23313# func_lo2o object
23314func_lo2o ()
23315{
23316  case ${1} in
23317    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23318    *)    func_lo2o_result=${1} ;;
23319  esac
23320}
23321_LT_EOF
23322    ;;
23323  *) # Bourne compatible functions.
23324    cat << \_LT_EOF >> "$cfgfile"
23325# func_dirname file append nondir_replacement
23326# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23327# otherwise set result to NONDIR_REPLACEMENT.
23328func_dirname ()
23329{
23330  # Extract subdirectory from the argument.
23331  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23332  if test "X$func_dirname_result" = "X${1}"; then
23333    func_dirname_result="${3}"
23334  else
23335    func_dirname_result="$func_dirname_result${2}"
23336  fi
23337}
23338
23339# func_basename file
23340func_basename ()
23341{
23342  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23343}
23344
23345# func_stripname prefix suffix name
23346# strip PREFIX and SUFFIX off of NAME.
23347# PREFIX and SUFFIX must not contain globbing or regex special
23348# characters, hashes, percent signs, but SUFFIX may contain a leading
23349# dot (in which case that matches only a dot).
23350# func_strip_suffix prefix name
23351func_stripname ()
23352{
23353  case ${2} in
23354    .*) func_stripname_result=`$ECHO "X${3}" \
23355           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23356    *)  func_stripname_result=`$ECHO "X${3}" \
23357           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23358  esac
23359}
23360
23361# sed scripts:
23362my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23363my_sed_long_arg='1s/^-[^=]*=//'
23364
23365# func_opt_split
23366func_opt_split ()
23367{
23368  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23369  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23370}
23371
23372# func_lo2o object
23373func_lo2o ()
23374{
23375  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23376}
23377_LT_EOF
23378esac
23379
23380case $lt_shell_append in
23381  yes)
23382    cat << \_LT_EOF >> "$cfgfile"
23383
23384# func_append var value
23385# Append VALUE to the end of shell variable VAR.
23386func_append ()
23387{
23388  eval "$1+=\$2"
23389}
23390_LT_EOF
23391    ;;
23392  *)
23393    cat << \_LT_EOF >> "$cfgfile"
23394
23395# func_append var value
23396# Append VALUE to the end of shell variable VAR.
23397func_append ()
23398{
23399  eval "$1=\$$1\$2"
23400}
23401_LT_EOF
23402    ;;
23403  esac
23404
23405
23406  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23407    || (rm -f "$cfgfile"; exit 1)
23408
23409  mv -f "$cfgfile" "$ofile" ||
23410    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23411  chmod +x "$ofile"
23412
23413 ;;
23414    default-1 )
23415    for ac_file in $CONFIG_FILES; do
23416      # Support "outfile[:infile[:infile...]]"
23417      case "$ac_file" in
23418        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23419      esac
23420      # PO directories have a Makefile.in generated from Makefile.in.in.
23421      case "$ac_file" in */Makefile.in)
23422        # Adjust a relative srcdir.
23423        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23424        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23425        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23426        # In autoconf-2.13 it is called $ac_given_srcdir.
23427        # In autoconf-2.50 it is called $srcdir.
23428        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23429        case "$ac_given_srcdir" in
23430          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23431          /*) top_srcdir="$ac_given_srcdir" ;;
23432          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23433        esac
23434        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23435          rm -f "$ac_dir/POTFILES"
23436          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23437          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23438          POMAKEFILEDEPS="POTFILES.in"
23439          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
23440          # on $ac_dir but don't depend on user-specified configuration
23441          # parameters.
23442          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23443            # The LINGUAS file contains the set of available languages.
23444            if test -n "$OBSOLETE_ALL_LINGUAS"; then
23445              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23446            fi
23447            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23448            # Hide the ALL_LINGUAS assigment from automake.
23449            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23450            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23451          else
23452            # The set of available languages was given in configure.in.
23453            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23454          fi
23455          case "$ac_given_srcdir" in
23456            .) srcdirpre= ;;
23457            *) srcdirpre='$(srcdir)/' ;;
23458          esac
23459          POFILES=
23460          GMOFILES=
23461          UPDATEPOFILES=
23462          DUMMYPOFILES=
23463          for lang in $ALL_LINGUAS; do
23464            POFILES="$POFILES $srcdirpre$lang.po"
23465            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23466            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23467            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23468          done
23469          # CATALOGS depends on both $ac_dir and the user's LINGUAS
23470          # environment variable.
23471          INST_LINGUAS=
23472          if test -n "$ALL_LINGUAS"; then
23473            for presentlang in $ALL_LINGUAS; do
23474              useit=no
23475              if test "%UNSET%" != "$LINGUAS"; then
23476                desiredlanguages="$LINGUAS"
23477              else
23478                desiredlanguages="$ALL_LINGUAS"
23479              fi
23480              for desiredlang in $desiredlanguages; do
23481                # Use the presentlang catalog if desiredlang is
23482                #   a. equal to presentlang, or
23483                #   b. a variant of presentlang (because in this case,
23484                #      presentlang can be used as a fallback for messages
23485                #      which are not translated in the desiredlang catalog).
23486                case "$desiredlang" in
23487                  "$presentlang"*) useit=yes;;
23488                esac
23489              done
23490              if test $useit = yes; then
23491                INST_LINGUAS="$INST_LINGUAS $presentlang"
23492              fi
23493            done
23494          fi
23495          CATALOGS=
23496          if test -n "$INST_LINGUAS"; then
23497            for lang in $INST_LINGUAS; do
23498              CATALOGS="$CATALOGS $lang.gmo"
23499            done
23500          fi
23501          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23502          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"
23503          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23504            if test -f "$f"; then
23505              case "$f" in
23506                *.orig | *.bak | *~) ;;
23507                *) cat "$f" >> "$ac_dir/Makefile" ;;
23508              esac
23509            fi
23510          done
23511        fi
23512        ;;
23513      esac
23514    done ;;
23515    bfd_stdint.h )
23516if test "$GCC" = yes; then
23517  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23518else
23519  echo "/* generated for $CC */" > tmp-stdint.h
23520fi
23521
23522sed 's/^ *//' >> tmp-stdint.h <<EOF
23523
23524  #ifndef GCC_GENERATED_STDINT_H
23525  #define GCC_GENERATED_STDINT_H 1
23526
23527  #include <sys/types.h>
23528EOF
23529
23530if test "$acx_cv_header_stdint" != stdint.h; then
23531  echo "#include <stddef.h>" >> tmp-stdint.h
23532fi
23533if test "$acx_cv_header_stdint" != stddef.h; then
23534  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23535fi
23536
23537sed 's/^ *//' >> tmp-stdint.h <<EOF
23538  /* glibc uses these symbols as guards to prevent redefinitions.  */
23539  #ifdef __int8_t_defined
23540  #define _INT8_T
23541  #define _INT16_T
23542  #define _INT32_T
23543  #endif
23544  #ifdef __uint32_t_defined
23545  #define _UINT32_T
23546  #endif
23547
23548EOF
23549
23550# ----------------- done header, emit basic int types -------------
23551if test "$acx_cv_header_stdint" = stddef.h; then
23552  sed 's/^ *//' >> tmp-stdint.h <<EOF
23553
23554    #ifndef _UINT8_T
23555    #define _UINT8_T
23556    #ifndef __uint8_t_defined
23557    #define __uint8_t_defined
23558    typedef unsigned $acx_cv_type_int8_t uint8_t;
23559    #endif
23560    #endif
23561
23562    #ifndef _UINT16_T
23563    #define _UINT16_T
23564    #ifndef __uint16_t_defined
23565    #define __uint16_t_defined
23566    typedef unsigned $acx_cv_type_int16_t uint16_t;
23567    #endif
23568    #endif
23569
23570    #ifndef _UINT32_T
23571    #define _UINT32_T
23572    #ifndef __uint32_t_defined
23573    #define __uint32_t_defined
23574    typedef unsigned $acx_cv_type_int32_t uint32_t;
23575    #endif
23576    #endif
23577
23578    #ifndef _INT8_T
23579    #define _INT8_T
23580    #ifndef __int8_t_defined
23581    #define __int8_t_defined
23582    typedef $acx_cv_type_int8_t int8_t;
23583    #endif
23584    #endif
23585
23586    #ifndef _INT16_T
23587    #define _INT16_T
23588    #ifndef __int16_t_defined
23589    #define __int16_t_defined
23590    typedef $acx_cv_type_int16_t int16_t;
23591    #endif
23592    #endif
23593
23594    #ifndef _INT32_T
23595    #define _INT32_T
23596    #ifndef __int32_t_defined
23597    #define __int32_t_defined
23598    typedef $acx_cv_type_int32_t int32_t;
23599    #endif
23600    #endif
23601EOF
23602elif test "$ac_cv_type_u_int32_t" = yes; then
23603  sed 's/^ *//' >> tmp-stdint.h <<EOF
23604
23605    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23606    #ifndef _INT8_T
23607    #define _INT8_T
23608    #endif
23609    #ifndef _INT16_T
23610    #define _INT16_T
23611    #endif
23612    #ifndef _INT32_T
23613    #define _INT32_T
23614    #endif
23615
23616    #ifndef _UINT8_T
23617    #define _UINT8_T
23618    #ifndef __uint8_t_defined
23619    #define __uint8_t_defined
23620    typedef u_int8_t uint8_t;
23621    #endif
23622    #endif
23623
23624    #ifndef _UINT16_T
23625    #define _UINT16_T
23626    #ifndef __uint16_t_defined
23627    #define __uint16_t_defined
23628    typedef u_int16_t uint16_t;
23629    #endif
23630    #endif
23631
23632    #ifndef _UINT32_T
23633    #define _UINT32_T
23634    #ifndef __uint32_t_defined
23635    #define __uint32_t_defined
23636    typedef u_int32_t uint32_t;
23637    #endif
23638    #endif
23639EOF
23640else
23641  sed 's/^ *//' >> tmp-stdint.h <<EOF
23642
23643    /* Some systems have guard macros to prevent redefinitions, define them.  */
23644    #ifndef _INT8_T
23645    #define _INT8_T
23646    #endif
23647    #ifndef _INT16_T
23648    #define _INT16_T
23649    #endif
23650    #ifndef _INT32_T
23651    #define _INT32_T
23652    #endif
23653    #ifndef _UINT8_T
23654    #define _UINT8_T
23655    #endif
23656    #ifndef _UINT16_T
23657    #define _UINT16_T
23658    #endif
23659    #ifndef _UINT32_T
23660    #define _UINT32_T
23661    #endif
23662EOF
23663fi
23664
23665# ------------- done basic int types, emit int64_t types ------------
23666if test "$ac_cv_type_uint64_t" = yes; then
23667  sed 's/^ *//' >> tmp-stdint.h <<EOF
23668
23669    /* system headers have good uint64_t and int64_t */
23670    #ifndef _INT64_T
23671    #define _INT64_T
23672    #endif
23673    #ifndef _UINT64_T
23674    #define _UINT64_T
23675    #endif
23676EOF
23677elif test "$ac_cv_type_u_int64_t" = yes; then
23678  sed 's/^ *//' >> tmp-stdint.h <<EOF
23679
23680    /* system headers have an u_int64_t (and int64_t) */
23681    #ifndef _INT64_T
23682    #define _INT64_T
23683    #endif
23684    #ifndef _UINT64_T
23685    #define _UINT64_T
23686    #ifndef __uint64_t_defined
23687    #define __uint64_t_defined
23688    typedef u_int64_t uint64_t;
23689    #endif
23690    #endif
23691EOF
23692elif test -n "$acx_cv_type_int64_t"; then
23693  sed 's/^ *//' >> tmp-stdint.h <<EOF
23694
23695    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23696    #ifndef _INT64_T
23697    #define _INT64_T
23698    typedef $acx_cv_type_int64_t int64_t;
23699    #endif
23700    #ifndef _UINT64_T
23701    #define _UINT64_T
23702    #ifndef __uint64_t_defined
23703    #define __uint64_t_defined
23704    typedef unsigned $acx_cv_type_int64_t uint64_t;
23705    #endif
23706    #endif
23707EOF
23708else
23709  sed 's/^ *//' >> tmp-stdint.h <<EOF
23710
23711    /* some common heuristics for int64_t, using compiler-specific tests */
23712    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23713    #ifndef _INT64_T
23714    #define _INT64_T
23715    #ifndef __int64_t_defined
23716    typedef long long int64_t;
23717    #endif
23718    #endif
23719    #ifndef _UINT64_T
23720    #define _UINT64_T
23721    typedef unsigned long long uint64_t;
23722    #endif
23723
23724    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23725    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23726       does not implement __extension__.  But that compiler doesn't define
23727       __GNUC_MINOR__.  */
23728    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23729    # define __extension__
23730    # endif
23731
23732    # ifndef _INT64_T
23733    # define _INT64_T
23734    __extension__ typedef long long int64_t;
23735    # endif
23736    # ifndef _UINT64_T
23737    # define _UINT64_T
23738    __extension__ typedef unsigned long long uint64_t;
23739    # endif
23740
23741    #elif !defined __STRICT_ANSI__
23742    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23743
23744    #  ifndef _INT64_T
23745    #  define _INT64_T
23746    typedef __int64 int64_t;
23747    #  endif
23748    #  ifndef _UINT64_T
23749    #  define _UINT64_T
23750    typedef unsigned __int64 uint64_t;
23751    #  endif
23752    # endif /* compiler */
23753
23754    #endif /* ANSI version */
23755EOF
23756fi
23757
23758# ------------- done int64_t types, emit intptr types ------------
23759if test "$ac_cv_type_uintptr_t" != yes; then
23760  sed 's/^ *//' >> tmp-stdint.h <<EOF
23761
23762    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23763    #ifndef __uintptr_t_defined
23764    typedef u$acx_cv_type_intptr_t uintptr_t;
23765    #endif
23766    #ifndef __intptr_t_defined
23767    typedef $acx_cv_type_intptr_t  intptr_t;
23768    #endif
23769EOF
23770fi
23771
23772# ------------- done intptr types, emit int_least types ------------
23773if test "$ac_cv_type_int_least32_t" != yes; then
23774  sed 's/^ *//' >> tmp-stdint.h <<EOF
23775
23776    /* Define int_least types */
23777    typedef int8_t     int_least8_t;
23778    typedef int16_t    int_least16_t;
23779    typedef int32_t    int_least32_t;
23780    #ifdef _INT64_T
23781    typedef int64_t    int_least64_t;
23782    #endif
23783
23784    typedef uint8_t    uint_least8_t;
23785    typedef uint16_t   uint_least16_t;
23786    typedef uint32_t   uint_least32_t;
23787    #ifdef _UINT64_T
23788    typedef uint64_t   uint_least64_t;
23789    #endif
23790EOF
23791fi
23792
23793# ------------- done intptr types, emit int_fast types ------------
23794if test "$ac_cv_type_int_fast32_t" != yes; then
23795      sed 's/^ *//' >> tmp-stdint.h <<EOF
23796
23797    /* Define int_fast types.  short is often slow */
23798    typedef int8_t       int_fast8_t;
23799    typedef int          int_fast16_t;
23800    typedef int32_t      int_fast32_t;
23801    #ifdef _INT64_T
23802    typedef int64_t      int_fast64_t;
23803    #endif
23804
23805    typedef uint8_t      uint_fast8_t;
23806    typedef unsigned int uint_fast16_t;
23807    typedef uint32_t     uint_fast32_t;
23808    #ifdef _UINT64_T
23809    typedef uint64_t     uint_fast64_t;
23810    #endif
23811EOF
23812fi
23813
23814if test "$ac_cv_type_uintmax_t" != yes; then
23815  sed 's/^ *//' >> tmp-stdint.h <<EOF
23816
23817    /* Define intmax based on what we found */
23818    #ifdef _INT64_T
23819    typedef int64_t       intmax_t;
23820    #else
23821    typedef long          intmax_t;
23822    #endif
23823    #ifdef _UINT64_T
23824    typedef uint64_t      uintmax_t;
23825    #else
23826    typedef unsigned long uintmax_t;
23827    #endif
23828EOF
23829fi
23830
23831sed 's/^ *//' >> tmp-stdint.h <<EOF
23832
23833  #endif /* GCC_GENERATED_STDINT_H */
23834EOF
23835
23836if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23837  rm -f tmp-stdint.h
23838else
23839  mv -f tmp-stdint.h bfd_stdint.h
23840fi
23841
23842 ;;
23843    default )
23844case "$srcdir" in
23845  .) srcdirpre= ;;
23846  *) srcdirpre='$(srcdir)/' ;;
23847esac
23848POFILES=
23849GMOFILES=
23850for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23851  if test $lang != dummy; then
23852    POFILES="$POFILES $srcdirpre$lang.po"
23853    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23854  fi
23855done
23856sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23857    -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23858    -e "s,@POFILES@,$POFILES," \
23859    -e "s,@GMOFILES@,$GMOFILES," \
23860    po/Makefile.in > po/Makefile ;;
23861  esac
23862done
23863_ACEOF
23864
23865cat >>$CONFIG_STATUS <<\_ACEOF
23866
23867{ (exit 0); exit 0; }
23868_ACEOF
23869chmod +x $CONFIG_STATUS
23870ac_clean_files=$ac_clean_files_save
23871
23872
23873# configure is writing to config.log, and then calls config.status.
23874# config.status does its own redirection, appending to config.log.
23875# Unfortunately, on DOS this fails, as config.log is still kept open
23876# by configure, so config.status won't be able to write to it; its
23877# output is simply discarded.  So we exec the FD to /dev/null,
23878# effectively closing config.log, so it can be properly (re)opened and
23879# appended to by config.status.  When coming back to configure, we
23880# need to make the FD available again.
23881if test "$no_create" != yes; then
23882  ac_cs_success=:
23883  ac_config_status_args=
23884  test "$silent" = yes &&
23885    ac_config_status_args="$ac_config_status_args --quiet"
23886  exec 5>/dev/null
23887  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23888  exec 5>>config.log
23889  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23890  # would make configure fail if this is the last instruction.
23891  $ac_cs_success || { (exit 1); exit 1; }
23892fi
23893
23894
23895