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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT 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=''
463
464# Initialize some variables set by options.
465ac_init_help=
466ac_init_version=false
467# The variables have the same names as the options, with
468# dashes changed to underlines.
469cache_file=/dev/null
470exec_prefix=NONE
471no_create=
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480verbose=
481x_includes=NONE
482x_libraries=NONE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
502ac_prev=
503for ac_option
504do
505  # If the previous option needs an argument, assign it.
506  if test -n "$ac_prev"; then
507    eval "$ac_prev=\$ac_option"
508    ac_prev=
509    continue
510  fi
511
512  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514  # Accept the important Cygnus configure options, so we can diagnose typos.
515
516  case $ac_option in
517
518  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519    ac_prev=bindir ;;
520  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521    bindir=$ac_optarg ;;
522
523  -build | --build | --buil | --bui | --bu)
524    ac_prev=build_alias ;;
525  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526    build_alias=$ac_optarg ;;
527
528  -cache-file | --cache-file | --cache-fil | --cache-fi \
529  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530    ac_prev=cache_file ;;
531  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533    cache_file=$ac_optarg ;;
534
535  --config-cache | -C)
536    cache_file=config.cache ;;
537
538  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539    ac_prev=datadir ;;
540  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541  | --da=*)
542    datadir=$ac_optarg ;;
543
544  -disable-* | --disable-*)
545    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546    # Reject names that are not valid shell variable names.
547    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549   { (exit 1); exit 1; }; }
550    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551    eval "enable_$ac_feature=no" ;;
552
553  -enable-* | --enable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    case $ac_option in
561      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562      *) ac_optarg=yes ;;
563    esac
564    eval "enable_$ac_feature='$ac_optarg'" ;;
565
566  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568  | --exec | --exe | --ex)
569    ac_prev=exec_prefix ;;
570  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572  | --exec=* | --exe=* | --ex=*)
573    exec_prefix=$ac_optarg ;;
574
575  -gas | --gas | --ga | --g)
576    # Obsolete; use --with-gas.
577    with_gas=yes ;;
578
579  -help | --help | --hel | --he | -h)
580    ac_init_help=long ;;
581  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582    ac_init_help=recursive ;;
583  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584    ac_init_help=short ;;
585
586  -host | --host | --hos | --ho)
587    ac_prev=host_alias ;;
588  -host=* | --host=* | --hos=* | --ho=*)
589    host_alias=$ac_optarg ;;
590
591  -includedir | --includedir | --includedi | --included | --include \
592  | --includ | --inclu | --incl | --inc)
593    ac_prev=includedir ;;
594  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595  | --includ=* | --inclu=* | --incl=* | --inc=*)
596    includedir=$ac_optarg ;;
597
598  -infodir | --infodir | --infodi | --infod | --info | --inf)
599    ac_prev=infodir ;;
600  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601    infodir=$ac_optarg ;;
602
603  -libdir | --libdir | --libdi | --libd)
604    ac_prev=libdir ;;
605  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606    libdir=$ac_optarg ;;
607
608  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609  | --libexe | --libex | --libe)
610    ac_prev=libexecdir ;;
611  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612  | --libexe=* | --libex=* | --libe=*)
613    libexecdir=$ac_optarg ;;
614
615  -localstatedir | --localstatedir | --localstatedi | --localstated \
616  | --localstate | --localstat | --localsta | --localst \
617  | --locals | --local | --loca | --loc | --lo)
618    ac_prev=localstatedir ;;
619  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622    localstatedir=$ac_optarg ;;
623
624  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625    ac_prev=mandir ;;
626  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627    mandir=$ac_optarg ;;
628
629  -nfp | --nfp | --nf)
630    # Obsolete; use --without-fp.
631    with_fp=no ;;
632
633  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634  | --no-cr | --no-c | -n)
635    no_create=yes ;;
636
637  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639    no_recursion=yes ;;
640
641  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643  | --oldin | --oldi | --old | --ol | --o)
644    ac_prev=oldincludedir ;;
645  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648    oldincludedir=$ac_optarg ;;
649
650  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651    ac_prev=prefix ;;
652  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653    prefix=$ac_optarg ;;
654
655  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656  | --program-pre | --program-pr | --program-p)
657    ac_prev=program_prefix ;;
658  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660    program_prefix=$ac_optarg ;;
661
662  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663  | --program-suf | --program-su | --program-s)
664    ac_prev=program_suffix ;;
665  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667    program_suffix=$ac_optarg ;;
668
669  -program-transform-name | --program-transform-name \
670  | --program-transform-nam | --program-transform-na \
671  | --program-transform-n | --program-transform- \
672  | --program-transform | --program-transfor \
673  | --program-transfo | --program-transf \
674  | --program-trans | --program-tran \
675  | --progr-tra | --program-tr | --program-t)
676    ac_prev=program_transform_name ;;
677  -program-transform-name=* | --program-transform-name=* \
678  | --program-transform-nam=* | --program-transform-na=* \
679  | --program-transform-n=* | --program-transform-=* \
680  | --program-transform=* | --program-transfor=* \
681  | --program-transfo=* | --program-transf=* \
682  | --program-trans=* | --program-tran=* \
683  | --progr-tra=* | --program-tr=* | --program-t=*)
684    program_transform_name=$ac_optarg ;;
685
686  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687  | -silent | --silent | --silen | --sile | --sil)
688    silent=yes ;;
689
690  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691    ac_prev=sbindir ;;
692  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693  | --sbi=* | --sb=*)
694    sbindir=$ac_optarg ;;
695
696  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698  | --sharedst | --shareds | --shared | --share | --shar \
699  | --sha | --sh)
700    ac_prev=sharedstatedir ;;
701  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704  | --sha=* | --sh=*)
705    sharedstatedir=$ac_optarg ;;
706
707  -site | --site | --sit)
708    ac_prev=site ;;
709  -site=* | --site=* | --sit=*)
710    site=$ac_optarg ;;
711
712  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713    ac_prev=srcdir ;;
714  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715    srcdir=$ac_optarg ;;
716
717  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718  | --syscon | --sysco | --sysc | --sys | --sy)
719    ac_prev=sysconfdir ;;
720  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722    sysconfdir=$ac_optarg ;;
723
724  -target | --target | --targe | --targ | --tar | --ta | --t)
725    ac_prev=target_alias ;;
726  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727    target_alias=$ac_optarg ;;
728
729  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730    verbose=yes ;;
731
732  -version | --version | --versio | --versi | --vers | -V)
733    ac_init_version=: ;;
734
735  -with-* | --with-*)
736    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737    # Reject names that are not valid shell variable names.
738    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739      { echo "$as_me: error: invalid package name: $ac_package" >&2
740   { (exit 1); exit 1; }; }
741    ac_package=`echo $ac_package| sed 's/-/_/g'`
742    case $ac_option in
743      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744      *) ac_optarg=yes ;;
745    esac
746    eval "with_$ac_package='$ac_optarg'" ;;
747
748  -without-* | --without-*)
749    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750    # Reject names that are not valid shell variable names.
751    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752      { echo "$as_me: error: invalid package name: $ac_package" >&2
753   { (exit 1); exit 1; }; }
754    ac_package=`echo $ac_package | sed 's/-/_/g'`
755    eval "with_$ac_package=no" ;;
756
757  --x)
758    # Obsolete; use --with-x.
759    with_x=yes ;;
760
761  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762  | --x-incl | --x-inc | --x-in | --x-i)
763    ac_prev=x_includes ;;
764  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766    x_includes=$ac_optarg ;;
767
768  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770    ac_prev=x_libraries ;;
771  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773    x_libraries=$ac_optarg ;;
774
775  -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777   { (exit 1); exit 1; }; }
778    ;;
779
780  *=*)
781    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782    # Reject names that are not valid shell variable names.
783    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785   { (exit 1); exit 1; }; }
786    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787    eval "$ac_envvar='$ac_optarg'"
788    export $ac_envvar ;;
789
790  *)
791    # FIXME: should be removed in autoconf 3.0.
792    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796    ;;
797
798  esac
799done
800
801if test -n "$ac_prev"; then
802  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803  { echo "$as_me: error: missing argument to $ac_option" >&2
804   { (exit 1); exit 1; }; }
805fi
806
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810  eval ac_val=$`echo $ac_var`
811  case $ac_val in
812    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814   { (exit 1); exit 1; }; };;
815  esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820	      localstatedir libdir includedir oldincludedir infodir mandir
821do
822  eval ac_val=$`echo $ac_var`
823  case $ac_val in
824    [\\/$]* | ?:[\\/]* ) ;;
825    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826   { (exit 1); exit 1; }; };;
827  esac
828done
829
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839  if test "x$build_alias" = x; then
840    cross_compiling=maybe
841    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842    If a cross compiler is detected then cross compile mode will be used." >&2
843  elif test "x$build_alias" != "x$host_alias"; then
844    cross_compiling=yes
845  fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
852
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856  ac_srcdir_defaulted=yes
857  # Try the directory containing this script, then its parent.
858  ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860	 X"$0" : 'X\(//\)[^/]' \| \
861	 X"$0" : 'X\(//\)$' \| \
862	 X"$0" : 'X\(/\)' \| \
863	 .     : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867  	  /^X\(\/\/\)$/{ s//\1/; q; }
868  	  /^X\(\/\).*/{ s//\1/; q; }
869  	  s/.*/./; q'`
870  srcdir=$ac_confdir
871  if test ! -r $srcdir/$ac_unique_file; then
872    srcdir=..
873  fi
874else
875  ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878  if test "$ac_srcdir_defaulted" = yes; then
879    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880   { (exit 1); exit 1; }; }
881  else
882    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883   { (exit 1); exit 1; }; }
884  fi
885fi
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888   { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
922
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927  # Omit some internal or obsolete options to make the list less imposing.
928  # This message is too long to be a string in the A/UX 3.1 sh.
929  cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
931
932Usage: $0 [OPTION]... [VAR=VALUE]...
933
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937Defaults for the options are specified in brackets.
938
939Configuration:
940  -h, --help              display this help and exit
941      --help=short        display options specific to this package
942      --help=recursive    display the short help of all the included packages
943  -V, --version           display version information and exit
944  -q, --quiet, --silent   do not print \`checking...' messages
945      --cache-file=FILE   cache test results in FILE [disabled]
946  -C, --config-cache      alias for \`--cache-file=config.cache'
947  -n, --no-create         do not create output files
948      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952  cat <<_ACEOF
953Installation directories:
954  --prefix=PREFIX         install architecture-independent files in PREFIX
955			  [$ac_default_prefix]
956  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957			  [PREFIX]
958
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
963
964For better control, use the options below.
965
966Fine tuning of the installation directories:
967  --bindir=DIR           user executables [EPREFIX/bin]
968  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969  --libexecdir=DIR       program executables [EPREFIX/libexec]
970  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974  --libdir=DIR           object code libraries [EPREFIX/lib]
975  --includedir=DIR       C header files [PREFIX/include]
976  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977  --infodir=DIR          info documentation [PREFIX/info]
978  --mandir=DIR           man documentation [PREFIX/man]
979_ACEOF
980
981  cat <<\_ACEOF
982
983Program names:
984  --program-prefix=PREFIX            prepend PREFIX to installed program names
985  --program-suffix=SUFFIX            append SUFFIX to installed program names
986  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988System types:
989  --build=BUILD     configure for building on BUILD [guessed]
990  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991  --target=TARGET   configure for building compilers for TARGET [HOST]
992_ACEOF
993fi
994
995if test -n "$ac_init_help"; then
996
997  cat <<\_ACEOF
998
999Optional Features:
1000  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002  --disable-dependency-tracking  speeds up one-time build
1003  --enable-dependency-tracking   do not reject slow dependency extractors
1004  --enable-shared[=PKGS]
1005                          build shared libraries [default=no]
1006  --enable-static[=PKGS]
1007                          build static libraries [default=yes]
1008  --enable-fast-install[=PKGS]
1009                          optimize for fast installation [default=yes]
1010  --disable-libtool-lock  avoid locking (might break parallel builds)
1011  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1012  --enable-targets        alternative target configurations
1013  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1014  --enable-secureplt      Default to creating read-only plt entries
1015  --enable-werror         treat compile warnings as errors
1016  --enable-build-warnings enable build-time compiler warnings
1017  --enable-maintainer-mode  enable make rules and dependencies not useful
1018			  (and sometimes confusing) to the casual installer
1019  --enable-install-libbfd controls installation of libbfd and related headers
1020  --disable-nls           do not use Native Language Support
1021
1022Optional Packages:
1023  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1024  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1025  --with-pic              try to use only PIC/non-PIC objects [default=use
1026                          both]
1027  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1028  --with-mmap             try using mmap for BFD input files if available
1029  --with-separate-debug-dir=DIR
1030                          Look for global separate debug info in DIR
1031                          [default=LIBDIR/debug]
1032  --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1033                          Binutils"
1034  --with-bugurl=URL       Direct users to URL to report a bug
1035
1036Some influential environment variables:
1037  CC          C compiler command
1038  CFLAGS      C compiler flags
1039  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040              nonstandard directory <lib dir>
1041  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042              headers in a nonstandard directory <include dir>
1043  CPP         C preprocessor
1044
1045Use these variables to override the choices made by `configure' or to help
1046it to find libraries and programs with nonstandard names/locations.
1047
1048_ACEOF
1049fi
1050
1051if test "$ac_init_help" = "recursive"; then
1052  # If there are subdirs, report their specific --help.
1053  ac_popdir=`pwd`
1054  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055    test -d $ac_dir || continue
1056    ac_builddir=.
1057
1058if test "$ac_dir" != .; then
1059  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060  # A "../" for each directory in $ac_dir_suffix.
1061  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062else
1063  ac_dir_suffix= ac_top_builddir=
1064fi
1065
1066case $srcdir in
1067  .)  # No --srcdir option.  We are building in place.
1068    ac_srcdir=.
1069    if test -z "$ac_top_builddir"; then
1070       ac_top_srcdir=.
1071    else
1072       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073    fi ;;
1074  [\\/]* | ?:[\\/]* )  # Absolute path.
1075    ac_srcdir=$srcdir$ac_dir_suffix;
1076    ac_top_srcdir=$srcdir ;;
1077  *) # Relative path.
1078    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080esac
1081
1082# Do not use `cd foo && pwd` to compute absolute paths, because
1083# the directories may not exist.
1084case `pwd` in
1085.) ac_abs_builddir="$ac_dir";;
1086*)
1087  case "$ac_dir" in
1088  .) ac_abs_builddir=`pwd`;;
1089  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091  esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_top_builddir=${ac_top_builddir}.;;
1095*)
1096  case ${ac_top_builddir}. in
1097  .) ac_abs_top_builddir=$ac_abs_builddir;;
1098  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100  esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_srcdir=$ac_srcdir;;
1104*)
1105  case $ac_srcdir in
1106  .) ac_abs_srcdir=$ac_abs_builddir;;
1107  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109  esac;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_top_srcdir=$ac_top_srcdir;;
1113*)
1114  case $ac_top_srcdir in
1115  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118  esac;;
1119esac
1120
1121    cd $ac_dir
1122    # Check for guested configure; otherwise get Cygnus style configure.
1123    if test -f $ac_srcdir/configure.gnu; then
1124      echo
1125      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1126    elif test -f $ac_srcdir/configure; then
1127      echo
1128      $SHELL $ac_srcdir/configure  --help=recursive
1129    elif test -f $ac_srcdir/configure.ac ||
1130	   test -f $ac_srcdir/configure.in; then
1131      echo
1132      $ac_configure --help
1133    else
1134      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135    fi
1136    cd $ac_popdir
1137  done
1138fi
1139
1140test -n "$ac_init_help" && exit 0
1141if $ac_init_version; then
1142  cat <<\_ACEOF
1143
1144Copyright (C) 2003 Free Software Foundation, Inc.
1145This configure script is free software; the Free Software Foundation
1146gives unlimited permission to copy, distribute and modify it.
1147_ACEOF
1148  exit 0
1149fi
1150exec 5>config.log
1151cat >&5 <<_ACEOF
1152This file contains any messages produced by compilers while
1153running configure, to aid debugging if configure makes a mistake.
1154
1155It was created by $as_me, which was
1156generated by GNU Autoconf 2.59.  Invocation command line was
1157
1158  $ $0 $@
1159
1160_ACEOF
1161{
1162cat <<_ASUNAME
1163## --------- ##
1164## Platform. ##
1165## --------- ##
1166
1167hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
1173/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1175
1176/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1177/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1178/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1180/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1181/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1182/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1183
1184_ASUNAME
1185
1186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187for as_dir in $PATH
1188do
1189  IFS=$as_save_IFS
1190  test -z "$as_dir" && as_dir=.
1191  echo "PATH: $as_dir"
1192done
1193
1194} >&5
1195
1196cat >&5 <<_ACEOF
1197
1198
1199## ----------- ##
1200## Core tests. ##
1201## ----------- ##
1202
1203_ACEOF
1204
1205
1206# Keep a trace of the command line.
1207# Strip out --no-create and --no-recursion so they do not pile up.
1208# Strip out --silent because we don't want to record it for future runs.
1209# Also quote any args containing shell meta-characters.
1210# Make two passes to allow for proper duplicate-argument suppression.
1211ac_configure_args=
1212ac_configure_args0=
1213ac_configure_args1=
1214ac_sep=
1215ac_must_keep_next=false
1216for ac_pass in 1 2
1217do
1218  for ac_arg
1219  do
1220    case $ac_arg in
1221    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223    | -silent | --silent | --silen | --sile | --sil)
1224      continue ;;
1225    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227    esac
1228    case $ac_pass in
1229    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230    2)
1231      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232      if test $ac_must_keep_next = true; then
1233	ac_must_keep_next=false # Got value, back to normal.
1234      else
1235	case $ac_arg in
1236	  *=* | --config-cache | -C | -disable-* | --disable-* \
1237	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239	  | -with-* | --with-* | -without-* | --without-* | --x)
1240	    case "$ac_configure_args0 " in
1241	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242	    esac
1243	    ;;
1244	  -* ) ac_must_keep_next=true ;;
1245	esac
1246      fi
1247      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248      # Get rid of the leading space.
1249      ac_sep=" "
1250      ;;
1251    esac
1252  done
1253done
1254$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256
1257# When interrupted or exit'd, cleanup temporary files, and complete
1258# config.log.  We remove comments because anyway the quotes in there
1259# would cause problems or look ugly.
1260# WARNING: Be sure not to use single quotes in there, as some shells,
1261# such as our DU 5.0 friend, will then `close' the trap.
1262trap 'exit_status=$?
1263  # Save into config.log some information that might help in debugging.
1264  {
1265    echo
1266
1267    cat <<\_ASBOX
1268## ---------------- ##
1269## Cache variables. ##
1270## ---------------- ##
1271_ASBOX
1272    echo
1273    # The following way of writing the cache mishandles newlines in values,
1274{
1275  (set) 2>&1 |
1276    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277    *ac_space=\ *)
1278      sed -n \
1279	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281      ;;
1282    *)
1283      sed -n \
1284	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285      ;;
1286    esac;
1287}
1288    echo
1289
1290    cat <<\_ASBOX
1291## ----------------- ##
1292## Output variables. ##
1293## ----------------- ##
1294_ASBOX
1295    echo
1296    for ac_var in $ac_subst_vars
1297    do
1298      eval ac_val=$`echo $ac_var`
1299      echo "$ac_var='"'"'$ac_val'"'"'"
1300    done | sort
1301    echo
1302
1303    if test -n "$ac_subst_files"; then
1304      cat <<\_ASBOX
1305## ------------- ##
1306## Output files. ##
1307## ------------- ##
1308_ASBOX
1309      echo
1310      for ac_var in $ac_subst_files
1311      do
1312	eval ac_val=$`echo $ac_var`
1313	echo "$ac_var='"'"'$ac_val'"'"'"
1314      done | sort
1315      echo
1316    fi
1317
1318    if test -s confdefs.h; then
1319      cat <<\_ASBOX
1320## ----------- ##
1321## confdefs.h. ##
1322## ----------- ##
1323_ASBOX
1324      echo
1325      sed "/^$/d" confdefs.h | sort
1326      echo
1327    fi
1328    test "$ac_signal" != 0 &&
1329      echo "$as_me: caught signal $ac_signal"
1330    echo "$as_me: exit $exit_status"
1331  } >&5
1332  rm -f core *.core &&
1333  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334    exit $exit_status
1335     ' 0
1336for ac_signal in 1 2 13 15; do
1337  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338done
1339ac_signal=0
1340
1341# confdefs.h avoids OS command line length limits that DEFS can exceed.
1342rm -rf conftest* confdefs.h
1343# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344echo >confdefs.h
1345
1346# Predefined preprocessor variables.
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_NAME "$PACKAGE_NAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_VERSION "$PACKAGE_VERSION"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_STRING "$PACKAGE_STRING"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370_ACEOF
1371
1372
1373# Let the site file select an alternate cache file if it wants to.
1374# Prefer explicitly selected file to automatically selected ones.
1375if test -z "$CONFIG_SITE"; then
1376  if test "x$prefix" != xNONE; then
1377    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378  else
1379    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380  fi
1381fi
1382for ac_site_file in $CONFIG_SITE; do
1383  if test -r "$ac_site_file"; then
1384    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385echo "$as_me: loading site script $ac_site_file" >&6;}
1386    sed 's/^/| /' "$ac_site_file" >&5
1387    . "$ac_site_file"
1388  fi
1389done
1390
1391if test -r "$cache_file"; then
1392  # Some versions of bash will fail to source /dev/null (special
1393  # files actually), so we avoid doing that.
1394  if test -f "$cache_file"; then
1395    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396echo "$as_me: loading cache $cache_file" >&6;}
1397    case $cache_file in
1398      [\\/]* | ?:[\\/]* ) . $cache_file;;
1399      *)                      . ./$cache_file;;
1400    esac
1401  fi
1402else
1403  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404echo "$as_me: creating cache $cache_file" >&6;}
1405  >$cache_file
1406fi
1407
1408# Check that the precious variables saved in the cache have kept the same
1409# value.
1410ac_cache_corrupted=false
1411for ac_var in `(set) 2>&1 |
1412	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414  eval ac_new_set=\$ac_env_${ac_var}_set
1415  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416  eval ac_new_val="\$ac_env_${ac_var}_value"
1417  case $ac_old_set,$ac_new_set in
1418    set,)
1419      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421      ac_cache_corrupted=: ;;
1422    ,set)
1423      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425      ac_cache_corrupted=: ;;
1426    ,);;
1427    *)
1428      if test "x$ac_old_val" != "x$ac_new_val"; then
1429	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1432echo "$as_me:   former value:  $ac_old_val" >&2;}
1433	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1434echo "$as_me:   current value: $ac_new_val" >&2;}
1435	ac_cache_corrupted=:
1436      fi;;
1437  esac
1438  # Pass precious variables to config.status.
1439  if test "$ac_new_set" = set; then
1440    case $ac_new_val in
1441    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443    *) ac_arg=$ac_var=$ac_new_val ;;
1444    esac
1445    case " $ac_configure_args " in
1446      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1447      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448    esac
1449  fi
1450done
1451if $ac_cache_corrupted; then
1452  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456   { (exit 1); exit 1; }; }
1457fi
1458
1459ac_ext=c
1460ac_cpp='$CPP $CPPFLAGS'
1461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463ac_compiler_gnu=$ac_cv_c_compiler_gnu
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485ac_aux_dir=
1486for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1487  if test -f $ac_dir/install-sh; then
1488    ac_aux_dir=$ac_dir
1489    ac_install_sh="$ac_aux_dir/install-sh -c"
1490    break
1491  elif test -f $ac_dir/install.sh; then
1492    ac_aux_dir=$ac_dir
1493    ac_install_sh="$ac_aux_dir/install.sh -c"
1494    break
1495  elif test -f $ac_dir/shtool; then
1496    ac_aux_dir=$ac_dir
1497    ac_install_sh="$ac_aux_dir/shtool install -c"
1498    break
1499  fi
1500done
1501if test -z "$ac_aux_dir"; then
1502  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504   { (exit 1); exit 1; }; }
1505fi
1506ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1509
1510# Make sure we can run config.sub.
1511$ac_config_sub sun4 >/dev/null 2>&1 ||
1512  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1513echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1514   { (exit 1); exit 1; }; }
1515
1516echo "$as_me:$LINENO: checking build system type" >&5
1517echo $ECHO_N "checking build system type... $ECHO_C" >&6
1518if test "${ac_cv_build+set}" = set; then
1519  echo $ECHO_N "(cached) $ECHO_C" >&6
1520else
1521  ac_cv_build_alias=$build_alias
1522test -z "$ac_cv_build_alias" &&
1523  ac_cv_build_alias=`$ac_config_guess`
1524test -z "$ac_cv_build_alias" &&
1525  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1526echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1527   { (exit 1); exit 1; }; }
1528ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1529  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1530echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1531   { (exit 1); exit 1; }; }
1532
1533fi
1534echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1535echo "${ECHO_T}$ac_cv_build" >&6
1536build=$ac_cv_build
1537build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1538build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1539build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1540
1541
1542echo "$as_me:$LINENO: checking host system type" >&5
1543echo $ECHO_N "checking host system type... $ECHO_C" >&6
1544if test "${ac_cv_host+set}" = set; then
1545  echo $ECHO_N "(cached) $ECHO_C" >&6
1546else
1547  ac_cv_host_alias=$host_alias
1548test -z "$ac_cv_host_alias" &&
1549  ac_cv_host_alias=$ac_cv_build_alias
1550ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553   { (exit 1); exit 1; }; }
1554
1555fi
1556echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1557echo "${ECHO_T}$ac_cv_host" >&6
1558host=$ac_cv_host
1559host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562
1563
1564echo "$as_me:$LINENO: checking target system type" >&5
1565echo $ECHO_N "checking target system type... $ECHO_C" >&6
1566if test "${ac_cv_target+set}" = set; then
1567  echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569  ac_cv_target_alias=$target_alias
1570test "x$ac_cv_target_alias" = "x" &&
1571  ac_cv_target_alias=$ac_cv_host_alias
1572ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575   { (exit 1); exit 1; }; }
1576
1577fi
1578echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1579echo "${ECHO_T}$ac_cv_target" >&6
1580target=$ac_cv_target
1581target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586# The aliases save the names the user supplied, while $host etc.
1587# will get canonicalized.
1588test -n "$target_alias" &&
1589  test "$program_prefix$program_suffix$program_transform_name" = \
1590    NONENONEs,x,x, &&
1591  program_prefix=${target_alias}-
1592ac_ext=c
1593ac_cpp='$CPP $CPPFLAGS'
1594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597if test -n "$ac_tool_prefix"; then
1598  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1599set dummy ${ac_tool_prefix}gcc; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603  echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605  if test -n "$CC"; then
1606  ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611  IFS=$as_save_IFS
1612  test -z "$as_dir" && as_dir=.
1613  for ac_exec_ext in '' $ac_executable_extensions; do
1614  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617    break 2
1618  fi
1619done
1620done
1621
1622fi
1623fi
1624CC=$ac_cv_prog_CC
1625if test -n "$CC"; then
1626  echo "$as_me:$LINENO: result: $CC" >&5
1627echo "${ECHO_T}$CC" >&6
1628else
1629  echo "$as_me:$LINENO: result: no" >&5
1630echo "${ECHO_T}no" >&6
1631fi
1632
1633fi
1634if test -z "$ac_cv_prog_CC"; then
1635  ac_ct_CC=$CC
1636  # Extract the first word of "gcc", so it can be a program name with args.
1637set dummy gcc; ac_word=$2
1638echo "$as_me:$LINENO: checking for $ac_word" >&5
1639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641  echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643  if test -n "$ac_ct_CC"; then
1644  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645else
1646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647for as_dir in $PATH
1648do
1649  IFS=$as_save_IFS
1650  test -z "$as_dir" && as_dir=.
1651  for ac_exec_ext in '' $ac_executable_extensions; do
1652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653    ac_cv_prog_ac_ct_CC="gcc"
1654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655    break 2
1656  fi
1657done
1658done
1659
1660fi
1661fi
1662ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663if test -n "$ac_ct_CC"; then
1664  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665echo "${ECHO_T}$ac_ct_CC" >&6
1666else
1667  echo "$as_me:$LINENO: result: no" >&5
1668echo "${ECHO_T}no" >&6
1669fi
1670
1671  CC=$ac_ct_CC
1672else
1673  CC="$ac_cv_prog_CC"
1674fi
1675
1676if test -z "$CC"; then
1677  if test -n "$ac_tool_prefix"; then
1678  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1679set dummy ${ac_tool_prefix}cc; ac_word=$2
1680echo "$as_me:$LINENO: checking for $ac_word" >&5
1681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_CC+set}" = set; then
1683  echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685  if test -n "$CC"; then
1686  ac_cv_prog_CC="$CC" # Let the user override the test.
1687else
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691  IFS=$as_save_IFS
1692  test -z "$as_dir" && as_dir=.
1693  for ac_exec_ext in '' $ac_executable_extensions; do
1694  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695    ac_cv_prog_CC="${ac_tool_prefix}cc"
1696    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697    break 2
1698  fi
1699done
1700done
1701
1702fi
1703fi
1704CC=$ac_cv_prog_CC
1705if test -n "$CC"; then
1706  echo "$as_me:$LINENO: result: $CC" >&5
1707echo "${ECHO_T}$CC" >&6
1708else
1709  echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712
1713fi
1714if test -z "$ac_cv_prog_CC"; then
1715  ac_ct_CC=$CC
1716  # Extract the first word of "cc", so it can be a program name with args.
1717set dummy cc; ac_word=$2
1718echo "$as_me:$LINENO: checking for $ac_word" >&5
1719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721  echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723  if test -n "$ac_ct_CC"; then
1724  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725else
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729  IFS=$as_save_IFS
1730  test -z "$as_dir" && as_dir=.
1731  for ac_exec_ext in '' $ac_executable_extensions; do
1732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733    ac_cv_prog_ac_ct_CC="cc"
1734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735    break 2
1736  fi
1737done
1738done
1739
1740fi
1741fi
1742ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743if test -n "$ac_ct_CC"; then
1744  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745echo "${ECHO_T}$ac_ct_CC" >&6
1746else
1747  echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750
1751  CC=$ac_ct_CC
1752else
1753  CC="$ac_cv_prog_CC"
1754fi
1755
1756fi
1757if test -z "$CC"; then
1758  # Extract the first word of "cc", so it can be a program name with args.
1759set dummy cc; ac_word=$2
1760echo "$as_me:$LINENO: checking for $ac_word" >&5
1761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762if test "${ac_cv_prog_CC+set}" = set; then
1763  echo $ECHO_N "(cached) $ECHO_C" >&6
1764else
1765  if test -n "$CC"; then
1766  ac_cv_prog_CC="$CC" # Let the user override the test.
1767else
1768  ac_prog_rejected=no
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772  IFS=$as_save_IFS
1773  test -z "$as_dir" && as_dir=.
1774  for ac_exec_ext in '' $ac_executable_extensions; do
1775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1777       ac_prog_rejected=yes
1778       continue
1779     fi
1780    ac_cv_prog_CC="cc"
1781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782    break 2
1783  fi
1784done
1785done
1786
1787if test $ac_prog_rejected = yes; then
1788  # We found a bogon in the path, so make sure we never use it.
1789  set dummy $ac_cv_prog_CC
1790  shift
1791  if test $# != 0; then
1792    # We chose a different compiler from the bogus one.
1793    # However, it has the same basename, so the bogon will be chosen
1794    # first if we set CC to just the basename; use the full file name.
1795    shift
1796    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1797  fi
1798fi
1799fi
1800fi
1801CC=$ac_cv_prog_CC
1802if test -n "$CC"; then
1803  echo "$as_me:$LINENO: result: $CC" >&5
1804echo "${ECHO_T}$CC" >&6
1805else
1806  echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808fi
1809
1810fi
1811if test -z "$CC"; then
1812  if test -n "$ac_tool_prefix"; then
1813  for ac_prog in cl
1814  do
1815    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_CC+set}" = set; then
1820  echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822  if test -n "$CC"; then
1823  ac_cv_prog_CC="$CC" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828  IFS=$as_save_IFS
1829  test -z "$as_dir" && as_dir=.
1830  for ac_exec_ext in '' $ac_executable_extensions; do
1831  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834    break 2
1835  fi
1836done
1837done
1838
1839fi
1840fi
1841CC=$ac_cv_prog_CC
1842if test -n "$CC"; then
1843  echo "$as_me:$LINENO: result: $CC" >&5
1844echo "${ECHO_T}$CC" >&6
1845else
1846  echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850    test -n "$CC" && break
1851  done
1852fi
1853if test -z "$CC"; then
1854  ac_ct_CC=$CC
1855  for ac_prog in cl
1856do
1857  # Extract the first word of "$ac_prog", so it can be a program name with args.
1858set dummy $ac_prog; ac_word=$2
1859echo "$as_me:$LINENO: checking for $ac_word" >&5
1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862  echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864  if test -n "$ac_ct_CC"; then
1865  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866else
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870  IFS=$as_save_IFS
1871  test -z "$as_dir" && as_dir=.
1872  for ac_exec_ext in '' $ac_executable_extensions; do
1873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874    ac_cv_prog_ac_ct_CC="$ac_prog"
1875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876    break 2
1877  fi
1878done
1879done
1880
1881fi
1882fi
1883ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884if test -n "$ac_ct_CC"; then
1885  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886echo "${ECHO_T}$ac_ct_CC" >&6
1887else
1888  echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892  test -n "$ac_ct_CC" && break
1893done
1894
1895  CC=$ac_ct_CC
1896fi
1897
1898fi
1899
1900
1901test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: no acceptable C compiler found in \$PATH
1904See \`config.log' for more details." >&2;}
1905   { (exit 1); exit 1; }; }
1906
1907# Provide some information about the compiler.
1908echo "$as_me:$LINENO:" \
1909     "checking for C compiler version" >&5
1910ac_compiler=`set X $ac_compile; echo $2`
1911{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1912  (eval $ac_compiler --version </dev/null >&5) 2>&5
1913  ac_status=$?
1914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915  (exit $ac_status); }
1916{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1917  (eval $ac_compiler -v </dev/null >&5) 2>&5
1918  ac_status=$?
1919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920  (exit $ac_status); }
1921{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1922  (eval $ac_compiler -V </dev/null >&5) 2>&5
1923  ac_status=$?
1924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925  (exit $ac_status); }
1926
1927cat >conftest.$ac_ext <<_ACEOF
1928/* confdefs.h.  */
1929_ACEOF
1930cat confdefs.h >>conftest.$ac_ext
1931cat >>conftest.$ac_ext <<_ACEOF
1932/* end confdefs.h.  */
1933
1934int
1935main ()
1936{
1937
1938  ;
1939  return 0;
1940}
1941_ACEOF
1942ac_clean_files_save=$ac_clean_files
1943ac_clean_files="$ac_clean_files a.out a.exe b.out"
1944# Try to create an executable without -o first, disregard a.out.
1945# It will help us diagnose broken compilers, and finding out an intuition
1946# of exeext.
1947echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1948echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1949ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1951  (eval $ac_link_default) 2>&5
1952  ac_status=$?
1953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954  (exit $ac_status); }; then
1955  # Find the output, starting from the most likely.  This scheme is
1956# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1957# resort.
1958
1959# Be careful to initialize this variable, since it used to be cached.
1960# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1961ac_cv_exeext=
1962# b.out is created by i960 compilers.
1963for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1964do
1965  test -f "$ac_file" || continue
1966  case $ac_file in
1967    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1968	;;
1969    conftest.$ac_ext )
1970	# This is the source file.
1971	;;
1972    [ab].out )
1973	# We found the default executable, but exeext='' is most
1974	# certainly right.
1975	break;;
1976    *.* )
1977	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978	# FIXME: I believe we export ac_cv_exeext for Libtool,
1979	# but it would be cool to find out if it's true.  Does anybody
1980	# maintain Libtool? --akim.
1981	export ac_cv_exeext
1982	break;;
1983    * )
1984	break;;
1985  esac
1986done
1987else
1988  echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1992See \`config.log' for more details." >&5
1993echo "$as_me: error: C compiler cannot create executables
1994See \`config.log' for more details." >&2;}
1995   { (exit 77); exit 77; }; }
1996fi
1997
1998ac_exeext=$ac_cv_exeext
1999echo "$as_me:$LINENO: result: $ac_file" >&5
2000echo "${ECHO_T}$ac_file" >&6
2001
2002# Check the compiler produces executables we can run.  If not, either
2003# the compiler is broken, or we cross compile.
2004echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2005echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2006# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2007# If not cross compiling, check that we can run a simple program.
2008if test "$cross_compiling" != yes; then
2009  if { ac_try='./$ac_file'
2010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011  (eval $ac_try) 2>&5
2012  ac_status=$?
2013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014  (exit $ac_status); }; }; then
2015    cross_compiling=no
2016  else
2017    if test "$cross_compiling" = maybe; then
2018	cross_compiling=yes
2019    else
2020	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2021If you meant to cross compile, use \`--host'.
2022See \`config.log' for more details." >&5
2023echo "$as_me: error: cannot run C compiled programs.
2024If you meant to cross compile, use \`--host'.
2025See \`config.log' for more details." >&2;}
2026   { (exit 1); exit 1; }; }
2027    fi
2028  fi
2029fi
2030echo "$as_me:$LINENO: result: yes" >&5
2031echo "${ECHO_T}yes" >&6
2032
2033rm -f a.out a.exe conftest$ac_cv_exeext b.out
2034ac_clean_files=$ac_clean_files_save
2035# Check the compiler produces executables we can run.  If not, either
2036# the compiler is broken, or we cross compile.
2037echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2038echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2039echo "$as_me:$LINENO: result: $cross_compiling" >&5
2040echo "${ECHO_T}$cross_compiling" >&6
2041
2042echo "$as_me:$LINENO: checking for suffix of executables" >&5
2043echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2045  (eval $ac_link) 2>&5
2046  ac_status=$?
2047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048  (exit $ac_status); }; then
2049  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2050# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2051# work properly (i.e., refer to `conftest.exe'), while it won't with
2052# `rm'.
2053for ac_file in conftest.exe conftest conftest.*; do
2054  test -f "$ac_file" || continue
2055  case $ac_file in
2056    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2057    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058	  export ac_cv_exeext
2059	  break;;
2060    * ) break;;
2061  esac
2062done
2063else
2064  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2067See \`config.log' for more details." >&2;}
2068   { (exit 1); exit 1; }; }
2069fi
2070
2071rm -f conftest$ac_cv_exeext
2072echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2073echo "${ECHO_T}$ac_cv_exeext" >&6
2074
2075rm -f conftest.$ac_ext
2076EXEEXT=$ac_cv_exeext
2077ac_exeext=$EXEEXT
2078echo "$as_me:$LINENO: checking for suffix of object files" >&5
2079echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2080if test "${ac_cv_objext+set}" = set; then
2081  echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083  cat >conftest.$ac_ext <<_ACEOF
2084/* confdefs.h.  */
2085_ACEOF
2086cat confdefs.h >>conftest.$ac_ext
2087cat >>conftest.$ac_ext <<_ACEOF
2088/* end confdefs.h.  */
2089
2090int
2091main ()
2092{
2093
2094  ;
2095  return 0;
2096}
2097_ACEOF
2098rm -f conftest.o conftest.obj
2099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100  (eval $ac_compile) 2>&5
2101  ac_status=$?
2102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103  (exit $ac_status); }; then
2104  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2105  case $ac_file in
2106    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2107    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2108       break;;
2109  esac
2110done
2111else
2112  echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
2114
2115{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: cannot compute suffix of object files: cannot compile
2118See \`config.log' for more details." >&2;}
2119   { (exit 1); exit 1; }; }
2120fi
2121
2122rm -f conftest.$ac_cv_objext conftest.$ac_ext
2123fi
2124echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2125echo "${ECHO_T}$ac_cv_objext" >&6
2126OBJEXT=$ac_cv_objext
2127ac_objext=$OBJEXT
2128echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2129echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2130if test "${ac_cv_c_compiler_gnu+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  cat >conftest.$ac_ext <<_ACEOF
2134/* confdefs.h.  */
2135_ACEOF
2136cat confdefs.h >>conftest.$ac_ext
2137cat >>conftest.$ac_ext <<_ACEOF
2138/* end confdefs.h.  */
2139
2140int
2141main ()
2142{
2143#ifndef __GNUC__
2144       choke me
2145#endif
2146
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151rm -f conftest.$ac_objext
2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153  (eval $ac_compile) 2>conftest.er1
2154  ac_status=$?
2155  grep -v '^ *+' conftest.er1 >conftest.err
2156  rm -f conftest.er1
2157  cat conftest.err >&5
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); } &&
2160	 { ac_try='test -z "$ac_c_werror_flag"
2161			 || test ! -s conftest.err'
2162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163  (eval $ac_try) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }; } &&
2167	 { ac_try='test -s conftest.$ac_objext'
2168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169  (eval $ac_try) 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }; }; then
2173  ac_compiler_gnu=yes
2174else
2175  echo "$as_me: failed program was:" >&5
2176sed 's/^/| /' conftest.$ac_ext >&5
2177
2178ac_compiler_gnu=no
2179fi
2180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181ac_cv_c_compiler_gnu=$ac_compiler_gnu
2182
2183fi
2184echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2185echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2186GCC=`test $ac_compiler_gnu = yes && echo yes`
2187ac_test_CFLAGS=${CFLAGS+set}
2188ac_save_CFLAGS=$CFLAGS
2189CFLAGS="-g"
2190echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2191echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2192if test "${ac_cv_prog_cc_g+set}" = set; then
2193  echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195  cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210rm -f conftest.$ac_objext
2211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212  (eval $ac_compile) 2>conftest.er1
2213  ac_status=$?
2214  grep -v '^ *+' conftest.er1 >conftest.err
2215  rm -f conftest.er1
2216  cat conftest.err >&5
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); } &&
2219	 { ac_try='test -z "$ac_c_werror_flag"
2220			 || test ! -s conftest.err'
2221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222  (eval $ac_try) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }; } &&
2226	 { ac_try='test -s conftest.$ac_objext'
2227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228  (eval $ac_try) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; }; then
2232  ac_cv_prog_cc_g=yes
2233else
2234  echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237ac_cv_prog_cc_g=no
2238fi
2239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240fi
2241echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2242echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2243if test "$ac_test_CFLAGS" = set; then
2244  CFLAGS=$ac_save_CFLAGS
2245elif test $ac_cv_prog_cc_g = yes; then
2246  if test "$GCC" = yes; then
2247    CFLAGS="-g -O2"
2248  else
2249    CFLAGS="-g"
2250  fi
2251else
2252  if test "$GCC" = yes; then
2253    CFLAGS="-O2"
2254  else
2255    CFLAGS=
2256  fi
2257fi
2258echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2259echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2260if test "${ac_cv_prog_cc_stdc+set}" = set; then
2261  echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263  ac_cv_prog_cc_stdc=no
2264ac_save_CC=$CC
2265cat >conftest.$ac_ext <<_ACEOF
2266/* confdefs.h.  */
2267_ACEOF
2268cat confdefs.h >>conftest.$ac_ext
2269cat >>conftest.$ac_ext <<_ACEOF
2270/* end confdefs.h.  */
2271#include <stdarg.h>
2272#include <stdio.h>
2273#include <sys/types.h>
2274#include <sys/stat.h>
2275/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2276struct buf { int x; };
2277FILE * (*rcsopen) (struct buf *, struct stat *, int);
2278static char *e (p, i)
2279     char **p;
2280     int i;
2281{
2282  return p[i];
2283}
2284static char *f (char * (*g) (char **, int), char **p, ...)
2285{
2286  char *s;
2287  va_list v;
2288  va_start (v,p);
2289  s = g (p, va_arg (v,int));
2290  va_end (v);
2291  return s;
2292}
2293
2294/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2295   function prototypes and stuff, but not '\xHH' hex character constants.
2296   These don't provoke an error unfortunately, instead are silently treated
2297   as 'x'.  The following induces an error, until -std1 is added to get
2298   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2299   array size at least.  It's necessary to write '\x00'==0 to get something
2300   that's true only with -std1.  */
2301int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2302
2303int test (int i, double x);
2304struct s1 {int (*f) (int a);};
2305struct s2 {int (*f) (double a);};
2306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2307int argc;
2308char **argv;
2309int
2310main ()
2311{
2312return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317# Don't try gcc -ansi; that turns off useful extensions and
2318# breaks some systems' header files.
2319# AIX			-qlanglvl=ansi
2320# Ultrix and OSF/1	-std1
2321# HP-UX 10.20 and later	-Ae
2322# HP-UX older versions	-Aa -D_HPUX_SOURCE
2323# SVR4			-Xc -D__EXTENSIONS__
2324for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2325do
2326  CC="$ac_save_CC $ac_arg"
2327  rm -f conftest.$ac_objext
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329  (eval $ac_compile) 2>conftest.er1
2330  ac_status=$?
2331  grep -v '^ *+' conftest.er1 >conftest.err
2332  rm -f conftest.er1
2333  cat conftest.err >&5
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); } &&
2336	 { ac_try='test -z "$ac_c_werror_flag"
2337			 || test ! -s conftest.err'
2338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339  (eval $ac_try) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; } &&
2343	 { ac_try='test -s conftest.$ac_objext'
2344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345  (eval $ac_try) 2>&5
2346  ac_status=$?
2347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348  (exit $ac_status); }; }; then
2349  ac_cv_prog_cc_stdc=$ac_arg
2350break
2351else
2352  echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355fi
2356rm -f conftest.err conftest.$ac_objext
2357done
2358rm -f conftest.$ac_ext conftest.$ac_objext
2359CC=$ac_save_CC
2360
2361fi
2362
2363case "x$ac_cv_prog_cc_stdc" in
2364  x|xno)
2365    echo "$as_me:$LINENO: result: none needed" >&5
2366echo "${ECHO_T}none needed" >&6 ;;
2367  *)
2368    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2369echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2370    CC="$CC $ac_cv_prog_cc_stdc" ;;
2371esac
2372
2373# Some people use a C++ compiler to compile C.  Since we use `exit',
2374# in C++ we need to declare it.  In case someone uses the same compiler
2375# for both compiling C and C++ we need to have the C++ compiler decide
2376# the declaration of exit, since it's the most demanding environment.
2377cat >conftest.$ac_ext <<_ACEOF
2378#ifndef __cplusplus
2379  choke me
2380#endif
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384  (eval $ac_compile) 2>conftest.er1
2385  ac_status=$?
2386  grep -v '^ *+' conftest.er1 >conftest.err
2387  rm -f conftest.er1
2388  cat conftest.err >&5
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); } &&
2391	 { ac_try='test -z "$ac_c_werror_flag"
2392			 || test ! -s conftest.err'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; } &&
2398	 { ac_try='test -s conftest.$ac_objext'
2399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400  (eval $ac_try) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; }; then
2404  for ac_declaration in \
2405   '' \
2406   'extern "C" void std::exit (int) throw (); using std::exit;' \
2407   'extern "C" void std::exit (int); using std::exit;' \
2408   'extern "C" void exit (int) throw ();' \
2409   'extern "C" void exit (int);' \
2410   'void exit (int);'
2411do
2412  cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h.  */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h.  */
2418$ac_declaration
2419#include <stdlib.h>
2420int
2421main ()
2422{
2423exit (42);
2424  ;
2425  return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430  (eval $ac_compile) 2>conftest.er1
2431  ac_status=$?
2432  grep -v '^ *+' conftest.er1 >conftest.err
2433  rm -f conftest.er1
2434  cat conftest.err >&5
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); } &&
2437	 { ac_try='test -z "$ac_c_werror_flag"
2438			 || test ! -s conftest.err'
2439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440  (eval $ac_try) 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; } &&
2444	 { ac_try='test -s conftest.$ac_objext'
2445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446  (eval $ac_try) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }; }; then
2450  :
2451else
2452  echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455continue
2456fi
2457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458  cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h.  */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h.  */
2464$ac_declaration
2465int
2466main ()
2467{
2468exit (42);
2469  ;
2470  return 0;
2471}
2472_ACEOF
2473rm -f conftest.$ac_objext
2474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475  (eval $ac_compile) 2>conftest.er1
2476  ac_status=$?
2477  grep -v '^ *+' conftest.er1 >conftest.err
2478  rm -f conftest.er1
2479  cat conftest.err >&5
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); } &&
2482	 { ac_try='test -z "$ac_c_werror_flag"
2483			 || test ! -s conftest.err'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; } &&
2489	 { ac_try='test -s conftest.$ac_objext'
2490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491  (eval $ac_try) 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }; }; then
2495  break
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500fi
2501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502done
2503rm -f conftest*
2504if test -n "$ac_declaration"; then
2505  echo '#ifdef __cplusplus' >>confdefs.h
2506  echo $ac_declaration      >>confdefs.h
2507  echo '#endif'             >>confdefs.h
2508fi
2509
2510else
2511  echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514fi
2515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523echo "$as_me:$LINENO: checking for library containing strerror" >&5
2524echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2525if test "${ac_cv_search_strerror+set}" = set; then
2526  echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528  ac_func_search_save_LIBS=$LIBS
2529ac_cv_search_strerror=no
2530cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h.  */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h.  */
2536
2537/* Override any gcc2 internal prototype to avoid an error.  */
2538#ifdef __cplusplus
2539extern "C"
2540#endif
2541/* We use char because int might match the return type of a gcc2
2542   builtin and then its argument prototype would still apply.  */
2543char strerror ();
2544int
2545main ()
2546{
2547strerror ();
2548  ;
2549  return 0;
2550}
2551_ACEOF
2552rm -f conftest.$ac_objext conftest$ac_exeext
2553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2554  (eval $ac_link) 2>conftest.er1
2555  ac_status=$?
2556  grep -v '^ *+' conftest.er1 >conftest.err
2557  rm -f conftest.er1
2558  cat conftest.err >&5
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); } &&
2561	 { ac_try='test -z "$ac_c_werror_flag"
2562			 || test ! -s conftest.err'
2563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564  (eval $ac_try) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; } &&
2568	 { ac_try='test -s conftest$ac_exeext'
2569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570  (eval $ac_try) 2>&5
2571  ac_status=$?
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); }; }; then
2574  ac_cv_search_strerror="none required"
2575else
2576  echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579fi
2580rm -f conftest.err conftest.$ac_objext \
2581      conftest$ac_exeext conftest.$ac_ext
2582if test "$ac_cv_search_strerror" = no; then
2583  for ac_lib in cposix; do
2584    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2585    cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h.  */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h.  */
2591
2592/* Override any gcc2 internal prototype to avoid an error.  */
2593#ifdef __cplusplus
2594extern "C"
2595#endif
2596/* We use char because int might match the return type of a gcc2
2597   builtin and then its argument prototype would still apply.  */
2598char strerror ();
2599int
2600main ()
2601{
2602strerror ();
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext conftest$ac_exeext
2608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609  (eval $ac_link) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616	 { ac_try='test -z "$ac_c_werror_flag"
2617			 || test ! -s conftest.err'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; } &&
2623	 { ac_try='test -s conftest$ac_exeext'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  ac_cv_search_strerror="-l$ac_lib"
2630break
2631else
2632  echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635fi
2636rm -f conftest.err conftest.$ac_objext \
2637      conftest$ac_exeext conftest.$ac_ext
2638  done
2639fi
2640LIBS=$ac_func_search_save_LIBS
2641fi
2642echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2643echo "${ECHO_T}$ac_cv_search_strerror" >&6
2644if test "$ac_cv_search_strerror" != no; then
2645  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2646
2647fi
2648
2649
2650am__api_version="1.9"
2651# Find a good install program.  We prefer a C program (faster),
2652# so one script is as good as another.  But avoid the broken or
2653# incompatible versions:
2654# SysV /etc/install, /usr/sbin/install
2655# SunOS /usr/etc/install
2656# IRIX /sbin/install
2657# AIX /bin/install
2658# AmigaOS /C/install, which installs bootblocks on floppy discs
2659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2662# OS/2's system install, which has a completely different semantic
2663# ./install, which can be erroneously created by make from ./install.sh.
2664echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2665echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2666if test -z "$INSTALL"; then
2667if test "${ac_cv_path_install+set}" = set; then
2668  echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673  IFS=$as_save_IFS
2674  test -z "$as_dir" && as_dir=.
2675  # Account for people who put trailing slashes in PATH elements.
2676case $as_dir/ in
2677  ./ | .// | /cC/* | \
2678  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2679  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2680  /usr/ucb/* ) ;;
2681  *)
2682    # OSF1 and SCO ODT 3.0 have their own names for install.
2683    # Don't use installbsd from OSF since it installs stuff as root
2684    # by default.
2685    for ac_prog in ginstall scoinst install; do
2686      for ac_exec_ext in '' $ac_executable_extensions; do
2687	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2688	  if test $ac_prog = install &&
2689	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690	    # AIX install.  It has an incompatible calling convention.
2691	    :
2692	  elif test $ac_prog = install &&
2693	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2694	    # program-specific install script used by HP pwplus--don't use.
2695	    :
2696	  else
2697	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2698	    break 3
2699	  fi
2700	fi
2701      done
2702    done
2703    ;;
2704esac
2705done
2706
2707
2708fi
2709  if test "${ac_cv_path_install+set}" = set; then
2710    INSTALL=$ac_cv_path_install
2711  else
2712    # As a last resort, use the slow shell script.  We don't cache a
2713    # path for INSTALL within a source directory, because that will
2714    # break other packages using the cache if that directory is
2715    # removed, or if the path is relative.
2716    INSTALL=$ac_install_sh
2717  fi
2718fi
2719echo "$as_me:$LINENO: result: $INSTALL" >&5
2720echo "${ECHO_T}$INSTALL" >&6
2721
2722# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2723# It thinks the first close brace ends the variable substitution.
2724test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2725
2726test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2727
2728test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2729
2730echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2731echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2732# Just in case
2733sleep 1
2734echo timestamp > conftest.file
2735# Do `set' in a subshell so we don't clobber the current shell's
2736# arguments.  Must try -L first in case configure is actually a
2737# symlink; some systems play weird games with the mod time of symlinks
2738# (eg FreeBSD returns the mod time of the symlink's containing
2739# directory).
2740if (
2741   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2742   if test "$*" = "X"; then
2743      # -L didn't work.
2744      set X `ls -t $srcdir/configure conftest.file`
2745   fi
2746   rm -f conftest.file
2747   if test "$*" != "X $srcdir/configure conftest.file" \
2748      && test "$*" != "X conftest.file $srcdir/configure"; then
2749
2750      # If neither matched, then we have a broken ls.  This can happen
2751      # if, for instance, CONFIG_SHELL is bash and it inherits a
2752      # broken ls alias from the environment.  This has actually
2753      # happened.  Such a system could not be considered "sane".
2754      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2755alias in your environment" >&5
2756echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2757alias in your environment" >&2;}
2758   { (exit 1); exit 1; }; }
2759   fi
2760
2761   test "$2" = conftest.file
2762   )
2763then
2764   # Ok.
2765   :
2766else
2767   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2768Check your system clock" >&5
2769echo "$as_me: error: newly created file is older than distributed files!
2770Check your system clock" >&2;}
2771   { (exit 1); exit 1; }; }
2772fi
2773echo "$as_me:$LINENO: result: yes" >&5
2774echo "${ECHO_T}yes" >&6
2775test "$program_prefix" != NONE &&
2776  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2777# Use a double $ so make ignores it.
2778test "$program_suffix" != NONE &&
2779  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2780# Double any \ or $.  echo might interpret backslashes.
2781# By default was `s,x,x', remove it if useless.
2782cat <<\_ACEOF >conftest.sed
2783s/[\\$]/&&/g;s/;s,x,x,$//
2784_ACEOF
2785program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2786rm conftest.sed
2787
2788# expand $ac_aux_dir to an absolute path
2789am_aux_dir=`cd $ac_aux_dir && pwd`
2790
2791test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2792# Use eval to expand $SHELL
2793if eval "$MISSING --run true"; then
2794  am_missing_run="$MISSING --run "
2795else
2796  am_missing_run=
2797  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2798echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2799fi
2800
2801if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2802  # We used to keeping the `.' as first argument, in order to
2803  # allow $(mkdir_p) to be used without argument.  As in
2804  #   $(mkdir_p) $(somedir)
2805  # where $(somedir) is conditionally defined.  However this is wrong
2806  # for two reasons:
2807  #  1. if the package is installed by a user who cannot write `.'
2808  #     make install will fail,
2809  #  2. the above comment should most certainly read
2810  #     $(mkdir_p) $(DESTDIR)$(somedir)
2811  #     so it does not work when $(somedir) is undefined and
2812  #     $(DESTDIR) is not.
2813  #  To support the latter case, we have to write
2814  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2815  #  so the `.' trick is pointless.
2816  mkdir_p='mkdir -p --'
2817else
2818  # On NextStep and OpenStep, the `mkdir' command does not
2819  # recognize any option.  It will interpret all options as
2820  # directories to create, and then abort because `.' already
2821  # exists.
2822  for d in ./-p ./--version;
2823  do
2824    test -d $d && rmdir $d
2825  done
2826  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2827  if test -f "$ac_aux_dir/mkinstalldirs"; then
2828    mkdir_p='$(mkinstalldirs)'
2829  else
2830    mkdir_p='$(install_sh) -d'
2831  fi
2832fi
2833
2834for ac_prog in gawk mawk nawk awk
2835do
2836  # Extract the first word of "$ac_prog", so it can be a program name with args.
2837set dummy $ac_prog; ac_word=$2
2838echo "$as_me:$LINENO: checking for $ac_word" >&5
2839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840if test "${ac_cv_prog_AWK+set}" = set; then
2841  echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843  if test -n "$AWK"; then
2844  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849  IFS=$as_save_IFS
2850  test -z "$as_dir" && as_dir=.
2851  for ac_exec_ext in '' $ac_executable_extensions; do
2852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853    ac_cv_prog_AWK="$ac_prog"
2854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855    break 2
2856  fi
2857done
2858done
2859
2860fi
2861fi
2862AWK=$ac_cv_prog_AWK
2863if test -n "$AWK"; then
2864  echo "$as_me:$LINENO: result: $AWK" >&5
2865echo "${ECHO_T}$AWK" >&6
2866else
2867  echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
2869fi
2870
2871  test -n "$AWK" && break
2872done
2873
2874echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2875echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2876set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2877if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2878  echo $ECHO_N "(cached) $ECHO_C" >&6
2879else
2880  cat >conftest.make <<\_ACEOF
2881all:
2882	@echo 'ac_maketemp="$(MAKE)"'
2883_ACEOF
2884# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2885eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2886if test -n "$ac_maketemp"; then
2887  eval ac_cv_prog_make_${ac_make}_set=yes
2888else
2889  eval ac_cv_prog_make_${ac_make}_set=no
2890fi
2891rm -f conftest.make
2892fi
2893if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2894  echo "$as_me:$LINENO: result: yes" >&5
2895echo "${ECHO_T}yes" >&6
2896  SET_MAKE=
2897else
2898  echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6
2900  SET_MAKE="MAKE=${MAKE-make}"
2901fi
2902
2903rm -rf .tst 2>/dev/null
2904mkdir .tst 2>/dev/null
2905if test -d .tst; then
2906  am__leading_dot=.
2907else
2908  am__leading_dot=_
2909fi
2910rmdir .tst 2>/dev/null
2911
2912DEPDIR="${am__leading_dot}deps"
2913
2914          ac_config_commands="$ac_config_commands depfiles"
2915
2916
2917am_make=${MAKE-make}
2918cat > confinc << 'END'
2919am__doit:
2920	@echo done
2921.PHONY: am__doit
2922END
2923# If we don't find an include directive, just comment out the code.
2924echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2925echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2926am__include="#"
2927am__quote=
2928_am_result=none
2929# First try GNU make style include.
2930echo "include confinc" > confmf
2931# We grep out `Entering directory' and `Leaving directory'
2932# messages which can occur if `w' ends up in MAKEFLAGS.
2933# In particular we don't look at `^make:' because GNU make might
2934# be invoked under some other name (usually "gmake"), in which
2935# case it prints its new name instead of `make'.
2936if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2937   am__include=include
2938   am__quote=
2939   _am_result=GNU
2940fi
2941# Now try BSD make style include.
2942if test "$am__include" = "#"; then
2943   echo '.include "confinc"' > confmf
2944   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2945      am__include=.include
2946      am__quote="\""
2947      _am_result=BSD
2948   fi
2949fi
2950
2951
2952echo "$as_me:$LINENO: result: $_am_result" >&5
2953echo "${ECHO_T}$_am_result" >&6
2954rm -f confinc confmf
2955
2956# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2957if test "${enable_dependency_tracking+set}" = set; then
2958  enableval="$enable_dependency_tracking"
2959
2960fi;
2961if test "x$enable_dependency_tracking" != xno; then
2962  am_depcomp="$ac_aux_dir/depcomp"
2963  AMDEPBACKSLASH='\'
2964fi
2965
2966
2967if test "x$enable_dependency_tracking" != xno; then
2968  AMDEP_TRUE=
2969  AMDEP_FALSE='#'
2970else
2971  AMDEP_TRUE='#'
2972  AMDEP_FALSE=
2973fi
2974
2975
2976
2977# test to see if srcdir already configured
2978if test "`cd $srcdir && pwd`" != "`pwd`" &&
2979   test -f $srcdir/config.status; then
2980  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2981echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2982   { (exit 1); exit 1; }; }
2983fi
2984
2985# test whether we have cygpath
2986if test -z "$CYGPATH_W"; then
2987  if (cygpath --version) >/dev/null 2>/dev/null; then
2988    CYGPATH_W='cygpath -w'
2989  else
2990    CYGPATH_W=echo
2991  fi
2992fi
2993
2994
2995# Define the identity of the package.
2996 PACKAGE=bfd
2997 VERSION=2.17.50
2998
2999
3000cat >>confdefs.h <<_ACEOF
3001#define PACKAGE "$PACKAGE"
3002_ACEOF
3003
3004
3005cat >>confdefs.h <<_ACEOF
3006#define VERSION "$VERSION"
3007_ACEOF
3008
3009# Some tools Automake needs.
3010
3011ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3012
3013
3014AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3015
3016
3017AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3018
3019
3020AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3021
3022
3023MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3024
3025install_sh=${install_sh-"$am_aux_dir/install-sh"}
3026
3027# Installed binaries are usually stripped using `strip' when the user
3028# run `make install-strip'.  However `strip' might not be the right
3029# tool to use in cross-compilation environments, therefore Automake
3030# will honor the `STRIP' environment variable to overrule this program.
3031if test "$cross_compiling" != no; then
3032  if test -n "$ac_tool_prefix"; then
3033  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3034set dummy ${ac_tool_prefix}strip; ac_word=$2
3035echo "$as_me:$LINENO: checking for $ac_word" >&5
3036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037if test "${ac_cv_prog_STRIP+set}" = set; then
3038  echo $ECHO_N "(cached) $ECHO_C" >&6
3039else
3040  if test -n "$STRIP"; then
3041  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048  for ac_exec_ext in '' $ac_executable_extensions; do
3049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054done
3055done
3056
3057fi
3058fi
3059STRIP=$ac_cv_prog_STRIP
3060if test -n "$STRIP"; then
3061  echo "$as_me:$LINENO: result: $STRIP" >&5
3062echo "${ECHO_T}$STRIP" >&6
3063else
3064  echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066fi
3067
3068fi
3069if test -z "$ac_cv_prog_STRIP"; then
3070  ac_ct_STRIP=$STRIP
3071  # Extract the first word of "strip", so it can be a program name with args.
3072set dummy 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_ac_ct_STRIP+set}" = set; then
3076  echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078  if test -n "$ac_ct_STRIP"; then
3079  ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
3089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093done
3094
3095  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3096fi
3097fi
3098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3099if test -n "$ac_ct_STRIP"; then
3100  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3101echo "${ECHO_T}$ac_ct_STRIP" >&6
3102else
3103  echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105fi
3106
3107  STRIP=$ac_ct_STRIP
3108else
3109  STRIP="$ac_cv_prog_STRIP"
3110fi
3111
3112fi
3113INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3114
3115# We need awk for the "check" target.  The system "awk" is bad on
3116# some platforms.
3117# Always define AMTAR for backward compatibility.
3118
3119AMTAR=${AMTAR-"${am_missing_run}tar"}
3120
3121am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3122
3123
3124
3125
3126depcc="$CC"   am_compiler_list=
3127
3128echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3129echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3130if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3131  echo $ECHO_N "(cached) $ECHO_C" >&6
3132else
3133  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3134  # We make a subdir and do the tests there.  Otherwise we can end up
3135  # making bogus files that we don't know about and never remove.  For
3136  # instance it was reported that on HP-UX the gcc test will end up
3137  # making a dummy file named `D' -- because `-MD' means `put the output
3138  # in D'.
3139  mkdir conftest.dir
3140  # Copy depcomp to subdir because otherwise we won't find it if we're
3141  # using a relative directory.
3142  cp "$am_depcomp" conftest.dir
3143  cd conftest.dir
3144  # We will build objects and dependencies in a subdirectory because
3145  # it helps to detect inapplicable dependency modes.  For instance
3146  # both Tru64's cc and ICC support -MD to output dependencies as a
3147  # side effect of compilation, but ICC will put the dependencies in
3148  # the current directory while Tru64 will put them in the object
3149  # directory.
3150  mkdir sub
3151
3152  am_cv_CC_dependencies_compiler_type=none
3153  if test "$am_compiler_list" = ""; then
3154     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3155  fi
3156  for depmode in $am_compiler_list; do
3157    # Setup a source with many dependencies, because some compilers
3158    # like to wrap large dependency lists on column 80 (with \), and
3159    # we should not choose a depcomp mode which is confused by this.
3160    #
3161    # We need to recreate these files for each test, as the compiler may
3162    # overwrite some of them when testing with obscure command lines.
3163    # This happens at least with the AIX C compiler.
3164    : > sub/conftest.c
3165    for i in 1 2 3 4 5 6; do
3166      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3167      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3168      # Solaris 8's {/usr,}/bin/sh.
3169      touch sub/conftst$i.h
3170    done
3171    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3172
3173    case $depmode in
3174    nosideeffect)
3175      # after this tag, mechanisms are not by side-effect, so they'll
3176      # only be used when explicitly requested
3177      if test "x$enable_dependency_tracking" = xyes; then
3178	continue
3179      else
3180	break
3181      fi
3182      ;;
3183    none) break ;;
3184    esac
3185    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3186    # mode.  It turns out that the SunPro C++ compiler does not properly
3187    # handle `-M -o', and we need to detect this.
3188    if depmode=$depmode \
3189       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3190       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3191       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3192         >/dev/null 2>conftest.err &&
3193       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3194       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3195       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3196      # icc doesn't choke on unknown options, it will just issue warnings
3197      # or remarks (even with -Werror).  So we grep stderr for any message
3198      # that says an option was ignored or not supported.
3199      # When given -MP, icc 7.0 and 7.1 complain thusly:
3200      #   icc: Command line warning: ignoring option '-M'; no argument required
3201      # The diagnosis changed in icc 8.0:
3202      #   icc: Command line remark: option '-MP' not supported
3203      if (grep 'ignoring option' conftest.err ||
3204          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3205        am_cv_CC_dependencies_compiler_type=$depmode
3206        break
3207      fi
3208    fi
3209  done
3210
3211  cd ..
3212  rm -rf conftest.dir
3213else
3214  am_cv_CC_dependencies_compiler_type=none
3215fi
3216
3217fi
3218echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3219echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3220CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3221
3222
3223
3224if
3225  test "x$enable_dependency_tracking" != xno \
3226  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3227  am__fastdepCC_TRUE=
3228  am__fastdepCC_FALSE='#'
3229else
3230  am__fastdepCC_TRUE='#'
3231  am__fastdepCC_FALSE=
3232fi
3233
3234
3235
3236
3237if test -n "$ac_tool_prefix"; then
3238  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3239set dummy ${ac_tool_prefix}ar; ac_word=$2
3240echo "$as_me:$LINENO: checking for $ac_word" >&5
3241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242if test "${ac_cv_prog_AR+set}" = set; then
3243  echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245  if test -n "$AR"; then
3246  ac_cv_prog_AR="$AR" # Let the user override the test.
3247else
3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251  IFS=$as_save_IFS
3252  test -z "$as_dir" && as_dir=.
3253  for ac_exec_ext in '' $ac_executable_extensions; do
3254  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255    ac_cv_prog_AR="${ac_tool_prefix}ar"
3256    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257    break 2
3258  fi
3259done
3260done
3261
3262fi
3263fi
3264AR=$ac_cv_prog_AR
3265if test -n "$AR"; then
3266  echo "$as_me:$LINENO: result: $AR" >&5
3267echo "${ECHO_T}$AR" >&6
3268else
3269  echo "$as_me:$LINENO: result: no" >&5
3270echo "${ECHO_T}no" >&6
3271fi
3272
3273fi
3274if test -z "$ac_cv_prog_AR"; then
3275  ac_ct_AR=$AR
3276  # Extract the first word of "ar", so it can be a program name with args.
3277set dummy 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_ac_ct_AR+set}" = set; then
3281  echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283  if test -n "$ac_ct_AR"; then
3284  ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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
3302ac_ct_AR=$ac_cv_prog_ac_ct_AR
3303if test -n "$ac_ct_AR"; then
3304  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3305echo "${ECHO_T}$ac_ct_AR" >&6
3306else
3307  echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
3310
3311  AR=$ac_ct_AR
3312else
3313  AR="$ac_cv_prog_AR"
3314fi
3315
3316if test -n "$ac_tool_prefix"; then
3317  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3318set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3319echo "$as_me:$LINENO: checking for $ac_word" >&5
3320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321if test "${ac_cv_prog_RANLIB+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  if test -n "$RANLIB"; then
3325  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332  for ac_exec_ext in '' $ac_executable_extensions; do
3333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339done
3340
3341fi
3342fi
3343RANLIB=$ac_cv_prog_RANLIB
3344if test -n "$RANLIB"; then
3345  echo "$as_me:$LINENO: result: $RANLIB" >&5
3346echo "${ECHO_T}$RANLIB" >&6
3347else
3348  echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6
3350fi
3351
3352fi
3353if test -z "$ac_cv_prog_RANLIB"; then
3354  ac_ct_RANLIB=$RANLIB
3355  # Extract the first word of "ranlib", so it can be a program name with args.
3356set dummy 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_ac_ct_RANLIB+set}" = set; then
3360  echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362  if test -n "$ac_ct_RANLIB"; then
3363  ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
3373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377done
3378
3379  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3380fi
3381fi
3382ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3383if test -n "$ac_ct_RANLIB"; then
3384  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3385echo "${ECHO_T}$ac_ct_RANLIB" >&6
3386else
3387  echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
3389fi
3390
3391  RANLIB=$ac_ct_RANLIB
3392else
3393  RANLIB="$ac_cv_prog_RANLIB"
3394fi
3395
3396
3397# Check whether --enable-shared or --disable-shared was given.
3398if test "${enable_shared+set}" = set; then
3399  enableval="$enable_shared"
3400  p=${PACKAGE-default}
3401    case $enableval in
3402    yes) enable_shared=yes ;;
3403    no) enable_shared=no ;;
3404    *)
3405      enable_shared=no
3406      # Look at the argument we got.  We use all the common list separators.
3407      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3408      for pkg in $enableval; do
3409	IFS="$lt_save_ifs"
3410	if test "X$pkg" = "X$p"; then
3411	  enable_shared=yes
3412	fi
3413      done
3414      IFS="$lt_save_ifs"
3415      ;;
3416    esac
3417else
3418  enable_shared=no
3419fi;
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434if test -n "$ac_tool_prefix"; then
3435  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436set dummy ${ac_tool_prefix}gcc; ac_word=$2
3437echo "$as_me:$LINENO: checking for $ac_word" >&5
3438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439if test "${ac_cv_prog_CC+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  if test -n "$CC"; then
3443  ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448  IFS=$as_save_IFS
3449  test -z "$as_dir" && as_dir=.
3450  for ac_exec_ext in '' $ac_executable_extensions; do
3451  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457done
3458
3459fi
3460fi
3461CC=$ac_cv_prog_CC
3462if test -n "$CC"; then
3463  echo "$as_me:$LINENO: result: $CC" >&5
3464echo "${ECHO_T}$CC" >&6
3465else
3466  echo "$as_me:$LINENO: result: no" >&5
3467echo "${ECHO_T}no" >&6
3468fi
3469
3470fi
3471if test -z "$ac_cv_prog_CC"; then
3472  ac_ct_CC=$CC
3473  # Extract the first word of "gcc", so it can be a program name with args.
3474set dummy 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_ac_ct_CC+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480  if test -n "$ac_ct_CC"; then
3481  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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
3499ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500if test -n "$ac_ct_CC"; then
3501  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3502echo "${ECHO_T}$ac_ct_CC" >&6
3503else
3504  echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6
3506fi
3507
3508  CC=$ac_ct_CC
3509else
3510  CC="$ac_cv_prog_CC"
3511fi
3512
3513if test -z "$CC"; then
3514  if test -n "$ac_tool_prefix"; then
3515  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3516set dummy ${ac_tool_prefix}cc; ac_word=$2
3517echo "$as_me:$LINENO: checking for $ac_word" >&5
3518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519if test "${ac_cv_prog_CC+set}" = set; then
3520  echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522  if test -n "$CC"; then
3523  ac_cv_prog_CC="$CC" # Let the user override the test.
3524else
3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528  IFS=$as_save_IFS
3529  test -z "$as_dir" && as_dir=.
3530  for ac_exec_ext in '' $ac_executable_extensions; do
3531  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532    ac_cv_prog_CC="${ac_tool_prefix}cc"
3533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534    break 2
3535  fi
3536done
3537done
3538
3539fi
3540fi
3541CC=$ac_cv_prog_CC
3542if test -n "$CC"; then
3543  echo "$as_me:$LINENO: result: $CC" >&5
3544echo "${ECHO_T}$CC" >&6
3545else
3546  echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548fi
3549
3550fi
3551if test -z "$ac_cv_prog_CC"; then
3552  ac_ct_CC=$CC
3553  # Extract the first word of "cc", so it can be a program name with args.
3554set dummy 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_ac_ct_CC+set}" = set; then
3558  echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560  if test -n "$ac_ct_CC"; then
3561  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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
3579ac_ct_CC=$ac_cv_prog_ac_ct_CC
3580if test -n "$ac_ct_CC"; then
3581  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3582echo "${ECHO_T}$ac_ct_CC" >&6
3583else
3584  echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
3586fi
3587
3588  CC=$ac_ct_CC
3589else
3590  CC="$ac_cv_prog_CC"
3591fi
3592
3593fi
3594if test -z "$CC"; then
3595  # Extract the first word of "cc", so it can be a program name with args.
3596set dummy cc; ac_word=$2
3597echo "$as_me:$LINENO: checking for $ac_word" >&5
3598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599if test "${ac_cv_prog_CC+set}" = set; then
3600  echo $ECHO_N "(cached) $ECHO_C" >&6
3601else
3602  if test -n "$CC"; then
3603  ac_cv_prog_CC="$CC" # Let the user override the test.
3604else
3605  ac_prog_rejected=no
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609  IFS=$as_save_IFS
3610  test -z "$as_dir" && as_dir=.
3611  for ac_exec_ext in '' $ac_executable_extensions; do
3612  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3614       ac_prog_rejected=yes
3615       continue
3616     fi
3617    ac_cv_prog_CC="cc"
3618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619    break 2
3620  fi
3621done
3622done
3623
3624if test $ac_prog_rejected = yes; then
3625  # We found a bogon in the path, so make sure we never use it.
3626  set dummy $ac_cv_prog_CC
3627  shift
3628  if test $# != 0; then
3629    # We chose a different compiler from the bogus one.
3630    # However, it has the same basename, so the bogon will be chosen
3631    # first if we set CC to just the basename; use the full file name.
3632    shift
3633    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3634  fi
3635fi
3636fi
3637fi
3638CC=$ac_cv_prog_CC
3639if test -n "$CC"; then
3640  echo "$as_me:$LINENO: result: $CC" >&5
3641echo "${ECHO_T}$CC" >&6
3642else
3643  echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
3645fi
3646
3647fi
3648if test -z "$CC"; then
3649  if test -n "$ac_tool_prefix"; then
3650  for ac_prog in cl
3651  do
3652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654echo "$as_me:$LINENO: checking for $ac_word" >&5
3655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656if test "${ac_cv_prog_CC+set}" = set; then
3657  echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
3659  if test -n "$CC"; then
3660  ac_cv_prog_CC="$CC" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665  IFS=$as_save_IFS
3666  test -z "$as_dir" && as_dir=.
3667  for ac_exec_ext in '' $ac_executable_extensions; do
3668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671    break 2
3672  fi
3673done
3674done
3675
3676fi
3677fi
3678CC=$ac_cv_prog_CC
3679if test -n "$CC"; then
3680  echo "$as_me:$LINENO: result: $CC" >&5
3681echo "${ECHO_T}$CC" >&6
3682else
3683  echo "$as_me:$LINENO: result: no" >&5
3684echo "${ECHO_T}no" >&6
3685fi
3686
3687    test -n "$CC" && break
3688  done
3689fi
3690if test -z "$CC"; then
3691  ac_ct_CC=$CC
3692  for ac_prog in cl
3693do
3694  # Extract the first word of "$ac_prog", so it can be a program name with args.
3695set dummy $ac_prog; ac_word=$2
3696echo "$as_me:$LINENO: checking for $ac_word" >&5
3697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3699  echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701  if test -n "$ac_ct_CC"; then
3702  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703else
3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707  IFS=$as_save_IFS
3708  test -z "$as_dir" && as_dir=.
3709  for ac_exec_ext in '' $ac_executable_extensions; do
3710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711    ac_cv_prog_ac_ct_CC="$ac_prog"
3712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713    break 2
3714  fi
3715done
3716done
3717
3718fi
3719fi
3720ac_ct_CC=$ac_cv_prog_ac_ct_CC
3721if test -n "$ac_ct_CC"; then
3722  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3723echo "${ECHO_T}$ac_ct_CC" >&6
3724else
3725  echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727fi
3728
3729  test -n "$ac_ct_CC" && break
3730done
3731
3732  CC=$ac_ct_CC
3733fi
3734
3735fi
3736
3737
3738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3739See \`config.log' for more details." >&5
3740echo "$as_me: error: no acceptable C compiler found in \$PATH
3741See \`config.log' for more details." >&2;}
3742   { (exit 1); exit 1; }; }
3743
3744# Provide some information about the compiler.
3745echo "$as_me:$LINENO:" \
3746     "checking for C compiler version" >&5
3747ac_compiler=`set X $ac_compile; echo $2`
3748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3749  (eval $ac_compiler --version </dev/null >&5) 2>&5
3750  ac_status=$?
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); }
3753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3754  (eval $ac_compiler -v </dev/null >&5) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }
3758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3759  (eval $ac_compiler -V </dev/null >&5) 2>&5
3760  ac_status=$?
3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762  (exit $ac_status); }
3763
3764echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3765echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3766if test "${ac_cv_c_compiler_gnu+set}" = set; then
3767  echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769  cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h.  */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h.  */
3775
3776int
3777main ()
3778{
3779#ifndef __GNUC__
3780       choke me
3781#endif
3782
3783  ;
3784  return 0;
3785}
3786_ACEOF
3787rm -f conftest.$ac_objext
3788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789  (eval $ac_compile) 2>conftest.er1
3790  ac_status=$?
3791  grep -v '^ *+' conftest.er1 >conftest.err
3792  rm -f conftest.er1
3793  cat conftest.err >&5
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); } &&
3796	 { ac_try='test -z "$ac_c_werror_flag"
3797			 || test ! -s conftest.err'
3798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799  (eval $ac_try) 2>&5
3800  ac_status=$?
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); }; } &&
3803	 { ac_try='test -s conftest.$ac_objext'
3804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805  (eval $ac_try) 2>&5
3806  ac_status=$?
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); }; }; then
3809  ac_compiler_gnu=yes
3810else
3811  echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814ac_compiler_gnu=no
3815fi
3816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817ac_cv_c_compiler_gnu=$ac_compiler_gnu
3818
3819fi
3820echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3821echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3822GCC=`test $ac_compiler_gnu = yes && echo yes`
3823ac_test_CFLAGS=${CFLAGS+set}
3824ac_save_CFLAGS=$CFLAGS
3825CFLAGS="-g"
3826echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3827echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3828if test "${ac_cv_prog_cc_g+set}" = set; then
3829  echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831  cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h.  */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h.  */
3837
3838int
3839main ()
3840{
3841
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext
3847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848  (eval $ac_compile) 2>conftest.er1
3849  ac_status=$?
3850  grep -v '^ *+' conftest.er1 >conftest.err
3851  rm -f conftest.er1
3852  cat conftest.err >&5
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); } &&
3855	 { ac_try='test -z "$ac_c_werror_flag"
3856			 || test ! -s conftest.err'
3857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858  (eval $ac_try) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; } &&
3862	 { ac_try='test -s conftest.$ac_objext'
3863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864  (eval $ac_try) 2>&5
3865  ac_status=$?
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); }; }; then
3868  ac_cv_prog_cc_g=yes
3869else
3870  echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873ac_cv_prog_cc_g=no
3874fi
3875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3876fi
3877echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3878echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3879if test "$ac_test_CFLAGS" = set; then
3880  CFLAGS=$ac_save_CFLAGS
3881elif test $ac_cv_prog_cc_g = yes; then
3882  if test "$GCC" = yes; then
3883    CFLAGS="-g -O2"
3884  else
3885    CFLAGS="-g"
3886  fi
3887else
3888  if test "$GCC" = yes; then
3889    CFLAGS="-O2"
3890  else
3891    CFLAGS=
3892  fi
3893fi
3894echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3895echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3896if test "${ac_cv_prog_cc_stdc+set}" = set; then
3897  echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899  ac_cv_prog_cc_stdc=no
3900ac_save_CC=$CC
3901cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h.  */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h.  */
3907#include <stdarg.h>
3908#include <stdio.h>
3909#include <sys/types.h>
3910#include <sys/stat.h>
3911/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3912struct buf { int x; };
3913FILE * (*rcsopen) (struct buf *, struct stat *, int);
3914static char *e (p, i)
3915     char **p;
3916     int i;
3917{
3918  return p[i];
3919}
3920static char *f (char * (*g) (char **, int), char **p, ...)
3921{
3922  char *s;
3923  va_list v;
3924  va_start (v,p);
3925  s = g (p, va_arg (v,int));
3926  va_end (v);
3927  return s;
3928}
3929
3930/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3931   function prototypes and stuff, but not '\xHH' hex character constants.
3932   These don't provoke an error unfortunately, instead are silently treated
3933   as 'x'.  The following induces an error, until -std1 is added to get
3934   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3935   array size at least.  It's necessary to write '\x00'==0 to get something
3936   that's true only with -std1.  */
3937int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3938
3939int test (int i, double x);
3940struct s1 {int (*f) (int a);};
3941struct s2 {int (*f) (double a);};
3942int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3943int argc;
3944char **argv;
3945int
3946main ()
3947{
3948return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953# Don't try gcc -ansi; that turns off useful extensions and
3954# breaks some systems' header files.
3955# AIX			-qlanglvl=ansi
3956# Ultrix and OSF/1	-std1
3957# HP-UX 10.20 and later	-Ae
3958# HP-UX older versions	-Aa -D_HPUX_SOURCE
3959# SVR4			-Xc -D__EXTENSIONS__
3960for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961do
3962  CC="$ac_save_CC $ac_arg"
3963  rm -f conftest.$ac_objext
3964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965  (eval $ac_compile) 2>conftest.er1
3966  ac_status=$?
3967  grep -v '^ *+' conftest.er1 >conftest.err
3968  rm -f conftest.er1
3969  cat conftest.err >&5
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); } &&
3972	 { ac_try='test -z "$ac_c_werror_flag"
3973			 || test ! -s conftest.err'
3974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975  (eval $ac_try) 2>&5
3976  ac_status=$?
3977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978  (exit $ac_status); }; } &&
3979	 { ac_try='test -s conftest.$ac_objext'
3980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981  (eval $ac_try) 2>&5
3982  ac_status=$?
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); }; }; then
3985  ac_cv_prog_cc_stdc=$ac_arg
3986break
3987else
3988  echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
3991fi
3992rm -f conftest.err conftest.$ac_objext
3993done
3994rm -f conftest.$ac_ext conftest.$ac_objext
3995CC=$ac_save_CC
3996
3997fi
3998
3999case "x$ac_cv_prog_cc_stdc" in
4000  x|xno)
4001    echo "$as_me:$LINENO: result: none needed" >&5
4002echo "${ECHO_T}none needed" >&6 ;;
4003  *)
4004    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4005echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4006    CC="$CC $ac_cv_prog_cc_stdc" ;;
4007esac
4008
4009# Some people use a C++ compiler to compile C.  Since we use `exit',
4010# in C++ we need to declare it.  In case someone uses the same compiler
4011# for both compiling C and C++ we need to have the C++ compiler decide
4012# the declaration of exit, since it's the most demanding environment.
4013cat >conftest.$ac_ext <<_ACEOF
4014#ifndef __cplusplus
4015  choke me
4016#endif
4017_ACEOF
4018rm -f conftest.$ac_objext
4019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020  (eval $ac_compile) 2>conftest.er1
4021  ac_status=$?
4022  grep -v '^ *+' conftest.er1 >conftest.err
4023  rm -f conftest.er1
4024  cat conftest.err >&5
4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026  (exit $ac_status); } &&
4027	 { ac_try='test -z "$ac_c_werror_flag"
4028			 || test ! -s conftest.err'
4029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030  (eval $ac_try) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; } &&
4034	 { ac_try='test -s conftest.$ac_objext'
4035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036  (eval $ac_try) 2>&5
4037  ac_status=$?
4038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039  (exit $ac_status); }; }; then
4040  for ac_declaration in \
4041   '' \
4042   'extern "C" void std::exit (int) throw (); using std::exit;' \
4043   'extern "C" void std::exit (int); using std::exit;' \
4044   'extern "C" void exit (int) throw ();' \
4045   'extern "C" void exit (int);' \
4046   'void exit (int);'
4047do
4048  cat >conftest.$ac_ext <<_ACEOF
4049/* confdefs.h.  */
4050_ACEOF
4051cat confdefs.h >>conftest.$ac_ext
4052cat >>conftest.$ac_ext <<_ACEOF
4053/* end confdefs.h.  */
4054$ac_declaration
4055#include <stdlib.h>
4056int
4057main ()
4058{
4059exit (42);
4060  ;
4061  return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext
4065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066  (eval $ac_compile) 2>conftest.er1
4067  ac_status=$?
4068  grep -v '^ *+' conftest.er1 >conftest.err
4069  rm -f conftest.er1
4070  cat conftest.err >&5
4071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072  (exit $ac_status); } &&
4073	 { ac_try='test -z "$ac_c_werror_flag"
4074			 || test ! -s conftest.err'
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); }; } &&
4080	 { ac_try='test -s conftest.$ac_objext'
4081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082  (eval $ac_try) 2>&5
4083  ac_status=$?
4084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085  (exit $ac_status); }; }; then
4086  :
4087else
4088  echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091continue
4092fi
4093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094  cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h.  */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h.  */
4100$ac_declaration
4101int
4102main ()
4103{
4104exit (42);
4105  ;
4106  return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111  (eval $ac_compile) 2>conftest.er1
4112  ac_status=$?
4113  grep -v '^ *+' conftest.er1 >conftest.err
4114  rm -f conftest.er1
4115  cat conftest.err >&5
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); } &&
4118	 { ac_try='test -z "$ac_c_werror_flag"
4119			 || test ! -s conftest.err'
4120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121  (eval $ac_try) 2>&5
4122  ac_status=$?
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); }; } &&
4125	 { ac_try='test -s conftest.$ac_objext'
4126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127  (eval $ac_try) 2>&5
4128  ac_status=$?
4129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130  (exit $ac_status); }; }; then
4131  break
4132else
4133  echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136fi
4137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138done
4139rm -f conftest*
4140if test -n "$ac_declaration"; then
4141  echo '#ifdef __cplusplus' >>confdefs.h
4142  echo $ac_declaration      >>confdefs.h
4143  echo '#endif'             >>confdefs.h
4144fi
4145
4146else
4147  echo "$as_me: failed program was:" >&5
4148sed 's/^/| /' conftest.$ac_ext >&5
4149
4150fi
4151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152ac_ext=c
4153ac_cpp='$CPP $CPPFLAGS'
4154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157
4158
4159cat >>confdefs.h <<\_ACEOF
4160#define _GNU_SOURCE 1
4161_ACEOF
4162
4163
4164
4165
4166
4167macro_version='2.1a'
4168macro_revision='1.2435'
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181ltmain="$ac_aux_dir/ltmain.sh"
4182
4183# Set options
4184
4185enable_dlopen=no
4186
4187
4188enable_win32_dll=no
4189
4190
4191
4192# Check whether --enable-static or --disable-static was given.
4193if test "${enable_static+set}" = set; then
4194  enableval="$enable_static"
4195  p=${PACKAGE-default}
4196    case $enableval in
4197    yes) enable_static=yes ;;
4198    no) enable_static=no ;;
4199    *)
4200     enable_static=no
4201      # Look at the argument we got.  We use all the common list separators.
4202      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4203      for pkg in $enableval; do
4204	IFS="$lt_save_ifs"
4205	if test "X$pkg" = "X$p"; then
4206	  enable_static=yes
4207	fi
4208      done
4209      IFS="$lt_save_ifs"
4210      ;;
4211    esac
4212else
4213  enable_static=yes
4214fi;
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224# Check whether --with-pic or --without-pic was given.
4225if test "${with_pic+set}" = set; then
4226  withval="$with_pic"
4227  pic_mode="$withval"
4228else
4229  pic_mode=default
4230fi;
4231
4232test -z "$pic_mode" && pic_mode=default
4233
4234
4235
4236
4237
4238
4239
4240# Check whether --enable-fast-install or --disable-fast-install was given.
4241if test "${enable_fast_install+set}" = set; then
4242  enableval="$enable_fast_install"
4243  p=${PACKAGE-default}
4244    case $enableval in
4245    yes) enable_fast_install=yes ;;
4246    no) enable_fast_install=no ;;
4247    *)
4248      enable_fast_install=no
4249      # Look at the argument we got.  We use all the common list separators.
4250      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4251      for pkg in $enableval; do
4252	IFS="$lt_save_ifs"
4253	if test "X$pkg" = "X$p"; then
4254	  enable_fast_install=yes
4255	fi
4256      done
4257      IFS="$lt_save_ifs"
4258      ;;
4259    esac
4260else
4261  enable_fast_install=yes
4262fi;
4263
4264
4265
4266
4267
4268
4269
4270
4271echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4272echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4273if test "${lt_cv_path_SED+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276  # Loop through the user's path and test for sed and gsed.
4277# Then use that list of sed's as ones to test for truncation.
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283  for lt_ac_prog in sed gsed; do
4284    for ac_exec_ext in '' $ac_executable_extensions; do
4285      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4286        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4287      fi
4288    done
4289  done
4290done
4291IFS=$as_save_IFS
4292lt_ac_max=0
4293lt_ac_count=0
4294# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4295# along with /bin/sed that truncates output.
4296for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4297  test ! -f $lt_ac_sed && continue
4298  cat /dev/null > conftest.in
4299  lt_ac_count=0
4300  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4301  # Check for GNU sed and select it if it is found.
4302  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4303    lt_cv_path_SED=$lt_ac_sed
4304    break
4305  fi
4306  while true; do
4307    cat conftest.in conftest.in >conftest.tmp
4308    mv conftest.tmp conftest.in
4309    cp conftest.in conftest.nl
4310    echo >>conftest.nl
4311    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4312    cmp -s conftest.out conftest.nl || break
4313    # 10000 chars as input seems more than enough
4314    test $lt_ac_count -gt 10 && break
4315    lt_ac_count=`expr $lt_ac_count + 1`
4316    if test $lt_ac_count -gt $lt_ac_max; then
4317      lt_ac_max=$lt_ac_count
4318      lt_cv_path_SED=$lt_ac_sed
4319    fi
4320  done
4321done
4322
4323fi
4324
4325SED=$lt_cv_path_SED
4326
4327echo "$as_me:$LINENO: result: $SED" >&5
4328echo "${ECHO_T}$SED" >&6
4329
4330test -z "$SED" && SED=sed
4331Xsed="$SED -e 1s/^X//"
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343echo "$as_me:$LINENO: checking for egrep" >&5
4344echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4345if test "${ac_cv_prog_egrep+set}" = set; then
4346  echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
4348  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4349    then ac_cv_prog_egrep='grep -E'
4350    else ac_cv_prog_egrep='egrep'
4351    fi
4352fi
4353echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4354echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4355 EGREP=$ac_cv_prog_egrep
4356
4357
4358echo "$as_me:$LINENO: checking for fgrep" >&5
4359echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4360if test "${ac_cv_prog_fgrep+set}" = set; then
4361  echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4364    then ac_cv_prog_fgrep='grep -F'
4365    else ac_cv_prog_fgrep='fgrep'
4366    fi
4367fi
4368echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4369echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4370 FGREP=$ac_cv_prog_fgrep
4371
4372
4373test -z "$GREP" && GREP=grep
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393# Check whether --with-gnu-ld or --without-gnu-ld was given.
4394if test "${with_gnu_ld+set}" = set; then
4395  withval="$with_gnu_ld"
4396  test "$withval" = no || with_gnu_ld=yes
4397else
4398  with_gnu_ld=no
4399fi;
4400ac_prog=ld
4401if test "$GCC" = yes; then
4402  # Check if gcc -print-prog-name=ld gives a path.
4403  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4404echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4405  case $host in
4406  *-*-mingw*)
4407    # gcc leaves a trailing carriage return which upsets mingw
4408    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4409  *)
4410    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4411  esac
4412  case $ac_prog in
4413    # Accept absolute paths.
4414    [\\/]* | ?:[\\/]*)
4415      re_direlt='/[^/][^/]*/\.\./'
4416      # Canonicalize the pathname of ld
4417      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4418      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4419	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4420      done
4421      test -z "$LD" && LD="$ac_prog"
4422      ;;
4423  "")
4424    # If it fails, then pretend we aren't using GCC.
4425    ac_prog=ld
4426    ;;
4427  *)
4428    # If it is relative, then search for the first ld in PATH.
4429    with_gnu_ld=unknown
4430    ;;
4431  esac
4432elif test "$with_gnu_ld" = yes; then
4433  echo "$as_me:$LINENO: checking for GNU ld" >&5
4434echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4435else
4436  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4437echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4438fi
4439if test "${lt_cv_path_LD+set}" = set; then
4440  echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442  if test -z "$LD"; then
4443  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4444  for ac_dir in $PATH; do
4445    IFS="$lt_save_ifs"
4446    test -z "$ac_dir" && ac_dir=.
4447    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4448      lt_cv_path_LD="$ac_dir/$ac_prog"
4449      # Check to see if the program is GNU ld.  I'd rather use --version,
4450      # but apparently some variants of GNU ld only accept -v.
4451      # Break only if it was the GNU/non-GNU ld that we prefer.
4452      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4453      *GNU* | *'with BFD'*)
4454	test "$with_gnu_ld" != no && break
4455	;;
4456      *)
4457	test "$with_gnu_ld" != yes && break
4458	;;
4459      esac
4460    fi
4461  done
4462  IFS="$lt_save_ifs"
4463else
4464  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4465fi
4466fi
4467
4468LD="$lt_cv_path_LD"
4469if test -n "$LD"; then
4470  echo "$as_me:$LINENO: result: $LD" >&5
4471echo "${ECHO_T}$LD" >&6
4472else
4473  echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
4475fi
4476test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4477echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4478   { (exit 1); exit 1; }; }
4479echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4480echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4481if test "${lt_cv_prog_gnu_ld+set}" = set; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4485case `$LD -v 2>&1 </dev/null` in
4486*GNU* | *'with BFD'*)
4487  lt_cv_prog_gnu_ld=yes
4488  ;;
4489*)
4490  lt_cv_prog_gnu_ld=no
4491  ;;
4492esac
4493fi
4494echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4495echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4496with_gnu_ld=$lt_cv_prog_gnu_ld
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4508echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4509if test "${lt_cv_path_NM+set}" = set; then
4510  echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512  if test -n "$NM"; then
4513  # Let the user override the test.
4514  lt_cv_path_NM="$NM"
4515else
4516  lt_nm_to_check="${ac_tool_prefix}nm"
4517  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4518    lt_nm_to_check="$lt_nm_to_check nm"
4519  fi
4520  for lt_tmp_nm in $lt_nm_to_check; do
4521    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4522    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4523      IFS="$lt_save_ifs"
4524      test -z "$ac_dir" && ac_dir=.
4525      tmp_nm="$ac_dir/$lt_tmp_nm"
4526      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4527	# Check to see if the nm accepts a BSD-compat flag.
4528	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4529	#   nm: unknown option "B" ignored
4530	# Tru64's nm complains that /dev/null is an invalid object file
4531	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4532	*/dev/null* | *'Invalid file or object type'*)
4533	  lt_cv_path_NM="$tmp_nm -B"
4534	  break
4535	  ;;
4536	*)
4537	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4538	  */dev/null*)
4539	    lt_cv_path_NM="$tmp_nm -p"
4540	    break
4541	    ;;
4542	  *)
4543	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4544	    continue # so that we can try to find one that supports BSD flags
4545	    ;;
4546	  esac
4547	  ;;
4548	esac
4549      fi
4550    done
4551    IFS="$lt_save_ifs"
4552  done
4553  : ${lt_cv_path_NM=no}
4554fi
4555fi
4556echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4557echo "${ECHO_T}$lt_cv_path_NM" >&6
4558if test "$lt_cv_path_NM" != "no"; then
4559  NM="$lt_cv_path_NM"
4560else
4561  # Didn't find any BSD compatible name lister, look for dumpbin.
4562  if test -n "$ac_tool_prefix"; then
4563  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4564  do
4565    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4567echo "$as_me:$LINENO: checking for $ac_word" >&5
4568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4570  echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572  if test -n "$DUMPBIN"; then
4573  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4574else
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578  IFS=$as_save_IFS
4579  test -z "$as_dir" && as_dir=.
4580  for ac_exec_ext in '' $ac_executable_extensions; do
4581  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584    break 2
4585  fi
4586done
4587done
4588
4589fi
4590fi
4591DUMPBIN=$ac_cv_prog_DUMPBIN
4592if test -n "$DUMPBIN"; then
4593  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4594echo "${ECHO_T}$DUMPBIN" >&6
4595else
4596  echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
4598fi
4599
4600    test -n "$DUMPBIN" && break
4601  done
4602fi
4603if test -z "$DUMPBIN"; then
4604  ac_ct_DUMPBIN=$DUMPBIN
4605  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4606do
4607  # Extract the first word of "$ac_prog", so it can be a program name with args.
4608set dummy $ac_prog; ac_word=$2
4609echo "$as_me:$LINENO: checking for $ac_word" >&5
4610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4612  echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614  if test -n "$ac_ct_DUMPBIN"; then
4615  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620  IFS=$as_save_IFS
4621  test -z "$as_dir" && as_dir=.
4622  for ac_exec_ext in '' $ac_executable_extensions; do
4623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626    break 2
4627  fi
4628done
4629done
4630
4631fi
4632fi
4633ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4634if test -n "$ac_ct_DUMPBIN"; then
4635  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4636echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4637else
4638  echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6
4640fi
4641
4642  test -n "$ac_ct_DUMPBIN" && break
4643done
4644test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4645
4646  DUMPBIN=$ac_ct_DUMPBIN
4647fi
4648
4649
4650  if test "$DUMPBIN" != ":"; then
4651    NM="$DUMPBIN"
4652  fi
4653fi
4654test -z "$NM" && NM=nm
4655
4656
4657
4658
4659
4660
4661echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4662echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4663if test "${lt_cv_nm_interface+set}" = set; then
4664  echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666  lt_cv_nm_interface="BSD nm"
4667  echo "int some_variable = 0;" > conftest.$ac_ext
4668  (eval echo "\"\$as_me:4668: $ac_compile\"" >&5)
4669  (eval "$ac_compile" 2>conftest.err)
4670  cat conftest.err >&5
4671  (eval echo "\"\$as_me:4671: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4672  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4673  cat conftest.err >&5
4674  (eval echo "\"\$as_me:4674: output\"" >&5)
4675  cat conftest.out >&5
4676  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4677    lt_cv_nm_interface="MS dumpbin"
4678  fi
4679  rm -f conftest*
4680fi
4681echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4682echo "${ECHO_T}$lt_cv_nm_interface" >&6
4683
4684echo "$as_me:$LINENO: checking whether ln -s works" >&5
4685echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4686LN_S=$as_ln_s
4687if test "$LN_S" = "ln -s"; then
4688  echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690else
4691  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4692echo "${ECHO_T}no, using $LN_S" >&6
4693fi
4694
4695# find the maximum length of command line arguments
4696echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4697echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4698if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701    i=0
4702  teststring="ABCD"
4703
4704  case $build_os in
4705  msdosdjgpp*)
4706    # On DJGPP, this test can blow up pretty badly due to problems in libc
4707    # (any single argument exceeding 2000 bytes causes a buffer overrun
4708    # during glob expansion).  Even if it were fixed, the result of this
4709    # check would be larger than it should be.
4710    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4711    ;;
4712
4713  gnu*)
4714    # Under GNU Hurd, this test is not required because there is
4715    # no limit to the length of command line arguments.
4716    # Libtool will interpret -1 as no limit whatsoever
4717    lt_cv_sys_max_cmd_len=-1;
4718    ;;
4719
4720  cygwin* | mingw*)
4721    # On Win9x/ME, this test blows up -- it succeeds, but takes
4722    # about 5 minutes as the teststring grows exponentially.
4723    # Worse, since 9x/ME are not pre-emptively multitasking,
4724    # you end up with a "frozen" computer, even though with patience
4725    # the test eventually succeeds (with a max line length of 256k).
4726    # Instead, let's just punt: use the minimum linelength reported by
4727    # all of the supported platforms: 8192 (on NT/2K/XP).
4728    lt_cv_sys_max_cmd_len=8192;
4729    ;;
4730
4731  amigaos*)
4732    # On AmigaOS with pdksh, this test takes hours, literally.
4733    # So we just punt and use a minimum line length of 8192.
4734    lt_cv_sys_max_cmd_len=8192;
4735    ;;
4736
4737  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4738    # This has been around since 386BSD, at least.  Likely further.
4739    if test -x /sbin/sysctl; then
4740      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4741    elif test -x /usr/sbin/sysctl; then
4742      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4743    else
4744      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4745    fi
4746    # And add a safety zone
4747    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4748    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4749    ;;
4750
4751  interix*)
4752    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4753    lt_cv_sys_max_cmd_len=196608
4754    ;;
4755
4756  osf*)
4757    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4758    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4759    # nice to cause kernel panics so lets avoid the loop below.
4760    # First set a reasonable default.
4761    lt_cv_sys_max_cmd_len=16384
4762    #
4763    if test -x /sbin/sysconfig; then
4764      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4765        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4766      esac
4767    fi
4768    ;;
4769  sco3.2v5*)
4770    lt_cv_sys_max_cmd_len=102400
4771    ;;
4772  sysv5* | sco5v6* | sysv4.2uw2*)
4773    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4774    if test -n "$kargmax"; then
4775      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4776    else
4777      lt_cv_sys_max_cmd_len=32768
4778    fi
4779    ;;
4780  *)
4781    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4782    if test -n $lt_cv_sys_max_cmd_len; then
4783      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4784      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4785    else
4786      # Make teststring a little bigger before we do anything with it.
4787      # a 1K string should be a reasonable start.
4788      for i in 1 2 3 4 5 6 7 8 ; do
4789        teststring=$teststring$teststring
4790      done
4791      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4792      # If test is not a shell built-in, we'll probably end up computing a
4793      # maximum length that is only half of the actual maximum length, but
4794      # we can't tell.
4795      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4796	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4797	      test $i != 17 # 1/2 MB should be enough
4798      do
4799        i=`expr $i + 1`
4800        teststring=$teststring$teststring
4801      done
4802      # Only check the string length outside the loop.
4803      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4804      teststring=
4805      # Add a significant safety factor because C++ compilers can tack on
4806      # massive amounts of additional arguments before passing them to the
4807      # linker.  It appears as though 1/2 is a usable value.
4808      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4809    fi
4810    ;;
4811  esac
4812
4813fi
4814
4815if test -n $lt_cv_sys_max_cmd_len ; then
4816  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4817echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4818else
4819  echo "$as_me:$LINENO: result: none" >&5
4820echo "${ECHO_T}none" >&6
4821fi
4822max_cmd_len=$lt_cv_sys_max_cmd_len
4823
4824
4825
4826
4827
4828
4829
4830: ${CP="cp -f"}
4831: ${MV="mv -f"}
4832: ${RM="rm -f"}
4833
4834echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4835echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4836# Try some XSI features
4837xsi_shell=no
4838( _lt_dummy="a/b/c"
4839  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4840      = c,a/b,, ) >/dev/null 2>&1 \
4841  && xsi_shell=yes
4842echo "$as_me:$LINENO: result: $xsi_shell" >&5
4843echo "${ECHO_T}$xsi_shell" >&6
4844
4845
4846echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4847echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4848lt_shell_append=no
4849( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4850    >/dev/null 2>&1 \
4851  && lt_shell_append=yes
4852echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4853echo "${ECHO_T}$lt_shell_append" >&6
4854
4855
4856if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4857  lt_unset=unset
4858else
4859  lt_unset=false
4860fi
4861
4862
4863
4864
4865
4866# test EBCDIC or ASCII
4867case `echo X|tr X '\101'` in
4868 A) # ASCII based system
4869    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4870  lt_SP2NL='tr \040 \012'
4871  lt_NL2SP='tr \015\012 \040\040'
4872  ;;
4873 *) # EBCDIC based system
4874  lt_SP2NL='tr \100 \n'
4875  lt_NL2SP='tr \r\n \100\100'
4876  ;;
4877esac
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4888echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4889if test "${lt_cv_ld_reload_flag+set}" = set; then
4890  echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892  lt_cv_ld_reload_flag='-r'
4893fi
4894echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4895echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4896reload_flag=$lt_cv_ld_reload_flag
4897case $reload_flag in
4898"" | " "*) ;;
4899*) reload_flag=" $reload_flag" ;;
4900esac
4901reload_cmds='$LD$reload_flag -o $output$reload_objs'
4902case $host_os in
4903  darwin*)
4904    if test "$GCC" = yes; then
4905      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4906    else
4907      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4908    fi
4909    ;;
4910esac
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4922echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4923if test "${lt_cv_deplibs_check_method+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  lt_cv_file_magic_cmd='$MAGIC_CMD'
4927lt_cv_file_magic_test_file=
4928lt_cv_deplibs_check_method='unknown'
4929# Need to set the preceding variable on all platforms that support
4930# interlibrary dependencies.
4931# 'none' -- dependencies not supported.
4932# `unknown' -- same as none, but documents that we really don't know.
4933# 'pass_all' -- all dependencies passed with no checks.
4934# 'test_compile' -- check by making test program.
4935# 'file_magic [[regex]]' -- check by looking for files in library path
4936# which responds to the $file_magic_cmd with a given extended regex.
4937# If you have `file' or equivalent on your system and you're not sure
4938# whether `pass_all' will *always* work, you probably want this one.
4939
4940case $host_os in
4941aix4* | aix5*)
4942  lt_cv_deplibs_check_method=pass_all
4943  ;;
4944
4945beos*)
4946  lt_cv_deplibs_check_method=pass_all
4947  ;;
4948
4949bsdi[45]*)
4950  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4951  lt_cv_file_magic_cmd='/usr/bin/file -L'
4952  lt_cv_file_magic_test_file=/shlib/libc.so
4953  ;;
4954
4955cygwin*)
4956  # func_win32_libid is a shell function defined in ltmain.sh
4957  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958  lt_cv_file_magic_cmd='func_win32_libid'
4959  ;;
4960
4961mingw* | pw32*)
4962  # Base MSYS/MinGW do not provide the 'file' command needed by
4963  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4964  # unless we find 'file', for example because we are cross-compiling.
4965  if ( file / ) >/dev/null 2>&1; then
4966    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4967    lt_cv_file_magic_cmd='func_win32_libid'
4968  else
4969    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4970    lt_cv_file_magic_cmd='$OBJDUMP -f'
4971  fi
4972  ;;
4973
4974darwin* | rhapsody*)
4975  lt_cv_deplibs_check_method=pass_all
4976  ;;
4977
4978freebsd* | dragonfly*)
4979  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4980    case $host_cpu in
4981    i*86 )
4982      # Not sure whether the presence of OpenBSD here was a mistake.
4983      # Let's accept both of them until this is cleared up.
4984      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4985      lt_cv_file_magic_cmd=/usr/bin/file
4986      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4987      ;;
4988    esac
4989  else
4990    lt_cv_deplibs_check_method=pass_all
4991  fi
4992  ;;
4993
4994gnu*)
4995  lt_cv_deplibs_check_method=pass_all
4996  ;;
4997
4998hpux10.20* | hpux11*)
4999  lt_cv_file_magic_cmd=/usr/bin/file
5000  case $host_cpu in
5001  ia64*)
5002    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5003    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5004    ;;
5005  hppa*64*)
5006    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]'
5007    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5008    ;;
5009  *)
5010    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5011    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5012    ;;
5013  esac
5014  ;;
5015
5016interix[3-9]*)
5017  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5018  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5019  ;;
5020
5021irix5* | irix6* | nonstopux*)
5022  case $LD in
5023  *-32|*"-32 ") libmagic=32-bit;;
5024  *-n32|*"-n32 ") libmagic=N32;;
5025  *-64|*"-64 ") libmagic=64-bit;;
5026  *) libmagic=never-match;;
5027  esac
5028  lt_cv_deplibs_check_method=pass_all
5029  ;;
5030
5031# This must be Linux ELF.
5032linux* | k*bsd*-gnu)
5033  lt_cv_deplibs_check_method=pass_all
5034  ;;
5035
5036netbsd*)
5037  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5038    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5039  else
5040    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5041  fi
5042  ;;
5043
5044newos6*)
5045  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5046  lt_cv_file_magic_cmd=/usr/bin/file
5047  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5048  ;;
5049
5050*nto* | *qnx*)
5051  lt_cv_deplibs_check_method=pass_all
5052  ;;
5053
5054openbsd*)
5055  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5056    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5057  else
5058    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5059  fi
5060  ;;
5061
5062osf3* | osf4* | osf5*)
5063  lt_cv_deplibs_check_method=pass_all
5064  ;;
5065
5066rdos*)
5067  lt_cv_deplibs_check_method=pass_all
5068  ;;
5069
5070solaris*)
5071  lt_cv_deplibs_check_method=pass_all
5072  ;;
5073
5074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5075  lt_cv_deplibs_check_method=pass_all
5076  ;;
5077
5078sysv4 | sysv4.3*)
5079  case $host_vendor in
5080  motorola)
5081    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]'
5082    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5083    ;;
5084  ncr)
5085    lt_cv_deplibs_check_method=pass_all
5086    ;;
5087  sequent)
5088    lt_cv_file_magic_cmd='/bin/file'
5089    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5090    ;;
5091  sni)
5092    lt_cv_file_magic_cmd='/bin/file'
5093    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5094    lt_cv_file_magic_test_file=/lib/libc.so
5095    ;;
5096  siemens)
5097    lt_cv_deplibs_check_method=pass_all
5098    ;;
5099  pc)
5100    lt_cv_deplibs_check_method=pass_all
5101    ;;
5102  esac
5103  ;;
5104
5105tpf*)
5106  lt_cv_deplibs_check_method=pass_all
5107  ;;
5108esac
5109
5110fi
5111echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5112echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5113file_magic_cmd=$lt_cv_file_magic_cmd
5114deplibs_check_method=$lt_cv_deplibs_check_method
5115test -z "$deplibs_check_method" && deplibs_check_method=unknown
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128if test -n "$ac_tool_prefix"; then
5129  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}ar; ac_word=$2
5131echo "$as_me:$LINENO: checking for $ac_word" >&5
5132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133if test "${ac_cv_prog_AR+set}" = set; then
5134  echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136  if test -n "$AR"; then
5137  ac_cv_prog_AR="$AR" # Let the user override the test.
5138else
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142  IFS=$as_save_IFS
5143  test -z "$as_dir" && as_dir=.
5144  for ac_exec_ext in '' $ac_executable_extensions; do
5145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146    ac_cv_prog_AR="${ac_tool_prefix}ar"
5147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148    break 2
5149  fi
5150done
5151done
5152
5153fi
5154fi
5155AR=$ac_cv_prog_AR
5156if test -n "$AR"; then
5157  echo "$as_me:$LINENO: result: $AR" >&5
5158echo "${ECHO_T}$AR" >&6
5159else
5160  echo "$as_me:$LINENO: result: no" >&5
5161echo "${ECHO_T}no" >&6
5162fi
5163
5164fi
5165if test -z "$ac_cv_prog_AR"; then
5166  ac_ct_AR=$AR
5167  # Extract the first word of "ar", so it can be a program name with args.
5168set dummy ar; ac_word=$2
5169echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5172  echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174  if test -n "$ac_ct_AR"; then
5175  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182  for ac_exec_ext in '' $ac_executable_extensions; do
5183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184    ac_cv_prog_ac_ct_AR="ar"
5185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189done
5190
5191  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5192fi
5193fi
5194ac_ct_AR=$ac_cv_prog_ac_ct_AR
5195if test -n "$ac_ct_AR"; then
5196  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5197echo "${ECHO_T}$ac_ct_AR" >&6
5198else
5199  echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201fi
5202
5203  AR=$ac_ct_AR
5204else
5205  AR="$ac_cv_prog_AR"
5206fi
5207
5208test -z "$AR" && AR=ar
5209test -z "$AR_FLAGS" && AR_FLAGS=cru
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221if test -n "$ac_tool_prefix"; then
5222  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5223set dummy ${ac_tool_prefix}strip; ac_word=$2
5224echo "$as_me:$LINENO: checking for $ac_word" >&5
5225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5226if test "${ac_cv_prog_STRIP+set}" = set; then
5227  echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229  if test -n "$STRIP"; then
5230  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235  IFS=$as_save_IFS
5236  test -z "$as_dir" && as_dir=.
5237  for ac_exec_ext in '' $ac_executable_extensions; do
5238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241    break 2
5242  fi
5243done
5244done
5245
5246fi
5247fi
5248STRIP=$ac_cv_prog_STRIP
5249if test -n "$STRIP"; then
5250  echo "$as_me:$LINENO: result: $STRIP" >&5
5251echo "${ECHO_T}$STRIP" >&6
5252else
5253  echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
5255fi
5256
5257fi
5258if test -z "$ac_cv_prog_STRIP"; then
5259  ac_ct_STRIP=$STRIP
5260  # Extract the first word of "strip", so it can be a program name with args.
5261set dummy strip; ac_word=$2
5262echo "$as_me:$LINENO: checking for $ac_word" >&5
5263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5264if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5265  echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
5267  if test -n "$ac_ct_STRIP"; then
5268  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273  IFS=$as_save_IFS
5274  test -z "$as_dir" && as_dir=.
5275  for ac_exec_ext in '' $ac_executable_extensions; do
5276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277    ac_cv_prog_ac_ct_STRIP="strip"
5278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279    break 2
5280  fi
5281done
5282done
5283
5284  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5285fi
5286fi
5287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5288if test -n "$ac_ct_STRIP"; then
5289  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5290echo "${ECHO_T}$ac_ct_STRIP" >&6
5291else
5292  echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294fi
5295
5296  STRIP=$ac_ct_STRIP
5297else
5298  STRIP="$ac_cv_prog_STRIP"
5299fi
5300
5301test -z "$STRIP" && STRIP=:
5302
5303
5304
5305
5306
5307
5308if test -n "$ac_tool_prefix"; then
5309  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5310set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5311echo "$as_me:$LINENO: checking for $ac_word" >&5
5312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313if test "${ac_cv_prog_RANLIB+set}" = set; then
5314  echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316  if test -n "$RANLIB"; then
5317  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322  IFS=$as_save_IFS
5323  test -z "$as_dir" && as_dir=.
5324  for ac_exec_ext in '' $ac_executable_extensions; do
5325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328    break 2
5329  fi
5330done
5331done
5332
5333fi
5334fi
5335RANLIB=$ac_cv_prog_RANLIB
5336if test -n "$RANLIB"; then
5337  echo "$as_me:$LINENO: result: $RANLIB" >&5
5338echo "${ECHO_T}$RANLIB" >&6
5339else
5340  echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342fi
5343
5344fi
5345if test -z "$ac_cv_prog_RANLIB"; then
5346  ac_ct_RANLIB=$RANLIB
5347  # Extract the first word of "ranlib", so it can be a program name with args.
5348set dummy ranlib; ac_word=$2
5349echo "$as_me:$LINENO: checking for $ac_word" >&5
5350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5352  echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354  if test -n "$ac_ct_RANLIB"; then
5355  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360  IFS=$as_save_IFS
5361  test -z "$as_dir" && as_dir=.
5362  for ac_exec_ext in '' $ac_executable_extensions; do
5363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364    ac_cv_prog_ac_ct_RANLIB="ranlib"
5365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366    break 2
5367  fi
5368done
5369done
5370
5371  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5372fi
5373fi
5374ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5375if test -n "$ac_ct_RANLIB"; then
5376  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5377echo "${ECHO_T}$ac_ct_RANLIB" >&6
5378else
5379  echo "$as_me:$LINENO: result: no" >&5
5380echo "${ECHO_T}no" >&6
5381fi
5382
5383  RANLIB=$ac_ct_RANLIB
5384else
5385  RANLIB="$ac_cv_prog_RANLIB"
5386fi
5387
5388test -z "$RANLIB" && RANLIB=:
5389
5390
5391
5392
5393
5394
5395# Determine commands to create old-style static archives.
5396old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5397old_postinstall_cmds='chmod 644 $oldlib'
5398old_postuninstall_cmds=
5399
5400if test -n "$RANLIB"; then
5401  case $host_os in
5402  openbsd*)
5403    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5404    ;;
5405  *)
5406    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5407    ;;
5408  esac
5409  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5410fi
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445# If no C compiler was specified, use CC.
5446LTCC=${LTCC-"$CC"}
5447
5448# If no C compiler flags were specified, use CFLAGS.
5449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5450
5451# Allow CC to be a program name with arguments.
5452compiler=$CC
5453
5454
5455# Check for command to grab the raw symbol name followed by C symbol from nm.
5456echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5457echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5458if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5459  echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461
5462# These are sane defaults that work on at least a few old systems.
5463# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5464
5465# Character class describing NM global symbol codes.
5466symcode='[BCDEGRST]'
5467
5468# Regexp to match symbols that can be accessed directly from C.
5469sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5470
5471# Define system-specific variables.
5472case $host_os in
5473aix*)
5474  symcode='[BCDT]'
5475  ;;
5476cygwin* | mingw* | pw32*)
5477  symcode='[ABCDGISTW]'
5478  ;;
5479hpux*)
5480  if test "$host_cpu" = ia64; then
5481    symcode='[ABCDEGRST]'
5482  fi
5483  ;;
5484irix* | nonstopux*)
5485  symcode='[BCDEGRST]'
5486  ;;
5487osf*)
5488  symcode='[BCDEGQRST]'
5489  ;;
5490solaris*)
5491  symcode='[BDRT]'
5492  ;;
5493sco3.2v5*)
5494  symcode='[DT]'
5495  ;;
5496sysv4.2uw2*)
5497  symcode='[DT]'
5498  ;;
5499sysv5* | sco5v6* | unixware* | OpenUNIX*)
5500  symcode='[ABDT]'
5501  ;;
5502sysv4)
5503  symcode='[DFNSTU]'
5504  ;;
5505esac
5506
5507# If we're using GNU nm, then use its standard symbol codes.
5508case `$NM -V 2>&1` in
5509*GNU* | *'with BFD'*)
5510  symcode='[ABCDGIRSTW]' ;;
5511esac
5512
5513# Transform an extracted symbol line into a proper C declaration.
5514# Some systems (esp. on ia64) link data and code symbols differently,
5515# so use this general approach.
5516lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5517
5518# Transform an extracted symbol line into symbol name and symbol address
5519lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5520
5521# Handle CRLF in mingw tool chain
5522opt_cr=
5523case $build_os in
5524mingw*)
5525  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5526  ;;
5527esac
5528
5529# Try without a prefix underscore, then with it.
5530for ac_symprfx in "" "_"; do
5531
5532  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5533  symxfrm="\\1 $ac_symprfx\\2 \\2"
5534
5535  # Write the raw and C identifiers.
5536  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5537    # Fake it for dumpbin and say T for any non-static function
5538    # and D for any global variable.
5539    # Also find C++ and __fastcall symbols from MSVC++,
5540    # which start with @ or ?.
5541    lt_cv_sys_global_symbol_pipe="$AWK '"\
5542"     {last_section=section; section=\$ 3};"\
5543"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5544"     \$ 0!~/External *\|/{next};"\
5545"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5546"     {if(hide[section]) next};"\
5547"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5548"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5549"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5550"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5551"     ' prfx=^$ac_symprfx"
5552  else
5553    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5554  fi
5555
5556  # Check to see that the pipe works correctly.
5557  pipe_works=no
5558
5559  rm -f conftest*
5560  cat > conftest.$ac_ext <<_LT_EOF
5561#ifdef __cplusplus
5562extern "C" {
5563#endif
5564char nm_test_var;
5565void nm_test_func(void);
5566void nm_test_func(void){}
5567#ifdef __cplusplus
5568}
5569#endif
5570int main(){nm_test_var='a';nm_test_func();return(0);}
5571_LT_EOF
5572
5573  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574  (eval $ac_compile) 2>&5
5575  ac_status=$?
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); }; then
5578    # Now try to grab the symbols.
5579    nlist=conftest.nm
5580    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5581  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5582  ac_status=$?
5583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584  (exit $ac_status); } && test -s "$nlist"; then
5585      # Try sorting and uniquifying the output.
5586      if sort "$nlist" | uniq > "$nlist"T; then
5587	mv -f "$nlist"T "$nlist"
5588      else
5589	rm -f "$nlist"T
5590      fi
5591
5592      # Make sure that we snagged all the symbols we need.
5593      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5594	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5595	  cat <<_LT_EOF > conftest.$ac_ext
5596#ifdef __cplusplus
5597extern "C" {
5598#endif
5599
5600_LT_EOF
5601	  # Now generate the symbol file.
5602	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5603
5604	  cat <<_LT_EOF >> conftest.$ac_ext
5605
5606/* The mapping between symbol names and symbols.  */
5607const struct {
5608  const char *name;
5609  void       *address;
5610}
5611lt__PROGRAM__LTX_preloaded_symbols[] =
5612{
5613  { "@PROGRAM@", (void *) 0 },
5614_LT_EOF
5615	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5616	  cat <<\_LT_EOF >> conftest.$ac_ext
5617  {0, (void *) 0}
5618};
5619
5620/* This works around a problem in FreeBSD linker */
5621#ifdef FREEBSD_WORKAROUND
5622static const void *lt_preloaded_setup() {
5623  return lt__PROGRAM__LTX_preloaded_symbols;
5624}
5625#endif
5626
5627#ifdef __cplusplus
5628}
5629#endif
5630_LT_EOF
5631	  # Now try linking the two files.
5632	  mv conftest.$ac_objext conftstm.$ac_objext
5633	  lt_save_LIBS="$LIBS"
5634	  lt_save_CFLAGS="$CFLAGS"
5635	  LIBS="conftstm.$ac_objext"
5636	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5637	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638  (eval $ac_link) 2>&5
5639  ac_status=$?
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5642	    pipe_works=yes
5643	  fi
5644	  LIBS="$lt_save_LIBS"
5645	  CFLAGS="$lt_save_CFLAGS"
5646	else
5647	  echo "cannot find nm_test_func in $nlist" >&5
5648	fi
5649      else
5650	echo "cannot find nm_test_var in $nlist" >&5
5651      fi
5652    else
5653      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5654    fi
5655  else
5656    echo "$progname: failed program was:" >&5
5657    cat conftest.$ac_ext >&5
5658  fi
5659  rm -f conftest* conftst*
5660
5661  # Do not use the global_symbol_pipe unless it works.
5662  if test "$pipe_works" = yes; then
5663    break
5664  else
5665    lt_cv_sys_global_symbol_pipe=
5666  fi
5667done
5668
5669fi
5670
5671if test -z "$lt_cv_sys_global_symbol_pipe"; then
5672  lt_cv_sys_global_symbol_to_cdecl=
5673fi
5674if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5675  echo "$as_me:$LINENO: result: failed" >&5
5676echo "${ECHO_T}failed" >&6
5677else
5678  echo "$as_me:$LINENO: result: ok" >&5
5679echo "${ECHO_T}ok" >&6
5680fi
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5699if test "${enable_libtool_lock+set}" = set; then
5700  enableval="$enable_libtool_lock"
5701
5702fi;
5703test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5704
5705# Some flags need to be propagated to the compiler or linker for good
5706# libtool support.
5707case $host in
5708ia64-*-hpux*)
5709  # Find out which ABI we are using.
5710  echo 'int i;' > conftest.$ac_ext
5711  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712  (eval $ac_compile) 2>&5
5713  ac_status=$?
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); }; then
5716    case `/usr/bin/file conftest.$ac_objext` in
5717      *ELF-32*)
5718	HPUX_IA64_MODE="32"
5719	;;
5720      *ELF-64*)
5721	HPUX_IA64_MODE="64"
5722	;;
5723    esac
5724  fi
5725  rm -rf conftest*
5726  ;;
5727*-*-irix6*)
5728  # Find out which ABI we are using.
5729  echo '#line 5729 "configure"' > conftest.$ac_ext
5730  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731  (eval $ac_compile) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }; then
5735    if test "$lt_cv_prog_gnu_ld" = yes; then
5736      case `/usr/bin/file conftest.$ac_objext` in
5737	*32-bit*)
5738	  LD="${LD-ld} -melf32bsmip"
5739	  ;;
5740	*N32*)
5741	  LD="${LD-ld} -melf32bmipn32"
5742	  ;;
5743	*64-bit*)
5744	  LD="${LD-ld} -melf64bmip"
5745	;;
5746      esac
5747    else
5748      case `/usr/bin/file conftest.$ac_objext` in
5749	*32-bit*)
5750	  LD="${LD-ld} -32"
5751	  ;;
5752	*N32*)
5753	  LD="${LD-ld} -n32"
5754	  ;;
5755	*64-bit*)
5756	  LD="${LD-ld} -64"
5757	  ;;
5758      esac
5759    fi
5760  fi
5761  rm -rf conftest*
5762  ;;
5763
5764x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5765s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5766  # Find out which ABI we are using.
5767  echo 'int i;' > conftest.$ac_ext
5768  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769  (eval $ac_compile) 2>&5
5770  ac_status=$?
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); }; then
5773    case `/usr/bin/file conftest.o` in
5774      *32-bit*)
5775	case $host in
5776	  x86_64-*kfreebsd*-gnu)
5777	    LD="${LD-ld} -m elf_i386_fbsd"
5778	    ;;
5779	  x86_64-*linux*)
5780	    LD="${LD-ld} -m elf_i386"
5781	    ;;
5782	  ppc64-*linux*|powerpc64-*linux*)
5783	    LD="${LD-ld} -m elf32ppclinux"
5784	    ;;
5785	  s390x-*linux*)
5786	    LD="${LD-ld} -m elf_s390"
5787	    ;;
5788	  sparc64-*linux*)
5789	    LD="${LD-ld} -m elf32_sparc"
5790	    ;;
5791	esac
5792	;;
5793      *64-bit*)
5794	case $host in
5795	  x86_64-*kfreebsd*-gnu)
5796	    LD="${LD-ld} -m elf_x86_64_fbsd"
5797	    ;;
5798	  x86_64-*linux*)
5799	    LD="${LD-ld} -m elf_x86_64"
5800	    ;;
5801	  ppc*-*linux*|powerpc*-*linux*)
5802	    LD="${LD-ld} -m elf64ppc"
5803	    ;;
5804	  s390*-*linux*|s390*-*tpf*)
5805	    LD="${LD-ld} -m elf64_s390"
5806	    ;;
5807	  sparc*-*linux*)
5808	    LD="${LD-ld} -m elf64_sparc"
5809	    ;;
5810	esac
5811	;;
5812    esac
5813  fi
5814  rm -rf conftest*
5815  ;;
5816
5817*-*-sco3.2v5*)
5818  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5819  SAVE_CFLAGS="$CFLAGS"
5820  CFLAGS="$CFLAGS -belf"
5821  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5822echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5823if test "${lt_cv_cc_needs_belf+set}" = set; then
5824  echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826  ac_ext=c
5827ac_cpp='$CPP $CPPFLAGS'
5828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830ac_compiler_gnu=$ac_cv_c_compiler_gnu
5831
5832     cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h.  */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h.  */
5838
5839int
5840main ()
5841{
5842
5843  ;
5844  return 0;
5845}
5846_ACEOF
5847rm -f conftest.$ac_objext conftest$ac_exeext
5848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849  (eval $ac_link) 2>conftest.er1
5850  ac_status=$?
5851  grep -v '^ *+' conftest.er1 >conftest.err
5852  rm -f conftest.er1
5853  cat conftest.err >&5
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); } &&
5856	 { ac_try='test -z "$ac_c_werror_flag"
5857			 || test ! -s conftest.err'
5858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859  (eval $ac_try) 2>&5
5860  ac_status=$?
5861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862  (exit $ac_status); }; } &&
5863	 { ac_try='test -s conftest$ac_exeext'
5864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865  (eval $ac_try) 2>&5
5866  ac_status=$?
5867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); }; }; then
5869  lt_cv_cc_needs_belf=yes
5870else
5871  echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874lt_cv_cc_needs_belf=no
5875fi
5876rm -f conftest.err conftest.$ac_objext \
5877      conftest$ac_exeext conftest.$ac_ext
5878     ac_ext=c
5879ac_cpp='$CPP $CPPFLAGS'
5880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883
5884fi
5885echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5886echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5887  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5888    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5889    CFLAGS="$SAVE_CFLAGS"
5890  fi
5891  ;;
5892sparc*-*solaris*)
5893  # Find out which ABI we are using.
5894  echo 'int i;' > conftest.$ac_ext
5895  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896  (eval $ac_compile) 2>&5
5897  ac_status=$?
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); }; then
5900    case `/usr/bin/file conftest.o` in
5901    *64-bit*)
5902      case $lt_cv_prog_gnu_ld in
5903      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5904      *)    LD="${LD-ld} -64" ;;
5905      esac
5906      ;;
5907    esac
5908  fi
5909  rm -rf conftest*
5910  ;;
5911esac
5912
5913need_locks="$enable_libtool_lock"
5914
5915ac_ext=c
5916ac_cpp='$CPP $CPPFLAGS'
5917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919ac_compiler_gnu=$ac_cv_c_compiler_gnu
5920echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5921echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5922# On Suns, sometimes $CPP names a directory.
5923if test -n "$CPP" && test -d "$CPP"; then
5924  CPP=
5925fi
5926if test -z "$CPP"; then
5927  if test "${ac_cv_prog_CPP+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930      # Double quotes because CPP needs to be expanded
5931    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5932    do
5933      ac_preproc_ok=false
5934for ac_c_preproc_warn_flag in '' yes
5935do
5936  # Use a header file that comes with gcc, so configuring glibc
5937  # with a fresh cross-compiler works.
5938  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939  # <limits.h> exists even on freestanding compilers.
5940  # On the NeXT, cc -E runs the code through the compiler's parser,
5941  # not just through cpp. "Syntax error" is here to catch this case.
5942  cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h.  */
5944_ACEOF