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