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$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${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 <<EOF
274$*
275EOF
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 "$ECHO"; then
284if 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       echo_test_string="`eval $cmd`" &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="src/msgfmt.c"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_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 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 localedir docdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE YACC GCJ GCJFLAGS HAVE_GCJ BUILDJAVAEXE CPP EGREP HAVE_GCJ_IN_PATH HAVE_JAVAC_IN_PATH HAVE_JIKES_IN_PATH JAVAC CLASSPATH CLASSPATH_SEPARATOR HAVE_GCJ_C HAVE_JAVAC HAVE_JIKES JAR BUILDJAVA HAVE_GIJ_IN_PATH HAVE_JAVA_IN_PATH HAVE_JRE_IN_PATH HAVE_JVIEW_IN_PATH JAVA HAVE_GIJ HAVE_JAVA HAVE_JRE HAVE_JVIEW TESTJAVA CSHARP_CHOICE HAVE_CSCC_IN_PATH HAVE_MCS_IN_PATH HAVE_CSC_IN_PATH HAVE_CSCC HAVE_MCS HAVE_CSC BUILDCSHARP HAVE_ILRUN_IN_PATH HAVE_MONO_IN_PATH MONO_PATH MONO_PATH_SEPARATOR HAVE_ILRUN HAVE_MONO TESTCSHARP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RELOCATABLE LIBOBJS SET_RELOCATABLE RELOCATABLE_VIA_LD_TRUE RELOCATABLE_VIA_LD_FALSE STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H FNMATCH_H GETOPT_H LIBGREPOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBEXPAT LTLIBEXPAT HAVE_LIBEXPAT EMACS EMACSLOADPATH lispdir aclocaldir DVIPS TEXI2PDF PERL CROSS_COMPILING LOCALE_FR LOCALE_FR_UTF8 TESTLIBASPRINTF LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825	      localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865	 X"$0" : 'X\(//\)[^/]' \| \
866	 X"$0" : 'X\(//\)$' \| \
867	 X"$0" : 'X\(/\)' \| \
868	 .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872  	  /^X\(\/\/\)$/{ s//\1/; q; }
873  	  /^X\(\/\).*/{ s//\1/; q; }
874  	  s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r $srcdir/$ac_unique_file; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_GCJ_set=${GCJ+set}
924ac_env_GCJ_value=$GCJ
925ac_cv_env_GCJ_set=${GCJ+set}
926ac_cv_env_GCJ_value=$GCJ
927ac_env_GCJFLAGS_set=${GCJFLAGS+set}
928ac_env_GCJFLAGS_value=$GCJFLAGS
929ac_cv_env_GCJFLAGS_set=${GCJFLAGS+set}
930ac_cv_env_GCJFLAGS_value=$GCJFLAGS
931ac_env_CPP_set=${CPP+set}
932ac_env_CPP_value=$CPP
933ac_cv_env_CPP_set=${CPP+set}
934ac_cv_env_CPP_value=$CPP
935ac_env_CXX_set=${CXX+set}
936ac_env_CXX_value=$CXX
937ac_cv_env_CXX_set=${CXX+set}
938ac_cv_env_CXX_value=$CXX
939ac_env_CXXFLAGS_set=${CXXFLAGS+set}
940ac_env_CXXFLAGS_value=$CXXFLAGS
941ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
942ac_cv_env_CXXFLAGS_value=$CXXFLAGS
943ac_env_CXXCPP_set=${CXXCPP+set}
944ac_env_CXXCPP_value=$CXXCPP
945ac_cv_env_CXXCPP_set=${CXXCPP+set}
946ac_cv_env_CXXCPP_value=$CXXCPP
947ac_env_F77_set=${F77+set}
948ac_env_F77_value=$F77
949ac_cv_env_F77_set=${F77+set}
950ac_cv_env_F77_value=$F77
951ac_env_FFLAGS_set=${FFLAGS+set}
952ac_env_FFLAGS_value=$FFLAGS
953ac_cv_env_FFLAGS_set=${FFLAGS+set}
954ac_cv_env_FFLAGS_value=$FFLAGS
955ac_env_EMACS_set=${EMACS+set}
956ac_env_EMACS_value=$EMACS
957ac_cv_env_EMACS_set=${EMACS+set}
958ac_cv_env_EMACS_value=$EMACS
959ac_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
960ac_env_EMACSLOADPATH_value=$EMACSLOADPATH
961ac_cv_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
962ac_cv_env_EMACSLOADPATH_value=$EMACSLOADPATH
963
964#
965# Report the --help message.
966#
967if test "$ac_init_help" = "long"; then
968  # Omit some internal or obsolete options to make the list less imposing.
969  # This message is too long to be a string in the A/UX 3.1 sh.
970  cat <<_ACEOF
971\`configure' configures this package to adapt to many kinds of systems.
972
973Usage: $0 [OPTION]... [VAR=VALUE]...
974
975To assign environment variables (e.g., CC, CFLAGS...), specify them as
976VAR=VALUE.  See below for descriptions of some of the useful variables.
977
978Defaults for the options are specified in brackets.
979
980Configuration:
981  -h, --help              display this help and exit
982      --help=short        display options specific to this package
983      --help=recursive    display the short help of all the included packages
984  -V, --version           display version information and exit
985  -q, --quiet, --silent   do not print \`checking...' messages
986      --cache-file=FILE   cache test results in FILE [disabled]
987  -C, --config-cache      alias for \`--cache-file=config.cache'
988  -n, --no-create         do not create output files
989      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
990
991_ACEOF
992
993  cat <<_ACEOF
994Installation directories:
995  --prefix=PREFIX         install architecture-independent files in PREFIX
996			  [$ac_default_prefix]
997  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
998			  [PREFIX]
999
1000By default, \`make install' will install all the files in
1001\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1002an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1003for instance \`--prefix=\$HOME'.
1004
1005For better control, use the options below.
1006
1007Fine tuning of the installation directories:
1008  --bindir=DIR           user executables [EPREFIX/bin]
1009  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1010  --libexecdir=DIR       program executables [EPREFIX/libexec]
1011  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1012  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1013  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1014  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1015  --libdir=DIR           object code libraries [EPREFIX/lib]
1016  --includedir=DIR       C header files [PREFIX/include]
1017  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1018  --infodir=DIR          info documentation [PREFIX/info]
1019  --mandir=DIR           man documentation [PREFIX/man]
1020_ACEOF
1021
1022  cat <<\_ACEOF
1023
1024Program names:
1025  --program-prefix=PREFIX            prepend PREFIX to installed program names
1026  --program-suffix=SUFFIX            append SUFFIX to installed program names
1027  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1028
1029System types:
1030  --build=BUILD     configure for building on BUILD [guessed]
1031  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1032_ACEOF
1033fi
1034
1035if test -n "$ac_init_help"; then
1036
1037  cat <<\_ACEOF
1038
1039Optional Features:
1040  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1041  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1042  --disable-dependency-tracking  speeds up one-time build
1043  --enable-dependency-tracking   do not reject slow dependency extractors
1044  --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
1045  --enable-shared[=PKGS]
1046                          build shared libraries [default=yes]
1047  --enable-static[=PKGS]
1048                          build static libraries [default=yes]
1049  --enable-fast-install[=PKGS]
1050                          optimize for fast installation [default=yes]
1051  --disable-libtool-lock  avoid locking (might break parallel builds)
1052  --enable-relocatable    install a package that can be moved in the filesystem
1053  --disable-nls           do not use Native Language Support
1054  --disable-rpath         do not hardcode runtime library paths
1055
1056Optional Packages:
1057  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1058  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1059  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1060  --with-pic              try to use only PIC/non-PIC objects [default=use
1061                          both]
1062  --with-tags[=TAGS]
1063                          include additional configurations [automatic]
1064  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1065  --without-included-regex don't compile regex; this is the default on
1066                          systems with version 2 of the GNU C library
1067                          (use with caution on other system)
1068  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1069  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1070  --with-included-gettext use the GNU gettext library included here
1071  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1072  --without-libintl-prefix     don't search for libintl in includedir and libdir
1073  --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1074  --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1075  --with-lispdir          override the default lisp directory
1076
1077Some influential environment variables:
1078  CC          C compiler command
1079  CFLAGS      C compiler flags
1080  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1081              nonstandard directory <lib dir>
1082  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1083              headers in a nonstandard directory <include dir>
1084  GCJ         Java native code compiler command
1085  GCJFLAGS    Java native code compiler flags
1086  CPP         C preprocessor
1087  CXX         C++ compiler command
1088  CXXFLAGS    C++ compiler flags
1089  CXXCPP      C++ preprocessor
1090  F77         Fortran 77 compiler command
1091  FFLAGS      Fortran 77 compiler flags
1092  EMACS       the Emacs editor command
1093  EMACSLOADPATH
1094              the Emacs library search path
1095
1096Use these variables to override the choices made by `configure' or to help
1097it to find libraries and programs with nonstandard names/locations.
1098
1099_ACEOF
1100fi
1101
1102if test "$ac_init_help" = "recursive"; then
1103  # If there are subdirs, report their specific --help.
1104  ac_popdir=`pwd`
1105  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106    test -d $ac_dir || continue
1107    ac_builddir=.
1108
1109if test "$ac_dir" != .; then
1110  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111  # A "../" for each directory in $ac_dir_suffix.
1112  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113else
1114  ac_dir_suffix= ac_top_builddir=
1115fi
1116
1117case $srcdir in
1118  .)  # No --srcdir option.  We are building in place.
1119    ac_srcdir=.
1120    if test -z "$ac_top_builddir"; then
1121       ac_top_srcdir=.
1122    else
1123       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124    fi ;;
1125  [\\/]* | ?:[\\/]* )  # Absolute path.
1126    ac_srcdir=$srcdir$ac_dir_suffix;
1127    ac_top_srcdir=$srcdir ;;
1128  *) # Relative path.
1129    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131esac
1132
1133# Do not use `cd foo && pwd` to compute absolute paths, because
1134# the directories may not exist.
1135case `pwd` in
1136.) ac_abs_builddir="$ac_dir";;
1137*)
1138  case "$ac_dir" in
1139  .) ac_abs_builddir=`pwd`;;
1140  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142  esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_builddir=${ac_top_builddir}.;;
1146*)
1147  case ${ac_top_builddir}. in
1148  .) ac_abs_top_builddir=$ac_abs_builddir;;
1149  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151  esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_srcdir=$ac_srcdir;;
1155*)
1156  case $ac_srcdir in
1157  .) ac_abs_srcdir=$ac_abs_builddir;;
1158  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160  esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_top_srcdir=$ac_top_srcdir;;
1164*)
1165  case $ac_top_srcdir in
1166  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169  esac;;
1170esac
1171
1172    cd $ac_dir
1173    # Check for guested configure; otherwise get Cygnus style configure.
1174    if test -f $ac_srcdir/configure.gnu; then
1175      echo
1176      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1177    elif test -f $ac_srcdir/configure; then
1178      echo
1179      $SHELL $ac_srcdir/configure  --help=recursive
1180    elif test -f $ac_srcdir/configure.ac ||
1181	   test -f $ac_srcdir/configure.in; then
1182      echo
1183      $ac_configure --help
1184    else
1185      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186    fi
1187    cd $ac_popdir
1188  done
1189fi
1190
1191test -n "$ac_init_help" && exit 0
1192if $ac_init_version; then
1193  cat <<\_ACEOF
1194
1195Copyright (C) 2003 Free Software Foundation, Inc.
1196This configure script is free software; the Free Software Foundation
1197gives unlimited permission to copy, distribute and modify it.
1198_ACEOF
1199  exit 0
1200fi
1201exec 5>config.log
1202cat >&5 <<_ACEOF
1203This file contains any messages produced by compilers while
1204running configure, to aid debugging if configure makes a mistake.
1205
1206It was created by $as_me, which was
1207generated by GNU Autoconf 2.59.  Invocation command line was
1208
1209  $ $0 $@
1210
1211_ACEOF
1212{
1213cat <<_ASUNAME
1214## --------- ##
1215## Platform. ##
1216## --------- ##
1217
1218hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1219uname -m = `(uname -m) 2>/dev/null || echo unknown`
1220uname -r = `(uname -r) 2>/dev/null || echo unknown`
1221uname -s = `(uname -s) 2>/dev/null || echo unknown`
1222uname -v = `(uname -v) 2>/dev/null || echo unknown`
1223
1224/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1225/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1226
1227/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1228/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1229/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1230hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1231/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1232/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1233/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1234
1235_ASUNAME
1236
1237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1238for as_dir in $PATH
1239do
1240  IFS=$as_save_IFS
1241  test -z "$as_dir" && as_dir=.
1242  echo "PATH: $as_dir"
1243done
1244
1245} >&5
1246
1247cat >&5 <<_ACEOF
1248
1249
1250## ----------- ##
1251## Core tests. ##
1252## ----------- ##
1253
1254_ACEOF
1255
1256
1257# Keep a trace of the command line.
1258# Strip out --no-create and --no-recursion so they do not pile up.
1259# Strip out --silent because we don't want to record it for future runs.
1260# Also quote any args containing shell meta-characters.
1261# Make two passes to allow for proper duplicate-argument suppression.
1262ac_configure_args=
1263ac_configure_args0=
1264ac_configure_args1=
1265ac_sep=
1266ac_must_keep_next=false
1267for ac_pass in 1 2
1268do
1269  for ac_arg
1270  do
1271    case $ac_arg in
1272    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1273    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274    | -silent | --silent | --silen | --sile | --sil)
1275      continue ;;
1276    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1278    esac
1279    case $ac_pass in
1280    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1281    2)
1282      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1283      if test $ac_must_keep_next = true; then
1284	ac_must_keep_next=false # Got value, back to normal.
1285      else
1286	case $ac_arg in
1287	  *=* | --config-cache | -C | -disable-* | --disable-* \
1288	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1289	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1290	  | -with-* | --with-* | -without-* | --without-* | --x)
1291	    case "$ac_configure_args0 " in
1292	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1293	    esac
1294	    ;;
1295	  -* ) ac_must_keep_next=true ;;
1296	esac
1297      fi
1298      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1299      # Get rid of the leading space.
1300      ac_sep=" "
1301      ;;
1302    esac
1303  done
1304done
1305$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1306$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1307
1308# When interrupted or exit'd, cleanup temporary files, and complete
1309# config.log.  We remove comments because anyway the quotes in there
1310# would cause problems or look ugly.
1311# WARNING: Be sure not to use single quotes in there, as some shells,
1312# such as our DU 5.0 friend, will then `close' the trap.
1313trap 'exit_status=$?
1314  # Save into config.log some information that might help in debugging.
1315  {
1316    echo
1317
1318    cat <<\_ASBOX
1319## ---------------- ##
1320## Cache variables. ##
1321## ---------------- ##
1322_ASBOX
1323    echo
1324    # The following way of writing the cache mishandles newlines in values,
1325{
1326  (set) 2>&1 |
1327    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1328    *ac_space=\ *)
1329      sed -n \
1330	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1331	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1332      ;;
1333    *)
1334      sed -n \
1335	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1336      ;;
1337    esac;
1338}
1339    echo
1340
1341    cat <<\_ASBOX
1342## ----------------- ##
1343## Output variables. ##
1344## ----------------- ##
1345_ASBOX
1346    echo
1347    for ac_var in $ac_subst_vars
1348    do
1349      eval ac_val=$`echo $ac_var`
1350      echo "$ac_var='"'"'$ac_val'"'"'"
1351    done | sort
1352    echo
1353
1354    if test -n "$ac_subst_files"; then
1355      cat <<\_ASBOX
1356## ------------- ##
1357## Output files. ##
1358## ------------- ##
1359_ASBOX
1360      echo
1361      for ac_var in $ac_subst_files
1362      do
1363	eval ac_val=$`echo $ac_var`
1364	echo "$ac_var='"'"'$ac_val'"'"'"
1365      done | sort
1366      echo
1367    fi
1368
1369    if test -s confdefs.h; then
1370      cat <<\_ASBOX
1371## ----------- ##
1372## confdefs.h. ##
1373## ----------- ##
1374_ASBOX
1375      echo
1376      sed "/^$/d" confdefs.h | sort
1377      echo
1378    fi
1379    test "$ac_signal" != 0 &&
1380      echo "$as_me: caught signal $ac_signal"
1381    echo "$as_me: exit $exit_status"
1382  } >&5
1383  rm -f core *.core &&
1384  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1385    exit $exit_status
1386     ' 0
1387for ac_signal in 1 2 13 15; do
1388  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1389done
1390ac_signal=0
1391
1392# confdefs.h avoids OS command line length limits that DEFS can exceed.
1393rm -rf conftest* confdefs.h
1394# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1395echo >confdefs.h
1396
1397# Predefined preprocessor variables.
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_NAME "$PACKAGE_NAME"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_VERSION "$PACKAGE_VERSION"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_STRING "$PACKAGE_STRING"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1421_ACEOF
1422
1423
1424# Let the site file select an alternate cache file if it wants to.
1425# Prefer explicitly selected file to automatically selected ones.
1426if test -z "$CONFIG_SITE"; then
1427  if test "x$prefix" != xNONE; then
1428    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1429  else
1430    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1431  fi
1432fi
1433for ac_site_file in $CONFIG_SITE; do
1434  if test -r "$ac_site_file"; then
1435    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1436echo "$as_me: loading site script $ac_site_file" >&6;}
1437    sed 's/^/| /' "$ac_site_file" >&5
1438    . "$ac_site_file"
1439  fi
1440done
1441
1442if test -r "$cache_file"; then
1443  # Some versions of bash will fail to source /dev/null (special
1444  # files actually), so we avoid doing that.
1445  if test -f "$cache_file"; then
1446    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1447echo "$as_me: loading cache $cache_file" >&6;}
1448    case $cache_file in
1449      [\\/]* | ?:[\\/]* ) . $cache_file;;
1450      *)                      . ./$cache_file;;
1451    esac
1452  fi
1453else
1454  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1455echo "$as_me: creating cache $cache_file" >&6;}
1456  >$cache_file
1457fi
1458
1459# Check that the precious variables saved in the cache have kept the same
1460# value.
1461ac_cache_corrupted=false
1462for ac_var in `(set) 2>&1 |
1463	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465  eval ac_new_set=\$ac_env_${ac_var}_set
1466  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467  eval ac_new_val="\$ac_env_${ac_var}_value"
1468  case $ac_old_set,$ac_new_set in
1469    set,)
1470      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472      ac_cache_corrupted=: ;;
1473    ,set)
1474      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476      ac_cache_corrupted=: ;;
1477    ,);;
1478    *)
1479      if test "x$ac_old_val" != "x$ac_new_val"; then
1480	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1483echo "$as_me:   former value:  $ac_old_val" >&2;}
1484	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1485echo "$as_me:   current value: $ac_new_val" >&2;}
1486	ac_cache_corrupted=:
1487      fi;;
1488  esac
1489  # Pass precious variables to config.status.
1490  if test "$ac_new_set" = set; then
1491    case $ac_new_val in
1492    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494    *) ac_arg=$ac_var=$ac_new_val ;;
1495    esac
1496    case " $ac_configure_args " in
1497      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1498      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499    esac
1500  fi
1501done
1502if $ac_cache_corrupted; then
1503  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507   { (exit 1); exit 1; }; }
1508fi
1509
1510ac_ext=c
1511ac_cpp='$CPP $CPPFLAGS'
1512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535ac_aux_dir=
1536for ac_dir in ../build-aux $srcdir/../build-aux; do
1537  if test -f $ac_dir/install-sh; then
1538    ac_aux_dir=$ac_dir
1539    ac_install_sh="$ac_aux_dir/install-sh -c"
1540    break
1541  elif test -f $ac_dir/install.sh; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/install.sh -c"
1544    break
1545  elif test -f $ac_dir/shtool; then
1546    ac_aux_dir=$ac_dir
1547    ac_install_sh="$ac_aux_dir/shtool install -c"
1548    break
1549  fi
1550done
1551if test -z "$ac_aux_dir"; then
1552  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux $srcdir/../build-aux" >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux $srcdir/../build-aux" >&2;}
1554   { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560. $srcdir/../version.sh
1561am__api_version="1.9"
1562# Find a good install program.  We prefer a C program (faster),
1563# so one script is as good as another.  But avoid the broken or
1564# incompatible versions:
1565# SysV /etc/install, /usr/sbin/install
1566# SunOS /usr/etc/install
1567# IRIX /sbin/install
1568# AIX /bin/install
1569# AmigaOS /C/install, which installs bootblocks on floppy discs
1570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1573# OS/2's system install, which has a completely different semantic
1574# ./install, which can be erroneously created by make from ./install.sh.
1575echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1576echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1577if test -z "$INSTALL"; then
1578if test "${ac_cv_path_install+set}" = set; then
1579  echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584  IFS=$as_save_IFS
1585  test -z "$as_dir" && as_dir=.
1586  # Account for people who put trailing slashes in PATH elements.
1587case $as_dir/ in
1588  ./ | .// | /cC/* | \
1589  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1590  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1591  /usr/ucb/* ) ;;
1592  *)
1593    # OSF1 and SCO ODT 3.0 have their own names for install.
1594    # Don't use installbsd from OSF since it installs stuff as root
1595    # by default.
1596    for ac_prog in ginstall scoinst install; do
1597      for ac_exec_ext in '' $ac_executable_extensions; do
1598	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1599	  if test $ac_prog = install &&
1600	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601	    # AIX install.  It has an incompatible calling convention.
1602	    :
1603	  elif test $ac_prog = install &&
1604	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605	    # program-specific install script used by HP pwplus--don't use.
1606	    :
1607	  else
1608	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1609	    break 3
1610	  fi
1611	fi
1612      done
1613    done
1614    ;;
1615esac
1616done
1617
1618
1619fi
1620  if test "${ac_cv_path_install+set}" = set; then
1621    INSTALL=$ac_cv_path_install
1622  else
1623    # As a last resort, use the slow shell script.  We don't cache a
1624    # path for INSTALL within a source directory, because that will
1625    # break other packages using the cache if that directory is
1626    # removed, or if the path is relative.
1627    INSTALL=$ac_install_sh
1628  fi
1629fi
1630echo "$as_me:$LINENO: result: $INSTALL" >&5
1631echo "${ECHO_T}$INSTALL" >&6
1632
1633# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1634# It thinks the first close brace ends the variable substitution.
1635test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1636
1637test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1638
1639test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1640
1641echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1642echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1643# Just in case
1644sleep 1
1645echo timestamp > conftest.file
1646# Do `set' in a subshell so we don't clobber the current shell's
1647# arguments.  Must try -L first in case configure is actually a
1648# symlink; some systems play weird games with the mod time of symlinks
1649# (eg FreeBSD returns the mod time of the symlink's containing
1650# directory).
1651if (
1652   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1653   if test "$*" = "X"; then
1654      # -L didn't work.
1655      set X `ls -t $srcdir/configure conftest.file`
1656   fi
1657   rm -f conftest.file
1658   if test "$*" != "X $srcdir/configure conftest.file" \
1659      && test "$*" != "X conftest.file $srcdir/configure"; then
1660
1661      # If neither matched, then we have a broken ls.  This can happen
1662      # if, for instance, CONFIG_SHELL is bash and it inherits a
1663      # broken ls alias from the environment.  This has actually
1664      # happened.  Such a system could not be considered "sane".
1665      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1666alias in your environment" >&5
1667echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1668alias in your environment" >&2;}
1669   { (exit 1); exit 1; }; }
1670   fi
1671
1672   test "$2" = conftest.file
1673   )
1674then
1675   # Ok.
1676   :
1677else
1678   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1679Check your system clock" >&5
1680echo "$as_me: error: newly created file is older than distributed files!
1681Check your system clock" >&2;}
1682   { (exit 1); exit 1; }; }
1683fi
1684echo "$as_me:$LINENO: result: yes" >&5
1685echo "${ECHO_T}yes" >&6
1686test "$program_prefix" != NONE &&
1687  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1688# Use a double $ so make ignores it.
1689test "$program_suffix" != NONE &&
1690  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1691# Double any \ or $.  echo might interpret backslashes.
1692# By default was `s,x,x', remove it if useless.
1693cat <<\_ACEOF >conftest.sed
1694s/[\\$]/&&/g;s/;s,x,x,$//
1695_ACEOF
1696program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1697rm conftest.sed
1698
1699# expand $ac_aux_dir to an absolute path
1700am_aux_dir=`cd $ac_aux_dir && pwd`
1701
1702test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1703# Use eval to expand $SHELL
1704if eval "$MISSING --run true"; then
1705  am_missing_run="$MISSING --run "
1706else
1707  am_missing_run=
1708  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1709echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1710fi
1711
1712if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1713  # We used to keeping the `.' as first argument, in order to
1714  # allow $(mkdir_p) to be used without argument.  As in
1715  #   $(mkdir_p) $(somedir)
1716  # where $(somedir) is conditionally defined.  However this is wrong
1717  # for two reasons:
1718  #  1. if the package is installed by a user who cannot write `.'
1719  #     make install will fail,
1720  #  2. the above comment should most certainly read
1721  #     $(mkdir_p) $(DESTDIR)$(somedir)
1722  #     so it does not work when $(somedir) is undefined and
1723  #     $(DESTDIR) is not.
1724  #  To support the latter case, we have to write
1725  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1726  #  so the `.' trick is pointless.
1727  mkdir_p='mkdir -p --'
1728else
1729  # On NextStep and OpenStep, the `mkdir' command does not
1730  # recognize any option.  It will interpret all options as
1731  # directories to create, and then abort because `.' already
1732  # exists.
1733  for d in ./-p ./--version;
1734  do
1735    test -d $d && rmdir $d
1736  done
1737  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1738  if test -f "$ac_aux_dir/mkinstalldirs"; then
1739    mkdir_p='$(mkinstalldirs)'
1740  else
1741    mkdir_p='$(install_sh) -d'
1742  fi
1743fi
1744
1745for ac_prog in gawk mawk nawk awk
1746do
1747  # Extract the first word of "$ac_prog", so it can be a program name with args.
1748set dummy $ac_prog; ac_word=$2
1749echo "$as_me:$LINENO: checking for $ac_word" >&5
1750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751if test "${ac_cv_prog_AWK+set}" = set; then
1752  echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754  if test -n "$AWK"; then
1755  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1756else
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760  IFS=$as_save_IFS
1761  test -z "$as_dir" && as_dir=.
1762  for ac_exec_ext in '' $ac_executable_extensions; do
1763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764    ac_cv_prog_AWK="$ac_prog"
1765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766    break 2
1767  fi
1768done
1769done
1770
1771fi
1772fi
1773AWK=$ac_cv_prog_AWK
1774if test -n "$AWK"; then
1775  echo "$as_me:$LINENO: result: $AWK" >&5
1776echo "${ECHO_T}$AWK" >&6
1777else
1778  echo "$as_me:$LINENO: result: no" >&5
1779echo "${ECHO_T}no" >&6
1780fi
1781
1782  test -n "$AWK" && break
1783done
1784
1785echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1786echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1787set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1788if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1789  echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
1791  cat >conftest.make <<\_ACEOF
1792all:
1793	@echo 'ac_maketemp="$(MAKE)"'
1794_ACEOF
1795# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1796eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1797if test -n "$ac_maketemp"; then
1798  eval ac_cv_prog_make_${ac_make}_set=yes
1799else
1800  eval ac_cv_prog_make_${ac_make}_set=no
1801fi
1802rm -f conftest.make
1803fi
1804if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1805  echo "$as_me:$LINENO: result: yes" >&5
1806echo "${ECHO_T}yes" >&6
1807  SET_MAKE=
1808else
1809  echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811  SET_MAKE="MAKE=${MAKE-make}"
1812fi
1813
1814rm -rf .tst 2>/dev/null
1815mkdir .tst 2>/dev/null
1816if test -d .tst; then
1817  am__leading_dot=.
1818else
1819  am__leading_dot=_
1820fi
1821rmdir .tst 2>/dev/null
1822
1823# test to see if srcdir already configured
1824if test "`cd $srcdir && pwd`" != "`pwd`" &&
1825   test -f $srcdir/config.status; then
1826  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1827echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1828   { (exit 1); exit 1; }; }
1829fi
1830
1831# test whether we have cygpath
1832if test -z "$CYGPATH_W"; then
1833  if (cygpath --version) >/dev/null 2>/dev/null; then
1834    CYGPATH_W='cygpath -w'
1835  else
1836    CYGPATH_W=echo
1837  fi
1838fi
1839
1840
1841# Define the identity of the package.
1842 PACKAGE=gettext-tools
1843 VERSION=$VERSION_NUMBER
1844
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE "$PACKAGE"
1848_ACEOF
1849
1850
1851cat >>confdefs.h <<_ACEOF
1852#define VERSION "$VERSION"
1853_ACEOF
1854
1855# Some tools Automake needs.
1856
1857ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1858
1859
1860AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1861
1862
1863AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1864
1865
1866AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1867
1868
1869MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1870
1871install_sh=${install_sh-"$am_aux_dir/install-sh"}
1872
1873# Installed binaries are usually stripped using `strip' when the user
1874# run `make install-strip'.  However `strip' might not be the right
1875# tool to use in cross-compilation environments, therefore Automake
1876# will honor the `STRIP' environment variable to overrule this program.
1877if test "$cross_compiling" != no; then
1878  if test -n "$ac_tool_prefix"; then
1879  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1880set dummy ${ac_tool_prefix}strip; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_STRIP+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$STRIP"; then
1887  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1888else
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894  for ac_exec_ext in '' $ac_executable_extensions; do
1895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898    break 2
1899  fi
1900done
1901done
1902
1903fi
1904fi
1905STRIP=$ac_cv_prog_STRIP
1906if test -n "$STRIP"; then
1907  echo "$as_me:$LINENO: result: $STRIP" >&5
1908echo "${ECHO_T}$STRIP" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914fi
1915if test -z "$ac_cv_prog_STRIP"; then
1916  ac_ct_STRIP=$STRIP
1917  # Extract the first word of "strip", so it can be a program name with args.
1918set dummy strip; ac_word=$2
1919echo "$as_me:$LINENO: checking for $ac_word" >&5
1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1922  echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924  if test -n "$ac_ct_STRIP"; then
1925  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1926else
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930  IFS=$as_save_IFS
1931  test -z "$as_dir" && as_dir=.
1932  for ac_exec_ext in '' $ac_executable_extensions; do
1933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934    ac_cv_prog_ac_ct_STRIP="strip"
1935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936    break 2
1937  fi
1938done
1939done
1940
1941  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1942fi
1943fi
1944ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1945if test -n "$ac_ct_STRIP"; then
1946  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1947echo "${ECHO_T}$ac_ct_STRIP" >&6
1948else
1949  echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6
1951fi
1952
1953  STRIP=$ac_ct_STRIP
1954else
1955  STRIP="$ac_cv_prog_STRIP"
1956fi
1957
1958fi
1959INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1960
1961# We need awk for the "check" target.  The system "awk" is bad on
1962# some platforms.
1963# Always define AMTAR for backward compatibility.
1964
1965AMTAR=${AMTAR-"${am_missing_run}tar"}
1966
1967am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1968
1969
1970
1971
1972
1973          ac_config_headers="$ac_config_headers config.h"
1974
1975
1976localedir='${datadir}/locale'
1977
1978docdir='${datadir}/doc/gettext'
1979
1980test "$mandir" != '${prefix}/man' || mandir='${datadir}/man'
1981
1982ac_ext=c
1983ac_cpp='$CPP $CPPFLAGS'
1984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986ac_compiler_gnu=$ac_cv_c_compiler_gnu
1987if test -n "$ac_tool_prefix"; then
1988  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1989set dummy ${ac_tool_prefix}gcc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_CC+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test -n "$CC"; then
1996  ac_cv_prog_CC="$CC" # Let the user override the test.
1997else
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001  IFS=$as_save_IFS
2002  test -z "$as_dir" && as_dir=.
2003  for ac_exec_ext in '' $ac_executable_extensions; do
2004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007    break 2
2008  fi
2009done
2010done
2011
2012fi
2013fi
2014CC=$ac_cv_prog_CC
2015if test -n "$CC"; then
2016  echo "$as_me:$LINENO: result: $CC" >&5
2017echo "${ECHO_T}$CC" >&6
2018else
2019  echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023fi
2024if test -z "$ac_cv_prog_CC"; then
2025  ac_ct_CC=$CC
2026  # Extract the first word of "gcc", so it can be a program name with args.
2027set dummy gcc; ac_word=$2
2028echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031  echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033  if test -n "$ac_ct_CC"; then
2034  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039  IFS=$as_save_IFS
2040  test -z "$as_dir" && as_dir=.
2041  for ac_exec_ext in '' $ac_executable_extensions; do
2042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043    ac_cv_prog_ac_ct_CC="gcc"
2044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045    break 2
2046  fi
2047done
2048done
2049
2050fi
2051fi
2052ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053if test -n "$ac_ct_CC"; then
2054  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055echo "${ECHO_T}$ac_ct_CC" >&6
2056else
2057  echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6
2059fi
2060
2061  CC=$ac_ct_CC
2062else
2063  CC="$ac_cv_prog_CC"
2064fi
2065
2066if test -z "$CC"; then
2067  if test -n "$ac_tool_prefix"; then
2068  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2069set dummy ${ac_tool_prefix}cc; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072if test "${ac_cv_prog_CC+set}" = set; then
2073  echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075  if test -n "$CC"; then
2076  ac_cv_prog_CC="$CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081  IFS=$as_save_IFS
2082  test -z "$as_dir" && as_dir=.
2083  for ac_exec_ext in '' $ac_executable_extensions; do
2084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085    ac_cv_prog_CC="${ac_tool_prefix}cc"
2086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087    break 2
2088  fi
2089done
2090done
2091
2092fi
2093fi
2094CC=$ac_cv_prog_CC
2095if test -n "$CC"; then
2096  echo "$as_me:$LINENO: result: $CC" >&5
2097echo "${ECHO_T}$CC" >&6
2098else
2099  echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103fi
2104if test -z "$ac_cv_prog_CC"; then
2105  ac_ct_CC=$CC
2106  # Extract the first word of "cc", so it can be a program name with args.
2107set dummy cc; ac_word=$2
2108echo "$as_me:$LINENO: checking for $ac_word" >&5
2109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111  echo $ECHO_N "(cached) $ECHO_C" >&6
2112else
2113  if test -n "$ac_ct_CC"; then
2114  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115else
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119  IFS=$as_save_IFS
2120  test -z "$as_dir" && as_dir=.
2121  for ac_exec_ext in '' $ac_executable_extensions; do
2122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123    ac_cv_prog_ac_ct_CC="cc"
2124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125    break 2
2126  fi
2127done
2128done
2129
2130fi
2131fi
2132ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133if test -n "$ac_ct_CC"; then
2134  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135echo "${ECHO_T}$ac_ct_CC" >&6
2136else
2137  echo "$as_me:$LINENO: result: no" >&5
2138echo "${ECHO_T}no" >&6
2139fi
2140
2141  CC=$ac_ct_CC
2142else
2143  CC="$ac_cv_prog_CC"
2144fi
2145
2146fi
2147if test -z "$CC"; then
2148  # Extract the first word of "cc", so it can be a program name with args.
2149set dummy cc; ac_word=$2
2150echo "$as_me:$LINENO: checking for $ac_word" >&5
2151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152if test "${ac_cv_prog_CC+set}" = set; then
2153  echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155  if test -n "$CC"; then
2156  ac_cv_prog_CC="$CC" # Let the user override the test.
2157else
2158  ac_prog_rejected=no
2159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160for as_dir in $PATH
2161do
2162  IFS=$as_save_IFS
2163  test -z "$as_dir" && as_dir=.
2164  for ac_exec_ext in '' $ac_executable_extensions; do
2165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2166    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2167       ac_prog_rejected=yes
2168       continue
2169     fi
2170    ac_cv_prog_CC="cc"
2171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172    break 2
2173  fi
2174done
2175done
2176
2177if test $ac_prog_rejected = yes; then
2178  # We found a bogon in the path, so make sure we never use it.
2179  set dummy $ac_cv_prog_CC
2180  shift
2181  if test $# != 0; then
2182    # We chose a different compiler from the bogus one.
2183    # However, it has the same basename, so the bogon will be chosen
2184    # first if we set CC to just the basename; use the full file name.
2185    shift
2186    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2187  fi
2188fi
2189fi
2190fi
2191CC=$ac_cv_prog_CC
2192if test -n "$CC"; then
2193  echo "$as_me:$LINENO: result: $CC" >&5
2194echo "${ECHO_T}$CC" >&6
2195else
2196  echo "$as_me:$LINENO: result: no" >&5
2197echo "${ECHO_T}no" >&6
2198fi
2199
2200fi
2201if test -z "$CC"; then
2202  if test -n "$ac_tool_prefix"; then
2203  for ac_prog in cl
2204  do
2205    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2207echo "$as_me:$LINENO: checking for $ac_word" >&5
2208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209if test "${ac_cv_prog_CC+set}" = set; then
2210  echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212  if test -n "$CC"; then
2213  ac_cv_prog_CC="$CC" # Let the user override the test.
2214else
2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218  IFS=$as_save_IFS
2219  test -z "$as_dir" && as_dir=.
2220  for ac_exec_ext in '' $ac_executable_extensions; do
2221  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2223    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224    break 2
2225  fi
2226done
2227done
2228
2229fi
2230fi
2231CC=$ac_cv_prog_CC
2232if test -n "$CC"; then
2233  echo "$as_me:$LINENO: result: $CC" >&5
2234echo "${ECHO_T}$CC" >&6
2235else
2236  echo "$as_me:$LINENO: result: no" >&5
2237echo "${ECHO_T}no" >&6
2238fi
2239
2240    test -n "$CC" && break
2241  done
2242fi
2243if test -z "$CC"; then
2244  ac_ct_CC=$CC
2245  for ac_prog in cl
2246do
2247  # Extract the first word of "$ac_prog", so it can be a program name with args.
2248set dummy $ac_prog; ac_word=$2
2249echo "$as_me:$LINENO: checking for $ac_word" >&5
2250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2252  echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254  if test -n "$ac_ct_CC"; then
2255  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260  IFS=$as_save_IFS
2261  test -z "$as_dir" && as_dir=.
2262  for ac_exec_ext in '' $ac_executable_extensions; do
2263  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264    ac_cv_prog_ac_ct_CC="$ac_prog"
2265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266    break 2
2267  fi
2268done
2269done
2270
2271fi
2272fi
2273ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274if test -n "$ac_ct_CC"; then
2275  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2276echo "${ECHO_T}$ac_ct_CC" >&6
2277else
2278  echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6
2280fi
2281
2282  test -n "$ac_ct_CC" && break
2283done
2284
2285  CC=$ac_ct_CC
2286fi
2287
2288fi
2289
2290
2291test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2292See \`config.log' for more details." >&5
2293echo "$as_me: error: no acceptable C compiler found in \$PATH
2294See \`config.log' for more details." >&2;}
2295   { (exit 1); exit 1; }; }
2296
2297# Provide some information about the compiler.
2298echo "$as_me:$LINENO:" \
2299     "checking for C compiler version" >&5
2300ac_compiler=`set X $ac_compile; echo $2`
2301{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2302  (eval $ac_compiler --version </dev/null >&5) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }
2306{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2307  (eval $ac_compiler -v </dev/null >&5) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }
2311{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2312  (eval $ac_compiler -V </dev/null >&5) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }
2316
2317cat >conftest.$ac_ext <<_ACEOF
2318/* confdefs.h.  */
2319_ACEOF
2320cat confdefs.h >>conftest.$ac_ext
2321cat >>conftest.$ac_ext <<_ACEOF
2322/* end confdefs.h.  */
2323
2324int
2325main ()
2326{
2327
2328  ;
2329  return 0;
2330}
2331_ACEOF
2332ac_clean_files_save=$ac_clean_files
2333ac_clean_files="$ac_clean_files a.out a.exe b.out"
2334# Try to create an executable without -o first, disregard a.out.
2335# It will help us diagnose broken compilers, and finding out an intuition
2336# of exeext.
2337echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2338echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2339ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2340if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2341  (eval $ac_link_default) 2>&5
2342  ac_status=$?
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); }; then
2345  # Find the output, starting from the most likely.  This scheme is
2346# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2347# resort.
2348
2349# Be careful to initialize this variable, since it used to be cached.
2350# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2351ac_cv_exeext=
2352# b.out is created by i960 compilers.
2353for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2354do
2355  test -f "$ac_file" || continue
2356  case $ac_file in
2357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2358	;;
2359    conftest.$ac_ext )
2360	# This is the source file.
2361	;;
2362    [ab].out )
2363	# We found the default executable, but exeext='' is most
2364	# certainly right.
2365	break;;
2366    *.* )
2367	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368	# FIXME: I believe we export ac_cv_exeext for Libtool,
2369	# but it would be cool to find out if it's true.  Does anybody
2370	# maintain Libtool? --akim.
2371	export ac_cv_exeext
2372	break;;
2373    * )
2374	break;;
2375  esac
2376done
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2382See \`config.log' for more details." >&5
2383echo "$as_me: error: C compiler cannot create executables
2384See \`config.log' for more details." >&2;}
2385   { (exit 77); exit 77; }; }
2386fi
2387
2388ac_exeext=$ac_cv_exeext
2389echo "$as_me:$LINENO: result: $ac_file" >&5
2390echo "${ECHO_T}$ac_file" >&6
2391
2392# Check the compiler produces executables we can run.  If not, either
2393# the compiler is broken, or we cross compile.
2394echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2395echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2396# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2397# If not cross compiling, check that we can run a simple program.
2398if test "$cross_compiling" != yes; then
2399  if { ac_try='./$ac_file'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; }; then
2405    cross_compiling=no
2406  else
2407    if test "$cross_compiling" = maybe; then
2408	cross_compiling=yes
2409    else
2410	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2411If you meant to cross compile, use \`--host'.
2412See \`config.log' for more details." >&5
2413echo "$as_me: error: cannot run C compiled programs.
2414If you meant to cross compile, use \`--host'.
2415See \`config.log' for more details." >&2;}
2416   { (exit 1); exit 1; }; }
2417    fi
2418  fi
2419fi
2420echo "$as_me:$LINENO: result: yes" >&5
2421echo "${ECHO_T}yes" >&6
2422
2423rm -f a.out a.exe conftest$ac_cv_exeext b.out
2424ac_clean_files=$ac_clean_files_save
2425# Check the compiler produces executables we can run.  If not, either
2426# the compiler is broken, or we cross compile.
2427echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2428echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2429echo "$as_me:$LINENO: result: $cross_compiling" >&5
2430echo "${ECHO_T}$cross_compiling" >&6
2431
2432echo "$as_me:$LINENO: checking for suffix of executables" >&5
2433echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2435  (eval $ac_link) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; then
2439  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2440# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2441# work properly (i.e., refer to `conftest.exe'), while it won't with
2442# `rm'.
2443for ac_file in conftest.exe conftest conftest.*; do
2444  test -f "$ac_file" || continue
2445  case $ac_file in
2446    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2447    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448	  export ac_cv_exeext
2449	  break;;
2450    * ) break;;
2451  esac
2452done
2453else
2454  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2455See \`config.log' for more details." >&5
2456echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2457See \`config.log' for more details." >&2;}
2458   { (exit 1); exit 1; }; }
2459fi
2460
2461rm -f conftest$ac_cv_exeext
2462echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2463echo "${ECHO_T}$ac_cv_exeext" >&6
2464
2465rm -f conftest.$ac_ext
2466EXEEXT=$ac_cv_exeext
2467ac_exeext=$EXEEXT
2468echo "$as_me:$LINENO: checking for suffix of object files" >&5
2469echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2470if test "${ac_cv_objext+set}" = set; then
2471  echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473  cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h.  */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h.  */
2479
2480int
2481main ()
2482{
2483
2484  ;
2485  return 0;
2486}
2487_ACEOF
2488rm -f conftest.o conftest.obj
2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490  (eval $ac_compile) 2>&5
2491  ac_status=$?
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); }; then
2494  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2495  case $ac_file in
2496    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2497    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2498       break;;
2499  esac
2500done
2501else
2502  echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2506See \`config.log' for more details." >&5
2507echo "$as_me: error: cannot compute suffix of object files: cannot compile
2508See \`config.log' for more details." >&2;}
2509   { (exit 1); exit 1; }; }
2510fi
2511
2512rm -f conftest.$ac_cv_objext conftest.$ac_ext
2513fi
2514echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2515echo "${ECHO_T}$ac_cv_objext" >&6
2516OBJEXT=$ac_cv_objext
2517ac_objext=$OBJEXT
2518echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2519echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2520if test "${ac_cv_c_compiler_gnu+set}" = set; then
2521  echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523  cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529
2530int
2531main ()
2532{
2533#ifndef __GNUC__
2534       choke me
2535#endif
2536
2537  ;
2538  return 0;
2539}
2540_ACEOF
2541rm -f conftest.$ac_objext
2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543  (eval $ac_compile) 2>conftest.er1
2544  ac_status=$?
2545  grep -v '^ *+' conftest.er1 >conftest.err
2546  rm -f conftest.er1
2547  cat conftest.err >&5
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); } &&
2550	 { ac_try='test -z "$ac_c_werror_flag"
2551			 || test ! -s conftest.err'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; } &&
2557	 { ac_try='test -s conftest.$ac_objext'
2558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559  (eval $ac_try) 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }; }; then
2563  ac_compiler_gnu=yes
2564else
2565  echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568ac_compiler_gnu=no
2569fi
2570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571ac_cv_c_compiler_gnu=$ac_compiler_gnu
2572
2573fi
2574echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2575echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2576GCC=`test $ac_compiler_gnu = yes && echo yes`
2577ac_test_CFLAGS=${CFLAGS+set}
2578ac_save_CFLAGS=$CFLAGS
2579CFLAGS="-g"
2580echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2581echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2582if test "${ac_cv_prog_cc_g+set}" = set; then
2583  echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585  cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h.  */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h.  */
2591
2592int
2593main ()
2594{
2595
2596  ;
2597  return 0;
2598}
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602  (eval $ac_compile) 2>conftest.er1
2603  ac_status=$?
2604  grep -v '^ *+' conftest.er1 >conftest.err
2605  rm -f conftest.er1
2606  cat conftest.err >&5
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); } &&
2609	 { ac_try='test -z "$ac_c_werror_flag"
2610			 || test ! -s conftest.err'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; } &&
2616	 { ac_try='test -s conftest.$ac_objext'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; }; then
2622  ac_cv_prog_cc_g=yes
2623else
2624  echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627ac_cv_prog_cc_g=no
2628fi
2629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630fi
2631echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633if test "$ac_test_CFLAGS" = set; then
2634  CFLAGS=$ac_save_CFLAGS
2635elif test $ac_cv_prog_cc_g = yes; then
2636  if test "$GCC" = yes; then
2637    CFLAGS="-g -O2"
2638  else
2639    CFLAGS="-g"
2640  fi
2641else
2642  if test "$GCC" = yes; then
2643    CFLAGS="-O2"
2644  else
2645    CFLAGS=
2646  fi
2647fi
2648echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651  echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653  ac_cv_prog_cc_stdc=no
2654ac_save_CC=$CC
2655cat >conftest.$ac_ext <<_ACEOF
2656/* confdefs.h.  */
2657_ACEOF
2658cat confdefs.h >>conftest.$ac_ext
2659cat >>conftest.$ac_ext <<_ACEOF
2660/* end confdefs.h.  */
2661#include <stdarg.h>
2662#include <stdio.h>
2663#include <sys/types.h>
2664#include <sys/stat.h>
2665/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2666struct buf { int x; };
2667FILE * (*rcsopen) (struct buf *, struct stat *, int);
2668static char *e (p, i)
2669     char **p;
2670     int i;
2671{
2672  return p[i];
2673}
2674static char *f (char * (*g) (char **, int), char **p, ...)
2675{
2676  char *s;
2677  va_list v;
2678  va_start (v,p);
2679  s = g (p, va_arg (v,int));
2680  va_end (v);
2681  return s;
2682}
2683
2684/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2685   function prototypes and stuff, but not '\xHH' hex character constants.
2686   These don't provoke an error unfortunately, instead are silently treated
2687   as 'x'.  The following induces an error, until -std1 is added to get
2688   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2689   array size at least.  It's necessary to write '\x00'==0 to get something
2690   that's true only with -std1.  */
2691int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2692
2693int test (int i, double x);
2694struct s1 {int (*f) (int a);};
2695struct s2 {int (*f) (double a);};
2696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2697int argc;
2698char **argv;
2699int
2700main ()
2701{
2702return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2703  ;
2704  return 0;
2705}
2706_ACEOF
2707# Don't try gcc -ansi; that turns off useful extensions and
2708# breaks some systems' header files.
2709# AIX			-qlanglvl=ansi
2710# Ultrix and OSF/1	-std1
2711# HP-UX 10.20 and later	-Ae
2712# HP-UX older versions	-Aa -D_HPUX_SOURCE
2713# SVR4			-Xc -D__EXTENSIONS__
2714for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2715do
2716  CC="$ac_save_CC $ac_arg"
2717  rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719  (eval $ac_compile) 2>conftest.er1
2720  ac_status=$?
2721  grep -v '^ *+' conftest.er1 >conftest.err
2722  rm -f conftest.er1
2723  cat conftest.err >&5
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); } &&
2726	 { ac_try='test -z "$ac_c_werror_flag"
2727			 || test ! -s conftest.err'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; } &&
2733	 { ac_try='test -s conftest.$ac_objext'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; }; then
2739  ac_cv_prog_cc_stdc=$ac_arg
2740break
2741else
2742  echo "$as_me: failed program was:" >&5
2743sed 's/^/| /' conftest.$ac_ext >&5
2744
2745fi
2746rm -f conftest.err conftest.$ac_objext
2747done
2748rm -f conftest.$ac_ext conftest.$ac_objext
2749CC=$ac_save_CC
2750
2751fi
2752
2753case "x$ac_cv_prog_cc_stdc" in
2754  x|xno)
2755    echo "$as_me:$LINENO: result: none needed" >&5
2756echo "${ECHO_T}none needed" >&6 ;;
2757  *)
2758    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2759echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2760    CC="$CC $ac_cv_prog_cc_stdc" ;;
2761esac
2762
2763# Some people use a C++ compiler to compile C.  Since we use `exit',
2764# in C++ we need to declare it.  In case someone uses the same compiler
2765# for both compiling C and C++ we need to have the C++ compiler decide
2766# the declaration of exit, since it's the most demanding environment.
2767cat >conftest.$ac_ext <<_ACEOF
2768#ifndef __cplusplus
2769  choke me
2770#endif
2771_ACEOF
2772rm -f conftest.$ac_objext
2773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774  (eval $ac_compile) 2>conftest.er1
2775  ac_status=$?
2776  grep -v '^ *+' conftest.er1 >conftest.err
2777  rm -f conftest.er1
2778  cat conftest.err >&5
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); } &&
2781	 { ac_try='test -z "$ac_c_werror_flag"
2782			 || test ! -s conftest.err'
2783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784  (eval $ac_try) 2>&5
2785  ac_status=$?
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); }; } &&
2788	 { ac_try='test -s conftest.$ac_objext'
2789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790  (eval $ac_try) 2>&5
2791  ac_status=$?
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); }; }; then
2794  for ac_declaration in \
2795   '' \
2796   'extern "C" void std::exit (int) throw (); using std::exit;' \
2797   'extern "C" void std::exit (int); using std::exit;' \
2798   'extern "C" void exit (int) throw ();' \
2799   'extern "C" void exit (int);' \
2800   'void exit (int);'
2801do
2802  cat >conftest.$ac_ext <<_ACEOF
2803/* confdefs.h.  */
2804_ACEOF
2805cat confdefs.h >>conftest.$ac_ext
2806cat >>conftest.$ac_ext <<_ACEOF
2807/* end confdefs.h.  */
2808$ac_declaration
2809#include <stdlib.h>
2810int
2811main ()
2812{
2813exit (42);
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext
2819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820  (eval $ac_compile) 2>conftest.er1
2821  ac_status=$?
2822  grep -v '^ *+' conftest.er1 >conftest.err
2823  rm -f conftest.er1
2824  cat conftest.err >&5
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); } &&
2827	 { ac_try='test -z "$ac_c_werror_flag"
2828			 || test ! -s conftest.err'
2829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830  (eval $ac_try) 2>&5
2831  ac_status=$?
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); }; } &&
2834	 { ac_try='test -s conftest.$ac_objext'
2835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836  (eval $ac_try) 2>&5
2837  ac_status=$?
2838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839  (exit $ac_status); }; }; then
2840  :
2841else
2842  echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845continue
2846fi
2847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848  cat >conftest.$ac_ext <<_ACEOF
2849/* confdefs.h.  */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h.  */
2854$ac_declaration
2855int
2856main ()
2857{
2858exit (42);
2859  ;
2860  return 0;
2861}
2862_ACEOF
2863rm -f conftest.$ac_objext
2864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865  (eval $ac_compile) 2>conftest.er1
2866  ac_status=$?
2867  grep -v '^ *+' conftest.er1 >conftest.err
2868  rm -f conftest.er1
2869  cat conftest.err >&5
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); } &&
2872	 { ac_try='test -z "$ac_c_werror_flag"
2873			 || test ! -s conftest.err'
2874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875  (eval $ac_try) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; } &&
2879	 { ac_try='test -s conftest.$ac_objext'
2880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881  (eval $ac_try) 2>&5
2882  ac_status=$?
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); }; }; then
2885  break
2886else
2887  echo "$as_me: failed program was:" >&5
2888sed 's/^/| /' conftest.$ac_ext >&5
2889
2890fi
2891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2892done
2893rm -f conftest*
2894if test -n "$ac_declaration"; then
2895  echo '#ifdef __cplusplus' >>confdefs.h
2896  echo $ac_declaration      >>confdefs.h
2897  echo '#endif'             >>confdefs.h
2898fi
2899
2900else
2901  echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904fi
2905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906ac_ext=c
2907ac_cpp='$CPP $CPPFLAGS'
2908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911DEPDIR="${am__leading_dot}deps"
2912
2913          ac_config_commands="$ac_config_commands depfiles"
2914
2915
2916am_make=${MAKE-make}
2917cat > confinc << 'END'
2918am__doit:
2919	@echo done
2920.PHONY: am__doit
2921END
2922# If we don't find an include directive, just comment out the code.
2923echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2924echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2925am__include="#"
2926am__quote=
2927_am_result=none
2928# First try GNU make style include.
2929echo "include confinc" > confmf
2930# We grep out `Entering directory' and `Leaving directory'
2931# messages which can occur if `w' ends up in MAKEFLAGS.
2932# In particular we don't look at `^make:' because GNU make might
2933# be invoked under some other name (usually "gmake"), in which
2934# case it prints its new name instead of `make'.
2935if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2936   am__include=include
2937   am__quote=
2938   _am_result=GNU
2939fi
2940# Now try BSD make style include.
2941if test "$am__include" = "#"; then
2942   echo '.include "confinc"' > confmf
2943   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2944      am__include=.include
2945      am__quote="\""
2946      _am_result=BSD
2947   fi
2948fi
2949
2950
2951echo "$as_me:$LINENO: result: $_am_result" >&5
2952echo "${ECHO_T}$_am_result" >&6
2953rm -f confinc confmf
2954
2955# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2956if test "${enable_dependency_tracking+set}" = set; then
2957  enableval="$enable_dependency_tracking"
2958
2959fi;
2960if test "x$enable_dependency_tracking" != xno; then
2961  am_depcomp="$ac_aux_dir/depcomp"
2962  AMDEPBACKSLASH='\'
2963fi
2964
2965
2966if test "x$enable_dependency_tracking" != xno; then
2967  AMDEP_TRUE=
2968  AMDEP_FALSE='#'
2969else
2970  AMDEP_TRUE='#'
2971  AMDEP_FALSE=
2972fi
2973
2974
2975
2976
2977depcc="$CC"   am_compiler_list=
2978
2979echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2980echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2981if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2982  echo $ECHO_N "(cached) $ECHO_C" >&6
2983else
2984  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2985  # We make a subdir and do the tests there.  Otherwise we can end up
2986  # making bogus files that we don't know about and never remove.  For
2987  # instance it was reported that on HP-UX the gcc test will end up
2988  # making a dummy file named `D' -- because `-MD' means `put the output
2989  # in D'.
2990  mkdir conftest.dir
2991  # Copy depcomp to subdir because otherwise we won't find it if we're
2992  # using a relative directory.
2993  cp "$am_depcomp" conftest.dir
2994  cd conftest.dir
2995  # We will build objects and dependencies in a subdirectory because
2996  # it helps to detect inapplicable dependency modes.  For instance
2997  # both Tru64's cc and ICC support -MD to output dependencies as a
2998  # side effect of compilation, but ICC will put the dependencies in
2999  # the current directory while Tru64 will put them in the object
3000  # directory.
3001  mkdir sub
3002
3003  am_cv_CC_dependencies_compiler_type=none
3004  if test "$am_compiler_list" = ""; then
3005     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3006  fi
3007  for depmode in $am_compiler_list; do
3008    # Setup a source with many dependencies, because some compilers
3009    # like to wrap large dependency lists on column 80 (with \), and
3010    # we should not choose a depcomp mode which is confused by this.
3011    #
3012    # We need to recreate these files for each test, as the compiler may
3013    # overwrite some of them when testing with obscure command lines.
3014    # This happens at least with the AIX C compiler.
3015    : > sub/conftest.c
3016    for i in 1 2 3 4 5 6; do
3017      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3018      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3019      # Solaris 8's {/usr,}/bin/sh.
3020      touch sub/conftst$i.h
3021    done
3022    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3023
3024    case $depmode in
3025    nosideeffect)
3026      # after this tag, mechanisms are not by side-effect, so they'll
3027      # only be used when explicitly requested
3028      if test "x$enable_dependency_tracking" = xyes; then
3029	continue
3030      else
3031	break
3032      fi
3033      ;;
3034    none) break ;;
3035    esac
3036    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3037    # mode.  It turns out that the SunPro C++ compiler does not properly
3038    # handle `-M -o', and we need to detect this.
3039    if depmode=$depmode \
3040       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3041       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3042       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3043         >/dev/null 2>conftest.err &&
3044       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3045       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3046       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3047      # icc doesn't choke on unknown options, it will just issue warnings
3048      # or remarks (even with -Werror).  So we grep stderr for any message
3049      # that says an option was ignored or not supported.
3050      # When given -MP, icc 7.0 and 7.1 complain thusly:
3051      #   icc: Command line warning: ignoring option '-M'; no argument required
3052      # The diagnosis changed in icc 8.0:
3053      #   icc: Command line remark: option '-MP' not supported
3054      if (grep 'ignoring option' conftest.err ||
3055          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3056        am_cv_CC_dependencies_compiler_type=$depmode
3057        break
3058      fi
3059    fi
3060  done
3061
3062  cd ..
3063  rm -rf conftest.dir
3064else
3065  am_cv_CC_dependencies_compiler_type=none
3066fi
3067
3068fi
3069echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3070echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3071CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3072
3073
3074
3075if
3076  test "x$enable_dependency_tracking" != xno \
3077  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3078  am__fastdepCC_TRUE=
3079  am__fastdepCC_FALSE='#'
3080else
3081  am__fastdepCC_TRUE='#'
3082  am__fastdepCC_FALSE=
3083fi
3084
3085
3086# Find a good install program.  We prefer a C program (faster),
3087# so one script is as good as another.  But avoid the broken or
3088# incompatible versions:
3089# SysV /etc/install, /usr/sbin/install
3090# SunOS /usr/etc/install
3091# IRIX /sbin/install
3092# AIX /bin/install
3093# AmigaOS /C/install, which installs bootblocks on floppy discs
3094# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3095# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3096# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3097# OS/2's system install, which has a completely different semantic
3098# ./install, which can be erroneously created by make from ./install.sh.
3099echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3100echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3101if test -z "$INSTALL"; then
3102if test "${ac_cv_path_install+set}" = set; then
3103  echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
3105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110  # Account for people who put trailing slashes in PATH elements.
3111case $as_dir/ in
3112  ./ | .// | /cC/* | \
3113  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3114  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3115  /usr/ucb/* ) ;;
3116  *)
3117    # OSF1 and SCO ODT 3.0 have their own names for install.
3118    # Don't use installbsd from OSF since it installs stuff as root
3119    # by default.
3120    for ac_prog in ginstall scoinst install; do
3121      for ac_exec_ext in '' $ac_executable_extensions; do
3122	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3123	  if test $ac_prog = install &&
3124	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3125	    # AIX install.  It has an incompatible calling convention.
3126	    :
3127	  elif test $ac_prog = install &&
3128	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3129	    # program-specific install script used by HP pwplus--don't use.
3130	    :
3131	  else
3132	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3133	    break 3
3134	  fi
3135	fi
3136      done
3137    done
3138    ;;
3139esac
3140done
3141
3142
3143fi
3144  if test "${ac_cv_path_install+set}" = set; then
3145    INSTALL=$ac_cv_path_install
3146  else
3147    # As a last resort, use the slow shell script.  We don't cache a
3148    # path for INSTALL within a source directory, because that will
3149    # break other packages using the cache if that directory is
3150    # removed, or if the path is relative.
3151    INSTALL=$ac_install_sh
3152  fi
3153fi
3154echo "$as_me:$LINENO: result: $INSTALL" >&5
3155echo "${ECHO_T}$INSTALL" >&6
3156
3157# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3158# It thinks the first close brace ends the variable substitution.
3159test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3160
3161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3162
3163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3164
3165for ac_prog in 'bison -y' byacc
3166do
3167  # Extract the first word of "$ac_prog", so it can be a program name with args.
3168set dummy $ac_prog; ac_word=$2
3169echo "$as_me:$LINENO: checking for $ac_word" >&5
3170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171if test "${ac_cv_prog_YACC+set}" = set; then
3172  echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174  if test -n "$YACC"; then
3175  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180  IFS=$as_save_IFS
3181  test -z "$as_dir" && as_dir=.
3182  for ac_exec_ext in '' $ac_executable_extensions; do
3183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184    ac_cv_prog_YACC="$ac_prog"
3185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186    break 2
3187  fi
3188done
3189done
3190
3191fi
3192fi
3193YACC=$ac_cv_prog_YACC
3194if test -n "$YACC"; then
3195  echo "$as_me:$LINENO: result: $YACC" >&5
3196echo "${ECHO_T}$YACC" >&6
3197else
3198  echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
3200fi
3201
3202  test -n "$YACC" && break
3203done
3204test -n "$YACC" || YACC="yacc"
3205
3206
3207
3208
3209
3210
3211  echo "$as_me:$LINENO: checking for Java to native code compiler" >&5
3212echo $ECHO_N "checking for Java to native code compiler... $ECHO_C" >&6
3213  # Search for the gcj command or use the one provided by the user.
3214  if test -z "$GCJ"; then
3215                for ac_prog in gcj
3216do
3217  # Extract the first word of "$ac_prog", so it can be a program name with args.
3218set dummy $ac_prog; ac_word=$2
3219:
3220if test "${ac_cv_prog_GCJ+set}" = set; then
3221  echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223  if test -n "$GCJ"; then
3224  ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
3225else
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229  IFS=$as_save_IFS
3230  test -z "$as_dir" && as_dir=.
3231  for ac_exec_ext in '' $ac_executable_extensions; do
3232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233    ac_cv_prog_GCJ="$ac_prog"
3234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235    break 2
3236  fi
3237done
3238done
3239
3240fi
3241fi
3242GCJ=$ac_cv_prog_GCJ
3243if test -n "$GCJ"; then
3244  :
3245else
3246  :
3247fi
3248
3249  test -n "$GCJ" && break
3250done
3251test -n "$GCJ" || GCJ="none"
3252
3253              fi
3254  # Choose GCJFLAGS or use the one provided by the user.
3255  if test "$GCJ" != none; then
3256    test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
3257  fi
3258  # Check whether the version is ok and it can create executables.
3259  ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
3260  if test "$GCJ" != none \
3261     && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
3262     && (
3263      # See if libgcj.so is well installed and if exception handling works.
3264      cat > conftest.java <<EOF
3265public class conftest {
3266  public static void main (String[] args) {
3267    try {
3268      java.util.ResourceBundle.getBundle("foobar");
3269    } catch (Exception e) {
3270    }
3271    System.exit(0);
3272  }
3273}
3274EOF
3275      { (eval echo "$as_me:$LINENO: \"$ac_gcj_link\"") >&5
3276  (eval $ac_gcj_link) 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }
3280      error=$?
3281      if test $error = 0 && test "$cross_compiling" != yes; then
3282        # Run conftest and catch its exit status, but silently.
3283        error=`./conftest >/dev/null 2>&1; echo $?`
3284        test $error = 0 || error=1
3285        rm -f core conftest.core
3286      fi
3287      rm -f conftest.java conftest$ac_exeext
3288      exit $error
3289     ); then
3290    :
3291  else
3292    GCJ=none
3293  fi
3294  echo "$as_me:$LINENO: result: $GCJ" >&5
3295echo "${ECHO_T}$GCJ" >&6
3296  if test "$GCJ" != none; then
3297    HAVE_GCJ=1
3298  else
3299    HAVE_GCJ=
3300  fi
3301
3302
3303
3304
3305if test -n "$HAVE_GCJ"; then
3306  BUILDJAVAEXE=yes
3307else
3308  BUILDJAVAEXE=no
3309fi
3310
3311
3312
3313ac_ext=c
3314ac_cpp='$CPP $CPPFLAGS'
3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3319echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3320# On Suns, sometimes $CPP names a directory.
3321if test -n "$CPP" && test -d "$CPP"; then
3322  CPP=
3323fi
3324if test -z "$CPP"; then
3325  if test "${ac_cv_prog_CPP+set}" = set; then
3326  echo $ECHO_N "(cached) $ECHO_C" >&6
3327else
3328      # Double quotes because CPP needs to be expanded
3329    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3330    do
3331      ac_preproc_ok=false
3332for ac_c_preproc_warn_flag in '' yes
3333do
3334  # Use a header file that comes with gcc, so configuring glibc
3335  # with a fresh cross-compiler works.
3336  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337  # <limits.h> exists even on freestanding compilers.
3338  # On the NeXT, cc -E runs the code through the compiler's parser,
3339  # not just through cpp. "Syntax error" is here to catch this case.
3340  cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h.  */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h.  */
3346#ifdef __STDC__
3347# include <limits.h>
3348#else
3349# include <assert.h>
3350#endif
3351		     Syntax error
3352_ACEOF
3353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3354  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3355  ac_status=$?
3356  grep -v '^ *+' conftest.er1 >conftest.err
3357  rm -f conftest.er1
3358  cat conftest.err >&5
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); } >/dev/null; then
3361  if test -s conftest.err; then
3362    ac_cpp_err=$ac_c_preproc_warn_flag
3363    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3364  else
3365    ac_cpp_err=
3366  fi
3367else
3368  ac_cpp_err=yes
3369fi
3370if test -z "$ac_cpp_err"; then
3371  :
3372else
3373  echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376  # Broken: fails on valid input.
3377continue
3378fi
3379rm -f conftest.err conftest.$ac_ext
3380
3381  # OK, works on sane cases.  Now check whether non-existent headers
3382  # can be detected and how.
3383  cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h.  */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h.  */
3389#include <ac_nonexistent.h>
3390_ACEOF
3391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3392  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3393  ac_status=$?
3394  grep -v '^ *+' conftest.er1 >conftest.err
3395  rm -f conftest.er1
3396  cat conftest.err >&5
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); } >/dev/null; then
3399  if test -s conftest.err; then
3400    ac_cpp_err=$ac_c_preproc_warn_flag
3401    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3402  else
3403    ac_cpp_err=
3404  fi
3405else
3406  ac_cpp_err=yes
3407fi
3408if test -z "$ac_cpp_err"; then
3409  # Broken: success on invalid input.
3410continue
3411else
3412  echo "$as_me: failed program was:" >&5
3413sed 's/^/| /' conftest.$ac_ext >&5
3414
3415  # Passes both tests.
3416ac_preproc_ok=:
3417break
3418fi
3419rm -f conftest.err conftest.$ac_ext
3420
3421done
3422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3423rm -f conftest.err conftest.$ac_ext
3424if $ac_preproc_ok; then
3425  break
3426fi
3427
3428    done
3429    ac_cv_prog_CPP=$CPP
3430
3431fi
3432  CPP=$ac_cv_prog_CPP
3433else
3434  ac_cv_prog_CPP=$CPP
3435fi
3436echo "$as_me:$LINENO: result: $CPP" >&5
3437echo "${ECHO_T}$CPP" >&6
3438ac_preproc_ok=false
3439for ac_c_preproc_warn_flag in '' yes
3440do
3441  # Use a header file that comes with gcc, so configuring glibc
3442  # with a fresh cross-compiler works.
3443  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3444  # <limits.h> exists even on freestanding compilers.
3445  # On the NeXT, cc -E runs the code through the compiler's parser,
3446  # not just through cpp. "Syntax error" is here to catch this case.
3447  cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h.  */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h.  */
3453#ifdef __STDC__
3454# include <limits.h>
3455#else
3456# include <assert.h>
3457#endif
3458		     Syntax error
3459_ACEOF
3460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3461  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3462  ac_status=$?
3463  grep -v '^ *+' conftest.er1 >conftest.err
3464  rm -f conftest.er1
3465  cat conftest.err >&5
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } >/dev/null; then
3468  if test -s conftest.err; then
3469    ac_cpp_err=$ac_c_preproc_warn_flag
3470    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471  else
3472    ac_cpp_err=
3473  fi
3474else
3475  ac_cpp_err=yes
3476fi
3477if test -z "$ac_cpp_err"; then
3478  :
3479else
3480  echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483  # Broken: fails on valid input.
3484continue
3485fi
3486rm -f conftest.err conftest.$ac_ext
3487
3488  # OK, works on sane cases.  Now check whether non-existent headers
3489  # can be detected and how.
3490  cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h.  */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h.  */
3496#include <ac_nonexistent.h>
3497_ACEOF
3498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3499  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3500  ac_status=$?
3501  grep -v '^ *+' conftest.er1 >conftest.err
3502  rm -f conftest.er1
3503  cat conftest.err >&5
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); } >/dev/null; then
3506  if test -s conftest.err; then
3507    ac_cpp_err=$ac_c_preproc_warn_flag
3508    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3509  else
3510    ac_cpp_err=
3511  fi
3512else
3513  ac_cpp_err=yes
3514fi
3515if test -z "$ac_cpp_err"; then
3516  # Broken: success on invalid input.
3517continue
3518else
3519  echo "$as_me: failed program was:" >&5
3520sed 's/^/| /' conftest.$ac_ext >&5
3521
3522  # Passes both tests.
3523ac_preproc_ok=:
3524break
3525fi
3526rm -f conftest.err conftest.$ac_ext
3527
3528done
3529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530rm -f conftest.err conftest.$ac_ext
3531if $ac_preproc_ok; then
3532  :
3533else
3534  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3535See \`config.log' for more details." >&5
3536echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3537See \`config.log' for more details." >&2;}
3538   { (exit 1); exit 1; }; }
3539fi
3540
3541ac_ext=c
3542ac_cpp='$CPP $CPPFLAGS'
3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546
3547
3548echo "$as_me:$LINENO: checking for egrep" >&5
3549echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3550if test "${ac_cv_prog_egrep+set}" = set; then
3551  echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3554    then ac_cv_prog_egrep='grep -E'
3555    else ac_cv_prog_egrep='egrep'
3556    fi
3557fi
3558echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3559echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3560 EGREP=$ac_cv_prog_egrep
3561
3562
3563
3564  echo "$as_me:$LINENO: checking for Java compiler" >&5
3565echo $ECHO_N "checking for Java compiler... $ECHO_C" >&6
3566  cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h.  */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h.  */
3572
3573#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
3574  yes
3575#endif
3576
3577_ACEOF
3578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579  $EGREP "yes" >/dev/null 2>&1; then
3580  CLASSPATH_SEPARATOR=';'
3581else
3582  CLASSPATH_SEPARATOR=':'
3583fi
3584rm -f conftest*
3585
3586  HAVE_JAVACOMP=1
3587  if test -n "$JAVAC"; then
3588    ac_result="$JAVAC"
3589  else
3590                # Extract the first word of "gcj", so it can be a program name with args.
3591set dummy gcj; ac_word=$2
3592:
3593if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then
3594  echo $ECHO_N "(cached) $ECHO_C" >&6
3595else
3596  if test -n "$HAVE_GCJ_IN_PATH"; then
3597  ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602  IFS=$as_save_IFS
3603  test -z "$as_dir" && as_dir=.
3604  for ac_exec_ext in '' $ac_executable_extensions; do
3605  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606    ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
3607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608    break 2
3609  fi
3610done
3611done
3612
3613fi
3614fi
3615HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
3616if test -n "$HAVE_GCJ_IN_PATH"; then
3617  :
3618else
3619  :
3620fi
3621
3622    # Extract the first word of "javac", so it can be a program name with args.
3623set dummy javac; ac_word=$2
3624:
3625if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then
3626  echo $ECHO_N "(cached) $ECHO_C" >&6
3627else
3628  if test -n "$HAVE_JAVAC_IN_PATH"; then
3629  ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634  IFS=$as_save_IFS
3635  test -z "$as_dir" && as_dir=.
3636  for ac_exec_ext in '' $ac_executable_extensions; do
3637  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638    ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
3639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640    break 2
3641  fi
3642done
3643done
3644
3645fi
3646fi
3647HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
3648if test -n "$HAVE_JAVAC_IN_PATH"; then
3649  :
3650else
3651  :
3652fi
3653
3654    # Extract the first word of "jikes", so it can be a program name with args.
3655set dummy jikes; ac_word=$2
3656:
3657if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then
3658  echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
3660  if test -n "$HAVE_JIKES_IN_PATH"; then
3661  ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
3662else
3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH
3665do
3666  IFS=$as_save_IFS
3667  test -z "$as_dir" && as_dir=.
3668  for ac_exec_ext in '' $ac_executable_extensions; do
3669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670    ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
3671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672    break 2
3673  fi
3674done
3675done
3676
3677fi
3678fi
3679HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
3680if test -n "$HAVE_JIKES_IN_PATH"; then
3681  :
3682else
3683  :
3684fi
3685
3686                # Test for a good gcj version (>= 3.0).
3687    # Exclude some versions of gcj: gcj 3.0.4 compiles GetURL.java to invalid
3688    # bytecode, that crashes with an IllegalAccessError when executed by
3689    # gij 3.0.4 or with a VerifyError when executed by Sun Java. Likewise for
3690    # gcj 3.1.
3691    # I also exclude gcj 3.2, 3.3 etc. because I have no idea when this bug
3692    # will be fixed. The bug is registered as java/7066, see
3693    # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7066
3694    # FIXME: Check new versions of gcj as they come out.
3695    if test -n "$HAVE_GCJ_IN_PATH" \
3696       && gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[0123456789]/d' | grep '^[3-9]' >/dev/null \
3697       && (
3698        # See if libgcj.jar is well installed.
3699        cat > conftest.java <<EOF
3700public class conftest {
3701  public static void main (String[] args) {
3702  }
3703}
3704EOF
3705        gcj -C -d . conftest.java 2>/dev/null
3706        error=$?
3707        rm -f conftest.java conftest.class
3708        exit $error
3709       ); then
3710      HAVE_GCJ_C=1
3711      ac_result="gcj -C"
3712    else
3713      if test -n "$HAVE_JAVAC_IN_PATH" \
3714         && (javac -version >/dev/null 2>/dev/null || test $? -le 2) \
3715         && (if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi); then
3716        HAVE_JAVAC=1
3717        ac_result="javac"
3718      else
3719        if test -n "$HAVE_JIKES_IN_PATH" \
3720           && (jikes >/dev/null 2>/dev/null || test $? = 1) \
3721           && (
3722            # See if the existing CLASSPATH is sufficient to make jikes work.
3723            cat > conftest.java <<EOF
3724public class conftest {
3725  public static void main (String[] args) {
3726  }
3727}
3728EOF
3729            unset JAVA_HOME
3730            jikes conftest.java 2>/dev/null
3731            error=$?
3732            rm -f conftest.java conftest.class
3733            exit $error
3734           ); then
3735          HAVE_JIKES=1
3736          ac_result="jikes"
3737        else
3738          HAVE_JAVACOMP=
3739          ac_result="no"
3740        fi
3741      fi
3742    fi
3743  fi
3744  echo "$as_me:$LINENO: result: $ac_result" >&5
3745echo "${ECHO_T}$ac_result" >&6
3746
3747
3748
3749
3750
3751
3752
3753# Extract the first word of "jar", so it can be a program name with args.
3754set dummy jar; ac_word=$2
3755echo "$as_me:$LINENO: checking for $ac_word" >&5
3756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757if test "${ac_cv_prog_JAR+set}" = set; then
3758  echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760  if test -n "$JAR"; then
3761  ac_cv_prog_JAR="$JAR" # Let the user override the test.
3762else
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766  IFS=$as_save_IFS
3767  test -z "$as_dir" && as_dir=.
3768  for ac_exec_ext in '' $ac_executable_extensions; do
3769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770    ac_cv_prog_JAR="jar"
3771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772    break 2
3773  fi
3774done
3775done
3776
3777fi
3778fi
3779JAR=$ac_cv_prog_JAR
3780if test -n "$JAR"; then
3781  echo "$as_me:$LINENO: result: $JAR" >&5
3782echo "${ECHO_T}$JAR" >&6
3783else
3784  echo "$as_me:$LINENO: result: no" >&5
3785echo "${ECHO_T}no" >&6
3786fi
3787
3788if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
3789  BUILDJAVA=yes
3790else
3791  BUILDJAVA=no
3792fi
3793
3794
3795
3796  echo "$as_me:$LINENO: checking for Java virtual machine" >&5
3797echo $ECHO_N "checking for Java virtual machine... $ECHO_C" >&6
3798  cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h.  */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h.  */
3804
3805#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
3806  yes
3807#endif
3808
3809_ACEOF
3810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3811  $EGREP "yes" >/dev/null 2>&1; then
3812  CLASSPATH_SEPARATOR=';'
3813else
3814  CLASSPATH_SEPARATOR=':'
3815fi
3816rm -f conftest*
3817
3818  HAVE_JAVAEXEC=1
3819  if test -n "$JAVA"; then
3820    ac_result="$JAVA"
3821  else
3822                # Extract the first word of "gij", so it can be a program name with args.
3823set dummy gij; ac_word=$2
3824:
3825if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then
3826  echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828  if test -n "$HAVE_GIJ_IN_PATH"; then
3829  ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
3830else
3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832for as_dir in $PATH
3833do
3834  IFS=$as_save_IFS
3835  test -z "$as_dir" && as_dir=.
3836  for ac_exec_ext in '' $ac_executable_extensions; do
3837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838    ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
3839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840    break 2
3841  fi
3842done
3843done
3844
3845fi
3846fi
3847HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
3848if test -n "$HAVE_GIJ_IN_PATH"; then
3849  :
3850else
3851  :
3852fi
3853
3854    # Extract the first word of "java", so it can be a program name with args.
3855set dummy java; ac_word=$2
3856:
3857if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then
3858  echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860  if test -n "$HAVE_JAVA_IN_PATH"; then
3861  ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  test -z "$as_dir" && as_dir=.
3868  for ac_exec_ext in '' $ac_executable_extensions; do
3869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870    ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
3871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872    break 2
3873  fi
3874done
3875done
3876
3877fi
3878fi
3879HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
3880if test -n "$HAVE_JAVA_IN_PATH"; then
3881  :
3882else
3883  :
3884fi
3885
3886    # Extract the first word of "jre", so it can be a program name with args.
3887set dummy jre; ac_word=$2
3888:
3889if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then
3890  echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892  if test -n "$HAVE_JRE_IN_PATH"; then
3893  ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898  IFS=$as_save_IFS
3899  test -z "$as_dir" && as_dir=.
3900  for ac_exec_ext in '' $ac_executable_extensions; do
3901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902    ac_cv_prog_HAVE_JRE_IN_PATH="yes"
3903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904    break 2
3905  fi
3906done
3907done
3908
3909fi
3910fi
3911HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
3912if test -n "$HAVE_JRE_IN_PATH"; then
3913  :
3914else
3915  :
3916fi
3917
3918    # Extract the first word of "jview", so it can be a program name with args.
3919set dummy jview; ac_word=$2
3920:
3921if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then
3922  echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924  if test -n "$HAVE_JVIEW_IN_PATH"; then
3925  ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
3926else
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932  for ac_exec_ext in '' $ac_executable_extensions; do
3933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934    ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
3935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936    break 2
3937  fi
3938done
3939done
3940
3941fi
3942fi
3943HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
3944if test -n "$HAVE_JVIEW_IN_PATH"; then
3945  :
3946else
3947  :
3948fi
3949
3950
3951    export CLASSPATH
3952    if test -n "$HAVE_GIJ_IN_PATH" \
3953       && gij --version >/dev/null 2>/dev/null \
3954       ; then
3955      HAVE_GIJ=1
3956      ac_result="gij"
3957    else
3958      if test -n "$HAVE_JAVA_IN_PATH" \
3959         && java -version >/dev/null 2>/dev/null \
3960         ; then
3961        HAVE_JAVA=1
3962        ac_result="java"
3963      else
3964        if test -n "$HAVE_JRE_IN_PATH" \
3965           && (jre >/dev/null 2>/dev/null || test $? = 1) \
3966           ; then
3967          HAVE_JRE=1
3968          ac_result="jre"
3969        else
3970          if test -n "$HAVE_JVIEW_IN_PATH" \
3971             && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
3972             ; then
3973            HAVE_JVIEW=1
3974            ac_result="jview"
3975          else
3976            HAVE_JAVAEXEC=
3977            ac_result="no"
3978          fi
3979        fi
3980      fi
3981    fi
3982
3983  fi
3984  echo "$as_me:$LINENO: result: $ac_result" >&5
3985echo "${ECHO_T}$ac_result" >&6
3986
3987
3988
3989
3990
3991
3992
3993
3994if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
3995  TESTJAVA=yes
3996else
3997  TESTJAVA=no
3998fi
3999
4000
4001
4002  echo "$as_me:$LINENO: checking for preferred C# implementation" >&5
4003echo $ECHO_N "checking for preferred C# implementation... $ECHO_C" >&6
4004  # Check whether --enable-csharp or --disable-csharp was given.
4005if test "${enable_csharp+set}" = set; then
4006  enableval="$enable_csharp"
4007  CSHARP_CHOICE="$enableval"
4008else
4009  CSHARP_CHOICE=any
4010fi;
4011
4012  echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5
4013echo "${ECHO_T}$CSHARP_CHOICE" >&6
4014  case "$CSHARP_CHOICE" in
4015    pnet)
4016
4017cat >>confdefs.h <<\_ACEOF
4018#define CSHARP_CHOICE_PNET 1
4019_ACEOF
4020
4021      ;;
4022    mono)
4023
4024cat >>confdefs.h <<\_ACEOF
4025#define CSHARP_CHOICE_MONO 1
4026_ACEOF
4027
4028      ;;
4029  esac
4030
4031
4032
4033  echo "$as_me:$LINENO: checking for C# compiler" >&5
4034echo $ECHO_N "checking for C# compiler... $ECHO_C" >&6
4035  HAVE_CSHARPCOMP=1
4036        # Extract the first word of "cscc", so it can be a program name with args.
4037set dummy cscc; ac_word=$2
4038:
4039if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then
4040  echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042  if test -n "$HAVE_CSCC_IN_PATH"; then
4043  ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048  IFS=$as_save_IFS
4049  test -z "$as_dir" && as_dir=.
4050  for ac_exec_ext in '' $ac_executable_extensions; do
4051  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052    ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
4053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054    break 2
4055  fi
4056done
4057done
4058
4059fi
4060fi
4061HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
4062if test -n "$HAVE_CSCC_IN_PATH"; then
4063  :
4064else
4065  :
4066fi
4067
4068  # Extract the first word of "mcs", so it can be a program name with args.
4069set dummy mcs; ac_word=$2
4070:
4071if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  if test -n "$HAVE_MCS_IN_PATH"; then
4075  ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
4076else
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080  IFS=$as_save_IFS
4081  test -z "$as_dir" && as_dir=.
4082  for ac_exec_ext in '' $ac_executable_extensions; do
4083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084    ac_cv_prog_HAVE_MCS_IN_PATH="yes"
4085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086    break 2
4087  fi
4088done
4089done
4090
4091fi
4092fi
4093HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
4094if test -n "$HAVE_MCS_IN_PATH"; then
4095  :
4096else
4097  :
4098fi
4099
4100  # Extract the first word of "csc", so it can be a program name with args.
4101set dummy csc; ac_word=$2
4102:
4103if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then
4104  echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106  if test -n "$HAVE_CSC_IN_PATH"; then
4107  ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112  IFS=$as_save_IFS
4113  test -z "$as_dir" && as_dir=.
4114  for ac_exec_ext in '' $ac_executable_extensions; do
4115  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116    ac_cv_prog_HAVE_CSC_IN_PATH="yes"
4117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118    break 2
4119  fi
4120done
4121done
4122
4123fi
4124fi
4125HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
4126if test -n "$HAVE_CSC_IN_PATH"; then
4127  :
4128else
4129  :
4130fi
4131
4132        for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
4133    case "$impl" in
4134      pnet)
4135        if test -n "$HAVE_CSCC_IN_PATH" \
4136           && cscc --version >/dev/null 2>/dev/null; then
4137          HAVE_CSCC=1
4138          ac_result="cscc"
4139          break
4140        fi
4141        ;;
4142      mono)
4143        if test -n "$HAVE_MCS_IN_PATH" \
4144           && mcs --version >/dev/null 2>/dev/null; then
4145          HAVE_MCS=1
4146          ac_result="mcs"
4147          break
4148        fi
4149        ;;
4150      sscli)
4151        if test -n "$HAVE_CSC_IN_PATH" \
4152           && csc -help >/dev/null 2>/dev/null \
4153           && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
4154          HAVE_CSC=1
4155          ac_result="csc"
4156          break
4157        fi
4158        ;;
4159      no)
4160        HAVE_CSHARPCOMP=
4161        ac_result="no"
4162        break
4163        ;;
4164    esac
4165  done
4166  echo "$as_me:$LINENO: result: $ac_result" >&5
4167echo "${ECHO_T}$ac_result" >&6
4168
4169
4170
4171
4172if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
4173  BUILDCSHARP=yes
4174else
4175  BUILDCSHARP=no
4176fi
4177
4178
4179
4180
4181  echo "$as_me:$LINENO: checking for C# program execution engine" >&5
4182echo $ECHO_N "checking for C# program execution engine... $ECHO_C" >&6
4183  cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h.  */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h.  */
4189
4190#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
4191  yes
4192#endif
4193
4194_ACEOF
4195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196  $EGREP "yes" >/dev/null 2>&1; then
4197  MONO_PATH_SEPARATOR=';'
4198else
4199  MONO_PATH_SEPARATOR=':'
4200fi
4201rm -f conftest*
4202
4203  HAVE_CSHARPEXEC=1
4204        # Extract the first word of "ilrun", so it can be a program name with args.
4205set dummy ilrun; ac_word=$2
4206:
4207if test "${ac_cv_prog_HAVE_ILRUN_IN_PATH+set}" = set; then
4208  echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
4210  if test -n "$HAVE_ILRUN_IN_PATH"; then
4211  ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test.
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216  IFS=$as_save_IFS
4217  test -z "$as_dir" && as_dir=.
4218  for ac_exec_ext in '' $ac_executable_extensions; do
4219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220    ac_cv_prog_HAVE_ILRUN_IN_PATH="yes"
4221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222    break 2
4223  fi
4224done
4225done
4226
4227fi
4228fi
4229HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH
4230if test -n "$HAVE_ILRUN_IN_PATH"; then
4231  :
4232else
4233  :
4234fi
4235
4236  # Extract the first word of "mono", so it can be a program name with args.
4237set dummy mono; ac_word=$2
4238:
4239if test "${ac_cv_prog_HAVE_MONO_IN_PATH+set}" = set; then
4240  echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
4242  if test -n "$HAVE_MONO_IN_PATH"; then
4243  ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
4244else
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250  for ac_exec_ext in '' $ac_executable_extensions; do
4251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252    ac_cv_prog_HAVE_MONO_IN_PATH="yes"
4253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254    break 2
4255  fi
4256done
4257done
4258
4259fi
4260fi
4261HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
4262if test -n "$HAVE_MONO_IN_PATH"; then
4263  :
4264else
4265  :
4266fi
4267
4268        for impl in "$CSHARP_CHOICE" pnet mono no; do
4269    case "$impl" in
4270      pnet)
4271        if test -n "$HAVE_ILRUN_IN_PATH" \
4272           && ilrun --version >/dev/null 2>/dev/null; then
4273          HAVE_ILRUN=1
4274          ac_result="ilrun"
4275          break
4276        fi
4277        ;;
4278      mono)
4279        if test -n "$HAVE_MONO_IN_PATH" \
4280           && mono --version >/dev/null 2>/dev/null; then
4281          HAVE_MONO=1
4282          ac_result="mono"
4283          break
4284        fi
4285        ;;
4286      no)
4287        HAVE_CSHARPEXEC=
4288        ac_result="no"
4289        break
4290        ;;
4291    esac
4292  done
4293  echo "$as_me:$LINENO: result: $ac_result" >&5
4294echo "${ECHO_T}$ac_result" >&6
4295
4296
4297
4298
4299
4300if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
4301  TESTCSHARP=yes
4302else
4303  TESTCSHARP=no
4304fi
4305
4306
4307# Make sure we can run config.sub.
4308$ac_config_sub sun4 >/dev/null 2>&1 ||
4309  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4310echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4311   { (exit 1); exit 1; }; }
4312
4313echo "$as_me:$LINENO: checking build system type" >&5
4314echo $ECHO_N "checking build system type... $ECHO_C" >&6
4315if test "${ac_cv_build+set}" = set; then
4316  echo $ECHO_N "(cached) $ECHO_C" >&6
4317else
4318  ac_cv_build_alias=$build_alias
4319test -z "$ac_cv_build_alias" &&
4320  ac_cv_build_alias=`$ac_config_guess`
4321test -z "$ac_cv_build_alias" &&
4322  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4323echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4324   { (exit 1); exit 1; }; }
4325ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4326  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4327echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4328   { (exit 1); exit 1; }; }
4329
4330fi
4331echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4332echo "${ECHO_T}$ac_cv_build" >&6
4333build=$ac_cv_build
4334build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4335build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4336build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4337
4338
4339echo "$as_me:$LINENO: checking host system type" >&5
4340echo $ECHO_N "checking host system type... $ECHO_C" >&6
4341if test "${ac_cv_host+set}" = set; then
4342  echo $ECHO_N "(cached) $ECHO_C" >&6
4343else
4344  ac_cv_host_alias=$host_alias
4345test -z "$ac_cv_host_alias" &&
4346  ac_cv_host_alias=$ac_cv_build_alias
4347ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4348  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4349echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4350   { (exit 1); exit 1; }; }
4351
4352fi
4353echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4354echo "${ECHO_T}$ac_cv_host" >&6
4355host=$ac_cv_host
4356host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4357host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4358host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4359
4360
4361
4362echo "$as_me:$LINENO: checking for library containing strerror" >&5
4363echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4364if test "${ac_cv_search_strerror+set}" = set; then
4365  echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367  ac_func_search_save_LIBS=$LIBS
4368ac_cv_search_strerror=no
4369cat >conftest.$ac_ext <<_ACEOF
4370/* confdefs.h.  */
4371_ACEOF
4372cat confdefs.h >>conftest.$ac_ext
4373cat >>conftest.$ac_ext <<_ACEOF
4374/* end confdefs.h.  */
4375
4376/* Override any gcc2 internal prototype to avoid an error.  */
4377#ifdef __cplusplus
4378extern "C"
4379#endif
4380/* We use char because int might match the return type of a gcc2
4381   builtin and then its argument prototype would still apply.  */
4382char strerror ();
4383int
4384main ()
4385{
4386strerror ();
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391rm -f conftest.$ac_objext conftest$ac_exeext
4392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393  (eval $ac_link) 2>conftest.er1
4394  ac_status=$?
4395  grep -v '^ *+' conftest.er1 >conftest.err
4396  rm -f conftest.er1
4397  cat conftest.err >&5
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); } &&
4400	 { ac_try='test -z "$ac_c_werror_flag"
4401			 || test ! -s conftest.err'
4402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403  (eval $ac_try) 2>&5
4404  ac_status=$?
4405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406  (exit $ac_status); }; } &&
4407	 { ac_try='test -s conftest$ac_exeext'
4408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409  (eval $ac_try) 2>&5
4410  ac_status=$?
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); }; }; then
4413  ac_cv_search_strerror="none required"
4414else
4415  echo "$as_me: failed program was:" >&5
4416sed 's/^/| /' conftest.$ac_ext >&5
4417
4418fi
4419rm -f conftest.err conftest.$ac_objext \
4420      conftest$ac_exeext conftest.$ac_ext
4421if test "$ac_cv_search_strerror" = no; then
4422  for ac_lib in cposix; do
4423    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4424    cat >conftest.$ac_ext <<_ACEOF
4425/* confdefs.h.  */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4429/* end confdefs.h.  */
4430
4431/* Override any gcc2 internal prototype to avoid an error.  */
4432#ifdef __cplusplus
4433extern "C"
4434#endif
4435/* We use char because int might match the return type of a gcc2
4436   builtin and then its argument prototype would still apply.  */
4437char strerror ();
4438int
4439main ()
4440{
4441strerror ();
4442  ;
4443  return 0;
4444}
4445_ACEOF
4446rm -f conftest.$ac_objext conftest$ac_exeext
4447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448  (eval $ac_link) 2>conftest.er1
4449  ac_status=$?
4450  grep -v '^ *+' conftest.er1 >conftest.err
4451  rm -f conftest.er1
4452  cat conftest.err >&5
4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454  (exit $ac_status); } &&
4455	 { ac_try='test -z "$ac_c_werror_flag"
4456			 || test ! -s conftest.err'
4457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458  (eval $ac_try) 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); }; } &&
4462	 { ac_try='test -s conftest$ac_exeext'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; }; then
4468  ac_cv_search_strerror="-l$ac_lib"
4469break
4470else
4471  echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474fi
4475rm -f conftest.err conftest.$ac_objext \
4476      conftest$ac_exeext conftest.$ac_ext
4477  done
4478fi
4479LIBS=$ac_func_search_save_LIBS
4480fi
4481echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4482echo "${ECHO_T}$ac_cv_search_strerror" >&6
4483if test "$ac_cv_search_strerror" != no; then
4484  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4485
4486fi
4487
4488
4489
4490
4491
4492
4493cat >>confdefs.h <<\_ACEOF
4494#define _GNU_SOURCE 1
4495_ACEOF
4496
4497
4498
4499echo "$as_me:$LINENO: checking for AIX" >&5
4500echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4501cat >conftest.$ac_ext <<_ACEOF
4502/* confdefs.h.  */
4503_ACEOF
4504cat confdefs.h >>conftest.$ac_ext
4505cat >>conftest.$ac_ext <<_ACEOF
4506/* end confdefs.h.  */
4507#ifdef _AIX
4508  yes
4509#endif
4510
4511_ACEOF
4512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513  $EGREP "yes" >/dev/null 2>&1; then
4514  echo "$as_me:$LINENO: result: yes" >&5
4515echo "${ECHO_T}yes" >&6
4516cat >>confdefs.h <<\_ACEOF
4517#define _ALL_SOURCE 1
4518_ACEOF
4519
4520else
4521  echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
4523fi
4524rm -f conftest*
4525
4526
4527echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4528echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4529if test "${ac_cv_header_stdc+set}" = set; then
4530  echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532  cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h.  */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h.  */
4538#include <stdlib.h>
4539#include <stdarg.h>
4540#include <string.h>
4541#include <float.h>
4542
4543int
4544main ()
4545{
4546
4547  ;
4548  return 0;
4549}
4550_ACEOF
4551rm -f conftest.$ac_objext
4552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553  (eval $ac_compile) 2>conftest.er1
4554  ac_status=$?
4555  grep -v '^ *+' conftest.er1 >conftest.err
4556  rm -f conftest.er1
4557  cat conftest.err >&5
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); } &&
4560	 { ac_try='test -z "$ac_c_werror_flag"
4561			 || test ! -s conftest.err'
4562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563  (eval $ac_try) 2>&5
4564  ac_status=$?
4565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); }; } &&
4567	 { ac_try='test -s conftest.$ac_objext'
4568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569  (eval $ac_try) 2>&5
4570  ac_status=$?
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); }; }; then
4573  ac_cv_header_stdc=yes
4574else
4575  echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578ac_cv_header_stdc=no
4579fi
4580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581
4582if test $ac_cv_header_stdc = yes; then
4583  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4584  cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h.  */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h.  */
4590#include <string.h>
4591
4592_ACEOF
4593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4594  $EGREP "memchr" >/dev/null 2>&1; then
4595  :
4596else
4597  ac_cv_header_stdc=no
4598fi
4599rm -f conftest*
4600
4601fi
4602
4603if test $ac_cv_header_stdc = yes; then
4604  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4605  cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h.  */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h.  */
4611#include <stdlib.h>
4612
4613_ACEOF
4614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615  $EGREP "free" >/dev/null 2>&1; then
4616  :
4617else
4618  ac_cv_header_stdc=no
4619fi
4620rm -f conftest*
4621
4622fi
4623
4624if test $ac_cv_header_stdc = yes; then
4625  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4626  if test "$cross_compiling" = yes; then
4627  :
4628else
4629  cat >conftest.$ac_ext <<_ACEOF
4630/* confdefs.h.  */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h.  */
4635#include <ctype.h>
4636#if ((' ' & 0x0FF) == 0x020)
4637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639#else
4640# define ISLOWER(c) \
4641		   (('a' <= (c) && (c) <= 'i') \
4642		     || ('j' <= (c) && (c) <= 'r') \
4643		     || ('s' <= (c) && (c) <= 'z'))
4644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4645#endif
4646
4647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648int
4649main ()
4650{
4651  int i;
4652  for (i = 0; i < 256; i++)
4653    if (XOR (islower (i), ISLOWER (i))
4654	|| toupper (i) != TOUPPER (i))
4655      exit(2);
4656  exit (0);
4657}
4658_ACEOF
4659rm -f conftest$ac_exeext
4660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661  (eval $ac_link) 2>&5
4662  ac_status=$?
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666  (eval $ac_try) 2>&5
4667  ac_status=$?
4668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669  (exit $ac_status); }; }; then
4670  :
4671else
4672  echo "$as_me: program exited with status $ac_status" >&5
4673echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
4676( exit $ac_status )
4677ac_cv_header_stdc=no
4678fi
4679rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4680fi
4681fi
4682fi
4683echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4684echo "${ECHO_T}$ac_cv_header_stdc" >&6
4685if test $ac_cv_header_stdc = yes; then
4686
4687cat >>confdefs.h <<\_ACEOF
4688#define STDC_HEADERS 1
4689_ACEOF
4690
4691fi
4692
4693# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4704		  inttypes.h stdint.h unistd.h
4705do
4706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4707echo "$as_me:$LINENO: checking for $ac_header" >&5
4708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710  echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712  cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h.  */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h.  */
4718$ac_includes_default
4719
4720#include <$ac_header>
4721_ACEOF
4722rm -f conftest.$ac_objext
4723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724  (eval $ac_compile) 2>conftest.er1
4725  ac_status=$?
4726  grep -v '^ *+' conftest.er1 >conftest.err
4727  rm -f conftest.er1
4728  cat conftest.err >&5
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); } &&
4731	 { ac_try='test -z "$ac_c_werror_flag"
4732			 || test ! -s conftest.err'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; } &&
4738	 { ac_try='test -s conftest.$ac_objext'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; }; then
4744  eval "$as_ac_Header=yes"
4745else
4746  echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749eval "$as_ac_Header=no"
4750fi
4751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4752fi
4753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4755if test `eval echo '${'$as_ac_Header'}'` = yes; then
4756  cat >>confdefs.h <<_ACEOF
4757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758_ACEOF
4759
4760fi
4761
4762done
4763
4764
4765if test "${ac_cv_header_minix_config_h+set}" = set; then
4766  echo "$as_me:$LINENO: checking for minix/config.h" >&5
4767echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4768if test "${ac_cv_header_minix_config_h+set}" = set; then
4769  echo $ECHO_N "(cached) $ECHO_C" >&6
4770fi
4771echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4772echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4773else
4774  # Is the header compilable?
4775echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4776echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4777cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h.  */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h.  */
4783$ac_includes_default
4784#include <minix/config.h>
4785_ACEOF
4786rm -f conftest.$ac_objext
4787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788  (eval $ac_compile) 2>conftest.er1
4789  ac_status=$?
4790  grep -v '^ *+' conftest.er1 >conftest.err
4791  rm -f conftest.er1
4792  cat conftest.err >&5
4793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794  (exit $ac_status); } &&
4795	 { ac_try='test -z "$ac_c_werror_flag"
4796			 || test ! -s conftest.err'
4797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798  (eval $ac_try) 2>&5
4799  ac_status=$?
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); }; } &&
4802	 { ac_try='test -s conftest.$ac_objext'
4803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804  (eval $ac_try) 2>&5
4805  ac_status=$?
4806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807  (exit $ac_status); }; }; then
4808  ac_header_compiler=yes
4809else
4810  echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813ac_header_compiler=no
4814fi
4815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4817echo "${ECHO_T}$ac_header_compiler" >&6
4818
4819# Is the header present?
4820echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4821echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4822cat >conftest.$ac_ext <<_ACEOF
4823/* confdefs.h.  */
4824_ACEOF
4825cat confdefs.h >>conftest.$ac_ext
4826cat >>conftest.$ac_ext <<_ACEOF
4827/* end confdefs.h.  */
4828#include <minix/config.h>
4829_ACEOF
4830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832  ac_status=$?
4833  grep -v '^ *+' conftest.er1 >conftest.err
4834  rm -f conftest.er1
4835  cat conftest.err >&5
4836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837  (exit $ac_status); } >/dev/null; then
4838  if test -s conftest.err; then
4839    ac_cpp_err=$ac_c_preproc_warn_flag
4840    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4841  else
4842    ac_cpp_err=
4843  fi
4844else
4845  ac_cpp_err=yes
4846fi
4847if test -z "$ac_cpp_err"; then
4848  ac_header_preproc=yes
4849else
4850  echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853  ac_header_preproc=no
4854fi
4855rm -f conftest.err conftest.$ac_ext
4856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4857echo "${ECHO_T}$ac_header_preproc" >&6
4858
4859# So?  What about this header?
4860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4861  yes:no: )
4862    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4863echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4864    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4865echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4866    ac_header_preproc=yes
4867    ;;
4868  no:yes:* )
4869    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4870echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4871    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4872echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4873    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4874echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4875    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4876echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4877    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4878echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4879    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4880echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4881    (
4882      cat <<\_ASBOX
4883## ------------------------------------------ ##
4884## Report this to the AC_PACKAGE_NAME lists.  ##
4885## ------------------------------------------ ##
4886_ASBOX
4887    ) |
4888      sed "s/^/$as_me: WARNING:     /" >&2
4889    ;;
4890esac
4891echo "$as_me:$LINENO: checking for minix/config.h" >&5
4892echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4893if test "${ac_cv_header_minix_config_h+set}" = set; then
4894  echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896  ac_cv_header_minix_config_h=$ac_header_preproc
4897fi
4898echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4899echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4900
4901fi
4902if test $ac_cv_header_minix_config_h = yes; then
4903  MINIX=yes
4904else
4905  MINIX=
4906fi
4907
4908
4909if test "$MINIX" = yes; then
4910
4911cat >>confdefs.h <<\_ACEOF
4912#define _POSIX_SOURCE 1
4913_ACEOF
4914
4915
4916cat >>confdefs.h <<\_ACEOF
4917#define _POSIX_1_SOURCE 2
4918_ACEOF
4919
4920
4921cat >>confdefs.h <<\_ACEOF
4922#define _MINIX 1
4923_ACEOF
4924
4925fi
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937  cat >>confdefs.h <<\_ACEOF
4938#define __EXTENSIONS__ 1
4939_ACEOF
4940
4941
4942
4943
4944
4945# Check whether --enable-shared or --disable-shared was given.
4946if test "${enable_shared+set}" = set; then
4947  enableval="$enable_shared"
4948  p=${PACKAGE-default}
4949    case $enableval in
4950    yes) enable_shared=yes ;;
4951    no) enable_shared=no ;;
4952    *)
4953      enable_shared=no
4954      # Look at the argument we got.  We use all the common list separators.
4955      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4956      for pkg in $enableval; do
4957	IFS="$lt_save_ifs"
4958	if test "X$pkg" = "X$p"; then
4959	  enable_shared=yes
4960	fi
4961      done
4962      IFS="$lt_save_ifs"
4963      ;;
4964    esac
4965else
4966  enable_shared=yes
4967fi;
4968
4969# Check whether --enable-static or --disable-static was given.
4970if test "${enable_static+set}" = set; then
4971  enableval="$enable_static"
4972  p=${PACKAGE-default}
4973    case $enableval in
4974    yes) enable_static=yes ;;
4975    no) enable_static=no ;;
4976    *)
4977     enable_static=no
4978      # Look at the argument we got.  We use all the common list separators.
4979      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4980      for pkg in $enableval; do
4981	IFS="$lt_save_ifs"
4982	if test "X$pkg" = "X$p"; then
4983	  enable_static=yes
4984	fi
4985      done
4986      IFS="$lt_save_ifs"
4987      ;;
4988    esac
4989else
4990  enable_static=yes
4991fi;
4992
4993# Check whether --enable-fast-install or --disable-fast-install was given.
4994if test "${enable_fast_install+set}" = set; then
4995  enableval="$enable_fast_install"
4996  p=${PACKAGE-default}
4997    case $enableval in
4998    yes) enable_fast_install=yes ;;
4999    no) enable_fast_install=no ;;
5000    *)
5001      enable_fast_install=no
5002      # Look at the argument we got.  We use all the common list separators.
5003      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5004      for pkg in $enableval; do
5005	IFS="$lt_save_ifs"
5006	if test "X$pkg" = "X$p"; then
5007	  enable_fast_install=yes
5008	fi
5009      done
5010      IFS="$lt_save_ifs"
5011      ;;
5012    esac
5013else
5014  enable_fast_install=yes
5015fi;
5016
5017echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5018echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5019if test "${lt_cv_path_SED+set}" = set; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022  # Loop through the user's path and test for sed and gsed.
5023# Then use that list of sed's as ones to test for truncation.
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027  IFS=$as_save_IFS
5028  test -z "$as_dir" && as_dir=.
5029  for lt_ac_prog in sed gsed; do
5030    for ac_exec_ext in '' $ac_executable_extensions; do
5031      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5032        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5033      fi
5034    done
5035  done
5036done
5037lt_ac_max=0
5038lt_ac_count=0
5039# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5040# along with /bin/sed that truncates output.
5041for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5042  test ! -f $lt_ac_sed && continue
5043  cat /dev/null > conftest.in
5044  lt_ac_count=0
5045  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5046  # Check for GNU sed and select it if it is found.
5047  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5048    lt_cv_path_SED=$lt_ac_sed
5049    break
5050  fi
5051  while true; do
5052    cat conftest.in conftest.in >conftest.tmp
5053    mv conftest.tmp conftest.in
5054    cp conftest.in conftest.nl
5055    echo >>conftest.nl
5056    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5057    cmp -s conftest.out conftest.nl || break
5058    # 10000 chars as input seems more than enough
5059    test $lt_ac_count -gt 10 && break
5060    lt_ac_count=`expr $lt_ac_count + 1`
5061    if test $lt_ac_count -gt $lt_ac_max; then
5062      lt_ac_max=$lt_ac_count
5063      lt_cv_path_SED=$lt_ac_sed
5064    fi
5065  done
5066done
5067
5068fi
5069
5070SED=$lt_cv_path_SED
5071echo "$as_me:$LINENO: result: $SED" >&5
5072echo "${ECHO_T}$SED" >&6
5073
5074
5075# Check whether --with-gnu-ld or --without-gnu-ld was given.
5076if test "${with_gnu_ld+set}" = set; then
5077  withval="$with_gnu_ld"
5078  test "$withval" = no || with_gnu_ld=yes
5079else
5080  with_gnu_ld=no
5081fi;
5082ac_prog=ld
5083if test "$GCC" = yes; then
5084  # Check if gcc -print-prog-name=ld gives a path.
5085  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5086echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5087  case $host in
5088  *-*-mingw*)
5089    # gcc leaves a trailing carriage return which upsets mingw
5090    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5091  *)
5092    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5093  esac
5094  case $ac_prog in
5095    # Accept absolute paths.
5096    [\\/]* | ?:[\\/]*)
5097      re_direlt='/[^/][^/]*/\.\./'
5098      # Canonicalize the pathname of ld
5099      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5100      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5101	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5102      done
5103      test -z "$LD" && LD="$ac_prog"
5104      ;;
5105  "")
5106    # If it fails, then pretend we aren't using GCC.
5107    ac_prog=ld
5108    ;;
5109  *)
5110    # If it is relative, then search for the first ld in PATH.
5111    with_gnu_ld=unknown
5112    ;;
5113  esac
5114elif test "$with_gnu_ld" = yes; then
5115  echo "$as_me:$LINENO: checking for GNU ld" >&5
5116echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5117else
5118  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5119echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5120fi
5121if test "${lt_cv_path_LD+set}" = set; then
5122  echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124  if test -z "$LD"; then
5125  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5126  for ac_dir in $PATH; do
5127    IFS="$lt_save_ifs"
5128    test -z "$ac_dir" && ac_dir=.
5129    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5130      lt_cv_path_LD="$ac_dir/$ac_prog"
5131      # Check to see if the program is GNU ld.  I'd rather use --version,
5132      # but apparently some GNU ld's only accept -v.
5133      # Break only if it was the GNU/non-GNU ld that we prefer.
5134      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5135      *GNU* | *'with BFD'*)
5136	test "$with_gnu_ld" != no && break
5137	;;
5138      *)
5139	test "$with_gnu_ld" != yes && break
5140	;;
5141      esac
5142    fi
5143  done
5144  IFS="$lt_save_ifs"
5145else
5146  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5147fi
5148fi
5149
5150LD="$lt_cv_path_LD"
5151if test -n "$LD"; then
5152  echo "$as_me:$LINENO: result: $LD" >&5
5153echo "${ECHO_T}$LD" >&6
5154else
5155  echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6
5157fi
5158test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5159echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5160   { (exit 1); exit 1; }; }
5161echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5162echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5163if test "${lt_cv_prog_gnu_ld+set}" = set; then
5164  echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5167case `$LD -v 2>&1 </dev/null` in
5168*GNU* | *'with BFD'*)
5169  lt_cv_prog_gnu_ld=yes
5170  ;;
5171*)
5172  lt_cv_prog_gnu_ld=no
5173  ;;
5174esac
5175fi
5176echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5177echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5178with_gnu_ld=$lt_cv_prog_gnu_ld
5179
5180
5181echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5182echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5183if test "${lt_cv_ld_reload_flag+set}" = set; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186  lt_cv_ld_reload_flag='-r'
5187fi
5188echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5189echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5190reload_flag=$lt_cv_ld_reload_flag
5191case $reload_flag in
5192"" | " "*) ;;
5193*) reload_flag=" $reload_flag" ;;
5194esac
5195reload_cmds='$LD$reload_flag -o $output$reload_objs'
5196case $host_os in
5197  darwin*)
5198    if test "$GCC" = yes; then
5199      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5200    else
5201      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5202    fi
5203    ;;
5204esac
5205
5206echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5207echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5208if test "${lt_cv_path_NM+set}" = set; then
5209  echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211  if test -n "$NM"; then
5212  # Let the user override the test.
5213  lt_cv_path_NM="$NM"
5214else
5215  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5216  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5217    IFS="$lt_save_ifs"
5218    test -z "$ac_dir" && ac_dir=.
5219    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5220    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5221      # Check to see if the nm accepts a BSD-compat flag.
5222      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5223      #   nm: unknown option "B" ignored
5224      # Tru64's nm complains that /dev/null is an invalid object file
5225      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5226      */dev/null* | *'Invalid file or object type'*)
5227	lt_cv_path_NM="$tmp_nm -B"
5228	break
5229        ;;
5230      *)
5231	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5232	*/dev/null*)
5233	  lt_cv_path_NM="$tmp_nm -p"
5234	  break
5235	  ;;
5236	*)
5237	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5238	  continue # so that we can try to find one that supports BSD flags
5239	  ;;
5240	esac
5241      esac
5242    fi
5243  done
5244  IFS="$lt_save_ifs"
5245  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5246fi
5247fi
5248echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5249echo "${ECHO_T}$lt_cv_path_NM" >&6
5250NM="$lt_cv_path_NM"
5251
5252echo "$as_me:$LINENO: checking whether ln -s works" >&5
5253echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5254LN_S=$as_ln_s
5255if test "$LN_S" = "ln -s"; then
5256  echo "$as_me:$LINENO: result: yes" >&5
5257echo "${ECHO_T}yes" >&6
5258else
5259  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5260echo "${ECHO_T}no, using $LN_S" >&6
5261fi
5262
5263echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5264echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5265if test "${lt_cv_deplibs_check_method+set}" = set; then
5266  echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268  lt_cv_file_magic_cmd='$MAGIC_CMD'
5269lt_cv_file_magic_test_file=
5270lt_cv_deplibs_check_method='unknown'
5271# Need to set the preceding variable on all platforms that support
5272# interlibrary dependencies.
5273# 'none' -- dependencies not supported.
5274# `unknown' -- same as none, but documents that we really don't know.
5275# 'pass_all' -- all dependencies passed with no checks.
5276# 'test_compile' -- check by making test program.
5277# 'file_magic [[regex]]' -- check by looking for files in library path
5278# which responds to the $file_magic_cmd with a given extended regex.
5279# If you have `file' or equivalent on your system and you're not sure
5280# whether `pass_all' will *always* work, you probably want this one.
5281
5282case $host_os in
5283aix4* | aix5*)
5284  lt_cv_deplibs_check_method=pass_all
5285  ;;
5286
5287beos*)
5288  lt_cv_deplibs_check_method=pass_all
5289  ;;
5290
5291bsdi[45]*)
5292  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5293  lt_cv_file_magic_cmd='/usr/bin/file -L'
5294  lt_cv_file_magic_test_file=/shlib/libc.so
5295  ;;
5296
5297cygwin*)
5298  # func_win32_libid is a shell function defined in ltmain.sh
5299  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5300  lt_cv_file_magic_cmd='func_win32_libid'
5301  ;;
5302
5303mingw* | pw32*)
5304  # Base MSYS/MinGW do not provide the 'file' command needed by
5305  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5306  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5307  lt_cv_file_magic_cmd='$OBJDUMP -f'
5308  ;;
5309
5310darwin* | rhapsody*)
5311  lt_cv_deplibs_check_method=pass_all
5312  ;;
5313
5314freebsd* | kfreebsd*-gnu | dragonfly*)
5315  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5316    case $host_cpu in
5317    i*86 )
5318      # Not sure whether the presence of OpenBSD here was a mistake.
5319      # Let's accept both of them until this is cleared up.
5320      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5321      lt_cv_file_magic_cmd=/usr/bin/file
5322      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5323      ;;
5324    esac
5325  else
5326    lt_cv_deplibs_check_method=pass_all
5327  fi
5328  ;;
5329
5330gnu*)
5331  lt_cv_deplibs_check_method=pass_all
5332  ;;
5333
5334hpux10.20* | hpux11*)
5335  lt_cv_file_magic_cmd=/usr/bin/file
5336  case "$host_cpu" in
5337  ia64*)
5338    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5339    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5340    ;;
5341  hppa*64*)
5342    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]'
5343    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5344    ;;
5345  *)
5346    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5347    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5348    ;;
5349  esac
5350  ;;
5351
5352irix5* | irix6* | nonstopux*)
5353  case $LD in
5354  *-32|*"-32 ") libmagic=32-bit;;
5355  *-n32|*"-n32 ") libmagic=N32;;
5356  *-64|*"-64 ") libmagic=64-bit;;
5357  *) libmagic=never-match;;
5358  esac
5359  lt_cv_deplibs_check_method=pass_all
5360  ;;
5361
5362# This must be Linux ELF.
5363linux*)
5364  lt_cv_deplibs_check_method=pass_all
5365  ;;
5366
5367netbsd*)
5368  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5370  else
5371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5372  fi
5373  ;;
5374
5375newos6*)
5376  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5377  lt_cv_file_magic_cmd=/usr/bin/file
5378  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5379  ;;
5380
5381nto-qnx*)
5382  lt_cv_deplibs_check_method=unknown
5383  ;;
5384
5385openbsd*)
5386  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5387    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5388  else
5389    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5390  fi
5391  ;;
5392
5393osf3* | osf4* | osf5*)
5394  lt_cv_deplibs_check_method=pass_all
5395  ;;
5396
5397sco3.2v5*)
5398  lt_cv_deplibs_check_method=pass_all
5399  ;;
5400
5401solaris*)
5402  lt_cv_deplibs_check_method=pass_all
5403  ;;
5404
5405sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5406  case $host_vendor in
5407  motorola)
5408    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]'
5409    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5410    ;;
5411  ncr)
5412    lt_cv_deplibs_check_method=pass_all
5413    ;;
5414  sequent)
5415    lt_cv_file_magic_cmd='/bin/file'
5416    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5417    ;;
5418  sni)
5419    lt_cv_file_magic_cmd='/bin/file'
5420    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5421    lt_cv_file_magic_test_file=/lib/libc.so
5422    ;;
5423  siemens)
5424    lt_cv_deplibs_check_method=pass_all
5425    ;;
5426  esac
5427  ;;
5428
5429sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5430  lt_cv_deplibs_check_method=pass_all
5431  ;;
5432esac
5433
5434fi
5435echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5436echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5437file_magic_cmd=$lt_cv_file_magic_cmd
5438deplibs_check_method=$lt_cv_deplibs_check_method
5439test -z "$deplibs_check_method" && deplibs_check_method=unknown
5440
5441
5442# If no C compiler was specified, use CC.
5443LTCC=${LTCC-"$CC"}
5444
5445# Allow CC to be a program name with arguments.
5446compiler=$CC
5447
5448# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5449if test "${enable_libtool_lock+set}" = set; then
5450  enableval="$enable_libtool_lock"
5451
5452fi;
5453test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5454
5455# Some flags need to be propagated to the compiler or linker for good
5456# libtool support.
5457case $host in
5458ia64-*-hpux*)
5459  # Find out which ABI we are using.
5460  echo 'int i;' > conftest.$ac_ext
5461  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462  (eval $ac_compile) 2>&5
5463  ac_status=$?
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); }; then
5466    case `/usr/bin/file conftest.$ac_objext` in
5467    *ELF-32*)
5468      HPUX_IA64_MODE="32"
5469      ;;
5470    *ELF-64*)
5471      HPUX_IA64_MODE="64"
5472      ;;
5473    esac
5474  fi
5475  rm -rf conftest*
5476  ;;
5477*-*-irix6*)
5478  # Find out which ABI we are using.
5479  echo '#line 5479 "configure"' > conftest.$ac_ext
5480  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481  (eval $ac_compile) 2>&5
5482  ac_status=$?
5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); }; then
5485   if test "$lt_cv_prog_gnu_ld" = yes; then
5486    case `/usr/bin/file conftest.$ac_objext` in
5487    *32-bit*)
5488      LD="${LD-ld} -melf32bsmip"
5489      ;;
5490    *N32*)
5491      LD="${LD-ld} -melf32bmipn32"
5492      ;;
5493    *64-bit*)
5494      LD="${LD-ld} -melf64bmip"
5495      ;;
5496    esac
5497   else
5498    case `/usr/bin/file conftest.$ac_objext` in
5499    *32-bit*)
5500      LD="${LD-ld} -32"
5501      ;;
5502    *N32*)
5503      LD="${LD-ld} -n32"
5504      ;;
5505    *64-bit*)
5506      LD="${LD-ld} -64"
5507      ;;
5508    esac
5509   fi
5510  fi
5511  rm -rf conftest*
5512  ;;
5513
5514x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5515  # Find out which ABI we are using.
5516  echo 'int i;' > conftest.$ac_ext
5517  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518  (eval $ac_compile) 2>&5
5519  ac_status=$?
5520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521  (exit $ac_status); }; then
5522    case "`/usr/bin/file conftest.o`" in
5523    *32-bit*)
5524      case $host in
5525        x86_64-*linux*)
5526          LD="${LD-ld} -m elf_i386"
5527          ;;
5528        ppc64-*linux*|powerpc64-*linux*)
5529          LD="${LD-ld} -m elf32ppclinux"
5530          ;;
5531        s390x-*linux*)
5532          LD="${LD-ld} -m elf_s390"
5533          ;;
5534        sparc64-*linux*)
5535          LD="${LD-ld} -m elf32_sparc"
5536          ;;
5537      esac
5538      ;;
5539    *64-bit*)
5540      case $host in
5541        x86_64-*linux*)
5542          LD="${LD-ld} -m elf_x86_64"
5543          ;;
5544        ppc*-*linux*|powerpc*-*linux*)
5545          LD="${LD-ld} -m elf64ppc"
5546          ;;
5547        s390*-*linux*)
5548          LD="${LD-ld} -m elf64_s390"
5549          ;;
5550        sparc*-*linux*)
5551          LD="${LD-ld} -m elf64_sparc"
5552          ;;
5553      esac
5554      ;;
5555    esac
5556  fi
5557  rm -rf conftest*
5558  ;;
5559
5560*-*-sco3.2v5*)
5561  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5562  SAVE_CFLAGS="$CFLAGS"
5563  CFLAGS="$CFLAGS -belf"
5564  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5565echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5566if test "${lt_cv_cc_needs_belf+set}" = set; then
5567  echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569  ac_ext=c
5570ac_cpp='$CPP $CPPFLAGS'
5571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574
5575     cat >conftest.$ac_ext <<_ACEOF
5576/* confdefs.h.  */
5577_ACEOF
5578cat confdefs.h >>conftest.$ac_ext
5579cat >>conftest.$ac_ext <<_ACEOF
5580/* end confdefs.h.  */
5581
5582int
5583main ()
5584{
5585
5586  ;
5587  return 0;
5588}
5589_ACEOF
5590rm -f conftest.$ac_objext conftest$ac_exeext
5591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592  (eval $ac_link) 2>conftest.er1
5593  ac_status=$?
5594  grep -v '^ *+' conftest.er1 >conftest.err
5595  rm -f conftest.er1
5596  cat conftest.err >&5
5597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598  (exit $ac_status); } &&
5599	 { ac_try='test -z "$ac_c_werror_flag"
5600			 || test ! -s conftest.err'
5601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602  (eval $ac_try) 2>&5
5603  ac_status=$?
5604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605  (exit $ac_status); }; } &&
5606	 { ac_try='test -s conftest$ac_exeext'
5607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608  (eval $ac_try) 2>&5
5609  ac_status=$?
5610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611  (exit $ac_status); }; }; then
5612  lt_cv_cc_needs_belf=yes
5613else
5614  echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617lt_cv_cc_needs_belf=no
5618fi
5619rm -f conftest.err conftest.$ac_objext \
5620      conftest$ac_exeext conftest.$ac_ext
5621     ac_ext=c
5622ac_cpp='$CPP $CPPFLAGS'
5623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626
5627fi
5628echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5629echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5630  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5631    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5632    CFLAGS="$SAVE_CFLAGS"
5633  fi
5634  ;;
5635*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5636  if test -n "$ac_tool_prefix"; then
5637  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5638set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5639echo "$as_me:$LINENO: checking for $ac_word" >&5
5640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5642  echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644  if test -n "$DLLTOOL"; then
5645  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650  IFS=$as_save_IFS
5651  test -z "$as_dir" && as_dir=.
5652  for ac_exec_ext in '' $ac_executable_extensions; do
5653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656    break 2
5657  fi
5658done
5659done
5660
5661fi
5662fi
5663DLLTOOL=$ac_cv_prog_DLLTOOL
5664if test -n "$DLLTOOL"; then
5665  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5666echo "${ECHO_T}$DLLTOOL" >&6
5667else
5668  echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6
5670fi
5671
5672fi
5673if test -z "$ac_cv_prog_DLLTOOL"; then
5674  ac_ct_DLLTOOL=$DLLTOOL
5675  # Extract the first word of "dlltool", so it can be a program name with args.
5676set dummy dlltool; ac_word=$2
5677echo "$as_me:$LINENO: checking for $ac_word" >&5
5678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5679if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5680  echo $ECHO_N "(cached) $ECHO_C" >&6
5681else
5682  if test -n "$ac_ct_DLLTOOL"; then
5683  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688  IFS=$as_save_IFS
5689  test -z "$as_dir" && as_dir=.
5690  for ac_exec_ext in '' $ac_executable_extensions; do
5691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694    break 2
5695  fi
5696done
5697done
5698
5699  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5700fi
5701fi
5702ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5703if test -n "$ac_ct_DLLTOOL"; then
5704  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5705echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5706else
5707  echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6
5709fi
5710
5711  DLLTOOL=$ac_ct_DLLTOOL
5712else
5713  DLLTOOL="$ac_cv_prog_DLLTOOL"
5714fi
5715
5716  if test -n "$ac_tool_prefix"; then
5717  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5718set dummy ${ac_tool_prefix}as; ac_word=$2
5719echo "$as_me:$LINENO: checking for $ac_word" >&5
5720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721if test "${ac_cv_prog_AS+set}" = set; then
5722  echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724  if test -n "$AS"; then
5725  ac_cv_prog_AS="$AS" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730  IFS=$as_save_IFS
5731  test -z "$as_dir" && as_dir=.
5732  for ac_exec_ext in '' $ac_executable_extensions; do
5733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734    ac_cv_prog_AS="${ac_tool_prefix}as"
5735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736    break 2
5737  fi
5738done
5739done
5740
5741fi
5742fi
5743AS=$ac_cv_prog_AS
5744if test -n "$AS"; then
5745  echo "$as_me:$LINENO: result: $AS" >&5
5746echo "${ECHO_T}$AS" >&6
5747else
5748  echo "$as_me:$LINENO: result: no" >&5
5749echo "${ECHO_T}no" >&6
5750fi
5751
5752fi
5753if test -z "$ac_cv_prog_AS"; then
5754  ac_ct_AS=$AS
5755  # Extract the first word of "as", so it can be a program name with args.
5756set dummy as; ac_word=$2
5757echo "$as_me:$LINENO: checking for $ac_word" >&5
5758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5759if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5760  echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762  if test -n "$ac_ct_AS"; then
5763  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768  IFS=$as_save_IFS
5769  test -z "$as_dir" && as_dir=.
5770  for ac_exec_ext in '' $ac_executable_extensions; do
5771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772    ac_cv_prog_ac_ct_AS="as"
5773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774    break 2
5775  fi
5776done
5777done
5778
5779  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5780fi
5781fi
5782ac_ct_AS=$ac_cv_prog_ac_ct_AS
5783if test -n "$ac_ct_AS"; then
5784  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5785echo "${ECHO_T}$ac_ct_AS" >&6
5786else
5787  echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
5789fi
5790
5791  AS=$ac_ct_AS
5792else
5793  AS="$ac_cv_prog_AS"
5794fi
5795
5796  if test -n "$ac_tool_prefix"; then
5797  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5798set dummy ${ac_tool_prefix}objdump; ac_word=$2
5799echo "$as_me:$LINENO: checking for $ac_word" >&5
5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5802  echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804  if test -n "$OBJDUMP"; then
5805  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810  IFS=$as_save_IFS
5811  test -z "$as_dir" && as_dir=.
5812  for ac_exec_ext in '' $ac_executable_extensions; do
5813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816    break 2
5817  fi
5818done
5819done
5820
5821fi
5822fi
5823OBJDUMP=$ac_cv_prog_OBJDUMP
5824if test -n "$OBJDUMP"; then
5825  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5826echo "${ECHO_T}$OBJDUMP" >&6
5827else
5828  echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830fi
5831
5832fi
5833if test -z "$ac_cv_prog_OBJDUMP"; then
5834  ac_ct_OBJDUMP=$OBJDUMP
5835  # Extract the first word of "objdump", so it can be a program name with args.
5836set dummy objdump; ac_word=$2
5837echo "$as_me:$LINENO: checking for $ac_word" >&5
5838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5839if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5840  echo $ECHO_N "(cached) $ECHO_C" >&6
5841else
5842  if test -n "$ac_ct_OBJDUMP"; then
5843  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850  for ac_exec_ext in '' $ac_executable_extensions; do
5851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854    break 2
5855  fi
5856done
5857done
5858
5859  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5860fi
5861fi
5862ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5863if test -n "$ac_ct_OBJDUMP"; then
5864  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5865echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5866else
5867  echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6
5869fi
5870
5871  OBJDUMP=$ac_ct_OBJDUMP
5872else
5873  OBJDUMP="$ac_cv_prog_OBJDUMP"
5874fi
5875
5876  ;;
5877
5878esac
5879
5880need_locks="$enable_libtool_lock"
5881
5882
5883
5884for ac_header in dlfcn.h
5885do
5886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5887if eval "test \"\${$as_ac_Header+set}\" = set"; then
5888  echo "$as_me:$LINENO: checking for $ac_header" >&5
5889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5890if eval "test \"\${$as_ac_Header+set}\" = set"; then
5891  echo $ECHO_N "(cached) $ECHO_C" >&6
5892fi
5893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5895else
5896  # Is the header compilable?
5897echo "$as_me:$LINENO: checking $ac_header usability" >&5
5898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5899cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h.  */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h.  */
5905$ac_includes_default
5906#include <$ac_header>
5907_ACEOF
5908rm -f conftest.$ac_objext
5909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910  (eval $ac_compile) 2>conftest.er1
5911  ac_status=$?
5912  grep -v '^ *+' conftest.er1 >conftest.err
5913  rm -f conftest.er1
5914  cat conftest.err >&5
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); } &&
5917	 { ac_try='test -z "$ac_c_werror_flag"
5918			 || test ! -s conftest.err'
5919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920  (eval $ac_try) 2>&5
5921  ac_status=$?
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); }; } &&
5924	 { ac_try='test -s conftest.$ac_objext'
5925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926  (eval $ac_try) 2>&5
5927  ac_status=$?
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); }; }; then
5930  ac_header_compiler=yes
5931else
5932  echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935ac_header_compiler=no
5936fi
5937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5939echo "${ECHO_T}$ac_header_compiler" >&6
5940
5941# Is the header present?
5942echo "$as_me:$LINENO: checking $ac_header presence" >&5
5943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5944cat >conftest.$ac_ext <<_ACEOF
5945/* confdefs.h.  */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
5949/* end confdefs.h.  */
5950#include <$ac_header>
5951_ACEOF
5952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954  ac_status=$?
5955  grep -v '^ *+' conftest.er1 >conftest.err
5956  rm -f conftest.er1
5957  cat conftest.err >&5
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); } >/dev/null; then
5960  if test -s conftest.err; then
5961    ac_cpp_err=$ac_c_preproc_warn_flag
5962    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963  else
5964    ac_cpp_err=
5965  fi
5966else
5967  ac_cpp_err=yes
5968fi
5969if test -z "$ac_cpp_err"; then
5970  ac_header_preproc=yes
5971else
5972  echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975  ac_header_preproc=no
5976fi
5977rm -f conftest.err conftest.$ac_ext
5978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5979echo "${ECHO_T}$ac_header_preproc" >&6
5980
5981# So?  What about this header?
5982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5983  yes:no: )
5984    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5988    ac_header_preproc=yes
5989    ;;
5990  no:yes:* )
5991    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5993    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5994echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5995    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5997    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5998echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5999    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6001    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6003    (
6004      cat <<\_ASBOX
6005## ------------------------------------------ ##
6006## Report this to the AC_PACKAGE_NAME lists.  ##
6007## ------------------------------------------ ##
6008_ASBOX
6009    ) |
6010      sed "s/^/$as_me: WARNING:     /" >&2
6011    ;;
6012esac
6013echo "$as_me:$LINENO: checking for $ac_header" >&5
6014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  eval "$as_ac_Header=\$ac_header_preproc"
6019fi
6020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022
6023fi
6024if test `eval echo '${'$as_ac_Header'}'` = yes; then
6025  cat >>confdefs.h <<_ACEOF
6026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6027_ACEOF
6028
6029fi
6030
6031done
6032
6033ac_ext=cc
6034ac_cpp='$CXXCPP $CPPFLAGS'
6035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6038if test -n "$ac_tool_prefix"; then
6039  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6040  do
6041    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6043echo "$as_me:$LINENO: checking for $ac_word" >&5
6044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6045if test "${ac_cv_prog_CXX+set}" = set; then
6046  echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048  if test -n "$CXX"; then
6049  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054  IFS=$as_save_IFS
6055  test -z "$as_dir" && as_dir=.
6056  for ac_exec_ext in '' $ac_executable_extensions; do
6057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060    break 2
6061  fi
6062done
6063done
6064
6065fi
6066fi
6067CXX=$ac_cv_prog_CXX
6068if test -n "$CXX"; then
6069  echo "$as_me:$LINENO: result: $CXX" >&5
6070echo "${ECHO_T}$CXX" >&6
6071else
6072  echo "$as_me:$LINENO: result: no" >&5
6073echo "${ECHO_T}no" >&6
6074fi
6075
6076    test -n "$CXX" && break
6077  done
6078fi
6079if test -z "$CXX"; then
6080  ac_ct_CXX=$CXX
6081  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6082do
6083  # Extract the first word of "$ac_prog", so it can be a program name with args.
6084set dummy $ac_prog; ac_word=$2
6085echo "$as_me:$LINENO: checking for $ac_word" >&5
6086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6087if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  if test -n "$ac_ct_CXX"; then
6091  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096  IFS=$as_save_IFS
6097  test -z "$as_dir" && as_dir=.
6098  for ac_exec_ext in '' $ac_executable_extensions; do
6099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100    ac_cv_prog_ac_ct_CXX="$ac_prog"
6101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102    break 2
6103  fi
6104done
6105done
6106
6107fi
6108fi
6109ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6110if test -n "$ac_ct_CXX"; then
6111  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6112echo "${ECHO_T}$ac_ct_CXX" >&6
6113else
6114  echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6
6116fi
6117
6118  test -n "$ac_ct_CXX" && break
6119done
6120test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6121
6122  CXX=$ac_ct_CXX
6123fi
6124
6125
6126# Provide some information about the compiler.
6127echo "$as_me:$LINENO:" \
6128     "checking for C++ compiler version" >&5
6129ac_compiler=`set X $ac_compile; echo $2`
6130{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6131  (eval $ac_compiler --version </dev/null >&5) 2>&5
6132  ac_status=$?
6133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134  (exit $ac_status); }
6135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6136  (eval $ac_compiler -v </dev/null >&5) 2>&5
6137  ac_status=$?
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }
6140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6141  (eval $ac_compiler -V </dev/null >&5) 2>&5
6142  ac_status=$?
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); }
6145
6146echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6147echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6148if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6149  echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151  cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h.  */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h.  */
6157
6158int
6159main ()
6160{
6161#ifndef __GNUC__
6162       choke me
6163#endif
6164
6165  ;
6166  return 0;
6167}
6168_ACEOF
6169rm -f conftest.$ac_objext
6170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171  (eval $ac_compile) 2>conftest.er1
6172  ac_status=$?
6173  grep -v '^ *+' conftest.er1 >conftest.err
6174  rm -f conftest.er1
6175  cat conftest.err >&5
6176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177  (exit $ac_status); } &&
6178	 { ac_try='test -z "$ac_cxx_werror_flag"
6179			 || test ! -s conftest.err'
6180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181  (eval $ac_try) 2>&5
6182  ac_status=$?
6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); }; } &&
6185	 { ac_try='test -s conftest.$ac_objext'
6186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187  (eval $ac_try) 2>&5
6188  ac_status=$?
6189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190  (exit $ac_status); }; }; then
6191  ac_compiler_gnu=yes
6192else
6193  echo "$as_me: failed program was:" >&5
6194sed 's/^/| /' conftest.$ac_ext >&5
6195
6196ac_compiler_gnu=no
6197fi
6198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6200
6201fi
6202echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6203echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6204GXX=`test $ac_compiler_gnu = yes && echo yes`
6205ac_test_CXXFLAGS=${CXXFLAGS+set}
6206ac_save_CXXFLAGS=$CXXFLAGS
6207CXXFLAGS="-g"
6208echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6209echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6210if test "${ac_cv_prog_cxx_g+set}" = set; then
6211  echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213  cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h.  */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h.  */
6219
6220int
6221main ()
6222{
6223
6224  ;
6225  return 0;
6226}
6227_ACEOF
6228rm -f conftest.$ac_objext
6229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230  (eval $ac_compile) 2>conftest.er1
6231  ac_status=$?
6232  grep -v '^ *+' conftest.er1 >conftest.err
6233  rm -f conftest.er1
6234  cat conftest.err >&5
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); } &&
6237	 { ac_try='test -z "$ac_cxx_werror_flag"
6238			 || test ! -s conftest.err'
6239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240  (eval $ac_try) 2>&5
6241  ac_status=$?
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); }; } &&
6244	 { ac_try='test -s conftest.$ac_objext'
6245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246  (eval $ac_try) 2>&5
6247  ac_status=$?
6248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249  (exit $ac_status); }; }; then
6250  ac_cv_prog_cxx_g=yes
6251else
6252  echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255ac_cv_prog_cxx_g=no
6256fi
6257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258fi
6259echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6260echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6261if test "$ac_test_CXXFLAGS" = set; then
6262  CXXFLAGS=$ac_save_CXXFLAGS
6263elif test $ac_cv_prog_cxx_g = yes; then
6264  if test "$GXX" = yes; then
6265    CXXFLAGS="-g -O2"
6266  else
6267    CXXFLAGS="-g"
6268  fi
6269else
6270  if test "$GXX" = yes; then
6271    CXXFLAGS="-O2"
6272  else
6273    CXXFLAGS=
6274  fi
6275fi
6276for ac_declaration in \
6277   '' \
6278   'extern "C" void std::exit (int) throw (); using std::exit;' \
6279   'extern "C" void std::exit (int); using std::exit;' \
6280   'extern "C" void exit (int) throw ();' \
6281   'extern "C" void exit (int);' \
6282   'void exit (int);'
6283do
6284  cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h.  */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h.  */
6290$ac_declaration
6291#include <stdlib.h>
6292int
6293main ()
6294{
6295exit (42);
6296  ;
6297  return 0;
6298}
6299_ACEOF
6300rm -f conftest.$ac_objext
6301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302  (eval $ac_compile) 2>conftest.er1
6303  ac_status=$?
6304  grep -v '^ *+' conftest.er1 >conftest.err
6305  rm -f conftest.er1
6306  cat conftest.err >&5
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); } &&
6309	 { ac_try='test -z "$ac_cxx_werror_flag"
6310			 || test ! -s conftest.err'
6311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312  (eval $ac_try) 2>&5
6313  ac_status=$?
6314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315  (exit $ac_status); }; } &&
6316	 { ac_try='test -s conftest.$ac_objext'
6317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318  (eval $ac_try) 2>&5
6319  ac_status=$?
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); }; }; then
6322  :
6323else
6324  echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327continue
6328fi
6329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330  cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h.  */
6332_ACEOF
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h.  */
6336$ac_declaration
6337int
6338main ()
6339{
6340exit (42);
6341  ;
6342  return 0;
6343}
6344_ACEOF
6345rm -f conftest.$ac_objext
6346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347  (eval $ac_compile) 2>conftest.er1
6348  ac_status=$?
6349  grep -v '^ *+' conftest.er1 >conftest.err
6350  rm -f conftest.er1
6351  cat conftest.err >&5
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); } &&
6354	 { ac_try='test -z "$ac_cxx_werror_flag"
6355			 || test ! -s conftest.err'
6356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357  (eval $ac_try) 2>&5
6358  ac_status=$?
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); }; } &&
6361	 { ac_try='test -s conftest.$ac_objext'
6362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363  (eval $ac_try) 2>&5
6364  ac_status=$?
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); }; }; then
6367  break
6368else
6369  echo "$as_me: failed program was:" >&5
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372fi
6373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6374done
6375rm -f conftest*
6376if test -n "$ac_declaration"; then
6377  echo '#ifdef __cplusplus' >>confdefs.h
6378  echo $ac_declaration      >>confdefs.h
6379  echo '#endif'             >>confdefs.h
6380fi
6381
6382ac_ext=cc
6383ac_cpp='$CXXCPP $CPPFLAGS'
6384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6387
6388depcc="$CXX"  am_compiler_list=
6389
6390echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6391echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6392if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6393  echo $ECHO_N "(cached) $ECHO_C" >&6
6394else
6395  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6396  # We make a subdir and do the tests there.  Otherwise we can end up
6397  # making bogus files that we don't know about and never remove.  For
6398  # instance it was reported that on HP-UX the gcc test will end up
6399  # making a dummy file named `D' -- because `-MD' means `put the output
6400  # in D'.
6401  mkdir conftest.dir
6402  # Copy depcomp to subdir because otherwise we won't find it if we're
6403  # using a relative directory.
6404  cp "$am_depcomp" conftest.dir
6405  cd conftest.dir
6406  # We will build objects and dependencies in a subdirectory because
6407  # it helps to detect inapplicable dependency modes.  For instance
6408  # both Tru64's cc and ICC support -MD to output dependencies as a
6409  # side effect of compilation, but ICC will put the dependencies in
6410  # the current directory while Tru64 will put them in the object
6411  # directory.
6412  mkdir sub
6413
6414  am_cv_CXX_dependencies_compiler_type=none
6415  if test "$am_compiler_list" = ""; then
6416     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6417  fi
6418  for depmode in $am_compiler_list; do
6419    # Setup a source with many dependencies, because some compilers
6420    # like to wrap large dependency lists on column 80 (with \), and
6421    # we should not choose a depcomp mode which is confused by this.
6422    #
6423    # We need to recreate these files for each test, as the compiler may
6424    # overwrite some of them when testing with obscure command lines.
6425    # This happens at least with the AIX C compiler.
6426    : > sub/conftest.c
6427    for i in 1 2 3 4 5 6; do
6428      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6429      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6430      # Solaris 8's {/usr,}/bin/sh.
6431      touch sub/conftst$i.h
6432    done
6433    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6434
6435    case $depmode in
6436    nosideeffect)
6437      # after this tag, mechanisms are not by side-effect, so they'll
6438      # only be used when explicitly requested
6439      if test "x$enable_dependency_tracking" = xyes; then
6440	continue
6441      else
6442	break
6443      fi
6444      ;;
6445    none) break ;;
6446    esac
6447    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6448    # mode.  It turns out that the SunPro C++ compiler does not properly
6449    # handle `-M -o', and we need to detect this.
6450    if depmode=$depmode \
6451       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6452       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6453       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6454         >/dev/null 2>conftest.err &&
6455       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6456       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6457       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6458      # icc doesn't choke on unknown options, it will just issue warnings
6459      # or remarks (even with -Werror).  So we grep stderr for any message
6460      # that says an option was ignored or not supported.
6461      # When given -MP, icc 7.0 and 7.1 complain thusly:
6462      #   icc: Command line warning: ignoring option '-M'; no argument required
6463      # The diagnosis changed in icc 8.0:
6464      #   icc: Command line remark: option '-MP' not supported
6465      if (grep 'ignoring option' conftest.err ||
6466          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6467        am_cv_CXX_dependencies_compiler_type=$depmode
6468        break
6469      fi
6470    fi
6471  done
6472
6473  cd ..
6474  rm -rf conftest.dir
6475else
6476  am_cv_CXX_dependencies_compiler_type=none
6477fi
6478
6479fi
6480echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6481echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6482CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6483
6484
6485
6486if
6487  test "x$enable_dependency_tracking" != xno \
6488  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6489  am__fastdepCXX_TRUE=
6490  am__fastdepCXX_FALSE='#'
6491else
6492  am__fastdepCXX_TRUE='#'
6493  am__fastdepCXX_FALSE=
6494fi
6495
6496
6497
6498
6499if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6500    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6501    (test "X$CXX" != "Xg++"))) ; then
6502  ac_ext=cc
6503ac_cpp='$CXXCPP $CPPFLAGS'
6504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6507echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6508echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6509if test -z "$CXXCPP"; then
6510  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6511  echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513      # Double quotes because CXXCPP needs to be expanded
6514    for CXXCPP in "$CXX -E" "/lib/cpp"
6515    do
6516      ac_preproc_ok=false
6517for ac_cxx_preproc_warn_flag in '' yes
6518do
6519  # Use a header file that comes with gcc, so configuring glibc
6520  # with a fresh cross-compiler works.
6521  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6522  # <limits.h> exists even on freestanding compilers.
6523  # On the NeXT, cc -E runs the code through the compiler's parser,
6524  # not just through cpp. "Syntax error" is here to catch this case.
6525  cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h.  */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h.  */
6531#ifdef __STDC__
6532# include <limits.h>
6533#else
6534# include <assert.h>
6535#endif
6536		     Syntax error
6537_ACEOF
6538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6539  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6540  ac_status=$?
6541  grep -v '^ *+' conftest.er1 >conftest.err
6542  rm -f conftest.er1
6543  cat conftest.err >&5
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); } >/dev/null; then
6546  if test -s conftest.err; then
6547    ac_cpp_err=$ac_cxx_preproc_warn_flag
6548    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6549  else
6550    ac_cpp_err=
6551  fi
6552else
6553  ac_cpp_err=yes
6554fi
6555if test -z "$ac_cpp_err"; then
6556  :
6557else
6558  echo "$as_me: failed program was:" >&5
6559sed 's/^/| /' conftest.$ac_ext >&5
6560
6561  # Broken: fails on valid input.
6562continue
6563fi
6564rm -f conftest.err conftest.$ac_ext
6565
6566  # OK, works on sane cases.  Now check whether non-existent headers
6567  # can be detected and how.
6568  cat >conftest.$ac_ext <<_ACEOF
6569/* confdefs.h.  */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
6573/* end confdefs.h.  */
6574#include <ac_nonexistent.h>
6575_ACEOF
6576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6577  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6578  ac_status=$?
6579  grep -v '^ *+' conftest.er1 >conftest.err
6580  rm -f conftest.er1
6581  cat conftest.err >&5
6582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583  (exit $ac_status); } >/dev/null; then
6584  if test -s conftest.err; then
6585    ac_cpp_err=$ac_cxx_preproc_warn_flag
6586    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6587  else
6588    ac_cpp_err=
6589  fi
6590else
6591  ac_cpp_err=yes
6592fi
6593if test -z "$ac_cpp_err"; then
6594  # Broken: success on invalid input.
6595continue
6596else
6597  echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600  # Passes both tests.
6601ac_preproc_ok=:
6602break
6603fi
6604rm -f conftest.err conftest.$ac_ext
6605
6606done
6607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6608rm -f conftest.err conftest.$ac_ext
6609if $ac_preproc_ok; then
6610  break
6611fi
6612
6613    done
6614    ac_cv_prog_CXXCPP=$CXXCPP
6615
6616fi
6617  CXXCPP=$ac_cv_prog_CXXCPP
6618else
6619  ac_cv_prog_CXXCPP=$CXXCPP
6620fi
6621echo "$as_me:$LINENO: result: $CXXCPP" >&5
6622echo "${ECHO_T}$CXXCPP" >&6
6623ac_preproc_ok=false
6624for ac_cxx_preproc_warn_flag in '' yes
6625do
6626  # Use a header file that comes with gcc, so configuring glibc
6627  # with a fresh cross-compiler works.
6628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6629  # <limits.h> exists even on freestanding compilers.
6630  # On the NeXT, cc -E runs the code through the compiler's parser,
6631  # not just through cpp. "Syntax error" is here to catch this case.
6632  cat >conftest.$ac_ext <<_ACEOF
6633/* confdefs.h.  */
6634_ACEOF
6635cat confdefs.h >>conftest.$ac_ext
6636cat >>conftest.$ac_ext <<_ACEOF
6637/* end confdefs.h.  */
6638#ifdef __STDC__
6639# include <limits.h>
6640#else
6641# include <assert.h>
6642#endif
6643		     Syntax error
6644_ACEOF
6645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6646  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6647  ac_status=$?
6648  grep -v '^ *+' conftest.er1 >conftest.err
6649  rm -f conftest.er1
6650  cat conftest.err >&5
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); } >/dev/null; then
6653  if test -s conftest.err; then
6654    ac_cpp_err=$ac_cxx_preproc_warn_flag
6655    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6656  else
6657    ac_cpp_err=
6658  fi
6659else
6660  ac_cpp_err=yes
6661fi
6662if test -z "$ac_cpp_err"; then
6663  :
6664else
6665  echo "$as_me: failed program was:" >&5
6666sed 's/^/| /' conftest.$ac_ext >&5
6667
6668  # Broken: fails on valid input.
6669continue
6670fi
6671rm -f conftest.err conftest.$ac_ext
6672
6673  # OK, works on sane cases.  Now check whether non-existent headers
6674  # can be detected and how.
6675  cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h.  */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h.  */
6681#include <ac_nonexistent.h>
6682_ACEOF
6683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6684  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6685  ac_status=$?
6686  grep -v '^ *+' conftest.er1 >conftest.err
6687  rm -f conftest.er1
6688  cat conftest.err >&5
6689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); } >/dev/null; then
6691  if test -s conftest.err; then
6692    ac_cpp_err=$ac_cxx_preproc_warn_flag
6693    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6694  else
6695    ac_cpp_err=
6696  fi
6697else
6698  ac_cpp_err=yes
6699fi
6700if test -z "$ac_cpp_err"; then
6701  # Broken: success on invalid input.
6702continue
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707  # Passes both tests.
6708ac_preproc_ok=:
6709break
6710fi
6711rm -f conftest.err conftest.$ac_ext
6712
6713done
6714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6715rm -f conftest.err conftest.$ac_ext
6716if $ac_preproc_ok; then
6717  :
6718else
6719  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6720See \`config.log' for more details." >&5
6721echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6722See \`config.log' for more details." >&2;}
6723   { (exit 1); exit 1; }; }
6724fi
6725
6726ac_ext=cc
6727ac_cpp='$CXXCPP $CPPFLAGS'
6728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6731
6732fi
6733
6734
6735ac_ext=f
6736ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6737ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6739if test -n "$ac_tool_prefix"; then
6740  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6741  do
6742    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6744echo "$as_me:$LINENO: checking for $ac_word" >&5
6745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746if test "${ac_cv_prog_F77+set}" = set; then
6747  echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749  if test -n "$F77"; then
6750  ac_cv_prog_F77="$F77" # Let the user override the test.
6751else
6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755  IFS=$as_save_IFS
6756  test -z "$as_dir" && as_dir=.
6757  for ac_exec_ext in '' $ac_executable_extensions; do
6758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761    break 2
6762  fi
6763done
6764done
6765
6766fi
6767fi
6768F77=$ac_cv_prog_F77
6769if test -n "$F77"; then
6770  echo "$as_me:$LINENO: result: $F77" >&5
6771echo "${ECHO_T}$F77" >&6
6772else
6773  echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6
6775fi
6776
6777    test -n "$F77" && break
6778  done
6779fi
6780if test -z "$F77"; then
6781  ac_ct_F77=$F77
6782  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6783do
6784  # Extract the first word of "$ac_prog", so it can be a program name with args.
6785set dummy $ac_prog; ac_word=$2
6786echo "$as_me:$LINENO: checking for $ac_word" >&5
6787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6788if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6789  echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791  if test -n "$ac_ct_F77"; then
6792  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797  IFS=$as_save_IFS
6798  test -z "$as_dir" && as_dir=.
6799  for ac_exec_ext in '' $ac_executable_extensions; do
6800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801    ac_cv_prog_ac_ct_F77="$ac_prog"
6802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803    break 2
6804  fi
6805done
6806done
6807
6808fi
6809fi
6810ac_ct_F77=$ac_cv_prog_ac_ct_F77
6811if test -n "$ac_ct_F77"; then
6812  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6813echo "${ECHO_T}$ac_ct_F77" >&6
6814else
6815  echo "$as_me:$LINENO: result: no" >&5
6816echo "${ECHO_T}no" >&6
6817fi
6818
6819  test -n "$ac_ct_F77" && break
6820done
6821
6822  F77=$ac_ct_F77
6823fi
6824
6825
6826# Provide some information about the compiler.
6827echo "$as_me:6827:" \
6828     "checking for Fortran 77 compiler version" >&5
6829ac_compiler=`set X $ac_compile; echo $2`
6830{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6831  (eval $ac_compiler --version </dev/null >&5) 2>&5
6832  ac_status=$?
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); }
6835{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6836  (eval $ac_compiler -v </dev/null >&5) 2>&5
6837  ac_status=$?
6838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839  (exit $ac_status); }
6840{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6841  (eval $ac_compiler -V </dev/null >&5) 2>&5
6842  ac_status=$?
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); }
6845rm -f a.out
6846
6847# If we don't use `.F' as extension, the preprocessor is not run on the
6848# input file.  (Note that this only needs to work for GNU compilers.)
6849ac_save_ext=$ac_ext
6850ac_ext=F
6851echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6852echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6853if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6854  echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856  cat >conftest.$ac_ext <<_ACEOF
6857      program main
6858#ifndef __GNUC__
6859       choke me
6860#endif
6861
6862      end
6863_ACEOF
6864rm -f conftest.$ac_objext
6865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866  (eval $ac_compile) 2>conftest.er1
6867  ac_status=$?
6868  grep -v '^ *+' conftest.er1 >conftest.err
6869  rm -f conftest.er1
6870  cat conftest.err >&5
6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); } &&
6873	 { ac_try='test -z "$ac_f77_werror_flag"
6874			 || test ! -s conftest.err'
6875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876  (eval $ac_try) 2>&5
6877  ac_status=$?
6878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879  (exit $ac_status); }; } &&
6880	 { ac_try='test -s conftest.$ac_objext'
6881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882  (eval $ac_try) 2>&5
6883  ac_status=$?
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); }; }; then
6886  ac_compiler_gnu=yes
6887else
6888  echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891ac_compiler_gnu=no
6892fi
6893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6894ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6895
6896fi
6897echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6898echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6899ac_ext=$ac_save_ext
6900ac_test_FFLAGS=${FFLAGS+set}
6901ac_save_FFLAGS=$FFLAGS
6902FFLAGS=
6903echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6904echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6905if test "${ac_cv_prog_f77_g+set}" = set; then
6906  echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908  FFLAGS=-g
6909cat >conftest.$ac_ext <<_ACEOF
6910      program main
6911
6912      end
6913_ACEOF
6914rm -f conftest.$ac_objext
6915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916  (eval $ac_compile) 2>conftest.er1
6917  ac_status=$?
6918  grep -v '^ *+' conftest.er1 >conftest.err
6919  rm -f conftest.er1
6920  cat conftest.err >&5
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); } &&
6923	 { ac_try='test -z "$ac_f77_werror_flag"
6924			 || test ! -s conftest.err'
6925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926  (eval $ac_try) 2>&5
6927  ac_status=$?
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); }; } &&
6930	 { ac_try='test -s conftest.$ac_objext'
6931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932  (eval $ac_try) 2>&5
6933  ac_status=$?
6934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); }; }; then
6936  ac_cv_prog_f77_g=yes
6937else
6938  echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941ac_cv_prog_f77_g=no
6942fi
6943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6944
6945fi
6946echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6947echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6948if test "$ac_test_FFLAGS" = set; then
6949  FFLAGS=$ac_save_FFLAGS
6950elif test $ac_cv_prog_f77_g = yes; then
6951  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6952    FFLAGS="-g -O2"
6953  else
6954    FFLAGS="-g"
6955  fi
6956else
6957  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6958    FFLAGS="-O2"
6959  else
6960    FFLAGS=
6961  fi
6962fi
6963
6964G77=`test $ac_compiler_gnu = yes && echo yes`
6965ac_ext=c
6966ac_cpp='$CPP $CPPFLAGS'
6967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969ac_compiler_gnu=$ac_cv_c_compiler_gnu
6970
6971
6972
6973# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6974
6975# find the maximum length of command line arguments
6976echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6977echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6978if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6979  echo $ECHO_N "(cached) $ECHO_C" >&6
6980else
6981    i=0
6982  teststring="ABCD"
6983
6984  case $build_os in
6985  msdosdjgpp*)
6986    # On DJGPP, this test can blow up pretty badly due to problems in libc
6987    # (any single argument exceeding 2000 bytes causes a buffer overrun
6988    # during glob expansion).  Even if it were fixed, the result of this
6989    # check would be larger than it should be.
6990    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6991    ;;
6992
6993  gnu*)
6994    # Under GNU Hurd, this test is not required because there is
6995    # no limit to the length of command line arguments.
6996    # Libtool will interpret -1 as no limit whatsoever
6997    lt_cv_sys_max_cmd_len=-1;
6998    ;;
6999
7000  cygwin* | mingw*)
7001    # On Win9x/ME, this test blows up -- it succeeds, but takes
7002    # about 5 minutes as the teststring grows exponentially.
7003    # Worse, since 9x/ME are not pre-emptively multitasking,
7004    # you end up with a "frozen" computer, even though with patience
7005    # the test eventually succeeds (with a max line length of 256k).
7006    # Instead, let's just punt: use the minimum linelength reported by
7007    # all of the supported platforms: 8192 (on NT/2K/XP).
7008    lt_cv_sys_max_cmd_len=8192;
7009    ;;
7010
7011  amigaos*)
7012    # On AmigaOS with pdksh, this test takes hours, literally.
7013    # So we just punt and use a minimum line length of 8192.
7014    lt_cv_sys_max_cmd_len=8192;
7015    ;;
7016
7017  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7018    # This has been around since 386BSD, at least.  Likely further.
7019    if test -x /sbin/sysctl; then
7020      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7021    elif test -x /usr/sbin/sysctl; then
7022      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7023    else
7024      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7025    fi
7026    # And add a safety zone
7027    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7028    ;;
7029  osf*)
7030    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7031    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7032    # nice to cause kernel panics so lets avoid the loop below.
7033    # First set a reasonable default.
7034    lt_cv_sys_max_cmd_len=16384
7035    #
7036    if test -x /sbin/sysconfig; then
7037      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7038        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7039      esac
7040    fi
7041    ;;
7042  *)
7043    # If test is not a shell built-in, we'll probably end up computing a
7044    # maximum length that is only half of the actual maximum length, but
7045    # we can't tell.
7046    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7047    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7048	       = "XX$teststring") >/dev/null 2>&1 &&
7049	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7050	    lt_cv_sys_max_cmd_len=$new_result &&
7051	    test $i != 17 # 1/2 MB should be enough
7052    do
7053      i=`expr $i + 1`
7054      teststring=$teststring$teststring
7055    done
7056    teststring=
7057    # Add a significant safety factor because C++ compilers can tack on massive
7058    # amounts of additional arguments before passing them to the linker.
7059    # It appears as though 1/2 is a usable value.
7060    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7061    ;;
7062  esac
7063
7064fi
7065
7066if test -n $lt_cv_sys_max_cmd_len ; then
7067  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7068echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7069else
7070  echo "$as_me:$LINENO: result: none" >&5
7071echo "${ECHO_T}none" >&6
7072fi
7073
7074
7075
7076
7077# Check for command to grab the raw symbol name followed by C symbol from nm.
7078echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7079echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7080if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7081  echo $ECHO_N "(cached) $ECHO_C" >&6
7082else
7083
7084# These are sane defaults that work on at least a few old systems.
7085# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7086
7087# Character class describing NM global symbol codes.
7088symcode='[BCDEGRST]'
7089
7090# Regexp to match symbols that can be accessed directly from C.
7091sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7092
7093# Transform an extracted symbol line into a proper C declaration
7094lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7095
7096# Transform an extracted symbol line into symbol name and symbol address
7097lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7098
7099# Define system-specific variables.
7100case $host_os in
7101aix*)
7102  symcode='[BCDT]'
7103  ;;
7104cygwin* | mingw* | pw32*)
7105  symcode='[ABCDGISTW]'
7106  ;;
7107hpux*) # Its linker distinguishes data from code symbols
7108  if test "$host_cpu" = ia64; then
7109    symcode='[ABCDEGRST]'
7110  fi
7111  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7112  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7113  ;;
7114linux*)
7115  if test "$host_cpu" = ia64; then
7116    symcode='[ABCDGIRSTW]'
7117    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7118    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7119  fi
7120  ;;
7121irix* | nonstopux*)
7122  symcode='[BCDEGRST]'
7123  ;;
7124osf*)
7125  symcode='[BCDEGQRST]'
7126  ;;
7127solaris* | sysv5*)
7128  symcode='[BDRT]'
7129  ;;
7130sysv4)
7131  symcode='[DFNSTU]'
7132  ;;
7133esac
7134
7135# Handle CRLF in mingw tool chain
7136opt_cr=
7137case $build_os in
7138mingw*)
7139  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7140  ;;
7141esac
7142
7143# If we're using GNU nm, then use its standard symbol codes.
7144case `$NM -V 2>&1` in
7145*GNU* | *'with BFD'*)
7146  symcode='[ABCDGIRSTW]' ;;
7147esac
7148
7149# Try without a prefix undercore, then with it.
7150for ac_symprfx in "" "_"; do
7151
7152  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7153  symxfrm="\\1 $ac_symprfx\\2 \\2"
7154
7155  # Write the raw and C identifiers.
7156  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7157
7158  # Check to see that the pipe works correctly.
7159  pipe_works=no
7160
7161  rm -f conftest*
7162  cat > conftest.$ac_ext <<EOF
7163#ifdef __cplusplus
7164extern "C" {
7165#endif
7166char nm_test_var;
7167void nm_test_func(){}
7168#ifdef __cplusplus
7169}
7170#endif
7171int main(){nm_test_var='a';nm_test_func();return(0);}
7172EOF
7173
7174  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7175  (eval $ac_compile) 2>&5
7176  ac_status=$?
7177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178  (exit $ac_status); }; then
7179    # Now try to grab the symbols.
7180    nlist=conftest.nm
7181    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7182  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7183  ac_status=$?
7184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185  (exit $ac_status); } && test -s "$nlist"; then
7186      # Try sorting and uniquifying the output.
7187      if sort "$nlist" | uniq > "$nlist"T; then
7188	mv -f "$nlist"T "$nlist"
7189      else
7190	rm -f "$nlist"T
7191      fi
7192
7193      # Make sure that we snagged all the symbols we need.
7194      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7195	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7196	  cat <<EOF > conftest.$ac_ext
7197#ifdef __cplusplus
7198extern "C" {
7199#endif
7200
7201EOF
7202	  # Now generate the symbol file.
7203	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7204
7205	  cat <<EOF >> conftest.$ac_ext
7206#if defined (__STDC__) && __STDC__
7207# define lt_ptr_t void *
7208#else
7209# define lt_ptr_t char *
7210# define const
7211#endif
7212
7213/* The mapping between symbol names and symbols. */
7214const struct {
7215  const char *name;
7216  lt_ptr_t address;
7217}
7218lt_preloaded_symbols[] =
7219{
7220EOF
7221	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7222	  cat <<\EOF >> conftest.$ac_ext
7223  {0, (lt_ptr_t) 0}
7224};
7225
7226#ifdef __cplusplus
7227}
7228#endif
7229EOF
7230	  # Now try linking the two files.
7231	  mv conftest.$ac_objext conftstm.$ac_objext
7232	  lt_save_LIBS="$LIBS"
7233	  lt_save_CFLAGS="$CFLAGS"
7234	  LIBS="conftstm.$ac_objext"
7235	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7236	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7237  (eval $ac_link) 2>&5
7238  ac_status=$?
7239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7241	    pipe_works=yes
7242	  fi
7243	  LIBS="$lt_save_LIBS"
7244	  CFLAGS="$lt_save_CFLAGS"
7245	else
7246	  echo "cannot find nm_test_func in $nlist" >&5
7247	fi
7248      else
7249	echo "cannot find nm_test_var in $nlist" >&5
7250      fi
7251    else
7252      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7253    fi
7254  else
7255    echo "$progname: failed program was:" >&5
7256    cat conftest.$ac_ext >&5
7257  fi
7258  rm -f conftest* conftst*
7259
7260  # Do not use the global_symbol_pipe unless it works.
7261  if test "$pipe_works" = yes; then
7262    break
7263  else
7264    lt_cv_sys_global_symbol_pipe=
7265  fi
7266done
7267
7268fi
7269
7270if test -z "$lt_cv_sys_global_symbol_pipe"; then
7271  lt_cv_sys_global_symbol_to_cdecl=
7272fi
7273if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7274  echo "$as_me:$LINENO: result: failed" >&5
7275echo "${ECHO_T}failed" >&6
7276else
7277  echo "$as_me:$LINENO: result: ok" >&5
7278echo "${ECHO_T}ok" >&6
7279fi
7280
7281echo "$as_me:$LINENO: checking for objdir" >&5
7282echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7283if test "${lt_cv_objdir+set}" = set; then
7284  echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286  rm -f .libs 2>/dev/null
7287mkdir .libs 2>/dev/null
7288if test -d .libs; then
7289  lt_cv_objdir=.libs
7290else
7291  # MS-DOS does not allow filenames that begin with a dot.
7292  lt_cv_objdir=_libs
7293fi
7294rmdir .libs 2>/dev/null
7295fi
7296echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7297echo "${ECHO_T}$lt_cv_objdir" >&6
7298objdir=$lt_cv_objdir
7299
7300
7301
7302
7303
7304case $host_os in
7305aix3*)
7306  # AIX sometimes has problems with the GCC collect2 program.  For some
7307  # reason, if we set the COLLECT_NAMES environment variable, the problems
7308  # vanish in a puff of smoke.
7309  if test "X${COLLECT_NAMES+set}" != Xset; then
7310    COLLECT_NAMES=
7311    export COLLECT_NAMES
7312  fi
7313  ;;
7314esac
7315
7316# Sed substitution that helps us do robust quoting.  It backslashifies
7317# metacharacters that are still active within double-quoted strings.
7318Xsed='sed -e s/^X//'
7319sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7320
7321# Same as above, but do not quote variable references.
7322double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7323
7324# Sed substitution to delay expansion of an escaped shell variable in a
7325# double_quote_subst'ed string.
7326delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7327
7328# Sed substitution to avoid accidental globbing in evaled expressions
7329no_glob_subst='s/\*/\\\*/g'
7330
7331# Constants:
7332rm="rm -f"
7333
7334# Global variables:
7335default_ofile=libtool
7336can_build_shared=yes
7337
7338# All known linkers require a `.a' archive for static linking (except M$VC,
7339# which needs '.lib').
7340libext=a
7341ltmain="$ac_aux_dir/ltmain.sh"
7342ofile="$default_ofile"
7343with_gnu_ld="$lt_cv_prog_gnu_ld"
7344
7345if test -n "$ac_tool_prefix"; then
7346  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7347set dummy ${ac_tool_prefix}ar; ac_word=$2
7348echo "$as_me:$LINENO: checking for $ac_word" >&5
7349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7350if test "${ac_cv_prog_AR+set}" = set; then
7351  echo $ECHO_N "(cached) $ECHO_C" >&6
7352else
7353  if test -n "$AR"; then
7354  ac_cv_prog_AR="$AR" # Let the user override the test.
7355else
7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359  IFS=$as_save_IFS
7360  test -z "$as_dir" && as_dir=.
7361  for ac_exec_ext in '' $ac_executable_extensions; do
7362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363    ac_cv_prog_AR="${ac_tool_prefix}ar"
7364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365    break 2
7366  fi
7367done
7368done
7369
7370fi
7371fi
7372AR=$ac_cv_prog_AR
7373if test -n "$AR"; then
7374  echo "$as_me:$LINENO: result: $AR" >&5
7375echo "${ECHO_T}$AR" >&6
7376else
7377  echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
7379fi
7380
7381fi
7382if test -z "$ac_cv_prog_AR"; then
7383  ac_ct_AR=$AR
7384  # Extract the first word of "ar", so it can be a program name with args.
7385set dummy ar; ac_word=$2
7386echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7388if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7389  echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391  if test -n "$ac_ct_AR"; then
7392  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399  for ac_exec_ext in '' $ac_executable_extensions; do
7400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401    ac_cv_prog_ac_ct_AR="ar"
7402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406done
7407
7408  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7409fi
7410fi
7411ac_ct_AR=$ac_cv_prog_ac_ct_AR
7412if test -n "$ac_ct_AR"; then
7413  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7414echo "${ECHO_T}$ac_ct_AR" >&6
7415else
7416  echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418fi
7419
7420  AR=$ac_ct_AR
7421else
7422  AR="$ac_cv_prog_AR"
7423fi
7424
7425if test -n "$ac_tool_prefix"; then
7426  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7427set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7428echo "$as_me:$LINENO: checking for $ac_word" >&5
7429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430if test "${ac_cv_prog_RANLIB+set}" = set; then
7431  echo $ECHO_N "(cached) $ECHO_C" >&6
7432else
7433  if test -n "$RANLIB"; then
7434  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7435else
7436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439  IFS=$as_save_IFS
7440  test -z "$as_dir" && as_dir=.
7441  for ac_exec_ext in '' $ac_executable_extensions; do
7442  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445    break 2
7446  fi
7447done
7448done
7449
7450fi
7451fi
7452RANLIB=$ac_cv_prog_RANLIB
7453if test -n "$RANLIB"; then
7454  echo "$as_me:$LINENO: result: $RANLIB" >&5
7455echo "${ECHO_T}$RANLIB" >&6
7456else
7457  echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
7459fi
7460
7461fi
7462if test -z "$ac_cv_prog_RANLIB"; then
7463  ac_ct_RANLIB=$RANLIB
7464  # Extract the first word of "ranlib", so it can be a program name with args.
7465set dummy ranlib; ac_word=$2
7466echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7469  echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471  if test -n "$ac_ct_RANLIB"; then
7472  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  test -z "$as_dir" && as_dir=.
7479  for ac_exec_ext in '' $ac_executable_extensions; do
7480  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481    ac_cv_prog_ac_ct_RANLIB="ranlib"
7482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483    break 2
7484  fi
7485done
7486done
7487
7488  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7489fi
7490fi
7491ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7492if test -n "$ac_ct_RANLIB"; then
7493  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7494echo "${ECHO_T}$ac_ct_RANLIB" >&6
7495else
7496  echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498fi
7499
7500  RANLIB=$ac_ct_RANLIB
7501else
7502  RANLIB="$ac_cv_prog_RANLIB"
7503fi
7504
7505if test -n "$ac_tool_prefix"; then
7506  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7507set dummy ${ac_tool_prefix}strip; ac_word=$2
7508echo "$as_me:$LINENO: checking for $ac_word" >&5
7509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7510if test "${ac_cv_prog_STRIP+set}" = set; then
7511  echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513  if test -n "$STRIP"; then
7514  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7515else
7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519  IFS=$as_save_IFS
7520  test -z "$as_dir" && as_dir=.
7521  for ac_exec_ext in '' $ac_executable_extensions; do
7522  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525    break 2
7526  fi
7527done
7528done
7529
7530fi
7531fi
7532STRIP=$ac_cv_prog_STRIP
7533if test -n "$STRIP"; then
7534  echo "$as_me:$LINENO: result: $STRIP" >&5
7535echo "${ECHO_T}$STRIP" >&6
7536else
7537  echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539fi
7540
7541fi
7542if test -z "$ac_cv_prog_STRIP"; then
7543  ac_ct_STRIP=$STRIP
7544  # Extract the first word of "strip", so it can be a program name with args.
7545set dummy strip; ac_word=$2
7546echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7549  echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551  if test -n "$ac_ct_STRIP"; then
7552  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7553else
7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555for as_dir in $PATH
7556do
7557  IFS=$as_save_IFS
7558  test -z "$as_dir" && as_dir=.
7559  for ac_exec_ext in '' $ac_executable_extensions; do
7560  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561    ac_cv_prog_ac_ct_STRIP="strip"
7562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563    break 2
7564  fi
7565done
7566done
7567
7568  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7569fi
7570fi
7571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7572if test -n "$ac_ct_STRIP"; then
7573  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7574echo "${ECHO_T}$ac_ct_STRIP" >&6
7575else
7576  echo "$as_me:$LINENO: result: no" >&5
7577echo "${ECHO_T}no" >&6
7578fi
7579
7580  STRIP=$ac_ct_STRIP
7581else
7582  STRIP="$ac_cv_prog_STRIP"
7583fi
7584
7585
7586old_CC="$CC"
7587old_CFLAGS="$CFLAGS"
7588
7589# Set sane defaults for various variables
7590test -z "$AR" && AR=ar
7591test -z "$AR_FLAGS" && AR_FLAGS=cru
7592test -z "$AS" && AS=as
7593test -z "$CC" && CC=cc
7594test -z "$LTCC" && LTCC=$CC
7595test -z "$DLLTOOL" && DLLTOOL=dlltool
7596test -z "$LD" && LD=ld
7597test -z "$LN_S" && LN_S="ln -s"
7598test -z "$MAGIC_CMD" && MAGIC_CMD=file
7599test -z "$NM" && NM=nm
7600test -z "$SED" && SED=sed
7601test -z "$OBJDUMP" && OBJDUMP=objdump
7602test -z "$RANLIB" && RANLIB=:
7603test -z "$STRIP" && STRIP=:
7604test -z "$ac_objext" && ac_objext=o
7605
7606# Determine commands to create old-style static archives.
7607old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7608old_postinstall_cmds='chmod 644 $oldlib'
7609old_postuninstall_cmds=
7610
7611if test -n "$RANLIB"; then
7612  case $host_os in
7613  openbsd*)
7614    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7615    ;;
7616  *)
7617    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7618    ;;
7619  esac
7620  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7621fi
7622
7623cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7624
7625# Only perform the check for file, if the check method requires it
7626case $deplibs_check_method in
7627file_magic*)
7628  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7629    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7630echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7631if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7632  echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634  case $MAGIC_CMD in
7635[\\/*] |  ?:[\\/]*)
7636  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7637  ;;
7638*)
7639  lt_save_MAGIC_CMD="$MAGIC_CMD"
7640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7641  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7642  for ac_dir in $ac_dummy; do
7643    IFS="$lt_save_ifs"
7644    test -z "$ac_dir" && ac_dir=.
7645    if test -f $ac_dir/${ac_tool_prefix}file; then
7646      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7647      if test -n "$file_magic_test_file"; then
7648	case $deplibs_check_method in
7649	"file_magic "*)
7650	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7651	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7652	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7653	    $EGREP "$file_magic_regex" > /dev/null; then
7654	    :
7655	  else
7656	    cat <<EOF 1>&2
7657
7658*** Warning: the command libtool uses to detect shared libraries,
7659*** $file_magic_cmd, produces output that libtool cannot recognize.
7660*** The result is that libtool may fail to recognize shared libraries
7661*** as such.  This will affect the creation of libtool libraries that
7662*** depend on shared libraries, but programs linked with such libtool
7663*** libraries will work regardless of this problem.  Nevertheless, you
7664*** may want to report the problem to your system manager and/or to
7665*** bug-libtool@gnu.org
7666
7667EOF
7668	  fi ;;
7669	esac
7670      fi
7671      break
7672    fi
7673  done
7674  IFS="$lt_save_ifs"
7675  MAGIC_CMD="$lt_save_MAGIC_CMD"
7676  ;;
7677esac
7678fi
7679
7680MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7681if test -n "$MAGIC_CMD"; then
7682  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7683echo "${ECHO_T}$MAGIC_CMD" >&6
7684else
7685  echo "$as_me:$LINENO: result: no" >&5
7686echo "${ECHO_T}no" >&6
7687fi
7688
7689if test -z "$lt_cv_path_MAGIC_CMD"; then
7690  if test -n "$ac_tool_prefix"; then
7691    echo "$as_me:$LINENO: checking for file" >&5
7692echo $ECHO_N "checking for file... $ECHO_C" >&6
7693if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7694  echo $ECHO_N "(cached) $ECHO_C" >&6
7695else
7696  case $MAGIC_CMD in
7697[\\/*] |  ?:[\\/]*)
7698  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7699  ;;
7700*)
7701  lt_save_MAGIC_CMD="$MAGIC_CMD"
7702  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7704  for ac_dir in $ac_dummy; do
7705    IFS="$lt_save_ifs"
7706    test -z "$ac_dir" && ac_dir=.
7707    if test -f $ac_dir/file; then
7708      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7709      if test -n "$file_magic_test_file"; then
7710	case $deplibs_check_method in
7711	"file_magic "*)
7712	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7713	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7715	    $EGREP "$file_magic_regex" > /dev/null; then
7716	    :
7717	  else
7718	    cat <<EOF 1>&2
7719
7720*** Warning: the command libtool uses to detect shared libraries,
7721*** $file_magic_cmd, produces output that libtool cannot recognize.
7722*** The result is that libtool may fail to recognize shared libraries
7723*** as such.  This will affect the creation of libtool libraries that
7724*** depend on shared libraries, but programs linked with such libtool
7725*** libraries will work regardless of this problem.  Nevertheless, you
7726*** may want to report the problem to your system manager and/or to
7727*** bug-libtool@gnu.org
7728
7729EOF
7730	  fi ;;
7731	esac
7732      fi
7733      break
7734    fi
7735  done
7736  IFS="$lt_save_ifs"
7737  MAGIC_CMD="$lt_save_MAGIC_CMD"
7738  ;;
7739esac
7740fi
7741
7742MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743if test -n "$MAGIC_CMD"; then
7744  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7745echo "${ECHO_T}$MAGIC_CMD" >&6
7746else
7747  echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6
7749fi
7750
7751  else
7752    MAGIC_CMD=:
7753  fi
7754fi
7755
7756  fi
7757  ;;
7758esac
7759
7760enable_dlopen=no
7761enable_win32_dll=yes
7762
7763# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7764if test "${enable_libtool_lock+set}" = set; then
7765  enableval="$enable_libtool_lock"
7766
7767fi;
7768test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7769
7770
7771# Check whether --with-pic or --without-pic was given.
7772if test "${with_pic+set}" = set; then
7773  withval="$with_pic"
7774  pic_mode="$withval"
7775else
7776  pic_mode=default
7777fi;
7778test -z "$pic_mode" && pic_mode=default
7779
7780# Use C for the default configuration in the libtool script
7781tagname=
7782lt_save_CC="$CC"
7783ac_ext=c
7784ac_cpp='$CPP $CPPFLAGS'
7785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788
7789
7790# Source file extension for C test sources.
7791ac_ext=c
7792
7793# Object file extension for compiled C test sources.
7794objext=o
7795objext=$objext
7796
7797# Code to be used in simple compile tests
7798lt_simple_compile_test_code="int some_variable = 0;\n"
7799
7800# Code to be used in simple link tests
7801lt_simple_link_test_code='int main(){return(0);}\n'
7802
7803
7804# If no C compiler was specified, use CC.
7805LTCC=${LTCC-"$CC"}
7806
7807# Allow CC to be a program name with arguments.
7808compiler=$CC
7809
7810
7811#
7812# Check for any special shared library compilation flags.
7813#
7814lt_prog_cc_shlib=
7815if test "$GCC" = no; then
7816  case $host_os in
7817  sco3.2v5*)
7818    lt_prog_cc_shlib='-belf'
7819    ;;
7820  esac
7821fi
7822if test -n "$lt_prog_cc_shlib"; then
7823  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7824echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7825  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
7826  else
7827    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7828echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7829    lt_cv_prog_cc_can_build_shared=no
7830  fi
7831fi
7832
7833
7834#
7835# Check to make sure the static flag actually works.
7836#
7837echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7838echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7839if test "${lt_prog_compiler_static_works+set}" = set; then
7840  echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842  lt_prog_compiler_static_works=no
7843   save_LDFLAGS="$LDFLAGS"
7844   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7845   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7846   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7847     # The compiler can only warn and ignore the option if not recognized
7848     # So say no if there are warnings
7849     if test -s conftest.err; then
7850       # Append any errors to the config.log.
7851       cat conftest.err 1>&5
7852     else
7853       lt_prog_compiler_static_works=yes
7854     fi
7855   fi
7856   $rm conftest*
7857   LDFLAGS="$save_LDFLAGS"
7858
7859fi
7860echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7861echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7862
7863if test x"$lt_prog_compiler_static_works" = xyes; then
7864    :
7865else
7866    lt_prog_compiler_static=
7867fi
7868
7869
7870
7871## CAVEAT EMPTOR:
7872## There is no encapsulation within the following macros, do not change
7873## the running order or otherwise move them around unless you know exactly
7874## what you are doing...
7875
7876lt_prog_compiler_no_builtin_flag=
7877
7878if test "$GCC" = yes; then
7879  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7880
7881
7882echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7883echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7884if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7885  echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887  lt_cv_prog_compiler_rtti_exceptions=no
7888  ac_outfile=conftest.$ac_objext
7889   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7890   lt_compiler_flag="-fno-rtti -fno-exceptions"
7891   # Insert the option either (1) after the last *FLAGS variable, or
7892   # (2) before a word containing "conftest.", or (3) at the end.
7893   # Note that $ac_compile itself does not contain backslashes and begins
7894   # with a dollar sign (not a hyphen), so the echo should work correctly.
7895   # The option is referenced via a variable to avoid confusing sed.
7896   lt_compile=`echo "$ac_compile" | $SED \
7897   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7899   -e 's:$: $lt_compiler_flag:'`
7900   (eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
7901   (eval "$lt_compile" 2>conftest.err)
7902   ac_status=$?
7903   cat conftest.err >&5
7904   echo "$as_me:7904: \$? = $ac_status" >&5
7905   if (exit $ac_status) && test -s "$ac_outfile"; then
7906     # The compiler can only warn and ignore the option if not recognized
7907     # So say no if there are warnings
7908     if test ! -s conftest.err; then
7909       lt_cv_prog_compiler_rtti_exceptions=yes
7910     fi
7911   fi
7912   $rm conftest*
7913
7914fi
7915echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7916echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7917
7918if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7919    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7920else
7921    :
7922fi
7923
7924fi
7925
7926lt_prog_compiler_wl=
7927lt_prog_compiler_pic=
7928lt_prog_compiler_static=
7929
7930echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7931echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7932
7933  if test "$GCC" = yes; then
7934    lt_prog_compiler_wl='-Wl,'
7935    lt_prog_compiler_static='-static'
7936
7937    case $host_os in
7938      aix*)
7939      # All AIX code is PIC.
7940      if test "$host_cpu" = ia64; then
7941	# AIX 5 now supports IA64 processor
7942	lt_prog_compiler_static='-Bstatic'
7943      fi
7944      ;;
7945
7946    amigaos*)
7947      # FIXME: we need at least 68020 code to build shared libraries, but
7948      # adding the `-m68020' flag to GCC prevents building anything better,
7949      # like `-m68040'.
7950      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7951      ;;
7952
7953    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7954      # PIC is the default for these OSes.
7955      ;;
7956
7957    mingw* | pw32* | os2*)
7958      # This hack is so that the source file can tell whether it is being
7959      # built for inclusion in a dll (and should export symbols for example).
7960      lt_prog_compiler_pic='-DDLL_EXPORT'
7961      ;;
7962
7963    darwin* | rhapsody*)
7964      # PIC is the default on this platform
7965      # Common symbols not allowed in MH_DYLIB files
7966      lt_prog_compiler_pic='-fno-common'
7967      ;;
7968
7969    msdosdjgpp*)
7970      # Just because we use GCC doesn't mean we suddenly get shared libraries
7971      # on systems that don't support them.
7972      lt_prog_compiler_can_build_shared=no
7973      enable_shared=no
7974      ;;
7975
7976    sysv4*MP*)
7977      if test -d /usr/nec; then
7978	lt_prog_compiler_pic=-Kconform_pic
7979      fi
7980      ;;
7981
7982    hpux*)
7983      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7984      # not for PA HP-UX.
7985      case "$host_cpu" in
7986      hppa*64*|ia64*)
7987	# +Z the default
7988	;;
7989      *)
7990	lt_prog_compiler_pic='-fPIC'
7991	;;
7992      esac
7993      ;;
7994
7995    *)
7996      lt_prog_compiler_pic='-fPIC'
7997      ;;
7998    esac
7999  else
8000    # PORTME Check for flag to pass linker flags through the system compiler.
8001    case $host_os in
8002    aix*)
8003      lt_prog_compiler_wl='-Wl,'
8004      if test "$host_cpu" = ia64; then
8005	# AIX 5 now supports IA64 processor
8006	lt_prog_compiler_static='-Bstatic'
8007      else
8008	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8009      fi
8010      ;;
8011      darwin*)
8012        # PIC is the default on this platform
8013        # Common symbols not allowed in MH_DYLIB files
8014       case "$cc_basename" in
8015         xlc*)
8016         lt_prog_compiler_pic='-qnocommon'
8017         lt_prog_compiler_wl='-Wl,'
8018         ;;
8019       esac
8020       ;;
8021
8022    mingw* | pw32* | os2*)
8023      # This hack is so that the source file can tell whether it is being
8024      # built for inclusion in a dll (and should export symbols for example).
8025      lt_prog_compiler_pic='-DDLL_EXPORT'
8026      ;;
8027
8028    hpux9* | hpux10* | hpux11*)
8029      lt_prog_compiler_wl='-Wl,'
8030      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8031      # not for PA HP-UX.
8032      case "$host_cpu" in
8033      hppa*64*|ia64*)
8034	# +Z the default
8035	;;
8036      *)
8037	lt_prog_compiler_pic='+Z'
8038	;;
8039      esac
8040      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8041      lt_prog_compiler_static='${wl}-a ${wl}archive'
8042      ;;
8043
8044    irix5* | irix6* | nonstopux*)
8045      lt_prog_compiler_wl='-Wl,'
8046      # PIC (with -KPIC) is the default.
8047      lt_prog_compiler_static='-non_shared'
8048      ;;
8049
8050    newsos6)
8051      lt_prog_compiler_pic='-KPIC'
8052      lt_prog_compiler_static='-Bstatic'
8053      ;;
8054
8055    linux*)
8056      case $cc_basename in
8057      icc* | ecc*)
8058	lt_prog_compiler_wl='-Wl,'
8059	lt_prog_compiler_pic='-KPIC'
8060	lt_prog_compiler_static='-static'
8061        ;;
8062      pgcc | pgf77 | pgf90)
8063        # Portland Group compilers (*not* the Pentium gcc compiler,
8064	# which looks to be a dead project)
8065	lt_prog_compiler_wl='-Wl,'
8066	lt_prog_compiler_pic='-fpic'
8067	lt_prog_compiler_static='-static'
8068        ;;
8069      ccc*)
8070        lt_prog_compiler_wl='-Wl,'
8071        # All Alpha code is PIC.
8072        lt_prog_compiler_static='-non_shared'
8073        ;;
8074      como)
8075        lt_prog_compiler_wl='-lopt='
8076        ;;
8077      esac
8078      ;;
8079
8080    osf3* | osf4* | osf5*)
8081      lt_prog_compiler_wl='-Wl,'
8082      # All OSF/1 code is PIC.
8083      lt_prog_compiler_static='-non_shared'
8084      ;;
8085
8086    sco3.2v5*)
8087      lt_prog_compiler_pic='-Kpic'
8088      lt_prog_compiler_static='-dn'
8089      ;;
8090
8091    solaris*)
8092      lt_prog_compiler_wl='-Wl,'
8093      lt_prog_compiler_pic='-KPIC'
8094      lt_prog_compiler_static='-Bstatic'
8095      ;;
8096
8097    sunos4*)
8098      lt_prog_compiler_wl='-Qoption ld '
8099      lt_prog_compiler_pic='-PIC'
8100      lt_prog_compiler_static='-Bstatic'
8101      ;;
8102
8103    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8104      lt_prog_compiler_wl='-Wl,'
8105      lt_prog_compiler_pic='-KPIC'
8106      lt_prog_compiler_static='-Bstatic'
8107      ;;
8108
8109    sysv4*MP*)
8110      if test -d /usr/nec ;then
8111	lt_prog_compiler_pic='-Kconform_pic'
8112	lt_prog_compiler_static='-Bstatic'
8113      fi
8114      ;;
8115
8116    unicos*)
8117      lt_prog_compiler_wl='-Wl,'
8118      lt_prog_compiler_can_build_shared=no
8119      ;;
8120
8121    uts4*)
8122      lt_prog_compiler_pic='-pic'
8123      lt_prog_compiler_static='-Bstatic'
8124      ;;
8125
8126    *)
8127      lt_prog_compiler_can_build_shared=no
8128      ;;
8129    esac
8130  fi
8131
8132echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8133echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8134
8135#
8136# Check to make sure the PIC flag actually works.
8137#
8138if test -n "$lt_prog_compiler_pic"; then
8139
8140echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8141echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8142if test "${lt_prog_compiler_pic_works+set}" = set; then
8143  echo $ECHO_N "(cached) $ECHO_C" >&6
8144else
8145  lt_prog_compiler_pic_works=no
8146  ac_outfile=conftest.$ac_objext
8147   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8148   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8149   # Insert the option either (1) after the last *FLAGS variable, or
8150   # (2) before a word containing "conftest.", or (3) at the end.
8151   # Note that $ac_compile itself does not contain backslashes and begins
8152   # with a dollar sign (not a hyphen), so the echo should work correctly.
8153   # The option is referenced via a variable to avoid confusing sed.
8154   lt_compile=`echo "$ac_compile" | $SED \
8155   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8157   -e 's:$: $lt_compiler_flag:'`
8158   (eval echo "\"\$as_me:8158: $lt_compile\"" >&5)
8159   (eval "$lt_compile" 2>conftest.err)
8160   ac_status=$?
8161   cat conftest.err >&5
8162   echo "$as_me:8162: \$? = $ac_status" >&5
8163   if (exit $ac_status) && test -s "$ac_outfile"; then
8164     # The compiler can only warn and ignore the option if not recognized
8165     # So say no if there are warnings
8166     if test ! -s conftest.err; then
8167       lt_prog_compiler_pic_works=yes
8168     fi
8169   fi
8170   $rm conftest*
8171
8172fi
8173echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8174echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8175
8176if test x"$lt_prog_compiler_pic_works" = xyes; then
8177    case $lt_prog_compiler_pic in
8178     "" | " "*) ;;
8179     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8180     esac
8181else
8182    lt_prog_compiler_pic=
8183     lt_prog_compiler_can_build_shared=no
8184fi
8185
8186fi
8187case "$host_os" in
8188  # For platforms which do not support PIC, -DPIC is meaningless:
8189  *djgpp*)
8190    lt_prog_compiler_pic=
8191    ;;
8192  *)
8193    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8194    ;;
8195esac
8196
8197echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8198echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8199if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8200  echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202  lt_cv_prog_compiler_c_o=no
8203   $rm -r conftest 2>/dev/null
8204   mkdir conftest
8205   cd conftest
8206   mkdir out
8207   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8208
8209   lt_compiler_flag="-o out/conftest2.$ac_objext"
8210   # Insert the option either (1) after the last *FLAGS variable, or
8211   # (2) before a word containing "conftest.", or (3) at the end.
8212   # Note that $ac_compile itself does not contain backslashes and begins
8213   # with a dollar sign (not a hyphen), so the echo should work correctly.
8214   lt_compile=`echo "$ac_compile" | $SED \
8215   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8216   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8217   -e 's:$: $lt_compiler_flag:'`
8218   (eval echo "\"\$as_me:8218: $lt_compile\"" >&5)
8219   (eval "$lt_compile" 2>out/conftest.err)
8220   ac_status=$?
8221   cat out/conftest.err >&5
8222   echo "$as_me:8222: \$? = $ac_status" >&5
8223   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8224   then
8225     # The compiler can only warn and ignore the option if not recognized
8226     # So say no if there are warnings
8227     if test ! -s out/conftest.err; then
8228       lt_cv_prog_compiler_c_o=yes
8229     fi
8230   fi
8231   chmod u+w .
8232   $rm conftest*
8233   # SGI C++ compiler will create directory out/ii_files/ for
8234   # template instantiation
8235   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8236   $rm out/* && rmdir out
8237   cd ..
8238   rmdir conftest
8239   $rm conftest*
8240
8241fi
8242echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8243echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8244
8245
8246hard_links="nottested"
8247if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8248  # do not overwrite the value of need_locks provided by the user
8249  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8250echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8251  hard_links=yes
8252  $rm conftest*
8253  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8254  touch conftest.a
8255  ln conftest.a conftest.b 2>&5 || hard_links=no
8256  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8257  echo "$as_me:$LINENO: result: $hard_links" >&5
8258echo "${ECHO_T}$hard_links" >&6
8259  if test "$hard_links" = no; then
8260    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8261echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8262    need_locks=warn
8263  fi
8264else
8265  need_locks=no
8266fi
8267
8268echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8269echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8270
8271  runpath_var=
8272  allow_undefined_flag=
8273  enable_shared_with_static_runtimes=no
8274  archive_cmds=
8275  archive_expsym_cmds=
8276  old_archive_From_new_cmds=
8277  old_archive_from_expsyms_cmds=
8278  export_dynamic_flag_spec=
8279  whole_archive_flag_spec=
8280  thread_safe_flag_spec=
8281  hardcode_libdir_flag_spec=
8282  hardcode_libdir_flag_spec_ld=
8283  hardcode_libdir_separator=
8284  hardcode_direct=no
8285  hardcode_minus_L=no
8286  hardcode_shlibpath_var=unsupported
8287  link_all_deplibs=unknown
8288  hardcode_automatic=no
8289  module_cmds=
8290  module_expsym_cmds=
8291  always_export_symbols=no
8292  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8293  # include_expsyms should be a list of space-separated symbols to be *always*
8294  # included in the symbol list
8295  include_expsyms=
8296  # exclude_expsyms can be an extended regexp of symbols to exclude
8297  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8298  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8299  # as well as any symbol that contains `d'.
8300  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8301  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8302  # platforms (ab)use it in PIC code, but their linkers get confused if
8303  # the symbol is explicitly referenced.  Since portable code cannot
8304  # rely on this symbol name, it's probably fine to never include it in
8305  # preloaded symbol tables.
8306  extract_expsyms_cmds=
8307
8308  case $host_os in
8309  cygwin* | mingw* | pw32*)
8310    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8311    # When not using gcc, we currently assume that we are using
8312    # Microsoft Visual C++.
8313    if test "$GCC" != yes; then
8314      with_gnu_ld=no
8315    fi
8316    ;;
8317  openbsd*)
8318    with_gnu_ld=no
8319    ;;
8320  esac
8321
8322  ld_shlibs=yes
8323  if test "$with_gnu_ld" = yes; then
8324    # If archive_cmds runs LD, not CC, wlarc should be empty
8325    wlarc='${wl}'
8326
8327    # See if GNU ld supports shared libraries.
8328    case $host_os in
8329    aix3* | aix4* | aix5*)
8330      # On AIX/PPC, the GNU linker is very broken
8331      if test "$host_cpu" != ia64; then
8332	ld_shlibs=no
8333	cat <<EOF 1>&2
8334
8335*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8336*** to be unable to reliably create shared libraries on AIX.
8337*** Therefore, libtool is disabling shared libraries support.  If you
8338*** really care for shared libraries, you may want to modify your PATH
8339*** so that a non-GNU linker is found, and then restart.
8340
8341EOF
8342      fi
8343      ;;
8344
8345    amigaos*)
8346      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8347      hardcode_libdir_flag_spec='-L$libdir'
8348      hardcode_minus_L=yes
8349
8350      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8351      # that the semantics of dynamic libraries on AmigaOS, at least up
8352      # to version 4, is to share data among multiple programs linked
8353      # with the same dynamic library.  Since this doesn't match the
8354      # behavior of shared libraries on other platforms, we can't use
8355      # them.
8356      ld_shlibs=no
8357      ;;
8358
8359    beos*)
8360      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8361	allow_undefined_flag=unsupported
8362	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8363	# support --undefined.  This deserves some investigation.  FIXME
8364	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365      else
8366	ld_shlibs=no
8367      fi
8368      ;;
8369
8370    cygwin* | mingw* | pw32*)
8371      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8372      # as there is no search path for DLLs.
8373      hardcode_libdir_flag_spec='-L$libdir'
8374      allow_undefined_flag=unsupported
8375      always_export_symbols=no
8376      enable_shared_with_static_runtimes=yes
8377      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8378
8379      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8380        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8381	# If the export-symbols file already is a .def file (1st line
8382	# is EXPORTS), use it as is; otherwise, prepend...
8383	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8384	  cp $export_symbols $output_objdir/$soname.def;
8385	else
8386	  echo EXPORTS > $output_objdir/$soname.def;
8387	  cat $export_symbols >> $output_objdir/$soname.def;
8388	fi~
8389	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8390      else
8391	ld_shlibs=no
8392      fi
8393      ;;
8394
8395    netbsd*)
8396      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8397	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8398	wlarc=
8399      else
8400	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8402      fi
8403      ;;
8404
8405    solaris* | sysv5*)
8406      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8407	ld_shlibs=no
8408	cat <<EOF 1>&2
8409
8410*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8411*** create shared libraries on Solaris systems.  Therefore, libtool
8412*** is disabling shared libraries support.  We urge you to upgrade GNU
8413*** binutils to release 2.9.1 or newer.  Another option is to modify
8414*** your PATH or compiler configuration so that the native linker is
8415*** used, and then restart.
8416
8417EOF
8418      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8419	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8421      else
8422	ld_shlibs=no
8423      fi
8424      ;;
8425
8426    sunos4*)
8427      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8428      wlarc=
8429      hardcode_direct=yes
8430      hardcode_shlibpath_var=no
8431      ;;
8432
8433  linux*)
8434    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8435      tmp_addflag=
8436      case $CC,$host_cpu in
8437      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
8438        tmp_addflag=' -fpic' ;;
8439      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8440        tmp_addflag=' -i_dynamic' ;;
8441      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8442        tmp_addflag=' -i_dynamic -nofor_main' ;;
8443      ifc* | ifort*)			# Intel Fortran compiler
8444      	tmp_addflag=' -nofor_main' ;;
8445      esac
8446      archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447      supports_anon_versioning=no
8448      case `$LD -v 2>/dev/null` in
8449        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8450        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8451        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8452        *\ 2.11.*) ;; # other 2.11 versions
8453        *) supports_anon_versioning=yes ;;
8454      esac
8455      if test $supports_anon_versioning = yes; then
8456        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8457cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8458$echo "local: *; };" >> $output_objdir/$libname.ver~
8459        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8460      else
8461        archive_expsym_cmds=$archive_cmds
8462      fi
8463    else
8464      ld_shlibs=no
8465    fi
8466    ;;
8467
8468    *)
8469      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8470	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8472      else
8473	ld_shlibs=no
8474      fi
8475      ;;
8476    esac
8477
8478    if test "$ld_shlibs" = yes; then
8479      runpath_var=LD_RUN_PATH
8480      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8481      export_dynamic_flag_spec='${wl}--export-dynamic'
8482      # ancient GNU ld didn't support --whole-archive et. al.
8483      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8484 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8485      else
8486  	whole_archive_flag_spec=
8487      fi
8488    fi
8489  else
8490    # PORTME fill in a description of your system's linker (not GNU ld)
8491    case $host_os in
8492    aix3*)
8493      allow_undefined_flag=unsupported
8494      always_export_symbols=yes
8495      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8496      # Note: this linker hardcodes the directories in LIBPATH if there
8497      # are no directories specified by -L.
8498      hardcode_minus_L=yes
8499      if test "$GCC" = yes && test -z "$link_static_flag"; then
8500	# Neither direct hardcoding nor static linking is supported with a
8501	# broken collect2.
8502	hardcode_direct=unsupported
8503      fi
8504      ;;
8505
8506    aix4* | aix5*)
8507      if test "$host_cpu" = ia64; then
8508	# On IA64, the linker does run time linking by default, so we don't
8509	# have to do anything special.
8510	aix_use_runtimelinking=no
8511	exp_sym_flag='-Bexport'
8512	no_entry_flag=""
8513      else
8514	# If we're using GNU nm, then we don't want the "-C" option.
8515	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8516	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8517	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8518	else
8519	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8520	fi
8521	aix_use_runtimelinking=no
8522
8523	# Test if we are trying to use run time linking or normal
8524	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8525	# need to do runtime linking.
8526	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8527	  for ld_flag in $LDFLAGS; do
8528  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8529  	    aix_use_runtimelinking=yes
8530  	    break
8531  	  fi
8532	  done
8533	esac
8534
8535	exp_sym_flag='-bexport'
8536	no_entry_flag='-bnoentry'
8537      fi
8538
8539      # When large executables or shared objects are built, AIX ld can
8540      # have problems creating the table of contents.  If linking a library
8541      # or program results in "error TOC overflow" add -mminimal-toc to
8542      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8543      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8544
8545      archive_cmds=''
8546      hardcode_direct=yes
8547      hardcode_libdir_separator=':'
8548      link_all_deplibs=yes
8549
8550      if test "$GCC" = yes; then
8551	case $host_os in aix4.[012]|aix4.[012].*)
8552	# We only want to do this on AIX 4.2 and lower, the check
8553	# below for broken collect2 doesn't work under 4.3+
8554	  collect2name=`${CC} -print-prog-name=collect2`
8555	  if test -f "$collect2name" && \
8556  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8557	  then
8558  	  # We have reworked collect2
8559  	  hardcode_direct=yes
8560	  else
8561  	  # We have old collect2
8562  	  hardcode_direct=unsupported
8563  	  # It fails to find uninstalled libraries when the uninstalled
8564  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8565  	  # to unsupported forces relinking
8566  	  hardcode_minus_L=yes
8567  	  hardcode_libdir_flag_spec='-L$libdir'
8568  	  hardcode_libdir_separator=
8569	  fi
8570	esac
8571	shared_flag='-shared'
8572	if test "$aix_use_runtimelinking" = yes; then
8573	  shared_flag="$shared_flag "'${wl}-G'
8574	fi
8575      else
8576	# not using gcc
8577	if test "$host_cpu" = ia64; then
8578  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8579  	# chokes on -Wl,-G. The following line is correct:
8580	  shared_flag='-G'
8581	else
8582  	if test "$aix_use_runtimelinking" = yes; then
8583	    shared_flag='${wl}-G'
8584	  else
8585	    shared_flag='${wl}-bM:SRE'
8586  	fi
8587	fi
8588      fi
8589
8590      # It seems that -bexpall does not export symbols beginning with
8591      # underscore (_), so it is better to generate a list of symbols to export.
8592      always_export_symbols=yes
8593      if test "$aix_use_runtimelinking" = yes; then
8594	# Warning - without using the other runtime loading flags (-brtl),
8595	# -berok will link without error, but may produce a broken library.
8596	allow_undefined_flag='-berok'
8597       # Determine the default libpath from the value encoded in an empty executable.
8598       cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h.  */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h.  */
8604
8605int
8606main ()
8607{
8608
8609  ;
8610  return 0;
8611}
8612_ACEOF
8613rm -f conftest.$ac_objext conftest$ac_exeext
8614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615  (eval $ac_link) 2>conftest.er1
8616  ac_status=$?
8617  grep -v '^ *+' conftest.er1 >conftest.err
8618  rm -f conftest.er1
8619  cat conftest.err >&5
8620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621  (exit $ac_status); } &&
8622	 { ac_try='test -z "$ac_c_werror_flag"
8623			 || test ! -s conftest.err'
8624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625  (eval $ac_try) 2>&5
8626  ac_status=$?
8627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628  (exit $ac_status); }; } &&
8629	 { ac_try='test -s conftest$ac_exeext'
8630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631  (eval $ac_try) 2>&5
8632  ac_status=$?
8633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634  (exit $ac_status); }; }; then
8635
8636aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8637}'`
8638# Check for a 64-bit object if we didn't find anything.
8639if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8640}'`; fi
8641else
8642  echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645fi
8646rm -f conftest.err conftest.$ac_objext \
8647      conftest$ac_exeext conftest.$ac_ext
8648if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8649
8650       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8651	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8652       else
8653	if test "$host_cpu" = ia64; then
8654	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8655	  allow_undefined_flag="-z nodefs"
8656	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8657	else
8658	 # Determine the default libpath from the value encoded in an empty executable.
8659	 cat >conftest.$ac_ext <<_ACEOF
8660/* confdefs.h.  */
8661_ACEOF
8662cat confdefs.h >>conftest.$ac_ext
8663cat >>conftest.$ac_ext <<_ACEOF
8664/* end confdefs.h.  */
8665
8666int
8667main ()
8668{
8669
8670  ;
8671  return 0;
8672}
8673_ACEOF
8674rm -f conftest.$ac_objext conftest$ac_exeext
8675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676  (eval $ac_link) 2>conftest.er1
8677  ac_status=$?
8678  grep -v '^ *+' conftest.er1 >conftest.err
8679  rm -f conftest.er1
8680  cat conftest.err >&5
8681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682  (exit $ac_status); } &&
8683	 { ac_try='test -z "$ac_c_werror_flag"
8684			 || test ! -s conftest.err'
8685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686  (eval $ac_try) 2>&5
8687  ac_status=$?
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); }; } &&
8690	 { ac_try='test -s conftest$ac_exeext'
8691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692  (eval $ac_try) 2>&5
8693  ac_status=$?
8694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695  (exit $ac_status); }; }; then
8696
8697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8698}'`
8699# Check for a 64-bit object if we didn't find anything.
8700if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8701}'`; fi
8702else
8703  echo "$as_me: failed program was:" >&5
8704sed 's/^/| /' conftest.$ac_ext >&5
8705
8706fi
8707rm -f conftest.err conftest.$ac_objext \
8708      conftest$ac_exeext conftest.$ac_ext
8709if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8710
8711	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8712	  # Warning - without using the other run time loading flags,
8713	  # -berok will link without error, but may produce a broken library.
8714	  no_undefined_flag=' ${wl}-bernotok'
8715	  allow_undefined_flag=' ${wl}-berok'
8716	  # -bexpall does not export symbols beginning with underscore (_)
8717	  always_export_symbols=yes
8718	  # Exported symbols can be pulled into shared objects from archives
8719	  whole_archive_flag_spec=' '
8720	  archive_cmds_need_lc=yes
8721	  # This is similar to how AIX traditionally builds it's shared libraries.
8722	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8723	fi
8724      fi
8725      ;;
8726
8727    amigaos*)
8728      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8729      hardcode_libdir_flag_spec='-L$libdir'
8730      hardcode_minus_L=yes
8731      # see comment about different semantics on the GNU ld section
8732      ld_shlibs=no
8733      ;;
8734
8735    bsdi[45]*)
8736      export_dynamic_flag_spec=-rdynamic
8737      ;;
8738
8739    cygwin* | mingw* | pw32*)
8740      # When not using gcc, we currently assume that we are using
8741      # Microsoft Visual C++.
8742      # hardcode_libdir_flag_spec is actually meaningless, as there is
8743      # no search path for DLLs.
8744      hardcode_libdir_flag_spec=' '
8745      allow_undefined_flag=unsupported
8746      # Tell ltmain to make .lib files, not .a files.
8747      libext=lib
8748      # Tell ltmain to make .dll files, not .so files.
8749      shrext_cmds=".dll"
8750      # FIXME: Setting linknames here is a bad hack.
8751      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8752      # The linker will automatically build a .lib file if we build a DLL.
8753      old_archive_From_new_cmds='true'
8754      # FIXME: Should let the user specify the lib program.
8755      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8756      fix_srcfile_path='`cygpath -w "$srcfile"`'
8757      enable_shared_with_static_runtimes=yes
8758      ;;
8759
8760    darwin* | rhapsody*)
8761      case "$host_os" in
8762        rhapsody* | darwin1.[012])
8763         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8764         ;;
8765       *) # Darwin 1.3 on
8766         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8767           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8768         else
8769           case ${MACOSX_DEPLOYMENT_TARGET} in
8770             10.[012])
8771               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8772               ;;
8773             10.*)
8774               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8775               ;;
8776           esac
8777         fi
8778         ;;
8779      esac
8780      archive_cmds_need_lc=no
8781      hardcode_direct=no
8782      hardcode_automatic=yes
8783      hardcode_shlibpath_var=unsupported
8784      whole_archive_flag_spec=''
8785      link_all_deplibs=yes
8786    if test "$GCC" = yes ; then
8787    	output_verbose_link_cmd='echo'
8788        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8789      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8790      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8791      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8792      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8793    else
8794      case "$cc_basename" in
8795        xlc*)
8796         output_verbose_link_cmd='echo'
8797         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8798         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8799          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8800         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8801          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8802          ;;
8803       *)
8804         ld_shlibs=no
8805          ;;
8806      esac
8807    fi
8808      ;;
8809
8810    dgux*)
8811      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812      hardcode_libdir_flag_spec='-L$libdir'
8813      hardcode_shlibpath_var=no
8814      ;;
8815
8816    freebsd1*)
8817      ld_shlibs=no
8818      ;;
8819
8820    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8821    # support.  Future versions do this automatically, but an explicit c++rt0.o
8822    # does not break anything, and helps significantly (at the cost of a little
8823    # extra space).
8824    freebsd2.2*)
8825      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8826      hardcode_libdir_flag_spec='-R$libdir'
8827      hardcode_direct=yes
8828      hardcode_shlibpath_var=no
8829      ;;
8830
8831    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8832    freebsd2*)
8833      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8834      hardcode_direct=yes
8835      hardcode_minus_L=yes
8836      hardcode_shlibpath_var=no
8837      ;;
8838
8839    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8840    freebsd* | kfreebsd*-gnu | dragonfly*)
8841      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8842      hardcode_libdir_flag_spec='-R$libdir'
8843      hardcode_direct=yes
8844      hardcode_shlibpath_var=no
8845      ;;
8846
8847    hpux9*)
8848      if test "$GCC" = yes; then
8849	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8850      else
8851	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8852      fi
8853      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8854      hardcode_libdir_separator=:
8855      hardcode_direct=yes
8856
8857      # hardcode_minus_L: Not really in the search PATH,
8858      # but as the default location of the library.
8859      hardcode_minus_L=yes
8860      export_dynamic_flag_spec='${wl}-E'
8861      ;;
8862
8863    hpux10* | hpux11*)
8864      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8865	case "$host_cpu" in
8866	hppa*64*|ia64*)
8867	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868	  ;;
8869	*)
8870	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8871	  ;;
8872	esac
8873      else
8874	case "$host_cpu" in
8875	hppa*64*|ia64*)
8876	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8877	  ;;
8878	*)
8879	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8880	  ;;
8881	esac
8882      fi
8883      if test "$with_gnu_ld" = no; then
8884	case "$host_cpu" in
8885	hppa*64*)
8886	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8887	  hardcode_libdir_flag_spec_ld='+b $libdir'
8888	  hardcode_libdir_separator=:
8889	  hardcode_direct=no
8890	  hardcode_shlibpath_var=no
8891	  ;;
8892	ia64*)
8893	  hardcode_libdir_flag_spec='-L$libdir'
8894	  hardcode_direct=no
8895	  hardcode_shlibpath_var=no
8896
8897	  # hardcode_minus_L: Not really in the search PATH,
8898	  # but as the default location of the library.
8899	  hardcode_minus_L=yes
8900	  ;;
8901	*)
8902	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8903	  hardcode_libdir_separator=:
8904	  hardcode_direct=yes
8905	  export_dynamic_flag_spec='${wl}-E'
8906
8907	  # hardcode_minus_L: Not really in the search PATH,
8908	  # but as the default location of the library.
8909	  hardcode_minus_L=yes
8910	  ;;
8911	esac
8912      fi
8913      ;;
8914
8915    irix5* | irix6* | nonstopux*)
8916      if test "$GCC" = yes; then
8917	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8918      else
8919	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8920	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8921      fi
8922      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923      hardcode_libdir_separator=:
8924      link_all_deplibs=yes
8925      ;;
8926
8927    netbsd*)
8928      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8929	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8930      else
8931	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8932      fi
8933      hardcode_libdir_flag_spec='-R$libdir'
8934      hardcode_direct=yes
8935      hardcode_shlibpath_var=no
8936      ;;
8937
8938    newsos6)
8939      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940      hardcode_direct=yes
8941      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942      hardcode_libdir_separator=:
8943      hardcode_shlibpath_var=no
8944      ;;
8945
8946    openbsd*)
8947      hardcode_direct=yes
8948      hardcode_shlibpath_var=no
8949      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8950	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8951	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8952	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8953	export_dynamic_flag_spec='${wl}-E'
8954      else
8955       case $host_os in
8956	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8957	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8958	   hardcode_libdir_flag_spec='-R$libdir'
8959	   ;;
8960	 *)
8961	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8962	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8963	   ;;
8964       esac
8965      fi
8966      ;;
8967
8968    os2*)
8969      hardcode_libdir_flag_spec='-L$libdir'
8970      hardcode_minus_L=yes
8971      allow_undefined_flag=unsupported
8972      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8973      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8974      ;;
8975
8976    osf3*)
8977      if test "$GCC" = yes; then
8978	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8979	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8980      else
8981	allow_undefined_flag=' -expect_unresolved \*'
8982	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8983      fi
8984      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8985      hardcode_libdir_separator=:
8986      ;;
8987
8988    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8989      if test "$GCC" = yes; then
8990	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8991	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8992	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993      else
8994	allow_undefined_flag=' -expect_unresolved \*'
8995	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8996	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8997	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8998
8999	# Both c and cxx compiler support -rpath directly
9000	hardcode_libdir_flag_spec='-rpath $libdir'
9001      fi
9002      hardcode_libdir_separator=:
9003      ;;
9004
9005    sco3.2v5*)
9006      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007      hardcode_shlibpath_var=no
9008      export_dynamic_flag_spec='${wl}-Bexport'
9009      runpath_var=LD_RUN_PATH
9010      hardcode_runpath_var=yes
9011      ;;
9012
9013    solaris*)
9014      no_undefined_flag=' -z text'
9015      if test "$GCC" = yes; then
9016	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9018	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9019      else
9020	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9022  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9023      fi
9024      hardcode_libdir_flag_spec='-R$libdir'
9025      hardcode_shlibpath_var=no
9026      case $host_os in
9027      solaris2.[0-5] | solaris2.[0-5].*) ;;
9028      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9029	whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
9030      esac
9031      link_all_deplibs=yes
9032      ;;
9033
9034    sunos4*)
9035      if test "x$host_vendor" = xsequent; then
9036	# Use $CC to link under sequent, because it throws in some extra .o
9037	# files that make .init and .fini sections work.
9038	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9039      else
9040	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9041      fi
9042      hardcode_libdir_flag_spec='-L$libdir'
9043      hardcode_direct=yes
9044      hardcode_minus_L=yes
9045      hardcode_shlibpath_var=no
9046      ;;
9047
9048    sysv4)
9049      case $host_vendor in
9050	sni)
9051	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052	  hardcode_direct=yes # is this really true???
9053	;;
9054	siemens)
9055	  ## LD is ld it makes a PLAMLIB
9056	  ## CC just makes a GrossModule.
9057	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9058	  reload_cmds='$CC -r -o $output$reload_objs'
9059	  hardcode_direct=no
9060        ;;
9061	motorola)
9062	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9064	;;
9065      esac
9066      runpath_var='LD_RUN_PATH'
9067      hardcode_shlibpath_var=no
9068      ;;
9069
9070    sysv4.3*)
9071      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072      hardcode_shlibpath_var=no
9073      export_dynamic_flag_spec='-Bexport'
9074      ;;
9075
9076    sysv4*MP*)
9077      if test -d /usr/nec; then
9078	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079	hardcode_shlibpath_var=no
9080	runpath_var=LD_RUN_PATH
9081	hardcode_runpath_var=yes
9082	ld_shlibs=yes
9083      fi
9084      ;;
9085
9086    sysv4.2uw2*)
9087      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9088      hardcode_direct=yes
9089      hardcode_minus_L=no
9090      hardcode_shlibpath_var=no
9091      hardcode_runpath_var=yes
9092      runpath_var=LD_RUN_PATH
9093      ;;
9094
9095   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9096      no_undefined_flag='${wl}-z ${wl}text'
9097      if test "$GCC" = yes; then
9098	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9099      else
9100	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101      fi
9102      runpath_var='LD_RUN_PATH'
9103      hardcode_shlibpath_var=no
9104      ;;
9105
9106    sysv5*)
9107      no_undefined_flag=' -z text'
9108      # $CC -shared without GNU ld will not create a library from C++
9109      # object files and a static libstdc++, better avoid it by now
9110      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9112  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9113      hardcode_libdir_flag_spec=
9114      hardcode_shlibpath_var=no
9115      runpath_var='LD_RUN_PATH'
9116      ;;
9117
9118    uts4*)
9119      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120      hardcode_libdir_flag_spec='-L$libdir'
9121      hardcode_shlibpath_var=no
9122      ;;
9123
9124    *)
9125      ld_shlibs=no
9126      ;;
9127    esac
9128  fi
9129
9130echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9131echo "${ECHO_T}$ld_shlibs" >&6
9132test "$ld_shlibs" = no && can_build_shared=no
9133
9134variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9135if test "$GCC" = yes; then
9136  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9137fi
9138
9139#
9140# Do we need to explicitly link libc?
9141#
9142case "x$archive_cmds_need_lc" in
9143x|xyes)
9144  # Assume -lc should be added
9145  archive_cmds_need_lc=yes
9146
9147  if test "$enable_shared" = yes && test "$GCC" = yes; then
9148    case $archive_cmds in
9149    *'~'*)
9150      # FIXME: we may have to deal with multi-command sequences.
9151      ;;
9152    '$CC '*)
9153      # Test whether the compiler implicitly links with -lc since on some
9154      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9155      # to ld, don't add -lc before -lgcc.
9156      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9157echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9158      $rm conftest*
9159      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9160
9161      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162  (eval $ac_compile) 2>&5
9163  ac_status=$?
9164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165  (exit $ac_status); } 2>conftest.err; then
9166        soname=conftest
9167        lib=conftest
9168        libobjs=conftest.$ac_objext
9169        deplibs=
9170        wl=$lt_prog_compiler_wl
9171        compiler_flags=-v
9172        linker_flags=-v
9173        verstring=
9174        output_objdir=.
9175        libname=conftest
9176        lt_save_allow_undefined_flag=$allow_undefined_flag
9177        allow_undefined_flag=
9178        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9179  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9180  ac_status=$?
9181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182  (exit $ac_status); }
9183        then
9184	  archive_cmds_need_lc=no
9185        else
9186	  archive_cmds_need_lc=yes
9187        fi
9188        allow_undefined_flag=$lt_save_allow_undefined_flag
9189      else
9190        cat conftest.err 1>&5
9191      fi
9192      $rm conftest*
9193      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9194echo "${ECHO_T}$archive_cmds_need_lc" >&6
9195      ;;
9196    esac
9197  fi
9198  ;;
9199esac
9200
9201echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9202echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9203library_names_spec=
9204libname_spec='lib$name'
9205soname_spec=
9206shrext_cmds=".so"
9207postinstall_cmds=
9208postuninstall_cmds=
9209finish_cmds=
9210finish_eval=
9211shlibpath_var=
9212shlibpath_overrides_runpath=unknown
9213version_type=none
9214dynamic_linker="$host_os ld.so"
9215sys_lib_dlsearch_path_spec="/lib /usr/lib"
9216if test "$GCC" = yes; then
9217  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9219    # if the path contains ";" then we assume it to be the separator
9220    # otherwise default to the standard path separator (i.e. ":") - it is
9221    # assumed that no part of a normal pathname contains ";" but that should
9222    # okay in the real world where ";" in dirpaths is itself problematic.
9223    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9224  else
9225    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9226  fi
9227else
9228  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9229fi
9230need_lib_prefix=unknown
9231hardcode_into_libs=no
9232
9233# when you set need_version to no, make sure it does not cause -set_version
9234# flags to be left without arguments
9235need_version=unknown
9236
9237case $host_os in
9238aix3*)
9239  version_type=linux
9240  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9241  shlibpath_var=LIBPATH
9242
9243  # AIX 3 has no versioning support, so we append a major version to the name.
9244  soname_spec='${libname}${release}${shared_ext}$major'
9245  ;;
9246
9247aix4* | aix5*)
9248  version_type=linux
9249  need_lib_prefix=no
9250  need_version=no
9251  hardcode_into_libs=yes
9252  if test "$host_cpu" = ia64; then
9253    # AIX 5 supports IA64
9254    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9255    shlibpath_var=LD_LIBRARY_PATH
9256  else
9257    # With GCC up to 2.95.x, collect2 would create an import file
9258    # for dependence libraries.  The import file would start with
9259    # the line `#! .'.  This would cause the generated library to
9260    # depend on `.', always an invalid library.  This was fixed in
9261    # development snapshots of GCC prior to 3.0.
9262    case $host_os in
9263      aix4 | aix4.[01] | aix4.[01].*)
9264      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9265	   echo ' yes '
9266	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9267	:
9268      else
9269	can_build_shared=no
9270      fi
9271      ;;
9272    esac
9273    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9274    # soname into executable. Probably we can add versioning support to
9275    # collect2, so additional links can be useful in future.
9276    if test "$aix_use_runtimelinking" = yes; then
9277      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9278      # instead of lib<name>.a to let people know that these are not
9279      # typical AIX shared libraries.
9280      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281    else
9282      # We preserve .a as extension for shared libraries through AIX4.2
9283      # and later when we are not doing run time linking.
9284      library_names_spec='${libname}${release}.a $libname.a'
9285      soname_spec='${libname}${release}${shared_ext}$major'
9286    fi
9287    shlibpath_var=LIBPATH
9288  fi
9289  ;;
9290
9291amigaos*)
9292  library_names_spec='$libname.ixlibrary $libname.a'
9293  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9294  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9295  ;;
9296
9297beos*)
9298  library_names_spec='${libname}${shared_ext}'
9299  dynamic_linker="$host_os ld.so"
9300  shlibpath_var=LIBRARY_PATH
9301  ;;
9302
9303bsdi[45]*)
9304  version_type=linux
9305  need_version=no
9306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307  soname_spec='${libname}${release}${shared_ext}$major'
9308  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9309  shlibpath_var=LD_LIBRARY_PATH
9310  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9311  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9312  # the default ld.so.conf also contains /usr/contrib/lib and
9313  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9314  # libtool to hard-code these into programs
9315  ;;
9316
9317cygwin* | mingw* | pw32*)
9318  version_type=windows
9319  shrext_cmds=".dll"
9320  need_version=no
9321  need_lib_prefix=no
9322
9323  case $GCC,$host_os in
9324  yes,cygwin* | yes,mingw* | yes,pw32*)
9325    library_names_spec='$libname.dll.a'
9326    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9327    postinstall_cmds='base_file=`basename \${file}`~
9328      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9329      dldir=$destdir/`dirname \$dlpath`~
9330      test -d \$dldir || mkdir -p \$dldir~
9331      $install_prog $dir/$dlname \$dldir/$dlname'
9332    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9333      dlpath=$dir/\$dldll~
9334       $rm \$dlpath'
9335    shlibpath_overrides_runpath=yes
9336
9337    case $host_os in
9338    cygwin*)
9339      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9340      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9341      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9342      ;;
9343    mingw*)
9344      # MinGW DLLs use traditional 'lib' prefix
9345      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9346      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9347      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9348        # It is most probably a Windows format PATH printed by
9349        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9350        # path with ; separators, and with drive letters. We can handle the
9351        # drive letters (cygwin fileutils understands them), so leave them,
9352        # especially as we might pass files found there to a mingw objdump,
9353        # which wouldn't understand a cygwinified path. Ahh.
9354        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9355      else
9356        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9357      fi
9358      ;;
9359    pw32*)
9360      # pw32 DLLs use 'pw' prefix rather than 'lib'
9361      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9362      ;;
9363    esac
9364    ;;
9365
9366  *)
9367    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9368    ;;
9369  esac
9370  dynamic_linker='Win32 ld.exe'
9371  # FIXME: first we should search . and the directory the executable is in
9372  shlibpath_var=PATH
9373  ;;
9374
9375darwin* | rhapsody*)
9376  dynamic_linker="$host_os dyld"
9377  version_type=darwin
9378  need_lib_prefix=no
9379  need_version=no
9380  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9381  soname_spec='${libname}${release}${major}$shared_ext'
9382  shlibpath_overrides_runpath=yes
9383  shlibpath_var=DYLD_LIBRARY_PATH
9384  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9385  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9386  if test "$GCC" = yes; then
9387    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9388  else
9389    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9390  fi
9391  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9392  ;;
9393
9394dgux*)
9395  version_type=linux
9396  need_lib_prefix=no
9397  need_version=no
9398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9399  soname_spec='${libname}${release}${shared_ext}$major'
9400  shlibpath_var=LD_LIBRARY_PATH
9401  ;;
9402
9403freebsd1*)
9404  dynamic_linker=no
9405  ;;
9406
9407kfreebsd*-gnu)
9408  version_type=linux
9409  need_lib_prefix=no
9410  need_version=no
9411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9412  soname_spec='${libname}${release}${shared_ext}$major'
9413  shlibpath_var=LD_LIBRARY_PATH
9414  shlibpath_overrides_runpath=no
9415  hardcode_into_libs=yes
9416  dynamic_linker='GNU ld.so'
9417  ;;
9418
9419freebsd* | dragonfly*)
9420  # DragonFly does not have aout.  When/if they implement a new
9421  # versioning mechanism, adjust this.
9422  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9423  version_type=freebsd-$objformat
9424  case $version_type in
9425    freebsd-elf*)
9426      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9427      need_version=no
9428      need_lib_prefix=no
9429      ;;
9430    freebsd-*)
9431      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9432      need_version=yes
9433      ;;
9434  esac
9435  shlibpath_var=LD_LIBRARY_PATH
9436  case $host_os in
9437  freebsd2*)
9438    shlibpath_overrides_runpath=yes
9439    ;;
9440  freebsd3.[01]* | freebsdelf3.[01]*)
9441    shlibpath_overrides_runpath=yes
9442    hardcode_into_libs=yes
9443    ;;
9444  *) # from 3.2 on
9445    shlibpath_overrides_runpath=no
9446    hardcode_into_libs=yes
9447    ;;
9448  esac
9449  ;;
9450
9451gnu*)
9452  version_type=linux
9453  need_lib_prefix=no
9454  need_version=no
9455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9456  soname_spec='${libname}${release}${shared_ext}$major'
9457  shlibpath_var=LD_LIBRARY_PATH
9458  hardcode_into_libs=yes
9459  ;;
9460
9461hpux9* | hpux10* | hpux11*)
9462  # Give a soname corresponding to the major version so that dld.sl refuses to
9463  # link against other versions.
9464  version_type=sunos
9465  need_lib_prefix=no
9466  need_version=no
9467  case "$host_cpu" in
9468  ia64*)
9469    shrext_cmds='.so'
9470    hardcode_into_libs=yes
9471    dynamic_linker="$host_os dld.so"
9472    shlibpath_var=LD_LIBRARY_PATH
9473    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9474    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475    soname_spec='${libname}${release}${shared_ext}$major'
9476    if test "X$HPUX_IA64_MODE" = X32; then
9477      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9478    else
9479      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9480    fi
9481    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9482    ;;
9483   hppa*64*)
9484     shrext_cmds='.sl'
9485     hardcode_into_libs=yes
9486     dynamic_linker="$host_os dld.sl"
9487     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490     soname_spec='${libname}${release}${shared_ext}$major'
9491     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9492     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9493     ;;
9494   *)
9495    shrext_cmds='.sl'
9496    dynamic_linker="$host_os dld.sl"
9497    shlibpath_var=SHLIB_PATH
9498    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500    soname_spec='${libname}${release}${shared_ext}$major'
9501    ;;
9502  esac
9503  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9504  postinstall_cmds='chmod 555 $lib'
9505  ;;
9506
9507irix5* | irix6* | nonstopux*)
9508  case $host_os in
9509    nonstopux*) version_type=nonstopux ;;
9510    *)
9511	if test "$lt_cv_prog_gnu_ld" = yes; then
9512		version_type=linux
9513	else
9514		version_type=irix
9515	fi ;;
9516  esac
9517  need_lib_prefix=no
9518  need_version=no
9519  soname_spec='${libname}${release}${shared_ext}$major'
9520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9521  case $host_os in
9522  irix5* | nonstopux*)
9523    libsuff= shlibsuff=
9524    ;;
9525  *)
9526    case $LD in # libtool.m4 will add one of these switches to LD
9527    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9528      libsuff= shlibsuff= libmagic=32-bit;;
9529    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9530      libsuff=32 shlibsuff=N32 libmagic=N32;;
9531    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9532      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9533    *) libsuff= shlibsuff= libmagic=never-match;;
9534    esac
9535    ;;
9536  esac
9537  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9538  shlibpath_overrides_runpath=no
9539  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9540  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9541  hardcode_into_libs=yes
9542  ;;
9543
9544# No shared lib support for Linux oldld, aout, or coff.
9545linux*oldld* | linux*aout* | linux*coff*)
9546  dynamic_linker=no
9547  ;;
9548
9549# This must be Linux ELF.
9550linux*)
9551  version_type=linux
9552  need_lib_prefix=no
9553  need_version=no
9554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555  soname_spec='${libname}${release}${shared_ext}$major'
9556  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9557  shlibpath_var=LD_LIBRARY_PATH
9558  shlibpath_overrides_runpath=no
9559  # This implies no fast_install, which is unacceptable.
9560  # Some rework will be needed to allow for fast_install
9561  # before this can be enabled.
9562  hardcode_into_libs=yes
9563
9564  # Append ld.so.conf contents to the search path
9565  if test -f /etc/ld.so.conf; then
9566    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9567    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9568  fi
9569
9570  # We used to test for /lib/ld.so.1 and disable shared libraries on
9571  # powerpc, because MkLinux only supported shared libraries with the
9572  # GNU dynamic linker.  Since this was broken with cross compilers,
9573  # most powerpc-linux boxes support dynamic linking these days and
9574  # people can always --disable-shared, the test was removed, and we
9575  # assume the GNU/Linux dynamic linker is in use.
9576  dynamic_linker='GNU/Linux ld.so'
9577  ;;
9578
9579knetbsd*-gnu)
9580  version_type=linux
9581  need_lib_prefix=no
9582  need_version=no
9583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584  soname_spec='${libname}${release}${shared_ext}$major'
9585  shlibpath_var=LD_LIBRARY_PATH
9586  shlibpath_overrides_runpath=no
9587  hardcode_into_libs=yes
9588  dynamic_linker='GNU ld.so'
9589  ;;
9590
9591netbsd*)
9592  version_type=sunos
9593  need_lib_prefix=no
9594  need_version=no
9595  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9598    dynamic_linker='NetBSD (a.out) ld.so'
9599  else
9600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601    soname_spec='${libname}${release}${shared_ext}$major'
9602    dynamic_linker='NetBSD ld.elf_so'
9603  fi
9604  shlibpath_var=LD_LIBRARY_PATH
9605  shlibpath_overrides_runpath=yes
9606  hardcode_into_libs=yes
9607  ;;
9608
9609newsos6)
9610  version_type=linux
9611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612  shlibpath_var=LD_LIBRARY_PATH
9613  shlibpath_overrides_runpath=yes
9614  ;;
9615
9616nto-qnx*)
9617  version_type=linux
9618  need_lib_prefix=no
9619  need_version=no
9620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621  soname_spec='${libname}${release}${shared_ext}$major'
9622  shlibpath_var=LD_LIBRARY_PATH
9623  shlibpath_overrides_runpath=yes
9624  ;;
9625
9626openbsd*)
9627  version_type=sunos
9628  need_lib_prefix=no
9629  need_version=no
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634    case $host_os in
9635      openbsd2.[89] | openbsd2.[89].*)
9636	shlibpath_overrides_runpath=no
9637	;;
9638      *)
9639	shlibpath_overrides_runpath=yes
9640	;;
9641      esac
9642  else
9643    shlibpath_overrides_runpath=yes
9644  fi
9645  ;;
9646
9647os2*)
9648  libname_spec='$name'
9649  shrext_cmds=".dll"
9650  need_lib_prefix=no
9651  library_names_spec='$libname${shared_ext} $libname.a'
9652  dynamic_linker='OS/2 ld.exe'
9653  shlibpath_var=LIBPATH
9654  ;;
9655
9656osf3* | osf4* | osf5*)
9657  version_type=osf
9658  need_lib_prefix=no
9659  need_version=no
9660  soname_spec='${libname}${release}${shared_ext}$major'
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662  shlibpath_var=LD_LIBRARY_PATH
9663  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9664  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9665  ;;
9666
9667sco3.2v5*)
9668  version_type=osf
9669  soname_spec='${libname}${release}${shared_ext}$major'
9670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671  shlibpath_var=LD_LIBRARY_PATH
9672  ;;
9673
9674solaris*)
9675  version_type=linux
9676  need_lib_prefix=no
9677  need_version=no
9678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679  soname_spec='${libname}${release}${shared_ext}$major'
9680  shlibpath_var=LD_LIBRARY_PATH
9681  shlibpath_overrides_runpath=yes
9682  hardcode_into_libs=yes
9683  # ldd complains unless libraries are executable
9684  postinstall_cmds='chmod +x $lib'
9685  ;;
9686
9687sunos4*)
9688  version_type=sunos
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9690  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9691  shlibpath_var=LD_LIBRARY_PATH
9692  shlibpath_overrides_runpath=yes
9693  if test "$with_gnu_ld" = yes; then
9694    need_lib_prefix=no
9695  fi
9696  need_version=yes
9697  ;;
9698
9699sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9700  version_type=linux
9701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702  soname_spec='${libname}${release}${shared_ext}$major'
9703  shlibpath_var=LD_LIBRARY_PATH
9704  case $host_vendor in
9705    sni)
9706      shlibpath_overrides_runpath=no
9707      need_lib_prefix=no
9708      export_dynamic_flag_spec='${wl}-Blargedynsym'
9709      runpath_var=LD_RUN_PATH
9710      ;;
9711    siemens)
9712      need_lib_prefix=no
9713      ;;
9714    motorola)
9715      need_lib_prefix=no
9716      need_version=no
9717      shlibpath_overrides_runpath=no
9718      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9719      ;;
9720  esac
9721  ;;
9722
9723sysv4*MP*)
9724  if test -d /usr/nec ;then
9725    version_type=linux
9726    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9727    soname_spec='$libname${shared_ext}.$major'
9728    shlibpath_var=LD_LIBRARY_PATH
9729  fi
9730  ;;
9731
9732uts4*)
9733  version_type=linux
9734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735  soname_spec='${libname}${release}${shared_ext}$major'
9736  shlibpath_var=LD_LIBRARY_PATH
9737  ;;
9738
9739*)
9740  dynamic_linker=no
9741  ;;
9742esac
9743echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9744echo "${ECHO_T}$dynamic_linker" >&6
9745test "$dynamic_linker" = no && can_build_shared=no
9746
9747echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9748echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9749hardcode_action=
9750if test -n "$hardcode_libdir_flag_spec" || \
9751   test -n "$runpath_var" || \
9752   test "X$hardcode_automatic" = "Xyes" ; then
9753
9754  # We can hardcode non-existant directories.
9755  if test "$hardcode_direct" != no &&
9756     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9757     # have to relink, otherwise we might link with an installed library
9758     # when we should be linking with a yet-to-be-installed one
9759     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9760     test "$hardcode_minus_L" != no; then
9761    # Linking always hardcodes the temporary library directory.
9762    hardcode_action=relink
9763  else
9764    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9765    hardcode_action=immediate
9766  fi
9767else
9768  # We cannot hardcode anything, or else we can only hardcode existing
9769  # directories.
9770  hardcode_action=unsupported
9771fi
9772echo "$as_me:$LINENO: result: $hardcode_action" >&5
9773echo "${ECHO_T}$hardcode_action" >&6
9774
9775if test "$hardcode_action" = relink; then
9776  # Fast installation is not supported
9777  enable_fast_install=no
9778elif test "$shlibpath_overrides_runpath" = yes ||
9779     test "$enable_shared" = no; then
9780  # Fast installation is not necessary
9781  enable_fast_install=needless
9782fi
9783
9784striplib=
9785old_striplib=
9786echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9787echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9788if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9789  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9790  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9791  echo "$as_me:$LINENO: result: yes" >&5
9792echo "${ECHO_T}yes" >&6
9793else
9794# FIXME - insert some real tests, host_os isn't really good enough
9795  case $host_os in
9796   darwin*)
9797       if test -n "$STRIP" ; then
9798         striplib="$STRIP -x"
9799         echo "$as_me:$LINENO: result: yes" >&5
9800echo "${ECHO_T}yes" >&6
9801       else
9802  echo "$as_me:$LINENO: result: no" >&5
9803echo "${ECHO_T}no" >&6
9804fi
9805       ;;
9806   *)
9807  echo "$as_me:$LINENO: result: no" >&5
9808echo "${ECHO_T}no" >&6
9809    ;;
9810  esac
9811fi
9812
9813if test "x$enable_dlopen" != xyes; then
9814  enable_dlopen=unknown
9815  enable_dlopen_self=unknown
9816  enable_dlopen_self_static=unknown
9817else
9818  lt_cv_dlopen=no
9819  lt_cv_dlopen_libs=
9820
9821  case $host_os in
9822  beos*)
9823    lt_cv_dlopen="load_add_on"
9824    lt_cv_dlopen_libs=
9825    lt_cv_dlopen_self=yes
9826    ;;
9827
9828  mingw* | pw32*)
9829    lt_cv_dlopen="LoadLibrary"
9830    lt_cv_dlopen_libs=
9831   ;;
9832
9833  cygwin*)
9834    lt_cv_dlopen="dlopen"
9835    lt_cv_dlopen_libs=
9836   ;;
9837
9838  darwin*)
9839  # if libdl is installed we need to link against it
9840    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9841echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9842if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9843  echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845  ac_check_lib_save_LIBS=$LIBS
9846LIBS="-ldl  $LIBS"
9847cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h.  */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h.  */
9853
9854/* Override any gcc2 internal prototype to avoid an error.  */
9855#ifdef __cplusplus
9856extern "C"
9857#endif
9858/* We use char because int might match the return type of a gcc2
9859   builtin and then its argument prototype would still apply.  */
9860char dlopen ();
9861int
9862main ()
9863{
9864dlopen ();
9865  ;
9866  return 0;
9867}
9868_ACEOF
9869rm -f conftest.$ac_objext conftest$ac_exeext
9870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871  (eval $ac_link) 2>conftest.er1
9872  ac_status=$?
9873  grep -v '^ *+' conftest.er1 >conftest.err
9874  rm -f conftest.er1
9875  cat conftest.err >&5
9876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877  (exit $ac_status); } &&
9878	 { ac_try='test -z "$ac_c_werror_flag"
9879			 || test ! -s conftest.err'
9880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881  (eval $ac_try) 2>&5
9882  ac_status=$?
9883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884  (exit $ac_status); }; } &&
9885	 { ac_try='test -s conftest$ac_exeext'
9886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887  (eval $ac_try) 2>&5
9888  ac_status=$?
9889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890  (exit $ac_status); }; }; then
9891  ac_cv_lib_dl_dlopen=yes
9892else
9893  echo "$as_me: failed program was:" >&5
9894sed 's/^/| /' conftest.$ac_ext >&5
9895
9896ac_cv_lib_dl_dlopen=no
9897fi
9898rm -f conftest.err conftest.$ac_objext \
9899      conftest$ac_exeext conftest.$ac_ext
9900LIBS=$ac_check_lib_save_LIBS
9901fi
9902echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9903echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9904if test $ac_cv_lib_dl_dlopen = yes; then
9905  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9906else
9907
9908    lt_cv_dlopen="dyld"
9909    lt_cv_dlopen_libs=
9910    lt_cv_dlopen_self=yes
9911
9912fi
9913
9914   ;;
9915
9916  *)
9917    echo "$as_me:$LINENO: checking for shl_load" >&5
9918echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9919if test "${ac_cv_func_shl_load+set}" = set; then
9920  echo $ECHO_N "(cached) $ECHO_C" >&6
9921else
9922  cat >conftest.$ac_ext <<_ACEOF
9923/* confdefs.h.  */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
9927/* end confdefs.h.  */
9928/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9929   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9930#define shl_load innocuous_shl_load
9931
9932/* System header to define __stub macros and hopefully few prototypes,
9933    which can conflict with char shl_load (); below.
9934    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9935    <limits.h> exists even on freestanding compilers.  */
9936
9937#ifdef __STDC__
9938# include <limits.h>
9939#else
9940# include <assert.h>
9941#endif
9942
9943#undef shl_load
9944
9945/* Override any gcc2 internal prototype to avoid an error.  */
9946#ifdef __cplusplus
9947extern "C"
9948{
9949#endif
9950/* We use char because int might match the return type of a gcc2
9951   builtin and then its argument prototype would still apply.  */
9952char shl_load ();
9953/* The GNU C library defines this for functions which it implements
9954    to always fail with ENOSYS.  Some functions are actually named
9955    something starting with __ and the normal name is an alias.  */
9956#if defined (__stub_shl_load) || defined (__stub___shl_load)
9957choke me
9958#else
9959char (*f) () = shl_load;
9960#endif
9961#ifdef __cplusplus
9962}
9963#endif
9964
9965int
9966main ()
9967{
9968return f != shl_load;
9969  ;
9970  return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
9974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975  (eval $ac_link) 2>conftest.er1
9976  ac_status=$?
9977  grep -v '^ *+' conftest.er1 >conftest.err
9978  rm -f conftest.er1
9979  cat conftest.err >&5
9980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981  (exit $ac_status); } &&
9982	 { ac_try='test -z "$ac_c_werror_flag"
9983			 || test ! -s conftest.err'
9984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985  (eval $ac_try) 2>&5
9986  ac_status=$?
9987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); }; } &&
9989	 { ac_try='test -s conftest$ac_exeext'
9990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991  (eval $ac_try) 2>&5
9992  ac_status=$?
9993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994  (exit $ac_status); }; }; then
9995  ac_cv_func_shl_load=yes
9996else
9997  echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
9999
10000ac_cv_func_shl_load=no
10001fi
10002rm -f conftest.err conftest.$ac_objext \
10003      conftest$ac_exeext conftest.$ac_ext
10004fi
10005echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10006echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10007if test $ac_cv_func_shl_load = yes; then
10008  lt_cv_dlopen="shl_load"
10009else
10010  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10011echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10012if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10013  echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015  ac_check_lib_save_LIBS=$LIBS
10016LIBS="-ldld  $LIBS"
10017cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h.  */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h.  */
10023
10024/* Override any gcc2 internal prototype to avoid an error.  */
10025#ifdef __cplusplus
10026extern "C"
10027#endif
10028/* We use char because int might match the return type of a gcc2
10029   builtin and then its argument prototype would still apply.  */
10030char shl_load ();
10031int
10032main ()
10033{
10034shl_load ();
10035  ;
10036  return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041  (eval $ac_link) 2>conftest.er1
10042  ac_status=$?
10043  grep -v '^ *+' conftest.er1 >conftest.err
10044  rm -f conftest.er1
10045  cat conftest.err >&5
10046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047  (exit $ac_status); } &&
10048	 { ac_try='test -z "$ac_c_werror_flag"
10049			 || test ! -s conftest.err'
10050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051  (eval $ac_try) 2>&5
10052  ac_status=$?
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); }; } &&
10055	 { ac_try='test -s conftest$ac_exeext'
10056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057  (eval $ac_try) 2>&5
10058  ac_status=$?
10059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060  (exit $ac_status); }; }; then
10061  ac_cv_lib_dld_shl_load=yes
10062else
10063  echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
10065
10066ac_cv_lib_dld_shl_load=no
10067fi
10068rm -f conftest.err conftest.$ac_objext \
10069      conftest$ac_exeext conftest.$ac_ext
10070LIBS=$ac_check_lib_save_LIBS
10071fi
10072echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10073echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10074if test $ac_cv_lib_dld_shl_load = yes; then
10075  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10076else
10077  echo "$as_me:$LINENO: checking for dlopen" >&5
10078echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10079if test "${ac_cv_func_dlopen+set}" = set; then
10080  echo $ECHO_N "(cached) $ECHO_C" >&6
10081else
10082  cat >conftest.$ac_ext <<_ACEOF
10083/* confdefs.h.  */
10084_ACEOF
10085cat confdefs.h >>conftest.$ac_ext
10086cat >>conftest.$ac_ext <<_ACEOF
10087/* end confdefs.h.  */
10088/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10089   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10090#define dlopen innocuous_dlopen
10091
10092/* System header to define __stub macros and hopefully few prototypes,
10093    which can conflict with char dlopen (); below.
10094    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10095    <limits.h> exists even on freestanding compilers.  */
10096
10097#ifdef __STDC__
10098# include <limits.h>
10099#else
10100# include <assert.h>
10101#endif
10102
10103#undef dlopen
10104
10105/* Override any gcc2 internal prototype to avoid an error.  */
10106#ifdef __cplusplus
10107extern "C"
10108{
10109#endif
10110/* We use char because int might match the return type of a gcc2
10111   builtin and then its argument prototype would still apply.  */
10112char dlopen ();
10113/* The GNU C library defines this for functions which it implements
10114    to always fail with ENOSYS.  Some functions are actually named
10115    something starting with __ and the normal name is an alias.  */
10116#if defined (__stub_dlopen) || defined (__stub___dlopen)
10117choke me
10118#else
10119char (*f) () = dlopen;
10120#endif
10121#ifdef __cplusplus
10122}
10123#endif
10124
10125int
10126main ()
10127{
10128return f != dlopen;
10129  ;
10130  return 0;
10131}
10132_ACEOF
10133rm -f conftest.$ac_objext conftest$ac_exeext
10134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135  (eval $ac_link) 2>conftest.er1
10136  ac_status=$?
10137  grep -v '^ *+' conftest.er1 >conftest.err
10138  rm -f conftest.er1
10139  cat conftest.err >&5
10140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141  (exit $ac_status); } &&
10142	 { ac_try='test -z "$ac_c_werror_flag"
10143			 || test ! -s conftest.err'
10144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145  (eval $ac_try) 2>&5
10146  ac_status=$?
10147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148  (exit $ac_status); }; } &&
10149	 { ac_try='test -s conftest$ac_exeext'
10150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151  (eval $ac_try) 2>&5
10152  ac_status=$?
10153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154  (exit $ac_status); }; }; then
10155  ac_cv_func_dlopen=yes
10156else
10157  echo "$as_me: failed program was:" >&5
10158sed 's/^/| /' conftest.$ac_ext >&5
10159
10160ac_cv_func_dlopen=no
10161fi
10162rm -f conftest.err conftest.$ac_objext \
10163      conftest$ac_exeext conftest.$ac_ext
10164fi
10165echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10166echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10167if test $ac_cv_func_dlopen = yes; then
10168  lt_cv_dlopen="dlopen"
10169else
10170  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10171echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10172if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10173  echo $ECHO_N "(cached) $ECHO_C" >&6
10174else
10175  ac_check_lib_save_LIBS=$LIBS
10176LIBS="-ldl  $LIBS"
10177cat >conftest.$ac_ext <<_ACEOF
10178/* confdefs.h.  */
10179_ACEOF
10180cat confdefs.h >>conftest.$ac_ext
10181cat >>conftest.$ac_ext <<_ACEOF
10182/* end confdefs.h.  */
10183
10184/* Override any gcc2 internal prototype to avoid an error.  */
10185#ifdef __cplusplus
10186extern "C"
10187#endif
10188/* We use char because int might match the return type of a gcc2
10189   builtin and then its argument prototype would still apply.  */
10190char dlopen ();
10191int
10192main ()
10193{
10194dlopen ();
10195  ;
10196  return 0;
10197}
10198_ACEOF
10199rm -f conftest.$ac_objext conftest$ac_exeext
10200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201  (eval $ac_link) 2>conftest.er1
10202  ac_status=$?
10203  grep -v '^ *+' conftest.er1 >conftest.err
10204  rm -f conftest.er1
10205  cat conftest.err >&5
10206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207  (exit $ac_status); } &&
10208	 { ac_try='test -z "$ac_c_werror_flag"
10209			 || test ! -s conftest.err'
10210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211  (eval $ac_try) 2>&5
10212  ac_status=$?
10213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214  (exit $ac_status); }; } &&
10215	 { ac_try='test -s conftest$ac_exeext'
10216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217  (eval $ac_try) 2>&5
10218  ac_status=$?
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); }; }; then
10221  ac_cv_lib_dl_dlopen=yes
10222else
10223  echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226ac_cv_lib_dl_dlopen=no
10227fi
10228rm -f conftest.err conftest.$ac_objext \
10229      conftest$ac_exeext conftest.$ac_ext
10230LIBS=$ac_check_lib_save_LIBS
10231fi
10232echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10233echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10234if test $ac_cv_lib_dl_dlopen = yes; then
10235  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10236else
10237  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10238echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10239if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10240  echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242  ac_check_lib_save_LIBS=$LIBS
10243LIBS="-lsvld  $LIBS"
10244cat >conftest.$ac_ext <<_ACEOF
10245/* confdefs.h.  */
10246_ACEOF
10247cat confdefs.h >>conftest.$ac_ext
10248cat >>conftest.$ac_ext <<_ACEOF
10249/* end confdefs.h.  */
10250
10251/* Override any gcc2 internal prototype to avoid an error.  */
10252#ifdef __cplusplus
10253extern "C"
10254#endif
10255/* We use char because int might match the return type of a gcc2
10256   builtin and then its argument prototype would still apply.  */
10257char dlopen ();
10258int
10259main ()
10260{
10261dlopen ();
10262  ;
10263  return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
10267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268  (eval $ac_link) 2>conftest.er1
10269  ac_status=$?
10270  grep -v '^ *+' conftest.er1 >conftest.err
10271  rm -f conftest.er1
10272  cat conftest.err >&5
10273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274  (exit $ac_status); } &&
10275	 { ac_try='test -z "$ac_c_werror_flag"
10276			 || test ! -s conftest.err'
10277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278  (eval $ac_try) 2>&5
10279  ac_status=$?
10280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281  (exit $ac_status); }; } &&
10282	 { ac_try='test -s conftest$ac_exeext'
10283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284  (eval $ac_try) 2>&5
10285  ac_status=$?
10286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287  (exit $ac_status); }; }; then
10288  ac_cv_lib_svld_dlopen=yes
10289else
10290  echo "$as_me: failed program was:" >&5
10291sed 's/^/| /' conftest.$ac_ext >&5
10292
10293ac_cv_lib_svld_dlopen=no
10294fi
10295rm -f conftest.err conftest.$ac_objext \
10296      conftest$ac_exeext conftest.$ac_ext
10297LIBS=$ac_check_lib_save_LIBS
10298fi
10299echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10300echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10301if test $ac_cv_lib_svld_dlopen = yes; then
10302  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10303else
10304  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10305echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10306if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10307  echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309  ac_check_lib_save_LIBS=$LIBS
10310LIBS="-ldld  $LIBS"
10311cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h.  */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h.  */
10317
10318/* Override any gcc2 internal prototype to avoid an error.  */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322/* We use char because int might match the return type of a gcc2
10323   builtin and then its argument prototype would still apply.  */
10324char dld_link ();
10325int
10326main ()
10327{
10328dld_link ();
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333rm -f conftest.$ac_objext conftest$ac_exeext
10334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335  (eval $ac_link) 2>conftest.er1
10336  ac_status=$?
10337  grep -v '^ *+' conftest.er1 >conftest.err
10338  rm -f conftest.er1
10339  cat conftest.err >&5
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); } &&
10342	 { ac_try='test -z "$ac_c_werror_flag"
10343			 || test ! -s conftest.err'
10344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345  (eval $ac_try) 2>&5
10346  ac_status=$?
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); }; } &&
10349	 { ac_try='test -s conftest$ac_exeext'
10350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351  (eval $ac_try) 2>&5
10352  ac_status=$?
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); }; }; then
10355  ac_cv_lib_dld_dld_link=yes
10356else
10357  echo "$as_me: failed program was:" >&5
10358sed 's/^/| /' conftest.$ac_ext >&5
10359
10360ac_cv_lib_dld_dld_link=no
10361fi
10362rm -f conftest.err conftest.$ac_objext \
10363      conftest$ac_exeext conftest.$ac_ext
10364LIBS=$ac_check_lib_save_LIBS
10365fi
10366echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10367echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10368if test $ac_cv_lib_dld_dld_link = yes; then
10369  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10370fi
10371
10372
10373fi
10374
10375
10376fi
10377
10378
10379fi
10380
10381
10382fi
10383
10384
10385fi
10386
10387    ;;
10388  esac
10389
10390  if test "x$lt_cv_dlopen" != xno; then
10391    enable_dlopen=yes
10392  else
10393    enable_dlopen=no
10394  fi
10395
10396  case $lt_cv_dlopen in
10397  dlopen)
10398    save_CPPFLAGS="$CPPFLAGS"
10399    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10400
10401    save_LDFLAGS="$LDFLAGS"
10402    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10403
10404    save_LIBS="$LIBS"
10405    LIBS="$lt_cv_dlopen_libs $LIBS"
10406
10407    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10408echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10409if test "${lt_cv_dlopen_self+set}" = set; then
10410  echo $ECHO_N "(cached) $ECHO_C" >&6
10411else
10412  	  if test "$cross_compiling" = yes; then :
10413  lt_cv_dlopen_self=cross
10414else
10415  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10416  lt_status=$lt_dlunknown
10417  cat > conftest.$ac_ext <<EOF
10418#line 10418 "configure"
10419#include "confdefs.h"
10420
10421#if HAVE_DLFCN_H
10422#include <dlfcn.h>
10423#endif
10424
10425#include <stdio.h>
10426
10427#ifdef RTLD_GLOBAL
10428#  define LT_DLGLOBAL		RTLD_GLOBAL
10429#else
10430#  ifdef DL_GLOBAL
10431#    define LT_DLGLOBAL		DL_GLOBAL
10432#  else
10433#    define LT_DLGLOBAL		0
10434#  endif
10435#endif
10436
10437/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10438   find out it does not work in some platform. */
10439#ifndef LT_DLLAZY_OR_NOW
10440#  ifdef RTLD_LAZY
10441#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10442#  else
10443#    ifdef DL_LAZY
10444#      define LT_DLLAZY_OR_NOW		DL_LAZY
10445#    else
10446#      ifdef RTLD_NOW
10447#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10448#      else
10449#        ifdef DL_NOW
10450#          define LT_DLLAZY_OR_NOW	DL_NOW
10451#        else
10452#          define LT_DLLAZY_OR_NOW	0
10453#        endif
10454#      endif
10455#    endif
10456#  endif
10457#endif
10458
10459#ifdef __cplusplus
10460extern "C" void exit (int);
10461#endif
10462
10463void fnord() { int i=42;}
10464int main ()
10465{
10466  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10467  int status = $lt_dlunknown;
10468
10469  if (self)
10470    {
10471      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10472      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10473      /* dlclose (self); */
10474    }
10475
10476    exit (status);
10477}
10478EOF
10479  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480  (eval $ac_link) 2>&5
10481  ac_status=$?
10482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10484    (./conftest; exit; ) 2>/dev/null
10485    lt_status=$?
10486    case x$lt_status in
10487      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10488      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10489      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10490    esac
10491  else :
10492    # compilation failed
10493    lt_cv_dlopen_self=no
10494  fi
10495fi
10496rm -fr conftest*
10497
10498
10499fi
10500echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10501echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10502
10503    if test "x$lt_cv_dlopen_self" = xyes; then
10504      LDFLAGS="$LDFLAGS $link_static_flag"
10505      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10506echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10507if test "${lt_cv_dlopen_self_static+set}" = set; then
10508  echo $ECHO_N "(cached) $ECHO_C" >&6
10509else
10510  	  if test "$cross_compiling" = yes; then :
10511  lt_cv_dlopen_self_static=cross
10512else
10513  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10514  lt_status=$lt_dlunknown
10515  cat > conftest.$ac_ext <<EOF
10516#line 10516 "configure"
10517#include "confdefs.h"
10518
10519#if HAVE_DLFCN_H
10520#include <dlfcn.h>
10521#endif
10522
10523#include <stdio.h>
10524
10525#ifdef RTLD_GLOBAL
10526#  define LT_DLGLOBAL		RTLD_GLOBAL
10527#else
10528#  ifdef DL_GLOBAL
10529#    define LT_DLGLOBAL		DL_GLOBAL
10530#  else
10531#    define LT_DLGLOBAL		0
10532#  endif
10533#endif
10534
10535/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10536   find out it does not work in some platform. */
10537#ifndef LT_DLLAZY_OR_NOW
10538#  ifdef RTLD_LAZY
10539#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10540#  else
10541#    ifdef DL_LAZY
10542#      define LT_DLLAZY_OR_NOW		DL_LAZY
10543#    else
10544#      ifdef RTLD_NOW
10545#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10546#      else
10547#        ifdef DL_NOW
10548#          define LT_DLLAZY_OR_NOW	DL_NOW
10549#        else
10550#          define LT_DLLAZY_OR_NOW	0
10551#        endif
10552#      endif
10553#    endif
10554#  endif
10555#endif
10556
10557#ifdef __cplusplus
10558extern "C" void exit (int);
10559#endif
10560
10561void fnord() { int i=42;}
10562int main ()
10563{
10564  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10565  int status = $lt_dlunknown;
10566
10567  if (self)
10568    {
10569      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10570      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10571      /* dlclose (self); */
10572    }
10573
10574    exit (status);
10575}
10576EOF
10577  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10578  (eval $ac_link) 2>&5
10579  ac_status=$?
10580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10582    (./conftest; exit; ) 2>/dev/null
10583    lt_status=$?
10584    case x$lt_status in
10585      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10586      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10587      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10588    esac
10589  else :
10590    # compilation failed
10591    lt_cv_dlopen_self_static=no
10592  fi
10593fi
10594rm -fr conftest*
10595
10596
10597fi
10598echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10599echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10600    fi
10601
10602    CPPFLAGS="$save_CPPFLAGS"
10603    LDFLAGS="$save_LDFLAGS"
10604    LIBS="$save_LIBS"
10605    ;;
10606  esac
10607
10608  case $lt_cv_dlopen_self in
10609  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10610  *) enable_dlopen_self=unknown ;;
10611  esac
10612
10613  case $lt_cv_dlopen_self_static in
10614  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10615  *) enable_dlopen_self_static=unknown ;;
10616  esac
10617fi
10618
10619
10620# Report which librarie types wil actually be built
10621echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10622echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10623echo "$as_me:$LINENO: result: $can_build_shared" >&5
10624echo "${ECHO_T}$can_build_shared" >&6
10625
10626echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10627echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10628test "$can_build_shared" = "no" && enable_shared=no
10629
10630# On AIX, shared libraries and static libraries use the same namespace, and
10631# are all built from PIC.
10632case "$host_os" in
10633aix3*)
10634  test "$enable_shared" = yes && enable_static=no
10635  if test -n "$RANLIB"; then
10636    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10637    postinstall_cmds='$RANLIB $lib'
10638  fi
10639  ;;
10640
10641aix4* | aix5*)
10642  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10643    test "$enable_shared" = yes && enable_static=no
10644  fi
10645    ;;
10646esac
10647echo "$as_me:$LINENO: result: $enable_shared" >&5
10648echo "${ECHO_T}$enable_shared" >&6
10649
10650echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10651echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10652# Make sure either enable_shared or enable_static is yes.
10653test "$enable_shared" = yes || enable_static=yes
10654echo "$as_me:$LINENO: result: $enable_static" >&5
10655echo "${ECHO_T}$enable_static" >&6
10656
10657# The else clause should only fire when bootstrapping the
10658# libtool distribution, otherwise you forgot to ship ltmain.sh
10659# with your package, and you will get complaints that there are
10660# no rules to generate ltmain.sh.
10661if test -f "$ltmain"; then
10662  # See if we are running on zsh, and set the options which allow our commands through
10663  # without removal of \ escapes.
10664  if test -n "${ZSH_VERSION+set}" ; then
10665    setopt NO_GLOB_SUBST
10666  fi
10667  # Now quote all the things that may contain metacharacters while being
10668  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10669  # variables and quote the copies for generation of the libtool script.
10670  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10671    SED SHELL STRIP \
10672    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10673    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10674    deplibs_check_method reload_flag reload_cmds need_locks \
10675    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10676    lt_cv_sys_global_symbol_to_c_name_address \
10677    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10678    old_postinstall_cmds old_postuninstall_cmds \
10679    compiler \
10680    CC \
10681    LD \
10682    lt_prog_compiler_wl \
10683    lt_prog_compiler_pic \
10684    lt_prog_compiler_static \
10685    lt_prog_compiler_no_builtin_flag \
10686    export_dynamic_flag_spec \
10687    thread_safe_flag_spec \
10688    whole_archive_flag_spec \
10689    enable_shared_with_static_runtimes \
10690    old_archive_cmds \
10691    old_archive_from_new_cmds \
10692    predep_objects \
10693    postdep_objects \
10694    predeps \
10695    postdeps \
10696    compiler_lib_search_path \
10697    archive_cmds \
10698    archive_expsym_cmds \
10699    postinstall_cmds \
10700    postuninstall_cmds \
10701    old_archive_from_expsyms_cmds \
10702    allow_undefined_flag \
10703    no_undefined_flag \
10704    export_symbols_cmds \
10705    hardcode_libdir_flag_spec \
10706    hardcode_libdir_flag_spec_ld \
10707    hardcode_libdir_separator \
10708    hardcode_automatic \
10709    module_cmds \
10710    module_expsym_cmds \
10711    lt_cv_prog_compiler_c_o \
10712    exclude_expsyms \
10713    include_expsyms; do
10714
10715    case $var in
10716    old_archive_cmds | \
10717    old_archive_from_new_cmds | \
10718    archive_cmds | \
10719    archive_expsym_cmds | \
10720    module_cmds | \
10721    module_expsym_cmds | \
10722    old_archive_from_expsyms_cmds | \
10723    export_symbols_cmds | \
10724    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10725    postinstall_cmds | postuninstall_cmds | \
10726    old_postinstall_cmds | old_postuninstall_cmds | \
10727    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10728      # Double-quote double-evaled strings.
10729      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10730      ;;
10731    *)
10732      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10733      ;;
10734    esac
10735  done
10736
10737  case $lt_echo in
10738  *'\$0 --fallback-echo"')
10739    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10740    ;;
10741  esac
10742
10743cfgfile="${ofile}T"
10744  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10745  $rm -f "$cfgfile"
10746  { echo "$as_me:$LINENO: creating $ofile" >&5
10747echo "$as_me: creating $ofile" >&6;}
10748
10749  cat <<__EOF__ >> "$cfgfile"
10750#! $SHELL
10751
10752# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10753# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10754# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10755#
10756# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10757# Free Software Foundation, Inc.
10758#
10759# This file is part of GNU Libtool:
10760# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10761#
10762# This program is free software; you can redistribute it and/or modify
10763# it under the terms of the GNU General Public License as published by
10764# the Free Software Foundation; either version 2 of the License, or
10765# (at your option) any later version.
10766#
10767# This program is distributed in the hope that it will be useful, but
10768# WITHOUT ANY WARRANTY; without even the implied warranty of
10769# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10770# General Public License for more details.
10771#
10772# You should have received a copy of the GNU General Public License
10773# along with this program; if not, write to the Free Software
10774# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10775#
10776# As a special exception to the GNU General Public License, if you
10777# distribute this file as part of a program that contains a
10778# configuration script generated by Autoconf, you may include it under
10779# the same distribution terms that you use for the rest of that program.
10780
10781# A sed program that does not truncate output.
10782SED=$lt_SED
10783
10784# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10785Xsed="$SED -e s/^X//"
10786
10787# The HP-UX ksh and POSIX shell print the target directory to stdout
10788# if CDPATH is set.
10789(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10790
10791# The names of the tagged configurations supported by this script.
10792available_tags=
10793
10794# ### BEGIN LIBTOOL CONFIG
10795
10796# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10797
10798# Shell to use when invoking shell scripts.
10799SHELL=$lt_SHELL
10800
10801# Whether or not to build shared libraries.
10802build_libtool_libs=$enable_shared
10803
10804# Whether or not to build static libraries.
10805build_old_libs=$enable_static
10806
10807# Whether or not to add -lc for building shared libraries.
10808build_libtool_need_lc=$archive_cmds_need_lc
10809
10810# Whether or not to disallow shared libs when runtime libs are static
10811allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10812
10813# Whether or not to optimize for fast installation.
10814fast_install=$enable_fast_install
10815
10816# The host system.
10817host_alias=$host_alias
10818host=$host
10819host_os=$host_os
10820
10821# The build system.
10822build_alias=$build_alias
10823build=$build
10824build_os=$build_os
10825
10826# An echo program that does not interpret backslashes.
10827echo=$lt_echo
10828
10829# The archiver.
10830AR=$lt_AR
10831AR_FLAGS=$lt_AR_FLAGS
10832
10833# A C compiler.
10834LTCC=$lt_LTCC
10835
10836# A language-specific compiler.
10837CC=$lt_compiler
10838
10839# Is the compiler the GNU C compiler?
10840with_gcc=$GCC
10841
10842# An ERE matcher.
10843EGREP=$lt_EGREP
10844
10845# The linker used to build libraries.
10846LD=$lt_LD
10847
10848# Whether we need hard or soft links.
10849LN_S=$lt_LN_S
10850
10851# A BSD-compatible nm program.
10852NM=$lt_NM
10853
10854# A symbol stripping program
10855STRIP=$lt_STRIP
10856
10857# Used to examine libraries when file_magic_cmd begins "file"
10858MAGIC_CMD=$MAGIC_CMD
10859
10860# Used on cygwin: DLL creation program.
10861DLLTOOL="$DLLTOOL"
10862
10863# Used on cygwin: object dumper.
10864OBJDUMP="$OBJDUMP"
10865
10866# Used on cygwin: assembler.
10867AS="$AS"
10868
10869# The name of the directory that contains temporary libtool files.
10870objdir=$objdir
10871
10872# How to create reloadable object files.
10873reload_flag=$lt_reload_flag
10874reload_cmds=$lt_reload_cmds
10875
10876# How to pass a linker flag through the compiler.
10877wl=$lt_lt_prog_compiler_wl
10878
10879# Object file suffix (normally "o").
10880objext="$ac_objext"
10881
10882# Old archive suffix (normally "a").
10883libext="$libext"
10884
10885# Shared library suffix (normally ".so").
10886shrext_cmds='$shrext_cmds'
10887
10888# Executable file suffix (normally "").
10889exeext="$exeext"
10890
10891# Additional compiler flags for building library objects.
10892pic_flag=$lt_lt_prog_compiler_pic
10893pic_mode=$pic_mode
10894
10895# What is the maximum length of a command?
10896max_cmd_len=$lt_cv_sys_max_cmd_len
10897
10898# Does compiler simultaneously support -c and -o options?
10899compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10900
10901# Must we lock files when doing compilation ?
10902need_locks=$lt_need_locks
10903
10904# Do we need the lib prefix for modules?
10905need_lib_prefix=$need_lib_prefix
10906
10907# Do we need a version for libraries?
10908need_version=$need_version
10909
10910# Whether dlopen is supported.
10911dlopen_support=$enable_dlopen
10912
10913# Whether dlopen of programs is supported.
10914dlopen_self=$enable_dlopen_self
10915
10916# Whether dlopen of statically linked programs is supported.
10917dlopen_self_static=$enable_dlopen_self_static
10918
10919# Compiler flag to prevent dynamic linking.
10920link_static_flag=$lt_lt_prog_compiler_static
10921
10922# Compiler flag to turn off builtin functions.
10923no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10924
10925# Compiler flag to allow reflexive dlopens.
10926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10927
10928# Compiler flag to generate shared objects directly from archives.
10929whole_archive_flag_spec=$lt_whole_archive_flag_spec
10930
10931# Compiler flag to generate thread-safe objects.
10932thread_safe_flag_spec=$lt_thread_safe_flag_spec
10933
10934# Library versioning type.
10935version_type=$version_type
10936
10937# Format of library name prefix.
10938libname_spec=$lt_libname_spec
10939
10940# List of archive names.  First name is the real one, the rest are links.
10941# The last name is the one that the linker finds with -lNAME.
10942library_names_spec=$lt_library_names_spec
10943
10944# The coded name of the library, if different from the real name.
10945soname_spec=$lt_soname_spec
10946
10947# Commands used to build and install an old-style archive.
10948RANLIB=$lt_RANLIB
10949old_archive_cmds=$lt_old_archive_cmds
10950old_postinstall_cmds=$lt_old_postinstall_cmds
10951old_postuninstall_cmds=$lt_old_postuninstall_cmds
10952
10953# Create an old-style archive from a shared archive.
10954old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10955
10956# Create a temporary old-style archive to link instead of a shared archive.
10957old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10958
10959# Commands used to build and install a shared archive.
10960archive_cmds=$lt_archive_cmds
10961archive_expsym_cmds=$lt_archive_expsym_cmds
10962postinstall_cmds=$lt_postinstall_cmds
10963postuninstall_cmds=$lt_postuninstall_cmds
10964
10965# Commands used to build a loadable module (assumed same as above if empty)
10966module_cmds=$lt_module_cmds
10967module_expsym_cmds=$lt_module_expsym_cmds
10968
10969# Commands to strip libraries.
10970old_striplib=$lt_old_striplib
10971striplib=$lt_striplib
10972
10973# Dependencies to place before the objects being linked to create a
10974# shared library.
10975predep_objects=$lt_predep_objects
10976
10977# Dependencies to place after the objects being linked to create a
10978# shared library.
10979postdep_objects=$lt_postdep_objects
10980
10981# Dependencies to place before the objects being linked to create a
10982# shared library.
10983predeps=$lt_predeps
10984
10985# Dependencies to place after the objects being linked to create a
10986# shared library.
10987postdeps=$lt_postdeps
10988
10989# The library search path used internally by the compiler when linking
10990# a shared library.
10991compiler_lib_search_path=$lt_compiler_lib_search_path
10992
10993# Method to check whether dependent libraries are shared objects.
10994deplibs_check_method=$lt_deplibs_check_method
10995
10996# Command to use when deplibs_check_method == file_magic.
10997file_magic_cmd=$lt_file_magic_cmd
10998
10999# Flag that allows shared libraries with undefined symbols to be built.
11000allow_undefined_flag=$lt_allow_undefined_flag
11001
11002# Flag that forces no undefined symbols.
11003no_undefined_flag=$lt_no_undefined_flag
11004
11005# Commands used to finish a libtool library installation in a directory.
11006finish_cmds=$lt_finish_cmds
11007
11008# Same as above, but a single script fragment to be evaled but not shown.
11009finish_eval=$lt_finish_eval
11010
11011# Take the output of nm and produce a listing of raw symbols and C names.
11012global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11013
11014# Transform the output of nm in a proper C declaration
11015global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11016
11017# Transform the output of nm in a C name address pair
11018global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11019
11020# This is the shared library runtime path variable.
11021runpath_var=$runpath_var
11022
11023# This is the shared library path variable.
11024shlibpath_var=$shlibpath_var
11025
11026# Is shlibpath searched before the hard-coded library search path?
11027shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11028
11029# How to hardcode a shared library path into an executable.
11030hardcode_action=$hardcode_action
11031
11032# Whether we should hardcode library paths into libraries.
11033hardcode_into_libs=$hardcode_into_libs
11034
11035# Flag to hardcode \$libdir into a binary during linking.
11036# This must work even if \$libdir does not exist.
11037hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11038
11039# If ld is used when linking, flag to hardcode \$libdir into
11040# a binary during linking. This must work even if \$libdir does
11041# not exist.
11042hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11043
11044# Whether we need a single -rpath flag with a separated argument.
11045hardcode_libdir_separator=$lt_hardcode_libdir_separator
11046
11047# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11048# resulting binary.
11049hardcode_direct=$hardcode_direct
11050
11051# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11052# resulting binary.
11053hardcode_minus_L=$hardcode_minus_L
11054
11055# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11056# the resulting binary.
11057hardcode_shlibpath_var=$hardcode_shlibpath_var
11058
11059# Set to yes if building a shared library automatically hardcodes DIR into the library
11060# and all subsequent libraries and executables linked against it.
11061hardcode_automatic=$hardcode_automatic
11062
11063# Variables whose values should be saved in libtool wrapper scripts and
11064# restored at relink time.
11065variables_saved_for_relink="$variables_saved_for_relink"
11066
11067# Whether libtool must link a program against all its dependency libraries.
11068link_all_deplibs=$link_all_deplibs
11069
11070# Compile-time system search path for libraries
11071sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11072
11073# Run-time system search path for libraries
11074sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11075
11076# Fix the shell variable \$srcfile for the compiler.
11077fix_srcfile_path="$fix_srcfile_path"
11078
11079# Set to yes if exported symbols are required.
11080always_export_symbols=$always_export_symbols
11081
11082# The commands to list exported symbols.
11083export_symbols_cmds=$lt_export_symbols_cmds
11084
11085# The commands to extract the exported symbol list from a shared archive.
11086extract_expsyms_cmds=$lt_extract_expsyms_cmds
11087
11088# Symbols that should not be listed in the preloaded symbols.
11089exclude_expsyms=$lt_exclude_expsyms
11090
11091# Symbols that must always be exported.
11092include_expsyms=$lt_include_expsyms
11093
11094# ### END LIBTOOL CONFIG
11095
11096__EOF__
11097
11098
11099  case $host_os in
11100  aix3*)
11101    cat <<\EOF >> "$cfgfile"
11102
11103# AIX sometimes has problems with the GCC collect2 program.  For some
11104# reason, if we set the COLLECT_NAMES environment variable, the problems
11105# vanish in a puff of smoke.
11106if test "X${COLLECT_NAMES+set}" != Xset; then
11107  COLLECT_NAMES=
11108  export COLLECT_NAMES
11109fi
11110EOF
11111    ;;
11112  esac
11113
11114  # We use sed instead of cat because bash on DJGPP gets confused if
11115  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11116  # text mode, it properly converts lines to CR/LF.  This bash problem
11117  # is reportedly fixed, but why not run on old versions too?
11118  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11119
11120  mv -f "$cfgfile" "$ofile" || \
11121    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11122  chmod +x "$ofile"
11123
11124else
11125  # If there is no Makefile yet, we rely on a make rule to execute
11126  # `config.status --recheck' to rerun these tests and create the
11127  # libtool script then.
11128  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11129  if test -f "$ltmain_in"; then
11130    test -f Makefile && make "$ltmain"
11131  fi
11132fi
11133
11134
11135ac_ext=c
11136ac_cpp='$CPP $CPPFLAGS'
11137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139ac_compiler_gnu=$ac_cv_c_compiler_gnu
11140
11141CC="$lt_save_CC"
11142
11143
11144# Check whether --with-tags or --without-tags was given.
11145if test "${with_tags+set}" = set; then
11146  withval="$with_tags"
11147  tagnames="$withval"
11148fi;
11149
11150if test -f "$ltmain" && test -n "$tagnames"; then
11151  if test ! -f "${ofile}"; then
11152    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11153echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11154  fi
11155
11156  if test -z "$LTCC"; then
11157    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11158    if test -z "$LTCC"; then
11159      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11160echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11161    else
11162      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11163echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11164    fi
11165  fi
11166
11167  # Extract list of available tagged configurations in $ofile.
11168  # Note that this assumes the entire list is on one line.
11169  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11170
11171  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11172  for tagname in $tagnames; do
11173    IFS="$lt_save_ifs"
11174    # Check whether tagname contains only valid characters
11175    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11176    "") ;;
11177    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11178echo "$as_me: error: invalid tag name: $tagname" >&2;}
11179   { (exit 1); exit 1; }; }
11180	;;
11181    esac
11182
11183    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11184    then
11185      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11186echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11187   { (exit 1); exit 1; }; }
11188    fi
11189
11190    # Update the list of available tags.
11191    if test -n "$tagname"; then
11192      echo appending configuration tag \"$tagname\" to $ofile
11193
11194      case $tagname in
11195      CXX)
11196	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11197	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11198	    (test "X$CXX" != "Xg++"))) ; then
11199	  ac_ext=cc
11200ac_cpp='$CXXCPP $CPPFLAGS'
11201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11204
11205
11206
11207
11208archive_cmds_need_lc_CXX=no
11209allow_undefined_flag_CXX=
11210always_export_symbols_CXX=no
11211archive_expsym_cmds_CXX=
11212export_dynamic_flag_spec_CXX=
11213hardcode_direct_CXX=no
11214hardcode_libdir_flag_spec_CXX=
11215hardcode_libdir_flag_spec_ld_CXX=
11216hardcode_libdir_separator_CXX=
11217hardcode_minus_L_CXX=no
11218hardcode_automatic_CXX=no
11219module_cmds_CXX=
11220module_expsym_cmds_CXX=
11221link_all_deplibs_CXX=unknown
11222old_archive_cmds_CXX=$old_archive_cmds
11223no_undefined_flag_CXX=
11224whole_archive_flag_spec_CXX=
11225enable_shared_with_static_runtimes_CXX=no
11226
11227# Dependencies to place before and after the object being linked:
11228predep_objects_CXX=
11229postdep_objects_CXX=
11230predeps_CXX=
11231postdeps_CXX=
11232compiler_lib_search_path_CXX=
11233
11234# Source file extension for C++ test sources.
11235ac_ext=cc
11236
11237# Object file extension for compiled C++ test sources.
11238objext=o
11239objext_CXX=$objext
11240
11241# Code to be used in simple compile tests
11242lt_simple_compile_test_code="int some_variable = 0;\n"
11243
11244# Code to be used in simple link tests
11245lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11246
11247# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11248
11249# If no C compiler was specified, use CC.
11250LTCC=${LTCC-"$CC"}
11251
11252# Allow CC to be a program name with arguments.
11253compiler=$CC
11254
11255
11256# Allow CC to be a program name with arguments.
11257lt_save_CC=$CC
11258lt_save_LD=$LD
11259lt_save_GCC=$GCC
11260GCC=$GXX
11261lt_save_with_gnu_ld=$with_gnu_ld
11262lt_save_path_LD=$lt_cv_path_LD
11263if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11264  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11265else
11266  unset lt_cv_prog_gnu_ld
11267fi
11268if test -n "${lt_cv_path_LDCXX+set}"; then
11269  lt_cv_path_LD=$lt_cv_path_LDCXX
11270else
11271  unset lt_cv_path_LD
11272fi
11273test -z "${LDCXX+set}" || LD=$LDCXX
11274CC=${CXX-"c++"}
11275compiler=$CC
11276compiler_CXX=$CC
11277cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11278
11279# We don't want -fno-exception wen compiling C++ code, so set the
11280# no_builtin_flag separately
11281if test "$GXX" = yes; then
11282  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11283else
11284  lt_prog_compiler_no_builtin_flag_CXX=
11285fi
11286
11287if test "$GXX" = yes; then
11288  # Set up default GNU C++ configuration
11289
11290
11291# Check whether --with-gnu-ld or --without-gnu-ld was given.
11292if test "${with_gnu_ld+set}" = set; then
11293  withval="$with_gnu_ld"
11294  test "$withval" = no || with_gnu_ld=yes
11295else
11296  with_gnu_ld=no
11297fi;
11298ac_prog=ld
11299if test "$GCC" = yes; then
11300  # Check if gcc -print-prog-name=ld gives a path.
11301  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11302echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11303  case $host in
11304  *-*-mingw*)
11305    # gcc leaves a trailing carriage return which upsets mingw
11306    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11307  *)
11308    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11309  esac
11310  case $ac_prog in
11311    # Accept absolute paths.
11312    [\\/]* | ?:[\\/]*)
11313      re_direlt='/[^/][^/]*/\.\./'
11314      # Canonicalize the pathname of ld
11315      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11316      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11317	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11318      done
11319      test -z "$LD" && LD="$ac_prog"
11320      ;;
11321  "")
11322    # If it fails, then pretend we aren't using GCC.
11323    ac_prog=ld
11324    ;;
11325  *)
11326    # If it is relative, then search for the first ld in PATH.
11327    with_gnu_ld=unknown
11328    ;;
11329  esac
11330elif test "$with_gnu_ld" = yes; then
11331  echo "$as_me:$LINENO: checking for GNU ld" >&5
11332echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11333else
11334  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11335echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11336fi
11337if test "${lt_cv_path_LD+set}" = set; then
11338  echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340  if test -z "$LD"; then
11341  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11342  for ac_dir in $PATH; do
11343    IFS="$lt_save_ifs"
11344    test -z "$ac_dir" && ac_dir=.
11345    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11346      lt_cv_path_LD="$ac_dir/$ac_prog"
11347      # Check to see if the program is GNU ld.  I'd rather use --version,
11348      # but apparently some GNU ld's only accept -v.
11349      # Break only if it was the GNU/non-GNU ld that we prefer.
11350      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11351      *GNU* | *'with BFD'*)
11352	test "$with_gnu_ld" != no && break
11353	;;
11354      *)
11355	test "$with_gnu_ld" != yes && break
11356	;;
11357      esac
11358    fi
11359  done
11360  IFS="$lt_save_ifs"
11361else
11362  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11363fi
11364fi
11365
11366LD="$lt_cv_path_LD"
11367if test -n "$LD"; then
11368  echo "$as_me:$LINENO: result: $LD" >&5
11369echo "${ECHO_T}$LD" >&6
11370else
11371  echo "$as_me:$LINENO: result: no" >&5
11372echo "${ECHO_T}no" >&6
11373fi
11374test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11375echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11376   { (exit 1); exit 1; }; }
11377echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11378echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11379if test "${lt_cv_prog_gnu_ld+set}" = set; then
11380  echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11383case `$LD -v 2>&1 </dev/null` in
11384*GNU* | *'with BFD'*)
11385  lt_cv_prog_gnu_ld=yes
11386  ;;
11387*)
11388  lt_cv_prog_gnu_ld=no
11389  ;;
11390esac
11391fi
11392echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11393echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11394with_gnu_ld=$lt_cv_prog_gnu_ld
11395
11396
11397
11398  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11399  # archiving commands below assume that GNU ld is being used.
11400  if test "$with_gnu_ld" = yes; then
11401    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11402    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11403
11404    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11405    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11406
11407    # If archive_cmds runs LD, not CC, wlarc should be empty
11408    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11409    #     investigate it a little bit more. (MM)
11410    wlarc='${wl}'
11411
11412    # ancient GNU ld didn't support --whole-archive et. al.
11413    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11414	grep 'no-whole-archive' > /dev/null; then
11415      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11416    else
11417      whole_archive_flag_spec_CXX=
11418    fi
11419  else
11420    with_gnu_ld=no
11421    wlarc=
11422
11423    # A generic and very simple default shared library creation
11424    # command for GNU C++ for the case where it uses the native
11425    # linker, instead of GNU ld.  If possible, this setting should
11426    # overridden to take advantage of the native linker features on
11427    # the platform it is being used on.
11428    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11429  fi
11430
11431  # Commands to make compiler produce verbose output that lists
11432  # what "hidden" libraries, object files and flags are used when
11433  # linking a shared library.
11434  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11435
11436else
11437  GXX=no
11438  with_gnu_ld=no
11439  wlarc=
11440fi
11441
11442# PORTME: fill in a description of your system's C++ link characteristics
11443echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11444echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11445ld_shlibs_CXX=yes
11446case $host_os in
11447  aix3*)
11448    # FIXME: insert proper C++ library support
11449    ld_shlibs_CXX=no
11450    ;;
11451  aix4* | aix5*)
11452    if test "$host_cpu" = ia64; then
11453      # On IA64, the linker does run time linking by default, so we don't
11454      # have to do anything special.
11455      aix_use_runtimelinking=no
11456      exp_sym_flag='-Bexport'
11457      no_entry_flag=""
11458    else
11459      aix_use_runtimelinking=no
11460
11461      # Test if we are trying to use run time linking or normal
11462      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11463      # need to do runtime linking.
11464      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11465	for ld_flag in $LDFLAGS; do
11466	  case $ld_flag in
11467	  *-brtl*)
11468	    aix_use_runtimelinking=yes
11469	    break
11470	    ;;
11471	  esac
11472	done
11473      esac
11474
11475      exp_sym_flag='-bexport'
11476      no_entry_flag='-bnoentry'
11477    fi
11478
11479    # When large executables or shared objects are built, AIX ld can
11480    # have problems creating the table of contents.  If linking a library
11481    # or program results in "error TOC overflow" add -mminimal-toc to
11482    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11483    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11484
11485    archive_cmds_CXX=''
11486    hardcode_direct_CXX=yes
11487    hardcode_libdir_separator_CXX=':'
11488    link_all_deplibs_CXX=yes
11489
11490    if test "$GXX" = yes; then
11491      case $host_os in aix4.[012]|aix4.[012].*)
11492      # We only want to do this on AIX 4.2 and lower, the check
11493      # below for broken collect2 doesn't work under 4.3+
11494	collect2name=`${CC} -print-prog-name=collect2`
11495	if test -f "$collect2name" && \
11496	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11497	then
11498	  # We have reworked collect2
11499	  hardcode_direct_CXX=yes
11500	else
11501	  # We have old collect2
11502	  hardcode_direct_CXX=unsupported
11503	  # It fails to find uninstalled libraries when the uninstalled
11504	  # path is not listed in the libpath.  Setting hardcode_minus_L
11505	  # to unsupported forces relinking
11506	  hardcode_minus_L_CXX=yes
11507	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11508	  hardcode_libdir_separator_CXX=
11509	fi
11510      esac
11511      shared_flag='-shared'
11512      if test "$aix_use_runtimelinking" = yes; then
11513	shared_flag="$shared_flag "'${wl}-G'
11514      fi
11515    else
11516      # not using gcc
11517      if test "$host_cpu" = ia64; then
11518	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11519	# chokes on -Wl,-G. The following line is correct:
11520	shared_flag='-G'
11521      else
11522	if test "$aix_use_runtimelinking" = yes; then
11523	  shared_flag='${wl}-G'
11524	else
11525	  shared_flag='${wl}-bM:SRE'
11526	fi
11527      fi
11528    fi
11529
11530    # It seems that -bexpall does not export symbols beginning with
11531    # underscore (_), so it is better to generate a list of symbols to export.
11532    always_export_symbols_CXX=yes
11533    if test "$aix_use_runtimelinking" = yes; then
11534      # Warning - without using the other runtime loading flags (-brtl),
11535      # -berok will link without error, but may produce a broken library.
11536      allow_undefined_flag_CXX='-berok'
11537      # Determine the default libpath from the value encoded in an empty executable.
11538      cat >conftest.$ac_ext <<_ACEOF
11539/* confdefs.h.  */
11540_ACEOF
11541cat confdefs.h >>conftest.$ac_ext
11542cat >>conftest.$ac_ext <<_ACEOF
11543/* end confdefs.h.  */
11544
11545int
11546main ()
11547{
11548
11549  ;
11550  return 0;
11551}
11552_ACEOF
11553rm -f conftest.$ac_objext conftest$ac_exeext
11554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555  (eval $ac_link) 2>conftest.er1
11556  ac_status=$?
11557  grep -v '^ *+' conftest.er1 >conftest.err
11558  rm -f conftest.er1
11559  cat conftest.err >&5
11560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561  (exit $ac_status); } &&
11562	 { ac_try='test -z "$ac_cxx_werror_flag"
11563			 || test ! -s conftest.err'
11564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565  (eval $ac_try) 2>&5
11566  ac_status=$?
11567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568  (exit $ac_status); }; } &&
11569	 { ac_try='test -s conftest$ac_exeext'
11570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571  (eval $ac_try) 2>&5
11572  ac_status=$?
11573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574  (exit $ac_status); }; }; then
11575
11576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11577}'`
11578# Check for a 64-bit object if we didn't find anything.
11579if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11580}'`; fi
11581else
11582  echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
11585fi
11586rm -f conftest.err conftest.$ac_objext \
11587      conftest$ac_exeext conftest.$ac_ext
11588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11589
11590      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11591
11592      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11593     else
11594      if test "$host_cpu" = ia64; then
11595	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11596	allow_undefined_flag_CXX="-z nodefs"
11597	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11598      else
11599	# Determine the default libpath from the value encoded in an empty executable.
11600	cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h.  */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h.  */
11606
11607int
11608main ()
11609{
11610
11611  ;
11612  return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext conftest$ac_exeext
11616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617  (eval $ac_link) 2>conftest.er1
11618  ac_status=$?
11619  grep -v '^ *+' conftest.er1 >conftest.err
11620  rm -f conftest.er1
11621  cat conftest.err >&5
11622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623  (exit $ac_status); } &&
11624	 { ac_try='test -z "$ac_cxx_werror_flag"
11625			 || test ! -s conftest.err'
11626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627  (eval $ac_try) 2>&5
11628  ac_status=$?
11629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630  (exit $ac_status); }; } &&
11631	 { ac_try='test -s conftest$ac_exeext'
11632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633  (eval $ac_try) 2>&5
11634  ac_status=$?
11635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636  (exit $ac_status); }; }; then
11637
11638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11639}'`
11640# Check for a 64-bit object if we didn't find anything.
11641if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11642}'`; fi
11643else
11644  echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
11647fi
11648rm -f conftest.err conftest.$ac_objext \
11649      conftest$ac_exeext conftest.$ac_ext
11650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11651
11652	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653	# Warning - without using the other run time loading flags,
11654	# -berok will link without error, but may produce a broken library.
11655	no_undefined_flag_CXX=' ${wl}-bernotok'
11656	allow_undefined_flag_CXX=' ${wl}-berok'
11657	# -bexpall does not export symbols beginning with underscore (_)
11658	always_export_symbols_CXX=yes
11659	# Exported symbols can be pulled into shared objects from archives
11660	whole_archive_flag_spec_CXX=' '
11661	archive_cmds_need_lc_CXX=yes
11662	# This is similar to how AIX traditionally builds it's shared libraries.
11663	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11664      fi
11665    fi
11666    ;;
11667  chorus*)
11668    case $cc_basename in
11669      *)
11670	# FIXME: insert proper C++ library support
11671	ld_shlibs_CXX=no
11672	;;
11673    esac
11674    ;;
11675
11676
11677  cygwin* | mingw* | pw32*)
11678    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11679    # as there is no search path for DLLs.
11680    hardcode_libdir_flag_spec_CXX='-L$libdir'
11681    allow_undefined_flag_CXX=unsupported
11682    always_export_symbols_CXX=no
11683    enable_shared_with_static_runtimes_CXX=yes
11684
11685    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11686      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11687      # If the export-symbols file already is a .def file (1st line
11688      # is EXPORTS), use it as is; otherwise, prepend...
11689      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11690	cp $export_symbols $output_objdir/$soname.def;
11691      else
11692	echo EXPORTS > $output_objdir/$soname.def;
11693	cat $export_symbols >> $output_objdir/$soname.def;
11694      fi~
11695      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11696    else
11697      ld_shlibs_CXX=no
11698    fi
11699  ;;
11700      darwin* | rhapsody*)
11701        case "$host_os" in
11702        rhapsody* | darwin1.[012])
11703         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11704         ;;
11705       *) # Darwin 1.3 on
11706         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11707           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11708         else
11709           case ${MACOSX_DEPLOYMENT_TARGET} in
11710             10.[012])
11711               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11712               ;;
11713             10.*)
11714               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11715               ;;
11716           esac
11717         fi
11718         ;;
11719        esac
11720      archive_cmds_need_lc_CXX=no
11721      hardcode_direct_CXX=no
11722      hardcode_automatic_CXX=yes
11723      hardcode_shlibpath_var_CXX=unsupported
11724      whole_archive_flag_spec_CXX=''
11725      link_all_deplibs_CXX=yes
11726
11727    if test "$GXX" = yes ; then
11728      lt_int_apple_cc_single_mod=no
11729      output_verbose_link_cmd='echo'
11730      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11731       lt_int_apple_cc_single_mod=yes
11732      fi
11733      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11734       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11735      else
11736          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11737        fi
11738        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11739        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11740          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11741            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11742          else
11743            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11744          fi
11745            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11746      else
11747      case "$cc_basename" in
11748        xlc*)
11749         output_verbose_link_cmd='echo'
11750          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11751          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11752          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11753          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11754          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11755          ;;
11756       *)
11757         ld_shlibs_CXX=no
11758          ;;
11759      esac
11760      fi
11761        ;;
11762
11763  dgux*)
11764    case $cc_basename in
11765      ec++)
11766	# FIXME: insert proper C++ library support
11767	ld_shlibs_CXX=no
11768	;;
11769      ghcx)
11770	# Green Hills C++ Compiler
11771	# FIXME: insert proper C++ library support
11772	ld_shlibs_CXX=no
11773	;;
11774      *)
11775	# FIXME: insert proper C++ library support
11776	ld_shlibs_CXX=no
11777	;;
11778    esac
11779    ;;
11780  freebsd[12]*)
11781    # C++ shared libraries reported to be fairly broken before switch to ELF
11782    ld_shlibs_CXX=no
11783    ;;
11784  freebsd-elf*)
11785    archive_cmds_need_lc_CXX=no
11786    ;;
11787  freebsd* | kfreebsd*-gnu | dragonfly*)
11788    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11789    # conventions
11790    ld_shlibs_CXX=yes
11791    ;;
11792  gnu*)
11793    ;;
11794  hpux9*)
11795    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11796    hardcode_libdir_separator_CXX=:
11797    export_dynamic_flag_spec_CXX='${wl}-E'
11798    hardcode_direct_CXX=yes
11799    hardcode_minus_L_CXX=yes # Not in the search PATH,
11800				# but as the default
11801				# location of the library.
11802
11803    case $cc_basename in
11804    CC)
11805      # FIXME: insert proper C++ library support
11806      ld_shlibs_CXX=no
11807      ;;
11808    aCC)
11809      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11810      # Commands to make compiler produce verbose output that lists
11811      # what "hidden" libraries, object files and flags are used when
11812      # linking a shared library.
11813      #
11814      # There doesn't appear to be a way to prevent this compiler from
11815      # explicitly linking system object files so we need to strip them
11816      # from the output so that they don't get included in the library
11817      # dependencies.
11818      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11819      ;;
11820    *)
11821      if test "$GXX" = yes; then
11822        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11823      else
11824        # FIXME: insert proper C++ library support
11825        ld_shlibs_CXX=no
11826      fi
11827      ;;
11828    esac
11829    ;;
11830  hpux10*|hpux11*)
11831    if test $with_gnu_ld = no; then
11832      case "$host_cpu" in
11833      hppa*64*)
11834	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11835	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11836	hardcode_libdir_separator_CXX=:
11837        ;;
11838      ia64*)
11839	hardcode_libdir_flag_spec_CXX='-L$libdir'
11840        ;;
11841      *)
11842	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11843	hardcode_libdir_separator_CXX=:
11844	export_dynamic_flag_spec_CXX='${wl}-E'
11845        ;;
11846      esac
11847    fi
11848    case "$host_cpu" in
11849    hppa*64*)
11850      hardcode_direct_CXX=no
11851      hardcode_shlibpath_var_CXX=no
11852      ;;
11853    ia64*)
11854      hardcode_direct_CXX=no
11855      hardcode_shlibpath_var_CXX=no
11856      hardcode_minus_L_CXX=yes # Not in the search PATH,
11857					      # but as the default
11858					      # location of the library.
11859      ;;
11860    *)
11861      hardcode_direct_CXX=yes
11862      hardcode_minus_L_CXX=yes # Not in the search PATH,
11863					      # but as the default
11864					      # location of the library.
11865      ;;
11866    esac
11867
11868    case $cc_basename in
11869      CC)
11870	# FIXME: insert proper C++ library support
11871	ld_shlibs_CXX=no
11872	;;
11873      aCC)
11874	case "$host_cpu" in
11875	hppa*64*|ia64*)
11876	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11877	  ;;
11878	*)
11879	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11880	  ;;
11881	esac
11882	# Commands to make compiler produce verbose output that lists
11883	# what "hidden" libraries, object files and flags are used when
11884	# linking a shared library.
11885	#
11886	# There doesn't appear to be a way to prevent this compiler from
11887	# explicitly linking system object files so we need to strip them
11888	# from the output so that they don't get included in the library
11889	# dependencies.
11890	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11891	;;
11892      *)
11893	if test "$GXX" = yes; then
11894	  if test $with_gnu_ld = no; then
11895	    case "$host_cpu" in
11896	    ia64*|hppa*64*)
11897	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11898	      ;;
11899	    *)
11900	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11901	      ;;
11902	    esac
11903	  fi
11904	else
11905	  # FIXME: insert proper C++ library support
11906	  ld_shlibs_CXX=no
11907	fi
11908	;;
11909    esac
11910    ;;
11911  irix5* | irix6*)
11912    case $cc_basename in
11913      CC)
11914	# SGI C++
11915	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11916
11917	# Archives containing C++ object files must be created using
11918	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11919	# necessary to make sure instantiated templates are included
11920	# in the archive.
11921	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11922	;;
11923      *)
11924	if test "$GXX" = yes; then
11925	  if test "$with_gnu_ld" = no; then
11926	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11927	  else
11928	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11929	  fi
11930	fi
11931	link_all_deplibs_CXX=yes
11932	;;
11933    esac
11934    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11935    hardcode_libdir_separator_CXX=:
11936    ;;
11937  linux*)
11938    case $cc_basename in
11939      KCC)
11940	# Kuck and Associates, Inc. (KAI) C++ Compiler
11941
11942	# KCC will only create a shared library if the output file
11943	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11944	# to its proper name (with version) after linking.
11945	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11946	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11947	# Commands to make compiler produce verbose output that lists
11948	# what "hidden" libraries, object files and flags are used when
11949	# linking a shared library.
11950	#
11951	# There doesn't appear to be a way to prevent this compiler from
11952	# explicitly linking system object files so we need to strip them
11953	# from the output so that they don't get included in the library
11954	# dependencies.
11955	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11956
11957	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11958	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11959
11960	# Archives containing C++ object files must be created using
11961	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11962	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11963	;;
11964      icpc)
11965	# Intel C++
11966	with_gnu_ld=yes
11967	# version 8.0 and above of icpc choke on multiply defined symbols
11968	# if we add $predep_objects and $postdep_objects, however 7.1 and
11969	# earlier do not add the objects themselves.
11970	case `$CC -V 2>&1` in
11971	*"Version 7."*)
11972  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11973  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11974	  ;;
11975	*)  # Version 8.0 or newer
11976	  tmp_idyn=
11977	  case $host_cpu in
11978	    ia64*) tmp_idyn=' -i_dynamic';;
11979	  esac
11980  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11981	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11982	  ;;
11983	esac
11984	archive_cmds_need_lc_CXX=no
11985	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11986	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11987	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11988	;;
11989      pgCC)
11990        # Portland Group C++ compiler
11991	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11992  	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11993
11994	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11995	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11996        ;;
11997      cxx)
11998	# Compaq C++
11999	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12000	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12001
12002	runpath_var=LD_RUN_PATH
12003	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12004	hardcode_libdir_separator_CXX=:
12005
12006	# Commands to make compiler produce verbose output that lists
12007	# what "hidden" libraries, object files and flags are used when
12008	# linking a shared library.
12009	#
12010	# There doesn't appear to be a way to prevent this compiler from
12011	# explicitly linking system object files so we need to strip them
12012	# from the output so that they don't get included in the library
12013	# dependencies.
12014	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12015	;;
12016    esac
12017    ;;
12018  lynxos*)
12019    # FIXME: insert proper C++ library support
12020    ld_shlibs_CXX=no
12021    ;;
12022  m88k*)
12023    # FIXME: insert proper C++ library support
12024    ld_shlibs_CXX=no
12025    ;;
12026  mvs*)
12027    case $cc_basename in
12028      cxx)
12029	# FIXME: insert proper C++ library support
12030	ld_shlibs_CXX=no
12031	;;
12032      *)
12033	# FIXME: insert proper C++ library support
12034	ld_shlibs_CXX=no
12035	;;
12036    esac
12037    ;;
12038  netbsd*)
12039    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12040      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12041      wlarc=
12042      hardcode_libdir_flag_spec_CXX='-R$libdir'
12043      hardcode_direct_CXX=yes
12044      hardcode_shlibpath_var_CXX=no
12045    fi
12046    # Workaround some broken pre-1.5 toolchains
12047    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12048    ;;
12049  openbsd2*)
12050    # C++ shared libraries are fairly broken
12051    ld_shlibs_CXX=no
12052    ;;
12053  openbsd*)
12054    hardcode_direct_CXX=yes
12055    hardcode_shlibpath_var_CXX=no
12056    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12057    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12058    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12059      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12060      export_dynamic_flag_spec_CXX='${wl}-E'
12061      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12062    fi
12063    output_verbose_link_cmd='echo'
12064    ;;
12065  osf3*)
12066    case $cc_basename in
12067      KCC)
12068	# Kuck and Associates, Inc. (KAI) C++ Compiler
12069
12070	# KCC will only create a shared library if the output file
12071	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12072	# to its proper name (with version) after linking.
12073	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12074
12075	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12076	hardcode_libdir_separator_CXX=:
12077
12078	# Archives containing C++ object files must be created using
12079	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12080	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12081
12082	;;
12083      RCC)
12084	# Rational C++ 2.4.1
12085	# FIXME: insert proper C++ library support
12086	ld_shlibs_CXX=no
12087	;;
12088      cxx)
12089	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12090	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12091
12092	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12093	hardcode_libdir_separator_CXX=:
12094
12095	# Commands to make compiler produce verbose output that lists
12096	# what "hidden" libraries, object files and flags are used when
12097	# linking a shared library.
12098	#
12099	# There doesn't appear to be a way to prevent this compiler from
12100	# explicitly linking system object files so we need to strip them
12101	# from the output so that they don't get included in the library
12102	# dependencies.
12103	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12104	;;
12105      *)
12106	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12107	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12108	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12109
12110	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12111	  hardcode_libdir_separator_CXX=:
12112
12113	  # Commands to make compiler produce verbose output that lists
12114	  # what "hidden" libraries, object files and flags are used when
12115	  # linking a shared library.
12116	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12117
12118	else
12119	  # FIXME: insert proper C++ library support
12120	  ld_shlibs_CXX=no
12121	fi
12122	;;
12123    esac
12124    ;;
12125  osf4* | osf5*)
12126    case $cc_basename in
12127      KCC)
12128	# Kuck and Associates, Inc. (KAI) C++ Compiler
12129
12130	# KCC will only create a shared library if the output file
12131	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12132	# to its proper name (with version) after linking.
12133	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12134
12135	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12136	hardcode_libdir_separator_CXX=:
12137
12138	# Archives containing C++ object files must be created using
12139	# the KAI C++ compiler.
12140	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12141	;;
12142      RCC)
12143	# Rational C++ 2.4.1
12144	# FIXME: insert proper C++ library support
12145	ld_shlibs_CXX=no
12146	;;
12147      cxx)
12148	allow_undefined_flag_CXX=' -expect_unresolved \*'
12149	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12150	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12151	  echo "-hidden">> $lib.exp~
12152	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
12153	  $rm $lib.exp'
12154
12155	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12156	hardcode_libdir_separator_CXX=:
12157
12158	# Commands to make compiler produce verbose output that lists
12159	# what "hidden" libraries, object files and flags are used when
12160	# linking a shared library.
12161	#
12162	# There doesn't appear to be a way to prevent this compiler from
12163	# explicitly linking system object files so we need to strip them
12164	# from the output so that they don't get included in the library
12165	# dependencies.
12166	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12167	;;
12168      *)
12169	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12170	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12171	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12172
12173	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12174	  hardcode_libdir_separator_CXX=:
12175
12176	  # Commands to make compiler produce verbose output that lists
12177	  # what "hidden" libraries, object files and flags are used when
12178	  # linking a shared library.
12179	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12180
12181	else
12182	  # FIXME: insert proper C++ library support
12183	  ld_shlibs_CXX=no
12184	fi
12185	;;
12186    esac
12187    ;;
12188  psos*)
12189    # FIXME: insert proper C++ library support
12190    ld_shlibs_CXX=no
12191    ;;
12192  sco*)
12193    archive_cmds_need_lc_CXX=no
12194    case $cc_basename in
12195      CC)
12196	# FIXME: insert proper C++ library support
12197	ld_shlibs_CXX=no
12198	;;
12199      *)
12200	# FIXME: insert proper C++ library support
12201	ld_shlibs_CXX=no
12202	;;
12203    esac
12204    ;;
12205  sunos4*)
12206    case $cc_basename in
12207      CC)
12208	# Sun C++ 4.x
12209	# FIXME: insert proper C++ library support
12210	ld_shlibs_CXX=no
12211	;;
12212      lcc)
12213	# Lucid
12214	# FIXME: insert proper C++ library support
12215	ld_shlibs_CXX=no
12216	;;
12217      *)
12218	# FIXME: insert proper C++ library support
12219	ld_shlibs_CXX=no
12220	;;
12221    esac
12222    ;;
12223  solaris*)
12224    case $cc_basename in
12225      CC)
12226	# Sun C++ 4.2, 5.x and Centerline C++
12227	no_undefined_flag_CXX=' -zdefs'
12228	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12229	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12230	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12231
12232	hardcode_libdir_flag_spec_CXX='-R$libdir'
12233	hardcode_shlibpath_var_CXX=no
12234	case $host_os in
12235	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12236	  *)
12237	    # The C++ compiler is used as linker so we must use $wl
12238	    # flag to pass the commands to the underlying system
12239	    # linker.
12240	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12241	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12242	    ;;
12243	esac
12244	link_all_deplibs_CXX=yes
12245
12246	# Commands to make compiler produce verbose output that lists
12247	# what "hidden" libraries, object files and flags are used when
12248	# linking a shared library.
12249	#
12250	# There doesn't appear to be a way to prevent this compiler from
12251	# explicitly linking system object files so we need to strip them
12252	# from the output so that they don't get included in the library
12253	# dependencies.
12254	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12255
12256	# Archives containing C++ object files must be created using
12257	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12258	# necessary to make sure instantiated templates are included
12259	# in the archive.
12260	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12261	;;
12262      gcx)
12263	# Green Hills C++ Compiler
12264	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12265
12266	# The C++ compiler must be used to create the archive.
12267	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12268	;;
12269      *)
12270	# GNU C++ compiler with Solaris linker
12271	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12272	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12273	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12274	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12275	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12276		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12277
12278	    # Commands to make compiler produce verbose output that lists
12279	    # what "hidden" libraries, object files and flags are used when
12280	    # linking a shared library.
12281	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12282	  else
12283	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12284	    # platform.
12285	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12286	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12287		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12288
12289	    # Commands to make compiler produce verbose output that lists
12290	    # what "hidden" libraries, object files and flags are used when
12291	    # linking a shared library.
12292	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12293	  fi
12294
12295	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12296	fi
12297	;;
12298    esac
12299    ;;
12300  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12301    archive_cmds_need_lc_CXX=no
12302    ;;
12303  tandem*)
12304    case $cc_basename in
12305      NCC)
12306	# NonStop-UX NCC 3.20
12307	# FIXME: insert proper C++ library support
12308	ld_shlibs_CXX=no
12309	;;
12310      *)
12311	# FIXME: insert proper C++ library support
12312	ld_shlibs_CXX=no
12313	;;
12314    esac
12315    ;;
12316  vxworks*)
12317    # FIXME: insert proper C++ library support
12318    ld_shlibs_CXX=no
12319    ;;
12320  *)
12321    # FIXME: insert proper C++ library support
12322    ld_shlibs_CXX=no
12323    ;;
12324esac
12325echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12326echo "${ECHO_T}$ld_shlibs_CXX" >&6
12327test "$ld_shlibs_CXX" = no && can_build_shared=no
12328
12329GCC_CXX="$GXX"
12330LD_CXX="$LD"
12331
12332## CAVEAT EMPTOR:
12333## There is no encapsulation within the following macros, do not change
12334## the running order or otherwise move them around unless you know exactly
12335## what you are doing...
12336
12337cat > conftest.$ac_ext <<EOF
12338class Foo
12339{
12340public:
12341  Foo (void) { a = 0; }
12342private:
12343  int a;
12344};
12345EOF
12346
12347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348  (eval $ac_compile) 2>&5
12349  ac_status=$?
12350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351  (exit $ac_status); }; then
12352  # Parse the compiler output and extract the necessary
12353  # objects, libraries and library flags.
12354
12355  # Sentinel used to keep track of whether or not we are before
12356  # the conftest object file.
12357  pre_test_object_deps_done=no
12358
12359  # The `*' in the case matches for architectures that use `case' in
12360  # $output_verbose_cmd can trigger glob expansion during the loop
12361  # eval without this substitution.
12362  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12363
12364  for p in `eval $output_verbose_link_cmd`; do
12365    case $p in
12366
12367    -L* | -R* | -l*)
12368       # Some compilers place space between "-{L,R}" and the path.
12369       # Remove the space.
12370       if test $p = "-L" \
12371	  || test $p = "-R"; then
12372	 prev=$p
12373	 continue
12374       else
12375	 prev=
12376       fi
12377
12378       if test "$pre_test_object_deps_done" = no; then
12379	 case $p in
12380	 -L* | -R*)
12381	   # Internal compiler library paths should come after those
12382	   # provided the user.  The postdeps already come after the
12383	   # user supplied libs so there is no need to process them.
12384	   if test -z "$compiler_lib_search_path_CXX"; then
12385	     compiler_lib_search_path_CXX="${prev}${p}"
12386	   else
12387	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12388	   fi
12389	   ;;
12390	 # The "-l" case would never come before the object being
12391	 # linked, so don't bother handling this case.
12392	 esac
12393       else
12394	 if test -z "$postdeps_CXX"; then
12395	   postdeps_CXX="${prev}${p}"
12396	 else
12397	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12398	 fi
12399       fi
12400       ;;
12401
12402    *.$objext)
12403       # This assumes that the test object file only shows up
12404       # once in the compiler output.
12405       if test "$p" = "conftest.$objext"; then
12406	 pre_test_object_deps_done=yes
12407	 continue
12408       fi
12409
12410       if test "$pre_test_object_deps_done" = no; then
12411	 if test -z "$predep_objects_CXX"; then
12412	   predep_objects_CXX="$p"
12413	 else
12414	   predep_objects_CXX="$predep_objects_CXX $p"
12415	 fi
12416       else
12417	 if test -z "$postdep_objects_CXX"; then
12418	   postdep_objects_CXX="$p"
12419	 else
12420	   postdep_objects_CXX="$postdep_objects_CXX $p"
12421	 fi
12422       fi
12423       ;;
12424
12425    *) ;; # Ignore the rest.
12426
12427    esac
12428  done
12429
12430  # Clean up.
12431  rm -f a.out a.exe
12432else
12433  echo "libtool.m4: error: problem compiling CXX test program"
12434fi
12435
12436$rm -f confest.$objext
12437
12438case " $postdeps_CXX " in
12439*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12440esac
12441
12442lt_prog_compiler_wl_CXX=
12443lt_prog_compiler_pic_CXX=
12444lt_prog_compiler_static_CXX=
12445
12446echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12447echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12448
12449  # C++ specific cases for pic, static, wl, etc.
12450  if test "$GXX" = yes; then
12451    lt_prog_compiler_wl_CXX='-Wl,'
12452    lt_prog_compiler_static_CXX='-static'
12453
12454    case $host_os in
12455    aix*)
12456      # All AIX code is PIC.
12457      if test "$host_cpu" = ia64; then
12458	# AIX 5 now supports IA64 processor
12459	lt_prog_compiler_static_CXX='-Bstatic'
12460      fi
12461      ;;
12462    amigaos*)
12463      # FIXME: we need at least 68020 code to build shared libraries, but
12464      # adding the `-m68020' flag to GCC prevents building anything better,
12465      # like `-m68040'.
12466      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12467      ;;
12468    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12469      # PIC is the default for these OSes.
12470      ;;
12471    mingw* | os2* | pw32*)
12472      # This hack is so that the source file can tell whether it is being
12473      # built for inclusion in a dll (and should export symbols for example).
12474      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12475      ;;
12476    darwin* | rhapsody*)
12477      # PIC is the default on this platform
12478      # Common symbols not allowed in MH_DYLIB files
12479      lt_prog_compiler_pic_CXX='-fno-common'
12480      ;;
12481    *djgpp*)
12482      # DJGPP does not support shared libraries at all
12483      lt_prog_compiler_pic_CXX=
12484      ;;
12485    sysv4*MP*)
12486      if test -d /usr/nec; then
12487	lt_prog_compiler_pic_CXX=-Kconform_pic
12488      fi
12489      ;;
12490    hpux*)
12491      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12492      # not for PA HP-UX.
12493      case "$host_cpu" in
12494      hppa*64*|ia64*)
12495	;;
12496      *)
12497	lt_prog_compiler_pic_CXX='-fPIC'
12498	;;
12499      esac
12500      ;;
12501    *)
12502      lt_prog_compiler_pic_CXX='-fPIC'
12503      ;;
12504    esac
12505  else
12506    case $host_os in
12507      aix4* | aix5*)
12508	# All AIX code is PIC.
12509	if test "$host_cpu" = ia64; then
12510	  # AIX 5 now supports IA64 processor
12511	  lt_prog_compiler_static_CXX='-Bstatic'
12512	else
12513	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12514	fi
12515	;;
12516      chorus*)
12517	case $cc_basename in
12518	cxch68)
12519	  # Green Hills C++ Compiler
12520	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12521	  ;;
12522	esac
12523	;;
12524       darwin*)
12525         # PIC is the default on this platform
12526         # Common symbols not allowed in MH_DYLIB files
12527         case "$cc_basename" in
12528           xlc*)
12529           lt_prog_compiler_pic_CXX='-qnocommon'
12530           lt_prog_compiler_wl_CXX='-Wl,'
12531           ;;
12532         esac
12533       ;;
12534      dgux*)
12535	case $cc_basename in
12536	  ec++)
12537	    lt_prog_compiler_pic_CXX='-KPIC'
12538	    ;;
12539	  ghcx)
12540	    # Green Hills C++ Compiler
12541	    lt_prog_compiler_pic_CXX='-pic'
12542	    ;;
12543	  *)
12544	    ;;
12545	esac
12546	;;
12547      freebsd* | kfreebsd*-gnu | dragonfly*)
12548	# FreeBSD uses GNU C++
12549	;;
12550      hpux9* | hpux10* | hpux11*)
12551	case $cc_basename in
12552	  CC)
12553	    lt_prog_compiler_wl_CXX='-Wl,'
12554	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12555	    if test "$host_cpu" != ia64; then
12556	      lt_prog_compiler_pic_CXX='+Z'
12557	    fi
12558	    ;;
12559	  aCC)
12560	    lt_prog_compiler_wl_CXX='-Wl,'
12561	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12562	    case "$host_cpu" in
12563	    hppa*64*|ia64*)
12564	      # +Z the default
12565	      ;;
12566	    *)
12567	      lt_prog_compiler_pic_CXX='+Z'
12568	      ;;
12569	    esac
12570	    ;;
12571	  *)
12572	    ;;
12573	esac
12574	;;
12575      irix5* | irix6* | nonstopux*)
12576	case $cc_basename in
12577	  CC)
12578	    lt_prog_compiler_wl_CXX='-Wl,'
12579	    lt_prog_compiler_static_CXX='-non_shared'
12580	    # CC pic flag -KPIC is the default.
12581	    ;;
12582	  *)
12583	    ;;
12584	esac
12585	;;
12586      linux*)
12587	case $cc_basename in
12588	  KCC)
12589	    # KAI C++ Compiler
12590	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12591	    lt_prog_compiler_pic_CXX='-fPIC'
12592	    ;;
12593	  icpc* | ecpc*)
12594	    # Intel C++
12595	    lt_prog_compiler_wl_CXX='-Wl,'
12596	    lt_prog_compiler_pic_CXX='-KPIC'
12597	    lt_prog_compiler_static_CXX='-static'
12598	    ;;
12599	  pgCC)
12600	    # Portland Group C++ compiler.
12601	    lt_prog_compiler_wl_CXX='-Wl,'
12602	    lt_prog_compiler_pic_CXX='-fpic'
12603	    lt_prog_compiler_static_CXX='-static'
12604	    ;;
12605	  cxx)
12606	    # Compaq C++
12607	    # Make sure the PIC flag is empty.  It appears that all Alpha
12608	    # Linux and Compaq Tru64 Unix objects are PIC.
12609	    lt_prog_compiler_pic_CXX=
12610	    lt_prog_compiler_static_CXX='-non_shared'
12611	    ;;
12612	  *)
12613	    ;;
12614	esac
12615	;;
12616      lynxos*)
12617	;;
12618      m88k*)
12619	;;
12620      mvs*)
12621	case $cc_basename in
12622	  cxx)
12623	    lt_prog_compiler_pic_CXX='-W c,exportall'
12624	    ;;
12625	  *)
12626	    ;;
12627	esac
12628	;;
12629      netbsd*)
12630	;;
12631      osf3* | osf4* | osf5*)
12632	case $cc_basename in
12633	  KCC)
12634	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12635	    ;;
12636	  RCC)
12637	    # Rational C++ 2.4.1
12638	    lt_prog_compiler_pic_CXX='-pic'
12639	    ;;
12640	  cxx)
12641	    # Digital/Compaq C++
12642	    lt_prog_compiler_wl_CXX='-Wl,'
12643	    # Make sure the PIC flag is empty.  It appears that all Alpha
12644	    # Linux and Compaq Tru64 Unix objects are PIC.
12645	    lt_prog_compiler_pic_CXX=
12646	    lt_prog_compiler_static_CXX='-non_shared'
12647	    ;;
12648	  *)
12649	    ;;
12650	esac
12651	;;
12652      psos*)
12653	;;
12654      sco*)
12655	case $cc_basename in
12656	  CC)
12657	    lt_prog_compiler_pic_CXX='-fPIC'
12658	    ;;
12659	  *)
12660	    ;;
12661	esac
12662	;;
12663      solaris*)
12664	case $cc_basename in
12665	  CC)
12666	    # Sun C++ 4.2, 5.x and Centerline C++
12667	    lt_prog_compiler_pic_CXX='-KPIC'
12668	    lt_prog_compiler_static_CXX='-Bstatic'
12669	    lt_prog_compiler_wl_CXX='-Qoption ld '
12670	    ;;
12671	  gcx)
12672	    # Green Hills C++ Compiler
12673	    lt_prog_compiler_pic_CXX='-PIC'
12674	    ;;
12675	  *)
12676	    ;;
12677	esac
12678	;;
12679      sunos4*)
12680	case $cc_basename in
12681	  CC)
12682	    # Sun C++ 4.x
12683	    lt_prog_compiler_pic_CXX='-pic'
12684	    lt_prog_compiler_static_CXX='-Bstatic'
12685	    ;;
12686	  lcc)
12687	    # Lucid
12688	    lt_prog_compiler_pic_CXX='-pic'
12689	    ;;
12690	  *)
12691	    ;;
12692	esac
12693	;;
12694      tandem*)
12695	case $cc_basename in
12696	  NCC)
12697	    # NonStop-UX NCC 3.20
12698	    lt_prog_compiler_pic_CXX='-KPIC'
12699	    ;;
12700	  *)
12701	    ;;
12702	esac
12703	;;
12704      unixware*)
12705	;;
12706      vxworks*)
12707	;;
12708      *)
12709	lt_prog_compiler_can_build_shared_CXX=no
12710	;;
12711    esac
12712  fi
12713
12714echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12715echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12716
12717#
12718# Check to make sure the PIC flag actually works.
12719#
12720if test -n "$lt_prog_compiler_pic_CXX"; then
12721
12722echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12723echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12724if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12725  echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727  lt_prog_compiler_pic_works_CXX=no
12728  ac_outfile=conftest.$ac_objext
12729   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12730   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12731   # Insert the option either (1) after the last *FLAGS variable, or
12732   # (2) before a word containing "conftest.", or (3) at the end.
12733   # Note that $ac_compile itself does not contain backslashes and begins
12734   # with a dollar sign (not a hyphen), so the echo should work correctly.
12735   # The option is referenced via a variable to avoid confusing sed.
12736   lt_compile=`echo "$ac_compile" | $SED \
12737   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12738   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12739   -e 's:$: $lt_compiler_flag:'`
12740   (eval echo "\"\$as_me:12740: $lt_compile\"" >&5)
12741   (eval "$lt_compile" 2>conftest.err)
12742   ac_status=$?
12743   cat conftest.err >&5
12744   echo "$as_me:12744: \$? = $ac_status" >&5
12745   if (exit $ac_status) && test -s "$ac_outfile"; then
12746     # The compiler can only warn and ignore the option if not recognized
12747     # So say no if there are warnings
12748     if test ! -s conftest.err; then
12749       lt_prog_compiler_pic_works_CXX=yes
12750     fi
12751   fi
12752   $rm conftest*
12753
12754fi
12755echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12756echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12757
12758if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12759    case $lt_prog_compiler_pic_CXX in
12760     "" | " "*) ;;
12761     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12762     esac
12763else
12764    lt_prog_compiler_pic_CXX=
12765     lt_prog_compiler_can_build_shared_CXX=no
12766fi
12767
12768fi
12769case "$host_os" in
12770  # For platforms which do not support PIC, -DPIC is meaningless:
12771  *djgpp*)
12772    lt_prog_compiler_pic_CXX=
12773    ;;
12774  *)
12775    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12776    ;;
12777esac
12778
12779echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12780echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12781if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12782  echo $ECHO_N "(cached) $ECHO_C" >&6
12783else
12784  lt_cv_prog_compiler_c_o_CXX=no
12785   $rm -r conftest 2>/dev/null
12786   mkdir conftest
12787   cd conftest
12788   mkdir out
12789   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12790
12791   lt_compiler_flag="-o out/conftest2.$ac_objext"
12792   # Insert the option either (1) after the last *FLAGS variable, or
12793   # (2) before a word containing "conftest.", or (3) at the end.
12794   # Note that $ac_compile itself does not contain backslashes and begins
12795   # with a dollar sign (not a hyphen), so the echo should work correctly.
12796   lt_compile=`echo "$ac_compile" | $SED \
12797   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12799   -e 's:$: $lt_compiler_flag:'`
12800   (eval echo "\"\$as_me:12800: $lt_compile\"" >&5)
12801   (eval "$lt_compile" 2>out/conftest.err)
12802   ac_status=$?
12803   cat out/conftest.err >&5
12804   echo "$as_me:12804: \$? = $ac_status" >&5
12805   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12806   then
12807     # The compiler can only warn and ignore the option if not recognized
12808     # So say no if there are warnings
12809     if test ! -s out/conftest.err; then
12810       lt_cv_prog_compiler_c_o_CXX=yes
12811     fi
12812   fi
12813   chmod u+w .
12814   $rm conftest*
12815   # SGI C++ compiler will create directory out/ii_files/ for
12816   # template instantiation
12817   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12818   $rm out/* && rmdir out
12819   cd ..
12820   rmdir conftest
12821   $rm conftest*
12822
12823fi
12824echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12825echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12826
12827
12828hard_links="nottested"
12829if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12830  # do not overwrite the value of need_locks provided by the user
12831  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12832echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12833  hard_links=yes
12834  $rm conftest*
12835  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12836  touch conftest.a
12837  ln conftest.a conftest.b 2>&5 || hard_links=no
12838  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12839  echo "$as_me:$LINENO: result: $hard_links" >&5
12840echo "${ECHO_T}$hard_links" >&6
12841  if test "$hard_links" = no; then
12842    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12843echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12844    need_locks=warn
12845  fi
12846else
12847  need_locks=no
12848fi
12849
12850echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12851echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12852
12853  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12854  case $host_os in
12855  aix4* | aix5*)
12856    # If we're using GNU nm, then we don't want the "-C" option.
12857    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12858    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12859      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12860    else
12861      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12862    fi
12863    ;;
12864  pw32*)
12865    export_symbols_cmds_CXX="$ltdll_cmds"
12866  ;;
12867  cygwin* | mingw*)
12868    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12869  ;;
12870  *)
12871    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12872  ;;
12873  esac
12874
12875echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12876echo "${ECHO_T}$ld_shlibs_CXX" >&6
12877test "$ld_shlibs_CXX" = no && can_build_shared=no
12878
12879variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12880if test "$GCC" = yes; then
12881  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12882fi
12883
12884#
12885# Do we need to explicitly link libc?
12886#
12887case "x$archive_cmds_need_lc_CXX" in
12888x|xyes)
12889  # Assume -lc should be added
12890  archive_cmds_need_lc_CXX=yes
12891
12892  if test "$enable_shared" = yes && test "$GCC" = yes; then
12893    case $archive_cmds_CXX in
12894    *'~'*)
12895      # FIXME: we may have to deal with multi-command sequences.
12896      ;;
12897    '$CC '*)
12898      # Test whether the compiler implicitly links with -lc since on some
12899      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12900      # to ld, don't add -lc before -lgcc.
12901      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12902echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12903      $rm conftest*
12904      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12905
12906      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907  (eval $ac_compile) 2>&5
12908  ac_status=$?
12909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910  (exit $ac_status); } 2>conftest.err; then
12911        soname=conftest
12912        lib=conftest
12913        libobjs=conftest.$ac_objext
12914        deplibs=
12915        wl=$lt_prog_compiler_wl_CXX
12916        compiler_flags=-v
12917        linker_flags=-v
12918        verstring=
12919        output_objdir=.
12920        libname=conftest
12921        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12922        allow_undefined_flag_CXX=
12923        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12924  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12925  ac_status=$?
12926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927  (exit $ac_status); }
12928        then
12929	  archive_cmds_need_lc_CXX=no
12930        else
12931	  archive_cmds_need_lc_CXX=yes
12932        fi
12933        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12934      else
12935        cat conftest.err 1>&5
12936      fi
12937      $rm conftest*
12938      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12939echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12940      ;;
12941    esac
12942  fi
12943  ;;
12944esac
12945
12946echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12947echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12948library_names_spec=
12949libname_spec='lib$name'
12950soname_spec=
12951shrext_cmds=".so"
12952postinstall_cmds=
12953postuninstall_cmds=
12954finish_cmds=
12955finish_eval=
12956shlibpath_var=
12957shlibpath_overrides_runpath=unknown
12958version_type=none
12959dynamic_linker="$host_os ld.so"
12960sys_lib_dlsearch_path_spec="/lib /usr/lib"
12961if test "$GCC" = yes; then
12962  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12963  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12964    # if the path contains ";" then we assume it to be the separator
12965    # otherwise default to the standard path separator (i.e. ":") - it is
12966    # assumed that no part of a normal pathname contains ";" but that should
12967    # okay in the real world where ";" in dirpaths is itself problematic.
12968    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12969  else
12970    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12971  fi
12972else
12973  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12974fi
12975need_lib_prefix=unknown
12976hardcode_into_libs=no
12977
12978# when you set need_version to no, make sure it does not cause -set_version
12979# flags to be left without arguments
12980need_version=unknown
12981
12982case $host_os in
12983aix3*)
12984  version_type=linux
12985  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12986  shlibpath_var=LIBPATH
12987
12988  # AIX 3 has no versioning support, so we append a major version to the name.
12989  soname_spec='${libname}${release}${shared_ext}$major'
12990  ;;
12991
12992aix4* | aix5*)
12993  version_type=linux
12994  need_lib_prefix=no
12995  need_version=no
12996  hardcode_into_libs=yes
12997  if test "$host_cpu" = ia64; then
12998    # AIX 5 supports IA64
12999    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13000    shlibpath_var=LD_LIBRARY_PATH
13001  else
13002    # With GCC up to 2.95.x, collect2 would create an import file
13003    # for dependence libraries.  The import file would start with
13004    # the line `#! .'.  This would cause the generated library to
13005    # depend on `.', always an invalid library.  This was fixed in
13006    # development snapshots of GCC prior to 3.0.
13007    case $host_os in
13008      aix4 | aix4.[01] | aix4.[01].*)
13009      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13010	   echo ' yes '
13011	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13012	:
13013      else
13014	can_build_shared=no
13015      fi
13016      ;;
13017    esac
13018    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13019    # soname into executable. Probably we can add versioning support to
13020    # collect2, so additional links can be useful in future.
13021    if test "$aix_use_runtimelinking" = yes; then
13022      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13023      # instead of lib<name>.a to let people know that these are not
13024      # typical AIX shared libraries.
13025      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026    else
13027      # We preserve .a as extension for shared libraries through AIX4.2
13028      # and later when we are not doing run time linking.
13029      library_names_spec='${libname}${release}.a $libname.a'
13030      soname_spec='${libname}${release}${shared_ext}$major'
13031    fi
13032    shlibpath_var=LIBPATH
13033  fi
13034  ;;
13035
13036amigaos*)
13037  library_names_spec='$libname.ixlibrary $libname.a'
13038  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13039  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13040  ;;
13041
13042beos*)
13043  library_names_spec='${libname}${shared_ext}'
13044  dynamic_linker="$host_os ld.so"
13045  shlibpath_var=LIBRARY_PATH
13046  ;;
13047
13048bsdi[45]*)
13049  version_type=linux
13050  need_version=no
13051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052  soname_spec='${libname}${release}${shared_ext}$major'
13053  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13054  shlibpath_var=LD_LIBRARY_PATH
13055  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13056  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13057  # the default ld.so.conf also contains /usr/contrib/lib and
13058  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13059  # libtool to hard-code these into programs
13060  ;;
13061
13062cygwin* | mingw* | pw32*)
13063  version_type=windows
13064  shrext_cmds=".dll"
13065  need_version=no
13066  need_lib_prefix=no
13067
13068  case $GCC,$host_os in
13069  yes,cygwin* | yes,mingw* | yes,pw32*)
13070    library_names_spec='$libname.dll.a'
13071    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13072    postinstall_cmds='base_file=`basename \${file}`~
13073      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13074      dldir=$destdir/`dirname \$dlpath`~
13075      test -d \$dldir || mkdir -p \$dldir~
13076      $install_prog $dir/$dlname \$dldir/$dlname'
13077    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13078      dlpath=$dir/\$dldll~
13079       $rm \$dlpath'
13080    shlibpath_overrides_runpath=yes
13081
13082    case $host_os in
13083    cygwin*)
13084      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13085      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13086      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13087      ;;
13088    mingw*)
13089      # MinGW DLLs use traditional 'lib' prefix
13090      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13091      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13092      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13093        # It is most probably a Windows format PATH printed by
13094        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13095        # path with ; separators, and with drive letters. We can handle the
13096        # drive letters (cygwin fileutils understands them), so leave them,
13097        # especially as we might pass files found there to a mingw objdump,
13098        # which wouldn't understand a cygwinified path. Ahh.
13099        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13100      else
13101        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13102      fi
13103      ;;
13104    pw32*)
13105      # pw32 DLLs use 'pw' prefix rather than 'lib'
13106      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13107      ;;
13108    esac
13109    ;;
13110
13111  *)
13112    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13113    ;;
13114  esac
13115  dynamic_linker='Win32 ld.exe'
13116  # FIXME: first we should search . and the directory the executable is in
13117  shlibpath_var=PATH
13118  ;;
13119
13120darwin* | rhapsody*)
13121  dynamic_linker="$host_os dyld"
13122  version_type=darwin
13123  need_lib_prefix=no
13124  need_version=no
13125  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13126  soname_spec='${libname}${release}${major}$shared_ext'
13127  shlibpath_overrides_runpath=yes
13128  shlibpath_var=DYLD_LIBRARY_PATH
13129  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13130  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13131  if test "$GCC" = yes; then
13132    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13133  else
13134    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13135  fi
13136  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13137  ;;
13138
13139dgux*)
13140  version_type=linux
13141  need_lib_prefix=no
13142  need_version=no
13143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13144  soname_spec='${libname}${release}${shared_ext}$major'
13145  shlibpath_var=LD_LIBRARY_PATH
13146  ;;
13147
13148freebsd1*)
13149  dynamic_linker=no
13150  ;;
13151
13152kfreebsd*-gnu)
13153  version_type=linux
13154  need_lib_prefix=no
13155  need_version=no
13156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13157  soname_spec='${libname}${release}${shared_ext}$major'
13158  shlibpath_var=LD_LIBRARY_PATH
13159  shlibpath_overrides_runpath=no
13160  hardcode_into_libs=yes
13161  dynamic_linker='GNU ld.so'
13162  ;;
13163
13164freebsd* | dragonfly*)
13165  # DragonFly does not have aout.  When/if they implement a new
13166  # versioning mechanism, adjust this.
13167  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13168  version_type=freebsd-$objformat
13169  case $version_type in
13170    freebsd-elf*)
13171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13172      need_version=no
13173      need_lib_prefix=no
13174      ;;
13175    freebsd-*)
13176      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13177      need_version=yes
13178      ;;
13179  esac
13180  shlibpath_var=LD_LIBRARY_PATH
13181  case $host_os in
13182  freebsd2*)
13183    shlibpath_overrides_runpath=yes
13184    ;;
13185  freebsd3.[01]* | freebsdelf3.[01]*)
13186    shlibpath_overrides_runpath=yes
13187    hardcode_into_libs=yes
13188    ;;
13189  *) # from 3.2 on
13190    shlibpath_overrides_runpath=no
13191    hardcode_into_libs=yes
13192    ;;
13193  esac
13194  ;;
13195
13196gnu*)
13197  version_type=linux
13198  need_lib_prefix=no
13199  need_version=no
13200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13201  soname_spec='${libname}${release}${shared_ext}$major'
13202  shlibpath_var=LD_LIBRARY_PATH
13203  hardcode_into_libs=yes
13204  ;;
13205
13206hpux9* | hpux10* | hpux11*)
13207  # Give a soname corresponding to the major version so that dld.sl refuses to
13208  # link against other versions.
13209  version_type=sunos
13210  need_lib_prefix=no
13211  need_version=no
13212  case "$host_cpu" in
13213  ia64*)
13214    shrext_cmds='.so'
13215    hardcode_into_libs=yes
13216    dynamic_linker="$host_os dld.so"
13217    shlibpath_var=LD_LIBRARY_PATH
13218    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13219    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220    soname_spec='${libname}${release}${shared_ext}$major'
13221    if test "X$HPUX_IA64_MODE" = X32; then
13222      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13223    else
13224      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13225    fi
13226    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13227    ;;
13228   hppa*64*)
13229     shrext_cmds='.sl'
13230     hardcode_into_libs=yes
13231     dynamic_linker="$host_os dld.sl"
13232     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235     soname_spec='${libname}${release}${shared_ext}$major'
13236     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13237     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13238     ;;
13239   *)
13240    shrext_cmds='.sl'
13241    dynamic_linker="$host_os dld.sl"
13242    shlibpath_var=SHLIB_PATH
13243    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13244    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245    soname_spec='${libname}${release}${shared_ext}$major'
13246    ;;
13247  esac
13248  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13249  postinstall_cmds='chmod 555 $lib'
13250  ;;
13251
13252irix5* | irix6* | nonstopux*)
13253  case $host_os in
13254    nonstopux*) version_type=nonstopux ;;
13255    *)
13256	if test "$lt_cv_prog_gnu_ld" = yes; then
13257		version_type=linux
13258	else
13259		version_type=irix
13260	fi ;;
13261  esac
13262  need_lib_prefix=no
13263  need_version=no
13264  soname_spec='${libname}${release}${shared_ext}$major'
13265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13266  case $host_os in
13267  irix5* | nonstopux*)
13268    libsuff= shlibsuff=
13269    ;;
13270  *)
13271    case $LD in # libtool.m4 will add one of these switches to LD
13272    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13273      libsuff= shlibsuff= libmagic=32-bit;;
13274    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13275      libsuff=32 shlibsuff=N32 libmagic=N32;;
13276    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13277      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13278    *) libsuff= shlibsuff= libmagic=never-match;;
13279    esac
13280    ;;
13281  esac
13282  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13283  shlibpath_overrides_runpath=no
13284  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13285  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13286  hardcode_into_libs=yes
13287  ;;
13288
13289# No shared lib support for Linux oldld, aout, or coff.
13290linux*oldld* | linux*aout* | linux*coff*)
13291  dynamic_linker=no
13292  ;;
13293
13294# This must be Linux ELF.
13295linux*)
13296  version_type=linux
13297  need_lib_prefix=no
13298  need_version=no
13299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300  soname_spec='${libname}${release}${shared_ext}$major'
13301  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13302  shlibpath_var=LD_LIBRARY_PATH
13303  shlibpath_overrides_runpath=no
13304  # This implies no fast_install, which is unacceptable.
13305  # Some rework will be needed to allow for fast_install
13306  # before this can be enabled.
13307  hardcode_into_libs=yes
13308
13309  # Append ld.so.conf contents to the search path
13310  if test -f /etc/ld.so.conf; then
13311    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13312    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13313  fi
13314
13315  # We used to test for /lib/ld.so.1 and disable shared libraries on
13316  # powerpc, because MkLinux only supported shared libraries with the
13317  # GNU dynamic linker.  Since this was broken with cross compilers,
13318  # most powerpc-linux boxes support dynamic linking these days and
13319  # people can always --disable-shared, the test was removed, and we
13320  # assume the GNU/Linux dynamic linker is in use.
13321  dynamic_linker='GNU/Linux ld.so'
13322  ;;
13323
13324knetbsd*-gnu)
13325  version_type=linux
13326  need_lib_prefix=no
13327  need_version=no
13328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13329  soname_spec='${libname}${release}${shared_ext}$major'
13330  shlibpath_var=LD_LIBRARY_PATH
13331  shlibpath_overrides_runpath=no
13332  hardcode_into_libs=yes
13333  dynamic_linker='GNU ld.so'
13334  ;;
13335
13336netbsd*)
13337  version_type=sunos
13338  need_lib_prefix=no
13339  need_version=no
13340  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13341    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13342    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13343    dynamic_linker='NetBSD (a.out) ld.so'
13344  else
13345    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13346    soname_spec='${libname}${release}${shared_ext}$major'
13347    dynamic_linker='NetBSD ld.elf_so'
13348  fi
13349  shlibpath_var=LD_LIBRARY_PATH
13350  shlibpath_overrides_runpath=yes
13351  hardcode_into_libs=yes
13352  ;;
13353
13354newsos6)
13355  version_type=linux
13356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357  shlibpath_var=LD_LIBRARY_PATH
13358  shlibpath_overrides_runpath=yes
13359  ;;
13360
13361nto-qnx*)
13362  version_type=linux
13363  need_lib_prefix=no
13364  need_version=no
13365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13366  soname_spec='${libname}${release}${shared_ext}$major'
13367  shlibpath_var=LD_LIBRARY_PATH
13368  shlibpath_overrides_runpath=yes
13369  ;;
13370
13371openbsd*)
13372  version_type=sunos
13373  need_lib_prefix=no
13374  need_version=no
13375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13376  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13377  shlibpath_var=LD_LIBRARY_PATH
13378  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13379    case $host_os in
13380      openbsd2.[89] | openbsd2.[89].*)
13381	shlibpath_overrides_runpath=no
13382	;;
13383      *)
13384	shlibpath_overrides_runpath=yes
13385	;;
13386      esac
13387  else
13388    shlibpath_overrides_runpath=yes
13389  fi
13390  ;;
13391
13392os2*)
13393  libname_spec='$name'
13394  shrext_cmds=".dll"
13395  need_lib_prefix=no
13396  library_names_spec='$libname${shared_ext} $libname.a'
13397  dynamic_linker='OS/2 ld.exe'
13398  shlibpath_var=LIBPATH
13399  ;;
13400
13401osf3* | osf4* | osf5*)
13402  version_type=osf
13403  need_lib_prefix=no
13404  need_version=no
13405  soname_spec='${libname}${release}${shared_ext}$major'
13406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407  shlibpath_var=LD_LIBRARY_PATH
13408  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13409  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13410  ;;
13411
13412sco3.2v5*)
13413  version_type=osf
13414  soname_spec='${libname}${release}${shared_ext}$major'
13415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416  shlibpath_var=LD_LIBRARY_PATH
13417  ;;
13418
13419solaris*)
13420  version_type=linux
13421  need_lib_prefix=no
13422  need_version=no
13423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424  soname_spec='${libname}${release}${shared_ext}$major'
13425  shlibpath_var=LD_LIBRARY_PATH
13426  shlibpath_overrides_runpath=yes
13427  hardcode_into_libs=yes
13428  # ldd complains unless libraries are executable
13429  postinstall_cmds='chmod +x $lib'
13430  ;;
13431
13432sunos4*)
13433  version_type=sunos
13434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13435  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13436  shlibpath_var=LD_LIBRARY_PATH
13437  shlibpath_overrides_runpath=yes
13438  if test "$with_gnu_ld" = yes; then
13439    need_lib_prefix=no
13440  fi
13441  need_version=yes
13442  ;;
13443
13444sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13445  version_type=linux
13446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447  soname_spec='${libname}${release}${shared_ext}$major'
13448  shlibpath_var=LD_LIBRARY_PATH
13449  case $host_vendor in
13450    sni)
13451      shlibpath_overrides_runpath=no
13452      need_lib_prefix=no
13453      export_dynamic_flag_spec='${wl}-Blargedynsym'
13454      runpath_var=LD_RUN_PATH
13455      ;;
13456    siemens)
13457      need_lib_prefix=no
13458      ;;
13459    motorola)
13460      need_lib_prefix=no
13461      need_version=no
13462      shlibpath_overrides_runpath=no
13463      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13464      ;;
13465  esac
13466  ;;
13467
13468sysv4*MP*)
13469  if test -d /usr/nec ;then
13470    version_type=linux
13471    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13472    soname_spec='$libname${shared_ext}.$major'
13473    shlibpath_var=LD_LIBRARY_PATH
13474  fi
13475  ;;
13476
13477uts4*)
13478  version_type=linux
13479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480  soname_spec='${libname}${release}${shared_ext}$major'
13481  shlibpath_var=LD_LIBRARY_PATH
13482  ;;
13483
13484*)
13485  dynamic_linker=no
13486  ;;
13487esac
13488echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13489echo "${ECHO_T}$dynamic_linker" >&6
13490test "$dynamic_linker" = no && can_build_shared=no
13491
13492echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13493echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13494hardcode_action_CXX=
13495if test -n "$hardcode_libdir_flag_spec_CXX" || \
13496   test -n "$runpath_var_CXX" || \
13497   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13498
13499  # We can hardcode non-existant directories.
13500  if test "$hardcode_direct_CXX" != no &&
13501     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13502     # have to relink, otherwise we might link with an installed library
13503     # when we should be linking with a yet-to-be-installed one
13504     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13505     test "$hardcode_minus_L_CXX" != no; then
13506    # Linking always hardcodes the temporary library directory.
13507    hardcode_action_CXX=relink
13508  else
13509    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13510    hardcode_action_CXX=immediate
13511  fi
13512else
13513  # We cannot hardcode anything, or else we can only hardcode existing
13514  # directories.
13515  hardcode_action_CXX=unsupported
13516fi
13517echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13518echo "${ECHO_T}$hardcode_action_CXX" >&6
13519
13520if test "$hardcode_action_CXX" = relink; then
13521  # Fast installation is not supported
13522  enable_fast_install=no
13523elif test "$shlibpath_overrides_runpath" = yes ||
13524     test "$enable_shared" = no; then
13525  # Fast installation is not necessary
13526  enable_fast_install=needless
13527fi
13528
13529striplib=
13530old_striplib=
13531echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13532echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13533if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13534  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13535  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13536  echo "$as_me:$LINENO: result: yes" >&5
13537echo "${ECHO_T}yes" >&6
13538else
13539# FIXME - insert some real tests, host_os isn't really good enough
13540  case $host_os in
13541   darwin*)
13542       if test -n "$STRIP" ; then
13543         striplib="$STRIP -x"
13544         echo "$as_me:$LINENO: result: yes" >&5
13545echo "${ECHO_T}yes" >&6
13546       else
13547  echo "$as_me:$LINENO: result: no" >&5
13548echo "${ECHO_T}no" >&6
13549fi
13550       ;;
13551   *)
13552  echo "$as_me:$LINENO: result: no" >&5
13553echo "${ECHO_T}no" >&6
13554    ;;
13555  esac
13556fi
13557
13558if test "x$enable_dlopen" != xyes; then
13559  enable_dlopen=unknown
13560  enable_dlopen_self=unknown
13561  enable_dlopen_self_static=unknown
13562else
13563  lt_cv_dlopen=no
13564  lt_cv_dlopen_libs=
13565
13566  case $host_os in
13567  beos*)
13568    lt_cv_dlopen="load_add_on"
13569    lt_cv_dlopen_libs=
13570    lt_cv_dlopen_self=yes
13571    ;;
13572
13573  mingw* | pw32*)
13574    lt_cv_dlopen="LoadLibrary"
13575    lt_cv_dlopen_libs=
13576   ;;
13577
13578  cygwin*)
13579    lt_cv_dlopen="dlopen"
13580    lt_cv_dlopen_libs=
13581   ;;
13582
13583  darwin*)
13584  # if libdl is installed we need to link against it
13585    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13586echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13587if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13588  echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590  ac_check_lib_save_LIBS=$LIBS
13591LIBS="-ldl  $LIBS"
13592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h.  */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h.  */
13598
13599/* Override any gcc2 internal prototype to avoid an error.  */
13600#ifdef __cplusplus
13601extern "C"
13602#endif
13603/* We use char because int might match the return type of a gcc2
13604   builtin and then its argument prototype would still apply.  */
13605char dlopen ();
13606int
13607main ()
13608{
13609dlopen ();
13610  ;
13611  return 0;
13612}
13613_ACEOF
13614rm -f conftest.$ac_objext conftest$ac_exeext
13615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616  (eval $ac_link) 2>conftest.er1
13617  ac_status=$?
13618  grep -v '^ *+' conftest.er1 >conftest.err
13619  rm -f conftest.er1
13620  cat conftest.err >&5
13621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622  (exit $ac_status); } &&
13623	 { ac_try='test -z "$ac_cxx_werror_flag"
13624			 || test ! -s conftest.err'
13625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626  (eval $ac_try) 2>&5
13627  ac_status=$?
13628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629  (exit $ac_status); }; } &&
13630	 { ac_try='test -s conftest$ac_exeext'
13631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632  (eval $ac_try) 2>&5
13633  ac_status=$?
13634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635  (exit $ac_status); }; }; then
13636  ac_cv_lib_dl_dlopen=yes
13637else
13638  echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641ac_cv_lib_dl_dlopen=no
13642fi
13643rm -f conftest.err conftest.$ac_objext \
13644      conftest$ac_exeext conftest.$ac_ext
13645LIBS=$ac_check_lib_save_LIBS
13646fi
13647echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13648echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13649if test $ac_cv_lib_dl_dlopen = yes; then
13650  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13651else
13652
13653    lt_cv_dlopen="dyld"
13654    lt_cv_dlopen_libs=
13655    lt_cv_dlopen_self=yes
13656
13657fi
13658
13659   ;;
13660
13661  *)
13662    echo "$as_me:$LINENO: checking for shl_load" >&5
13663echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13664if test "${ac_cv_func_shl_load+set}" = set; then
13665  echo $ECHO_N "(cached) $ECHO_C" >&6
13666else
13667  cat >conftest.$ac_ext <<_ACEOF
13668/* confdefs.h.  */
13669_ACEOF
13670cat confdefs.h >>conftest.$ac_ext
13671cat >>conftest.$ac_ext <<_ACEOF
13672/* end confdefs.h.  */
13673/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13674   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13675#define shl_load innocuous_shl_load
13676
13677/* System header to define __stub macros and hopefully few prototypes,
13678    which can conflict with char shl_load (); below.
13679    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13680    <limits.h> exists even on freestanding compilers.  */
13681
13682#ifdef __STDC__
13683# include <limits.h>
13684#else
13685# include <assert.h>
13686#endif
13687
13688#undef shl_load
13689
13690/* Override any gcc2 internal prototype to avoid an error.  */
13691#ifdef __cplusplus
13692extern "C"
13693{
13694#endif
13695/* We use char because int might match the return type of a gcc2
13696   builtin and then its argument prototype would still apply.  */
13697char shl_load ();
13698/* The GNU C library defines this for functions which it implements
13699    to always fail with ENOSYS.  Some functions are actually named
13700    something starting with __ and the normal name is an alias.  */
13701#if defined (__stub_shl_load) || defined (__stub___shl_load)
13702choke me
13703#else
13704char (*f) () = shl_load;
13705#endif
13706#ifdef __cplusplus
13707}
13708#endif
13709
13710int
13711main ()
13712{
13713return f != shl_load;
13714  ;
13715  return 0;
13716}
13717_ACEOF
13718rm -f conftest.$ac_objext conftest$ac_exeext
13719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720  (eval $ac_link) 2>conftest.er1
13721  ac_status=$?
13722  grep -v '^ *+' conftest.er1 >conftest.err
13723  rm -f conftest.er1
13724  cat conftest.err >&5
13725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726  (exit $ac_status); } &&
13727	 { ac_try='test -z "$ac_cxx_werror_flag"
13728			 || test ! -s conftest.err'
13729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730  (eval $ac_try) 2>&5
13731  ac_status=$?
13732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733  (exit $ac_status); }; } &&
13734	 { ac_try='test -s conftest$ac_exeext'
13735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736  (eval $ac_try) 2>&5
13737  ac_status=$?
13738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739  (exit $ac_status); }; }; then
13740  ac_cv_func_shl_load=yes
13741else
13742  echo "$as_me: failed program was:" >&5
13743sed 's/^/| /' conftest.$ac_ext >&5
13744
13745ac_cv_func_shl_load=no
13746fi
13747rm -f conftest.err conftest.$ac_objext \
13748      conftest$ac_exeext conftest.$ac_ext
13749fi
13750echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13751echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13752if test $ac_cv_func_shl_load = yes; then
13753  lt_cv_dlopen="shl_load"
13754else
13755  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13756echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13757if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13758  echo $ECHO_N "(cached) $ECHO_C" >&6
13759else
13760  ac_check_lib_save_LIBS=$LIBS
13761LIBS="-ldld  $LIBS"
13762cat >conftest.$ac_ext <<_ACEOF
13763/* confdefs.h.  */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h.  */
13768
13769/* Override any gcc2 internal prototype to avoid an error.  */
13770#ifdef __cplusplus
13771extern "C"
13772#endif
13773/* We use char because int might match the return type of a gcc2
13774   builtin and then its argument prototype would still apply.  */
13775char shl_load ();
13776int
13777main ()
13778{
13779shl_load ();
13780  ;
13781  return 0;
13782}
13783_ACEOF
13784rm -f conftest.$ac_objext conftest$ac_exeext
13785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13786  (eval $ac_link) 2>conftest.er1
13787  ac_status=$?
13788  grep -v '^ *+' conftest.er1 >conftest.err
13789  rm -f conftest.er1
13790  cat conftest.err >&5
13791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792  (exit $ac_status); } &&
13793	 { ac_try='test -z "$ac_cxx_werror_flag"
13794			 || test ! -s conftest.err'
13795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796  (eval $ac_try) 2>&5
13797  ac_status=$?
13798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799  (exit $ac_status); }; } &&
13800	 { ac_try='test -s conftest$ac_exeext'
13801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802  (eval $ac_try) 2>&5
13803  ac_status=$?
13804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805  (exit $ac_status); }; }; then
13806  ac_cv_lib_dld_shl_load=yes
13807else
13808  echo "$as_me: failed program was:" >&5
13809sed 's/^/| /' conftest.$ac_ext >&5
13810
13811ac_cv_lib_dld_shl_load=no
13812fi
13813rm -f conftest.err conftest.$ac_objext \
13814      conftest$ac_exeext conftest.$ac_ext
13815LIBS=$ac_check_lib_save_LIBS
13816fi
13817echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13818echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13819if test $ac_cv_lib_dld_shl_load = yes; then
13820  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13821else
13822  echo "$as_me:$LINENO: checking for dlopen" >&5
13823echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13824if test "${ac_cv_func_dlopen+set}" = set; then
13825  echo $ECHO_N "(cached) $ECHO_C" >&6
13826else
13827  cat >conftest.$ac_ext <<_ACEOF
13828/* confdefs.h.  */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h.  */
13833/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13834   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13835#define dlopen innocuous_dlopen
13836
13837/* System header to define __stub macros and hopefully few prototypes,
13838    which can conflict with char dlopen (); below.
13839    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13840    <limits.h> exists even on freestanding compilers.  */
13841
13842#ifdef __STDC__
13843# include <limits.h>
13844#else
13845# include <assert.h>
13846#endif
13847
13848#undef dlopen
13849
13850/* Override any gcc2 internal prototype to avoid an error.  */
13851#ifdef __cplusplus
13852extern "C"
13853{
13854#endif
13855/* We use char because int might match the return type of a gcc2
13856   builtin and then its argument prototype would still apply.  */
13857char dlopen ();
13858/* The GNU C library defines this for functions which it implements
13859    to always fail with ENOSYS.  Some functions are actually named
13860    something starting with __ and the normal name is an alias.  */
13861#if defined (__stub_dlopen) || defined (__stub___dlopen)
13862choke me
13863#else
13864char (*f) () = dlopen;
13865#endif
13866#ifdef __cplusplus
13867}
13868#endif
13869
13870int
13871main ()
13872{
13873return f != dlopen;
13874  ;
13875  return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext conftest$ac_exeext
13879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880  (eval $ac_link) 2>conftest.er1
13881  ac_status=$?
13882  grep -v '^ *+' conftest.er1 >conftest.err
13883  rm -f conftest.er1
13884  cat conftest.err >&5
13885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886  (exit $ac_status); } &&
13887	 { ac_try='test -z "$ac_cxx_werror_flag"
13888			 || test ! -s conftest.err'
13889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890  (eval $ac_try) 2>&5
13891  ac_status=$?
13892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893  (exit $ac_status); }; } &&
13894	 { ac_try='test -s conftest$ac_exeext'
13895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896  (eval $ac_try) 2>&5
13897  ac_status=$?
13898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899  (exit $ac_status); }; }; then
13900  ac_cv_func_dlopen=yes
13901else
13902  echo "$as_me: failed program was:" >&5
13903sed 's/^/| /' conftest.$ac_ext >&5
13904
13905ac_cv_func_dlopen=no
13906fi
13907rm -f conftest.err conftest.$ac_objext \
13908      conftest$ac_exeext conftest.$ac_ext
13909fi
13910echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13911echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13912if test $ac_cv_func_dlopen = yes; then
13913  lt_cv_dlopen="dlopen"
13914else
13915  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13916echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13917if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13918  echo $ECHO_N "(cached) $ECHO_C" >&6
13919else
13920  ac_check_lib_save_LIBS=$LIBS
13921LIBS="-ldl  $LIBS"
13922cat >conftest.$ac_ext <<_ACEOF
13923/* confdefs.h.  */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
13927/* end confdefs.h.  */
13928
13929/* Override any gcc2 internal prototype to avoid an error.  */
13930#ifdef __cplusplus
13931extern "C"
13932#endif
13933/* We use char because int might match the return type of a gcc2
13934   builtin and then its argument prototype would still apply.  */
13935char dlopen ();
13936int
13937main ()
13938{
13939dlopen ();
13940  ;
13941  return 0;
13942}
13943_ACEOF
13944rm -f conftest.$ac_objext conftest$ac_exeext
13945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946  (eval $ac_link) 2>conftest.er1
13947  ac_status=$?
13948  grep -v '^ *+' conftest.er1 >conftest.err
13949  rm -f conftest.er1
13950  cat conftest.err >&5
13951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952  (exit $ac_status); } &&
13953	 { ac_try='test -z "$ac_cxx_werror_flag"
13954			 || test ! -s conftest.err'
13955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956  (eval $ac_try) 2>&5
13957  ac_status=$?
13958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959  (exit $ac_status); }; } &&
13960	 { ac_try='test -s conftest$ac_exeext'
13961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962  (eval $ac_try) 2>&5
13963  ac_status=$?
13964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965  (exit $ac_status); }; }; then
13966  ac_cv_lib_dl_dlopen=yes
13967else
13968  echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
13971ac_cv_lib_dl_dlopen=no
13972fi
13973rm -f conftest.err conftest.$ac_objext \
13974      conftest$ac_exeext conftest.$ac_ext
13975LIBS=$ac_check_lib_save_LIBS
13976fi
13977echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13978echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13979if test $ac_cv_lib_dl_dlopen = yes; then
13980  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13981else
13982  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13983echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13984if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13985  echo $ECHO_N "(cached) $ECHO_C" >&6
13986else
13987  ac_check_lib_save_LIBS=$LIBS
13988LIBS="-lsvld  $LIBS"
13989cat >conftest.$ac_ext <<_ACEOF
13990/* confdefs.h.  */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
13994/* end confdefs.h.  */
13995
13996/* Override any gcc2 internal prototype to avoid an error.  */
13997#ifdef __cplusplus
13998extern "C"
13999#endif
14000/* We use char because int might match the return type of a gcc2
14001   builtin and then its argument prototype would still apply.  */
14002char dlopen ();
14003int
14004main ()
14005{
14006dlopen ();
14007  ;
14008  return 0;
14009}
14010_ACEOF
14011rm -f conftest.$ac_objext conftest$ac_exeext
14012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14013  (eval $ac_link) 2>conftest.er1
14014  ac_status=$?
14015  grep -v '^ *+' conftest.er1 >conftest.err
14016  rm -f conftest.er1
14017  cat conftest.err >&5
14018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019  (exit $ac_status); } &&
14020	 { ac_try='test -z "$ac_cxx_werror_flag"
14021			 || test ! -s conftest.err'
14022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023  (eval $ac_try) 2>&5
14024  ac_status=$?
14025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026  (exit $ac_status); }; } &&
14027	 { ac_try='test -s conftest$ac_exeext'
14028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029  (eval $ac_try) 2>&5
14030  ac_status=$?
14031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032  (exit $ac_status); }; }; then
14033  ac_cv_lib_svld_dlopen=yes
14034else
14035  echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038ac_cv_lib_svld_dlopen=no
14039fi
14040rm -f conftest.err conftest.$ac_objext \
14041      conftest$ac_exeext conftest.$ac_ext
14042LIBS=$ac_check_lib_save_LIBS
14043fi
14044echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14045echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14046if test $ac_cv_lib_svld_dlopen = yes; then
14047  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14048else
14049  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14050echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14051if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14052  echo $ECHO_N "(cached) $ECHO_C" >&6
14053else
14054  ac_check_lib_save_LIBS=$LIBS
14055LIBS="-ldld  $LIBS"
14056cat >conftest.$ac_ext <<_ACEOF
14057/* confdefs.h.  */
14058_ACEOF
14059cat confdefs.h >>conftest.$ac_ext
14060cat >>conftest.$ac_ext <<_ACEOF
14061/* end confdefs.h.  */
14062
14063/* Override any gcc2 internal prototype to avoid an error.  */
14064#ifdef __cplusplus
14065extern "C"
14066#endif
14067/* We use char because int might match the return type of a gcc2
14068   builtin and then its argument prototype would still apply.  */
14069char dld_link ();
14070int
14071main ()
14072{
14073dld_link ();
14074  ;
14075  return 0;
14076}
14077_ACEOF
14078rm -f conftest.$ac_objext conftest$ac_exeext
14079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14080  (eval $ac_link) 2>conftest.er1
14081  ac_status=$?
14082  grep -v '^ *+' conftest.er1 >conftest.err
14083  rm -f conftest.er1
14084  cat conftest.err >&5
14085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086  (exit $ac_status); } &&
14087	 { ac_try='test -z "$ac_cxx_werror_flag"
14088			 || test ! -s conftest.err'
14089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090  (eval $ac_try) 2>&5
14091  ac_status=$?
14092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093  (exit $ac_status); }; } &&
14094	 { ac_try='test -s conftest$ac_exeext'
14095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096  (eval $ac_try) 2>&5
14097  ac_status=$?
14098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099  (exit $ac_status); }; }; then
14100  ac_cv_lib_dld_dld_link=yes
14101else
14102  echo "$as_me: failed program was:" >&5
14103sed 's/^/| /' conftest.$ac_ext >&5
14104
14105ac_cv_lib_dld_dld_link=no
14106fi
14107rm -f conftest.err conftest.$ac_objext \
14108      conftest$ac_exeext conftest.$ac_ext
14109LIBS=$ac_check_lib_save_LIBS
14110fi
14111echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14112echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14113if test $ac_cv_lib_dld_dld_link = yes; then
14114  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14115fi
14116
14117
14118fi
14119
14120
14121fi
14122
14123
14124fi
14125
14126
14127fi
14128
14129
14130fi
14131
14132    ;;
14133  esac
14134
14135  if test "x$lt_cv_dlopen" != xno; then
14136    enable_dlopen=yes
14137  else
14138    enable_dlopen=no
14139  fi
14140
14141  case $lt_cv_dlopen in
14142  dlopen)
14143    save_CPPFLAGS="$CPPFLAGS"
14144    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14145
14146    save_LDFLAGS="$LDFLAGS"
14147    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14148
14149    save_LIBS="$LIBS"
14150    LIBS="$lt_cv_dlopen_libs $LIBS"
14151
14152    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14153echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14154if test "${lt_cv_dlopen_self+set}" = set; then
14155  echo $ECHO_N "(cached) $ECHO_C" >&6
14156else
14157  	  if test "$cross_compiling" = yes; then :
14158  lt_cv_dlopen_self=cross
14159else
14160  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14161  lt_status=$lt_dlunknown
14162  cat > conftest.$ac_ext <<EOF
14163#line 14163 "configure"
14164#include "confdefs.h"
14165
14166#if HAVE_DLFCN_H
14167#include <dlfcn.h>
14168#endif
14169
14170#include <stdio.h>
14171
14172#ifdef RTLD_GLOBAL
14173#  define LT_DLGLOBAL		RTLD_GLOBAL
14174#else
14175#  ifdef DL_GLOBAL
14176#    define LT_DLGLOBAL		DL_GLOBAL
14177#  else
14178#    define LT_DLGLOBAL		0
14179#  endif
14180#endif
14181
14182/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14183   find out it does not work in some platform. */
14184#ifndef LT_DLLAZY_OR_NOW
14185#  ifdef RTLD_LAZY
14186#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14187#  else
14188#    ifdef DL_LAZY
14189#      define LT_DLLAZY_OR_NOW		DL_LAZY
14190#    else
14191#      ifdef RTLD_NOW
14192#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14193#      else
14194#        ifdef DL_NOW
14195#          define LT_DLLAZY_OR_NOW	DL_NOW
14196#        else
14197#          define LT_DLLAZY_OR_NOW	0
14198#        endif
14199#      endif
14200#    endif
14201#  endif
14202#endif
14203
14204#ifdef __cplusplus
14205extern "C" void exit (int);
14206#endif
14207
14208void fnord() { int i=42;}
14209int main ()
14210{
14211  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14212  int status = $lt_dlunknown;
14213
14214  if (self)
14215    {
14216      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14217      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14218      /* dlclose (self); */
14219    }
14220
14221    exit (status);
14222}
14223EOF
14224  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14225  (eval $ac_link) 2>&5
14226  ac_status=$?
14227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14229    (./conftest; exit; ) 2>/dev/null
14230    lt_status=$?
14231    case x$lt_status in
14232      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14233      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14234      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14235    esac
14236  else :
14237    # compilation failed
14238    lt_cv_dlopen_self=no
14239  fi
14240fi
14241rm -fr conftest*
14242
14243
14244fi
14245echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14246echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14247
14248    if test "x$lt_cv_dlopen_self" = xyes; then
14249      LDFLAGS="$LDFLAGS $link_static_flag"
14250      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14251echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14252if test "${lt_cv_dlopen_self_static+set}" = set; then
14253  echo $ECHO_N "(cached) $ECHO_C" >&6
14254else
14255  	  if test "$cross_compiling" = yes; then :
14256  lt_cv_dlopen_self_static=cross
14257else
14258  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14259  lt_status=$lt_dlunknown
14260  cat > conftest.$ac_ext <<EOF
14261#line 14261 "configure"
14262#include "confdefs.h"
14263
14264#if HAVE_DLFCN_H
14265#include <dlfcn.h>
14266#endif
14267
14268#include <stdio.h>
14269
14270#ifdef RTLD_GLOBAL
14271#  define LT_DLGLOBAL		RTLD_GLOBAL
14272#else
14273#  ifdef DL_GLOBAL
14274#    define LT_DLGLOBAL		DL_GLOBAL
14275#  else
14276#    define LT_DLGLOBAL		0
14277#  endif
14278#endif
14279
14280/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14281   find out it does not work in some platform. */
14282#ifndef LT_DLLAZY_OR_NOW
14283#  ifdef RTLD_LAZY
14284#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14285#  else
14286#    ifdef DL_LAZY
14287#      define LT_DLLAZY_OR_NOW		DL_LAZY
14288#    else
14289#      ifdef RTLD_NOW
14290#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14291#      else
14292#        ifdef DL_NOW
14293#          define LT_DLLAZY_OR_NOW	DL_NOW
14294#        else
14295#          define LT_DLLAZY_OR_NOW	0
14296#        endif
14297#      endif
14298#    endif
14299#  endif
14300#endif
14301
14302#ifdef __cplusplus
14303extern "C" void exit (int);
14304#endif
14305
14306void fnord() { int i=42;}
14307int main ()
14308{
14309  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14310  int status = $lt_dlunknown;
14311
14312  if (self)
14313    {
14314      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14315      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14316      /* dlclose (self); */
14317    }
14318
14319    exit (status);
14320}
14321EOF
14322  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14323  (eval $ac_link) 2>&5
14324  ac_status=$?
14325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14327    (./conftest; exit; ) 2>/dev/null
14328    lt_status=$?
14329    case x$lt_status in
14330      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14331      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14332      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14333    esac
14334  else :
14335    # compilation failed
14336    lt_cv_dlopen_self_static=no
14337  fi
14338fi
14339rm -fr conftest*
14340
14341
14342fi
14343echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14344echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14345    fi
14346
14347    CPPFLAGS="$save_CPPFLAGS"
14348    LDFLAGS="$save_LDFLAGS"
14349    LIBS="$save_LIBS"
14350    ;;
14351  esac
14352
14353  case $lt_cv_dlopen_self in
14354  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14355  *) enable_dlopen_self=unknown ;;
14356  esac
14357
14358  case $lt_cv_dlopen_self_static in
14359  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14360  *) enable_dlopen_self_static=unknown ;;
14361  esac
14362fi
14363
14364
14365# The else clause should only fire when bootstrapping the
14366# libtool distribution, otherwise you forgot to ship ltmain.sh
14367# with your package, and you will get complaints that there are
14368# no rules to generate ltmain.sh.
14369if test -f "$ltmain"; then
14370  # See if we are running on zsh, and set the options which allow our commands through
14371  # without removal of \ escapes.
14372  if test -n "${ZSH_VERSION+set}" ; then
14373    setopt NO_GLOB_SUBST
14374  fi
14375  # Now quote all the things that may contain metacharacters while being
14376  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14377  # variables and quote the copies for generation of the libtool script.
14378  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14379    SED SHELL STRIP \
14380    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14381    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14382    deplibs_check_method reload_flag reload_cmds need_locks \
14383    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14384    lt_cv_sys_global_symbol_to_c_name_address \
14385    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14386    old_postinstall_cmds old_postuninstall_cmds \
14387    compiler_CXX \
14388    CC_CXX \
14389    LD_CXX \
14390    lt_prog_compiler_wl_CXX \
14391    lt_prog_compiler_pic_CXX \
14392    lt_prog_compiler_static_CXX \
14393    lt_prog_compiler_no_builtin_flag_CXX \
14394    export_dynamic_flag_spec_CXX \
14395    thread_safe_flag_spec_CXX \
14396    whole_archive_flag_spec_CXX \
14397    enable_shared_with_static_runtimes_CXX \
14398    old_archive_cmds_CXX \
14399    old_archive_from_new_cmds_CXX \
14400    predep_objects_CXX \
14401    postdep_objects_CXX \
14402    predeps_CXX \
14403    postdeps_CXX \
14404    compiler_lib_search_path_CXX \
14405    archive_cmds_CXX \
14406    archive_expsym_cmds_CXX \
14407    postinstall_cmds_CXX \
14408    postuninstall_cmds_CXX \
14409    old_archive_from_expsyms_cmds_CXX \
14410    allow_undefined_flag_CXX \
14411    no_undefined_flag_CXX \
14412    export_symbols_cmds_CXX \
14413    hardcode_libdir_flag_spec_CXX \
14414    hardcode_libdir_flag_spec_ld_CXX \
14415    hardcode_libdir_separator_CXX \
14416    hardcode_automatic_CXX \
14417    module_cmds_CXX \
14418    module_expsym_cmds_CXX \
14419    lt_cv_prog_compiler_c_o_CXX \
14420    exclude_expsyms_CXX \
14421    include_expsyms_CXX; do
14422
14423    case $var in
14424    old_archive_cmds_CXX | \
14425    old_archive_from_new_cmds_CXX | \
14426    archive_cmds_CXX | \
14427    archive_expsym_cmds_CXX | \
14428    module_cmds_CXX | \
14429    module_expsym_cmds_CXX | \
14430    old_archive_from_expsyms_cmds_CXX | \
14431    export_symbols_cmds_CXX | \
14432    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14433    postinstall_cmds | postuninstall_cmds | \
14434    old_postinstall_cmds | old_postuninstall_cmds | \
14435    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14436      # Double-quote double-evaled strings.
14437      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14438      ;;
14439    *)
14440      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14441      ;;
14442    esac
14443  done
14444
14445  case $lt_echo in
14446  *'\$0 --fallback-echo"')
14447    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14448    ;;
14449  esac
14450
14451cfgfile="$ofile"
14452
14453  cat <<__EOF__ >> "$cfgfile"
14454# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14455
14456# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14457
14458# Shell to use when invoking shell scripts.
14459SHELL=$lt_SHELL
14460
14461# Whether or not to build shared libraries.
14462build_libtool_libs=$enable_shared
14463
14464# Whether or not to build static libraries.
14465build_old_libs=$enable_static
14466
14467# Whether or not to add -lc for building shared libraries.
14468build_libtool_need_lc=$archive_cmds_need_lc_CXX
14469
14470# Whether or not to disallow shared libs when runtime libs are static
14471allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14472
14473# Whether or not to optimize for fast installation.
14474fast_install=$enable_fast_install
14475
14476# The host system.
14477host_alias=$host_alias
14478host=$host
14479host_os=$host_os
14480
14481# The build system.
14482build_alias=$build_alias
14483build=$build
14484build_os=$build_os
14485
14486# An echo program that does not interpret backslashes.
14487echo=$lt_echo
14488
14489# The archiver.
14490AR=$lt_AR
14491AR_FLAGS=$lt_AR_FLAGS
14492
14493# A C compiler.
14494LTCC=$lt_LTCC
14495
14496# A language-specific compiler.
14497CC=$lt_compiler_CXX
14498
14499# Is the compiler the GNU C compiler?
14500with_gcc=$GCC_CXX
14501
14502# An ERE matcher.
14503EGREP=$lt_EGREP
14504
14505# The linker used to build libraries.
14506LD=$lt_LD_CXX
14507
14508# Whether we need hard or soft links.
14509LN_S=$lt_LN_S
14510
14511# A BSD-compatible nm program.
14512NM=$lt_NM
14513
14514# A symbol stripping program
14515STRIP=$lt_STRIP
14516
14517# Used to examine libraries when file_magic_cmd begins "file"
14518MAGIC_CMD=$MAGIC_CMD
14519
14520# Used on cygwin: DLL creation program.
14521DLLTOOL="$DLLTOOL"
14522
14523# Used on cygwin: object dumper.
14524OBJDUMP="$OBJDUMP"
14525
14526# Used on cygwin: assembler.
14527AS="$AS"
14528
14529# The name of the directory that contains temporary libtool files.
14530objdir=$objdir
14531
14532# How to create reloadable object files.
14533reload_flag=$lt_reload_flag
14534reload_cmds=$lt_reload_cmds
14535
14536# How to pass a linker flag through the compiler.
14537wl=$lt_lt_prog_compiler_wl_CXX
14538
14539# Object file suffix (normally "o").
14540objext="$ac_objext"
14541
14542# Old archive suffix (normally "a").
14543libext="$libext"
14544
14545# Shared library suffix (normally ".so").
14546shrext_cmds='$shrext_cmds'
14547
14548# Executable file suffix (normally "").
14549exeext="$exeext"
14550
14551# Additional compiler flags for building library objects.
14552pic_flag=$lt_lt_prog_compiler_pic_CXX
14553pic_mode=$pic_mode
14554
14555# What is the maximum length of a command?
14556max_cmd_len=$lt_cv_sys_max_cmd_len
14557
14558# Does compiler simultaneously support -c and -o options?
14559compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14560
14561# Must we lock files when doing compilation ?
14562need_locks=$lt_need_locks
14563
14564# Do we need the lib prefix for modules?
14565need_lib_prefix=$need_lib_prefix
14566
14567# Do we need a version for libraries?
14568need_version=$need_version
14569
14570# Whether dlopen is supported.
14571dlopen_support=$enable_dlopen
14572
14573# Whether dlopen of programs is supported.
14574dlopen_self=$enable_dlopen_self
14575
14576# Whether dlopen of statically linked programs is supported.
14577dlopen_self_static=$enable_dlopen_self_static
14578
14579# Compiler flag to prevent dynamic linking.
14580link_static_flag=$lt_lt_prog_compiler_static_CXX
14581
14582# Compiler flag to turn off builtin functions.
14583no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14584
14585# Compiler flag to allow reflexive dlopens.
14586export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14587
14588# Compiler flag to generate shared objects directly from archives.
14589whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14590
14591# Compiler flag to generate thread-safe objects.
14592thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14593
14594# Library versioning type.
14595version_type=$version_type
14596
14597# Format of library name prefix.
14598libname_spec=$lt_libname_spec
14599
14600# List of archive names.  First name is the real one, the rest are links.
14601# The last name is the one that the linker finds with -lNAME.
14602library_names_spec=$lt_library_names_spec
14603
14604# The coded name of the library, if different from the real name.
14605soname_spec=$lt_soname_spec
14606
14607# Commands used to build and install an old-style archive.
14608RANLIB=$lt_RANLIB
14609old_archive_cmds=$lt_old_archive_cmds_CXX
14610old_postinstall_cmds=$lt_old_postinstall_cmds
14611old_postuninstall_cmds=$lt_old_postuninstall_cmds
14612
14613# Create an old-style archive from a shared archive.
14614old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14615
14616# Create a temporary old-style archive to link instead of a shared archive.
14617old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14618
14619# Commands used to build and install a shared archive.
14620archive_cmds=$lt_archive_cmds_CXX
14621archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14622postinstall_cmds=$lt_postinstall_cmds
14623postuninstall_cmds=$lt_postuninstall_cmds
14624
14625# Commands used to build a loadable module (assumed same as above if empty)
14626module_cmds=$lt_module_cmds_CXX
14627module_expsym_cmds=$lt_module_expsym_cmds_CXX
14628
14629# Commands to strip libraries.
14630old_striplib=$lt_old_striplib
14631striplib=$lt_striplib
14632
14633# Dependencies to place before the objects being linked to create a
14634# shared library.
14635predep_objects=$lt_predep_objects_CXX
14636
14637# Dependencies to place after the objects being linked to create a
14638# shared library.
14639postdep_objects=$lt_postdep_objects_CXX
14640
14641# Dependencies to place before the objects being linked to create a
14642# shared library.
14643predeps=$lt_predeps_CXX
14644
14645# Dependencies to place after the objects being linked to create a
14646# shared library.
14647postdeps=$lt_postdeps_CXX
14648
14649# The library search path used internally by the compiler when linking
14650# a shared library.
14651compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14652
14653# Method to check whether dependent libraries are shared objects.
14654deplibs_check_method=$lt_deplibs_check_method
14655
14656# Command to use when deplibs_check_method == file_magic.
14657file_magic_cmd=$lt_file_magic_cmd
14658
14659# Flag that allows shared libraries with undefined symbols to be built.
14660allow_undefined_flag=$lt_allow_undefined_flag_CXX
14661
14662# Flag that forces no undefined symbols.
14663no_undefined_flag=$lt_no_undefined_flag_CXX
14664
14665# Commands used to finish a libtool library installation in a directory.
14666finish_cmds=$lt_finish_cmds
14667
14668# Same as above, but a single script fragment to be evaled but not shown.
14669finish_eval=$lt_finish_eval
14670
14671# Take the output of nm and produce a listing of raw symbols and C names.
14672global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14673
14674# Transform the output of nm in a proper C declaration
14675global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14676
14677# Transform the output of nm in a C name address pair
14678global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14679
14680# This is the shared library runtime path variable.
14681runpath_var=$runpath_var
14682
14683# This is the shared library path variable.
14684shlibpath_var=$shlibpath_var
14685
14686# Is shlibpath searched before the hard-coded library search path?
14687shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14688
14689# How to hardcode a shared library path into an executable.
14690hardcode_action=$hardcode_action_CXX
14691
14692# Whether we should hardcode library paths into libraries.
14693hardcode_into_libs=$hardcode_into_libs
14694
14695# Flag to hardcode \$libdir into a binary during linking.
14696# This must work even if \$libdir does not exist.
14697hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14698
14699# If ld is used when linking, flag to hardcode \$libdir into
14700# a binary during linking. This must work even if \$libdir does
14701# not exist.
14702hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14703
14704# Whether we need a single -rpath flag with a separated argument.
14705hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14706
14707# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14708# resulting binary.
14709hardcode_direct=$hardcode_direct_CXX
14710
14711# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14712# resulting binary.
14713hardcode_minus_L=$hardcode_minus_L_CXX
14714
14715# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14716# the resulting binary.
14717hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14718
14719# Set to yes if building a shared library automatically hardcodes DIR into the library
14720# and all subsequent libraries and executables linked against it.
14721hardcode_automatic=$hardcode_automatic_CXX
14722
14723# Variables whose values should be saved in libtool wrapper scripts and
14724# restored at relink time.
14725variables_saved_for_relink="$variables_saved_for_relink"
14726
14727# Whether libtool must link a program against all its dependency libraries.
14728link_all_deplibs=$link_all_deplibs_CXX
14729
14730# Compile-time system search path for libraries
14731sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14732
14733# Run-time system search path for libraries
14734sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14735
14736# Fix the shell variable \$srcfile for the compiler.
14737fix_srcfile_path="$fix_srcfile_path_CXX"
14738
14739# Set to yes if exported symbols are required.
14740always_export_symbols=$always_export_symbols_CXX
14741
14742# The commands to list exported symbols.
14743export_symbols_cmds=$lt_export_symbols_cmds_CXX
14744
14745# The commands to extract the exported symbol list from a shared archive.
14746extract_expsyms_cmds=$lt_extract_expsyms_cmds
14747
14748# Symbols that should not be listed in the preloaded symbols.
14749exclude_expsyms=$lt_exclude_expsyms_CXX
14750
14751# Symbols that must always be exported.
14752include_expsyms=$lt_include_expsyms_CXX
14753
14754# ### END LIBTOOL TAG CONFIG: $tagname
14755
14756__EOF__
14757
14758
14759else
14760  # If there is no Makefile yet, we rely on a make rule to execute
14761  # `config.status --recheck' to rerun these tests and create the
14762  # libtool script then.
14763  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14764  if test -f "$ltmain_in"; then
14765    test -f Makefile && make "$ltmain"
14766  fi
14767fi
14768
14769
14770ac_ext=c
14771ac_cpp='$CPP $CPPFLAGS'
14772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14774ac_compiler_gnu=$ac_cv_c_compiler_gnu
14775
14776CC=$lt_save_CC
14777LDCXX=$LD
14778LD=$lt_save_LD
14779GCC=$lt_save_GCC
14780with_gnu_ldcxx=$with_gnu_ld
14781with_gnu_ld=$lt_save_with_gnu_ld
14782lt_cv_path_LDCXX=$lt_cv_path_LD
14783lt_cv_path_LD=$lt_save_path_LD
14784lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14785lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14786
14787	else
14788	  tagname=""
14789	fi
14790	;;
14791
14792      F77)
14793	if test -n "$F77" && test "X$F77" != "Xno"; then
14794
14795ac_ext=f
14796ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14797ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14798ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14799
14800
14801archive_cmds_need_lc_F77=no
14802allow_undefined_flag_F77=
14803always_export_symbols_F77=no
14804archive_expsym_cmds_F77=
14805export_dynamic_flag_spec_F77=
14806hardcode_direct_F77=no
14807hardcode_libdir_flag_spec_F77=
14808hardcode_libdir_flag_spec_ld_F77=
14809hardcode_libdir_separator_F77=
14810hardcode_minus_L_F77=no
14811hardcode_automatic_F77=no
14812module_cmds_F77=
14813module_expsym_cmds_F77=
14814link_all_deplibs_F77=unknown
14815old_archive_cmds_F77=$old_archive_cmds
14816no_undefined_flag_F77=
14817whole_archive_flag_spec_F77=
14818enable_shared_with_static_runtimes_F77=no
14819
14820# Source file extension for f77 test sources.
14821ac_ext=f
14822
14823# Object file extension for compiled f77 test sources.
14824objext=o
14825objext_F77=$objext
14826
14827# Code to be used in simple compile tests
14828lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14829
14830# Code to be used in simple link tests
14831lt_simple_link_test_code="      program t\n      end\n"
14832
14833# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14834
14835# If no C compiler was specified, use CC.
14836LTCC=${LTCC-"$CC"}
14837
14838# Allow CC to be a program name with arguments.
14839compiler=$CC
14840
14841
14842# Allow CC to be a program name with arguments.
14843lt_save_CC="$CC"
14844CC=${F77-"f77"}
14845compiler=$CC
14846compiler_F77=$CC
14847cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14848
14849echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14850echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14851echo "$as_me:$LINENO: result: $can_build_shared" >&5
14852echo "${ECHO_T}$can_build_shared" >&6
14853
14854echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14855echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14856test "$can_build_shared" = "no" && enable_shared=no
14857
14858# On AIX, shared libraries and static libraries use the same namespace, and
14859# are all built from PIC.
14860case "$host_os" in
14861aix3*)
14862  test "$enable_shared" = yes && enable_static=no
14863  if test -n "$RANLIB"; then
14864    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14865    postinstall_cmds='$RANLIB $lib'
14866  fi
14867  ;;
14868aix4* | aix5*)
14869  test "$enable_shared" = yes && enable_static=no
14870  ;;
14871esac
14872echo "$as_me:$LINENO: result: $enable_shared" >&5
14873echo "${ECHO_T}$enable_shared" >&6
14874
14875echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14876echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14877# Make sure either enable_shared or enable_static is yes.
14878test "$enable_shared" = yes || enable_static=yes
14879echo "$as_me:$LINENO: result: $enable_static" >&5
14880echo "${ECHO_T}$enable_static" >&6
14881
14882test "$ld_shlibs_F77" = no && can_build_shared=no
14883
14884GCC_F77="$G77"
14885LD_F77="$LD"
14886
14887lt_prog_compiler_wl_F77=
14888lt_prog_compiler_pic_F77=
14889lt_prog_compiler_static_F77=
14890
14891echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14892echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14893
14894  if test "$GCC" = yes; then
14895    lt_prog_compiler_wl_F77='-Wl,'
14896    lt_prog_compiler_static_F77='-static'
14897
14898    case $host_os in
14899      aix*)
14900      # All AIX code is PIC.
14901      if test "$host_cpu" = ia64; then
14902	# AIX 5 now supports IA64 processor
14903	lt_prog_compiler_static_F77='-Bstatic'
14904      fi
14905      ;;
14906
14907    amigaos*)
14908      # FIXME: we need at least 68020 code to build shared libraries, but
14909      # adding the `-m68020' flag to GCC prevents building anything better,
14910      # like `-m68040'.
14911      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14912      ;;
14913
14914    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14915      # PIC is the default for these OSes.
14916      ;;
14917
14918    mingw* | pw32* | os2*)
14919      # This hack is so that the source file can tell whether it is being
14920      # built for inclusion in a dll (and should export symbols for example).
14921      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14922      ;;
14923
14924    darwin* | rhapsody*)
14925      # PIC is the default on this platform
14926      # Common symbols not allowed in MH_DYLIB files
14927      lt_prog_compiler_pic_F77='-fno-common'
14928      ;;
14929
14930    msdosdjgpp*)
14931      # Just because we use GCC doesn't mean we suddenly get shared libraries
14932      # on systems that don't support them.
14933      lt_prog_compiler_can_build_shared_F77=no
14934      enable_shared=no
14935      ;;
14936
14937    sysv4*MP*)
14938      if test -d /usr/nec; then
14939	lt_prog_compiler_pic_F77=-Kconform_pic
14940      fi
14941      ;;
14942
14943    hpux*)
14944      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14945      # not for PA HP-UX.
14946      case "$host_cpu" in
14947      hppa*64*|ia64*)
14948	# +Z the default
14949	;;
14950      *)
14951	lt_prog_compiler_pic_F77='-fPIC'
14952	;;
14953      esac
14954      ;;
14955
14956    *)
14957      lt_prog_compiler_pic_F77='-fPIC'
14958      ;;
14959    esac
14960  else
14961    # PORTME Check for flag to pass linker flags through the system compiler.
14962    case $host_os in
14963    aix*)
14964      lt_prog_compiler_wl_F77='-Wl,'
14965      if test "$host_cpu" = ia64; then
14966	# AIX 5 now supports IA64 processor
14967	lt_prog_compiler_static_F77='-Bstatic'
14968      else
14969	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14970      fi
14971      ;;
14972      darwin*)
14973        # PIC is the default on this platform
14974        # Common symbols not allowed in MH_DYLIB files
14975       case "$cc_basename" in
14976         xlc*)
14977         lt_prog_compiler_pic_F77='-qnocommon'
14978         lt_prog_compiler_wl_F77='-Wl,'
14979         ;;
14980       esac
14981       ;;
14982
14983    mingw* | pw32* | os2*)
14984      # This hack is so that the source file can tell whether it is being
14985      # built for inclusion in a dll (and should export symbols for example).
14986      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14987      ;;
14988
14989    hpux9* | hpux10* | hpux11*)
14990      lt_prog_compiler_wl_F77='-Wl,'
14991      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14992      # not for PA HP-UX.
14993      case "$host_cpu" in
14994      hppa*64*|ia64*)
14995	# +Z the default
14996	;;
14997      *)
14998	lt_prog_compiler_pic_F77='+Z'
14999	;;
15000      esac
15001      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15002      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15003      ;;
15004
15005    irix5* | irix6* | nonstopux*)
15006      lt_prog_compiler_wl_F77='-Wl,'
15007      # PIC (with -KPIC) is the default.
15008      lt_prog_compiler_static_F77='-non_shared'
15009      ;;
15010
15011    newsos6)
15012      lt_prog_compiler_pic_F77='-KPIC'
15013      lt_prog_compiler_static_F77='-Bstatic'
15014      ;;
15015
15016    linux*)
15017      case $cc_basename in
15018      icc* | ecc*)
15019	lt_prog_compiler_wl_F77='-Wl,'
15020	lt_prog_compiler_pic_F77='-KPIC'
15021	lt_prog_compiler_static_F77='-static'
15022        ;;
15023      pgcc | pgf77 | pgf90)
15024        # Portland Group compilers (*not* the Pentium gcc compiler,
15025	# which looks to be a dead project)
15026	lt_prog_compiler_wl_F77='-Wl,'
15027	lt_prog_compiler_pic_F77='-fpic'
15028	lt_prog_compiler_static_F77='-static'
15029        ;;
15030      ccc*)
15031        lt_prog_compiler_wl_F77='-Wl,'
15032        # All Alpha code is PIC.
15033        lt_prog_compiler_static_F77='-non_shared'
15034        ;;
15035      como)
15036        lt_prog_compiler_wl_F77='-lopt='
15037        ;;
15038      esac
15039      ;;
15040
15041    osf3* | osf4* | osf5*)
15042      lt_prog_compiler_wl_F77='-Wl,'
15043      # All OSF/1 code is PIC.
15044      lt_prog_compiler_static_F77='-non_shared'
15045      ;;
15046
15047    sco3.2v5*)
15048      lt_prog_compiler_pic_F77='-Kpic'
15049      lt_prog_compiler_static_F77='-dn'
15050      ;;
15051
15052    solaris*)
15053      lt_prog_compiler_wl_F77='-Wl,'
15054      lt_prog_compiler_pic_F77='-KPIC'
15055      lt_prog_compiler_static_F77='-Bstatic'
15056      ;;
15057
15058    sunos4*)
15059      lt_prog_compiler_wl_F77='-Qoption ld '
15060      lt_prog_compiler_pic_F77='-PIC'
15061      lt_prog_compiler_static_F77='-Bstatic'
15062      ;;
15063
15064    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15065      lt_prog_compiler_wl_F77='-Wl,'
15066      lt_prog_compiler_pic_F77='-KPIC'
15067      lt_prog_compiler_static_F77='-Bstatic'
15068      ;;
15069
15070    sysv4*MP*)
15071      if test -d /usr/nec ;then
15072	lt_prog_compiler_pic_F77='-Kconform_pic'
15073	lt_prog_compiler_static_F77='-Bstatic'
15074      fi
15075      ;;
15076
15077    unicos*)
15078      lt_prog_compiler_wl_F77='-Wl,'
15079      lt_prog_compiler_can_build_shared_F77=no
15080      ;;
15081
15082    uts4*)
15083      lt_prog_compiler_pic_F77='-pic'
15084      lt_prog_compiler_static_F77='-Bstatic'
15085      ;;
15086
15087    *)
15088      lt_prog_compiler_can_build_shared_F77=no
15089      ;;
15090    esac
15091  fi
15092
15093echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15094echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15095
15096#
15097# Check to make sure the PIC flag actually works.
15098#
15099if test -n "$lt_prog_compiler_pic_F77"; then
15100
15101echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15102echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15103if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15104  echo $ECHO_N "(cached) $ECHO_C" >&6
15105else
15106  lt_prog_compiler_pic_works_F77=no
15107  ac_outfile=conftest.$ac_objext
15108   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15109   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15110   # Insert the option either (1) after the last *FLAGS variable, or
15111   # (2) before a word containing "conftest.", or (3) at the end.
15112   # Note that $ac_compile itself does not contain backslashes and begins
15113   # with a dollar sign (not a hyphen), so the echo should work correctly.
15114   # The option is referenced via a variable to avoid confusing sed.
15115   lt_compile=`echo "$ac_compile" | $SED \
15116   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15117   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15118   -e 's:$: $lt_compiler_flag:'`
15119   (eval echo "\"\$as_me:15119: $lt_compile\"" >&5)
15120   (eval "$lt_compile" 2>conftest.err)
15121   ac_status=$?
15122   cat conftest.err >&5
15123   echo "$as_me:15123: \$? = $ac_status" >&5
15124   if (exit $ac_status) && test -s "$ac_outfile"; then
15125     # The compiler can only warn and ignore the option if not recognized
15126     # So say no if there are warnings
15127     if test ! -s conftest.err; then
15128       lt_prog_compiler_pic_works_F77=yes
15129     fi
15130   fi
15131   $rm conftest*
15132
15133fi
15134echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15135echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15136
15137if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15138    case $lt_prog_compiler_pic_F77 in
15139     "" | " "*) ;;
15140     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15141     esac
15142else
15143    lt_prog_compiler_pic_F77=
15144     lt_prog_compiler_can_build_shared_F77=no
15145fi
15146
15147fi
15148case "$host_os" in
15149  # For platforms which do not support PIC, -DPIC is meaningless:
15150  *djgpp*)
15151    lt_prog_compiler_pic_F77=
15152    ;;
15153  *)
15154    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15155    ;;
15156esac
15157
15158echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15159echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15160if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15161  echo $ECHO_N "(cached) $ECHO_C" >&6
15162else
15163  lt_cv_prog_compiler_c_o_F77=no
15164   $rm -r conftest 2>/dev/null
15165   mkdir conftest
15166   cd conftest
15167   mkdir out
15168   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15169
15170   lt_compiler_flag="-o out/conftest2.$ac_objext"
15171   # Insert the option either (1) after the last *FLAGS variable, or
15172   # (2) before a word containing "conftest.", or (3) at the end.
15173   # Note that $ac_compile itself does not contain backslashes and begins
15174   # with a dollar sign (not a hyphen), so the echo should work correctly.
15175   lt_compile=`echo "$ac_compile" | $SED \
15176   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15177   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15178   -e 's:$: $lt_compiler_flag:'`
15179   (eval echo "\"\$as_me:15179: $lt_compile\"" >&5)
15180   (eval "$lt_compile" 2>out/conftest.err)
15181   ac_status=$?
15182   cat out/conftest.err >&5
15183   echo "$as_me:15183: \$? = $ac_status" >&5
15184   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15185   then
15186     # The compiler can only warn and ignore the option if not recognized
15187     # So say no if there are warnings
15188     if test ! -s out/conftest.err; then
15189       lt_cv_prog_compiler_c_o_F77=yes
15190     fi
15191   fi
15192   chmod u+w .
15193   $rm conftest*
15194   # SGI C++ compiler will create directory out/ii_files/ for
15195   # template instantiation
15196   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15197   $rm out/* && rmdir out
15198   cd ..
15199   rmdir conftest
15200   $rm conftest*
15201
15202fi
15203echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15204echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15205
15206
15207hard_links="nottested"
15208if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15209  # do not overwrite the value of need_locks provided by the user
15210  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15211echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15212  hard_links=yes
15213  $rm conftest*
15214  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15215  touch conftest.a
15216  ln conftest.a conftest.b 2>&5 || hard_links=no
15217  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15218  echo "$as_me:$LINENO: result: $hard_links" >&5
15219echo "${ECHO_T}$hard_links" >&6
15220  if test "$hard_links" = no; then
15221    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15222echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15223    need_locks=warn
15224  fi
15225else
15226  need_locks=no
15227fi
15228
15229echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15230echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15231
15232  runpath_var=
15233  allow_undefined_flag_F77=
15234  enable_shared_with_static_runtimes_F77=no
15235  archive_cmds_F77=
15236  archive_expsym_cmds_F77=
15237  old_archive_From_new_cmds_F77=
15238  old_archive_from_expsyms_cmds_F77=
15239  export_dynamic_flag_spec_F77=
15240  whole_archive_flag_spec_F77=
15241  thread_safe_flag_spec_F77=
15242  hardcode_libdir_flag_spec_F77=
15243  hardcode_libdir_flag_spec_ld_F77=
15244  hardcode_libdir_separator_F77=
15245  hardcode_direct_F77=no
15246  hardcode_minus_L_F77=no
15247  hardcode_shlibpath_var_F77=unsupported
15248  link_all_deplibs_F77=unknown
15249  hardcode_automatic_F77=no
15250  module_cmds_F77=
15251  module_expsym_cmds_F77=
15252  always_export_symbols_F77=no
15253  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15254  # include_expsyms should be a list of space-separated symbols to be *always*
15255  # included in the symbol list
15256  include_expsyms_F77=
15257  # exclude_expsyms can be an extended regexp of symbols to exclude
15258  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15259  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15260  # as well as any symbol that contains `d'.
15261  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15262  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15263  # platforms (ab)use it in PIC code, but their linkers get confused if
15264  # the symbol is explicitly referenced.  Since portable code cannot
15265  # rely on this symbol name, it's probably fine to never include it in
15266  # preloaded symbol tables.
15267  extract_expsyms_cmds=
15268
15269  case $host_os in
15270  cygwin* | mingw* | pw32*)
15271    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15272    # When not using gcc, we currently assume that we are using
15273    # Microsoft Visual C++.
15274    if test "$GCC" != yes; then
15275      with_gnu_ld=no
15276    fi
15277    ;;
15278  openbsd*)
15279    with_gnu_ld=no
15280    ;;
15281  esac
15282
15283  ld_shlibs_F77=yes
15284  if test "$with_gnu_ld" = yes; then
15285    # If archive_cmds runs LD, not CC, wlarc should be empty
15286    wlarc='${wl}'
15287
15288    # See if GNU ld supports shared libraries.
15289    case $host_os in
15290    aix3* | aix4* | aix5*)
15291      # On AIX/PPC, the GNU linker is very broken
15292      if test "$host_cpu" != ia64; then
15293	ld_shlibs_F77=no
15294	cat <<EOF 1>&2
15295
15296*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15297*** to be unable to reliably create shared libraries on AIX.
15298*** Therefore, libtool is disabling shared libraries support.  If you
15299*** really care for shared libraries, you may want to modify your PATH
15300*** so that a non-GNU linker is found, and then restart.
15301
15302EOF
15303      fi
15304      ;;
15305
15306    amigaos*)
15307      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15308      hardcode_libdir_flag_spec_F77='-L$libdir'
15309      hardcode_minus_L_F77=yes
15310
15311      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15312      # that the semantics of dynamic libraries on AmigaOS, at least up
15313      # to version 4, is to share data among multiple programs linked
15314      # with the same dynamic library.  Since this doesn't match the
15315      # behavior of shared libraries on other platforms, we can't use
15316      # them.
15317      ld_shlibs_F77=no
15318      ;;
15319
15320    beos*)
15321      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15322	allow_undefined_flag_F77=unsupported
15323	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15324	# support --undefined.  This deserves some investigation.  FIXME
15325	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15326      else
15327	ld_shlibs_F77=no
15328      fi
15329      ;;
15330
15331    cygwin* | mingw* | pw32*)
15332      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15333      # as there is no search path for DLLs.
15334      hardcode_libdir_flag_spec_F77='-L$libdir'
15335      allow_undefined_flag_F77=unsupported
15336      always_export_symbols_F77=no
15337      enable_shared_with_static_runtimes_F77=yes
15338      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15339
15340      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15341        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15342	# If the export-symbols file already is a .def file (1st line
15343	# is EXPORTS), use it as is; otherwise, prepend...
15344	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15345	  cp $export_symbols $output_objdir/$soname.def;
15346	else
15347	  echo EXPORTS > $output_objdir/$soname.def;
15348	  cat $export_symbols >> $output_objdir/$soname.def;
15349	fi~
15350	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15351      else
15352	ld_shlibs_F77=no
15353      fi
15354      ;;
15355
15356    netbsd*)
15357      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15358	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15359	wlarc=
15360      else
15361	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15362	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15363      fi
15364      ;;
15365
15366    solaris* | sysv5*)
15367      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15368	ld_shlibs_F77=no
15369	cat <<EOF 1>&2
15370
15371*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15372*** create shared libraries on Solaris systems.  Therefore, libtool
15373*** is disabling shared libraries support.  We urge you to upgrade GNU
15374*** binutils to release 2.9.1 or newer.  Another option is to modify
15375*** your PATH or compiler configuration so that the native linker is
15376*** used, and then restart.
15377
15378EOF
15379      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15380	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15381	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15382      else
15383	ld_shlibs_F77=no
15384      fi
15385      ;;
15386
15387    sunos4*)
15388      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15389      wlarc=
15390      hardcode_direct_F77=yes
15391      hardcode_shlibpath_var_F77=no
15392      ;;
15393
15394  linux*)
15395    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15396      tmp_addflag=
15397      case $CC,$host_cpu in
15398      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
15399        tmp_addflag=' -fpic' ;;
15400      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15401        tmp_addflag=' -i_dynamic' ;;
15402      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15403        tmp_addflag=' -i_dynamic -nofor_main' ;;
15404      ifc* | ifort*)			# Intel Fortran compiler
15405      	tmp_addflag=' -nofor_main' ;;
15406      esac
15407      archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408      supports_anon_versioning=no
15409      case `$LD -v 2>/dev/null` in
15410        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15411        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15412        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15413        *\ 2.11.*) ;; # other 2.11 versions
15414        *) supports_anon_versioning=yes ;;
15415      esac
15416      if test $supports_anon_versioning = yes; then
15417        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15418cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15419$echo "local: *; };" >> $output_objdir/$libname.ver~
15420        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15421      else
15422        archive_expsym_cmds_F77=$archive_cmds_F77
15423      fi
15424    else
15425      ld_shlibs_F77=no
15426    fi
15427    ;;
15428
15429    *)
15430      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15431	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15433      else
15434	ld_shlibs_F77=no
15435      fi
15436      ;;
15437    esac
15438
15439    if test "$ld_shlibs_F77" = yes; then
15440      runpath_var=LD_RUN_PATH
15441      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15442      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15443      # ancient GNU ld didn't support --whole-archive et. al.
15444      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15445 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15446      else
15447  	whole_archive_flag_spec_F77=
15448      fi
15449    fi
15450  else
15451    # PORTME fill in a description of your system's linker (not GNU ld)
15452    case $host_os in
15453    aix3*)
15454      allow_undefined_flag_F77=unsupported
15455      always_export_symbols_F77=yes
15456      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15457      # Note: this linker hardcodes the directories in LIBPATH if there
15458      # are no directories specified by -L.
15459      hardcode_minus_L_F77=yes
15460      if test "$GCC" = yes && test -z "$link_static_flag"; then
15461	# Neither direct hardcoding nor static linking is supported with a
15462	# broken collect2.
15463	hardcode_direct_F77=unsupported
15464      fi
15465      ;;
15466
15467    aix4* | aix5*)
15468      if test "$host_cpu" = ia64; then
15469	# On IA64, the linker does run time linking by default, so we don't
15470	# have to do anything special.
15471	aix_use_runtimelinking=no
15472	exp_sym_flag='-Bexport'
15473	no_entry_flag=""
15474      else
15475	# If we're using GNU nm, then we don't want the "-C" option.
15476	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15477	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15478	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15479	else
15480	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15481	fi
15482	aix_use_runtimelinking=no
15483
15484	# Test if we are trying to use run time linking or normal
15485	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15486	# need to do runtime linking.
15487	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15488	  for ld_flag in $LDFLAGS; do
15489  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15490  	    aix_use_runtimelinking=yes
15491  	    break
15492  	  fi
15493	  done
15494	esac
15495
15496	exp_sym_flag='-bexport'
15497	no_entry_flag='-bnoentry'
15498      fi
15499
15500      # When large executables or shared objects are built, AIX ld can
15501      # have problems creating the table of contents.  If linking a library
15502      # or program results in "error TOC overflow" add -mminimal-toc to
15503      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15504      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15505
15506      archive_cmds_F77=''
15507      hardcode_direct_F77=yes
15508      hardcode_libdir_separator_F77=':'
15509      link_all_deplibs_F77=yes
15510
15511      if test "$GCC" = yes; then
15512	case $host_os in aix4.[012]|aix4.[012].*)
15513	# We only want to do this on AIX 4.2 and lower, the check
15514	# below for broken collect2 doesn't work under 4.3+
15515	  collect2name=`${CC} -print-prog-name=collect2`
15516	  if test -f "$collect2name" && \
15517  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15518	  then
15519  	  # We have reworked collect2
15520  	  hardcode_direct_F77=yes
15521	  else
15522  	  # We have old collect2
15523  	  hardcode_direct_F77=unsupported
15524  	  # It fails to find uninstalled libraries when the uninstalled
15525  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15526  	  # to unsupported forces relinking
15527  	  hardcode_minus_L_F77=yes
15528  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15529  	  hardcode_libdir_separator_F77=
15530	  fi
15531	esac
15532	shared_flag='-shared'
15533	if test "$aix_use_runtimelinking" = yes; then
15534	  shared_flag="$shared_flag "'${wl}-G'
15535	fi
15536      else
15537	# not using gcc
15538	if test "$host_cpu" = ia64; then
15539  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15540  	# chokes on -Wl,-G. The following line is correct:
15541	  shared_flag='-G'
15542	else
15543  	if test "$aix_use_runtimelinking" = yes; then
15544	    shared_flag='${wl}-G'
15545	  else
15546	    shared_flag='${wl}-bM:SRE'
15547  	fi
15548	fi
15549      fi
15550
15551      # It seems that -bexpall does not export symbols beginning with
15552      # underscore (_), so it is better to generate a list of symbols to export.
15553      always_export_symbols_F77=yes
15554      if test "$aix_use_runtimelinking" = yes; then
15555	# Warning - without using the other runtime loading flags (-brtl),
15556	# -berok will link without error, but may produce a broken library.
15557	allow_undefined_flag_F77='-berok'
15558       # Determine the default libpath from the value encoded in an empty executable.
15559       cat >conftest.$ac_ext <<_ACEOF
15560      program main
15561
15562      end
15563_ACEOF
15564rm -f conftest.$ac_objext conftest$ac_exeext
15565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15566  (eval $ac_link) 2>conftest.er1
15567  ac_status=$?
15568  grep -v '^ *+' conftest.er1 >conftest.err
15569  rm -f conftest.er1
15570  cat conftest.err >&5
15571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572  (exit $ac_status); } &&
15573	 { ac_try='test -z "$ac_f77_werror_flag"
15574			 || test ! -s conftest.err'
15575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576  (eval $ac_try) 2>&5
15577  ac_status=$?
15578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579  (exit $ac_status); }; } &&
15580	 { ac_try='test -s conftest$ac_exeext'
15581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582  (eval $ac_try) 2>&5
15583  ac_status=$?
15584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585  (exit $ac_status); }; }; then
15586
15587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15588}'`
15589# Check for a 64-bit object if we didn't find anything.
15590if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15591}'`; fi
15592else
15593  echo "$as_me: failed program was:" >&5
15594sed 's/^/| /' conftest.$ac_ext >&5
15595
15596fi
15597rm -f conftest.err conftest.$ac_objext \
15598      conftest$ac_exeext conftest.$ac_ext
15599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15600
15601       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15602	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15603       else
15604	if test "$host_cpu" = ia64; then
15605	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15606	  allow_undefined_flag_F77="-z nodefs"
15607	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15608	else
15609	 # Determine the default libpath from the value encoded in an empty executable.
15610	 cat >conftest.$ac_ext <<_ACEOF
15611      program main
15612
15613      end
15614_ACEOF
15615rm -f conftest.$ac_objext conftest$ac_exeext
15616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617  (eval $ac_link) 2>conftest.er1
15618  ac_status=$?
15619  grep -v '^ *+' conftest.er1 >conftest.err
15620  rm -f conftest.er1
15621  cat conftest.err >&5
15622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623  (exit $ac_status); } &&
15624	 { ac_try='test -z "$ac_f77_werror_flag"
15625			 || test ! -s conftest.err'
15626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627  (eval $ac_try) 2>&5
15628  ac_status=$?
15629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630  (exit $ac_status); }; } &&
15631	 { ac_try='test -s conftest$ac_exeext'
15632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633  (eval $ac_try) 2>&5
15634  ac_status=$?
15635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636  (exit $ac_status); }; }; then
15637
15638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15639}'`
15640# Check for a 64-bit object if we didn't find anything.
15641if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15642}'`; fi
15643else
15644  echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647fi
15648rm -f conftest.err conftest.$ac_objext \
15649      conftest$ac_exeext conftest.$ac_ext
15650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15651
15652	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15653	  # Warning - without using the other run time loading flags,
15654	  # -berok will link without error, but may produce a broken library.
15655	  no_undefined_flag_F77=' ${wl}-bernotok'
15656	  allow_undefined_flag_F77=' ${wl}-berok'
15657	  # -bexpall does not export symbols beginning with underscore (_)
15658	  always_export_symbols_F77=yes
15659	  # Exported symbols can be pulled into shared objects from archives
15660	  whole_archive_flag_spec_F77=' '
15661	  archive_cmds_need_lc_F77=yes
15662	  # This is similar to how AIX traditionally builds it's shared libraries.
15663	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15664	fi
15665      fi
15666      ;;
15667
15668    amigaos*)
15669      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15670      hardcode_libdir_flag_spec_F77='-L$libdir'
15671      hardcode_minus_L_F77=yes
15672      # see comment about different semantics on the GNU ld section
15673      ld_shlibs_F77=no
15674      ;;
15675
15676    bsdi[45]*)
15677      export_dynamic_flag_spec_F77=-rdynamic
15678      ;;
15679
15680    cygwin* | mingw* | pw32*)
15681      # When not using gcc, we currently assume that we are using
15682      # Microsoft Visual C++.
15683      # hardcode_libdir_flag_spec is actually meaningless, as there is
15684      # no search path for DLLs.
15685      hardcode_libdir_flag_spec_F77=' '
15686      allow_undefined_flag_F77=unsupported
15687      # Tell ltmain to make .lib files, not .a files.
15688      libext=lib
15689      # Tell ltmain to make .dll files, not .so files.
15690      shrext_cmds=".dll"
15691      # FIXME: Setting linknames here is a bad hack.
15692      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15693      # The linker will automatically build a .lib file if we build a DLL.
15694      old_archive_From_new_cmds_F77='true'
15695      # FIXME: Should let the user specify the lib program.
15696      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15697      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15698      enable_shared_with_static_runtimes_F77=yes
15699      ;;
15700
15701    darwin* | rhapsody*)
15702      case "$host_os" in
15703        rhapsody* | darwin1.[012])
15704         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15705         ;;
15706       *) # Darwin 1.3 on
15707         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15708           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15709         else
15710           case ${MACOSX_DEPLOYMENT_TARGET} in
15711             10.[012])
15712               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15713               ;;
15714             10.*)
15715               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15716               ;;
15717           esac
15718         fi
15719         ;;
15720      esac
15721      archive_cmds_need_lc_F77=no
15722      hardcode_direct_F77=no
15723      hardcode_automatic_F77=yes
15724      hardcode_shlibpath_var_F77=unsupported
15725      whole_archive_flag_spec_F77=''
15726      link_all_deplibs_F77=yes
15727    if test "$GCC" = yes ; then
15728    	output_verbose_link_cmd='echo'
15729        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15730      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15731      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15732      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15733      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15734    else
15735      case "$cc_basename" in
15736        xlc*)
15737         output_verbose_link_cmd='echo'
15738         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15739         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15740          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15741         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15742          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15743          ;;
15744       *)
15745         ld_shlibs_F77=no
15746          ;;
15747      esac
15748    fi
15749      ;;
15750
15751    dgux*)
15752      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753      hardcode_libdir_flag_spec_F77='-L$libdir'
15754      hardcode_shlibpath_var_F77=no
15755      ;;
15756
15757    freebsd1*)
15758      ld_shlibs_F77=no
15759      ;;
15760
15761    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15762    # support.  Future versions do this automatically, but an explicit c++rt0.o
15763    # does not break anything, and helps significantly (at the cost of a little
15764    # extra space).
15765    freebsd2.2*)
15766      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15767      hardcode_libdir_flag_spec_F77='-R$libdir'
15768      hardcode_direct_F77=yes
15769      hardcode_shlibpath_var_F77=no
15770      ;;
15771
15772    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15773    freebsd2*)
15774      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15775      hardcode_direct_F77=yes
15776      hardcode_minus_L_F77=yes
15777      hardcode_shlibpath_var_F77=no
15778      ;;
15779
15780    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15781    freebsd* | kfreebsd*-gnu | dragonfly*)
15782      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15783      hardcode_libdir_flag_spec_F77='-R$libdir'
15784      hardcode_direct_F77=yes
15785      hardcode_shlibpath_var_F77=no
15786      ;;
15787
15788    hpux9*)
15789      if test "$GCC" = yes; then
15790	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15791      else
15792	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15793      fi
15794      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15795      hardcode_libdir_separator_F77=:
15796      hardcode_direct_F77=yes
15797
15798      # hardcode_minus_L: Not really in the search PATH,
15799      # but as the default location of the library.
15800      hardcode_minus_L_F77=yes
15801      export_dynamic_flag_spec_F77='${wl}-E'
15802      ;;
15803
15804    hpux10* | hpux11*)
15805      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15806	case "$host_cpu" in
15807	hppa*64*|ia64*)
15808	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15809	  ;;
15810	*)
15811	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15812	  ;;
15813	esac
15814      else
15815	case "$host_cpu" in
15816	hppa*64*|ia64*)
15817	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15818	  ;;
15819	*)
15820	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15821	  ;;
15822	esac
15823      fi
15824      if test "$with_gnu_ld" = no; then
15825	case "$host_cpu" in
15826	hppa*64*)
15827	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15828	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15829	  hardcode_libdir_separator_F77=:
15830	  hardcode_direct_F77=no
15831	  hardcode_shlibpath_var_F77=no
15832	  ;;
15833	ia64*)
15834	  hardcode_libdir_flag_spec_F77='-L$libdir'
15835	  hardcode_direct_F77=no
15836	  hardcode_shlibpath_var_F77=no
15837
15838	  # hardcode_minus_L: Not really in the search PATH,
15839	  # but as the default location of the library.
15840	  hardcode_minus_L_F77=yes
15841	  ;;
15842	*)
15843	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15844	  hardcode_libdir_separator_F77=:
15845	  hardcode_direct_F77=yes
15846	  export_dynamic_flag_spec_F77='${wl}-E'
15847
15848	  # hardcode_minus_L: Not really in the search PATH,
15849	  # but as the default location of the library.
15850	  hardcode_minus_L_F77=yes
15851	  ;;
15852	esac
15853      fi
15854      ;;
15855
15856    irix5* | irix6* | nonstopux*)
15857      if test "$GCC" = yes; then
15858	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15859      else
15860	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15861	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15862      fi
15863      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15864      hardcode_libdir_separator_F77=:
15865      link_all_deplibs_F77=yes
15866      ;;
15867
15868    netbsd*)
15869      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15870	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15871      else
15872	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15873      fi
15874      hardcode_libdir_flag_spec_F77='-R$libdir'
15875      hardcode_direct_F77=yes
15876      hardcode_shlibpath_var_F77=no
15877      ;;
15878
15879    newsos6)
15880      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881      hardcode_direct_F77=yes
15882      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15883      hardcode_libdir_separator_F77=:
15884      hardcode_shlibpath_var_F77=no
15885      ;;
15886
15887    openbsd*)
15888      hardcode_direct_F77=yes
15889      hardcode_shlibpath_var_F77=no
15890      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15891	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15892	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15893	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15894	export_dynamic_flag_spec_F77='${wl}-E'
15895      else
15896       case $host_os in
15897	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15898	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15899	   hardcode_libdir_flag_spec_F77='-R$libdir'
15900	   ;;
15901	 *)
15902	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15903	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15904	   ;;
15905       esac
15906      fi
15907      ;;
15908
15909    os2*)
15910      hardcode_libdir_flag_spec_F77='-L$libdir'
15911      hardcode_minus_L_F77=yes
15912      allow_undefined_flag_F77=unsupported
15913      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15914      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15915      ;;
15916
15917    osf3*)
15918      if test "$GCC" = yes; then
15919	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15920	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15921      else
15922	allow_undefined_flag_F77=' -expect_unresolved \*'
15923	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15924      fi
15925      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15926      hardcode_libdir_separator_F77=:
15927      ;;
15928
15929    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15930      if test "$GCC" = yes; then
15931	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15932	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15933	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15934      else
15935	allow_undefined_flag_F77=' -expect_unresolved \*'
15936	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15937	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15938	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15939
15940	# Both c and cxx compiler support -rpath directly
15941	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15942      fi
15943      hardcode_libdir_separator_F77=:
15944      ;;
15945
15946    sco3.2v5*)
15947      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948      hardcode_shlibpath_var_F77=no
15949      export_dynamic_flag_spec_F77='${wl}-Bexport'
15950      runpath_var=LD_RUN_PATH
15951      hardcode_runpath_var=yes
15952      ;;
15953
15954    solaris*)
15955      no_undefined_flag_F77=' -z text'
15956      if test "$GCC" = yes; then
15957	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15958	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15959	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15960      else
15961	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15962	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15963  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15964      fi
15965      hardcode_libdir_flag_spec_F77='-R$libdir'
15966      hardcode_shlibpath_var_F77=no
15967      case $host_os in
15968      solaris2.[0-5] | solaris2.[0-5].*) ;;
15969      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15970	whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
15971      esac
15972      link_all_deplibs_F77=yes
15973      ;;
15974
15975    sunos4*)
15976      if test "x$host_vendor" = xsequent; then
15977	# Use $CC to link under sequent, because it throws in some extra .o
15978	# files that make .init and .fini sections work.
15979	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15980      else
15981	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15982      fi
15983      hardcode_libdir_flag_spec_F77='-L$libdir'
15984      hardcode_direct_F77=yes
15985      hardcode_minus_L_F77=yes
15986      hardcode_shlibpath_var_F77=no
15987      ;;
15988
15989    sysv4)
15990      case $host_vendor in
15991	sni)
15992	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993	  hardcode_direct_F77=yes # is this really true???
15994	;;
15995	siemens)
15996	  ## LD is ld it makes a PLAMLIB
15997	  ## CC just makes a GrossModule.
15998	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15999	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16000	  hardcode_direct_F77=no
16001        ;;
16002	motorola)
16003	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16004	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16005	;;
16006      esac
16007      runpath_var='LD_RUN_PATH'
16008      hardcode_shlibpath_var_F77=no
16009      ;;
16010
16011    sysv4.3*)
16012      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16013      hardcode_shlibpath_var_F77=no
16014      export_dynamic_flag_spec_F77='-Bexport'
16015      ;;
16016
16017    sysv4*MP*)
16018      if test -d /usr/nec; then
16019	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020	hardcode_shlibpath_var_F77=no
16021	runpath_var=LD_RUN_PATH
16022	hardcode_runpath_var=yes
16023	ld_shlibs_F77=yes
16024      fi
16025      ;;
16026
16027    sysv4.2uw2*)
16028      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16029      hardcode_direct_F77=yes
16030      hardcode_minus_L_F77=no
16031      hardcode_shlibpath_var_F77=no
16032      hardcode_runpath_var=yes
16033      runpath_var=LD_RUN_PATH
16034      ;;
16035
16036   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16037      no_undefined_flag_F77='${wl}-z ${wl}text'
16038      if test "$GCC" = yes; then
16039	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040      else
16041	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16042      fi
16043      runpath_var='LD_RUN_PATH'
16044      hardcode_shlibpath_var_F77=no
16045      ;;
16046
16047    sysv5*)
16048      no_undefined_flag_F77=' -z text'
16049      # $CC -shared without GNU ld will not create a library from C++
16050      # object files and a static libstdc++, better avoid it by now
16051      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16052      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16053  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16054      hardcode_libdir_flag_spec_F77=
16055      hardcode_shlibpath_var_F77=no
16056      runpath_var='LD_RUN_PATH'
16057      ;;
16058
16059    uts4*)
16060      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061      hardcode_libdir_flag_spec_F77='-L$libdir'
16062      hardcode_shlibpath_var_F77=no
16063      ;;
16064
16065    *)
16066      ld_shlibs_F77=no
16067      ;;
16068    esac
16069  fi
16070
16071echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16072echo "${ECHO_T}$ld_shlibs_F77" >&6
16073test "$ld_shlibs_F77" = no && can_build_shared=no
16074
16075variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16076if test "$GCC" = yes; then
16077  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16078fi
16079
16080#
16081# Do we need to explicitly link libc?
16082#
16083case "x$archive_cmds_need_lc_F77" in
16084x|xyes)
16085  # Assume -lc should be added
16086  archive_cmds_need_lc_F77=yes
16087
16088  if test "$enable_shared" = yes && test "$GCC" = yes; then
16089    case $archive_cmds_F77 in
16090    *'~'*)
16091      # FIXME: we may have to deal with multi-command sequences.
16092      ;;
16093    '$CC '*)
16094      # Test whether the compiler implicitly links with -lc since on some
16095      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16096      # to ld, don't add -lc before -lgcc.
16097      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16098echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16099      $rm conftest*
16100      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16101
16102      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16103  (eval $ac_compile) 2>&5
16104  ac_status=$?
16105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106  (exit $ac_status); } 2>conftest.err; then
16107        soname=conftest
16108        lib=conftest
16109        libobjs=conftest.$ac_objext
16110        deplibs=
16111        wl=$lt_prog_compiler_wl_F77
16112        compiler_flags=-v
16113        linker_flags=-v
16114        verstring=
16115        output_objdir=.
16116        libname=conftest
16117        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16118        allow_undefined_flag_F77=
16119        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16120  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16121  ac_status=$?
16122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123  (exit $ac_status); }
16124        then
16125	  archive_cmds_need_lc_F77=no
16126        else
16127	  archive_cmds_need_lc_F77=yes
16128        fi
16129        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16130      else
16131        cat conftest.err 1>&5
16132      fi
16133      $rm conftest*
16134      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16135echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16136      ;;
16137    esac
16138  fi
16139  ;;
16140esac
16141
16142echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16143echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16144library_names_spec=
16145libname_spec='lib$name'
16146soname_spec=
16147shrext_cmds=".so"
16148postinstall_cmds=
16149postuninstall_cmds=
16150finish_cmds=
16151finish_eval=
16152shlibpath_var=
16153shlibpath_overrides_runpath=unknown
16154version_type=none
16155dynamic_linker="$host_os ld.so"
16156sys_lib_dlsearch_path_spec="/lib /usr/lib"
16157if test "$GCC" = yes; then
16158  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16159  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16160    # if the path contains ";" then we assume it to be the separator
16161    # otherwise default to the standard path separator (i.e. ":") - it is
16162    # assumed that no part of a normal pathname contains ";" but that should
16163    # okay in the real world where ";" in dirpaths is itself problematic.
16164    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16165  else
16166    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16167  fi
16168else
16169  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16170fi
16171need_lib_prefix=unknown
16172hardcode_into_libs=no
16173
16174# when you set need_version to no, make sure it does not cause -set_version
16175# flags to be left without arguments
16176need_version=unknown
16177
16178case $host_os in
16179aix3*)
16180  version_type=linux
16181  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16182  shlibpath_var=LIBPATH
16183
16184  # AIX 3 has no versioning support, so we append a major version to the name.
16185  soname_spec='${libname}${release}${shared_ext}$major'
16186  ;;
16187
16188aix4* | aix5*)
16189  version_type=linux
16190  need_lib_prefix=no
16191  need_version=no
16192  hardcode_into_libs=yes
16193  if test "$host_cpu" = ia64; then
16194    # AIX 5 supports IA64
16195    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16196    shlibpath_var=LD_LIBRARY_PATH
16197  else
16198    # With GCC up to 2.95.x, collect2 would create an import file
16199    # for dependence libraries.  The import file would start with
16200    # the line `#! .'.  This would cause the generated library to
16201    # depend on `.', always an invalid library.  This was fixed in
16202    # development snapshots of GCC prior to 3.0.
16203    case $host_os in
16204      aix4 | aix4.[01] | aix4.[01].*)
16205      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16206	   echo ' yes '
16207	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16208	:
16209      else
16210	can_build_shared=no
16211      fi
16212      ;;
16213    esac
16214    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16215    # soname into executable. Probably we can add versioning support to
16216    # collect2, so additional links can be useful in future.
16217    if test "$aix_use_runtimelinking" = yes; then
16218      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16219      # instead of lib<name>.a to let people know that these are not
16220      # typical AIX shared libraries.
16221      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222    else
16223      # We preserve .a as extension for shared libraries through AIX4.2
16224      # and later when we are not doing run time linking.
16225      library_names_spec='${libname}${release}.a $libname.a'
16226      soname_spec='${libname}${release}${shared_ext}$major'
16227    fi
16228    shlibpath_var=LIBPATH
16229  fi
16230  ;;
16231
16232amigaos*)
16233  library_names_spec='$libname.ixlibrary $libname.a'
16234  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16235  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16236  ;;
16237
16238beos*)
16239  library_names_spec='${libname}${shared_ext}'
16240  dynamic_linker="$host_os ld.so"
16241  shlibpath_var=LIBRARY_PATH
16242  ;;
16243
16244bsdi[45]*)
16245  version_type=linux
16246  need_version=no
16247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248  soname_spec='${libname}${release}${shared_ext}$major'
16249  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16250  shlibpath_var=LD_LIBRARY_PATH
16251  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16252  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16253  # the default ld.so.conf also contains /usr/contrib/lib and
16254  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16255  # libtool to hard-code these into programs
16256  ;;
16257
16258cygwin* | mingw* | pw32*)
16259  version_type=windows
16260  shrext_cmds=".dll"
16261  need_version=no
16262  need_lib_prefix=no
16263
16264  case $GCC,$host_os in
16265  yes,cygwin* | yes,mingw* | yes,pw32*)
16266    library_names_spec='$libname.dll.a'
16267    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16268    postinstall_cmds='base_file=`basename \${file}`~
16269      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16270      dldir=$destdir/`dirname \$dlpath`~
16271      test -d \$dldir || mkdir -p \$dldir~
16272      $install_prog $dir/$dlname \$dldir/$dlname'
16273    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16274      dlpath=$dir/\$dldll~
16275       $rm \$dlpath'
16276    shlibpath_overrides_runpath=yes
16277
16278    case $host_os in
16279    cygwin*)
16280      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16281      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16282      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16283      ;;
16284    mingw*)
16285      # MinGW DLLs use traditional 'lib' prefix
16286      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16287      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16288      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16289        # It is most probably a Windows format PATH printed by
16290        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16291        # path with ; separators, and with drive letters. We can handle the
16292        # drive letters (cygwin fileutils understands them), so leave them,
16293        # especially as we might pass files found there to a mingw objdump,
16294        # which wouldn't understand a cygwinified path. Ahh.
16295        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16296      else
16297        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16298      fi
16299      ;;
16300    pw32*)
16301      # pw32 DLLs use 'pw' prefix rather than 'lib'
16302      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16303      ;;
16304    esac
16305    ;;
16306
16307  *)
16308    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16309    ;;
16310  esac
16311  dynamic_linker='Win32 ld.exe'
16312  # FIXME: first we should search . and the directory the executable is in
16313  shlibpath_var=PATH
16314  ;;
16315
16316darwin* | rhapsody*)
16317  dynamic_linker="$host_os dyld"
16318  version_type=darwin
16319  need_lib_prefix=no
16320  need_version=no
16321  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16322  soname_spec='${libname}${release}${major}$shared_ext'
16323  shlibpath_overrides_runpath=yes
16324  shlibpath_var=DYLD_LIBRARY_PATH
16325  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16326  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16327  if test "$GCC" = yes; then
16328    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16329  else
16330    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16331  fi
16332  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16333  ;;
16334
16335dgux*)
16336  version_type=linux
16337  need_lib_prefix=no
16338  need_version=no
16339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16340  soname_spec='${libname}${release}${shared_ext}$major'
16341  shlibpath_var=LD_LIBRARY_PATH
16342  ;;
16343
16344freebsd1*)
16345  dynamic_linker=no
16346  ;;
16347
16348kfreebsd*-gnu)
16349  version_type=linux
16350  need_lib_prefix=no
16351  need_version=no
16352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16353  soname_spec='${libname}${release}${shared_ext}$major'
16354  shlibpath_var=LD_LIBRARY_PATH
16355  shlibpath_overrides_runpath=no
16356  hardcode_into_libs=yes
16357  dynamic_linker='GNU ld.so'
16358  ;;
16359
16360freebsd* | dragonfly*)
16361  # DragonFly does not have aout.  When/if they implement a new
16362  # versioning mechanism, adjust this.
16363  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16364  version_type=freebsd-$objformat
16365  case $version_type in
16366    freebsd-elf*)
16367      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16368      need_version=no
16369      need_lib_prefix=no
16370      ;;
16371    freebsd-*)
16372      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16373      need_version=yes
16374      ;;
16375  esac
16376  shlibpath_var=LD_LIBRARY_PATH
16377  case $host_os in
16378  freebsd2*)
16379    shlibpath_overrides_runpath=yes
16380    ;;
16381  freebsd3.[01]* | freebsdelf3.[01]*)
16382    shlibpath_overrides_runpath=yes
16383    hardcode_into_libs=yes
16384    ;;
16385  *) # from 3.2 on
16386    shlibpath_overrides_runpath=no
16387    hardcode_into_libs=yes
16388    ;;
16389  esac
16390  ;;
16391
16392gnu*)
16393  version_type=linux
16394  need_lib_prefix=no
16395  need_version=no
16396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16397  soname_spec='${libname}${release}${shared_ext}$major'
16398  shlibpath_var=LD_LIBRARY_PATH
16399  hardcode_into_libs=yes
16400  ;;
16401
16402hpux9* | hpux10* | hpux11*)
16403  # Give a soname corresponding to the major version so that dld.sl refuses to
16404  # link against other versions.
16405  version_type=sunos
16406  need_lib_prefix=no
16407  need_version=no
16408  case "$host_cpu" in
16409  ia64*)
16410    shrext_cmds='.so'
16411    hardcode_into_libs=yes
16412    dynamic_linker="$host_os dld.so"
16413    shlibpath_var=LD_LIBRARY_PATH
16414    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416    soname_spec='${libname}${release}${shared_ext}$major'
16417    if test "X$HPUX_IA64_MODE" = X32; then
16418      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16419    else
16420      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16421    fi
16422    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16423    ;;
16424   hppa*64*)
16425     shrext_cmds='.sl'
16426     hardcode_into_libs=yes
16427     dynamic_linker="$host_os dld.sl"
16428     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431     soname_spec='${libname}${release}${shared_ext}$major'
16432     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16434     ;;
16435   *)
16436    shrext_cmds='.sl'
16437    dynamic_linker="$host_os dld.sl"
16438    shlibpath_var=SHLIB_PATH
16439    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16440    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441    soname_spec='${libname}${release}${shared_ext}$major'
16442    ;;
16443  esac
16444  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16445  postinstall_cmds='chmod 555 $lib'
16446  ;;
16447
16448irix5* | irix6* | nonstopux*)
16449  case $host_os in
16450    nonstopux*) version_type=nonstopux ;;
16451    *)
16452	if test "$lt_cv_prog_gnu_ld" = yes; then
16453		version_type=linux
16454	else
16455		version_type=irix
16456	fi ;;
16457  esac
16458  need_lib_prefix=no
16459  need_version=no
16460  soname_spec='${libname}${release}${shared_ext}$major'
16461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16462  case $host_os in
16463  irix5* | nonstopux*)
16464    libsuff= shlibsuff=
16465    ;;
16466  *)
16467    case $LD in # libtool.m4 will add one of these switches to LD
16468    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16469      libsuff= shlibsuff= libmagic=32-bit;;
16470    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16471      libsuff=32 shlibsuff=N32 libmagic=N32;;
16472    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16473      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16474    *) libsuff= shlibsuff= libmagic=never-match;;
16475    esac
16476    ;;
16477  esac
16478  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16479  shlibpath_overrides_runpath=no
16480  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16481  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16482  hardcode_into_libs=yes
16483  ;;
16484
16485# No shared lib support for Linux oldld, aout, or coff.
16486linux*oldld* | linux*aout* | linux*coff*)
16487  dynamic_linker=no
16488  ;;
16489
16490# This must be Linux ELF.
16491linux*)
16492  version_type=linux
16493  need_lib_prefix=no
16494  need_version=no
16495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496  soname_spec='${libname}${release}${shared_ext}$major'
16497  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16498  shlibpath_var=LD_LIBRARY_PATH
16499  shlibpath_overrides_runpath=no
16500  # This implies no fast_install, which is unacceptable.
16501  # Some rework will be needed to allow for fast_install
16502  # before this can be enabled.
16503  hardcode_into_libs=yes
16504
16505  # Append ld.so.conf contents to the search path
16506  if test -f /etc/ld.so.conf; then
16507    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16508    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16509  fi
16510
16511  # We used to test for /lib/ld.so.1 and disable shared libraries on
16512  # powerpc, because MkLinux only supported shared libraries with the
16513  # GNU dynamic linker.  Since this was broken with cross compilers,
16514  # most powerpc-linux boxes support dynamic linking these days and
16515  # people can always --disable-shared, the test was removed, and we
16516  # assume the GNU/Linux dynamic linker is in use.
16517  dynamic_linker='GNU/Linux ld.so'
16518  ;;
16519
16520knetbsd*-gnu)
16521  version_type=linux
16522  need_lib_prefix=no
16523  need_version=no
16524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16525  soname_spec='${libname}${release}${shared_ext}$major'
16526  shlibpath_var=LD_LIBRARY_PATH
16527  shlibpath_overrides_runpath=no
16528  hardcode_into_libs=yes
16529  dynamic_linker='GNU ld.so'
16530  ;;
16531
16532netbsd*)
16533  version_type=sunos
16534  need_lib_prefix=no
16535  need_version=no
16536  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16537    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16538    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16539    dynamic_linker='NetBSD (a.out) ld.so'
16540  else
16541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16542    soname_spec='${libname}${release}${shared_ext}$major'
16543    dynamic_linker='NetBSD ld.elf_so'
16544  fi
16545  shlibpath_var=LD_LIBRARY_PATH
16546  shlibpath_overrides_runpath=yes
16547  hardcode_into_libs=yes
16548  ;;
16549
16550newsos6)
16551  version_type=linux
16552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553  shlibpath_var=LD_LIBRARY_PATH
16554  shlibpath_overrides_runpath=yes
16555  ;;
16556
16557nto-qnx*)
16558  version_type=linux
16559  need_lib_prefix=no
16560  need_version=no
16561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562  soname_spec='${libname}${release}${shared_ext}$major'
16563  shlibpath_var=LD_LIBRARY_PATH
16564  shlibpath_overrides_runpath=yes
16565  ;;
16566
16567openbsd*)
16568  version_type=sunos
16569  need_lib_prefix=no
16570  need_version=no
16571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16572  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16573  shlibpath_var=LD_LIBRARY_PATH
16574  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16575    case $host_os in
16576      openbsd2.[89] | openbsd2.[89].*)
16577	shlibpath_overrides_runpath=no
16578	;;
16579      *)
16580	shlibpath_overrides_runpath=yes
16581	;;
16582      esac
16583  else
16584    shlibpath_overrides_runpath=yes
16585  fi
16586  ;;
16587
16588os2*)
16589  libname_spec='$name'
16590  shrext_cmds=".dll"
16591  need_lib_prefix=no
16592  library_names_spec='$libname${shared_ext} $libname.a'
16593  dynamic_linker='OS/2 ld.exe'
16594  shlibpath_var=LIBPATH
16595  ;;
16596
16597osf3* | osf4* | osf5*)
16598  version_type=osf
16599  need_lib_prefix=no
16600  need_version=no
16601  soname_spec='${libname}${release}${shared_ext}$major'
16602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603  shlibpath_var=LD_LIBRARY_PATH
16604  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16605  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16606  ;;
16607
16608sco3.2v5*)
16609  version_type=osf
16610  soname_spec='${libname}${release}${shared_ext}$major'
16611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612  shlibpath_var=LD_LIBRARY_PATH
16613  ;;
16614
16615solaris*)
16616  version_type=linux
16617  need_lib_prefix=no
16618  need_version=no
16619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620  soname_spec='${libname}${release}${shared_ext}$major'
16621  shlibpath_var=LD_LIBRARY_PATH
16622  shlibpath_overrides_runpath=yes
16623  hardcode_into_libs=yes
16624  # ldd complains unless libraries are executable
16625  postinstall_cmds='chmod +x $lib'
16626  ;;
16627
16628sunos4*)
16629  version_type=sunos
16630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16631  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16632  shlibpath_var=LD_LIBRARY_PATH
16633  shlibpath_overrides_runpath=yes
16634  if test "$with_gnu_ld" = yes; then
16635    need_lib_prefix=no
16636  fi
16637  need_version=yes
16638  ;;
16639
16640sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16641  version_type=linux
16642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643  soname_spec='${libname}${release}${shared_ext}$major'
16644  shlibpath_var=LD_LIBRARY_PATH
16645  case $host_vendor in
16646    sni)
16647      shlibpath_overrides_runpath=no
16648      need_lib_prefix=no
16649      export_dynamic_flag_spec='${wl}-Blargedynsym'
16650      runpath_var=LD_RUN_PATH
16651      ;;
16652    siemens)
16653      need_lib_prefix=no
16654      ;;
16655    motorola)
16656      need_lib_prefix=no
16657      need_version=no
16658      shlibpath_overrides_runpath=no
16659      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16660      ;;
16661  esac
16662  ;;
16663
16664sysv4*MP*)
16665  if test -d /usr/nec ;then
16666    version_type=linux
16667    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16668    soname_spec='$libname${shared_ext}.$major'
16669    shlibpath_var=LD_LIBRARY_PATH
16670  fi
16671  ;;
16672
16673uts4*)
16674  version_type=linux
16675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16676  soname_spec='${libname}${release}${shared_ext}$major'
16677  shlibpath_var=LD_LIBRARY_PATH
16678  ;;
16679
16680*)
16681  dynamic_linker=no
16682  ;;
16683esac
16684echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16685echo "${ECHO_T}$dynamic_linker" >&6
16686test "$dynamic_linker" = no && can_build_shared=no
16687
16688echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16689echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16690hardcode_action_F77=
16691if test -n "$hardcode_libdir_flag_spec_F77" || \
16692   test -n "$runpath_var_F77" || \
16693   test "X$hardcode_automatic_F77" = "Xyes" ; then
16694
16695  # We can hardcode non-existant directories.
16696  if test "$hardcode_direct_F77" != no &&
16697     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16698     # have to relink, otherwise we might link with an installed library
16699     # when we should be linking with a yet-to-be-installed one
16700     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16701     test "$hardcode_minus_L_F77" != no; then
16702    # Linking always hardcodes the temporary library directory.
16703    hardcode_action_F77=relink
16704  else
16705    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16706    hardcode_action_F77=immediate
16707  fi
16708else
16709  # We cannot hardcode anything, or else we can only hardcode existing
16710  # directories.
16711  hardcode_action_F77=unsupported
16712fi
16713echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16714echo "${ECHO_T}$hardcode_action_F77" >&6
16715
16716if test "$hardcode_action_F77" = relink; then
16717  # Fast installation is not supported
16718  enable_fast_install=no
16719elif test "$shlibpath_overrides_runpath" = yes ||
16720     test "$enable_shared" = no; then
16721  # Fast installation is not necessary
16722  enable_fast_install=needless
16723fi
16724
16725striplib=
16726old_striplib=
16727echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16728echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16729if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16730  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16731  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16732  echo "$as_me:$LINENO: result: yes" >&5
16733echo "${ECHO_T}yes" >&6
16734else
16735# FIXME - insert some real tests, host_os isn't really good enough
16736  case $host_os in
16737   darwin*)
16738       if test -n "$STRIP" ; then
16739         striplib="$STRIP -x"
16740         echo "$as_me:$LINENO: result: yes" >&5
16741echo "${ECHO_T}yes" >&6
16742       else
16743  echo "$as_me:$LINENO: result: no" >&5
16744echo "${ECHO_T}no" >&6
16745fi
16746       ;;
16747   *)
16748  echo "$as_me:$LINENO: result: no" >&5
16749echo "${ECHO_T}no" >&6
16750    ;;
16751  esac
16752fi
16753
16754
16755
16756# The else clause should only fire when bootstrapping the
16757# libtool distribution, otherwise you forgot to ship ltmain.sh
16758# with your package, and you will get complaints that there are
16759# no rules to generate ltmain.sh.
16760if test -f "$ltmain"; then
16761  # See if we are running on zsh, and set the options which allow our commands through
16762  # without removal of \ escapes.
16763  if test -n "${ZSH_VERSION+set}" ; then
16764    setopt NO_GLOB_SUBST
16765  fi
16766  # Now quote all the things that may contain metacharacters while being
16767  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16768  # variables and quote the copies for generation of the libtool script.
16769  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16770    SED SHELL STRIP \
16771    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16772    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16773    deplibs_check_method reload_flag reload_cmds need_locks \
16774    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16775    lt_cv_sys_global_symbol_to_c_name_address \
16776    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16777    old_postinstall_cmds old_postuninstall_cmds \
16778    compiler_F77 \
16779    CC_F77 \
16780    LD_F77 \
16781    lt_prog_compiler_wl_F77 \
16782    lt_prog_compiler_pic_F77 \
16783    lt_prog_compiler_static_F77 \
16784    lt_prog_compiler_no_builtin_flag_F77 \
16785    export_dynamic_flag_spec_F77 \
16786    thread_safe_flag_spec_F77 \
16787    whole_archive_flag_spec_F77 \
16788    enable_shared_with_static_runtimes_F77 \
16789    old_archive_cmds_F77 \
16790    old_archive_from_new_cmds_F77 \
16791    predep_objects_F77 \
16792    postdep_objects_F77 \
16793    predeps_F77 \
16794    postdeps_F77 \
16795    compiler_lib_search_path_F77 \
16796    archive_cmds_F77 \
16797    archive_expsym_cmds_F77 \
16798    postinstall_cmds_F77 \
16799    postuninstall_cmds_F77 \
16800    old_archive_from_expsyms_cmds_F77 \
16801    allow_undefined_flag_F77 \
16802    no_undefined_flag_F77 \
16803    export_symbols_cmds_F77 \
16804    hardcode_libdir_flag_spec_F77 \
16805    hardcode_libdir_flag_spec_ld_F77 \
16806    hardcode_libdir_separator_F77 \
16807    hardcode_automatic_F77 \
16808    module_cmds_F77 \
16809    module_expsym_cmds_F77 \
16810    lt_cv_prog_compiler_c_o_F77 \
16811    exclude_expsyms_F77 \
16812    include_expsyms_F77; do
16813
16814    case $var in
16815    old_archive_cmds_F77 | \
16816    old_archive_from_new_cmds_F77 | \
16817    archive_cmds_F77 | \
16818    archive_expsym_cmds_F77 | \
16819    module_cmds_F77 | \
16820    module_expsym_cmds_F77 | \
16821    old_archive_from_expsyms_cmds_F77 | \
16822    export_symbols_cmds_F77 | \
16823    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16824    postinstall_cmds | postuninstall_cmds | \
16825    old_postinstall_cmds | old_postuninstall_cmds | \
16826    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16827      # Double-quote double-evaled strings.
16828      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16829      ;;
16830    *)
16831      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16832      ;;
16833    esac
16834  done
16835
16836  case $lt_echo in
16837  *'\$0 --fallback-echo"')
16838    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16839    ;;
16840  esac
16841
16842cfgfile="$ofile"
16843
16844  cat <<__EOF__ >> "$cfgfile"
16845# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16846
16847# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16848
16849# Shell to use when invoking shell scripts.
16850SHELL=$lt_SHELL
16851
16852# Whether or not to build shared libraries.
16853build_libtool_libs=$enable_shared
16854
16855# Whether or not to build static libraries.
16856build_old_libs=$enable_static
16857
16858# Whether or not to add -lc for building shared libraries.
16859build_libtool_need_lc=$archive_cmds_need_lc_F77
16860
16861# Whether or not to disallow shared libs when runtime libs are static
16862allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16863
16864# Whether or not to optimize for fast installation.
16865fast_install=$enable_fast_install
16866
16867# The host system.
16868host_alias=$host_alias
16869host=$host
16870host_os=$host_os
16871
16872# The build system.
16873build_alias=$build_alias
16874build=$build
16875build_os=$build_os
16876
16877# An echo program that does not interpret backslashes.
16878echo=$lt_echo
16879
16880# The archiver.
16881AR=$lt_AR
16882AR_FLAGS=$lt_AR_FLAGS
16883
16884# A C compiler.
16885LTCC=$lt_LTCC
16886
16887# A language-specific compiler.
16888CC=$lt_compiler_F77
16889
16890# Is the compiler the GNU C compiler?
16891with_gcc=$GCC_F77
16892
16893# An ERE matcher.
16894EGREP=$lt_EGREP
16895
16896# The linker used to build libraries.
16897LD=$lt_LD_F77
16898
16899# Whether we need hard or soft links.
16900LN_S=$lt_LN_S
16901
16902# A BSD-compatible nm program.
16903NM=$lt_NM
16904
16905# A symbol stripping program
16906STRIP=$lt_STRIP
16907
16908# Used to examine libraries when file_magic_cmd begins "file"
16909MAGIC_CMD=$MAGIC_CMD
16910
16911# Used on cygwin: DLL creation program.
16912DLLTOOL="$DLLTOOL"
16913
16914# Used on cygwin: object dumper.
16915OBJDUMP="$OBJDUMP"
16916
16917# Used on cygwin: assembler.
16918AS="$AS"
16919
16920# The name of the directory that contains temporary libtool files.
16921objdir=$objdir
16922
16923# How to create reloadable object files.
16924reload_flag=$lt_reload_flag
16925reload_cmds=$lt_reload_cmds
16926
16927# How to pass a linker flag through the compiler.
16928wl=$lt_lt_prog_compiler_wl_F77
16929
16930# Object file suffix (normally "o").
16931objext="$ac_objext"
16932
16933# Old archive suffix (normally "a").
16934libext="$libext"
16935
16936# Shared library suffix (normally ".so").
16937shrext_cmds='$shrext_cmds'
16938
16939# Executable file suffix (normally "").
16940exeext="$exeext"
16941
16942# Additional compiler flags for building library objects.
16943pic_flag=$lt_lt_prog_compiler_pic_F77
16944pic_mode=$pic_mode
16945
16946# What is the maximum length of a command?
16947max_cmd_len=$lt_cv_sys_max_cmd_len
16948
16949# Does compiler simultaneously support -c and -o options?
16950compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16951
16952# Must we lock files when doing compilation ?
16953need_locks=$lt_need_locks
16954
16955# Do we need the lib prefix for modules?
16956need_lib_prefix=$need_lib_prefix
16957
16958# Do we need a version for libraries?
16959need_version=$need_version
16960
16961# Whether dlopen is supported.
16962dlopen_support=$enable_dlopen
16963
16964# Whether dlopen of programs is supported.
16965dlopen_self=$enable_dlopen_self
16966
16967# Whether dlopen of statically linked programs is supported.
16968dlopen_self_static=$enable_dlopen_self_static
16969
16970# Compiler flag to prevent dynamic linking.
16971link_static_flag=$lt_lt_prog_compiler_static_F77
16972
16973# Compiler flag to turn off builtin functions.
16974no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16975
16976# Compiler flag to allow reflexive dlopens.
16977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16978
16979# Compiler flag to generate shared objects directly from archives.
16980whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16981
16982# Compiler flag to generate thread-safe objects.
16983thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16984
16985# Library versioning type.
16986version_type=$version_type
16987
16988# Format of library name prefix.
16989libname_spec=$lt_libname_spec
16990
16991# List of archive names.  First name is the real one, the rest are links.
16992# The last name is the one that the linker finds with -lNAME.
16993library_names_spec=$lt_library_names_spec
16994
16995# The coded name of the library, if different from the real name.
16996soname_spec=$lt_soname_spec
16997
16998# Commands used to build and install an old-style archive.
16999RANLIB=$lt_RANLIB
17000old_archive_cmds=$lt_old_archive_cmds_F77
17001old_postinstall_cmds=$lt_old_postinstall_cmds
17002old_postuninstall_cmds=$lt_old_postuninstall_cmds
17003
17004# Create an old-style archive from a shared archive.
17005old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17006
17007# Create a temporary old-style archive to link instead of a shared archive.
17008old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17009
17010# Commands used to build and install a shared archive.
17011archive_cmds=$lt_archive_cmds_F77
17012archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17013postinstall_cmds=$lt_postinstall_cmds
17014postuninstall_cmds=$lt_postuninstall_cmds
17015
17016# Commands used to build a loadable module (assumed same as above if empty)
17017module_cmds=$lt_module_cmds_F77
17018module_expsym_cmds=$lt_module_expsym_cmds_F77
17019
17020# Commands to strip libraries.
17021old_striplib=$lt_old_striplib
17022striplib=$lt_striplib
17023
17024# Dependencies to place before the objects being linked to create a
17025# shared library.
17026predep_objects=$lt_predep_objects_F77
17027
17028# Dependencies to place after the objects being linked to create a
17029# shared library.
17030postdep_objects=$lt_postdep_objects_F77
17031
17032# Dependencies to place before the objects being linked to create a
17033# shared library.
17034predeps=$lt_predeps_F77
17035
17036# Dependencies to place after the objects being linked to create a
17037# shared library.
17038postdeps=$lt_postdeps_F77
17039
17040# The library search path used internally by the compiler when linking
17041# a shared library.
17042compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17043
17044# Method to check whether dependent libraries are shared objects.
17045deplibs_check_method=$lt_deplibs_check_method
17046
17047# Command to use when deplibs_check_method == file_magic.
17048file_magic_cmd=$lt_file_magic_cmd
17049
17050# Flag that allows shared libraries with undefined symbols to be built.
17051allow_undefined_flag=$lt_allow_undefined_flag_F77
17052
17053# Flag that forces no undefined symbols.
17054no_undefined_flag=$lt_no_undefined_flag_F77
17055
17056# Commands used to finish a libtool library installation in a directory.
17057finish_cmds=$lt_finish_cmds
17058
17059# Same as above, but a single script fragment to be evaled but not shown.
17060finish_eval=$lt_finish_eval
17061
17062# Take the output of nm and produce a listing of raw symbols and C names.
17063global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17064
17065# Transform the output of nm in a proper C declaration
17066global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17067
17068# Transform the output of nm in a C name address pair
17069global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17070
17071# This is the shared library runtime path variable.
17072runpath_var=$runpath_var
17073
17074# This is the shared library path variable.
17075shlibpath_var=$shlibpath_var
17076
17077# Is shlibpath searched before the hard-coded library search path?
17078shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17079
17080# How to hardcode a shared library path into an executable.
17081hardcode_action=$hardcode_action_F77
17082
17083# Whether we should hardcode library paths into libraries.
17084hardcode_into_libs=$hardcode_into_libs
17085
17086# Flag to hardcode \$libdir into a binary during linking.
17087# This must work even if \$libdir does not exist.
17088hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17089
17090# If ld is used when linking, flag to hardcode \$libdir into
17091# a binary during linking. This must work even if \$libdir does
17092# not exist.
17093hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17094
17095# Whether we need a single -rpath flag with a separated argument.
17096hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17097
17098# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17099# resulting binary.
17100hardcode_direct=$hardcode_direct_F77
17101
17102# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17103# resulting binary.
17104hardcode_minus_L=$hardcode_minus_L_F77
17105
17106# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17107# the resulting binary.
17108hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17109
17110# Set to yes if building a shared library automatically hardcodes DIR into the library
17111# and all subsequent libraries and executables linked against it.
17112hardcode_automatic=$hardcode_automatic_F77
17113
17114# Variables whose values should be saved in libtool wrapper scripts and
17115# restored at relink time.
17116variables_saved_for_relink="$variables_saved_for_relink"
17117
17118# Whether libtool must link a program against all its dependency libraries.
17119link_all_deplibs=$link_all_deplibs_F77
17120
17121# Compile-time system search path for libraries
17122sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17123
17124# Run-time system search path for libraries
17125sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17126
17127# Fix the shell variable \$srcfile for the compiler.
17128fix_srcfile_path="$fix_srcfile_path_F77"
17129
17130# Set to yes if exported symbols are required.
17131always_export_symbols=$always_export_symbols_F77
17132
17133# The commands to list exported symbols.
17134export_symbols_cmds=$lt_export_symbols_cmds_F77
17135
17136# The commands to extract the exported symbol list from a shared archive.
17137extract_expsyms_cmds=$lt_extract_expsyms_cmds
17138
17139# Symbols that should not be listed in the preloaded symbols.
17140exclude_expsyms=$lt_exclude_expsyms_F77
17141
17142# Symbols that must always be exported.
17143include_expsyms=$lt_include_expsyms_F77
17144
17145# ### END LIBTOOL TAG CONFIG: $tagname
17146
17147__EOF__
17148
17149
17150else
17151  # If there is no Makefile yet, we rely on a make rule to execute
17152  # `config.status --recheck' to rerun these tests and create the
17153  # libtool script then.
17154  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17155  if test -f "$ltmain_in"; then
17156    test -f Makefile && make "$ltmain"
17157  fi
17158fi
17159
17160
17161ac_ext=c
17162ac_cpp='$CPP $CPPFLAGS'
17163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17165ac_compiler_gnu=$ac_cv_c_compiler_gnu
17166
17167CC="$lt_save_CC"
17168
17169	else
17170	  tagname=""
17171	fi
17172	;;
17173
17174      GCJ)
17175	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17176
17177
17178
17179# Source file extension for Java test sources.
17180ac_ext=java
17181
17182# Object file extension for compiled Java test sources.
17183objext=o
17184objext_GCJ=$objext
17185
17186# Code to be used in simple compile tests
17187lt_simple_compile_test_code="class foo {}\n"
17188
17189# Code to be used in simple link tests
17190lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17191
17192# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17193
17194# If no C compiler was specified, use CC.
17195LTCC=${LTCC-"$CC"}
17196
17197# Allow CC to be a program name with arguments.
17198compiler=$CC
17199
17200
17201# Allow CC to be a program name with arguments.
17202lt_save_CC="$CC"
17203CC=${GCJ-"gcj"}
17204compiler=$CC
17205compiler_GCJ=$CC
17206
17207# GCJ did not exist at the time GCC didn't implicitly link libc in.
17208archive_cmds_need_lc_GCJ=no
17209
17210## CAVEAT EMPTOR:
17211## There is no encapsulation within the following macros, do not change
17212## the running order or otherwise move them around unless you know exactly
17213## what you are doing...
17214
17215lt_prog_compiler_no_builtin_flag_GCJ=
17216
17217if test "$GCC" = yes; then
17218  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17219
17220
17221echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17222echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17223if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17224  echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226  lt_cv_prog_compiler_rtti_exceptions=no
17227  ac_outfile=conftest.$ac_objext
17228   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17229   lt_compiler_flag="-fno-rtti -fno-exceptions"
17230   # Insert the option either (1) after the last *FLAGS variable, or
17231   # (2) before a word containing "conftest.", or (3) at the end.
17232   # Note that $ac_compile itself does not contain backslashes and begins
17233   # with a dollar sign (not a hyphen), so the echo should work correctly.
17234   # The option is referenced via a variable to avoid confusing sed.
17235   lt_compile=`echo "$ac_compile" | $SED \
17236   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17237   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17238   -e 's:$: $lt_compiler_flag:'`
17239   (eval echo "\"\$as_me:17239: $lt_compile\"" >&5)
17240   (eval "$lt_compile" 2>conftest.err)
17241   ac_status=$?
17242   cat conftest.err >&5
17243   echo "$as_me:17243: \$? = $ac_status" >&5
17244   if (exit $ac_status) && test -s "$ac_outfile"; then
17245     # The compiler can only warn and ignore the option if not recognized
17246     # So say no if there are warnings
17247     if test ! -s conftest.err; then
17248       lt_cv_prog_compiler_rtti_exceptions=yes
17249     fi
17250   fi
17251   $rm conftest*
17252
17253fi
17254echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17255echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17256
17257if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17258    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17259else
17260    :
17261fi
17262
17263fi
17264
17265lt_prog_compiler_wl_GCJ=
17266lt_prog_compiler_pic_GCJ=
17267lt_prog_compiler_static_GCJ=
17268
17269echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17270echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17271
17272  if test "$GCC" = yes; then
17273    lt_prog_compiler_wl_GCJ='-Wl,'
17274    lt_prog_compiler_static_GCJ='-static'
17275
17276    case $host_os in
17277      aix*)
17278      # All AIX code is PIC.
17279      if test "$host_cpu" = ia64; then
17280	# AIX 5 now supports IA64 processor
17281	lt_prog_compiler_static_GCJ='-Bstatic'
17282      fi
17283      ;;
17284
17285    amigaos*)
17286      # FIXME: we need at least 68020 code to build shared libraries, but
17287      # adding the `-m68020' flag to GCC prevents building anything better,
17288      # like `-m68040'.
17289      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17290      ;;
17291
17292    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17293      # PIC is the default for these OSes.
17294      ;;
17295
17296    mingw* | pw32* | os2*)
17297      # This hack is so that the source file can tell whether it is being
17298      # built for inclusion in a dll (and should export symbols for example).
17299      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17300      ;;
17301
17302    darwin* | rhapsody*)
17303      # PIC is the default on this platform
17304      # Common symbols not allowed in MH_DYLIB files
17305      lt_prog_compiler_pic_GCJ='-fno-common'
17306      ;;
17307
17308    msdosdjgpp*)
17309      # Just because we use GCC doesn't mean we suddenly get shared libraries
17310      # on systems that don't support them.
17311      lt_prog_compiler_can_build_shared_GCJ=no
17312      enable_shared=no
17313      ;;
17314
17315    sysv4*MP*)
17316      if test -d /usr/nec; then
17317	lt_prog_compiler_pic_GCJ=-Kconform_pic
17318      fi
17319      ;;
17320
17321    hpux*)
17322      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17323      # not for PA HP-UX.
17324      case "$host_cpu" in
17325      hppa*64*|ia64*)
17326	# +Z the default
17327	;;
17328      *)
17329	lt_prog_compiler_pic_GCJ='-fPIC'
17330	;;
17331      esac
17332      ;;
17333
17334    *)
17335      lt_prog_compiler_pic_GCJ='-fPIC'
17336      ;;
17337    esac
17338  else
17339    # PORTME Check for flag to pass linker flags through the system compiler.
17340    case $host_os in
17341    aix*)
17342      lt_prog_compiler_wl_GCJ='-Wl,'
17343      if test "$host_cpu" = ia64; then
17344	# AIX 5 now supports IA64 processor
17345	lt_prog_compiler_static_GCJ='-Bstatic'
17346      else
17347	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17348      fi
17349      ;;
17350      darwin*)
17351        # PIC is the default on this platform
17352        # Common symbols not allowed in MH_DYLIB files
17353       case "$cc_basename" in
17354         xlc*)
17355         lt_prog_compiler_pic_GCJ='-qnocommon'
17356         lt_prog_compiler_wl_GCJ='-Wl,'
17357         ;;
17358       esac
17359       ;;
17360
17361    mingw* | pw32* | os2*)
17362      # This hack is so that the source file can tell whether it is being
17363      # built for inclusion in a dll (and should export symbols for example).
17364      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17365      ;;
17366
17367    hpux9* | hpux10* | hpux11*)
17368      lt_prog_compiler_wl_GCJ='-Wl,'
17369      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17370      # not for PA HP-UX.
17371      case "$host_cpu" in
17372      hppa*64*|ia64*)
17373	# +Z the default
17374	;;
17375      *)
17376	lt_prog_compiler_pic_GCJ='+Z'
17377	;;
17378      esac
17379      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17380      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17381      ;;
17382
17383    irix5* | irix6* | nonstopux*)
17384      lt_prog_compiler_wl_GCJ='-Wl,'
17385      # PIC (with -KPIC) is the default.
17386      lt_prog_compiler_static_GCJ='-non_shared'
17387      ;;
17388
17389    newsos6)
17390      lt_prog_compiler_pic_GCJ='-KPIC'
17391      lt_prog_compiler_static_GCJ='-Bstatic'
17392      ;;
17393
17394    linux*)
17395      case $cc_basename in
17396      icc* | ecc*)
17397	lt_prog_compiler_wl_GCJ='-Wl,'
17398	lt_prog_compiler_pic_GCJ='-KPIC'
17399	lt_prog_compiler_static_GCJ='-static'
17400        ;;
17401      pgcc | pgf77 | pgf90)
17402        # Portland Group compilers (*not* the Pentium gcc compiler,
17403	# which looks to be a dead project)
17404	lt_prog_compiler_wl_GCJ='-Wl,'
17405	lt_prog_compiler_pic_GCJ='-fpic'
17406	lt_prog_compiler_static_GCJ='-static'
17407        ;;
17408      ccc*)
17409        lt_prog_compiler_wl_GCJ='-Wl,'
17410        # All Alpha code is PIC.
17411        lt_prog_compiler_static_GCJ='-non_shared'
17412        ;;
17413      como)
17414        lt_prog_compiler_wl_GCJ='-lopt='
17415        ;;
17416      esac
17417      ;;
17418
17419    osf3* | osf4* | osf5*)
17420      lt_prog_compiler_wl_GCJ='-Wl,'
17421      # All OSF/1 code is PIC.
17422      lt_prog_compiler_static_GCJ='-non_shared'
17423      ;;
17424
17425    sco3.2v5*)
17426      lt_prog_compiler_pic_GCJ='-Kpic'
17427      lt_prog_compiler_static_GCJ='-dn'
17428      ;;
17429
17430    solaris*)
17431      lt_prog_compiler_wl_GCJ='-Wl,'
17432      lt_prog_compiler_pic_GCJ='-KPIC'
17433      lt_prog_compiler_static_GCJ='-Bstatic'
17434      ;;
17435
17436    sunos4*)
17437      lt_prog_compiler_wl_GCJ='-Qoption ld '
17438      lt_prog_compiler_pic_GCJ='-PIC'
17439      lt_prog_compiler_static_GCJ='-Bstatic'
17440      ;;
17441
17442    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17443      lt_prog_compiler_wl_GCJ='-Wl,'
17444      lt_prog_compiler_pic_GCJ='-KPIC'
17445      lt_prog_compiler_static_GCJ='-Bstatic'
17446      ;;
17447
17448    sysv4*MP*)
17449      if test -d /usr/nec ;then
17450	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17451	lt_prog_compiler_static_GCJ='-Bstatic'
17452      fi
17453      ;;
17454
17455    unicos*)
17456      lt_prog_compiler_wl_GCJ='-Wl,'
17457      lt_prog_compiler_can_build_shared_GCJ=no
17458      ;;
17459
17460    uts4*)
17461      lt_prog_compiler_pic_GCJ='-pic'
17462      lt_prog_compiler_static_GCJ='-Bstatic'
17463      ;;
17464
17465    *)
17466      lt_prog_compiler_can_build_shared_GCJ=no
17467      ;;
17468    esac
17469  fi
17470
17471echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17472echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17473
17474#
17475# Check to make sure the PIC flag actually works.
17476#
17477if test -n "$lt_prog_compiler_pic_GCJ"; then
17478
17479echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17480echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17481if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17482  echo $ECHO_N "(cached) $ECHO_C" >&6
17483else
17484  lt_prog_compiler_pic_works_GCJ=no
17485  ac_outfile=conftest.$ac_objext
17486   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17487   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17488   # Insert the option either (1) after the last *FLAGS variable, or
17489   # (2) before a word containing "conftest.", or (3) at the end.
17490   # Note that $ac_compile itself does not contain backslashes and begins
17491   # with a dollar sign (not a hyphen), so the echo should work correctly.
17492   # The option is referenced via a variable to avoid confusing sed.
17493   lt_compile=`echo "$ac_compile" | $SED \
17494   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17496   -e 's:$: $lt_compiler_flag:'`
17497   (eval echo "\"\$as_me:17497: $lt_compile\"" >&5)
17498   (eval "$lt_compile" 2>conftest.err)
17499   ac_status=$?
17500   cat conftest.err >&5
17501   echo "$as_me:17501: \$? = $ac_status" >&5
17502   if (exit $ac_status) && test -s "$ac_outfile"; then
17503     # The compiler can only warn and ignore the option if not recognized
17504     # So say no if there are warnings
17505     if test ! -s conftest.err; then
17506       lt_prog_compiler_pic_works_GCJ=yes
17507     fi
17508   fi
17509   $rm conftest*
17510
17511fi
17512echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17513echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17514
17515if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17516    case $lt_prog_compiler_pic_GCJ in
17517     "" | " "*) ;;
17518     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17519     esac
17520else
17521    lt_prog_compiler_pic_GCJ=
17522     lt_prog_compiler_can_build_shared_GCJ=no
17523fi
17524
17525fi
17526case "$host_os" in
17527  # For platforms which do not support PIC, -DPIC is meaningless:
17528  *djgpp*)
17529    lt_prog_compiler_pic_GCJ=
17530    ;;
17531  *)
17532    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17533    ;;
17534esac
17535
17536echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17537echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17538if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17539  echo $ECHO_N "(cached) $ECHO_C" >&6
17540else
17541  lt_cv_prog_compiler_c_o_GCJ=no
17542   $rm -r conftest 2>/dev/null
17543   mkdir conftest
17544   cd conftest
17545   mkdir out
17546   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17547
17548   lt_compiler_flag="-o out/conftest2.$ac_objext"
17549   # Insert the option either (1) after the last *FLAGS variable, or
17550   # (2) before a word containing "conftest.", or (3) at the end.
17551   # Note that $ac_compile itself does not contain backslashes and begins
17552   # with a dollar sign (not a hyphen), so the echo should work correctly.
17553   lt_compile=`echo "$ac_compile" | $SED \
17554   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17555   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17556   -e 's:$: $lt_compiler_flag:'`
17557   (eval echo "\"\$as_me:17557: $lt_compile\"" >&5)
17558   (eval "$lt_compile" 2>out/conftest.err)
17559   ac_status=$?
17560   cat out/conftest.err >&5
17561   echo "$as_me:17561: \$? = $ac_status" >&5
17562   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17563   then
17564     # The compiler can only warn and ignore the option if not recognized
17565     # So say no if there are warnings
17566     if test ! -s out/conftest.err; then
17567       lt_cv_prog_compiler_c_o_GCJ=yes
17568     fi
17569   fi
17570   chmod u+w .
17571   $rm conftest*
17572   # SGI C++ compiler will create directory out/ii_files/ for
17573   # template instantiation
17574   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17575   $rm out/* && rmdir out
17576   cd ..
17577   rmdir conftest
17578   $rm conftest*
17579
17580fi
17581echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17582echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17583
17584
17585hard_links="nottested"
17586if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17587  # do not overwrite the value of need_locks provided by the user
17588  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17589echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17590  hard_links=yes
17591  $rm conftest*
17592  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17593  touch conftest.a
17594  ln conftest.a conftest.b 2>&5 || hard_links=no
17595  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17596  echo "$as_me:$LINENO: result: $hard_links" >&5
17597echo "${ECHO_T}$hard_links" >&6
17598  if test "$hard_links" = no; then
17599    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17600echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17601    need_locks=warn
17602  fi
17603else
17604  need_locks=no
17605fi
17606
17607echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17608echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17609
17610  runpath_var=
17611  allow_undefined_flag_GCJ=
17612  enable_shared_with_static_runtimes_GCJ=no
17613  archive_cmds_GCJ=
17614  archive_expsym_cmds_GCJ=
17615  old_archive_From_new_cmds_GCJ=
17616  old_archive_from_expsyms_cmds_GCJ=
17617  export_dynamic_flag_spec_GCJ=
17618  whole_archive_flag_spec_GCJ=
17619  thread_safe_flag_spec_GCJ=
17620  hardcode_libdir_flag_spec_GCJ=
17621  hardcode_libdir_flag_spec_ld_GCJ=
17622  hardcode_libdir_separator_GCJ=
17623  hardcode_direct_GCJ=no
17624  hardcode_minus_L_GCJ=no
17625  hardcode_shlibpath_var_GCJ=unsupported
17626  link_all_deplibs_GCJ=unknown
17627  hardcode_automatic_GCJ=no
17628  module_cmds_GCJ=
17629  module_expsym_cmds_GCJ=
17630  always_export_symbols_GCJ=no
17631  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17632  # include_expsyms should be a list of space-separated symbols to be *always*
17633  # included in the symbol list
17634  include_expsyms_GCJ=
17635  # exclude_expsyms can be an extended regexp of symbols to exclude
17636  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17637  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17638  # as well as any symbol that contains `d'.
17639  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17640  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17641  # platforms (ab)use it in PIC code, but their linkers get confused if
17642  # the symbol is explicitly referenced.  Since portable code cannot
17643  # rely on this symbol name, it's probably fine to never include it in
17644  # preloaded symbol tables.
17645  extract_expsyms_cmds=
17646
17647  case $host_os in
17648  cygwin* | mingw* | pw32*)
17649    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17650    # When not using gcc, we currently assume that we are using
17651    # Microsoft Visual C++.
17652    if test "$GCC" != yes; then
17653      with_gnu_ld=no
17654    fi
17655    ;;
17656  openbsd*)
17657    with_gnu_ld=no
17658    ;;
17659  esac
17660
17661  ld_shlibs_GCJ=yes
17662  if test "$with_gnu_ld" = yes; then
17663    # If archive_cmds runs LD, not CC, wlarc should be empty
17664    wlarc='${wl}'
17665
17666    # See if GNU ld supports shared libraries.
17667    case $host_os in
17668    aix3* | aix4* | aix5*)
17669      # On AIX/PPC, the GNU linker is very broken
17670      if test "$host_cpu" != ia64; then
17671	ld_shlibs_GCJ=no
17672	cat <<EOF 1>&2
17673
17674*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17675*** to be unable to reliably create shared libraries on AIX.
17676*** Therefore, libtool is disabling shared libraries support.  If you
17677*** really care for shared libraries, you may want to modify your PATH
17678*** so that a non-GNU linker is found, and then restart.
17679
17680EOF
17681      fi
17682      ;;
17683
17684    amigaos*)
17685      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17686      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17687      hardcode_minus_L_GCJ=yes
17688
17689      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17690      # that the semantics of dynamic libraries on AmigaOS, at least up
17691      # to version 4, is to share data among multiple programs linked
17692      # with the same dynamic library.  Since this doesn't match the
17693      # behavior of shared libraries on other platforms, we can't use
17694      # them.
17695      ld_shlibs_GCJ=no
17696      ;;
17697
17698    beos*)
17699      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17700	allow_undefined_flag_GCJ=unsupported
17701	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17702	# support --undefined.  This deserves some investigation.  FIXME
17703	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17704      else
17705	ld_shlibs_GCJ=no
17706      fi
17707      ;;
17708
17709    cygwin* | mingw* | pw32*)
17710      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17711      # as there is no search path for DLLs.
17712      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17713      allow_undefined_flag_GCJ=unsupported
17714      always_export_symbols_GCJ=no
17715      enable_shared_with_static_runtimes_GCJ=yes
17716      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17717
17718      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17719        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17720	# If the export-symbols file already is a .def file (1st line
17721	# is EXPORTS), use it as is; otherwise, prepend...
17722	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17723	  cp $export_symbols $output_objdir/$soname.def;
17724	else
17725	  echo EXPORTS > $output_objdir/$soname.def;
17726	  cat $export_symbols >> $output_objdir/$soname.def;
17727	fi~
17728	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17729      else
17730	ld_shlibs_GCJ=no
17731      fi
17732      ;;
17733
17734    netbsd*)
17735      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17736	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17737	wlarc=
17738      else
17739	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17740	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17741      fi
17742      ;;
17743
17744    solaris* | sysv5*)
17745      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17746	ld_shlibs_GCJ=no
17747	cat <<EOF 1>&2
17748
17749*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17750*** create shared libraries on Solaris systems.  Therefore, libtool
17751*** is disabling shared libraries support.  We urge you to upgrade GNU
17752*** binutils to release 2.9.1 or newer.  Another option is to modify
17753*** your PATH or compiler configuration so that the native linker is
17754*** used, and then restart.
17755
17756EOF
17757      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17758	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17759	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17760      else
17761	ld_shlibs_GCJ=no
17762      fi
17763      ;;
17764
17765    sunos4*)
17766      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17767      wlarc=
17768      hardcode_direct_GCJ=yes
17769      hardcode_shlibpath_var_GCJ=no
17770      ;;
17771
17772  linux*)
17773    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17774      tmp_addflag=
17775      case $CC,$host_cpu in
17776      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
17777        tmp_addflag=' -fpic' ;;
17778      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17779        tmp_addflag=' -i_dynamic' ;;
17780      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17781        tmp_addflag=' -i_dynamic -nofor_main' ;;
17782      ifc* | ifort*)			# Intel Fortran compiler
17783      	tmp_addflag=' -nofor_main' ;;
17784      esac
17785      archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17786      supports_anon_versioning=no
17787      case `$LD -v 2>/dev/null` in
17788        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17789        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17790        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17791        *\ 2.11.*) ;; # other 2.11 versions
17792        *) supports_anon_versioning=yes ;;
17793      esac
17794      if test $supports_anon_versioning = yes; then
17795        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17796cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17797$echo "local: *; };" >> $output_objdir/$libname.ver~
17798        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17799      else
17800        archive_expsym_cmds_GCJ=$archive_cmds_GCJ
17801      fi
17802    else
17803      ld_shlibs_GCJ=no
17804    fi
17805    ;;
17806
17807    *)
17808      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17809	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17810	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17811      else
17812	ld_shlibs_GCJ=no
17813      fi
17814      ;;
17815    esac
17816
17817    if test "$ld_shlibs_GCJ" = yes; then
17818      runpath_var=LD_RUN_PATH
17819      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17820      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17821      # ancient GNU ld didn't support --whole-archive et. al.
17822      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17823 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17824      else
17825  	whole_archive_flag_spec_GCJ=
17826      fi
17827    fi
17828  else
17829    # PORTME fill in a description of your system's linker (not GNU ld)
17830    case $host_os in
17831    aix3*)
17832      allow_undefined_flag_GCJ=unsupported
17833      always_export_symbols_GCJ=yes
17834      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17835      # Note: this linker hardcodes the directories in LIBPATH if there
17836      # are no directories specified by -L.
17837      hardcode_minus_L_GCJ=yes
17838      if test "$GCC" = yes && test -z "$link_static_flag"; then
17839	# Neither direct hardcoding nor static linking is supported with a
17840	# broken collect2.
17841	hardcode_direct_GCJ=unsupported
17842      fi
17843      ;;
17844
17845    aix4* | aix5*)
17846      if test "$host_cpu" = ia64; then
17847	# On IA64, the linker does run time linking by default, so we don't
17848	# have to do anything special.
17849	aix_use_runtimelinking=no
17850	exp_sym_flag='-Bexport'
17851	no_entry_flag=""
17852      else
17853	# If we're using GNU nm, then we don't want the "-C" option.
17854	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17855	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17856	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17857	else
17858	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17859	fi
17860	aix_use_runtimelinking=no
17861
17862	# Test if we are trying to use run time linking or normal
17863	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17864	# need to do runtime linking.
17865	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17866	  for ld_flag in $LDFLAGS; do
17867  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17868  	    aix_use_runtimelinking=yes
17869  	    break
17870  	  fi
17871	  done
17872	esac
17873
17874	exp_sym_flag='-bexport'
17875	no_entry_flag='-bnoentry'
17876      fi
17877
17878      # When large executables or shared objects are built, AIX ld can
17879      # have problems creating the table of contents.  If linking a library
17880      # or program results in "error TOC overflow" add -mminimal-toc to
17881      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17882      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17883
17884      archive_cmds_GCJ=''
17885      hardcode_direct_GCJ=yes
17886      hardcode_libdir_separator_GCJ=':'
17887      link_all_deplibs_GCJ=yes
17888
17889      if test "$GCC" = yes; then
17890	case $host_os in aix4.[012]|aix4.[012].*)
17891	# We only want to do this on AIX 4.2 and lower, the check
17892	# below for broken collect2 doesn't work under 4.3+
17893	  collect2name=`${CC} -print-prog-name=collect2`
17894	  if test -f "$collect2name" && \
17895  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17896	  then
17897  	  # We have reworked collect2
17898  	  hardcode_direct_GCJ=yes
17899	  else
17900  	  # We have old collect2
17901  	  hardcode_direct_GCJ=unsupported
17902  	  # It fails to find uninstalled libraries when the uninstalled
17903  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17904  	  # to unsupported forces relinking
17905  	  hardcode_minus_L_GCJ=yes
17906  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17907  	  hardcode_libdir_separator_GCJ=
17908	  fi
17909	esac
17910	shared_flag='-shared'
17911	if test "$aix_use_runtimelinking" = yes; then
17912	  shared_flag="$shared_flag "'${wl}-G'
17913	fi
17914      else
17915	# not using gcc
17916	if test "$host_cpu" = ia64; then
17917  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17918  	# chokes on -Wl,-G. The following line is correct:
17919	  shared_flag='-G'
17920	else
17921  	if test "$aix_use_runtimelinking" = yes; then
17922	    shared_flag='${wl}-G'
17923	  else
17924	    shared_flag='${wl}-bM:SRE'
17925  	fi
17926	fi
17927      fi
17928
17929      # It seems that -bexpall does not export symbols beginning with
17930      # underscore (_), so it is better to generate a list of symbols to export.
17931      always_export_symbols_GCJ=yes
17932      if test "$aix_use_runtimelinking" = yes; then
17933	# Warning - without using the other runtime loading flags (-brtl),
17934	# -berok will link without error, but may produce a broken library.
17935	allow_undefined_flag_GCJ='-berok'
17936       # Determine the default libpath from the value encoded in an empty executable.
17937       cat >conftest.$ac_ext <<_ACEOF
17938/* confdefs.h.  */
17939_ACEOF
17940cat confdefs.h >>conftest.$ac_ext
17941cat >>conftest.$ac_ext <<_ACEOF
17942/* end confdefs.h.  */
17943
17944int
17945main ()
17946{
17947
17948  ;
17949  return 0;
17950}
17951_ACEOF
17952rm -f conftest.$ac_objext conftest$ac_exeext
17953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954  (eval $ac_link) 2>conftest.er1
17955  ac_status=$?
17956  grep -v '^ *+' conftest.er1 >conftest.err
17957  rm -f conftest.er1
17958  cat conftest.err >&5
17959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960  (exit $ac_status); } &&
17961	 { ac_try='test -z "$ac_c_werror_flag"
17962			 || test ! -s conftest.err'
17963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964  (eval $ac_try) 2>&5
17965  ac_status=$?
17966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967  (exit $ac_status); }; } &&
17968	 { ac_try='test -s conftest$ac_exeext'
17969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970  (eval $ac_try) 2>&5
17971  ac_status=$?
17972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973  (exit $ac_status); }; }; then
17974
17975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17976}'`
17977# Check for a 64-bit object if we didn't find anything.
17978if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17979}'`; fi
17980else
17981  echo "$as_me: failed program was:" >&5
17982sed 's/^/| /' conftest.$ac_ext >&5
17983
17984fi
17985rm -f conftest.err conftest.$ac_objext \
17986      conftest$ac_exeext conftest.$ac_ext
17987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17988
17989       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17990	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17991       else
17992	if test "$host_cpu" = ia64; then
17993	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17994	  allow_undefined_flag_GCJ="-z nodefs"
17995	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17996	else
17997	 # Determine the default libpath from the value encoded in an empty executable.
17998	 cat >conftest.$ac_ext <<_ACEOF
17999/* confdefs.h.  */
18000_ACEOF
18001cat confdefs.h >>conftest.$ac_ext
18002cat >>conftest.$ac_ext <<_ACEOF
18003/* end confdefs.h.  */
18004
18005int
18006main ()
18007{
18008
18009  ;
18010  return 0;
18011}
18012_ACEOF
18013rm -f conftest.$ac_objext conftest$ac_exeext
18014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18015  (eval $ac_link) 2>conftest.er1
18016  ac_status=$?
18017  grep -v '^ *+' conftest.er1 >conftest.err
18018  rm -f conftest.er1
18019  cat conftest.err >&5
18020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021  (exit $ac_status); } &&
18022	 { ac_try='test -z "$ac_c_werror_flag"
18023			 || test ! -s conftest.err'
18024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025  (eval $ac_try) 2>&5
18026  ac_status=$?
18027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028  (exit $ac_status); }; } &&
18029	 { ac_try='test -s conftest$ac_exeext'
18030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031  (eval $ac_try) 2>&5
18032  ac_status=$?
18033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034  (exit $ac_status); }; }; then
18035
18036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18037}'`
18038# Check for a 64-bit object if we didn't find anything.
18039if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18040}'`; fi
18041else
18042  echo "$as_me: failed program was:" >&5
18043sed 's/^/| /' conftest.$ac_ext >&5
18044
18045fi
18046rm -f conftest.err conftest.$ac_objext \
18047      conftest$ac_exeext conftest.$ac_ext
18048if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18049
18050	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18051	  # Warning - without using the other run time loading flags,
18052	  # -berok will link without error, but may produce a broken library.
18053	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18054	  allow_undefined_flag_GCJ=' ${wl}-berok'
18055	  # -bexpall does not export symbols beginning with underscore (_)
18056	  always_export_symbols_GCJ=yes
18057	  # Exported symbols can be pulled into shared objects from archives
18058	  whole_archive_flag_spec_GCJ=' '
18059	  archive_cmds_need_lc_GCJ=yes
18060	  # This is similar to how AIX traditionally builds it's shared libraries.
18061	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18062	fi
18063      fi
18064      ;;
18065
18066    amigaos*)
18067      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18068      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18069      hardcode_minus_L_GCJ=yes
18070      # see comment about different semantics on the GNU ld section
18071      ld_shlibs_GCJ=no
18072      ;;
18073
18074    bsdi[45]*)
18075      export_dynamic_flag_spec_GCJ=-rdynamic
18076      ;;
18077
18078    cygwin* | mingw* | pw32*)
18079      # When not using gcc, we currently assume that we are using
18080      # Microsoft Visual C++.
18081      # hardcode_libdir_flag_spec is actually meaningless, as there is
18082      # no search path for DLLs.
18083      hardcode_libdir_flag_spec_GCJ=' '
18084      allow_undefined_flag_GCJ=unsupported
18085      # Tell ltmain to make .lib files, not .a files.
18086      libext=lib
18087      # Tell ltmain to make .dll files, not .so files.
18088      shrext_cmds=".dll"
18089      # FIXME: Setting linknames here is a bad hack.
18090      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18091      # The linker will automatically build a .lib file if we build a DLL.
18092      old_archive_From_new_cmds_GCJ='true'
18093      # FIXME: Should let the user specify the lib program.
18094      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18095      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18096      enable_shared_with_static_runtimes_GCJ=yes
18097      ;;
18098
18099    darwin* | rhapsody*)
18100      case "$host_os" in
18101        rhapsody* | darwin1.[012])
18102         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18103         ;;
18104       *) # Darwin 1.3 on
18105         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18106           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18107         else
18108           case ${MACOSX_DEPLOYMENT_TARGET} in
18109             10.[012])
18110               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18111               ;;
18112             10.*)
18113               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18114               ;;
18115           esac
18116         fi
18117         ;;
18118      esac
18119      archive_cmds_need_lc_GCJ=no
18120      hardcode_direct_GCJ=no
18121      hardcode_automatic_GCJ=yes
18122      hardcode_shlibpath_var_GCJ=unsupported
18123      whole_archive_flag_spec_GCJ=''
18124      link_all_deplibs_GCJ=yes
18125    if test "$GCC" = yes ; then
18126    	output_verbose_link_cmd='echo'
18127        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18128      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18129      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18130      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18131      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18132    else
18133      case "$cc_basename" in
18134        xlc*)
18135         output_verbose_link_cmd='echo'
18136         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18137         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18138          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18139         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18140          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18141          ;;
18142       *)
18143         ld_shlibs_GCJ=no
18144          ;;
18145      esac
18146    fi
18147      ;;
18148
18149    dgux*)
18150      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18151      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18152      hardcode_shlibpath_var_GCJ=no
18153      ;;
18154
18155    freebsd1*)
18156      ld_shlibs_GCJ=no
18157      ;;
18158
18159    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18160    # support.  Future versions do this automatically, but an explicit c++rt0.o
18161    # does not break anything, and helps significantly (at the cost of a little
18162    # extra space).
18163    freebsd2.2*)
18164      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18165      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18166      hardcode_direct_GCJ=yes
18167      hardcode_shlibpath_var_GCJ=no
18168      ;;
18169
18170    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18171    freebsd2*)
18172      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18173      hardcode_direct_GCJ=yes
18174      hardcode_minus_L_GCJ=yes
18175      hardcode_shlibpath_var_GCJ=no
18176      ;;
18177
18178    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18179    freebsd* | kfreebsd*-gnu | dragonfly*)
18180      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18181      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18182      hardcode_direct_GCJ=yes
18183      hardcode_shlibpath_var_GCJ=no
18184      ;;
18185
18186    hpux9*)
18187      if test "$GCC" = yes; then
18188	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18189      else
18190	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18191      fi
18192      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18193      hardcode_libdir_separator_GCJ=:
18194      hardcode_direct_GCJ=yes
18195
18196      # hardcode_minus_L: Not really in the search PATH,
18197      # but as the default location of the library.
18198      hardcode_minus_L_GCJ=yes
18199      export_dynamic_flag_spec_GCJ='${wl}-E'
18200      ;;
18201
18202    hpux10* | hpux11*)
18203      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18204	case "$host_cpu" in
18205	hppa*64*|ia64*)
18206	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18207	  ;;
18208	*)
18209	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18210	  ;;
18211	esac
18212      else
18213	case "$host_cpu" in
18214	hppa*64*|ia64*)
18215	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18216	  ;;
18217	*)
18218	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18219	  ;;
18220	esac
18221      fi
18222      if test "$with_gnu_ld" = no; then
18223	case "$host_cpu" in
18224	hppa*64*)
18225	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18226	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18227	  hardcode_libdir_separator_GCJ=:
18228	  hardcode_direct_GCJ=no
18229	  hardcode_shlibpath_var_GCJ=no
18230	  ;;
18231	ia64*)
18232	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18233	  hardcode_direct_GCJ=no
18234	  hardcode_shlibpath_var_GCJ=no
18235
18236	  # hardcode_minus_L: Not really in the search PATH,
18237	  # but as the default location of the library.
18238	  hardcode_minus_L_GCJ=yes
18239	  ;;
18240	*)
18241	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18242	  hardcode_libdir_separator_GCJ=:
18243	  hardcode_direct_GCJ=yes
18244	  export_dynamic_flag_spec_GCJ='${wl}-E'
18245
18246	  # hardcode_minus_L: Not really in the search PATH,
18247	  # but as the default location of the library.
18248	  hardcode_minus_L_GCJ=yes
18249	  ;;
18250	esac
18251      fi
18252      ;;
18253
18254    irix5* | irix6* | nonstopux*)
18255      if test "$GCC" = yes; then
18256	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18257      else
18258	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18259	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18260      fi
18261      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18262      hardcode_libdir_separator_GCJ=:
18263      link_all_deplibs_GCJ=yes
18264      ;;
18265
18266    netbsd*)
18267      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18268	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18269      else
18270	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18271      fi
18272      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18273      hardcode_direct_GCJ=yes
18274      hardcode_shlibpath_var_GCJ=no
18275      ;;
18276
18277    newsos6)
18278      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279      hardcode_direct_GCJ=yes
18280      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18281      hardcode_libdir_separator_GCJ=:
18282      hardcode_shlibpath_var_GCJ=no
18283      ;;
18284
18285    openbsd*)
18286      hardcode_direct_GCJ=yes
18287      hardcode_shlibpath_var_GCJ=no
18288      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18289	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18290	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18291	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18292	export_dynamic_flag_spec_GCJ='${wl}-E'
18293      else
18294       case $host_os in
18295	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18296	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18297	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18298	   ;;
18299	 *)
18300	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18301	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18302	   ;;
18303       esac
18304      fi
18305      ;;
18306
18307    os2*)
18308      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18309      hardcode_minus_L_GCJ=yes
18310      allow_undefined_flag_GCJ=unsupported
18311      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18312      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18313      ;;
18314
18315    osf3*)
18316      if test "$GCC" = yes; then
18317	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18318	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18319      else
18320	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18321	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18322      fi
18323      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18324      hardcode_libdir_separator_GCJ=:
18325      ;;
18326
18327    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18328      if test "$GCC" = yes; then
18329	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18330	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18331	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18332      else
18333	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18334	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18335	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18336	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18337
18338	# Both c and cxx compiler support -rpath directly
18339	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18340      fi
18341      hardcode_libdir_separator_GCJ=:
18342      ;;
18343
18344    sco3.2v5*)
18345      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346      hardcode_shlibpath_var_GCJ=no
18347      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18348      runpath_var=LD_RUN_PATH
18349      hardcode_runpath_var=yes
18350      ;;
18351
18352    solaris*)
18353      no_undefined_flag_GCJ=' -z text'
18354      if test "$GCC" = yes; then
18355	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18356	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18357	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18358      else
18359	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18360	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18361  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18362      fi
18363      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18364      hardcode_shlibpath_var_GCJ=no
18365      case $host_os in
18366      solaris2.[0-5] | solaris2.[0-5].*) ;;
18367      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18368	whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
18369      esac
18370      link_all_deplibs_GCJ=yes
18371      ;;
18372
18373    sunos4*)
18374      if test "x$host_vendor" = xsequent; then
18375	# Use $CC to link under sequent, because it throws in some extra .o
18376	# files that make .init and .fini sections work.
18377	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18378      else
18379	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18380      fi
18381      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18382      hardcode_direct_GCJ=yes
18383      hardcode_minus_L_GCJ=yes
18384      hardcode_shlibpath_var_GCJ=no
18385      ;;
18386
18387    sysv4)
18388      case $host_vendor in
18389	sni)
18390	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391	  hardcode_direct_GCJ=yes # is this really true???
18392	;;
18393	siemens)
18394	  ## LD is ld it makes a PLAMLIB
18395	  ## CC just makes a GrossModule.
18396	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18397	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18398	  hardcode_direct_GCJ=no
18399        ;;
18400	motorola)
18401	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18402	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18403	;;
18404      esac
18405      runpath_var='LD_RUN_PATH'
18406      hardcode_shlibpath_var_GCJ=no
18407      ;;
18408
18409    sysv4.3*)
18410      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18411      hardcode_shlibpath_var_GCJ=no
18412      export_dynamic_flag_spec_GCJ='-Bexport'
18413      ;;
18414
18415    sysv4*MP*)
18416      if test -d /usr/nec; then
18417	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18418	hardcode_shlibpath_var_GCJ=no
18419	runpath_var=LD_RUN_PATH
18420	hardcode_runpath_var=yes
18421	ld_shlibs_GCJ=yes
18422      fi
18423      ;;
18424
18425    sysv4.2uw2*)
18426      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18427      hardcode_direct_GCJ=yes
18428      hardcode_minus_L_GCJ=no
18429      hardcode_shlibpath_var_GCJ=no
18430      hardcode_runpath_var=yes
18431      runpath_var=LD_RUN_PATH
18432      ;;
18433
18434   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18435      no_undefined_flag_GCJ='${wl}-z ${wl}text'
18436      if test "$GCC" = yes; then
18437	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18438      else
18439	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18440      fi
18441      runpath_var='LD_RUN_PATH'
18442      hardcode_shlibpath_var_GCJ=no
18443      ;;
18444
18445    sysv5*)
18446      no_undefined_flag_GCJ=' -z text'
18447      # $CC -shared without GNU ld will not create a library from C++
18448      # object files and a static libstdc++, better avoid it by now
18449      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18450      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18451  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18452      hardcode_libdir_flag_spec_GCJ=
18453      hardcode_shlibpath_var_GCJ=no
18454      runpath_var='LD_RUN_PATH'
18455      ;;
18456
18457    uts4*)
18458      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18459      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18460      hardcode_shlibpath_var_GCJ=no
18461      ;;
18462
18463    *)
18464      ld_shlibs_GCJ=no
18465      ;;
18466    esac
18467  fi
18468
18469echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18470echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18471test "$ld_shlibs_GCJ" = no && can_build_shared=no
18472
18473variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18474if test "$GCC" = yes; then
18475  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18476fi
18477
18478#
18479# Do we need to explicitly link libc?
18480#
18481case "x$archive_cmds_need_lc_GCJ" in
18482x|xyes)
18483  # Assume -lc should be added
18484  archive_cmds_need_lc_GCJ=yes
18485
18486  if test "$enable_shared" = yes && test "$GCC" = yes; then
18487    case $archive_cmds_GCJ in
18488    *'~'*)
18489      # FIXME: we may have to deal with multi-command sequences.
18490      ;;
18491    '$CC '*)
18492      # Test whether the compiler implicitly links with -lc since on some
18493      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18494      # to ld, don't add -lc before -lgcc.
18495      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18496echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18497      $rm conftest*
18498      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18499
18500      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18501  (eval $ac_compile) 2>&5
18502  ac_status=$?
18503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504  (exit $ac_status); } 2>conftest.err; then
18505        soname=conftest
18506        lib=conftest
18507        libobjs=conftest.$ac_objext
18508        deplibs=
18509        wl=$lt_prog_compiler_wl_GCJ
18510        compiler_flags=-v
18511        linker_flags=-v
18512        verstring=
18513        output_objdir=.
18514        libname=conftest
18515        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18516        allow_undefined_flag_GCJ=
18517        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18518  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18519  ac_status=$?
18520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521  (exit $ac_status); }
18522        then
18523	  archive_cmds_need_lc_GCJ=no
18524        else
18525	  archive_cmds_need_lc_GCJ=yes
18526        fi
18527        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18528      else
18529        cat conftest.err 1>&5
18530      fi
18531      $rm conftest*
18532      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18533echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18534      ;;
18535    esac
18536  fi
18537  ;;
18538esac
18539
18540echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18541echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18542library_names_spec=
18543libname_spec='lib$name'
18544soname_spec=
18545shrext_cmds=".so"
18546postinstall_cmds=
18547postuninstall_cmds=
18548finish_cmds=
18549finish_eval=
18550shlibpath_var=
18551shlibpath_overrides_runpath=unknown
18552version_type=none
18553dynamic_linker="$host_os ld.so"
18554sys_lib_dlsearch_path_spec="/lib /usr/lib"
18555if test "$GCC" = yes; then
18556  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18557  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18558    # if the path contains ";" then we assume it to be the separator
18559    # otherwise default to the standard path separator (i.e. ":") - it is
18560    # assumed that no part of a normal pathname contains ";" but that should
18561    # okay in the real world where ";" in dirpaths is itself problematic.
18562    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18563  else
18564    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18565  fi
18566else
18567  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18568fi
18569need_lib_prefix=unknown
18570hardcode_into_libs=no
18571
18572# when you set need_version to no, make sure it does not cause -set_version
18573# flags to be left without arguments
18574need_version=unknown
18575
18576case $host_os in
18577aix3*)
18578  version_type=linux
18579  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18580  shlibpath_var=LIBPATH
18581
18582  # AIX 3 has no versioning support, so we append a major version to the name.
18583  soname_spec='${libname}${release}${shared_ext}$major'
18584  ;;
18585
18586aix4* | aix5*)
18587  version_type=linux
18588  need_lib_prefix=no
18589  need_version=no
18590  hardcode_into_libs=yes
18591  if test "$host_cpu" = ia64; then
18592    # AIX 5 supports IA64
18593    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18594    shlibpath_var=LD_LIBRARY_PATH
18595  else
18596    # With GCC up to 2.95.x, collect2 would create an import file
18597    # for dependence libraries.  The import file would start with
18598    # the line `#! .'.  This would cause the generated library to
18599    # depend on `.', always an invalid library.  This was fixed in
18600    # development snapshots of GCC prior to 3.0.
18601    case $host_os in
18602      aix4 | aix4.[01] | aix4.[01].*)
18603      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18604	   echo ' yes '
18605	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18606	:
18607      else
18608	can_build_shared=no
18609      fi
18610      ;;
18611    esac
18612    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18613    # soname into executable. Probably we can add versioning support to
18614    # collect2, so additional links can be useful in future.
18615    if test "$aix_use_runtimelinking" = yes; then
18616      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18617      # instead of lib<name>.a to let people know that these are not
18618      # typical AIX shared libraries.
18619      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18620    else
18621      # We preserve .a as extension for shared libraries through AIX4.2
18622      # and later when we are not doing run time linking.
18623      library_names_spec='${libname}${release}.a $libname.a'
18624      soname_spec='${libname}${release}${shared_ext}$major'
18625    fi
18626    shlibpath_var=LIBPATH
18627  fi
18628  ;;
18629
18630amigaos*)
18631  library_names_spec='$libname.ixlibrary $libname.a'
18632  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18633  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18634  ;;
18635
18636beos*)
18637  library_names_spec='${libname}${shared_ext}'
18638  dynamic_linker="$host_os ld.so"
18639  shlibpath_var=LIBRARY_PATH
18640  ;;
18641
18642bsdi[45]*)
18643  version_type=linux
18644  need_version=no
18645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646  soname_spec='${libname}${release}${shared_ext}$major'
18647  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18648  shlibpath_var=LD_LIBRARY_PATH
18649  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18650  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18651  # the default ld.so.conf also contains /usr/contrib/lib and
18652  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18653  # libtool to hard-code these into programs
18654  ;;
18655
18656cygwin* | mingw* | pw32*)
18657  version_type=windows
18658  shrext_cmds=".dll"
18659  need_version=no
18660  need_lib_prefix=no
18661
18662  case $GCC,$host_os in
18663  yes,cygwin* | yes,mingw* | yes,pw32*)
18664    library_names_spec='$libname.dll.a'
18665    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18666    postinstall_cmds='base_file=`basename \${file}`~
18667      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18668      dldir=$destdir/`dirname \$dlpath`~
18669      test -d \$dldir || mkdir -p \$dldir~
18670      $install_prog $dir/$dlname \$dldir/$dlname'
18671    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18672      dlpath=$dir/\$dldll~
18673       $rm \$dlpath'
18674    shlibpath_overrides_runpath=yes
18675
18676    case $host_os in
18677    cygwin*)
18678      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18679      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18680      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18681      ;;
18682    mingw*)
18683      # MinGW DLLs use traditional 'lib' prefix
18684      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18685      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18686      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18687        # It is most probably a Windows format PATH printed by
18688        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18689        # path with ; separators, and with drive letters. We can handle the
18690        # drive letters (cygwin fileutils understands them), so leave them,
18691        # especially as we might pass files found there to a mingw objdump,
18692        # which wouldn't understand a cygwinified path. Ahh.
18693        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18694      else
18695        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18696      fi
18697      ;;
18698    pw32*)
18699      # pw32 DLLs use 'pw' prefix rather than 'lib'
18700      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18701      ;;
18702    esac
18703    ;;
18704
18705  *)
18706    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18707    ;;
18708  esac
18709  dynamic_linker='Win32 ld.exe'
18710  # FIXME: first we should search . and the directory the executable is in
18711  shlibpath_var=PATH
18712  ;;
18713
18714darwin* | rhapsody*)
18715  dynamic_linker="$host_os dyld"
18716  version_type=darwin
18717  need_lib_prefix=no
18718  need_version=no
18719  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18720  soname_spec='${libname}${release}${major}$shared_ext'
18721  shlibpath_overrides_runpath=yes
18722  shlibpath_var=DYLD_LIBRARY_PATH
18723  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18724  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18725  if test "$GCC" = yes; then
18726    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18727  else
18728    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18729  fi
18730  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18731  ;;
18732
18733dgux*)
18734  version_type=linux
18735  need_lib_prefix=no
18736  need_version=no
18737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18738  soname_spec='${libname}${release}${shared_ext}$major'
18739  shlibpath_var=LD_LIBRARY_PATH
18740  ;;
18741
18742freebsd1*)
18743  dynamic_linker=no
18744  ;;
18745
18746kfreebsd*-gnu)
18747  version_type=linux
18748  need_lib_prefix=no
18749  need_version=no
18750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18751  soname_spec='${libname}${release}${shared_ext}$major'
18752  shlibpath_var=LD_LIBRARY_PATH
18753  shlibpath_overrides_runpath=no
18754  hardcode_into_libs=yes
18755  dynamic_linker='GNU ld.so'
18756  ;;
18757
18758freebsd* | dragonfly*)
18759  # DragonFly does not have aout.  When/if they implement a new
18760  # versioning mechanism, adjust this.
18761  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18762  version_type=freebsd-$objformat
18763  case $version_type in
18764    freebsd-elf*)
18765      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18766      need_version=no
18767      need_lib_prefix=no
18768      ;;
18769    freebsd-*)
18770      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18771      need_version=yes
18772      ;;
18773  esac
18774  shlibpath_var=LD_LIBRARY_PATH
18775  case $host_os in
18776  freebsd2*)
18777    shlibpath_overrides_runpath=yes
18778    ;;
18779  freebsd3.[01]* | freebsdelf3.[01]*)
18780    shlibpath_overrides_runpath=yes
18781    hardcode_into_libs=yes
18782    ;;
18783  *) # from 3.2 on
18784    shlibpath_overrides_runpath=no
18785    hardcode_into_libs=yes
18786    ;;
18787  esac
18788  ;;
18789
18790gnu*)
18791  version_type=linux
18792  need_lib_prefix=no
18793  need_version=no
18794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18795  soname_spec='${libname}${release}${shared_ext}$major'
18796  shlibpath_var=LD_LIBRARY_PATH
18797  hardcode_into_libs=yes
18798  ;;
18799
18800hpux9* | hpux10* | hpux11*)
18801  # Give a soname corresponding to the major version so that dld.sl refuses to
18802  # link against other versions.
18803  version_type=sunos
18804  need_lib_prefix=no
18805  need_version=no
18806  case "$host_cpu" in
18807  ia64*)
18808    shrext_cmds='.so'
18809    hardcode_into_libs=yes
18810    dynamic_linker="$host_os dld.so"
18811    shlibpath_var=LD_LIBRARY_PATH
18812    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18814    soname_spec='${libname}${release}${shared_ext}$major'
18815    if test "X$HPUX_IA64_MODE" = X32; then
18816      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18817    else
18818      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18819    fi
18820    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18821    ;;
18822   hppa*64*)
18823     shrext_cmds='.sl'
18824     hardcode_into_libs=yes
18825     dynamic_linker="$host_os dld.sl"
18826     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18827     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829     soname_spec='${libname}${release}${shared_ext}$major'
18830     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18831     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18832     ;;
18833   *)
18834    shrext_cmds='.sl'
18835    dynamic_linker="$host_os dld.sl"
18836    shlibpath_var=SHLIB_PATH
18837    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18838    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839    soname_spec='${libname}${release}${shared_ext}$major'
18840    ;;
18841  esac
18842  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18843  postinstall_cmds='chmod 555 $lib'
18844  ;;
18845
18846irix5* | irix6* | nonstopux*)
18847  case $host_os in
18848    nonstopux*) version_type=nonstopux ;;
18849    *)
18850	if test "$lt_cv_prog_gnu_ld" = yes; then
18851		version_type=linux
18852	else
18853		version_type=irix
18854	fi ;;
18855  esac
18856  need_lib_prefix=no
18857  need_version=no
18858  soname_spec='${libname}${release}${shared_ext}$major'
18859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18860  case $host_os in
18861  irix5* | nonstopux*)
18862    libsuff= shlibsuff=
18863    ;;
18864  *)
18865    case $LD in # libtool.m4 will add one of these switches to LD
18866    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18867      libsuff= shlibsuff= libmagic=32-bit;;
18868    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18869      libsuff=32 shlibsuff=N32 libmagic=N32;;
18870    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18871      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18872    *) libsuff= shlibsuff= libmagic=never-match;;
18873    esac
18874    ;;
18875  esac
18876  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18877  shlibpath_overrides_runpath=no
18878  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18879  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18880  hardcode_into_libs=yes
18881  ;;
18882
18883# No shared lib support for Linux oldld, aout, or coff.
18884linux*oldld* | linux*aout* | linux*coff*)
18885  dynamic_linker=no
18886  ;;
18887
18888# This must be Linux ELF.
18889linux*)
18890  version_type=linux
18891  need_lib_prefix=no
18892  need_version=no
18893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894  soname_spec='${libname}${release}${shared_ext}$major'
18895  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18896  shlibpath_var=LD_LIBRARY_PATH
18897  shlibpath_overrides_runpath=no
18898  # This implies no fast_install, which is unacceptable.
18899  # Some rework will be needed to allow for fast_install
18900  # before this can be enabled.
18901  hardcode_into_libs=yes
18902
18903  # Append ld.so.conf contents to the search path
18904  if test -f /etc/ld.so.conf; then
18905    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18906    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18907  fi
18908
18909  # We used to test for /lib/ld.so.1 and disable shared libraries on
18910  # powerpc, because MkLinux only supported shared libraries with the
18911  # GNU dynamic linker.  Since this was broken with cross compilers,
18912  # most powerpc-linux boxes support dynamic linking these days and
18913  # people can always --disable-shared, the test was removed, and we
18914  # assume the GNU/Linux dynamic linker is in use.
18915  dynamic_linker='GNU/Linux ld.so'
18916  ;;
18917
18918knetbsd*-gnu)
18919  version_type=linux
18920  need_lib_prefix=no
18921  need_version=no
18922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18923  soname_spec='${libname}${release}${shared_ext}$major'
18924  shlibpath_var=LD_LIBRARY_PATH
18925  shlibpath_overrides_runpath=no
18926  hardcode_into_libs=yes
18927  dynamic_linker='GNU ld.so'
18928  ;;
18929
18930netbsd*)
18931  version_type=sunos
18932  need_lib_prefix=no
18933  need_version=no
18934  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18935    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18936    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18937    dynamic_linker='NetBSD (a.out) ld.so'
18938  else
18939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18940    soname_spec='${libname}${release}${shared_ext}$major'
18941    dynamic_linker='NetBSD ld.elf_so'
18942  fi
18943  shlibpath_var=LD_LIBRARY_PATH
18944  shlibpath_overrides_runpath=yes
18945  hardcode_into_libs=yes
18946  ;;
18947
18948newsos6)
18949  version_type=linux
18950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18951  shlibpath_var=LD_LIBRARY_PATH
18952  shlibpath_overrides_runpath=yes
18953  ;;
18954
18955nto-qnx*)
18956  version_type=linux
18957  need_lib_prefix=no
18958  need_version=no
18959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18960  soname_spec='${libname}${release}${shared_ext}$major'
18961  shlibpath_var=LD_LIBRARY_PATH
18962  shlibpath_overrides_runpath=yes
18963  ;;
18964
18965openbsd*)
18966  version_type=sunos
18967  need_lib_prefix=no
18968  need_version=no
18969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18970  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18971  shlibpath_var=LD_LIBRARY_PATH
18972  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18973    case $host_os in
18974      openbsd2.[89] | openbsd2.[89].*)
18975	shlibpath_overrides_runpath=no
18976	;;
18977      *)
18978	shlibpath_overrides_runpath=yes
18979	;;
18980      esac
18981  else
18982    shlibpath_overrides_runpath=yes
18983  fi
18984  ;;
18985
18986os2*)
18987  libname_spec='$name'
18988  shrext_cmds=".dll"
18989  need_lib_prefix=no
18990  library_names_spec='$libname${shared_ext} $libname.a'
18991  dynamic_linker='OS/2 ld.exe'
18992  shlibpath_var=LIBPATH
18993  ;;
18994
18995osf3* | osf4* | osf5*)
18996  version_type=osf
18997  need_lib_prefix=no
18998  need_version=no
18999  soname_spec='${libname}${release}${shared_ext}$major'
19000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19001  shlibpath_var=LD_LIBRARY_PATH
19002  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19003  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19004  ;;
19005
19006sco3.2v5*)
19007  version_type=osf
19008  soname_spec='${libname}${release}${shared_ext}$major'
19009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010  shlibpath_var=LD_LIBRARY_PATH
19011  ;;
19012
19013solaris*)
19014  version_type=linux
19015  need_lib_prefix=no
19016  need_version=no
19017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018  soname_spec='${libname}${release}${shared_ext}$major'
19019  shlibpath_var=LD_LIBRARY_PATH
19020  shlibpath_overrides_runpath=yes
19021  hardcode_into_libs=yes
19022  # ldd complains unless libraries are executable
19023  postinstall_cmds='chmod +x $lib'
19024  ;;
19025
19026sunos4*)
19027  version_type=sunos
19028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19029  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19030  shlibpath_var=LD_LIBRARY_PATH
19031  shlibpath_overrides_runpath=yes
19032  if test "$with_gnu_ld" = yes; then
19033    need_lib_prefix=no
19034  fi
19035  need_version=yes
19036  ;;
19037
19038sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19039  version_type=linux
19040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19041  soname_spec='${libname}${release}${shared_ext}$major'
19042  shlibpath_var=LD_LIBRARY_PATH
19043  case $host_vendor in
19044    sni)
19045      shlibpath_overrides_runpath=no
19046      need_lib_prefix=no
19047      export_dynamic_flag_spec='${wl}-Blargedynsym'
19048      runpath_var=LD_RUN_PATH
19049      ;;
19050    siemens)
19051      need_lib_prefix=no
19052      ;;
19053    motorola)
19054      need_lib_prefix=no
19055      need_version=no
19056      shlibpath_overrides_runpath=no
19057      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19058      ;;
19059  esac
19060  ;;
19061
19062sysv4*MP*)
19063  if test -d /usr/nec ;then
19064    version_type=linux
19065    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19066    soname_spec='$libname${shared_ext}.$major'
19067    shlibpath_var=LD_LIBRARY_PATH
19068  fi
19069  ;;
19070
19071uts4*)
19072  version_type=linux
19073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19074  soname_spec='${libname}${release}${shared_ext}$major'
19075  shlibpath_var=LD_LIBRARY_PATH
19076  ;;
19077
19078*)
19079  dynamic_linker=no
19080  ;;
19081esac
19082echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19083echo "${ECHO_T}$dynamic_linker" >&6
19084test "$dynamic_linker" = no && can_build_shared=no
19085
19086echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19087echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19088hardcode_action_GCJ=
19089if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19090   test -n "$runpath_var_GCJ" || \
19091   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19092
19093  # We can hardcode non-existant directories.
19094  if test "$hardcode_direct_GCJ" != no &&
19095     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19096     # have to relink, otherwise we might link with an installed library
19097     # when we should be linking with a yet-to-be-installed one
19098     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19099     test "$hardcode_minus_L_GCJ" != no; then
19100    # Linking always hardcodes the temporary library directory.
19101    hardcode_action_GCJ=relink
19102  else
19103    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19104    hardcode_action_GCJ=immediate
19105  fi
19106else
19107  # We cannot hardcode anything, or else we can only hardcode existing
19108  # directories.
19109  hardcode_action_GCJ=unsupported
19110fi
19111echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19112echo "${ECHO_T}$hardcode_action_GCJ" >&6
19113
19114if test "$hardcode_action_GCJ" = relink; then
19115  # Fast installation is not supported
19116  enable_fast_install=no
19117elif test "$shlibpath_overrides_runpath" = yes ||
19118     test "$enable_shared" = no; then
19119  # Fast installation is not necessary
19120  enable_fast_install=needless
19121fi
19122
19123striplib=
19124old_striplib=
19125echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19126echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19127if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19128  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19129  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19130  echo "$as_me:$LINENO: result: yes" >&5
19131echo "${ECHO_T}yes" >&6
19132else
19133# FIXME - insert some real tests, host_os isn't really good enough
19134  case $host_os in
19135   darwin*)
19136       if test -n "$STRIP" ; then
19137         striplib="$STRIP -x"
19138         echo "$as_me:$LINENO: result: yes" >&5
19139echo "${ECHO_T}yes" >&6
19140       else
19141  echo "$as_me:$LINENO: result: no" >&5
19142echo "${ECHO_T}no" >&6
19143fi
19144       ;;
19145   *)
19146  echo "$as_me:$LINENO: result: no" >&5
19147echo "${ECHO_T}no" >&6
19148    ;;
19149  esac
19150fi
19151
19152if test "x$enable_dlopen" != xyes; then
19153  enable_dlopen=unknown
19154  enable_dlopen_self=unknown
19155  enable_dlopen_self_static=unknown
19156else
19157  lt_cv_dlopen=no
19158  lt_cv_dlopen_libs=
19159
19160  case $host_os in
19161  beos*)
19162    lt_cv_dlopen="load_add_on"
19163    lt_cv_dlopen_libs=
19164    lt_cv_dlopen_self=yes
19165    ;;
19166
19167  mingw* | pw32*)
19168    lt_cv_dlopen="LoadLibrary"
19169    lt_cv_dlopen_libs=
19170   ;;
19171
19172  cygwin*)
19173    lt_cv_dlopen="dlopen"
19174    lt_cv_dlopen_libs=
19175   ;;
19176
19177  darwin*)
19178  # if libdl is installed we need to link against it
19179    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19180echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19181if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19182  echo $ECHO_N "(cached) $ECHO_C" >&6
19183else
19184  ac_check_lib_save_LIBS=$LIBS
19185LIBS="-ldl  $LIBS"
19186cat >conftest.$ac_ext <<_ACEOF
19187/* confdefs.h.  */
19188_ACEOF
19189cat confdefs.h >>conftest.$ac_ext
19190cat >>conftest.$ac_ext <<_ACEOF
19191/* end confdefs.h.  */
19192
19193/* Override any gcc2 internal prototype to avoid an error.  */
19194#ifdef __cplusplus
19195extern "C"
19196#endif
19197/* We use char because int might match the return type of a gcc2
19198   builtin and then its argument prototype would still apply.  */
19199char dlopen ();
19200int
19201main ()
19202{
19203dlopen ();
19204  ;
19205  return 0;
19206}
19207_ACEOF
19208rm -f conftest.$ac_objext conftest$ac_exeext
19209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210  (eval $ac_link) 2>conftest.er1
19211  ac_status=$?
19212  grep -v '^ *+' conftest.er1 >conftest.err
19213  rm -f conftest.er1
19214  cat conftest.err >&5
19215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216  (exit $ac_status); } &&
19217	 { ac_try='test -z "$ac_c_werror_flag"
19218			 || test ! -s conftest.err'
19219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220  (eval $ac_try) 2>&5
19221  ac_status=$?
19222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223  (exit $ac_status); }; } &&
19224	 { ac_try='test -s conftest$ac_exeext'
19225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226  (eval $ac_try) 2>&5
19227  ac_status=$?
19228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229  (exit $ac_status); }; }; then
19230  ac_cv_lib_dl_dlopen=yes
19231else
19232  echo "$as_me: failed program was:" >&5
19233sed 's/^/| /' conftest.$ac_ext >&5
19234
19235ac_cv_lib_dl_dlopen=no
19236fi
19237rm -f conftest.err conftest.$ac_objext \
19238      conftest$ac_exeext conftest.$ac_ext
19239LIBS=$ac_check_lib_save_LIBS
19240fi
19241echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19242echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19243if test $ac_cv_lib_dl_dlopen = yes; then
19244  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19245else
19246
19247    lt_cv_dlopen="dyld"
19248    lt_cv_dlopen_libs=
19249    lt_cv_dlopen_self=yes
19250
19251fi
19252
19253   ;;
19254
19255  *)
19256    echo "$as_me:$LINENO: checking for shl_load" >&5
19257echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19258if test "${ac_cv_func_shl_load+set}" = set; then
19259  echo $ECHO_N "(cached) $ECHO_C" >&6
19260else
19261  cat >conftest.$ac_ext <<_ACEOF
19262/* confdefs.h.  */
19263_ACEOF
19264cat confdefs.h >>conftest.$ac_ext
19265cat >>conftest.$ac_ext <<_ACEOF
19266/* end confdefs.h.  */
19267/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19268   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19269#define shl_load innocuous_shl_load
19270
19271/* System header to define __stub macros and hopefully few prototypes,
19272    which can conflict with char shl_load (); below.
19273    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19274    <limits.h> exists even on freestanding compilers.  */
19275
19276#ifdef __STDC__
19277# include <limits.h>
19278#else
19279# include <assert.h>
19280#endif
19281
19282#undef shl_load
19283
19284/* Override any gcc2 internal prototype to avoid an error.  */
19285#ifdef __cplusplus
19286extern "C"
19287{
19288#endif
19289/* We use char because int might match the return type of a gcc2
19290   builtin and then its argument prototype would still apply.  */
19291char shl_load ();
19292/* The GNU C library defines this for functions which it implements
19293    to always fail with ENOSYS.  Some functions are actually named
19294    something starting with __ and the normal name is an alias.  */
19295#if defined (__stub_shl_load) || defined (__stub___shl_load)
19296choke me
19297#else
19298char (*f) () = shl_load;
19299#endif
19300#ifdef __cplusplus
19301}
19302#endif
19303
19304int
19305main ()
19306{
19307return f != shl_load;
19308  ;
19309  return 0;
19310}
19311_ACEOF
19312rm -f conftest.$ac_objext conftest$ac_exeext
19313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19314  (eval $ac_link) 2>conftest.er1
19315  ac_status=$?
19316  grep -v '^ *+' conftest.er1 >conftest.err
19317  rm -f conftest.er1
19318  cat conftest.err >&5
19319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320  (exit $ac_status); } &&
19321	 { ac_try='test -z "$ac_c_werror_flag"
19322			 || test ! -s conftest.err'
19323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324  (eval $ac_try) 2>&5
19325  ac_status=$?
19326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327  (exit $ac_status); }; } &&
19328	 { ac_try='test -s conftest$ac_exeext'
19329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330  (eval $ac_try) 2>&5
19331  ac_status=$?
19332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333  (exit $ac_status); }; }; then
19334  ac_cv_func_shl_load=yes
19335else
19336  echo "$as_me: failed program was:" >&5
19337sed 's/^/| /' conftest.$ac_ext >&5
19338
19339ac_cv_func_shl_load=no
19340fi
19341rm -f conftest.err conftest.$ac_objext \
19342      conftest$ac_exeext conftest.$ac_ext
19343fi
19344echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19345echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19346if test $ac_cv_func_shl_load = yes; then
19347  lt_cv_dlopen="shl_load"
19348else
19349  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19350echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19351if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19352  echo $ECHO_N "(cached) $ECHO_C" >&6
19353else
19354  ac_check_lib_save_LIBS=$LIBS
19355LIBS="-ldld  $LIBS"
19356cat >conftest.$ac_ext <<_ACEOF
19357/* confdefs.h.  */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h.  */
19362
19363/* Override any gcc2 internal prototype to avoid an error.  */
19364#ifdef __cplusplus
19365extern "C"
19366#endif
19367/* We use char because int might match the return type of a gcc2
19368   builtin and then its argument prototype would still apply.  */
19369char shl_load ();
19370int
19371main ()
19372{
19373shl_load ();
19374  ;
19375  return 0;
19376}
19377_ACEOF
19378rm -f conftest.$ac_objext conftest$ac_exeext
19379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19380  (eval $ac_link) 2>conftest.er1
19381  ac_status=$?
19382  grep -v '^ *+' conftest.er1 >conftest.err
19383  rm -f conftest.er1
19384  cat conftest.err >&5
19385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386  (exit $ac_status); } &&
19387	 { ac_try='test -z "$ac_c_werror_flag"
19388			 || test ! -s conftest.err'
19389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390  (eval $ac_try) 2>&5
19391  ac_status=$?
19392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393  (exit $ac_status); }; } &&
19394	 { ac_try='test -s conftest$ac_exeext'
19395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396  (eval $ac_try) 2>&5
19397  ac_status=$?
19398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399  (exit $ac_status); }; }; then
19400  ac_cv_lib_dld_shl_load=yes
19401else
19402  echo "$as_me: failed program was:" >&5
19403sed 's/^/| /' conftest.$ac_ext >&5
19404
19405ac_cv_lib_dld_shl_load=no
19406fi
19407rm -f conftest.err conftest.$ac_objext \
19408      conftest$ac_exeext conftest.$ac_ext
19409LIBS=$ac_check_lib_save_LIBS
19410fi
19411echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19412echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19413if test $ac_cv_lib_dld_shl_load = yes; then
19414  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19415else
19416  echo "$as_me:$LINENO: checking for dlopen" >&5
19417echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19418if test "${ac_cv_func_dlopen+set}" = set; then
19419  echo $ECHO_N "(cached) $ECHO_C" >&6
19420else
19421  cat >conftest.$ac_ext <<_ACEOF
19422/* confdefs.h.  */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h.  */
19427/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19428   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19429#define dlopen innocuous_dlopen
19430
19431/* System header to define __stub macros and hopefully few prototypes,
19432    which can conflict with char dlopen (); below.
19433    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19434    <limits.h> exists even on freestanding compilers.  */
19435
19436#ifdef __STDC__
19437# include <limits.h>
19438#else
19439# include <assert.h>
19440#endif
19441
19442#undef dlopen
19443
19444/* Override any gcc2 internal prototype to avoid an error.  */
19445#ifdef __cplusplus
19446extern "C"
19447{
19448#endif
19449/* We use char because int might match the return type of a gcc2
19450   builtin and then its argument prototype would still apply.  */
19451char dlopen ();
19452/* The GNU C library defines this for functions which it implements
19453    to always fail with ENOSYS.  Some functions are actually named
19454    something starting with __ and the normal name is an alias.  */
19455#if defined (__stub_dlopen) || defined (__stub___dlopen)
19456choke me
19457#else
19458char (*f) () = dlopen;
19459#endif
19460#ifdef __cplusplus
19461}
19462#endif
19463
19464int
19465main ()
19466{
19467return f != dlopen;
19468  ;
19469  return 0;
19470}
19471_ACEOF
19472rm -f conftest.$ac_objext conftest$ac_exeext
19473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19474  (eval $ac_link) 2>conftest.er1
19475  ac_status=$?
19476  grep -v '^ *+' conftest.er1 >conftest.err
19477  rm -f conftest.er1
19478  cat conftest.err >&5
19479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480  (exit $ac_status); } &&
19481	 { ac_try='test -z "$ac_c_werror_flag"
19482			 || test ! -s conftest.err'
19483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484  (eval $ac_try) 2>&5
19485  ac_status=$?
19486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487  (exit $ac_status); }; } &&
19488	 { ac_try='test -s conftest$ac_exeext'
19489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490  (eval $ac_try) 2>&5
19491  ac_status=$?
19492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493  (exit $ac_status); }; }; then
19494  ac_cv_func_dlopen=yes
19495else
19496  echo "$as_me: failed program was:" >&5
19497sed 's/^/| /' conftest.$ac_ext >&5
19498
19499ac_cv_func_dlopen=no
19500fi
19501rm -f conftest.err conftest.$ac_objext \
19502      conftest$ac_exeext conftest.$ac_ext
19503fi
19504echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19505echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19506if test $ac_cv_func_dlopen = yes; then
19507  lt_cv_dlopen="dlopen"
19508else
19509  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19510echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19511if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19512  echo $ECHO_N "(cached) $ECHO_C" >&6
19513else
19514  ac_check_lib_save_LIBS=$LIBS
19515LIBS="-ldl  $LIBS"
19516cat >conftest.$ac_ext <<_ACEOF
19517/* confdefs.h.  */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
19521/* end confdefs.h.  */
19522
19523/* Override any gcc2 internal prototype to avoid an error.  */
19524#ifdef __cplusplus
19525extern "C"
19526#endif
19527/* We use char because int might match the return type of a gcc2
19528   builtin and then its argument prototype would still apply.  */
19529char dlopen ();
19530int
19531main ()
19532{
19533dlopen ();
19534  ;
19535  return 0;
19536}
19537_ACEOF
19538rm -f conftest.$ac_objext conftest$ac_exeext
19539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540  (eval $ac_link) 2>conftest.er1
19541  ac_status=$?
19542  grep -v '^ *+' conftest.er1 >conftest.err
19543  rm -f conftest.er1
19544  cat conftest.err >&5
19545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546  (exit $ac_status); } &&
19547	 { ac_try='test -z "$ac_c_werror_flag"
19548			 || test ! -s conftest.err'
19549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550  (eval $ac_try) 2>&5
19551  ac_status=$?
19552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553  (exit $ac_status); }; } &&
19554	 { ac_try='test -s conftest$ac_exeext'
19555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556  (eval $ac_try) 2>&5
19557  ac_status=$?
19558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559  (exit $ac_status); }; }; then
19560  ac_cv_lib_dl_dlopen=yes
19561else
19562  echo "$as_me: failed program was:" >&5
19563sed 's/^/| /' conftest.$ac_ext >&5
19564
19565ac_cv_lib_dl_dlopen=no
19566fi
19567rm -f conftest.err conftest.$ac_objext \
19568      conftest$ac_exeext conftest.$ac_ext
19569LIBS=$ac_check_lib_save_LIBS
19570fi
19571echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19572echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19573if test $ac_cv_lib_dl_dlopen = yes; then
19574  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19575else
19576  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19577echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19578if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19579  echo $ECHO_N "(cached) $ECHO_C" >&6
19580else
19581  ac_check_lib_save_LIBS=$LIBS
19582LIBS="-lsvld  $LIBS"
19583cat >conftest.$ac_ext <<_ACEOF
19584/* confdefs.h.  */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h.  */
19589
19590/* Override any gcc2 internal prototype to avoid an error.  */
19591#ifdef __cplusplus
19592extern "C"
19593#endif
19594/* We use char because int might match the return type of a gcc2
19595   builtin and then its argument prototype would still apply.  */
19596char dlopen ();
19597int
19598main ()
19599{
19600dlopen ();
19601  ;
19602  return 0;
19603}
19604_ACEOF
19605rm -f conftest.$ac_objext conftest$ac_exeext
19606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19607  (eval $ac_link) 2>conftest.er1
19608  ac_status=$?
19609  grep -v '^ *+' conftest.er1 >conftest.err
19610  rm -f conftest.er1
19611  cat conftest.err >&5
19612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613  (exit $ac_status); } &&
19614	 { ac_try='test -z "$ac_c_werror_flag"
19615			 || test ! -s conftest.err'
19616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617  (eval $ac_try) 2>&5
19618  ac_status=$?
19619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620  (exit $ac_status); }; } &&
19621	 { ac_try='test -s conftest$ac_exeext'
19622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623  (eval $ac_try) 2>&5
19624  ac_status=$?
19625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626  (exit $ac_status); }; }; then
19627  ac_cv_lib_svld_dlopen=yes
19628else
19629  echo "$as_me: failed program was:" >&5
19630sed 's/^/| /' conftest.$ac_ext >&5
19631
19632ac_cv_lib_svld_dlopen=no
19633fi
19634rm -f conftest.err conftest.$ac_objext \
19635      conftest$ac_exeext conftest.$ac_ext
19636LIBS=$ac_check_lib_save_LIBS
19637fi
19638echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19639echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19640if test $ac_cv_lib_svld_dlopen = yes; then
19641  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19642else
19643  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19644echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19645if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19646  echo $ECHO_N "(cached) $ECHO_C" >&6
19647else
19648  ac_check_lib_save_LIBS=$LIBS
19649LIBS="-ldld  $LIBS"
19650cat >conftest.$ac_ext <<_ACEOF
19651/* confdefs.h.  */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h.  */
19656
19657/* Override any gcc2 internal prototype to avoid an error.  */
19658#ifdef __cplusplus
19659extern "C"
19660#endif
19661/* We use char because int might match the return type of a gcc2
19662   builtin and then its argument prototype would still apply.  */
19663char dld_link ();
19664int
19665main ()
19666{
19667dld_link ();
19668  ;
19669  return 0;
19670}
19671_ACEOF
19672rm -f conftest.$ac_objext conftest$ac_exeext
19673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19674  (eval $ac_link) 2>conftest.er1
19675  ac_status=$?
19676  grep -v '^ *+' conftest.er1 >conftest.err
19677  rm -f conftest.er1
19678  cat conftest.err >&5
19679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680  (exit $ac_status); } &&
19681	 { ac_try='test -z "$ac_c_werror_flag"
19682			 || test ! -s conftest.err'
19683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684  (eval $ac_try) 2>&5
19685  ac_status=$?
19686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687  (exit $ac_status); }; } &&
19688	 { ac_try='test -s conftest$ac_exeext'
19689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690  (eval $ac_try) 2>&5
19691  ac_status=$?
19692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693  (exit $ac_status); }; }; then
19694  ac_cv_lib_dld_dld_link=yes
19695else
19696  echo "$as_me: failed program was:" >&5
19697sed 's/^/| /' conftest.$ac_ext >&5
19698
19699ac_cv_lib_dld_dld_link=no
19700fi
19701rm -f conftest.err conftest.$ac_objext \
19702      conftest$ac_exeext conftest.$ac_ext
19703LIBS=$ac_check_lib_save_LIBS
19704fi
19705echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19706echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19707if test $ac_cv_lib_dld_dld_link = yes; then
19708  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19709fi
19710
19711
19712fi
19713
19714
19715fi
19716
19717
19718fi
19719
19720
19721fi
19722
19723
19724fi
19725
19726    ;;
19727  esac
19728
19729  if test "x$lt_cv_dlopen" != xno; then
19730    enable_dlopen=yes
19731  else
19732    enable_dlopen=no
19733  fi
19734
19735  case $lt_cv_dlopen in
19736  dlopen)
19737    save_CPPFLAGS="$CPPFLAGS"
19738    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19739
19740    save_LDFLAGS="$LDFLAGS"
19741    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19742
19743    save_LIBS="$LIBS"
19744    LIBS="$lt_cv_dlopen_libs $LIBS"
19745
19746    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19747echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19748if test "${lt_cv_dlopen_self+set}" = set; then
19749  echo $ECHO_N "(cached) $ECHO_C" >&6
19750else
19751  	  if test "$cross_compiling" = yes; then :
19752  lt_cv_dlopen_self=cross
19753else
19754  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19755  lt_status=$lt_dlunknown
19756  cat > conftest.$ac_ext <<EOF
19757#line 19757 "configure"
19758#include "confdefs.h"
19759
19760#if HAVE_DLFCN_H
19761#include <dlfcn.h>
19762#endif
19763
19764#include <stdio.h>
19765
19766#ifdef RTLD_GLOBAL
19767#  define LT_DLGLOBAL		RTLD_GLOBAL
19768#else
19769#  ifdef DL_GLOBAL
19770#    define LT_DLGLOBAL		DL_GLOBAL
19771#  else
19772#    define LT_DLGLOBAL		0
19773#  endif
19774#endif
19775
19776/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19777   find out it does not work in some platform. */
19778#ifndef LT_DLLAZY_OR_NOW
19779#  ifdef RTLD_LAZY
19780#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19781#  else
19782#    ifdef DL_LAZY
19783#      define LT_DLLAZY_OR_NOW		DL_LAZY
19784#    else
19785#      ifdef RTLD_NOW
19786#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19787#      else
19788#        ifdef DL_NOW
19789#          define LT_DLLAZY_OR_NOW	DL_NOW
19790#        else
19791#          define LT_DLLAZY_OR_NOW	0
19792#        endif
19793#      endif
19794#    endif
19795#  endif
19796#endif
19797
19798#ifdef __cplusplus
19799extern "C" void exit (int);
19800#endif
19801
19802void fnord() { int i=42;}
19803int main ()
19804{
19805  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19806  int status = $lt_dlunknown;
19807
19808  if (self)
19809    {
19810      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19811      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19812      /* dlclose (self); */
19813    }
19814
19815    exit (status);
19816}
19817EOF
19818  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19819  (eval $ac_link) 2>&5
19820  ac_status=$?
19821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19823    (./conftest; exit; ) 2>/dev/null
19824    lt_status=$?
19825    case x$lt_status in
19826      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19827      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19828      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19829    esac
19830  else :
19831    # compilation failed
19832    lt_cv_dlopen_self=no
19833  fi
19834fi
19835rm -fr conftest*
19836
19837
19838fi
19839echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19840echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19841
19842    if test "x$lt_cv_dlopen_self" = xyes; then
19843      LDFLAGS="$LDFLAGS $link_static_flag"
19844      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19845echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19846if test "${lt_cv_dlopen_self_static+set}" = set; then
19847  echo $ECHO_N "(cached) $ECHO_C" >&6
19848else
19849  	  if test "$cross_compiling" = yes; then :
19850  lt_cv_dlopen_self_static=cross
19851else
19852  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19853  lt_status=$lt_dlunknown
19854  cat > conftest.$ac_ext <<EOF
19855#line 19855 "configure"
19856#include "confdefs.h"
19857
19858#if HAVE_DLFCN_H
19859#include <dlfcn.h>
19860#endif
19861
19862#include <stdio.h>
19863
19864#ifdef RTLD_GLOBAL
19865#  define LT_DLGLOBAL		RTLD_GLOBAL
19866#else
19867#  ifdef DL_GLOBAL
19868#    define LT_DLGLOBAL		DL_GLOBAL
19869#  else
19870#    define LT_DLGLOBAL		0
19871#  endif
19872#endif
19873
19874/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19875   find out it does not work in some platform. */
19876#ifndef LT_DLLAZY_OR_NOW
19877#  ifdef RTLD_LAZY
19878#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19879#  else
19880#    ifdef DL_LAZY
19881#      define LT_DLLAZY_OR_NOW		DL_LAZY
19882#    else
19883#      ifdef RTLD_NOW
19884#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19885#      else
19886#        ifdef DL_NOW
19887#          define LT_DLLAZY_OR_NOW	DL_NOW
19888#        else
19889#          define LT_DLLAZY_OR_NOW	0
19890#        endif
19891#      endif
19892#    endif
19893#  endif
19894#endif
19895
19896#ifdef __cplusplus
19897extern "C" void exit (int);
19898#endif
19899
19900void fnord() { int i=42;}
19901int main ()
19902{
19903  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19904  int status = $lt_dlunknown;
19905
19906  if (self)
19907    {
19908      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19909      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19910      /* dlclose (self); */
19911    }
19912
19913    exit (status);
19914}
19915EOF
19916  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19917  (eval $ac_link) 2>&5
19918  ac_status=$?
19919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19921    (./conftest; exit; ) 2>/dev/null
19922    lt_status=$?
19923    case x$lt_status in
19924      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19925      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19926      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19927    esac
19928  else :
19929    # compilation failed
19930    lt_cv_dlopen_self_static=no
19931  fi
19932fi
19933rm -fr conftest*
19934
19935
19936fi
19937echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19938echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19939    fi
19940
19941    CPPFLAGS="$save_CPPFLAGS"
19942    LDFLAGS="$save_LDFLAGS"
19943    LIBS="$save_LIBS"
19944    ;;
19945  esac
19946
19947  case $lt_cv_dlopen_self in
19948  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19949  *) enable_dlopen_self=unknown ;;
19950  esac
19951
19952  case $lt_cv_dlopen_self_static in
19953  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19954  *) enable_dlopen_self_static=unknown ;;
19955  esac
19956fi
19957
19958
19959# The else clause should only fire when bootstrapping the
19960# libtool distribution, otherwise you forgot to ship ltmain.sh
19961# with your package, and you will get complaints that there are
19962# no rules to generate ltmain.sh.
19963if test -f "$ltmain"; then
19964  # See if we are running on zsh, and set the options which allow our commands through
19965  # without removal of \ escapes.
19966  if test -n "${ZSH_VERSION+set}" ; then
19967    setopt NO_GLOB_SUBST
19968  fi
19969  # Now quote all the things that may contain metacharacters while being
19970  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19971  # variables and quote the copies for generation of the libtool script.
19972  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19973    SED SHELL STRIP \
19974    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19975    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19976    deplibs_check_method reload_flag reload_cmds need_locks \
19977    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19978    lt_cv_sys_global_symbol_to_c_name_address \
19979    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19980    old_postinstall_cmds old_postuninstall_cmds \
19981    compiler_GCJ \
19982    CC_GCJ \
19983    LD_GCJ \
19984    lt_prog_compiler_wl_GCJ \
19985    lt_prog_compiler_pic_GCJ \
19986    lt_prog_compiler_static_GCJ \
19987    lt_prog_compiler_no_builtin_flag_GCJ \
19988    export_dynamic_flag_spec_GCJ \
19989    thread_safe_flag_spec_GCJ \
19990    whole_archive_flag_spec_GCJ \
19991    enable_shared_with_static_runtimes_GCJ \
19992    old_archive_cmds_GCJ \
19993    old_archive_from_new_cmds_GCJ \
19994    predep_objects_GCJ \
19995    postdep_objects_GCJ \
19996    predeps_GCJ \
19997    postdeps_GCJ \
19998    compiler_lib_search_path_GCJ \
19999    archive_cmds_GCJ \
20000    archive_expsym_cmds_GCJ \
20001    postinstall_cmds_GCJ \
20002    postuninstall_cmds_GCJ \
20003    old_archive_from_expsyms_cmds_GCJ \
20004    allow_undefined_flag_GCJ \
20005    no_undefined_flag_GCJ \
20006    export_symbols_cmds_GCJ \
20007    hardcode_libdir_flag_spec_GCJ \
20008    hardcode_libdir_flag_spec_ld_GCJ \
20009    hardcode_libdir_separator_GCJ \
20010    hardcode_automatic_GCJ \
20011    module_cmds_GCJ \
20012    module_expsym_cmds_GCJ \
20013    lt_cv_prog_compiler_c_o_GCJ \
20014    exclude_expsyms_GCJ \
20015    include_expsyms_GCJ; do
20016
20017    case $var in
20018    old_archive_cmds_GCJ | \
20019    old_archive_from_new_cmds_GCJ | \
20020    archive_cmds_GCJ | \
20021    archive_expsym_cmds_GCJ | \
20022    module_cmds_GCJ | \
20023    module_expsym_cmds_GCJ | \
20024    old_archive_from_expsyms_cmds_GCJ | \
20025    export_symbols_cmds_GCJ | \
20026    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20027    postinstall_cmds | postuninstall_cmds | \
20028    old_postinstall_cmds | old_postuninstall_cmds | \
20029    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20030      # Double-quote double-evaled strings.
20031      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20032      ;;
20033    *)
20034      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20035      ;;
20036    esac
20037  done
20038
20039  case $lt_echo in
20040  *'\$0 --fallback-echo"')
20041    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20042    ;;
20043  esac
20044
20045cfgfile="$ofile"
20046
20047  cat <<__EOF__ >> "$cfgfile"
20048# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20049
20050# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20051
20052# Shell to use when invoking shell scripts.
20053SHELL=$lt_SHELL
20054
20055# Whether or not to build shared libraries.
20056build_libtool_libs=$enable_shared
20057
20058# Whether or not to build static libraries.
20059build_old_libs=$enable_static
20060
20061# Whether or not to add -lc for building shared libraries.
20062build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20063
20064# Whether or not to disallow shared libs when runtime libs are static
20065allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20066
20067# Whether or not to optimize for fast installation.
20068fast_install=$enable_fast_install
20069
20070# The host system.
20071host_alias=$host_alias
20072host=$host
20073host_os=$host_os
20074
20075# The build system.
20076build_alias=$build_alias
20077build=$build
20078build_os=$build_os
20079
20080# An echo program that does not interpret backslashes.
20081echo=$lt_echo
20082
20083# The archiver.
20084AR=$lt_AR
20085AR_FLAGS=$lt_AR_FLAGS
20086
20087# A C compiler.
20088LTCC=$lt_LTCC
20089
20090# A language-specific compiler.
20091CC=$lt_compiler_GCJ
20092
20093# Is the compiler the GNU C compiler?
20094with_gcc=$GCC_GCJ
20095
20096# An ERE matcher.
20097EGREP=$lt_EGREP
20098
20099# The linker used to build libraries.
20100LD=$lt_LD_GCJ
20101
20102# Whether we need hard or soft links.
20103LN_S=$lt_LN_S
20104
20105# A BSD-compatible nm program.
20106NM=$lt_NM
20107
20108# A symbol stripping program
20109STRIP=$lt_STRIP
20110
20111# Used to examine libraries when file_magic_cmd begins "file"
20112MAGIC_CMD=$MAGIC_CMD
20113
20114# Used on cygwin: DLL creation program.
20115DLLTOOL="$DLLTOOL"
20116
20117# Used on cygwin: object dumper.
20118OBJDUMP="$OBJDUMP"
20119
20120# Used on cygwin: assembler.
20121AS="$AS"
20122
20123# The name of the directory that contains temporary libtool files.
20124objdir=$objdir
20125
20126# How to create reloadable object files.
20127reload_flag=$lt_reload_flag
20128reload_cmds=$lt_reload_cmds
20129
20130# How to pass a linker flag through the compiler.
20131wl=$lt_lt_prog_compiler_wl_GCJ
20132
20133# Object file suffix (normally "o").
20134objext="$ac_objext"
20135
20136# Old archive suffix (normally "a").
20137libext="$libext"
20138
20139# Shared library suffix (normally ".so").
20140shrext_cmds='$shrext_cmds'
20141
20142# Executable file suffix (normally "").
20143exeext="$exeext"
20144
20145# Additional compiler flags for building library objects.
20146pic_flag=$lt_lt_prog_compiler_pic_GCJ
20147pic_mode=$pic_mode
20148
20149# What is the maximum length of a command?
20150max_cmd_len=$lt_cv_sys_max_cmd_len
20151
20152# Does compiler simultaneously support -c and -o options?
20153compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20154
20155# Must we lock files when doing compilation ?
20156need_locks=$lt_need_locks
20157
20158# Do we need the lib prefix for modules?
20159need_lib_prefix=$need_lib_prefix
20160
20161# Do we need a version for libraries?
20162need_version=$need_version
20163
20164# Whether dlopen is supported.
20165dlopen_support=$enable_dlopen
20166
20167# Whether dlopen of programs is supported.
20168dlopen_self=$enable_dlopen_self
20169
20170# Whether dlopen of statically linked programs is supported.
20171dlopen_self_static=$enable_dlopen_self_static
20172
20173# Compiler flag to prevent dynamic linking.
20174link_static_flag=$lt_lt_prog_compiler_static_GCJ
20175
20176# Compiler flag to turn off builtin functions.
20177no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20178
20179# Compiler flag to allow reflexive dlopens.
20180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20181
20182# Compiler flag to generate shared objects directly from archives.
20183whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20184
20185# Compiler flag to generate thread-safe objects.
20186thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20187
20188# Library versioning type.
20189version_type=$version_type
20190
20191# Format of library name prefix.
20192libname_spec=$lt_libname_spec
20193
20194# List of archive names.  First name is the real one, the rest are links.
20195# The last name is the one that the linker finds with -lNAME.
20196library_names_spec=$lt_library_names_spec
20197
20198# The coded name of the library, if different from the real name.
20199soname_spec=$lt_soname_spec
20200
20201# Commands used to build and install an old-style archive.
20202RANLIB=$lt_RANLIB
20203old_archive_cmds=$lt_old_archive_cmds_GCJ
20204old_postinstall_cmds=$lt_old_postinstall_cmds
20205old_postuninstall_cmds=$lt_old_postuninstall_cmds
20206
20207# Create an old-style archive from a shared archive.
20208old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20209
20210# Create a temporary old-style archive to link instead of a shared archive.
20211old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20212
20213# Commands used to build and install a shared archive.
20214archive_cmds=$lt_archive_cmds_GCJ
20215archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20216postinstall_cmds=$lt_postinstall_cmds
20217postuninstall_cmds=$lt_postuninstall_cmds
20218
20219# Commands used to build a loadable module (assumed same as above if empty)
20220module_cmds=$lt_module_cmds_GCJ
20221module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20222
20223# Commands to strip libraries.
20224old_striplib=$lt_old_striplib
20225striplib=$lt_striplib
20226
20227# Dependencies to place before the objects being linked to create a
20228# shared library.
20229predep_objects=$lt_predep_objects_GCJ
20230
20231# Dependencies to place after the objects being linked to create a
20232# shared library.
20233postdep_objects=$lt_postdep_objects_GCJ
20234
20235# Dependencies to place before the objects being linked to create a
20236# shared library.
20237predeps=$lt_predeps_GCJ
20238
20239# Dependencies to place after the objects being linked to create a
20240# shared library.
20241postdeps=$lt_postdeps_GCJ
20242
20243# The library search path used internally by the compiler when linking
20244# a shared library.
20245compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20246
20247# Method to check whether dependent libraries are shared objects.
20248deplibs_check_method=$lt_deplibs_check_method
20249
20250# Command to use when deplibs_check_method == file_magic.
20251file_magic_cmd=$lt_file_magic_cmd
20252
20253# Flag that allows shared libraries with undefined symbols to be built.
20254allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20255
20256# Flag that forces no undefined symbols.
20257no_undefined_flag=$lt_no_undefined_flag_GCJ
20258
20259# Commands used to finish a libtool library installation in a directory.
20260finish_cmds=$lt_finish_cmds
20261
20262# Same as above, but a single script fragment to be evaled but not shown.
20263finish_eval=$lt_finish_eval
20264
20265# Take the output of nm and produce a listing of raw symbols and C names.
20266global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20267
20268# Transform the output of nm in a proper C declaration
20269global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20270
20271# Transform the output of nm in a C name address pair
20272global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20273
20274# This is the shared library runtime path variable.
20275runpath_var=$runpath_var
20276
20277# This is the shared library path variable.
20278shlibpath_var=$shlibpath_var
20279
20280# Is shlibpath searched before the hard-coded library search path?
20281shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20282
20283# How to hardcode a shared library path into an executable.
20284hardcode_action=$hardcode_action_GCJ
20285
20286# Whether we should hardcode library paths into libraries.
20287hardcode_into_libs=$hardcode_into_libs
20288
20289# Flag to hardcode \$libdir into a binary during linking.
20290# This must work even if \$libdir does not exist.
20291hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20292
20293# If ld is used when linking, flag to hardcode \$libdir into
20294# a binary during linking. This must work even if \$libdir does
20295# not exist.
20296hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20297
20298# Whether we need a single -rpath flag with a separated argument.
20299hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20300
20301# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20302# resulting binary.
20303hardcode_direct=$hardcode_direct_GCJ
20304
20305# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20306# resulting binary.
20307hardcode_minus_L=$hardcode_minus_L_GCJ
20308
20309# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20310# the resulting binary.
20311hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20312
20313# Set to yes if building a shared library automatically hardcodes DIR into the library
20314# and all subsequent libraries and executables linked against it.
20315hardcode_automatic=$hardcode_automatic_GCJ
20316
20317# Variables whose values should be saved in libtool wrapper scripts and
20318# restored at relink time.
20319variables_saved_for_relink="$variables_saved_for_relink"
20320
20321# Whether libtool must link a program against all its dependency libraries.
20322link_all_deplibs=$link_all_deplibs_GCJ
20323
20324# Compile-time system search path for libraries
20325sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20326
20327# Run-time system search path for libraries
20328sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20329
20330# Fix the shell variable \$srcfile for the compiler.
20331fix_srcfile_path="$fix_srcfile_path_GCJ"
20332
20333# Set to yes if exported symbols are required.
20334always_export_symbols=$always_export_symbols_GCJ
20335
20336# The commands to list exported symbols.
20337export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20338
20339# The commands to extract the exported symbol list from a shared archive.
20340extract_expsyms_cmds=$lt_extract_expsyms_cmds
20341
20342# Symbols that should not be listed in the preloaded symbols.
20343exclude_expsyms=$lt_exclude_expsyms_GCJ
20344
20345# Symbols that must always be exported.
20346include_expsyms=$lt_include_expsyms_GCJ
20347
20348# ### END LIBTOOL TAG CONFIG: $tagname
20349
20350__EOF__
20351
20352
20353else
20354  # If there is no Makefile yet, we rely on a make rule to execute
20355  # `config.status --recheck' to rerun these tests and create the
20356  # libtool script then.
20357  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20358  if test -f "$ltmain_in"; then
20359    test -f Makefile && make "$ltmain"
20360  fi
20361fi
20362
20363
20364ac_ext=c
20365ac_cpp='$CPP $CPPFLAGS'
20366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368ac_compiler_gnu=$ac_cv_c_compiler_gnu
20369
20370CC="$lt_save_CC"
20371
20372	else
20373	  tagname=""
20374	fi
20375	;;
20376
20377      RC)
20378
20379
20380
20381# Source file extension for RC test sources.
20382ac_ext=rc
20383
20384# Object file extension for compiled RC test sources.
20385objext=o
20386objext_RC=$objext
20387
20388# Code to be used in simple compile tests
20389lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20390
20391# Code to be used in simple link tests
20392lt_simple_link_test_code="$lt_simple_compile_test_code"
20393
20394# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20395
20396# If no C compiler was specified, use CC.
20397LTCC=${LTCC-"$CC"}
20398
20399# Allow CC to be a program name with arguments.
20400compiler=$CC
20401
20402
20403# Allow CC to be a program name with arguments.
20404lt_save_CC="$CC"
20405CC=${RC-"windres"}
20406compiler=$CC
20407compiler_RC=$CC
20408lt_cv_prog_compiler_c_o_RC=yes
20409
20410# The else clause should only fire when bootstrapping the
20411# libtool distribution, otherwise you forgot to ship ltmain.sh
20412# with your package, and you will get complaints that there are
20413# no rules to generate ltmain.sh.
20414if test -f "$ltmain"; then
20415  # See if we are running on zsh, and set the options which allow our commands through
20416  # without removal of \ escapes.
20417  if test -n "${ZSH_VERSION+set}" ; then
20418    setopt NO_GLOB_SUBST
20419  fi
20420  # Now quote all the things that may contain metacharacters while being
20421  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20422  # variables and quote the copies for generation of the libtool script.
20423  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20424    SED SHELL STRIP \
20425    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20426    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20427    deplibs_check_method reload_flag reload_cmds need_locks \
20428    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20429    lt_cv_sys_global_symbol_to_c_name_address \
20430    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20431    old_postinstall_cmds old_postuninstall_cmds \
20432    compiler_RC \
20433    CC_RC \
20434    LD_RC \
20435    lt_prog_compiler_wl_RC \
20436    lt_prog_compiler_pic_RC \
20437    lt_prog_compiler_static_RC \
20438    lt_prog_compiler_no_builtin_flag_RC \
20439    export_dynamic_flag_spec_RC \
20440    thread_safe_flag_spec_RC \
20441    whole_archive_flag_spec_RC \
20442    enable_shared_with_static_runtimes_RC \
20443    old_archive_cmds_RC \
20444    old_archive_from_new_cmds_RC \
20445    predep_objects_RC \
20446    postdep_objects_RC \
20447    predeps_RC \
20448    postdeps_RC \
20449    compiler_lib_search_path_RC \
20450    archive_cmds_RC \
20451    archive_expsym_cmds_RC \
20452    postinstall_cmds_RC \
20453    postuninstall_cmds_RC \
20454    old_archive_from_expsyms_cmds_RC \
20455    allow_undefined_flag_RC \
20456    no_undefined_flag_RC \
20457    export_symbols_cmds_RC \
20458    hardcode_libdir_flag_spec_RC \
20459    hardcode_libdir_flag_spec_ld_RC \
20460    hardcode_libdir_separator_RC \
20461    hardcode_automatic_RC \
20462    module_cmds_RC \
20463    module_expsym_cmds_RC \
20464    lt_cv_prog_compiler_c_o_RC \
20465    exclude_expsyms_RC \
20466    include_expsyms_RC; do
20467
20468    case $var in
20469    old_archive_cmds_RC | \
20470    old_archive_from_new_cmds_RC | \
20471    archive_cmds_RC | \
20472    archive_expsym_cmds_RC | \
20473    module_cmds_RC | \
20474    module_expsym_cmds_RC | \
20475    old_archive_from_expsyms_cmds_RC | \
20476    export_symbols_cmds_RC | \
20477    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20478    postinstall_cmds | postuninstall_cmds | \
20479    old_postinstall_cmds | old_postuninstall_cmds | \
20480    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20481      # Double-quote double-evaled strings.
20482      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20483      ;;
20484    *)
20485      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20486      ;;
20487    esac
20488  done
20489
20490  case $lt_echo in
20491  *'\$0 --fallback-echo"')
20492    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20493    ;;
20494  esac
20495
20496cfgfile="$ofile"
20497
20498  cat <<__EOF__ >> "$cfgfile"
20499# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20500
20501# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20502
20503# Shell to use when invoking shell scripts.
20504SHELL=$lt_SHELL
20505
20506# Whether or not to build shared libraries.
20507build_libtool_libs=$enable_shared
20508
20509# Whether or not to build static libraries.
20510build_old_libs=$enable_static
20511
20512# Whether or not to add -lc for building shared libraries.
20513build_libtool_need_lc=$archive_cmds_need_lc_RC
20514
20515# Whether or not to disallow shared libs when runtime libs are static
20516allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20517
20518# Whether or not to optimize for fast installation.
20519fast_install=$enable_fast_install
20520
20521# The host system.
20522host_alias=$host_alias
20523host=$host
20524host_os=$host_os
20525
20526# The build system.
20527build_alias=$build_alias
20528build=$build
20529build_os=$build_os
20530
20531# An echo program that does not interpret backslashes.
20532echo=$lt_echo
20533
20534# The archiver.
20535AR=$lt_AR
20536AR_FLAGS=$lt_AR_FLAGS
20537
20538# A C compiler.
20539LTCC=$lt_LTCC
20540
20541# A language-specific compiler.
20542CC=$lt_compiler_RC
20543
20544# Is the compiler the GNU C compiler?
20545with_gcc=$GCC_RC
20546
20547# An ERE matcher.
20548EGREP=$lt_EGREP
20549
20550# The linker used to build libraries.
20551LD=$lt_LD_RC
20552
20553# Whether we need hard or soft links.
20554LN_S=$lt_LN_S
20555
20556# A BSD-compatible nm program.
20557NM=$lt_NM
20558
20559# A symbol stripping program
20560STRIP=$lt_STRIP
20561
20562# Used to examine libraries when file_magic_cmd begins "file"
20563MAGIC_CMD=$MAGIC_CMD
20564
20565# Used on cygwin: DLL creation program.
20566DLLTOOL="$DLLTOOL"
20567
20568# Used on cygwin: object dumper.
20569OBJDUMP="$OBJDUMP"
20570
20571# Used on cygwin: assembler.
20572AS="$AS"
20573
20574# The name of the directory that contains temporary libtool files.
20575objdir=$objdir
20576
20577# How to create reloadable object files.
20578reload_flag=$lt_reload_flag
20579reload_cmds=$lt_reload_cmds
20580
20581# How to pass a linker flag through the compiler.
20582wl=$lt_lt_prog_compiler_wl_RC
20583
20584# Object file suffix (normally "o").
20585objext="$ac_objext"
20586
20587# Old archive suffix (normally "a").
20588libext="$libext"
20589
20590# Shared library suffix (normally ".so").
20591shrext_cmds='$shrext_cmds'
20592
20593# Executable file suffix (normally "").
20594exeext="$exeext"
20595
20596# Additional compiler flags for building library objects.
20597pic_flag=$lt_lt_prog_compiler_pic_RC
20598pic_mode=$pic_mode
20599
20600# What is the maximum length of a command?
20601max_cmd_len=$lt_cv_sys_max_cmd_len
20602
20603# Does compiler simultaneously support -c and -o options?
20604compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20605
20606# Must we lock files when doing compilation ?
20607need_locks=$lt_need_locks
20608
20609# Do we need the lib prefix for modules?
20610need_lib_prefix=$need_lib_prefix
20611
20612# Do we need a version for libraries?
20613need_version=$need_version
20614
20615# Whether dlopen is supported.
20616dlopen_support=$enable_dlopen
20617
20618# Whether dlopen of programs is supported.
20619dlopen_self=$enable_dlopen_self
20620
20621# Whether dlopen of statically linked programs is supported.
20622dlopen_self_static=$enable_dlopen_self_static
20623
20624# Compiler flag to prevent dynamic linking.
20625link_static_flag=$lt_lt_prog_compiler_static_RC
20626
20627# Compiler flag to turn off builtin functions.
20628no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20629
20630# Compiler flag to allow reflexive dlopens.
20631export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20632
20633# Compiler flag to generate shared objects directly from archives.
20634whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20635
20636# Compiler flag to generate thread-safe objects.
20637thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20638
20639# Library versioning type.
20640version_type=$version_type
20641
20642# Format of library name prefix.
20643libname_spec=$lt_libname_spec
20644
20645# List of archive names.  First name is the real one, the rest are links.
20646# The last name is the one that the linker finds with -lNAME.
20647library_names_spec=$lt_library_names_spec
20648
20649# The coded name of the library, if different from the real name.
20650soname_spec=$lt_soname_spec
20651
20652# Commands used to build and install an old-style archive.
20653RANLIB=$lt_RANLIB
20654old_archive_cmds=$lt_old_archive_cmds_RC
20655old_postinstall_cmds=$lt_old_postinstall_cmds
20656old_postuninstall_cmds=$lt_old_postuninstall_cmds
20657
20658# Create an old-style archive from a shared archive.
20659old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20660
20661# Create a temporary old-style archive to link instead of a shared archive.
20662old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20663
20664# Commands used to build and install a shared archive.
20665archive_cmds=$lt_archive_cmds_RC
20666archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20667postinstall_cmds=$lt_postinstall_cmds
20668postuninstall_cmds=$lt_postuninstall_cmds
20669
20670# Commands used to build a loadable module (assumed same as above if empty)
20671module_cmds=$lt_module_cmds_RC
20672module_expsym_cmds=$lt_module_expsym_cmds_RC
20673
20674# Commands to strip libraries.
20675old_striplib=$lt_old_striplib
20676striplib=$lt_striplib
20677
20678# Dependencies to place before the objects being linked to create a
20679# shared library.
20680predep_objects=$lt_predep_objects_RC
20681
20682# Dependencies to place after the objects being linked to create a
20683# shared library.
20684postdep_objects=$lt_postdep_objects_RC
20685
20686# Dependencies to place before the objects being linked to create a
20687# shared library.
20688predeps=$lt_predeps_RC
20689
20690# Dependencies to place after the objects being linked to create a
20691# shared library.
20692postdeps=$lt_postdeps_RC
20693
20694# The library search path used internally by the compiler when linking
20695# a shared library.
20696compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20697
20698# Method to check whether dependent libraries are shared objects.
20699deplibs_check_method=$lt_deplibs_check_method
20700
20701# Command to use when deplibs_check_method == file_magic.
20702file_magic_cmd=$lt_file_magic_cmd
20703
20704# Flag that allows shared libraries with undefined symbols to be built.
20705allow_undefined_flag=$lt_allow_undefined_flag_RC
20706
20707# Flag that forces no undefined symbols.
20708no_undefined_flag=$lt_no_undefined_flag_RC
20709
20710# Commands used to finish a libtool library installation in a directory.
20711finish_cmds=$lt_finish_cmds
20712
20713# Same as above, but a single script fragment to be evaled but not shown.
20714finish_eval=$lt_finish_eval
20715
20716# Take the output of nm and produce a listing of raw symbols and C names.
20717global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20718
20719# Transform the output of nm in a proper C declaration
20720global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20721
20722# Transform the output of nm in a C name address pair
20723global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20724
20725# This is the shared library runtime path variable.
20726runpath_var=$runpath_var
20727
20728# This is the shared library path variable.
20729shlibpath_var=$shlibpath_var
20730
20731# Is shlibpath searched before the hard-coded library search path?
20732shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20733
20734# How to hardcode a shared library path into an executable.
20735hardcode_action=$hardcode_action_RC
20736
20737# Whether we should hardcode library paths into libraries.
20738hardcode_into_libs=$hardcode_into_libs
20739
20740# Flag to hardcode \$libdir into a binary during linking.
20741# This must work even if \$libdir does not exist.
20742hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20743
20744# If ld is used when linking, flag to hardcode \$libdir into
20745# a binary during linking. This must work even if \$libdir does
20746# not exist.
20747hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20748
20749# Whether we need a single -rpath flag with a separated argument.
20750hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20751
20752# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20753# resulting binary.
20754hardcode_direct=$hardcode_direct_RC
20755
20756# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20757# resulting binary.
20758hardcode_minus_L=$hardcode_minus_L_RC
20759
20760# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20761# the resulting binary.
20762hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20763
20764# Set to yes if building a shared library automatically hardcodes DIR into the library
20765# and all subsequent libraries and executables linked against it.
20766hardcode_automatic=$hardcode_automatic_RC
20767
20768# Variables whose values should be saved in libtool wrapper scripts and
20769# restored at relink time.
20770variables_saved_for_relink="$variables_saved_for_relink"
20771
20772# Whether libtool must link a program against all its dependency libraries.
20773link_all_deplibs=$link_all_deplibs_RC
20774
20775# Compile-time system search path for libraries
20776sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20777
20778# Run-time system search path for libraries
20779sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20780
20781# Fix the shell variable \$srcfile for the compiler.
20782fix_srcfile_path="$fix_srcfile_path_RC"
20783
20784# Set to yes if exported symbols are required.
20785always_export_symbols=$always_export_symbols_RC
20786
20787# The commands to list exported symbols.
20788export_symbols_cmds=$lt_export_symbols_cmds_RC
20789
20790# The commands to extract the exported symbol list from a shared archive.
20791extract_expsyms_cmds=$lt_extract_expsyms_cmds
20792
20793# Symbols that should not be listed in the preloaded symbols.
20794exclude_expsyms=$lt_exclude_expsyms_RC
20795
20796# Symbols that must always be exported.
20797include_expsyms=$lt_include_expsyms_RC
20798
20799# ### END LIBTOOL TAG CONFIG: $tagname
20800
20801__EOF__
20802
20803
20804else
20805  # If there is no Makefile yet, we rely on a make rule to execute
20806  # `config.status --recheck' to rerun these tests and create the
20807  # libtool script then.
20808  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20809  if test -f "$ltmain_in"; then
20810    test -f Makefile && make "$ltmain"
20811  fi
20812fi
20813
20814
20815ac_ext=c
20816ac_cpp='$CPP $CPPFLAGS'
20817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819ac_compiler_gnu=$ac_cv_c_compiler_gnu
20820
20821CC="$lt_save_CC"
20822
20823	;;
20824
20825      *)
20826	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20827echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20828   { (exit 1); exit 1; }; }
20829	;;
20830      esac
20831
20832      # Append the new tag name to the list of available tags.
20833      if test -n "$tagname" ; then
20834      available_tags="$available_tags $tagname"
20835    fi
20836    fi
20837  done
20838  IFS="$lt_save_ifs"
20839
20840  # Now substitute the updated list of available tags.
20841  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20842    mv "${ofile}T" "$ofile"
20843    chmod +x "$ofile"
20844  else
20845    rm -f "${ofile}T"
20846    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20847echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20848   { (exit 1); exit 1; }; }
20849  fi
20850fi
20851
20852
20853
20854# This can be used to rebuild libtool when needed
20855LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20856
20857# Always use our own libtool.
20858LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20859
20860# Prevent multiple expansion
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883# Check whether --with-gnu-ld or --without-gnu-ld was given.
20884if test "${with_gnu_ld+set}" = set; then
20885  withval="$with_gnu_ld"
20886  test "$withval" = no || with_gnu_ld=yes
20887else
20888  with_gnu_ld=no
20889fi;
20890# Prepare PATH_SEPARATOR.
20891# The user is always right.
20892if test "${PATH_SEPARATOR+set}" != set; then
20893  echo "#! /bin/sh" >conf$$.sh
20894  echo  "exit 0"   >>conf$$.sh
20895  chmod +x conf$$.sh
20896  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20897    PATH_SEPARATOR=';'
20898  else
20899    PATH_SEPARATOR=:
20900  fi
20901  rm -f conf$$.sh
20902fi
20903ac_prog=ld
20904if test "$GCC" = yes; then
20905  # Check if gcc -print-prog-name=ld gives a path.
20906  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20907echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
20908  case $host in
20909  *-*-mingw*)
20910    # gcc leaves a trailing carriage return which upsets mingw
20911    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20912  *)
20913    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20914  esac
20915  case $ac_prog in
20916    # Accept absolute paths.
20917    [\\/]* | [A-Za-z]:[\\/]*)
20918      re_direlt='/[^/][^/]*/\.\./'
20919      # Canonicalize the path of ld
20920      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20921      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20922	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20923      done
20924      test -z "$LD" && LD="$ac_prog"
20925      ;;
20926  "")
20927    # If it fails, then pretend we aren't using GCC.
20928    ac_prog=ld
20929    ;;
20930  *)
20931    # If it is relative, then search for the first ld in PATH.
20932    with_gnu_ld=unknown
20933    ;;
20934  esac
20935elif test "$with_gnu_ld" = yes; then
20936  echo "$as_me:$LINENO: checking for GNU ld" >&5
20937echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20938else
20939  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20940echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20941fi
20942if test "${acl_cv_path_LD+set}" = set; then
20943  echo $ECHO_N "(cached) $ECHO_C" >&6
20944else
20945  if test -z "$LD"; then
20946  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20947  for ac_dir in $PATH; do
20948    test -z "$ac_dir" && ac_dir=.
20949    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20950      acl_cv_path_LD="$ac_dir/$ac_prog"
20951      # Check to see if the program is GNU ld.  I'd rather use --version,
20952      # but apparently some GNU ld's only accept -v.
20953      # Break only if it was the GNU/non-GNU ld that we prefer.
20954      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20955      *GNU* | *'with BFD'*)
20956	test "$with_gnu_ld" != no && break ;;
20957      *)
20958	test "$with_gnu_ld" != yes && break ;;
20959      esac
20960    fi
20961  done
20962  IFS="$ac_save_ifs"
20963else
20964  acl_cv_path_LD="$LD" # Let the user override the test with a path.
20965fi
20966fi
20967
20968LD="$acl_cv_path_LD"
20969if test -n "$LD"; then
20970  echo "$as_me:$LINENO: result: $LD" >&5
20971echo "${ECHO_T}$LD" >&6
20972else
20973  echo "$as_me:$LINENO: result: no" >&5
20974echo "${ECHO_T}no" >&6
20975fi
20976test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20977echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20978   { (exit 1); exit 1; }; }
20979echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20980echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20981if test "${acl_cv_prog_gnu_ld+set}" = set; then
20982  echo $ECHO_N "(cached) $ECHO_C" >&6
20983else
20984  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20985case `$LD -v 2>&1 </dev/null` in
20986*GNU* | *'with BFD'*)
20987  acl_cv_prog_gnu_ld=yes ;;
20988*)
20989  acl_cv_prog_gnu_ld=no ;;
20990esac
20991fi
20992echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20993echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
20994with_gnu_ld=$acl_cv_prog_gnu_ld
20995
20996
20997
20998                              echo "$as_me:$LINENO: checking for shared library path variable" >&5
20999echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6
21000if test "${acl_cv_libpath+set}" = set; then
21001  echo $ECHO_N "(cached) $ECHO_C" >&6
21002else
21003
21004    LD="$LD" \
21005    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
21006    . ./conftest.sh
21007    rm -f ./conftest.sh
21008    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
21009
21010fi
21011echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
21012echo "${ECHO_T}$acl_cv_libpath" >&6
21013  shlibpath_var="$acl_cv_shlibpath_var"
21014
21015
21016  echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
21017echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6
21018  # Check whether --enable-relocatable or --disable-relocatable was given.
21019if test "${enable_relocatable+set}" = set; then
21020  enableval="$enable_relocatable"
21021  if test "$enableval" != no; then
21022       RELOCATABLE=yes
21023     else
21024       RELOCATABLE=no
21025     fi
21026
21027else
21028  RELOCATABLE=no
21029fi;
21030
21031  echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
21032echo "${ECHO_T}$RELOCATABLE" >&6
21033
21034
21035
21036    if test "X$prefix" = "XNONE"; then
21037    reloc_final_prefix="$ac_default_prefix"
21038  else
21039    reloc_final_prefix="$prefix"
21040  fi
21041
21042cat >>confdefs.h <<_ACEOF
21043#define INSTALLPREFIX "${reloc_final_prefix}"
21044_ACEOF
21045
21046
21047
21048
21049
21050
21051
21052  use_elf_origin_trick=no
21053  if test $RELOCATABLE = yes; then
21054    # --enable-relocatable implies --disable-rpath
21055    enable_rpath=no
21056    case $LIBOBJS in
21057    "relocatable.$ac_objext"   | \
21058  *" relocatable.$ac_objext"   | \
21059    "relocatable.$ac_objext "* | \
21060  *" relocatable.$ac_objext "* ) ;;
21061  *) LIBOBJS="$LIBOBJS relocatable.$ac_objext" ;;
21062esac
21063
21064
21065cat >>confdefs.h <<\_ACEOF
21066#define ENABLE_RELOCATABLE 1
21067_ACEOF
21068
21069    case "$host_os" in
21070      linux*) use_elf_origin_trick=yes ;;
21071    esac
21072    if test $use_elf_origin_trick = yes; then
21073            case "$ac_aux_dir" in
21074        /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
21075        *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
21076      esac
21077      SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
21078    else
21079                              SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
21080      case "$ac_aux_dir" in
21081        /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
21082        *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
21083      esac
21084    fi
21085  else
21086    SET_RELOCATABLE=
21087  fi
21088
21089
21090
21091if test $use_elf_origin_trick = yes; then
21092  RELOCATABLE_VIA_LD_TRUE=
21093  RELOCATABLE_VIA_LD_FALSE='#'
21094else
21095  RELOCATABLE_VIA_LD_TRUE='#'
21096  RELOCATABLE_VIA_LD_FALSE=
21097fi
21098
21099
21100
21101
21102echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21103echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21104if test "${ac_cv_header_stdc+set}" = set; then
21105  echo $ECHO_N "(cached) $ECHO_C" >&6
21106else
21107  cat >conftest.$ac_ext <<_ACEOF
21108/* confdefs.h.  */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h.  */
21113#include <stdlib.h>
21114#include <stdarg.h>
21115#include <string.h>
21116#include <float.h>
21117
21118int
21119main ()
21120{
21121
21122  ;
21123  return 0;
21124}
21125_ACEOF
21126rm -f conftest.$ac_objext
21127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21128  (eval $ac_compile) 2>conftest.er1
21129  ac_status=$?
21130  grep -v '^ *+' conftest.er1 >conftest.err
21131  rm -f conftest.er1
21132  cat conftest.err >&5
21133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134  (exit $ac_status); } &&
21135	 { ac_try='test -z "$ac_c_werror_flag"
21136			 || test ! -s conftest.err'
21137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138  (eval $ac_try) 2>&5
21139  ac_status=$?
21140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141  (exit $ac_status); }; } &&
21142	 { ac_try='test -s conftest.$ac_objext'
21143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144  (eval $ac_try) 2>&5
21145  ac_status=$?
21146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147  (exit $ac_status); }; }; then
21148  ac_cv_header_stdc=yes
21149else
21150  echo "$as_me: failed program was:" >&5
21151sed 's/^/| /' conftest.$ac_ext >&5
21152
21153ac_cv_header_stdc=no
21154fi
21155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21156
21157if test $ac_cv_header_stdc = yes; then
21158  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21159  cat >conftest.$ac_ext <<_ACEOF
21160/* confdefs.h.  */
21161_ACEOF
21162cat confdefs.h >>conftest.$ac_ext
21163cat >>conftest.$ac_ext <<_ACEOF
21164/* end confdefs.h.  */
21165#include <string.h>
21166
21167_ACEOF
21168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21169  $EGREP "memchr" >/dev/null 2>&1; then
21170  :
21171else
21172  ac_cv_header_stdc=no
21173fi
21174rm -f conftest*
21175
21176fi
21177
21178if test $ac_cv_header_stdc = yes; then
21179  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21180  cat >conftest.$ac_ext <<_ACEOF
21181/* confdefs.h.  */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
21185/* end confdefs.h.  */
21186#include <stdlib.h>
21187
21188_ACEOF
21189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21190  $EGREP "free" >/dev/null 2>&1; then
21191  :
21192else
21193  ac_cv_header_stdc=no
21194fi
21195rm -f conftest*
21196
21197fi
21198
21199if test $ac_cv_header_stdc = yes; then
21200  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21201  if test "$cross_compiling" = yes; then
21202  :
21203else
21204  cat >conftest.$ac_ext <<_ACEOF
21205/* confdefs.h.  */
21206_ACEOF
21207cat confdefs.h >>conftest.$ac_ext
21208cat >>conftest.$ac_ext <<_ACEOF
21209/* end confdefs.h.  */
21210#include <ctype.h>
21211#if ((' ' & 0x0FF) == 0x020)
21212# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21213# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21214#else
21215# define ISLOWER(c) \
21216		   (('a' <= (c) && (c) <= 'i') \
21217		     || ('j' <= (c) && (c) <= 'r') \
21218		     || ('s' <= (c) && (c) <= 'z'))
21219# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21220#endif
21221
21222#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21223int
21224main ()
21225{
21226  int i;
21227  for (i = 0; i < 256; i++)
21228    if (XOR (islower (i), ISLOWER (i))
21229	|| toupper (i) != TOUPPER (i))
21230      exit(2);
21231  exit (0);
21232}
21233_ACEOF
21234rm -f conftest$ac_exeext
21235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21236  (eval $ac_link) 2>&5
21237  ac_status=$?
21238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241  (eval $ac_try) 2>&5
21242  ac_status=$?
21243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244  (exit $ac_status); }; }; then
21245  :
21246else
21247  echo "$as_me: program exited with status $ac_status" >&5
21248echo "$as_me: failed program was:" >&5
21249sed 's/^/| /' conftest.$ac_ext >&5
21250
21251( exit $ac_status )
21252ac_cv_header_stdc=no
21253fi
21254rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21255fi
21256fi
21257fi
21258echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21259echo "${ECHO_T}$ac_cv_header_stdc" >&6
21260if test $ac_cv_header_stdc = yes; then
21261
21262cat >>confdefs.h <<\_ACEOF
21263#define STDC_HEADERS 1
21264_ACEOF
21265
21266fi
21267
21268
21269
21270
21271
21272
21273
21274
21275for ac_header in limits.h malloc.h pwd.h string.h unistd.h utime.h values.h
21276do
21277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21278if eval "test \"\${$as_ac_Header+set}\" = set"; then
21279  echo "$as_me:$LINENO: checking for $ac_header" >&5
21280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21281if eval "test \"\${$as_ac_Header+set}\" = set"; then
21282  echo $ECHO_N "(cached) $ECHO_C" >&6
21283fi
21284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21286else
21287  # Is the header compilable?
21288echo "$as_me:$LINENO: checking $ac_header usability" >&5
21289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21290cat >conftest.$ac_ext <<_ACEOF
21291/* confdefs.h.  */
21292_ACEOF
21293cat confdefs.h >>conftest.$ac_ext
21294cat >>conftest.$ac_ext <<_ACEOF
21295/* end confdefs.h.  */
21296$ac_includes_default
21297#include <$ac_header>
21298_ACEOF
21299rm -f conftest.$ac_objext
21300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301  (eval $ac_compile) 2>conftest.er1
21302  ac_status=$?
21303  grep -v '^ *+' conftest.er1 >conftest.err
21304  rm -f conftest.er1
21305  cat conftest.err >&5
21306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307  (exit $ac_status); } &&
21308	 { ac_try='test -z "$ac_c_werror_flag"
21309			 || test ! -s conftest.err'
21310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311  (eval $ac_try) 2>&5
21312  ac_status=$?
21313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314  (exit $ac_status); }; } &&
21315	 { ac_try='test -s conftest.$ac_objext'
21316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317  (eval $ac_try) 2>&5
21318  ac_status=$?
21319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320  (exit $ac_status); }; }; then
21321  ac_header_compiler=yes
21322else
21323  echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326ac_header_compiler=no
21327fi
21328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21330echo "${ECHO_T}$ac_header_compiler" >&6
21331
21332# Is the header present?
21333echo "$as_me:$LINENO: checking $ac_header presence" >&5
21334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21335cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h.  */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h.  */
21341#include <$ac_header>
21342_ACEOF
21343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21344  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21345  ac_status=$?
21346  grep -v '^ *+' conftest.er1 >conftest.err
21347  rm -f conftest.er1
21348  cat conftest.err >&5
21349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350  (exit $ac_status); } >/dev/null; then
21351  if test -s conftest.err; then
21352    ac_cpp_err=$ac_c_preproc_warn_flag
21353    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21354  else
21355    ac_cpp_err=
21356  fi
21357else
21358  ac_cpp_err=yes
21359fi
21360if test -z "$ac_cpp_err"; then
21361  ac_header_preproc=yes
21362else
21363  echo "$as_me: failed program was:" >&5
21364sed 's/^/| /' conftest.$ac_ext >&5
21365
21366  ac_header_preproc=no
21367fi
21368rm -f conftest.err conftest.$ac_ext
21369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21370echo "${ECHO_T}$ac_header_preproc" >&6
21371
21372# So?  What about this header?
21373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21374  yes:no: )
21375    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21377    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21379    ac_header_preproc=yes
21380    ;;
21381  no:yes:* )
21382    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21384    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21385echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21386    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21387echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21388    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21389echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21392    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21394    (
21395      cat <<\_ASBOX
21396## ------------------------------------------ ##
21397## Report this to the AC_PACKAGE_NAME lists.  ##
21398## ------------------------------------------ ##
21399_ASBOX
21400    ) |
21401      sed "s/^/$as_me: WARNING:     /" >&2
21402    ;;
21403esac
21404echo "$as_me:$LINENO: checking for $ac_header" >&5
21405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21406if eval "test \"\${$as_ac_Header+set}\" = set"; then
21407  echo $ECHO_N "(cached) $ECHO_C" >&6
21408else
21409  eval "$as_ac_Header=\$ac_header_preproc"
21410fi
21411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21413
21414fi
21415if test `eval echo '${'$as_ac_Header'}'` = yes; then
21416  cat >>confdefs.h <<_ACEOF
21417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21418_ACEOF
21419
21420fi
21421
21422done
21423
21424echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
21425echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
21426if test "${ac_cv_header_stdbool_h+set}" = set; then
21427  echo $ECHO_N "(cached) $ECHO_C" >&6
21428else
21429  cat >conftest.$ac_ext <<_ACEOF
21430/* confdefs.h.  */
21431_ACEOF
21432cat confdefs.h >>conftest.$ac_ext
21433cat >>conftest.$ac_ext <<_ACEOF
21434/* end confdefs.h.  */
21435
21436	  #include <stdbool.h>
21437	  #ifndef bool
21438	   "error: bool is not defined"
21439	  #endif
21440	  #ifndef false
21441	   "error: false is not defined"
21442	  #endif
21443	  #if false
21444	   "error: false is not 0"
21445	  #endif
21446	  #ifndef true
21447	   "error: true is not defined"
21448	  #endif
21449	  #if true != 1
21450	   "error: true is not 1"
21451	  #endif
21452	  #ifndef __bool_true_false_are_defined
21453	   "error: __bool_true_false_are_defined is not defined"
21454	  #endif
21455
21456	  struct s { _Bool s: 1; _Bool t; } s;
21457
21458	  char a[true == 1 ? 1 : -1];
21459	  char b[false == 0 ? 1 : -1];
21460	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21461	  char d[(bool) -0.5 == true ? 1 : -1];
21462	  bool e = &s;
21463	  char f[(_Bool) -0.0 == false ? 1 : -1];
21464	  char g[true];
21465	  char h[sizeof (_Bool)];
21466	  char i[sizeof s.t];
21467	  enum { j = false, k = true, l = false * true, m = true * 256 };
21468	  _Bool n[m];
21469	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21470
21471int
21472main ()
21473{
21474
21475	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
21476		  + !m + !n + !o);
21477
21478  ;
21479  return 0;
21480}
21481_ACEOF
21482rm -f conftest.$ac_objext
21483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484  (eval $ac_compile) 2>conftest.er1
21485  ac_status=$?
21486  grep -v '^ *+' conftest.er1 >conftest.err
21487  rm -f conftest.er1
21488  cat conftest.err >&5
21489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490  (exit $ac_status); } &&
21491	 { ac_try='test -z "$ac_c_werror_flag"
21492			 || test ! -s conftest.err'
21493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494  (eval $ac_try) 2>&5
21495  ac_status=$?
21496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497  (exit $ac_status); }; } &&
21498	 { ac_try='test -s conftest.$ac_objext'
21499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500  (eval $ac_try) 2>&5
21501  ac_status=$?
21502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503  (exit $ac_status); }; }; then
21504  ac_cv_header_stdbool_h=yes
21505else
21506  echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509ac_cv_header_stdbool_h=no
21510fi
21511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21512fi
21513echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
21514echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
21515   echo "$as_me:$LINENO: checking for _Bool" >&5
21516echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
21517if test "${ac_cv_type__Bool+set}" = set; then
21518  echo $ECHO_N "(cached) $ECHO_C" >&6
21519else
21520  cat >conftest.$ac_ext <<_ACEOF
21521/* confdefs.h.  */
21522_ACEOF
21523cat confdefs.h >>conftest.$ac_ext
21524cat >>conftest.$ac_ext <<_ACEOF
21525/* end confdefs.h.  */
21526$ac_includes_default
21527int
21528main ()
21529{
21530if ((_Bool *) 0)
21531  return 0;
21532if (sizeof (_Bool))
21533  return 0;
21534  ;
21535  return 0;
21536}
21537_ACEOF
21538rm -f conftest.$ac_objext
21539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21540  (eval $ac_compile) 2>conftest.er1
21541  ac_status=$?
21542  grep -v '^ *+' conftest.er1 >conftest.err
21543  rm -f conftest.er1
21544  cat conftest.err >&5
21545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546  (exit $ac_status); } &&
21547	 { ac_try='test -z "$ac_c_werror_flag"
21548			 || test ! -s conftest.err'
21549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550  (eval $ac_try) 2>&5
21551  ac_status=$?
21552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553  (exit $ac_status); }; } &&
21554	 { ac_try='test -s conftest.$ac_objext'
21555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556  (eval $ac_try) 2>&5
21557  ac_status=$?
21558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559  (exit $ac_status); }; }; then
21560  ac_cv_type__Bool=yes
21561else
21562  echo "$as_me: failed program was:" >&5
21563sed 's/^/| /' conftest.$ac_ext >&5
21564
21565ac_cv_type__Bool=no
21566fi
21567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21568fi
21569echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
21570echo "${ECHO_T}$ac_cv_type__Bool" >&6
21571if test $ac_cv_type__Bool = yes; then
21572
21573cat >>confdefs.h <<_ACEOF
21574#define HAVE__BOOL 1
21575_ACEOF
21576
21577
21578fi
21579
21580   if test $ac_cv_header_stdbool_h = yes; then
21581
21582cat >>confdefs.h <<\_ACEOF
21583#define HAVE_STDBOOL_H 1
21584_ACEOF
21585
21586   fi
21587
21588
21589
21590  # Define two additional variables used in the Makefile substitution.
21591
21592  if test "$ac_cv_header_stdbool_h" = yes; then
21593    STDBOOL_H=''
21594  else
21595    STDBOOL_H='stdbool.h'
21596  fi
21597
21598
21599  if test "$ac_cv_type__Bool" = yes; then
21600    HAVE__BOOL=1
21601  else
21602    HAVE__BOOL=0
21603  fi
21604
21605
21606
21607echo "$as_me:$LINENO: checking for inline" >&5
21608echo $ECHO_N "checking for inline... $ECHO_C" >&6
21609if test "${ac_cv_c_inline+set}" = set; then
21610  echo $ECHO_N "(cached) $ECHO_C" >&6
21611else
21612  ac_cv_c_inline=no
21613for ac_kw in inline __inline__ __inline; do
21614  cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h.  */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h.  */
21620#ifndef __cplusplus
21621typedef int foo_t;
21622static $ac_kw foo_t static_foo () {return 0; }
21623$ac_kw foo_t foo () {return 0; }
21624#endif
21625
21626_ACEOF
21627rm -f conftest.$ac_objext
21628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21629  (eval $ac_compile) 2>conftest.er1
21630  ac_status=$?
21631  grep -v '^ *+' conftest.er1 >conftest.err
21632  rm -f conftest.er1
21633  cat conftest.err >&5
21634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635  (exit $ac_status); } &&
21636	 { ac_try='test -z "$ac_c_werror_flag"
21637			 || test ! -s conftest.err'
21638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639  (eval $ac_try) 2>&5
21640  ac_status=$?
21641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642  (exit $ac_status); }; } &&
21643	 { ac_try='test -s conftest.$ac_objext'
21644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645  (eval $ac_try) 2>&5
21646  ac_status=$?
21647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648  (exit $ac_status); }; }; then
21649  ac_cv_c_inline=$ac_kw; break
21650else
21651  echo "$as_me: failed program was:" >&5
21652sed 's/^/| /' conftest.$ac_ext >&5
21653
21654fi
21655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656done
21657
21658fi
21659echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21660echo "${ECHO_T}$ac_cv_c_inline" >&6
21661
21662
21663case $ac_cv_c_inline in
21664  inline | yes) ;;
21665  *)
21666    case $ac_cv_c_inline in
21667      no) ac_val=;;
21668      *) ac_val=$ac_cv_c_inline;;
21669    esac
21670    cat >>confdefs.h <<_ACEOF
21671#ifndef __cplusplus
21672#define inline $ac_val
21673#endif
21674_ACEOF
21675    ;;
21676esac
21677
21678
21679  echo "$as_me:$LINENO: checking for signed" >&5
21680echo $ECHO_N "checking for signed... $ECHO_C" >&6
21681if test "${bh_cv_c_signed+set}" = set; then
21682  echo $ECHO_N "(cached) $ECHO_C" >&6
21683else
21684  cat >conftest.$ac_ext <<_ACEOF
21685/* confdefs.h.  */
21686_ACEOF
21687cat confdefs.h >>conftest.$ac_ext
21688cat >>conftest.$ac_ext <<_ACEOF
21689/* end confdefs.h.  */
21690
21691int
21692main ()
21693{
21694signed char x;
21695  ;
21696  return 0;
21697}
21698_ACEOF
21699rm -f conftest.$ac_objext
21700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701  (eval $ac_compile) 2>conftest.er1
21702  ac_status=$?
21703  grep -v '^ *+' conftest.er1 >conftest.err
21704  rm -f conftest.er1
21705  cat conftest.err >&5
21706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707  (exit $ac_status); } &&
21708	 { ac_try='test -z "$ac_c_werror_flag"
21709			 || test ! -s conftest.err'
21710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711  (eval $ac_try) 2>&5
21712  ac_status=$?
21713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714  (exit $ac_status); }; } &&
21715	 { ac_try='test -s conftest.$ac_objext'
21716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717  (eval $ac_try) 2>&5
21718  ac_status=$?
21719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720  (exit $ac_status); }; }; then
21721  bh_cv_c_signed=yes
21722else
21723  echo "$as_me: failed program was:" >&5
21724sed 's/^/| /' conftest.$ac_ext >&5
21725
21726bh_cv_c_signed=no
21727fi
21728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21729fi
21730echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
21731echo "${ECHO_T}$bh_cv_c_signed" >&6
21732  if test $bh_cv_c_signed = no; then
21733
21734cat >>confdefs.h <<\_ACEOF
21735#define signed
21736_ACEOF
21737
21738  fi
21739
21740
21741  echo "$as_me:$LINENO: checking for unsigned long long" >&5
21742echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
21743if test "${ac_cv_type_unsigned_long_long+set}" = set; then
21744  echo $ECHO_N "(cached) $ECHO_C" >&6
21745else
21746  cat >conftest.$ac_ext <<_ACEOF
21747/* confdefs.h.  */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h.  */
21752unsigned long long ull = 1ULL; int i = 63;
21753int
21754main ()
21755{
21756unsigned long long ullmax = (unsigned long long) -1;
21757     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
21758  ;
21759  return 0;
21760}
21761_ACEOF
21762rm -f conftest.$ac_objext conftest$ac_exeext
21763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21764  (eval $ac_link) 2>conftest.er1
21765  ac_status=$?
21766  grep -v '^ *+' conftest.er1 >conftest.err
21767  rm -f conftest.er1
21768  cat conftest.err >&5
21769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770  (exit $ac_status); } &&
21771	 { ac_try='test -z "$ac_c_werror_flag"
21772			 || test ! -s conftest.err'
21773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774  (eval $ac_try) 2>&5
21775  ac_status=$?
21776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777  (exit $ac_status); }; } &&
21778	 { ac_try='test -s conftest$ac_exeext'
21779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780  (eval $ac_try) 2>&5
21781  ac_status=$?
21782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783  (exit $ac_status); }; }; then
21784  ac_cv_type_unsigned_long_long=yes
21785else
21786  echo "$as_me: failed program was:" >&5
21787sed 's/^/| /' conftest.$ac_ext >&5
21788
21789ac_cv_type_unsigned_long_long=no
21790fi
21791rm -f conftest.err conftest.$ac_objext \
21792      conftest$ac_exeext conftest.$ac_ext
21793fi
21794echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
21795echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
21796  if test $ac_cv_type_unsigned_long_long = yes; then
21797
21798cat >>confdefs.h <<\_ACEOF
21799#define HAVE_UNSIGNED_LONG_LONG 1
21800_ACEOF
21801
21802  fi
21803
21804echo "$as_me:$LINENO: checking for size_t" >&5
21805echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21806if test "${ac_cv_type_size_t+set}" = set; then
21807  echo $ECHO_N "(cached) $ECHO_C" >&6
21808else
21809  cat >conftest.$ac_ext <<_ACEOF
21810/* confdefs.h.  */
21811_ACEOF
21812cat confdefs.h >>conftest.$ac_ext
21813cat >>conftest.$ac_ext <<_ACEOF
21814/* end confdefs.h.  */
21815$ac_includes_default
21816int
21817main ()
21818{
21819if ((size_t *) 0)
21820  return 0;
21821if (sizeof (size_t))
21822  return 0;
21823  ;
21824  return 0;
21825}
21826_ACEOF
21827rm -f conftest.$ac_objext
21828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21829  (eval $ac_compile) 2>conftest.er1
21830  ac_status=$?
21831  grep -v '^ *+' conftest.er1 >conftest.err
21832  rm -f conftest.er1
21833  cat conftest.err >&5
21834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835  (exit $ac_status); } &&
21836	 { ac_try='test -z "$ac_c_werror_flag"
21837			 || test ! -s conftest.err'
21838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839  (eval $ac_try) 2>&5
21840  ac_status=$?
21841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842  (exit $ac_status); }; } &&
21843	 { ac_try='test -s conftest.$ac_objext'
21844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845  (eval $ac_try) 2>&5
21846  ac_status=$?
21847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848  (exit $ac_status); }; }; then
21849  ac_cv_type_size_t=yes
21850else
21851  echo "$as_me: failed program was:" >&5
21852sed 's/^/| /' conftest.$ac_ext >&5
21853
21854ac_cv_type_size_t=no
21855fi
21856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21857fi
21858echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21859echo "${ECHO_T}$ac_cv_type_size_t" >&6
21860if test $ac_cv_type_size_t = yes; then
21861  :
21862else
21863
21864cat >>confdefs.h <<_ACEOF
21865#define size_t unsigned
21866_ACEOF
21867
21868fi
21869
21870echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21871echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21872if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21873  echo $ECHO_N "(cached) $ECHO_C" >&6
21874else
21875  cat >conftest.$ac_ext <<_ACEOF
21876/* confdefs.h.  */
21877_ACEOF
21878cat confdefs.h >>conftest.$ac_ext
21879cat >>conftest.$ac_ext <<_ACEOF
21880/* end confdefs.h.  */
21881$ac_includes_default
21882int
21883main ()
21884{
21885if ((ptrdiff_t *) 0)
21886  return 0;
21887if (sizeof (ptrdiff_t))
21888  return 0;
21889  ;
21890  return 0;
21891}
21892_ACEOF
21893rm -f conftest.$ac_objext
21894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21895  (eval $ac_compile) 2>conftest.er1
21896  ac_status=$?
21897  grep -v '^ *+' conftest.er1 >conftest.err
21898  rm -f conftest.er1
21899  cat conftest.err >&5
21900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901  (exit $ac_status); } &&
21902	 { ac_try='test -z "$ac_c_werror_flag"
21903			 || test ! -s conftest.err'
21904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905  (eval $ac_try) 2>&5
21906  ac_status=$?
21907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908  (exit $ac_status); }; } &&
21909	 { ac_try='test -s conftest.$ac_objext'
21910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911  (eval $ac_try) 2>&5
21912  ac_status=$?
21913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914  (exit $ac_status); }; }; then
21915  ac_cv_type_ptrdiff_t=yes
21916else
21917  echo "$as_me: failed program was:" >&5
21918sed 's/^/| /' conftest.$ac_ext >&5
21919
21920ac_cv_type_ptrdiff_t=no
21921fi
21922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21923fi
21924echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21925echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21926if test $ac_cv_type_ptrdiff_t = yes; then
21927
21928cat >>confdefs.h <<_ACEOF
21929#define HAVE_PTRDIFF_T 1
21930_ACEOF
21931
21932
21933fi
21934
21935
21936  echo "$as_me:$LINENO: checking for inttypes.h" >&5
21937echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
21938if test "${gl_cv_header_inttypes_h+set}" = set; then
21939  echo $ECHO_N "(cached) $ECHO_C" >&6
21940else
21941  cat >conftest.$ac_ext <<_ACEOF
21942/* confdefs.h.  */
21943_ACEOF
21944cat confdefs.h >>conftest.$ac_ext
21945cat >>conftest.$ac_ext <<_ACEOF
21946/* end confdefs.h.  */
21947#include <sys/types.h>
21948#include <inttypes.h>
21949int
21950main ()
21951{
21952uintmax_t i = (uintmax_t) -1;
21953  ;
21954  return 0;
21955}
21956_ACEOF
21957rm -f conftest.$ac_objext
21958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21959  (eval $ac_compile) 2>conftest.er1
21960  ac_status=$?
21961  grep -v '^ *+' conftest.er1 >conftest.err
21962  rm -f conftest.er1
21963  cat conftest.err >&5
21964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965  (exit $ac_status); } &&
21966	 { ac_try='test -z "$ac_c_werror_flag"
21967			 || test ! -s conftest.err'
21968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969  (eval $ac_try) 2>&5
21970  ac_status=$?
21971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972  (exit $ac_status); }; } &&
21973	 { ac_try='test -s conftest.$ac_objext'
21974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975  (eval $ac_try) 2>&5
21976  ac_status=$?
21977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978  (exit $ac_status); }; }; then
21979  gl_cv_header_inttypes_h=yes
21980else
21981  echo "$as_me: failed program was:" >&5
21982sed 's/^/| /' conftest.$ac_ext >&5
21983
21984gl_cv_header_inttypes_h=no
21985fi
21986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21987fi
21988echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
21989echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
21990  if test $gl_cv_header_inttypes_h = yes; then
21991
21992cat >>confdefs.h <<_ACEOF
21993#define HAVE_INTTYPES_H_WITH_UINTMAX 1
21994_ACEOF
21995
21996  fi
21997
21998
21999  echo "$as_me:$LINENO: checking for stdint.h" >&5
22000echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22001if test "${gl_cv_header_stdint_h+set}" = set; then
22002  echo $ECHO_N "(cached) $ECHO_C" >&6
22003else
22004  cat >conftest.$ac_ext <<_ACEOF
22005/* confdefs.h.  */
22006_ACEOF
22007cat confdefs.h >>conftest.$ac_ext
22008cat >>conftest.$ac_ext <<_ACEOF
22009/* end confdefs.h.  */
22010#include <sys/types.h>
22011#include <stdint.h>
22012int
22013main ()
22014{
22015uintmax_t i = (uintmax_t) -1;
22016  ;
22017  return 0;
22018}
22019_ACEOF
22020rm -f conftest.$ac_objext
22021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022  (eval $ac_compile) 2>conftest.er1
22023  ac_status=$?
22024  grep -v '^ *+' conftest.er1 >conftest.err
22025  rm -f conftest.er1
22026  cat conftest.err >&5
22027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028  (exit $ac_status); } &&
22029	 { ac_try='test -z "$ac_c_werror_flag"
22030			 || test ! -s conftest.err'
22031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032  (eval $ac_try) 2>&5
22033  ac_status=$?
22034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035  (exit $ac_status); }; } &&
22036	 { ac_try='test -s conftest.$ac_objext'
22037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038  (eval $ac_try) 2>&5
22039  ac_status=$?
22040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041  (exit $ac_status); }; }; then
22042  gl_cv_header_stdint_h=yes
22043else
22044  echo "$as_me: failed program was:" >&5
22045sed 's/^/| /' conftest.$ac_ext >&5
22046
22047gl_cv_header_stdint_h=no
22048fi
22049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22050fi
22051echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
22052echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
22053  if test $gl_cv_header_stdint_h = yes; then
22054
22055cat >>confdefs.h <<_ACEOF
22056#define HAVE_STDINT_H_WITH_UINTMAX 1
22057_ACEOF
22058
22059  fi
22060
22061
22062
22063
22064  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
22065
22066    test $ac_cv_type_unsigned_long_long = yes \
22067      && ac_type='unsigned long long' \
22068      || ac_type='unsigned long'
22069
22070cat >>confdefs.h <<_ACEOF
22071#define uintmax_t $ac_type
22072_ACEOF
22073
22074  else
22075
22076cat >>confdefs.h <<\_ACEOF
22077#define HAVE_UINTMAX_T 1
22078_ACEOF
22079
22080  fi
22081
22082
22083  echo "$as_me:$LINENO: checking for ssize_t" >&5
22084echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22085if test "${gt_cv_ssize_t+set}" = set; then
22086  echo $ECHO_N "(cached) $ECHO_C" >&6
22087else
22088  cat >conftest.$ac_ext <<_ACEOF
22089/* confdefs.h.  */
22090_ACEOF
22091cat confdefs.h >>conftest.$ac_ext
22092cat >>conftest.$ac_ext <<_ACEOF
22093/* end confdefs.h.  */
22094#include <sys/types.h>
22095int
22096main ()
22097{
22098int x = sizeof (ssize_t *) + sizeof (ssize_t);
22099  ;
22100  return 0;
22101}
22102_ACEOF
22103rm -f conftest.$ac_objext
22104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22105  (eval $ac_compile) 2>conftest.er1
22106  ac_status=$?
22107  grep -v '^ *+' conftest.er1 >conftest.err
22108  rm -f conftest.er1
22109  cat conftest.err >&5
22110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111  (exit $ac_status); } &&
22112	 { ac_try='test -z "$ac_c_werror_flag"
22113			 || test ! -s conftest.err'
22114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115  (eval $ac_try) 2>&5
22116  ac_status=$?
22117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118  (exit $ac_status); }; } &&
22119	 { ac_try='test -s conftest.$ac_objext'
22120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121  (eval $ac_try) 2>&5
22122  ac_status=$?
22123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124  (exit $ac_status); }; }; then
22125  gt_cv_ssize_t=yes
22126else
22127  echo "$as_me: failed program was:" >&5
22128sed 's/^/| /' conftest.$ac_ext >&5
22129
22130gt_cv_ssize_t=no
22131fi
22132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22133fi
22134echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
22135echo "${ECHO_T}$gt_cv_ssize_t" >&6
22136  if test $gt_cv_ssize_t = no; then
22137
22138cat >>confdefs.h <<\_ACEOF
22139#define ssize_t int
22140_ACEOF
22141
22142  fi
22143
22144echo "$as_me:$LINENO: checking for pid_t" >&5
22145echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22146if test "${ac_cv_type_pid_t+set}" = set; then
22147  echo $ECHO_N "(cached) $ECHO_C" >&6
22148else
22149  cat >conftest.$ac_ext <<_ACEOF
22150/* confdefs.h.  */
22151_ACEOF
22152cat confdefs.h >>conftest.$ac_ext
22153cat >>conftest.$ac_ext <<_ACEOF
22154/* end confdefs.h.  */
22155$ac_includes_default
22156int
22157main ()
22158{
22159if ((pid_t *) 0)
22160  return 0;
22161if (sizeof (pid_t))
22162  return 0;
22163  ;
22164  return 0;
22165}
22166_ACEOF
22167rm -f conftest.$ac_objext
22168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22169  (eval $ac_compile) 2>conftest.er1
22170  ac_status=$?
22171  grep -v '^ *+' conftest.er1 >conftest.err
22172  rm -f conftest.er1
22173  cat conftest.err >&5
22174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175  (exit $ac_status); } &&
22176	 { ac_try='test -z "$ac_c_werror_flag"
22177			 || test ! -s conftest.err'
22178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179  (eval $ac_try) 2>&5
22180  ac_status=$?
22181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182  (exit $ac_status); }; } &&
22183	 { ac_try='test -s conftest.$ac_objext'
22184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185  (eval $ac_try) 2>&5
22186  ac_status=$?
22187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188  (exit $ac_status); }; }; then
22189  ac_cv_type_pid_t=yes
22190else
22191  echo "$as_me: failed program was:" >&5
22192sed 's/^/| /' conftest.$ac_ext >&5
22193
22194ac_cv_type_pid_t=no
22195fi
22196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22197fi
22198echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22199echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22200if test $ac_cv_type_pid_t = yes; then
22201  :
22202else
22203
22204cat >>confdefs.h <<_ACEOF
22205#define pid_t int
22206_ACEOF
22207
22208fi
22209
22210echo "$as_me:$LINENO: checking for mode_t" >&5
22211echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
22212if test "${ac_cv_type_mode_t+set}" = set; then
22213  echo $ECHO_N "(cached) $ECHO_C" >&6
22214else
22215  cat >conftest.$ac_ext <<_ACEOF
22216/* confdefs.h.  */
22217_ACEOF
22218cat confdefs.h >>conftest.$ac_ext
22219cat >>conftest.$ac_ext <<_ACEOF
22220/* end confdefs.h.  */
22221$ac_includes_default
22222int
22223main ()
22224{
22225if ((mode_t *) 0)
22226  return 0;
22227if (sizeof (mode_t))
22228  return 0;
22229  ;
22230  return 0;
22231}
22232_ACEOF
22233rm -f conftest.$ac_objext
22234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22235  (eval $ac_compile) 2>conftest.er1
22236  ac_status=$?
22237  grep -v '^ *+' conftest.er1 >conftest.err
22238  rm -f conftest.er1
22239  cat conftest.err >&5
22240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241  (exit $ac_status); } &&
22242	 { ac_try='test -z "$ac_c_werror_flag"
22243			 || test ! -s conftest.err'
22244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245  (eval $ac_try) 2>&5
22246  ac_status=$?
22247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248  (exit $ac_status); }; } &&
22249	 { ac_try='test -s conftest.$ac_objext'
22250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251  (eval $ac_try) 2>&5
22252  ac_status=$?
22253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254  (exit $ac_status); }; }; then
22255  ac_cv_type_mode_t=yes
22256else
22257  echo "$as_me: failed program was:" >&5
22258sed 's/^/| /' conftest.$ac_ext >&5
22259
22260ac_cv_type_mode_t=no
22261fi
22262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22263fi
22264echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22265echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22266if test $ac_cv_type_mode_t = yes; then
22267  :
22268else
22269
22270cat >>confdefs.h <<_ACEOF
22271#define mode_t int
22272_ACEOF
22273
22274fi
22275
22276
22277  echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22278echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
22279if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22280  echo $ECHO_N "(cached) $ECHO_C" >&6
22281else
22282  cat >conftest.$ac_ext <<_ACEOF
22283/* confdefs.h.  */
22284_ACEOF
22285cat confdefs.h >>conftest.$ac_ext
22286cat >>conftest.$ac_ext <<_ACEOF
22287/* end confdefs.h.  */
22288#include <signal.h>
22289
22290int
22291main ()
22292{
22293if ((sig_atomic_t *) 0)
22294  return 0;
22295if (sizeof (sig_atomic_t))
22296  return 0;
22297  ;
22298  return 0;
22299}
22300_ACEOF
22301rm -f conftest.$ac_objext
22302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22303  (eval $ac_compile) 2>conftest.er1
22304  ac_status=$?
22305  grep -v '^ *+' conftest.er1 >conftest.err
22306  rm -f conftest.er1
22307  cat conftest.err >&5
22308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309  (exit $ac_status); } &&
22310	 { ac_try='test -z "$ac_c_werror_flag"
22311			 || test ! -s conftest.err'
22312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313  (eval $ac_try) 2>&5
22314  ac_status=$?
22315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316  (exit $ac_status); }; } &&
22317	 { ac_try='test -s conftest.$ac_objext'
22318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319  (eval $ac_try) 2>&5
22320  ac_status=$?
22321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322  (exit $ac_status); }; }; then
22323  ac_cv_type_sig_atomic_t=yes
22324else
22325  echo "$as_me: failed program was:" >&5
22326sed 's/^/| /' conftest.$ac_ext >&5
22327
22328ac_cv_type_sig_atomic_t=no
22329fi
22330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22331fi
22332echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22333echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
22334if test $ac_cv_type_sig_atomic_t = yes; then
22335
22336cat >>confdefs.h <<_ACEOF
22337#define HAVE_SIG_ATOMIC_T 1
22338_ACEOF
22339
22340
22341else
22342
22343cat >>confdefs.h <<\_ACEOF
22344#define sig_atomic_t int
22345_ACEOF
22346
22347fi
22348
22349
22350
22351# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22352# for constant arguments.  Useless!
22353echo "$as_me:$LINENO: checking for working alloca.h" >&5
22354echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22355if test "${ac_cv_working_alloca_h+set}" = set; then
22356  echo $ECHO_N "(cached) $ECHO_C" >&6
22357else
22358  cat >conftest.$ac_ext <<_ACEOF
22359/* confdefs.h.  */
22360_ACEOF
22361cat confdefs.h >>conftest.$ac_ext
22362cat >>conftest.$ac_ext <<_ACEOF
22363/* end confdefs.h.  */
22364#include <alloca.h>
22365int
22366main ()
22367{
22368char *p = (char *) alloca (2 * sizeof (int));
22369  ;
22370  return 0;
22371}
22372_ACEOF
22373rm -f conftest.$ac_objext conftest$ac_exeext
22374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22375  (eval $ac_link) 2>conftest.er1
22376  ac_status=$?
22377  grep -v '^ *+' conftest.er1 >conftest.err
22378  rm -f conftest.er1
22379  cat conftest.err >&5
22380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381  (exit $ac_status); } &&
22382	 { ac_try='test -z "$ac_c_werror_flag"
22383			 || test ! -s conftest.err'
22384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385  (eval $ac_try) 2>&5
22386  ac_status=$?
22387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388  (exit $ac_status); }; } &&
22389	 { ac_try='test -s conftest$ac_exeext'
22390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391  (eval $ac_try) 2>&5
22392  ac_status=$?
22393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394  (exit $ac_status); }; }; then
22395  ac_cv_working_alloca_h=yes
22396else
22397  echo "$as_me: failed program was:" >&5
22398sed 's/^/| /' conftest.$ac_ext >&5
22399
22400ac_cv_working_alloca_h=no
22401fi
22402rm -f conftest.err conftest.$ac_objext \
22403      conftest$ac_exeext conftest.$ac_ext
22404fi
22405echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22406echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22407if test $ac_cv_working_alloca_h = yes; then
22408
22409cat >>confdefs.h <<\_ACEOF
22410#define HAVE_ALLOCA_H 1
22411_ACEOF
22412
22413fi
22414
22415echo "$as_me:$LINENO: checking for alloca" >&5
22416echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22417if test "${ac_cv_func_alloca_works+set}" = set; then
22418  echo $ECHO_N "(cached) $ECHO_C" >&6
22419else
22420  cat >conftest.$ac_ext <<_ACEOF
22421/* confdefs.h.  */
22422_ACEOF
22423cat confdefs.h >>conftest.$ac_ext
22424cat >>conftest.$ac_ext <<_ACEOF
22425/* end confdefs.h.  */
22426#ifdef __GNUC__
22427# define alloca __builtin_alloca
22428#else
22429# ifdef _MSC_VER
22430#  include <malloc.h>
22431#  define alloca _alloca
22432# else
22433#  if HAVE_ALLOCA_H
22434#   include <alloca.h>
22435#  else
22436#   ifdef _AIX
22437 #pragma alloca
22438#   else
22439#    ifndef alloca /* predefined by HP cc +Olibcalls */
22440char *alloca ();
22441#    endif
22442#   endif
22443#  endif
22444# endif
22445#endif
22446
22447int
22448main ()
22449{
22450char *p = (char *) alloca (1);
22451  ;
22452  return 0;
22453}
22454_ACEOF
22455rm -f conftest.$ac_objext conftest$ac_exeext
22456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22457  (eval $ac_link) 2>conftest.er1
22458  ac_status=$?
22459  grep -v '^ *+' conftest.er1 >conftest.err
22460  rm -f conftest.er1
22461  cat conftest.err >&5
22462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463  (exit $ac_status); } &&
22464	 { ac_try='test -z "$ac_c_werror_flag"
22465			 || test ! -s conftest.err'
22466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467  (eval $ac_try) 2>&5
22468  ac_status=$?
22469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470  (exit $ac_status); }; } &&
22471	 { ac_try='test -s conftest$ac_exeext'
22472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473  (eval $ac_try) 2>&5
22474  ac_status=$?
22475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476  (exit $ac_status); }; }; then
22477  ac_cv_func_alloca_works=yes
22478else
22479  echo "$as_me: failed program was:" >&5
22480sed 's/^/| /' conftest.$ac_ext >&5
22481
22482ac_cv_func_alloca_works=no
22483fi
22484rm -f conftest.err conftest.$ac_objext \
22485      conftest$ac_exeext conftest.$ac_ext
22486fi
22487echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22488echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22489
22490if test $ac_cv_func_alloca_works = yes; then
22491
22492cat >>confdefs.h <<\_ACEOF
22493#define HAVE_ALLOCA 1
22494_ACEOF
22495
22496else
22497  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22498# that cause trouble.  Some versions do not even contain alloca or
22499# contain a buggy version.  If you still want to use their alloca,
22500# use ar to extract alloca.o from them instead of compiling alloca.c.
22501
22502ALLOCA=alloca.$ac_objext
22503
22504cat >>confdefs.h <<\_ACEOF
22505#define C_ALLOCA 1
22506_ACEOF
22507
22508
22509echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22510echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22511if test "${ac_cv_os_cray+set}" = set; then
22512  echo $ECHO_N "(cached) $ECHO_C" >&6
22513else
22514  cat >conftest.$ac_ext <<_ACEOF
22515/* confdefs.h.  */
22516_ACEOF
22517cat confdefs.h >>conftest.$ac_ext
22518cat >>conftest.$ac_ext <<_ACEOF
22519/* end confdefs.h.  */
22520#if defined(CRAY) && ! defined(CRAY2)
22521webecray
22522#else
22523wenotbecray
22524#endif
22525
22526_ACEOF
22527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22528  $EGREP "webecray" >/dev/null 2>&1; then
22529  ac_cv_os_cray=yes
22530else
22531  ac_cv_os_cray=no
22532fi
22533rm -f conftest*
22534
22535fi
22536echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22537echo "${ECHO_T}$ac_cv_os_cray" >&6
22538if test $ac_cv_os_cray = yes; then
22539  for ac_func in _getb67 GETB67 getb67; do
22540    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22541echo "$as_me:$LINENO: checking for $ac_func" >&5
22542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22543if eval "test \"\${$as_ac_var+set}\" = set"; then
22544  echo $ECHO_N "(cached) $ECHO_C" >&6
22545else
22546  cat >conftest.$ac_ext <<_ACEOF
22547/* confdefs.h.  */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h.  */
22552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22553   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22554#define $ac_func innocuous_$ac_func
22555
22556/* System header to define __stub macros and hopefully few prototypes,
22557    which can conflict with char $ac_func (); below.
22558    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22559    <limits.h> exists even on freestanding compilers.  */
22560
22561#ifdef __STDC__
22562# include <limits.h>
22563#else
22564# include <assert.h>
22565#endif
22566
22567#undef $ac_func
22568
22569/* Override any gcc2 internal prototype to avoid an error.  */
22570#ifdef __cplusplus
22571extern "C"
22572{
22573#endif
22574/* We use char because int might match the return type of a gcc2
22575   builtin and then its argument prototype would still apply.  */
22576char $ac_func ();
22577/* The GNU C library defines this for functions which it implements
22578    to always fail with ENOSYS.  Some functions are actually named
22579    something starting with __ and the normal name is an alias.  */
22580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22581choke me
22582#else
22583char (*f) () = $ac_func;
22584#endif
22585#ifdef __cplusplus
22586}
22587#endif
22588
22589int
22590main ()
22591{
22592return f != $ac_func;
22593  ;
22594  return 0;
22595}
22596_ACEOF
22597rm -f conftest.$ac_objext conftest$ac_exeext
22598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599  (eval $ac_link) 2>conftest.er1
22600  ac_status=$?
22601  grep -v '^ *+' conftest.er1 >conftest.err
22602  rm -f conftest.er1
22603  cat conftest.err >&5
22604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605  (exit $ac_status); } &&
22606	 { ac_try='test -z "$ac_c_werror_flag"
22607			 || test ! -s conftest.err'
22608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609  (eval $ac_try) 2>&5
22610  ac_status=$?
22611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612  (exit $ac_status); }; } &&
22613	 { ac_try='test -s conftest$ac_exeext'
22614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615  (eval $ac_try) 2>&5
22616  ac_status=$?
22617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618  (exit $ac_status); }; }; then
22619  eval "$as_ac_var=yes"
22620else
22621  echo "$as_me: failed program was:" >&5
22622sed 's/^/| /' conftest.$ac_ext >&5
22623
22624eval "$as_ac_var=no"
22625fi
22626rm -f conftest.err conftest.$ac_objext \
22627      conftest$ac_exeext conftest.$ac_ext
22628fi
22629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22630echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22631if test `eval echo '${'$as_ac_var'}'` = yes; then
22632
22633cat >>confdefs.h <<_ACEOF
22634#define CRAY_STACKSEG_END $ac_func
22635_ACEOF
22636
22637    break
22638fi
22639
22640  done
22641fi
22642
22643echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22644echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22645if test "${ac_cv_c_stack_direction+set}" = set; then
22646  echo $ECHO_N "(cached) $ECHO_C" >&6
22647else
22648  if test "$cross_compiling" = yes; then
22649  ac_cv_c_stack_direction=0
22650else
22651  cat >conftest.$ac_ext <<_ACEOF
22652/* confdefs.h.  */
22653_ACEOF
22654cat confdefs.h >>conftest.$ac_ext
22655cat >>conftest.$ac_ext <<_ACEOF
22656/* end confdefs.h.  */
22657int
22658find_stack_direction ()
22659{
22660  static char *addr = 0;
22661  auto char dummy;
22662  if (addr == 0)
22663    {
22664      addr = &dummy;
22665      return find_stack_direction ();
22666    }
22667  else
22668    return (&dummy > addr) ? 1 : -1;
22669}
22670
22671int
22672main ()
22673{
22674  exit (find_stack_direction () < 0);
22675}
22676_ACEOF
22677rm -f conftest$ac_exeext
22678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22679  (eval $ac_link) 2>&5
22680  ac_status=$?
22681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684  (eval $ac_try) 2>&5
22685  ac_status=$?
22686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687  (exit $ac_status); }; }; then
22688  ac_cv_c_stack_direction=1
22689else
22690  echo "$as_me: program exited with status $ac_status" >&5
22691echo "$as_me: failed program was:" >&5
22692sed 's/^/| /' conftest.$ac_ext >&5
22693
22694( exit $ac_status )
22695ac_cv_c_stack_direction=-1
22696fi
22697rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22698fi
22699fi
22700echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22701echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22702
22703cat >>confdefs.h <<_ACEOF
22704#define STACK_DIRECTION $ac_cv_c_stack_direction
22705_ACEOF
22706
22707
22708fi
22709
22710
22711
22712for ac_header in stdlib.h
22713do
22714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22715if eval "test \"\${$as_ac_Header+set}\" = set"; then
22716  echo "$as_me:$LINENO: checking for $ac_header" >&5
22717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22718if eval "test \"\${$as_ac_Header+set}\" = set"; then
22719  echo $ECHO_N "(cached) $ECHO_C" >&6
22720fi
22721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22723else
22724  # Is the header compilable?
22725echo "$as_me:$LINENO: checking $ac_header usability" >&5
22726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22727cat >conftest.$ac_ext <<_ACEOF
22728/* confdefs.h.  */
22729_ACEOF
22730cat confdefs.h >>conftest.$ac_ext
22731cat >>conftest.$ac_ext <<_ACEOF
22732/* end confdefs.h.  */
22733$ac_includes_default
22734#include <$ac_header>
22735_ACEOF
22736rm -f conftest.$ac_objext
22737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22738  (eval $ac_compile) 2>conftest.er1
22739  ac_status=$?
22740  grep -v '^ *+' conftest.er1 >conftest.err
22741  rm -f conftest.er1
22742  cat conftest.err >&5
22743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744  (exit $ac_status); } &&
22745	 { ac_try='test -z "$ac_c_werror_flag"
22746			 || test ! -s conftest.err'
22747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748  (eval $ac_try) 2>&5
22749  ac_status=$?
22750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751  (exit $ac_status); }; } &&
22752	 { ac_try='test -s conftest.$ac_objext'
22753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22754  (eval $ac_try) 2>&5
22755  ac_status=$?
22756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757  (exit $ac_status); }; }; then
22758  ac_header_compiler=yes
22759else
22760  echo "$as_me: failed program was:" >&5
22761sed 's/^/| /' conftest.$ac_ext >&5
22762
22763ac_header_compiler=no
22764fi
22765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22767echo "${ECHO_T}$ac_header_compiler" >&6
22768
22769# Is the header present?
22770echo "$as_me:$LINENO: checking $ac_header presence" >&5
22771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22772cat >conftest.$ac_ext <<_ACEOF
22773/* confdefs.h.  */
22774_ACEOF
22775cat confdefs.h >>conftest.$ac_ext
22776cat >>conftest.$ac_ext <<_ACEOF
22777/* end confdefs.h.  */
22778#include <$ac_header>
22779_ACEOF
22780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22781  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22782  ac_status=$?
22783  grep -v '^ *+' conftest.er1 >conftest.err
22784  rm -f conftest.er1
22785  cat conftest.err >&5
22786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787  (exit $ac_status); } >/dev/null; then
22788  if test -s conftest.err; then
22789    ac_cpp_err=$ac_c_preproc_warn_flag
22790    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22791  else
22792    ac_cpp_err=
22793  fi
22794else
22795  ac_cpp_err=yes
22796fi
22797if test -z "$ac_cpp_err"; then
22798  ac_header_preproc=yes
22799else
22800  echo "$as_me: failed program was:" >&5
22801sed 's/^/| /' conftest.$ac_ext >&5
22802
22803  ac_header_preproc=no
22804fi
22805rm -f conftest.err conftest.$ac_ext
22806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22807echo "${ECHO_T}$ac_header_preproc" >&6
22808
22809# So?  What about this header?
22810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22811  yes:no: )
22812    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22814    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22816    ac_header_preproc=yes
22817    ;;
22818  no:yes:* )
22819    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22821    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22822echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22823    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22825    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22826echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22827    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22829    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22831    (
22832      cat <<\_ASBOX
22833## ------------------------------------------ ##
22834## Report this to the AC_PACKAGE_NAME lists.  ##
22835## ------------------------------------------ ##
22836_ASBOX
22837    ) |
22838      sed "s/^/$as_me: WARNING:     /" >&2
22839    ;;
22840esac
22841echo "$as_me:$LINENO: checking for $ac_header" >&5
22842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22843if eval "test \"\${$as_ac_Header+set}\" = set"; then
22844  echo $ECHO_N "(cached) $ECHO_C" >&6
22845else
22846  eval "$as_ac_Header=\$ac_header_preproc"
22847fi
22848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22850
22851fi
22852if test `eval echo '${'$as_ac_Header'}'` = yes; then
22853  cat >>confdefs.h <<_ACEOF
22854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22855_ACEOF
22856
22857fi
22858
22859done
22860
22861
22862
22863
22864for ac_header in string.h
22865do
22866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22867if eval "test \"\${$as_ac_Header+set}\" = set"; then
22868  echo "$as_me:$LINENO: checking for $ac_header" >&5
22869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22870if eval "test \"\${$as_ac_Header+set}\" = set"; then
22871  echo $ECHO_N "(cached) $ECHO_C" >&6
22872fi
22873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22875else
22876  # Is the header compilable?
22877echo "$as_me:$LINENO: checking $ac_header usability" >&5
22878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22879cat >conftest.$ac_ext <<_ACEOF
22880/* confdefs.h.  */
22881_ACEOF
22882cat confdefs.h >>conftest.$ac_ext
22883cat >>conftest.$ac_ext <<_ACEOF
22884/* end confdefs.h.  */
22885$ac_includes_default
22886#include <$ac_header>
22887_ACEOF
22888rm -f conftest.$ac_objext
22889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22890  (eval $ac_compile) 2>conftest.er1
22891  ac_status=$?
22892  grep -v '^ *+' conftest.er1 >conftest.err
22893  rm -f conftest.er1
22894  cat conftest.err >&5
22895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896  (exit $ac_status); } &&
22897	 { ac_try='test -z "$ac_c_werror_flag"
22898			 || test ! -s conftest.err'
22899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900  (eval $ac_try) 2>&5
22901  ac_status=$?
22902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903  (exit $ac_status); }; } &&
22904	 { ac_try='test -s conftest.$ac_objext'
22905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906  (eval $ac_try) 2>&5
22907  ac_status=$?
22908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909  (exit $ac_status); }; }; then
22910  ac_header_compiler=yes
22911else
22912  echo "$as_me: failed program was:" >&5
22913sed 's/^/| /' conftest.$ac_ext >&5
22914
22915ac_header_compiler=no
22916fi
22917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22919echo "${ECHO_T}$ac_header_compiler" >&6
22920
22921# Is the header present?
22922echo "$as_me:$LINENO: checking $ac_header presence" >&5
22923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22924cat >conftest.$ac_ext <<_ACEOF
22925/* confdefs.h.  */
22926_ACEOF
22927cat confdefs.h >>conftest.$ac_ext
22928cat >>conftest.$ac_ext <<_ACEOF
22929/* end confdefs.h.  */
22930#include <$ac_header>
22931_ACEOF
22932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22933  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22934  ac_status=$?
22935  grep -v '^ *+' conftest.er1 >conftest.err
22936  rm -f conftest.er1
22937  cat conftest.err >&5
22938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939  (exit $ac_status); } >/dev/null; then
22940  if test -s conftest.err; then
22941    ac_cpp_err=$ac_c_preproc_warn_flag
22942    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22943  else
22944    ac_cpp_err=
22945  fi
22946else
22947  ac_cpp_err=yes
22948fi
22949if test -z "$ac_cpp_err"; then
22950  ac_header_preproc=yes
22951else
22952  echo "$as_me: failed program was:" >&5
22953sed 's/^/| /' conftest.$ac_ext >&5
22954
22955  ac_header_preproc=no
22956fi
22957rm -f conftest.err conftest.$ac_ext
22958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22959echo "${ECHO_T}$ac_header_preproc" >&6
22960
22961# So?  What about this header?
22962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22963  yes:no: )
22964    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22966    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22968    ac_header_preproc=yes
22969    ;;
22970  no:yes:* )
22971    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22973    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22974echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22975    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22977    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22978echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22979    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22981    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22983    (
22984      cat <<\_ASBOX
22985## ------------------------------------------ ##
22986## Report this to the AC_PACKAGE_NAME lists.  ##
22987## ------------------------------------------ ##
22988_ASBOX
22989    ) |
22990      sed "s/^/$as_me: WARNING:     /" >&2
22991    ;;
22992esac
22993echo "$as_me:$LINENO: checking for $ac_header" >&5
22994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22995if eval "test \"\${$as_ac_Header+set}\" = set"; then
22996  echo $ECHO_N "(cached) $ECHO_C" >&6
22997else
22998  eval "$as_ac_Header=\$ac_header_preproc"
22999fi
23000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23002
23003fi
23004if test `eval echo '${'$as_ac_Header'}'` = yes; then
23005  cat >>confdefs.h <<_ACEOF
23006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23007_ACEOF
23008
23009fi
23010
23011done
23012
23013
23014
23015
23016
23017
23018
23019  if test $ac_cv_func_alloca_works = no; then
23020
23021
23022  :
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032  fi
23033
23034  # Define an additional variable used in the Makefile substitution.
23035
23036  cat >conftest.$ac_ext <<_ACEOF
23037/* confdefs.h.  */
23038_ACEOF
23039cat confdefs.h >>conftest.$ac_ext
23040cat >>conftest.$ac_ext <<_ACEOF
23041/* end confdefs.h.  */
23042
23043#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
23044  Need own alloca
23045#endif
23046
23047_ACEOF
23048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23049  $EGREP "Need own alloca" >/dev/null 2>&1; then
23050  ALLOCA_H=alloca.h
23051else
23052  ALLOCA_H=
23053fi
23054rm -f conftest*
23055
23056
23057
23058
23059
23060for ac_header in stdlib.h
23061do
23062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23063if eval "test \"\${$as_ac_Header+set}\" = set"; then
23064  echo "$as_me:$LINENO: checking for $ac_header" >&5
23065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23066if eval "test \"\${$as_ac_Header+set}\" = set"; then
23067  echo $ECHO_N "(cached) $ECHO_C" >&6
23068fi
23069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23071else
23072  # Is the header compilable?
23073echo "$as_me:$LINENO: checking $ac_header usability" >&5
23074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23075cat >conftest.$ac_ext <<_ACEOF
23076/* confdefs.h.  */
23077_ACEOF
23078cat confdefs.h >>conftest.$ac_ext
23079cat >>conftest.$ac_ext <<_ACEOF
23080/* end confdefs.h.  */
23081$ac_includes_default
23082#include <$ac_header>
23083_ACEOF
23084rm -f conftest.$ac_objext
23085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23086  (eval $ac_compile) 2>conftest.er1
23087  ac_status=$?
23088  grep -v '^ *+' conftest.er1 >conftest.err
23089  rm -f conftest.er1
23090  cat conftest.err >&5
23091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092  (exit $ac_status); } &&
23093	 { ac_try='test -z "$ac_c_werror_flag"
23094			 || test ! -s conftest.err'
23095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23096  (eval $ac_try) 2>&5
23097  ac_status=$?
23098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099  (exit $ac_status); }; } &&
23100	 { ac_try='test -s conftest.$ac_objext'
23101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23102  (eval $ac_try) 2>&5
23103  ac_status=$?
23104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105  (exit $ac_status); }; }; then
23106  ac_header_compiler=yes
23107else
23108  echo "$as_me: failed program was:" >&5
23109sed 's/^/| /' conftest.$ac_ext >&5
23110
23111ac_header_compiler=no
23112fi
23113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23115echo "${ECHO_T}$ac_header_compiler" >&6
23116
23117# Is the header present?
23118echo "$as_me:$LINENO: checking $ac_header presence" >&5
23119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23120cat >conftest.$ac_ext <<_ACEOF
23121/* confdefs.h.  */
23122_ACEOF
23123cat confdefs.h >>conftest.$ac_ext
23124cat >>conftest.$ac_ext <<_ACEOF
23125/* end confdefs.h.  */
23126#include <$ac_header>
23127_ACEOF
23128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23129  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23130  ac_status=$?
23131  grep -v '^ *+' conftest.er1 >conftest.err
23132  rm -f conftest.er1
23133  cat conftest.err >&5
23134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135  (exit $ac_status); } >/dev/null; then
23136  if test -s conftest.err; then
23137    ac_cpp_err=$ac_c_preproc_warn_flag
23138    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23139  else
23140    ac_cpp_err=
23141  fi
23142else
23143  ac_cpp_err=yes
23144fi
23145if test -z "$ac_cpp_err"; then
23146  ac_header_preproc=yes
23147else
23148  echo "$as_me: failed program was:" >&5
23149sed 's/^/| /' conftest.$ac_ext >&5
23150
23151  ac_header_preproc=no
23152fi
23153rm -f conftest.err conftest.$ac_ext
23154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23155echo "${ECHO_T}$ac_header_preproc" >&6
23156
23157# So?  What about this header?
23158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23159  yes:no: )
23160    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23162    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23164    ac_header_preproc=yes
23165    ;;
23166  no:yes:* )
23167    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23169    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23170echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23171    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23173    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23174echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23175    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23177    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23179    (
23180      cat <<\_ASBOX
23181## ------------------------------------------ ##
23182## Report this to the AC_PACKAGE_NAME lists.  ##
23183## ------------------------------------------ ##
23184_ASBOX
23185    ) |
23186      sed "s/^/$as_me: WARNING:     /" >&2
23187    ;;
23188esac
23189echo "$as_me:$LINENO: checking for $ac_header" >&5
23190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23191if eval "test \"\${$as_ac_Header+set}\" = set"; then
23192  echo $ECHO_N "(cached) $ECHO_C" >&6
23193else
23194  eval "$as_ac_Header=\$ac_header_preproc"
23195fi
23196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23198
23199fi
23200if test `eval echo '${'$as_ac_Header'}'` = yes; then
23201  cat >>confdefs.h <<_ACEOF
23202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23203_ACEOF
23204
23205fi
23206
23207done
23208
23209echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23210echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
23211if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23212  echo $ECHO_N "(cached) $ECHO_C" >&6
23213else
23214  if test "$cross_compiling" = yes; then
23215  ac_cv_func_malloc_0_nonnull=no
23216else
23217  cat >conftest.$ac_ext <<_ACEOF
23218/* confdefs.h.  */
23219_ACEOF
23220cat confdefs.h >>conftest.$ac_ext
23221cat >>conftest.$ac_ext <<_ACEOF
23222/* end confdefs.h.  */
23223#if STDC_HEADERS || HAVE_STDLIB_H
23224# include <stdlib.h>
23225#else
23226char *malloc ();
23227#endif
23228
23229int
23230main ()
23231{
23232exit (malloc (0) ? 0 : 1);
23233  ;
23234  return 0;
23235}
23236_ACEOF
23237rm -f conftest$ac_exeext
23238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239  (eval $ac_link) 2>&5
23240  ac_status=$?
23241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244  (eval $ac_try) 2>&5
23245  ac_status=$?
23246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247  (exit $ac_status); }; }; then
23248  ac_cv_func_malloc_0_nonnull=yes
23249else
23250  echo "$as_me: program exited with status $ac_status" >&5
23251echo "$as_me: failed program was:" >&5
23252sed 's/^/| /' conftest.$ac_ext >&5
23253
23254( exit $ac_status )
23255ac_cv_func_malloc_0_nonnull=no
23256fi
23257rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23258fi
23259fi
23260echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23261echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
23262if test $ac_cv_func_malloc_0_nonnull = yes; then
23263  gl_cv_func_malloc_0_nonnull=1
23264else
23265  gl_cv_func_malloc_0_nonnull=0
23266fi
23267
23268
23269
23270cat >>confdefs.h <<_ACEOF
23271#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
23272_ACEOF
23273
23274
23275
23276  echo "$as_me:$LINENO: checking for long long" >&5
23277echo $ECHO_N "checking for long long... $ECHO_C" >&6
23278if test "${ac_cv_type_long_long+set}" = set; then
23279  echo $ECHO_N "(cached) $ECHO_C" >&6
23280else
23281  cat >conftest.$ac_ext <<_ACEOF
23282/* confdefs.h.  */
23283_ACEOF
23284cat confdefs.h >>conftest.$ac_ext
23285cat >>conftest.$ac_ext <<_ACEOF
23286/* end confdefs.h.  */
23287long long ll = 1LL; int i = 63;
23288int
23289main ()
23290{
23291long long llmax = (long long) -1;
23292     return ll << i | ll >> i | llmax / ll | llmax % ll;
23293  ;
23294  return 0;
23295}
23296_ACEOF
23297rm -f conftest.$ac_objext conftest$ac_exeext
23298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23299  (eval $ac_link) 2>conftest.er1
23300  ac_status=$?
23301  grep -v '^ *+' conftest.er1 >conftest.err
23302  rm -f conftest.er1
23303  cat conftest.err >&5
23304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305  (exit $ac_status); } &&
23306	 { ac_try='test -z "$ac_c_werror_flag"
23307			 || test ! -s conftest.err'
23308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309  (eval $ac_try) 2>&5
23310  ac_status=$?
23311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312  (exit $ac_status); }; } &&
23313	 { ac_try='test -s conftest$ac_exeext'
23314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315  (eval $ac_try) 2>&5
23316  ac_status=$?
23317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318  (exit $ac_status); }; }; then
23319  ac_cv_type_long_long=yes
23320else
23321  echo "$as_me: failed program was:" >&5
23322sed 's/^/| /' conftest.$ac_ext >&5
23323
23324ac_cv_type_long_long=no
23325fi
23326rm -f conftest.err conftest.$ac_objext \
23327      conftest$ac_exeext conftest.$ac_ext
23328fi
23329echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23330echo "${ECHO_T}$ac_cv_type_long_long" >&6
23331  if test $ac_cv_type_long_long = yes; then
23332
23333cat >>confdefs.h <<\_ACEOF
23334#define HAVE_LONG_LONG 1
23335_ACEOF
23336
23337  fi
23338
23339
23340  echo "$as_me:$LINENO: checking for long double" >&5
23341echo $ECHO_N "checking for long double... $ECHO_C" >&6
23342if test "${gt_cv_c_long_double+set}" = set; then
23343  echo $ECHO_N "(cached) $ECHO_C" >&6
23344else
23345  if test "$GCC" = yes; then
23346       gt_cv_c_long_double=yes
23347     else
23348       cat >conftest.$ac_ext <<_ACEOF
23349/* confdefs.h.  */
23350_ACEOF
23351cat confdefs.h >>conftest.$ac_ext
23352cat >>conftest.$ac_ext <<_ACEOF
23353/* end confdefs.h.  */
23354
23355         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
23356         long double foo = 0.0;
23357         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
23358         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23359
23360int
23361main ()
23362{
23363
23364  ;
23365  return 0;
23366}
23367_ACEOF
23368rm -f conftest.$ac_objext
23369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23370  (eval $ac_compile) 2>conftest.er1
23371  ac_status=$?
23372  grep -v '^ *+' conftest.er1 >conftest.err
23373  rm -f conftest.er1
23374  cat conftest.err >&5
23375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376  (exit $ac_status); } &&
23377	 { ac_try='test -z "$ac_c_werror_flag"
23378			 || test ! -s conftest.err'
23379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380  (eval $ac_try) 2>&5
23381  ac_status=$?
23382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383  (exit $ac_status); }; } &&
23384	 { ac_try='test -s conftest.$ac_objext'
23385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386  (eval $ac_try) 2>&5
23387  ac_status=$?
23388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389  (exit $ac_status); }; }; then
23390  gt_cv_c_long_double=yes
23391else
23392  echo "$as_me: failed program was:" >&5
23393sed 's/^/| /' conftest.$ac_ext >&5
23394
23395gt_cv_c_long_double=no
23396fi
23397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23398     fi
23399fi
23400echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
23401echo "${ECHO_T}$gt_cv_c_long_double" >&6
23402  if test $gt_cv_c_long_double = yes; then
23403
23404cat >>confdefs.h <<\_ACEOF
23405#define HAVE_LONG_DOUBLE 1
23406_ACEOF
23407
23408  fi
23409
23410
23411
23412
23413
23414
23415
23416
23417for ac_func in vprintf
23418do
23419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23420echo "$as_me:$LINENO: checking for $ac_func" >&5
23421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23422if eval "test \"\${$as_ac_var+set}\" = set"; then
23423  echo $ECHO_N "(cached) $ECHO_C" >&6
23424else
23425  cat >conftest.$ac_ext <<_ACEOF
23426/* confdefs.h.  */
23427_ACEOF
23428cat confdefs.h >>conftest.$ac_ext
23429cat >>conftest.$ac_ext <<_ACEOF
23430/* end confdefs.h.  */
23431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23433#define $ac_func innocuous_$ac_func
23434
23435/* System header to define __stub macros and hopefully few prototypes,
23436    which can conflict with char $ac_func (); below.
23437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23438    <limits.h> exists even on freestanding compilers.  */
23439
23440#ifdef __STDC__
23441# include <limits.h>
23442#else
23443# include <assert.h>
23444#endif
23445
23446#undef $ac_func
23447
23448/* Override any gcc2 internal prototype to avoid an error.  */
23449#ifdef __cplusplus
23450extern "C"
23451{
23452#endif
23453/* We use char because int might match the return type of a gcc2
23454   builtin and then its argument prototype would still apply.  */
23455char $ac_func ();
23456/* The GNU C library defines this for functions which it implements
23457    to always fail with ENOSYS.  Some functions are actually named
23458    something starting with __ and the normal name is an alias.  */
23459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23460choke me
23461#else
23462char (*f) () = $ac_func;
23463#endif
23464#ifdef __cplusplus
23465}
23466#endif
23467
23468int
23469main ()
23470{
23471return f != $ac_func;
23472  ;
23473  return 0;
23474}
23475_ACEOF
23476rm -f conftest.$ac_objext conftest$ac_exeext
23477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23478  (eval $ac_link) 2>conftest.er1
23479  ac_status=$?
23480  grep -v '^ *+' conftest.er1 >conftest.err
23481  rm -f conftest.er1
23482  cat conftest.err >&5
23483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484  (exit $ac_status); } &&
23485	 { ac_try='test -z "$ac_c_werror_flag"
23486			 || test ! -s conftest.err'
23487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488  (eval $ac_try) 2>&5
23489  ac_status=$?
23490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491  (exit $ac_status); }; } &&
23492	 { ac_try='test -s conftest$ac_exeext'
23493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494  (eval $ac_try) 2>&5
23495  ac_status=$?
23496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497  (exit $ac_status); }; }; then
23498  eval "$as_ac_var=yes"
23499else
23500  echo "$as_me: failed program was:" >&5
23501sed 's/^/| /' conftest.$ac_ext >&5
23502
23503eval "$as_ac_var=no"
23504fi
23505rm -f conftest.err conftest.$ac_objext \
23506      conftest$ac_exeext conftest.$ac_ext
23507fi
23508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23510if test `eval echo '${'$as_ac_var'}'` = yes; then
23511  cat >>confdefs.h <<_ACEOF
23512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23513_ACEOF
23514
23515echo "$as_me:$LINENO: checking for _doprnt" >&5
23516echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
23517if test "${ac_cv_func__doprnt+set}" = set; then
23518  echo $ECHO_N "(cached) $ECHO_C" >&6
23519else
23520  cat >conftest.$ac_ext <<_ACEOF
23521/* confdefs.h.  */
23522_ACEOF
23523cat confdefs.h >>conftest.$ac_ext
23524cat >>conftest.$ac_ext <<_ACEOF
23525/* end confdefs.h.  */
23526/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23527   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23528#define _doprnt innocuous__doprnt
23529
23530/* System header to define __stub macros and hopefully few prototypes,
23531    which can conflict with char _doprnt (); below.
23532    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23533    <limits.h> exists even on freestanding compilers.  */
23534
23535#ifdef __STDC__
23536# include <limits.h>
23537#else
23538# include <assert.h>
23539#endif
23540
23541#undef _doprnt
23542
23543/* Override any gcc2 internal prototype to avoid an error.  */
23544#ifdef __cplusplus
23545extern "C"
23546{
23547#endif
23548/* We use char because int might match the return type of a gcc2
23549   builtin and then its argument prototype would still apply.  */
23550char _doprnt ();
23551/* The GNU C library defines this for functions which it implements
23552    to always fail with ENOSYS.  Some functions are actually named
23553    something starting with __ and the normal name is an alias.  */
23554#if defined (__stub__doprnt) || defined (__stub____doprnt)
23555choke me
23556#else
23557char (*f) () = _doprnt;
23558#endif
23559#ifdef __cplusplus
23560}
23561#endif
23562
23563int
23564main ()
23565{
23566return f != _doprnt;
23567  ;
23568  return 0;
23569}
23570_ACEOF
23571rm -f conftest.$ac_objext conftest$ac_exeext
23572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23573  (eval $ac_link) 2>conftest.er1
23574  ac_status=$?
23575  grep -v '^ *+' conftest.er1 >conftest.err
23576  rm -f conftest.er1
23577  cat conftest.err >&5
23578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579  (exit $ac_status); } &&
23580	 { ac_try='test -z "$ac_c_werror_flag"
23581			 || test ! -s conftest.err'
23582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583  (eval $ac_try) 2>&5
23584  ac_status=$?
23585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586  (exit $ac_status); }; } &&
23587	 { ac_try='test -s conftest$ac_exeext'
23588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589  (eval $ac_try) 2>&5
23590  ac_status=$?
23591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592  (exit $ac_status); }; }; then
23593  ac_cv_func__doprnt=yes
23594else
23595  echo "$as_me: failed program was:" >&5
23596sed 's/^/| /' conftest.$ac_ext >&5
23597
23598ac_cv_func__doprnt=no
23599fi
23600rm -f conftest.err conftest.$ac_objext \
23601      conftest$ac_exeext conftest.$ac_ext
23602fi
23603echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23604echo "${ECHO_T}$ac_cv_func__doprnt" >&6
23605if test $ac_cv_func__doprnt = yes; then
23606
23607cat >>confdefs.h <<\_ACEOF
23608#define HAVE_DOPRNT 1
23609_ACEOF
23610
23611fi
23612
23613fi
23614done
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628for ac_func in chown getcwd posix_spawn raise select strerror strtoul uname \
23629utime utimes waitid
23630do
23631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23632echo "$as_me:$LINENO: checking for $ac_func" >&5
23633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23634if eval "test \"\${$as_ac_var+set}\" = set"; then
23635  echo $ECHO_N "(cached) $ECHO_C" >&6
23636else
23637  cat >conftest.$ac_ext <<_ACEOF
23638/* confdefs.h.  */
23639_ACEOF
23640cat confdefs.h >>conftest.$ac_ext
23641cat >>conftest.$ac_ext <<_ACEOF
23642/* end confdefs.h.  */
23643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23645#define $ac_func innocuous_$ac_func
23646
23647/* System header to define __stub macros and hopefully few prototypes,
23648    which can conflict with char $ac_func (); below.
23649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23650    <limits.h> exists even on freestanding compilers.  */
23651
23652#ifdef __STDC__
23653# include <limits.h>
23654#else
23655# include <assert.h>
23656#endif
23657
23658#undef $ac_func
23659
23660/* Override any gcc2 internal prototype to avoid an error.  */
23661#ifdef __cplusplus
23662extern "C"
23663{
23664#endif
23665/* We use char because int might match the return type of a gcc2
23666   builtin and then its argument prototype would still apply.  */
23667char $ac_func ();
23668/* The GNU C library defines this for functions which it implements
23669    to always fail with ENOSYS.  Some functions are actually named
23670    something starting with __ and the normal name is an alias.  */
23671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23672choke me
23673#else
23674char (*f) () = $ac_func;
23675#endif
23676#ifdef __cplusplus
23677}
23678#endif
23679
23680int
23681main ()
23682{
23683return f != $ac_func;
23684  ;
23685  return 0;
23686}
23687_ACEOF
23688rm -f conftest.$ac_objext conftest$ac_exeext
23689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23690  (eval $ac_link) 2>conftest.er1
23691  ac_status=$?
23692  grep -v '^ *+' conftest.er1 >conftest.err
23693  rm -f conftest.er1
23694  cat conftest.err >&5
23695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696  (exit $ac_status); } &&
23697	 { ac_try='test -z "$ac_c_werror_flag"
23698			 || test ! -s conftest.err'
23699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700  (eval $ac_try) 2>&5
23701  ac_status=$?
23702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703  (exit $ac_status); }; } &&
23704	 { ac_try='test -s conftest$ac_exeext'
23705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706  (eval $ac_try) 2>&5
23707  ac_status=$?
23708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709  (exit $ac_status); }; }; then
23710  eval "$as_ac_var=yes"
23711else
23712  echo "$as_me: failed program was:" >&5
23713sed 's/^/| /' conftest.$ac_ext >&5
23714
23715eval "$as_ac_var=no"
23716fi
23717rm -f conftest.err conftest.$ac_objext \
23718      conftest$ac_exeext conftest.$ac_ext
23719fi
23720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23722if test `eval echo '${'$as_ac_var'}'` = yes; then
23723  cat >>confdefs.h <<_ACEOF
23724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23725_ACEOF
23726
23727fi
23728done
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738for ac_func in atexit memmove memset stpcpy strcspn \
23739strpbrk strstr vasprintf
23740do
23741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23742echo "$as_me:$LINENO: checking for $ac_func" >&5
23743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23744if eval "test \"\${$as_ac_var+set}\" = set"; then
23745  echo $ECHO_N "(cached) $ECHO_C" >&6
23746else
23747  cat >conftest.$ac_ext <<_ACEOF
23748/* confdefs.h.  */
23749_ACEOF
23750cat confdefs.h >>conftest.$ac_ext
23751cat >>conftest.$ac_ext <<_ACEOF
23752/* end confdefs.h.  */
23753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23754   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23755#define $ac_func innocuous_$ac_func
23756
23757/* System header to define __stub macros and hopefully few prototypes,
23758    which can conflict with char $ac_func (); below.
23759    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23760    <limits.h> exists even on freestanding compilers.  */
23761
23762#ifdef __STDC__
23763# include <limits.h>
23764#else
23765# include <assert.h>
23766#endif
23767
23768#undef $ac_func
23769
23770/* Override any gcc2 internal prototype to avoid an error.  */
23771#ifdef __cplusplus
23772extern "C"
23773{
23774#endif
23775/* We use char because int might match the return type of a gcc2
23776   builtin and then its argument prototype would still apply.  */
23777char $ac_func ();
23778/* The GNU C library defines this for functions which it implements
23779    to always fail with ENOSYS.  Some functions are actually named
23780    something starting with __ and the normal name is an alias.  */
23781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23782choke me
23783#else
23784char (*f) () = $ac_func;
23785#endif
23786#ifdef __cplusplus
23787}
23788#endif
23789
23790int
23791main ()
23792{
23793return f != $ac_func;
23794  ;
23795  return 0;
23796}
23797_ACEOF
23798rm -f conftest.$ac_objext conftest$ac_exeext
23799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23800  (eval $ac_link) 2>conftest.er1
23801  ac_status=$?
23802  grep -v '^ *+' conftest.er1 >conftest.err
23803  rm -f conftest.er1
23804  cat conftest.err >&5
23805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806  (exit $ac_status); } &&
23807	 { ac_try='test -z "$ac_c_werror_flag"
23808			 || test ! -s conftest.err'
23809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810  (eval $ac_try) 2>&5
23811  ac_status=$?
23812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813  (exit $ac_status); }; } &&
23814	 { ac_try='test -s conftest$ac_exeext'
23815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816  (eval $ac_try) 2>&5
23817  ac_status=$?
23818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819  (exit $ac_status); }; }; then
23820  eval "$as_ac_var=yes"
23821else
23822  echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825eval "$as_ac_var=no"
23826fi
23827rm -f conftest.err conftest.$ac_objext \
23828      conftest$ac_exeext conftest.$ac_ext
23829fi
23830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23832if test `eval echo '${'$as_ac_var'}'` = yes; then
23833  cat >>confdefs.h <<_ACEOF
23834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23835_ACEOF
23836
23837else
23838  case $LIBOBJS in
23839    "$ac_func.$ac_objext"   | \
23840  *" $ac_func.$ac_objext"   | \
23841    "$ac_func.$ac_objext "* | \
23842  *" $ac_func.$ac_objext "* ) ;;
23843  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23844esac
23845
23846fi
23847done
23848
23849
23850
23851
23852
23853  am_getline_needs_run_time_check=no
23854  echo "$as_me:$LINENO: checking for getline" >&5
23855echo $ECHO_N "checking for getline... $ECHO_C" >&6
23856if test "${ac_cv_func_getline+set}" = set; then
23857  echo $ECHO_N "(cached) $ECHO_C" >&6
23858else
23859  cat >conftest.$ac_ext <<_ACEOF
23860/* confdefs.h.  */
23861_ACEOF
23862cat confdefs.h >>conftest.$ac_ext
23863cat >>conftest.$ac_ext <<_ACEOF
23864/* end confdefs.h.  */
23865/* Define getline to an innocuous variant, in case <limits.h> declares getline.
23866   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23867#define getline innocuous_getline
23868
23869/* System header to define __stub macros and hopefully few prototypes,
23870    which can conflict with char getline (); below.
23871    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23872    <limits.h> exists even on freestanding compilers.  */
23873
23874#ifdef __STDC__
23875# include <limits.h>
23876#else
23877# include <assert.h>
23878#endif
23879
23880#undef getline
23881
23882/* Override any gcc2 internal prototype to avoid an error.  */
23883#ifdef __cplusplus
23884extern "C"
23885{
23886#endif
23887/* We use char because int might match the return type of a gcc2
23888   builtin and then its argument prototype would still apply.  */
23889char getline ();
23890/* The GNU C library defines this for functions which it implements
23891    to always fail with ENOSYS.  Some functions are actually named
23892    something starting with __ and the normal name is an alias.  */
23893#if defined (__stub_getline) || defined (__stub___getline)
23894choke me
23895#else
23896char (*f) () = getline;
23897#endif
23898#ifdef __cplusplus
23899}
23900#endif
23901
23902int
23903main ()
23904{
23905return f != getline;
23906  ;
23907  return 0;
23908}
23909_ACEOF
23910rm -f conftest.$ac_objext conftest$ac_exeext
23911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23912  (eval $ac_link) 2>conftest.er1
23913  ac_status=$?
23914  grep -v '^ *+' conftest.er1 >conftest.err
23915  rm -f conftest.er1
23916  cat conftest.err >&5
23917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918  (exit $ac_status); } &&
23919	 { ac_try='test -z "$ac_c_werror_flag"
23920			 || test ! -s conftest.err'
23921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922  (eval $ac_try) 2>&5
23923  ac_status=$?
23924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925  (exit $ac_status); }; } &&
23926	 { ac_try='test -s conftest$ac_exeext'
23927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928  (eval $ac_try) 2>&5
23929  ac_status=$?
23930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931  (exit $ac_status); }; }; then
23932  ac_cv_func_getline=yes
23933else
23934  echo "$as_me: failed program was:" >&5
23935sed 's/^/| /' conftest.$ac_ext >&5
23936
23937ac_cv_func_getline=no
23938fi
23939rm -f conftest.err conftest.$ac_objext \
23940      conftest$ac_exeext conftest.$ac_ext
23941fi
23942echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
23943echo "${ECHO_T}$ac_cv_func_getline" >&6
23944if test $ac_cv_func_getline = yes; then
23945  		am_getline_needs_run_time_check=yes
23946else
23947  am_cv_func_working_getline=no
23948fi
23949
23950  if test $am_getline_needs_run_time_check = yes; then
23951    echo "$as_me:$LINENO: checking for working getline function" >&5
23952echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
23953if test "${am_cv_func_working_getline+set}" = set; then
23954  echo $ECHO_N "(cached) $ECHO_C" >&6
23955else
23956  echo fooN |tr -d '\012'|tr N '\012' > conftest.data
23957    if test "$cross_compiling" = yes; then
23958  am_cv_func_working_getline=no
23959else
23960  cat >conftest.$ac_ext <<_ACEOF
23961/* confdefs.h.  */
23962_ACEOF
23963cat confdefs.h >>conftest.$ac_ext
23964cat >>conftest.$ac_ext <<_ACEOF
23965/* end confdefs.h.  */
23966
23967#    include <stdio.h>
23968#    include <stdlib.h>
23969#    include <string.h>
23970    int main ()
23971    { /* Based on a test program from Karl Heuer.  */
23972      char *line = NULL;
23973      size_t siz = 0;
23974      int len;
23975      FILE *in = fopen ("./conftest.data", "r");
23976      if (!in)
23977	return 1;
23978      len = getline (&line, &siz, in);
23979      exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
23980    }
23981
23982_ACEOF
23983rm -f conftest$ac_exeext
23984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23985  (eval $ac_link) 2>&5
23986  ac_status=$?
23987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990  (eval $ac_try) 2>&5
23991  ac_status=$?
23992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993  (exit $ac_status); }; }; then
23994  am_cv_func_working_getline=yes
23995else
23996  echo "$as_me: program exited with status $ac_status" >&5
23997echo "$as_me: failed program was:" >&5
23998sed 's/^/| /' conftest.$ac_ext >&5
23999
24000( exit $ac_status )
24001am_cv_func_working_getline=no
24002fi
24003rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24004fi
24005fi
24006echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
24007echo "${ECHO_T}$am_cv_func_working_getline" >&6
24008  fi
24009
24010  if test $am_cv_func_working_getline = no; then
24011
24012cat >>confdefs.h <<\_ACEOF
24013#define getline gnu_getline
24014_ACEOF
24015
24016    case $LIBOBJS in
24017    "getline.$ac_objext"   | \
24018  *" getline.$ac_objext"   | \
24019    "getline.$ac_objext "* | \
24020  *" getline.$ac_objext "* ) ;;
24021  *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
24022esac
24023
24024    case $LIBOBJS in
24025    "getndelim2.$ac_objext"   | \
24026  *" getndelim2.$ac_objext"   | \
24027    "getndelim2.$ac_objext "* | \
24028  *" getndelim2.$ac_objext "* ) ;;
24029  *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
24030esac
24031
24032
24033
24034for ac_func in getdelim
24035do
24036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24037echo "$as_me:$LINENO: checking for $ac_func" >&5
24038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24039if eval "test \"\${$as_ac_var+set}\" = set"; then
24040  echo $ECHO_N "(cached) $ECHO_C" >&6
24041else
24042  cat >conftest.$ac_ext <<_ACEOF
24043/* confdefs.h.  */
24044_ACEOF
24045cat confdefs.h >>conftest.$ac_ext
24046cat >>conftest.$ac_ext <<_ACEOF
24047/* end confdefs.h.  */
24048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24049   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24050#define $ac_func innocuous_$ac_func
24051
24052/* System header to define __stub macros and hopefully few prototypes,
24053    which can conflict with char $ac_func (); below.
24054    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24055    <limits.h> exists even on freestanding compilers.  */
24056
24057#ifdef __STDC__
24058# include <limits.h>
24059#else
24060# include <assert.h>
24061#endif
24062
24063#undef $ac_func
24064
24065/* Override any gcc2 internal prototype to avoid an error.  */
24066#ifdef __cplusplus
24067extern "C"
24068{
24069#endif
24070/* We use char because int might match the return type of a gcc2
24071   builtin and then its argument prototype would still apply.  */
24072char $ac_func ();
24073/* The GNU C library defines this for functions which it implements
24074    to always fail with ENOSYS.  Some functions are actually named
24075    something starting with __ and the normal name is an alias.  */
24076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24077choke me
24078#else
24079char (*f) () = $ac_func;
24080#endif
24081#ifdef __cplusplus
24082}
24083#endif
24084
24085int
24086main ()
24087{
24088return f != $ac_func;
24089  ;
24090  return 0;
24091}
24092_ACEOF
24093rm -f conftest.$ac_objext conftest$ac_exeext
24094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24095  (eval $ac_link) 2>conftest.er1
24096  ac_status=$?
24097  grep -v '^ *+' conftest.er1 >conftest.err
24098  rm -f conftest.er1
24099  cat conftest.err >&5
24100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101  (exit $ac_status); } &&
24102	 { ac_try='test -z "$ac_c_werror_flag"
24103			 || test ! -s conftest.err'
24104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105  (eval $ac_try) 2>&5
24106  ac_status=$?
24107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108  (exit $ac_status); }; } &&
24109	 { ac_try='test -s conftest$ac_exeext'
24110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111  (eval $ac_try) 2>&5
24112  ac_status=$?
24113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114  (exit $ac_status); }; }; then
24115  eval "$as_ac_var=yes"
24116else
24117  echo "$as_me: failed program was:" >&5
24118sed 's/^/| /' conftest.$ac_ext >&5
24119
24120eval "$as_ac_var=no"
24121fi
24122rm -f conftest.err conftest.$ac_objext \
24123      conftest$ac_exeext conftest.$ac_ext
24124fi
24125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24126echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24127if test `eval echo '${'$as_ac_var'}'` = yes; then
24128  cat >>confdefs.h <<_ACEOF
24129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24130_ACEOF
24131
24132fi
24133done
24134
24135
24136
24137
24138
24139
24140  fi
24141
24142if test $am_cv_func_working_getline != yes; then
24143
24144for ac_func in getdelim
24145do
24146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24147echo "$as_me:$LINENO: checking for $ac_func" >&5
24148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24149if eval "test \"\${$as_ac_var+set}\" = set"; then
24150  echo $ECHO_N "(cached) $ECHO_C" >&6
24151else
24152  cat >conftest.$ac_ext <<_ACEOF
24153/* confdefs.h.  */
24154_ACEOF
24155cat confdefs.h >>conftest.$ac_ext
24156cat >>conftest.$ac_ext <<_ACEOF
24157/* end confdefs.h.  */
24158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24159   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24160#define $ac_func innocuous_$ac_func
24161
24162/* System header to define __stub macros and hopefully few prototypes,
24163    which can conflict with char $ac_func (); below.
24164    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24165    <limits.h> exists even on freestanding compilers.  */
24166
24167#ifdef __STDC__
24168# include <limits.h>
24169#else
24170# include <assert.h>
24171#endif
24172
24173#undef $ac_func
24174
24175/* Override any gcc2 internal prototype to avoid an error.  */
24176#ifdef __cplusplus
24177extern "C"
24178{
24179#endif
24180/* We use char because int might match the return type of a gcc2
24181   builtin and then its argument prototype would still apply.  */
24182char $ac_func ();
24183/* The GNU C library defines this for functions which it implements
24184    to always fail with ENOSYS.  Some functions are actually named
24185    something starting with __ and the normal name is an alias.  */
24186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24187choke me
24188#else
24189char (*f) () = $ac_func;
24190#endif
24191#ifdef __cplusplus
24192}
24193#endif
24194
24195int
24196main ()
24197{
24198return f != $ac_func;
24199  ;
24200  return 0;
24201}
24202_ACEOF
24203rm -f conftest.$ac_objext conftest$ac_exeext
24204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24205  (eval $ac_link) 2>conftest.er1
24206  ac_status=$?
24207  grep -v '^ *+' conftest.er1 >conftest.err
24208  rm -f conftest.er1
24209  cat conftest.err >&5
24210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211  (exit $ac_status); } &&
24212	 { ac_try='test -z "$ac_c_werror_flag"
24213			 || test ! -s conftest.err'
24214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215  (eval $ac_try) 2>&5
24216  ac_status=$?
24217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218  (exit $ac_status); }; } &&
24219	 { ac_try='test -s conftest$ac_exeext'
24220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221  (eval $ac_try) 2>&5
24222  ac_status=$?
24223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224  (exit $ac_status); }; }; then
24225  eval "$as_ac_var=yes"
24226else
24227  echo "$as_me: failed program was:" >&5
24228sed 's/^/| /' conftest.$ac_ext >&5
24229
24230eval "$as_ac_var=no"
24231fi
24232rm -f conftest.err conftest.$ac_objext \
24233      conftest$ac_exeext conftest.$ac_ext
24234fi
24235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24236echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24237if test `eval echo '${'$as_ac_var'}'` = yes; then
24238  cat >>confdefs.h <<_ACEOF
24239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24240_ACEOF
24241
24242fi
24243done
24244
24245fi
24246
24247    :
24248
24249echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24250echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24251if test "${ac_cv_c_const+set}" = set; then
24252  echo $ECHO_N "(cached) $ECHO_C" >&6
24253else
24254  cat >conftest.$ac_ext <<_ACEOF
24255/* confdefs.h.  */
24256_ACEOF
24257cat confdefs.h >>conftest.$ac_ext
24258cat >>conftest.$ac_ext <<_ACEOF
24259/* end confdefs.h.  */
24260
24261int
24262main ()
24263{
24264/* FIXME: Include the comments suggested by Paul. */
24265#ifndef __cplusplus
24266  /* Ultrix mips cc rejects this.  */
24267  typedef int charset[2];
24268  const charset x;
24269  /* SunOS 4.1.1 cc rejects this.  */
24270  char const *const *ccp;
24271  char **p;
24272  /* NEC SVR4.0.2 mips cc rejects this.  */
24273  struct point {int x, y;};
24274  static struct point const zero = {0,0};
24275  /* AIX XL C 1.02.0.0 rejects this.
24276     It does not let you subtract one const X* pointer from another in
24277     an arm of an if-expression whose if-part is not a constant
24278     expression */
24279  const char *g = "string";
24280  ccp = &g + (g ? g-g : 0);
24281  /* HPUX 7.0 cc rejects these. */
24282  ++ccp;
24283  p = (char**) ccp;
24284  ccp = (char const *const *) p;
24285  { /* SCO 3.2v4 cc rejects this.  */
24286    char *t;
24287    char const *s = 0 ? (char *) 0 : (char const *) 0;
24288
24289    *t++ = 0;
24290  }
24291  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24292    int x[] = {25, 17};
24293    const int *foo = &x[0];
24294    ++foo;
24295  }
24296  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24297    typedef const int *iptr;
24298    iptr p = 0;
24299    ++p;
24300  }
24301  { /* AIX XL C 1.02.0.0 rejects this saying
24302       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24303    struct s { int j; const int *ap[3]; };
24304    struct s *b; b->j = 5;
24305  }
24306  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24307    const int foo = 10;
24308  }
24309#endif
24310
24311  ;
24312  return 0;
24313}
24314_ACEOF
24315rm -f conftest.$ac_objext
24316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24317  (eval $ac_compile) 2>conftest.er1
24318  ac_status=$?
24319  grep -v '^ *+' conftest.er1 >conftest.err
24320  rm -f conftest.er1
24321  cat conftest.err >&5
24322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323  (exit $ac_status); } &&
24324	 { ac_try='test -z "$ac_c_werror_flag"
24325			 || test ! -s conftest.err'
24326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327  (eval $ac_try) 2>&5
24328  ac_status=$?
24329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330  (exit $ac_status); }; } &&
24331	 { ac_try='test -s conftest.$ac_objext'
24332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333  (eval $ac_try) 2>&5
24334  ac_status=$?
24335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336  (exit $ac_status); }; }; then
24337  ac_cv_c_const=yes
24338else
24339  echo "$as_me: failed program was:" >&5
24340sed 's/^/| /' conftest.$ac_ext >&5
24341
24342ac_cv_c_const=no
24343fi
24344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24345fi
24346echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24347echo "${ECHO_T}$ac_cv_c_const" >&6
24348if test $ac_cv_c_const = no; then
24349
24350cat >>confdefs.h <<\_ACEOF
24351#define const
24352_ACEOF
24353
24354fi
24355
24356echo "$as_me:$LINENO: checking for mbstate_t" >&5
24357echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24358if test "${ac_cv_type_mbstate_t+set}" = set; then
24359  echo $ECHO_N "(cached) $ECHO_C" >&6
24360else
24361  cat >conftest.$ac_ext <<_ACEOF
24362/* confdefs.h.  */
24363_ACEOF
24364cat confdefs.h >>conftest.$ac_ext
24365cat >>conftest.$ac_ext <<_ACEOF
24366/* end confdefs.h.  */
24367$ac_includes_default
24368#	    include <wchar.h>
24369int
24370main ()
24371{
24372mbstate_t x; return sizeof x;
24373  ;
24374  return 0;
24375}
24376_ACEOF
24377rm -f conftest.$ac_objext
24378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24379  (eval $ac_compile) 2>conftest.er1
24380  ac_status=$?
24381  grep -v '^ *+' conftest.er1 >conftest.err
24382  rm -f conftest.er1
24383  cat conftest.err >&5
24384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385  (exit $ac_status); } &&
24386	 { ac_try='test -z "$ac_c_werror_flag"
24387			 || test ! -s conftest.err'
24388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389  (eval $ac_try) 2>&5
24390  ac_status=$?
24391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392  (exit $ac_status); }; } &&
24393	 { ac_try='test -s conftest.$ac_objext'
24394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395  (eval $ac_try) 2>&5
24396  ac_status=$?
24397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398  (exit $ac_status); }; }; then
24399  ac_cv_type_mbstate_t=yes
24400else
24401  echo "$as_me: failed program was:" >&5
24402sed 's/^/| /' conftest.$ac_ext >&5
24403
24404ac_cv_type_mbstate_t=no
24405fi
24406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24407fi
24408echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24409echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
24410   if test $ac_cv_type_mbstate_t = yes; then
24411
24412cat >>confdefs.h <<\_ACEOF
24413#define HAVE_MBSTATE_T 1
24414_ACEOF
24415
24416   else
24417
24418cat >>confdefs.h <<\_ACEOF
24419#define mbstate_t int
24420_ACEOF
24421
24422   fi
24423
24424  FNMATCH_H=
24425  echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
24426echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
24427if test "${ac_cv_func_fnmatch_posix+set}" = set; then
24428  echo $ECHO_N "(cached) $ECHO_C" >&6
24429else
24430              if test "$cross_compiling" = yes; then
24431  ac_cv_func_fnmatch_posix=cross
24432else
24433  cat >conftest.$ac_ext <<_ACEOF
24434/* confdefs.h.  */
24435_ACEOF
24436cat confdefs.h >>conftest.$ac_ext
24437cat >>conftest.$ac_ext <<_ACEOF
24438/* end confdefs.h.  */
24439
24440#	   include <stdlib.h>
24441#	   include <fnmatch.h>
24442#	   define y(a, b, c) (fnmatch (a, b, c) == 0)
24443#	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
24444
24445int
24446main ()
24447{
24448exit
24449	   (!(y ("a*", "abc", 0)
24450	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
24451	      && y ("a\\\\bc", "abc", 0)
24452	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
24453	      && y ("*x", ".x", 0)
24454	      && n ("*x", ".x", FNM_PERIOD)
24455	      && 1));
24456  ;
24457  return 0;
24458}
24459_ACEOF
24460rm -f conftest$ac_exeext
24461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24462  (eval $ac_link) 2>&5
24463  ac_status=$?
24464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467  (eval $ac_try) 2>&5
24468  ac_status=$?
24469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470  (exit $ac_status); }; }; then
24471  ac_cv_func_fnmatch_posix=yes
24472else
24473  echo "$as_me: program exited with status $ac_status" >&5
24474echo "$as_me: failed program was:" >&5
24475sed 's/^/| /' conftest.$ac_ext >&5
24476
24477( exit $ac_status )
24478ac_cv_func_fnmatch_posix=no
24479fi
24480rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24481fi
24482fi
24483echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
24484echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6
24485if test $ac_cv_func_fnmatch_posix = yes; then
24486  rm -f lib/fnmatch.h
24487else
24488  echo "$as_me:$LINENO: checking whether getenv is declared" >&5
24489echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
24490if test "${ac_cv_have_decl_getenv+set}" = set; then
24491  echo $ECHO_N "(cached) $ECHO_C" >&6
24492else
24493  cat >conftest.$ac_ext <<_ACEOF
24494/* confdefs.h.  */
24495_ACEOF
24496cat confdefs.h >>conftest.$ac_ext
24497cat >>conftest.$ac_ext <<_ACEOF
24498/* end confdefs.h.  */
24499$ac_includes_default
24500int
24501main ()
24502{
24503#ifndef getenv
24504  char *p = (char *) getenv;
24505#endif
24506
24507  ;
24508  return 0;
24509}
24510_ACEOF
24511rm -f conftest.$ac_objext
24512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24513  (eval $ac_compile) 2>conftest.er1
24514  ac_status=$?
24515  grep -v '^ *+' conftest.er1 >conftest.err
24516  rm -f conftest.er1
24517  cat conftest.err >&5
24518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519  (exit $ac_status); } &&
24520	 { ac_try='test -z "$ac_c_werror_flag"
24521			 || test ! -s conftest.err'
24522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24523  (eval $ac_try) 2>&5
24524  ac_status=$?
24525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526  (exit $ac_status); }; } &&
24527	 { ac_try='test -s conftest.$ac_objext'
24528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24529  (eval $ac_try) 2>&5
24530  ac_status=$?
24531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532  (exit $ac_status); }; }; then
24533  ac_cv_have_decl_getenv=yes
24534else
24535  echo "$as_me: failed program was:" >&5
24536sed 's/^/| /' conftest.$ac_ext >&5
24537
24538ac_cv_have_decl_getenv=no
24539fi
24540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24541fi
24542echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
24543echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
24544if test $ac_cv_have_decl_getenv = yes; then
24545
24546cat >>confdefs.h <<_ACEOF
24547#define HAVE_DECL_GETENV 1
24548_ACEOF
24549
24550
24551else
24552  cat >>confdefs.h <<_ACEOF
24553#define HAVE_DECL_GETENV 0
24554_ACEOF
24555
24556
24557fi
24558
24559
24560
24561
24562
24563
24564
24565
24566for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
24567do
24568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24569echo "$as_me:$LINENO: checking for $ac_func" >&5
24570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24571if eval "test \"\${$as_ac_var+set}\" = set"; then
24572  echo $ECHO_N "(cached) $ECHO_C" >&6
24573else
24574  cat >conftest.$ac_ext <<_ACEOF
24575/* confdefs.h.  */
24576_ACEOF
24577cat confdefs.h >>conftest.$ac_ext
24578cat >>conftest.$ac_ext <<_ACEOF
24579/* end confdefs.h.  */
24580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24581   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24582#define $ac_func innocuous_$ac_func
24583
24584/* System header to define __stub macros and hopefully few prototypes,
24585    which can conflict with char $ac_func (); below.
24586    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24587    <limits.h> exists even on freestanding compilers.  */
24588
24589#ifdef __STDC__
24590# include <limits.h>
24591#else
24592# include <assert.h>
24593#endif
24594
24595#undef $ac_func
24596
24597/* Override any gcc2 internal prototype to avoid an error.  */
24598#ifdef __cplusplus
24599extern "C"
24600{
24601#endif
24602/* We use char because int might match the return type of a gcc2
24603   builtin and then its argument prototype would still apply.  */
24604char $ac_func ();
24605/* The GNU C library defines this for functions which it implements
24606    to always fail with ENOSYS.  Some functions are actually named
24607    something starting with __ and the normal name is an alias.  */
24608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24609choke me
24610#else
24611char (*f) () = $ac_func;
24612#endif
24613#ifdef __cplusplus
24614}
24615#endif
24616
24617int
24618main ()
24619{
24620return f != $ac_func;
24621  ;
24622  return 0;
24623}
24624_ACEOF
24625rm -f conftest.$ac_objext conftest$ac_exeext
24626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24627  (eval $ac_link) 2>conftest.er1
24628  ac_status=$?
24629  grep -v '^ *+' conftest.er1 >conftest.err
24630  rm -f conftest.er1
24631  cat conftest.err >&5
24632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633  (exit $ac_status); } &&
24634	 { ac_try='test -z "$ac_c_werror_flag"
24635			 || test ! -s conftest.err'
24636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637  (eval $ac_try) 2>&5
24638  ac_status=$?
24639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640  (exit $ac_status); }; } &&
24641	 { ac_try='test -s conftest$ac_exeext'
24642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24643  (eval $ac_try) 2>&5
24644  ac_status=$?
24645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646  (exit $ac_status); }; }; then
24647  eval "$as_ac_var=yes"
24648else
24649  echo "$as_me: failed program was:" >&5
24650sed 's/^/| /' conftest.$ac_ext >&5
24651
24652eval "$as_ac_var=no"
24653fi
24654rm -f conftest.err conftest.$ac_objext \
24655      conftest$ac_exeext conftest.$ac_ext
24656fi
24657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24659if test `eval echo '${'$as_ac_var'}'` = yes; then
24660  cat >>confdefs.h <<_ACEOF
24661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24662_ACEOF
24663
24664fi
24665done
24666
24667
24668
24669for ac_header in wchar.h wctype.h
24670do
24671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24672if eval "test \"\${$as_ac_Header+set}\" = set"; then
24673  echo "$as_me:$LINENO: checking for $ac_header" >&5
24674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24675if eval "test \"\${$as_ac_Header+set}\" = set"; then
24676  echo $ECHO_N "(cached) $ECHO_C" >&6
24677fi
24678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24680else
24681  # Is the header compilable?
24682echo "$as_me:$LINENO: checking $ac_header usability" >&5
24683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24684cat >conftest.$ac_ext <<_ACEOF
24685/* confdefs.h.  */
24686_ACEOF
24687cat confdefs.h >>conftest.$ac_ext
24688cat >>conftest.$ac_ext <<_ACEOF
24689/* end confdefs.h.  */
24690$ac_includes_default
24691#include <$ac_header>
24692_ACEOF
24693rm -f conftest.$ac_objext
24694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24695  (eval $ac_compile) 2>conftest.er1
24696  ac_status=$?
24697  grep -v '^ *+' conftest.er1 >conftest.err
24698  rm -f conftest.er1
24699  cat conftest.err >&5
24700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701  (exit $ac_status); } &&
24702	 { ac_try='test -z "$ac_c_werror_flag"
24703			 || test ! -s conftest.err'
24704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24705  (eval $ac_try) 2>&5
24706  ac_status=$?
24707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708  (exit $ac_status); }; } &&
24709	 { ac_try='test -s conftest.$ac_objext'
24710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24711  (eval $ac_try) 2>&5
24712  ac_status=$?
24713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714  (exit $ac_status); }; }; then
24715  ac_header_compiler=yes
24716else
24717  echo "$as_me: failed program was:" >&5
24718sed 's/^/| /' conftest.$ac_ext >&5
24719
24720ac_header_compiler=no
24721fi
24722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24724echo "${ECHO_T}$ac_header_compiler" >&6
24725
24726# Is the header present?
24727echo "$as_me:$LINENO: checking $ac_header presence" >&5
24728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24729cat >conftest.$ac_ext <<_ACEOF
24730/* confdefs.h.  */
24731_ACEOF
24732cat confdefs.h >>conftest.$ac_ext
24733cat >>conftest.$ac_ext <<_ACEOF
24734/* end confdefs.h.  */
24735#include <$ac_header>
24736_ACEOF
24737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24738  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24739  ac_status=$?
24740  grep -v '^ *+' conftest.er1 >conftest.err
24741  rm -f conftest.er1
24742  cat conftest.err >&5
24743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744  (exit $ac_status); } >/dev/null; then
24745  if test -s conftest.err; then
24746    ac_cpp_err=$ac_c_preproc_warn_flag
24747    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24748  else
24749    ac_cpp_err=
24750  fi
24751else
24752  ac_cpp_err=yes
24753fi
24754if test -z "$ac_cpp_err"; then
24755  ac_header_preproc=yes
24756else
24757  echo "$as_me: failed program was:" >&5
24758sed 's/^/| /' conftest.$ac_ext >&5
24759
24760  ac_header_preproc=no
24761fi
24762rm -f conftest.err conftest.$ac_ext
24763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24764echo "${ECHO_T}$ac_header_preproc" >&6
24765
24766# So?  What about this header?
24767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24768  yes:no: )
24769    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24771    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24773    ac_header_preproc=yes
24774    ;;
24775  no:yes:* )
24776    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24778    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24779echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24780    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24782    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24783echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24786    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24788    (
24789      cat <<\_ASBOX
24790## ------------------------------------------ ##
24791## Report this to the AC_PACKAGE_NAME lists.  ##
24792## ------------------------------------------ ##
24793_ASBOX
24794    ) |
24795      sed "s/^/$as_me: WARNING:     /" >&2
24796    ;;
24797esac
24798echo "$as_me:$LINENO: checking for $ac_header" >&5
24799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24800if eval "test \"\${$as_ac_Header+set}\" = set"; then
24801  echo $ECHO_N "(cached) $ECHO_C" >&6
24802else
24803  eval "$as_ac_Header=\$ac_header_preproc"
24804fi
24805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24807
24808fi
24809if test `eval echo '${'$as_ac_Header'}'` = yes; then
24810  cat >>confdefs.h <<_ACEOF
24811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24812_ACEOF
24813
24814fi
24815
24816done
24817
24818case $LIBOBJS in
24819    "fnmatch.$ac_objext"   | \
24820  *" fnmatch.$ac_objext"   | \
24821    "fnmatch.$ac_objext "* | \
24822  *" fnmatch.$ac_objext "* ) ;;
24823  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
24824esac
24825
24826FNMATCH_H=fnmatch.h
24827
24828fi
24829
24830
24831  if test $ac_cv_func_fnmatch_posix != yes; then
24832
24833cat >>confdefs.h <<\_ACEOF
24834#define fnmatch posix_fnmatch
24835_ACEOF
24836
24837  fi
24838
24839
24840
24841  :
24842
24843  if test -z "$GETOPT_H"; then
24844    GETOPT_H=
24845
24846for ac_header in getopt.h
24847do
24848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24849if eval "test \"\${$as_ac_Header+set}\" = set"; then
24850  echo "$as_me:$LINENO: checking for $ac_header" >&5
24851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24852if eval "test \"\${$as_ac_Header+set}\" = set"; then
24853  echo $ECHO_N "(cached) $ECHO_C" >&6
24854fi
24855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24857else
24858  # Is the header compilable?
24859echo "$as_me:$LINENO: checking $ac_header usability" >&5
24860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24861cat >conftest.$ac_ext <<_ACEOF
24862/* confdefs.h.  */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h.  */
24867$ac_includes_default
24868#include <$ac_header>
24869_ACEOF
24870rm -f conftest.$ac_objext
24871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24872  (eval $ac_compile) 2>conftest.er1
24873  ac_status=$?
24874  grep -v '^ *+' conftest.er1 >conftest.err
24875  rm -f conftest.er1
24876  cat conftest.err >&5
24877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878  (exit $ac_status); } &&
24879	 { ac_try='test -z "$ac_c_werror_flag"
24880			 || test ! -s conftest.err'
24881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882  (eval $ac_try) 2>&5
24883  ac_status=$?
24884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885  (exit $ac_status); }; } &&
24886	 { ac_try='test -s conftest.$ac_objext'
24887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888  (eval $ac_try) 2>&5
24889  ac_status=$?
24890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891  (exit $ac_status); }; }; then
24892  ac_header_compiler=yes
24893else
24894  echo "$as_me: failed program was:" >&5
24895sed 's/^/| /' conftest.$ac_ext >&5
24896
24897ac_header_compiler=no
24898fi
24899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24901echo "${ECHO_T}$ac_header_compiler" >&6
24902
24903# Is the header present?
24904echo "$as_me:$LINENO: checking $ac_header presence" >&5
24905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24906cat >conftest.$ac_ext <<_ACEOF
24907/* confdefs.h.  */
24908_ACEOF
24909cat confdefs.h >>conftest.$ac_ext
24910cat >>conftest.$ac_ext <<_ACEOF
24911/* end confdefs.h.  */
24912#include <$ac_header>
24913_ACEOF
24914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24915  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24916  ac_status=$?
24917  grep -v '^ *+' conftest.er1 >conftest.err
24918  rm -f conftest.er1
24919  cat conftest.err >&5
24920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921  (exit $ac_status); } >/dev/null; then
24922  if test -s conftest.err; then
24923    ac_cpp_err=$ac_c_preproc_warn_flag
24924    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24925  else
24926    ac_cpp_err=
24927  fi
24928else
24929  ac_cpp_err=yes
24930fi
24931if test -z "$ac_cpp_err"; then
24932  ac_header_preproc=yes
24933else
24934  echo "$as_me: failed program was:" >&5
24935sed 's/^/| /' conftest.$ac_ext >&5
24936
24937  ac_header_preproc=no
24938fi
24939rm -f conftest.err conftest.$ac_ext
24940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24941echo "${ECHO_T}$ac_header_preproc" >&6
24942
24943# So?  What about this header?
24944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24945  yes:no: )
24946    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24947echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24948    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24949echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24950    ac_header_preproc=yes
24951    ;;
24952  no:yes:* )
24953    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24954echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24955    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24956echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24957    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24958echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24959    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24960echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24961    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24963    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24964echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24965    (
24966      cat <<\_ASBOX
24967## ------------------------------------------ ##
24968## Report this to the AC_PACKAGE_NAME lists.  ##
24969## ------------------------------------------ ##
24970_ASBOX
24971    ) |
24972      sed "s/^/$as_me: WARNING:     /" >&2
24973    ;;
24974esac
24975echo "$as_me:$LINENO: checking for $ac_header" >&5
24976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24977if eval "test \"\${$as_ac_Header+set}\" = set"; then
24978  echo $ECHO_N "(cached) $ECHO_C" >&6
24979else
24980  eval "$as_ac_Header=\$ac_header_preproc"
24981fi
24982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24984
24985fi
24986if test `eval echo '${'$as_ac_Header'}'` = yes; then
24987  cat >>confdefs.h <<_ACEOF
24988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24989_ACEOF
24990
24991else
24992  GETOPT_H=getopt.h
24993fi
24994
24995done
24996
24997
24998for ac_func in getopt_long_only
24999do
25000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25001echo "$as_me:$LINENO: checking for $ac_func" >&5
25002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25003if eval "test \"\${$as_ac_var+set}\" = set"; then
25004  echo $ECHO_N "(cached) $ECHO_C" >&6
25005else
25006  cat >conftest.$ac_ext <<_ACEOF
25007/* confdefs.h.  */
25008_ACEOF
25009cat confdefs.h >>conftest.$ac_ext
25010cat >>conftest.$ac_ext <<_ACEOF
25011/* end confdefs.h.  */
25012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25013   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25014#define $ac_func innocuous_$ac_func
25015
25016/* System header to define __stub macros and hopefully few prototypes,
25017    which can conflict with char $ac_func (); below.
25018    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25019    <limits.h> exists even on freestanding compilers.  */
25020
25021#ifdef __STDC__
25022# include <limits.h>
25023#else
25024# include <assert.h>
25025#endif
25026
25027#undef $ac_func
25028
25029/* Override any gcc2 internal prototype to avoid an error.  */
25030#ifdef __cplusplus
25031extern "C"
25032{
25033#endif
25034/* We use char because int might match the return type of a gcc2
25035   builtin and then its argument prototype would still apply.  */
25036char $ac_func ();
25037/* The GNU C library defines this for functions which it implements
25038    to always fail with ENOSYS.  Some functions are actually named
25039    something starting with __ and the normal name is an alias.  */
25040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25041choke me
25042#else
25043char (*f) () = $ac_func;
25044#endif
25045#ifdef __cplusplus
25046}
25047#endif
25048
25049int
25050main ()
25051{
25052return f != $ac_func;
25053  ;
25054  return 0;
25055}
25056_ACEOF
25057rm -f conftest.$ac_objext conftest$ac_exeext
25058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25059  (eval $ac_link) 2>conftest.er1
25060  ac_status=$?
25061  grep -v '^ *+' conftest.er1 >conftest.err
25062  rm -f conftest.er1
25063  cat conftest.err >&5
25064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065  (exit $ac_status); } &&
25066	 { ac_try='test -z "$ac_c_werror_flag"
25067			 || test ! -s conftest.err'
25068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069  (eval $ac_try) 2>&5
25070  ac_status=$?
25071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072  (exit $ac_status); }; } &&
25073	 { ac_try='test -s conftest$ac_exeext'
25074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075  (eval $ac_try) 2>&5
25076  ac_status=$?
25077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078  (exit $ac_status); }; }; then
25079  eval "$as_ac_var=yes"
25080else
25081  echo "$as_me: failed program was:" >&5
25082sed 's/^/| /' conftest.$ac_ext >&5
25083
25084eval "$as_ac_var=no"
25085fi
25086rm -f conftest.err conftest.$ac_objext \
25087      conftest$ac_exeext conftest.$ac_ext
25088fi
25089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25091if test `eval echo '${'$as_ac_var'}'` = yes; then
25092  cat >>confdefs.h <<_ACEOF
25093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25094_ACEOF
25095
25096else
25097  GETOPT_H=getopt.h
25098fi
25099done
25100
25101
25102            echo "$as_me:$LINENO: checking whether optreset is declared" >&5
25103echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
25104if test "${ac_cv_have_decl_optreset+set}" = set; then
25105  echo $ECHO_N "(cached) $ECHO_C" >&6
25106else
25107  cat >conftest.$ac_ext <<_ACEOF
25108/* confdefs.h.  */
25109_ACEOF
25110cat confdefs.h >>conftest.$ac_ext
25111cat >>conftest.$ac_ext <<_ACEOF
25112/* end confdefs.h.  */
25113#include <getopt.h>
25114
25115int
25116main ()
25117{
25118#ifndef optreset
25119  char *p = (char *) optreset;
25120#endif
25121
25122  ;
25123  return 0;
25124}
25125_ACEOF
25126rm -f conftest.$ac_objext
25127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25128  (eval $ac_compile) 2>conftest.er1
25129  ac_status=$?
25130  grep -v '^ *+' conftest.er1 >conftest.err
25131  rm -f conftest.er1
25132  cat conftest.err >&5
25133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134  (exit $ac_status); } &&
25135	 { ac_try='test -z "$ac_c_werror_flag"
25136			 || test ! -s conftest.err'
25137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138  (eval $ac_try) 2>&5
25139  ac_status=$?
25140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141  (exit $ac_status); }; } &&
25142	 { ac_try='test -s conftest.$ac_objext'
25143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144  (eval $ac_try) 2>&5
25145  ac_status=$?
25146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147  (exit $ac_status); }; }; then
25148  ac_cv_have_decl_optreset=yes
25149else
25150  echo "$as_me: failed program was:" >&5
25151sed 's/^/| /' conftest.$ac_ext >&5
25152
25153ac_cv_have_decl_optreset=no
25154fi
25155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25156fi
25157echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
25158echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
25159if test $ac_cv_have_decl_optreset = yes; then
25160  GETOPT_H=getopt.h
25161fi
25162
25163
25164    if test -n "$GETOPT_H"; then
25165
25166  GETOPT_H=getopt.h
25167  case $LIBOBJS in
25168    "getopt.$ac_objext"   | \
25169  *" getopt.$ac_objext"   | \
25170    "getopt.$ac_objext "* | \
25171  *" getopt.$ac_objext "* ) ;;
25172  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
25173esac
25174
25175  case $LIBOBJS in
25176    "getopt1.$ac_objext"   | \
25177  *" getopt1.$ac_objext"   | \
25178    "getopt1.$ac_objext "* | \
25179  *" getopt1.$ac_objext "* ) ;;
25180  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
25181esac
25182
25183
25184cat >>confdefs.h <<\_ACEOF
25185#define __GETOPT_PREFIX rpl_
25186_ACEOF
25187
25188
25189
25190    fi
25191  fi
25192
25193
25194  echo "$as_me:$LINENO: checking for eaccess" >&5
25195echo $ECHO_N "checking for eaccess... $ECHO_C" >&6
25196if test "${ac_cv_func_eaccess+set}" = set; then
25197  echo $ECHO_N "(cached) $ECHO_C" >&6
25198else
25199  cat >conftest.$ac_ext <<_ACEOF
25200/* confdefs.h.  */
25201_ACEOF
25202cat confdefs.h >>conftest.$ac_ext
25203cat >>conftest.$ac_ext <<_ACEOF
25204/* end confdefs.h.  */
25205/* Define eaccess to an innocuous variant, in case <limits.h> declares eaccess.
25206   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25207#define eaccess innocuous_eaccess
25208
25209/* System header to define __stub macros and hopefully few prototypes,
25210    which can conflict with char eaccess (); below.
25211    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25212    <limits.h> exists even on freestanding compilers.  */
25213
25214#ifdef __STDC__
25215# include <limits.h>
25216#else
25217# include <assert.h>
25218#endif
25219
25220#undef eaccess
25221
25222/* Override any gcc2 internal prototype to avoid an error.  */
25223#ifdef __cplusplus
25224extern "C"
25225{
25226#endif
25227/* We use char because int might match the return type of a gcc2
25228   builtin and then its argument prototype would still apply.  */
25229char eaccess ();
25230/* The GNU C library defines this for functions which it implements
25231    to always fail with ENOSYS.  Some functions are actually named
25232    something starting with __ and the normal name is an alias.  */
25233#if defined (__stub_eaccess) || defined (__stub___eaccess)
25234choke me
25235#else
25236char (*f) () = eaccess;
25237#endif
25238#ifdef __cplusplus
25239}
25240#endif
25241
25242int
25243main ()
25244{
25245return f != eaccess;
25246  ;
25247  return 0;
25248}
25249_ACEOF
25250rm -f conftest.$ac_objext conftest$ac_exeext
25251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25252  (eval $ac_link) 2>conftest.er1
25253  ac_status=$?
25254  grep -v '^ *+' conftest.er1 >conftest.err
25255  rm -f conftest.er1
25256  cat conftest.err >&5
25257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258  (exit $ac_status); } &&
25259	 { ac_try='test -z "$ac_c_werror_flag"
25260			 || test ! -s conftest.err'
25261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262  (eval $ac_try) 2>&5
25263  ac_status=$?
25264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265  (exit $ac_status); }; } &&
25266	 { ac_try='test -s conftest$ac_exeext'
25267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25268  (eval $ac_try) 2>&5
25269  ac_status=$?
25270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271  (exit $ac_status); }; }; then
25272  ac_cv_func_eaccess=yes
25273else
25274  echo "$as_me: failed program was:" >&5
25275sed 's/^/| /' conftest.$ac_ext >&5
25276
25277ac_cv_func_eaccess=no
25278fi
25279rm -f conftest.err conftest.$ac_objext \
25280      conftest$ac_exeext conftest.$ac_ext
25281fi
25282echo "$as_me:$LINENO: result: $ac_cv_func_eaccess" >&5
25283echo "${ECHO_T}$ac_cv_func_eaccess" >&6
25284if test $ac_cv_func_eaccess = yes; then
25285  :
25286else
25287
25288cat >>confdefs.h <<\_ACEOF
25289#define eaccess access
25290_ACEOF
25291
25292fi
25293
25294
25295
25296
25297
25298
25299  echo "$as_me:$LINENO: checking for working stpncpy" >&5
25300echo $ECHO_N "checking for working stpncpy... $ECHO_C" >&6
25301if test "${gl_cv_func_stpncpy+set}" = set; then
25302  echo $ECHO_N "(cached) $ECHO_C" >&6
25303else
25304
25305    if test "$cross_compiling" = yes; then
25306  cat >conftest.$ac_ext <<_ACEOF
25307/* confdefs.h.  */
25308_ACEOF
25309cat confdefs.h >>conftest.$ac_ext
25310cat >>conftest.$ac_ext <<_ACEOF
25311/* end confdefs.h.  */
25312
25313#include <features.h>
25314#ifdef __GNU_LIBRARY__
25315  Thanks for using GNU
25316#endif
25317
25318_ACEOF
25319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25320  $EGREP "Thanks for using GNU" >/dev/null 2>&1; then
25321  gl_cv_func_stpncpy=yes
25322else
25323  gl_cv_func_stpncpy=no
25324fi
25325rm -f conftest*
25326
25327else
25328  cat >conftest.$ac_ext <<_ACEOF
25329/* confdefs.h.  */
25330_ACEOF
25331cat confdefs.h >>conftest.$ac_ext
25332cat >>conftest.$ac_ext <<_ACEOF
25333/* end confdefs.h.  */
25334
25335#include <stdlib.h>
25336extern char *stpncpy (char *dest, const char *src, size_t n);
25337int main () {
25338  const char *src = "Hello";
25339  char dest[10];
25340  /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */
25341  strcpy (dest, "\377\377\377\377\377\377");
25342  if (stpncpy (dest, src, 2) != dest + 2) exit(1);
25343  /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */
25344  strcpy (dest, "\377\377\377\377\377\377");
25345  if (stpncpy (dest, src, 5) != dest + 5) exit(1);
25346  /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */
25347  strcpy (dest, "\377\377\377\377\377\377");
25348  if (stpncpy (dest, src, 7) != dest + 5) exit(1);
25349  exit(0);
25350}
25351
25352_ACEOF
25353rm -f conftest$ac_exeext
25354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25355  (eval $ac_link) 2>&5
25356  ac_status=$?
25357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360  (eval $ac_try) 2>&5
25361  ac_status=$?
25362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363  (exit $ac_status); }; }; then
25364  gl_cv_func_stpncpy=yes
25365else
25366  echo "$as_me: program exited with status $ac_status" >&5
25367echo "$as_me: failed program was:" >&5
25368sed 's/^/| /' conftest.$ac_ext >&5
25369
25370( exit $ac_status )
25371gl_cv_func_stpncpy=no
25372fi
25373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25374fi
25375fi
25376echo "$as_me:$LINENO: result: $gl_cv_func_stpncpy" >&5
25377echo "${ECHO_T}$gl_cv_func_stpncpy" >&6
25378
25379  if test $gl_cv_func_stpncpy = yes; then
25380
25381cat >>confdefs.h <<\_ACEOF
25382#define HAVE_STPNCPY 1
25383_ACEOF
25384
25385  else
25386    case $LIBOBJS in
25387    "stpncpy.$ac_objext"   | \
25388  *" stpncpy.$ac_objext"   | \
25389    "stpncpy.$ac_objext "* | \
25390  *" stpncpy.$ac_objext "* ) ;;
25391  *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
25392esac
25393
25394
25395  :
25396
25397  fi
25398
25399
25400
25401
25402for ac_func in strcasecmp
25403do
25404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25405echo "$as_me:$LINENO: checking for $ac_func" >&5
25406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25407if eval "test \"\${$as_ac_var+set}\" = set"; then
25408  echo $ECHO_N "(cached) $ECHO_C" >&6
25409else
25410  cat >conftest.$ac_ext <<_ACEOF
25411/* confdefs.h.  */
25412_ACEOF
25413cat confdefs.h >>conftest.$ac_ext
25414cat >>conftest.$ac_ext <<_ACEOF
25415/* end confdefs.h.  */
25416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25418#define $ac_func innocuous_$ac_func
25419
25420/* System header to define __stub macros and hopefully few prototypes,
25421    which can conflict with char $ac_func (); below.
25422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25423    <limits.h> exists even on freestanding compilers.  */
25424
25425#ifdef __STDC__
25426# include <limits.h>
25427#else
25428# include <assert.h>
25429#endif
25430
25431#undef $ac_func
25432
25433/* Override any gcc2 internal prototype to avoid an error.  */
25434#ifdef __cplusplus
25435extern "C"
25436{
25437#endif
25438/* We use char because int might match the return type of a gcc2
25439   builtin and then its argument prototype would still apply.  */
25440char $ac_func ();
25441/* The GNU C library defines this for functions which it implements
25442    to always fail with ENOSYS.  Some functions are actually named
25443    something starting with __ and the normal name is an alias.  */
25444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25445choke me
25446#else
25447char (*f) () = $ac_func;
25448#endif
25449#ifdef __cplusplus
25450}
25451#endif
25452
25453int
25454main ()
25455{
25456return f != $ac_func;
25457  ;
25458  return 0;
25459}
25460_ACEOF
25461rm -f conftest.$ac_objext conftest$ac_exeext
25462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25463  (eval $ac_link) 2>conftest.er1
25464  ac_status=$?
25465  grep -v '^ *+' conftest.er1 >conftest.err
25466  rm -f conftest.er1
25467  cat conftest.err >&5
25468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469  (exit $ac_status); } &&
25470	 { ac_try='test -z "$ac_c_werror_flag"
25471			 || test ! -s conftest.err'
25472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473  (eval $ac_try) 2>&5
25474  ac_status=$?
25475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476  (exit $ac_status); }; } &&
25477	 { ac_try='test -s conftest$ac_exeext'
25478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479  (eval $ac_try) 2>&5
25480  ac_status=$?
25481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482  (exit $ac_status); }; }; then
25483  eval "$as_ac_var=yes"
25484else
25485  echo "$as_me: failed program was:" >&5
25486sed 's/^/| /' conftest.$ac_ext >&5
25487
25488eval "$as_ac_var=no"
25489fi
25490rm -f conftest.err conftest.$ac_objext \
25491      conftest$ac_exeext conftest.$ac_ext
25492fi
25493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25495if test `eval echo '${'$as_ac_var'}'` = yes; then
25496  cat >>confdefs.h <<_ACEOF
25497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25498_ACEOF
25499
25500else
25501  case $LIBOBJS in
25502    "$ac_func.$ac_objext"   | \
25503  *" $ac_func.$ac_objext"   | \
25504    "$ac_func.$ac_objext "* | \
25505  *" $ac_func.$ac_objext "* ) ;;
25506  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25507esac
25508
25509fi
25510done
25511
25512
25513  if test $ac_cv_func_strcasecmp = no; then
25514
25515  :
25516
25517  fi
25518
25519
25520
25521for ac_func in strncasecmp
25522do
25523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25524echo "$as_me:$LINENO: checking for $ac_func" >&5
25525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25526if eval "test \"\${$as_ac_var+set}\" = set"; then
25527  echo $ECHO_N "(cached) $ECHO_C" >&6
25528else
25529  cat >conftest.$ac_ext <<_ACEOF
25530/* confdefs.h.  */
25531_ACEOF
25532cat confdefs.h >>conftest.$ac_ext
25533cat >>conftest.$ac_ext <<_ACEOF
25534/* end confdefs.h.  */
25535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25536   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25537#define $ac_func innocuous_$ac_func
25538
25539/* System header to define __stub macros and hopefully few prototypes,
25540    which can conflict with char $ac_func (); below.
25541    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25542    <limits.h> exists even on freestanding compilers.  */
25543
25544#ifdef __STDC__
25545# include <limits.h>
25546#else
25547# include <assert.h>
25548#endif
25549
25550#undef $ac_func
25551
25552/* Override any gcc2 internal prototype to avoid an error.  */
25553#ifdef __cplusplus
25554extern "C"
25555{
25556#endif
25557/* We use char because int might match the return type of a gcc2
25558   builtin and then its argument prototype would still apply.  */
25559char $ac_func ();
25560/* The GNU C library defines this for functions which it implements
25561    to always fail with ENOSYS.  Some functions are actually named
25562    something starting with __ and the normal name is an alias.  */
25563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25564choke me
25565#else
25566char (*f) () = $ac_func;
25567#endif
25568#ifdef __cplusplus
25569}
25570#endif
25571
25572int
25573main ()
25574{
25575return f != $ac_func;
25576  ;
25577  return 0;
25578}
25579_ACEOF
25580rm -f conftest.$ac_objext conftest$ac_exeext
25581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25582  (eval $ac_link) 2>conftest.er1
25583  ac_status=$?
25584  grep -v '^ *+' conftest.er1 >conftest.err
25585  rm -f conftest.er1
25586  cat conftest.err >&5
25587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588  (exit $ac_status); } &&
25589	 { ac_try='test -z "$ac_c_werror_flag"
25590			 || test ! -s conftest.err'
25591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592  (eval $ac_try) 2>&5
25593  ac_status=$?
25594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595  (exit $ac_status); }; } &&
25596	 { ac_try='test -s conftest$ac_exeext'
25597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598  (eval $ac_try) 2>&5
25599  ac_status=$?
25600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601  (exit $ac_status); }; }; then
25602  eval "$as_ac_var=yes"
25603else
25604  echo "$as_me: failed program was:" >&5
25605sed 's/^/| /' conftest.$ac_ext >&5
25606
25607eval "$as_ac_var=no"
25608fi
25609rm -f conftest.err conftest.$ac_objext \
25610      conftest$ac_exeext conftest.$ac_ext
25611fi
25612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25614if test `eval echo '${'$as_ac_var'}'` = yes; then
25615  cat >>confdefs.h <<_ACEOF
25616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25617_ACEOF
25618
25619else
25620  case $LIBOBJS in
25621    "$ac_func.$ac_objext"   | \
25622  *" $ac_func.$ac_objext"   | \
25623    "$ac_func.$ac_objext "* | \
25624  *" $ac_func.$ac_objext "* ) ;;
25625  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25626esac
25627
25628fi
25629done
25630
25631
25632  if test $ac_cv_func_strncasecmp = no; then
25633
25634  :
25635
25636  fi
25637
25638
25639
25640
25641for ac_func in isascii
25642do
25643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25644echo "$as_me:$LINENO: checking for $ac_func" >&5
25645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25646if eval "test \"\${$as_ac_var+set}\" = set"; then
25647  echo $ECHO_N "(cached) $ECHO_C" >&6
25648else
25649  cat >conftest.$ac_ext <<_ACEOF
25650/* confdefs.h.  */
25651_ACEOF
25652cat confdefs.h >>conftest.$ac_ext
25653cat >>conftest.$ac_ext <<_ACEOF
25654/* end confdefs.h.  */
25655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25656   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25657#define $ac_func innocuous_$ac_func
25658
25659/* System header to define __stub macros and hopefully few prototypes,
25660    which can conflict with char $ac_func (); below.
25661    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25662    <limits.h> exists even on freestanding compilers.  */
25663
25664#ifdef __STDC__
25665# include <limits.h>
25666#else
25667# include <assert.h>
25668#endif
25669
25670#undef $ac_func
25671
25672/* Override any gcc2 internal prototype to avoid an error.  */
25673#ifdef __cplusplus
25674extern "C"
25675{
25676#endif
25677/* We use char because int might match the return type of a gcc2
25678   builtin and then its argument prototype would still apply.  */
25679char $ac_func ();
25680/* The GNU C library defines this for functions which it implements
25681    to always fail with ENOSYS.  Some functions are actually named
25682    something starting with __ and the normal name is an alias.  */
25683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25684choke me
25685#else
25686char (*f) () = $ac_func;
25687#endif
25688#ifdef __cplusplus
25689}
25690#endif
25691
25692int
25693main ()
25694{
25695return f != $ac_func;
25696  ;
25697  return 0;
25698}
25699_ACEOF
25700rm -f conftest.$ac_objext conftest$ac_exeext
25701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25702  (eval $ac_link) 2>conftest.er1
25703  ac_status=$?
25704  grep -v '^ *+' conftest.er1 >conftest.err
25705  rm -f conftest.er1
25706  cat conftest.err >&5
25707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708  (exit $ac_status); } &&
25709	 { ac_try='test -z "$ac_c_werror_flag"
25710			 || test ! -s conftest.err'
25711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712  (eval $ac_try) 2>&5
25713  ac_status=$?
25714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715  (exit $ac_status); }; } &&
25716	 { ac_try='test -s conftest$ac_exeext'
25717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718  (eval $ac_try) 2>&5
25719  ac_status=$?
25720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721  (exit $ac_status); }; }; then
25722  eval "$as_ac_var=yes"
25723else
25724  echo "$as_me: failed program was:" >&5
25725sed 's/^/| /' conftest.$ac_ext >&5
25726
25727eval "$as_ac_var=no"
25728fi
25729rm -f conftest.err conftest.$ac_objext \
25730      conftest$ac_exeext conftest.$ac_ext
25731fi
25732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25734if test `eval echo '${'$as_ac_var'}'` = yes; then
25735  cat >>confdefs.h <<_ACEOF
25736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25737_ACEOF
25738
25739fi
25740done
25741
25742
25743
25744
25745for ac_func in strtoul
25746do
25747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25748echo "$as_me:$LINENO: checking for $ac_func" >&5
25749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25750if eval "test \"\${$as_ac_var+set}\" = set"; then
25751  echo $ECHO_N "(cached) $ECHO_C" >&6
25752else
25753  cat >conftest.$ac_ext <<_ACEOF
25754/* confdefs.h.  */
25755_ACEOF
25756cat confdefs.h >>conftest.$ac_ext
25757cat >>conftest.$ac_ext <<_ACEOF
25758/* end confdefs.h.  */
25759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25760   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25761#define $ac_func innocuous_$ac_func
25762
25763/* System header to define __stub macros and hopefully few prototypes,
25764    which can conflict with char $ac_func (); below.
25765    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25766    <limits.h> exists even on freestanding compilers.  */
25767
25768#ifdef __STDC__
25769# include <limits.h>
25770#else
25771# include <assert.h>
25772#endif
25773
25774#undef $ac_func
25775
25776/* Override any gcc2 internal prototype to avoid an error.  */
25777#ifdef __cplusplus
25778extern "C"
25779{
25780#endif
25781/* We use char because int might match the return type of a gcc2
25782   builtin and then its argument prototype would still apply.  */
25783char $ac_func ();
25784/* The GNU C library defines this for functions which it implements
25785    to always fail with ENOSYS.  Some functions are actually named
25786    something starting with __ and the normal name is an alias.  */
25787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25788choke me
25789#else
25790char (*f) () = $ac_func;
25791#endif
25792#ifdef __cplusplus
25793}
25794#endif
25795
25796int
25797main ()
25798{
25799return f != $ac_func;
25800  ;
25801  return 0;
25802}
25803_ACEOF
25804rm -f conftest.$ac_objext conftest$ac_exeext
25805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806  (eval $ac_link) 2>conftest.er1
25807  ac_status=$?
25808  grep -v '^ *+' conftest.er1 >conftest.err
25809  rm -f conftest.er1
25810  cat conftest.err >&5
25811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812  (exit $ac_status); } &&
25813	 { ac_try='test -z "$ac_c_werror_flag"
25814			 || test ! -s conftest.err'
25815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816  (eval $ac_try) 2>&5
25817  ac_status=$?
25818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819  (exit $ac_status); }; } &&
25820	 { ac_try='test -s conftest$ac_exeext'
25821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822  (eval $ac_try) 2>&5
25823  ac_status=$?
25824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825  (exit $ac_status); }; }; then
25826  eval "$as_ac_var=yes"
25827else
25828  echo "$as_me: failed program was:" >&5
25829sed 's/^/| /' conftest.$ac_ext >&5
25830
25831eval "$as_ac_var=no"
25832fi
25833rm -f conftest.err conftest.$ac_objext \
25834      conftest$ac_exeext conftest.$ac_ext
25835fi
25836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25838if test `eval echo '${'$as_ac_var'}'` = yes; then
25839  cat >>confdefs.h <<_ACEOF
25840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25841_ACEOF
25842
25843else
25844  case $LIBOBJS in
25845    "$ac_func.$ac_objext"   | \
25846  *" $ac_func.$ac_objext"   | \
25847    "$ac_func.$ac_objext "* | \
25848  *" $ac_func.$ac_objext "* ) ;;
25849  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25850esac
25851
25852fi
25853done
25854
25855
25856  if test $ac_cv_func_strtoul = no; then
25857
25858
25859
25860
25861  :
25862
25863
25864
25865
25866
25867
25868
25869  fi
25870
25871
25872
25873for ac_header in wchar.h
25874do
25875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25876if eval "test \"\${$as_ac_Header+set}\" = set"; then
25877  echo "$as_me:$LINENO: checking for $ac_header" >&5
25878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25879if eval "test \"\${$as_ac_Header+set}\" = set"; then
25880  echo $ECHO_N "(cached) $ECHO_C" >&6
25881fi
25882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25884else
25885  # Is the header compilable?
25886echo "$as_me:$LINENO: checking $ac_header usability" >&5
25887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25888cat >conftest.$ac_ext <<_ACEOF
25889/* confdefs.h.  */
25890_ACEOF
25891cat confdefs.h >>conftest.$ac_ext
25892cat >>conftest.$ac_ext <<_ACEOF
25893/* end confdefs.h.  */
25894$ac_includes_default
25895#include <$ac_header>
25896_ACEOF
25897rm -f conftest.$ac_objext
25898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25899  (eval $ac_compile) 2>conftest.er1
25900  ac_status=$?
25901  grep -v '^ *+' conftest.er1 >conftest.err
25902  rm -f conftest.er1
25903  cat conftest.err >&5
25904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905  (exit $ac_status); } &&
25906	 { ac_try='test -z "$ac_c_werror_flag"
25907			 || test ! -s conftest.err'
25908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909  (eval $ac_try) 2>&5
25910  ac_status=$?
25911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912  (exit $ac_status); }; } &&
25913	 { ac_try='test -s conftest.$ac_objext'
25914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915  (eval $ac_try) 2>&5
25916  ac_status=$?
25917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918  (exit $ac_status); }; }; then
25919  ac_header_compiler=yes
25920else
25921  echo "$as_me: failed program was:" >&5
25922sed 's/^/| /' conftest.$ac_ext >&5
25923
25924ac_header_compiler=no
25925fi
25926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25928echo "${ECHO_T}$ac_header_compiler" >&6
25929
25930# Is the header present?
25931echo "$as_me:$LINENO: checking $ac_header presence" >&5
25932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25933cat >conftest.$ac_ext <<_ACEOF
25934/* confdefs.h.  */
25935_ACEOF
25936cat confdefs.h >>conftest.$ac_ext
25937cat >>conftest.$ac_ext <<_ACEOF
25938/* end confdefs.h.  */
25939#include <$ac_header>
25940_ACEOF
25941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25942  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25943  ac_status=$?
25944  grep -v '^ *+' conftest.er1 >conftest.err
25945  rm -f conftest.er1
25946  cat conftest.err >&5
25947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948  (exit $ac_status); } >/dev/null; then
25949  if test -s conftest.err; then
25950    ac_cpp_err=$ac_c_preproc_warn_flag
25951    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25952  else
25953    ac_cpp_err=
25954  fi
25955else
25956  ac_cpp_err=yes
25957fi
25958if test -z "$ac_cpp_err"; then
25959  ac_header_preproc=yes
25960else
25961  echo "$as_me: failed program was:" >&5
25962sed 's/^/| /' conftest.$ac_ext >&5
25963
25964  ac_header_preproc=no
25965fi
25966rm -f conftest.err conftest.$ac_ext
25967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25968echo "${ECHO_T}$ac_header_preproc" >&6
25969
25970# So?  What about this header?
25971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25972  yes:no: )
25973    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25975    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25977    ac_header_preproc=yes
25978    ;;
25979  no:yes:* )
25980    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25982    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25983echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25984    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25986    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25987echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25988    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25990    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25992    (
25993      cat <<\_ASBOX
25994## ------------------------------------------ ##
25995## Report this to the AC_PACKAGE_NAME lists.  ##
25996## ------------------------------------------ ##
25997_ASBOX
25998    ) |
25999      sed "s/^/$as_me: WARNING:     /" >&2
26000    ;;
26001esac
26002echo "$as_me:$LINENO: checking for $ac_header" >&5
26003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26004if eval "test \"\${$as_ac_Header+set}\" = set"; then
26005  echo $ECHO_N "(cached) $ECHO_C" >&6
26006else
26007  eval "$as_ac_Header=\$ac_header_preproc"
26008fi
26009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26011
26012fi
26013if test `eval echo '${'$as_ac_Header'}'` = yes; then
26014  cat >>confdefs.h <<_ACEOF
26015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26016_ACEOF
26017
26018fi
26019
26020done
26021
26022
26023
26024
26025for ac_header in wctype.h
26026do
26027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26028if eval "test \"\${$as_ac_Header+set}\" = set"; then
26029  echo "$as_me:$LINENO: checking for $ac_header" >&5
26030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26031if eval "test \"\${$as_ac_Header+set}\" = set"; then
26032  echo $ECHO_N "(cached) $ECHO_C" >&6
26033fi
26034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26036else
26037  # Is the header compilable?
26038echo "$as_me:$LINENO: checking $ac_header usability" >&5
26039echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26040cat >conftest.$ac_ext <<_ACEOF
26041/* confdefs.h.  */
26042_ACEOF
26043cat confdefs.h >>conftest.$ac_ext
26044cat >>conftest.$ac_ext <<_ACEOF
26045/* end confdefs.h.  */
26046$ac_includes_default
26047#include <$ac_header>
26048_ACEOF
26049rm -f conftest.$ac_objext
26050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26051  (eval $ac_compile) 2>conftest.er1
26052  ac_status=$?
26053  grep -v '^ *+' conftest.er1 >conftest.err
26054  rm -f conftest.er1
26055  cat conftest.err >&5
26056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057  (exit $ac_status); } &&
26058	 { ac_try='test -z "$ac_c_werror_flag"
26059			 || test ! -s conftest.err'
26060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061  (eval $ac_try) 2>&5
26062  ac_status=$?
26063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064  (exit $ac_status); }; } &&
26065	 { ac_try='test -s conftest.$ac_objext'
26066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067  (eval $ac_try) 2>&5
26068  ac_status=$?
26069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070  (exit $ac_status); }; }; then
26071  ac_header_compiler=yes
26072else
26073  echo "$as_me: failed program was:" >&5
26074sed 's/^/| /' conftest.$ac_ext >&5
26075
26076ac_header_compiler=no
26077fi
26078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26080echo "${ECHO_T}$ac_header_compiler" >&6
26081
26082# Is the header present?
26083echo "$as_me:$LINENO: checking $ac_header presence" >&5
26084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26085cat >conftest.$ac_ext <<_ACEOF
26086/* confdefs.h.  */
26087_ACEOF
26088cat confdefs.h >>conftest.$ac_ext
26089cat >>conftest.$ac_ext <<_ACEOF
26090/* end confdefs.h.  */
26091#include <$ac_header>
26092_ACEOF
26093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26094  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26095  ac_status=$?
26096  grep -v '^ *+' conftest.er1 >conftest.err
26097  rm -f conftest.er1
26098  cat conftest.err >&5
26099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100  (exit $ac_status); } >/dev/null; then
26101  if test -s conftest.err; then
26102    ac_cpp_err=$ac_c_preproc_warn_flag
26103    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26104  else
26105    ac_cpp_err=
26106  fi
26107else
26108  ac_cpp_err=yes
26109fi
26110if test -z "$ac_cpp_err"; then
26111  ac_header_preproc=yes
26112else
26113  echo "$as_me: failed program was:" >&5
26114sed 's/^/| /' conftest.$ac_ext >&5
26115
26116  ac_header_preproc=no
26117fi
26118rm -f conftest.err conftest.$ac_ext
26119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26120echo "${ECHO_T}$ac_header_preproc" >&6
26121
26122# So?  What about this header?
26123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26124  yes:no: )
26125    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26127    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26128echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26129    ac_header_preproc=yes
26130    ;;
26131  no:yes:* )
26132    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26133echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26134    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26135echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26136    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26137echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26138    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26139echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26140    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26142    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26143echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26144    (
26145      cat <<\_ASBOX
26146## ------------------------------------------ ##
26147## Report this to the AC_PACKAGE_NAME lists.  ##
26148## ------------------------------------------ ##
26149_ASBOX
26150    ) |
26151      sed "s/^/$as_me: WARNING:     /" >&2
26152    ;;
26153esac
26154echo "$as_me:$LINENO: checking for $ac_header" >&5
26155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26156if eval "test \"\${$as_ac_Header+set}\" = set"; then
26157  echo $ECHO_N "(cached) $ECHO_C" >&6
26158else
26159  eval "$as_ac_Header=\$ac_header_preproc"
26160fi
26161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26163
26164fi
26165if test `eval echo '${'$as_ac_Header'}'` = yes; then
26166  cat >>confdefs.h <<_ACEOF
26167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26168_ACEOF
26169
26170fi
26171
26172done
26173
26174
26175
26176
26177for ac_func in iswprint
26178do
26179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26180echo "$as_me:$LINENO: checking for $ac_func" >&5
26181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26182if eval "test \"\${$as_ac_var+set}\" = set"; then
26183  echo $ECHO_N "(cached) $ECHO_C" >&6
26184else
26185  cat >conftest.$ac_ext <<_ACEOF
26186/* confdefs.h.  */
26187_ACEOF
26188cat confdefs.h >>conftest.$ac_ext
26189cat >>conftest.$ac_ext <<_ACEOF
26190/* end confdefs.h.  */
26191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26192   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26193#define $ac_func innocuous_$ac_func
26194
26195/* System header to define __stub macros and hopefully few prototypes,
26196    which can conflict with char $ac_func (); below.
26197    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26198    <limits.h> exists even on freestanding compilers.  */
26199
26200#ifdef __STDC__
26201# include <limits.h>
26202#else
26203# include <assert.h>
26204#endif
26205
26206#undef $ac_func
26207
26208/* Override any gcc2 internal prototype to avoid an error.  */
26209#ifdef __cplusplus
26210extern "C"
26211{
26212#endif
26213/* We use char because int might match the return type of a gcc2
26214   builtin and then its argument prototype would still apply.  */
26215char $ac_func ();
26216/* The GNU C library defines this for functions which it implements
26217    to always fail with ENOSYS.  Some functions are actually named
26218    something starting with __ and the normal name is an alias.  */
26219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26220choke me
26221#else
26222char (*f) () = $ac_func;
26223#endif
26224#ifdef __cplusplus
26225}
26226#endif
26227
26228int
26229main ()
26230{
26231return f != $ac_func;
26232  ;
26233  return 0;
26234}
26235_ACEOF
26236rm -f conftest.$ac_objext conftest$ac_exeext
26237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26238  (eval $ac_link) 2>conftest.er1
26239  ac_status=$?
26240  grep -v '^ *+' conftest.er1 >conftest.err
26241  rm -f conftest.er1
26242  cat conftest.err >&5
26243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244  (exit $ac_status); } &&
26245	 { ac_try='test -z "$ac_c_werror_flag"
26246			 || test ! -s conftest.err'
26247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248  (eval $ac_try) 2>&5
26249  ac_status=$?
26250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251  (exit $ac_status); }; } &&
26252	 { ac_try='test -s conftest$ac_exeext'
26253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254  (eval $ac_try) 2>&5
26255  ac_status=$?
26256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257  (exit $ac_status); }; }; then
26258  eval "$as_ac_var=yes"
26259else
26260  echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263eval "$as_ac_var=no"
26264fi
26265rm -f conftest.err conftest.$ac_objext \
26266      conftest$ac_exeext conftest.$ac_ext
26267fi
26268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26270if test `eval echo '${'$as_ac_var'}'` = yes; then
26271  cat >>confdefs.h <<_ACEOF
26272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26273_ACEOF
26274
26275fi
26276done
26277
26278
26279
26280
26281for ac_func in mbsinit
26282do
26283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26284echo "$as_me:$LINENO: checking for $ac_func" >&5
26285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26286if eval "test \"\${$as_ac_var+set}\" = set"; then
26287  echo $ECHO_N "(cached) $ECHO_C" >&6
26288else
26289  cat >conftest.$ac_ext <<_ACEOF
26290/* confdefs.h.  */
26291_ACEOF
26292cat confdefs.h >>conftest.$ac_ext
26293cat >>conftest.$ac_ext <<_ACEOF
26294/* end confdefs.h.  */
26295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26296   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26297#define $ac_func innocuous_$ac_func
26298
26299/* System header to define __stub macros and hopefully few prototypes,
26300    which can conflict with char $ac_func (); below.
26301    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26302    <limits.h> exists even on freestanding compilers.  */
26303
26304#ifdef __STDC__
26305# include <limits.h>
26306#else
26307# include <assert.h>
26308#endif
26309
26310#undef $ac_func
26311
26312/* Override any gcc2 internal prototype to avoid an error.  */
26313#ifdef __cplusplus
26314extern "C"
26315{
26316#endif
26317/* We use char because int might match the return type of a gcc2
26318   builtin and then its argument prototype would still apply.  */
26319char $ac_func ();
26320/* The GNU C library defines this for functions which it implements
26321    to always fail with ENOSYS.  Some functions are actually named
26322    something starting with __ and the normal name is an alias.  */
26323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26324choke me
26325#else
26326char (*f) () = $ac_func;
26327#endif
26328#ifdef __cplusplus
26329}
26330#endif
26331
26332int
26333main ()
26334{
26335return f != $ac_func;
26336  ;
26337  return 0;
26338}
26339_ACEOF
26340rm -f conftest.$ac_objext conftest$ac_exeext
26341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26342  (eval $ac_link) 2>conftest.er1
26343  ac_status=$?
26344  grep -v '^ *+' conftest.er1 >conftest.err
26345  rm -f conftest.er1
26346  cat conftest.err >&5
26347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348  (exit $ac_status); } &&
26349	 { ac_try='test -z "$ac_c_werror_flag"
26350			 || test ! -s conftest.err'
26351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352  (eval $ac_try) 2>&5
26353  ac_status=$?
26354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355  (exit $ac_status); }; } &&
26356	 { ac_try='test -s conftest$ac_exeext'
26357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358  (eval $ac_try) 2>&5
26359  ac_status=$?
26360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361  (exit $ac_status); }; }; then
26362  eval "$as_ac_var=yes"
26363else
26364  echo "$as_me: failed program was:" >&5
26365sed 's/^/| /' conftest.$ac_ext >&5
26366
26367eval "$as_ac_var=no"
26368fi
26369rm -f conftest.err conftest.$ac_objext \
26370      conftest$ac_exeext conftest.$ac_ext
26371fi
26372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26374if test `eval echo '${'$as_ac_var'}'` = yes; then
26375  cat >>confdefs.h <<_ACEOF
26376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26377_ACEOF
26378
26379fi
26380done
26381
26382
26383
26384
26385  :
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395  :
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409for ac_func in iswcntrl wcwidth
26410do
26411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26412echo "$as_me:$LINENO: checking for $ac_func" >&5
26413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26414if eval "test \"\${$as_ac_var+set}\" = set"; then
26415  echo $ECHO_N "(cached) $ECHO_C" >&6
26416else
26417  cat >conftest.$ac_ext <<_ACEOF
26418/* confdefs.h.  */
26419_ACEOF
26420cat confdefs.h >>conftest.$ac_ext
26421cat >>conftest.$ac_ext <<_ACEOF
26422/* end confdefs.h.  */
26423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26424   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26425#define $ac_func innocuous_$ac_func
26426
26427/* System header to define __stub macros and hopefully few prototypes,
26428    which can conflict with char $ac_func (); below.
26429    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26430    <limits.h> exists even on freestanding compilers.  */
26431
26432#ifdef __STDC__
26433# include <limits.h>
26434#else
26435# include <assert.h>
26436#endif
26437
26438#undef $ac_func
26439
26440/* Override any gcc2 internal prototype to avoid an error.  */
26441#ifdef __cplusplus
26442extern "C"
26443{
26444#endif
26445/* We use char because int might match the return type of a gcc2
26446   builtin and then its argument prototype would still apply.  */
26447char $ac_func ();
26448/* The GNU C library defines this for functions which it implements
26449    to always fail with ENOSYS.  Some functions are actually named
26450    something starting with __ and the normal name is an alias.  */
26451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26452choke me
26453#else
26454char (*f) () = $ac_func;
26455#endif
26456#ifdef __cplusplus
26457}
26458#endif
26459
26460int
26461main ()
26462{
26463return f != $ac_func;
26464  ;
26465  return 0;
26466}
26467_ACEOF
26468rm -f conftest.$ac_objext conftest$ac_exeext
26469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26470  (eval $ac_link) 2>conftest.er1
26471  ac_status=$?
26472  grep -v '^ *+' conftest.er1 >conftest.err
26473  rm -f conftest.er1
26474  cat conftest.err >&5
26475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476  (exit $ac_status); } &&
26477	 { ac_try='test -z "$ac_c_werror_flag"
26478			 || test ! -s conftest.err'
26479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480  (eval $ac_try) 2>&5
26481  ac_status=$?
26482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483  (exit $ac_status); }; } &&
26484	 { ac_try='test -s conftest$ac_exeext'
26485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486  (eval $ac_try) 2>&5
26487  ac_status=$?
26488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489  (exit $ac_status); }; }; then
26490  eval "$as_ac_var=yes"
26491else
26492  echo "$as_me: failed program was:" >&5
26493sed 's/^/| /' conftest.$ac_ext >&5
26494
26495eval "$as_ac_var=no"
26496fi
26497rm -f conftest.err conftest.$ac_objext \
26498      conftest$ac_exeext conftest.$ac_ext
26499fi
26500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26502if test `eval echo '${'$as_ac_var'}'` = yes; then
26503  cat >>confdefs.h <<_ACEOF
26504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26505_ACEOF
26506
26507fi
26508done
26509
26510
26511  echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
26512echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
26513if test "${gl_cv_func_mbrtowc+set}" = set; then
26514  echo $ECHO_N "(cached) $ECHO_C" >&6
26515else
26516  cat >conftest.$ac_ext <<_ACEOF
26517/* confdefs.h.  */
26518_ACEOF
26519cat confdefs.h >>conftest.$ac_ext
26520cat >>conftest.$ac_ext <<_ACEOF
26521/* end confdefs.h.  */
26522#include <wchar.h>
26523int
26524main ()
26525{
26526mbstate_t state; return ! (sizeof state && mbrtowc);
26527  ;
26528  return 0;
26529}
26530_ACEOF
26531rm -f conftest.$ac_objext conftest$ac_exeext
26532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26533  (eval $ac_link) 2>conftest.er1
26534  ac_status=$?
26535  grep -v '^ *+' conftest.er1 >conftest.err
26536  rm -f conftest.er1
26537  cat conftest.err >&5
26538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539  (exit $ac_status); } &&
26540	 { ac_try='test -z "$ac_c_werror_flag"
26541			 || test ! -s conftest.err'
26542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543  (eval $ac_try) 2>&5
26544  ac_status=$?
26545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546  (exit $ac_status); }; } &&
26547	 { ac_try='test -s conftest$ac_exeext'
26548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549  (eval $ac_try) 2>&5
26550  ac_status=$?
26551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552  (exit $ac_status); }; }; then
26553  gl_cv_func_mbrtowc=yes
26554else
26555  echo "$as_me: failed program was:" >&5
26556sed 's/^/| /' conftest.$ac_ext >&5
26557
26558gl_cv_func_mbrtowc=no
26559fi
26560rm -f conftest.err conftest.$ac_objext \
26561      conftest$ac_exeext conftest.$ac_ext
26562fi
26563echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
26564echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
26565  if test $gl_cv_func_mbrtowc = yes; then
26566
26567cat >>confdefs.h <<\_ACEOF
26568#define HAVE_MBRTOWC 1
26569_ACEOF
26570
26571  fi
26572
26573
26574  echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
26575echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
26576if test "${ac_cv_have_decl_wcwidth+set}" = set; then
26577  echo $ECHO_N "(cached) $ECHO_C" >&6
26578else
26579  cat >conftest.$ac_ext <<_ACEOF
26580/* confdefs.h.  */
26581_ACEOF
26582cat confdefs.h >>conftest.$ac_ext
26583cat >>conftest.$ac_ext <<_ACEOF
26584/* end confdefs.h.  */
26585
26586/* AIX 3.2.5 declares wcwidth in <string.h>. */
26587#if HAVE_STRING_H
26588# include <string.h>
26589#endif
26590#if HAVE_WCHAR_H
26591# include <wchar.h>
26592#endif
26593
26594int
26595main ()
26596{
26597
26598#ifndef wcwidth
26599  char *p = (char *) wcwidth;
26600#endif
26601
26602  ;
26603  return 0;
26604}
26605_ACEOF
26606rm -f conftest.$ac_objext
26607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26608  (eval $ac_compile) 2>conftest.er1
26609  ac_status=$?
26610  grep -v '^ *+' conftest.er1 >conftest.err
26611  rm -f conftest.er1
26612  cat conftest.err >&5
26613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614  (exit $ac_status); } &&
26615	 { ac_try='test -z "$ac_c_werror_flag"
26616			 || test ! -s conftest.err'
26617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618  (eval $ac_try) 2>&5
26619  ac_status=$?
26620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621  (exit $ac_status); }; } &&
26622	 { ac_try='test -s conftest.$ac_objext'
26623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624  (eval $ac_try) 2>&5
26625  ac_status=$?
26626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627  (exit $ac_status); }; }; then
26628  ac_cv_have_decl_wcwidth=yes
26629else
26630  echo "$as_me: failed program was:" >&5
26631sed 's/^/| /' conftest.$ac_ext >&5
26632
26633ac_cv_have_decl_wcwidth=no
26634fi
26635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26636fi
26637echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
26638echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
26639  if test $ac_cv_have_decl_wcwidth = yes; then
26640    ac_val=1
26641  else
26642    ac_val=0
26643  fi
26644
26645cat >>confdefs.h <<_ACEOF
26646#define HAVE_DECL_WCWIDTH $ac_val
26647_ACEOF
26648
26649
26650      echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
26651echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6
26652if test "${ac_cv_have_decl_mbswidth+set}" = set; then
26653  echo $ECHO_N "(cached) $ECHO_C" >&6
26654else
26655  cat >conftest.$ac_ext <<_ACEOF
26656/* confdefs.h.  */
26657_ACEOF
26658cat confdefs.h >>conftest.$ac_ext
26659cat >>conftest.$ac_ext <<_ACEOF
26660/* end confdefs.h.  */
26661
26662#if HAVE_WCHAR_H
26663# include <wchar.h>
26664#endif
26665
26666int
26667main ()
26668{
26669
26670  char *p = (char *) mbswidth;
26671
26672  ;
26673  return 0;
26674}
26675_ACEOF
26676rm -f conftest.$ac_objext
26677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26678  (eval $ac_compile) 2>conftest.er1
26679  ac_status=$?
26680  grep -v '^ *+' conftest.er1 >conftest.err
26681  rm -f conftest.er1
26682  cat conftest.err >&5
26683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684  (exit $ac_status); } &&
26685	 { ac_try='test -z "$ac_c_werror_flag"
26686			 || test ! -s conftest.err'
26687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688  (eval $ac_try) 2>&5
26689  ac_status=$?
26690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691  (exit $ac_status); }; } &&
26692	 { ac_try='test -s conftest.$ac_objext'
26693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694  (eval $ac_try) 2>&5
26695  ac_status=$?
26696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697  (exit $ac_status); }; }; then
26698  ac_cv_have_decl_mbswidth=yes
26699else
26700  echo "$as_me: failed program was:" >&5
26701sed 's/^/| /' conftest.$ac_ext >&5
26702
26703ac_cv_have_decl_mbswidth=no
26704fi
26705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26706fi
26707echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
26708echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6
26709  if test $ac_cv_have_decl_mbswidth = yes; then
26710    ac_val=1
26711  else
26712    ac_val=0
26713  fi
26714
26715cat >>confdefs.h <<_ACEOF
26716#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
26717_ACEOF
26718
26719
26720  echo "$as_me:$LINENO: checking for mbstate_t" >&5
26721echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
26722if test "${ac_cv_type_mbstate_t+set}" = set; then
26723  echo $ECHO_N "(cached) $ECHO_C" >&6
26724else
26725  cat >conftest.$ac_ext <<_ACEOF
26726/* confdefs.h.  */
26727_ACEOF
26728cat confdefs.h >>conftest.$ac_ext
26729cat >>conftest.$ac_ext <<_ACEOF
26730/* end confdefs.h.  */
26731$ac_includes_default
26732#	    include <wchar.h>
26733int
26734main ()
26735{
26736mbstate_t x; return sizeof x;
26737  ;
26738  return 0;
26739}
26740_ACEOF
26741rm -f conftest.$ac_objext
26742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26743  (eval $ac_compile) 2>conftest.er1
26744  ac_status=$?
26745  grep -v '^ *+' conftest.er1 >conftest.err
26746  rm -f conftest.er1
26747  cat conftest.err >&5
26748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749  (exit $ac_status); } &&
26750	 { ac_try='test -z "$ac_c_werror_flag"
26751			 || test ! -s conftest.err'
26752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753  (eval $ac_try) 2>&5
26754  ac_status=$?
26755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756  (exit $ac_status); }; } &&
26757	 { ac_try='test -s conftest.$ac_objext'
26758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759  (eval $ac_try) 2>&5
26760  ac_status=$?
26761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762  (exit $ac_status); }; }; then
26763  ac_cv_type_mbstate_t=yes
26764else
26765  echo "$as_me: failed program was:" >&5
26766sed 's/^/| /' conftest.$ac_ext >&5
26767
26768ac_cv_type_mbstate_t=no
26769fi
26770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26771fi
26772echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26773echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
26774   if test $ac_cv_type_mbstate_t = yes; then
26775
26776cat >>confdefs.h <<\_ACEOF
26777#define HAVE_MBSTATE_T 1
26778_ACEOF
26779
26780   else
26781
26782cat >>confdefs.h <<\_ACEOF
26783#define mbstate_t int
26784_ACEOF
26785
26786   fi
26787
26788
26789
26790
26791
26792
26793ac_header_dirent=no
26794for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26795  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26796echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26797echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26798if eval "test \"\${$as_ac_Header+set}\" = set"; then
26799  echo $ECHO_N "(cached) $ECHO_C" >&6
26800else
26801  cat >conftest.$ac_ext <<_ACEOF
26802/* confdefs.h.  */
26803_ACEOF
26804cat confdefs.h >>conftest.$ac_ext
26805cat >>conftest.$ac_ext <<_ACEOF
26806/* end confdefs.h.  */
26807#include <sys/types.h>
26808#include <$ac_hdr>
26809
26810int
26811main ()
26812{
26813if ((DIR *) 0)
26814return 0;
26815  ;
26816  return 0;
26817}
26818_ACEOF
26819rm -f conftest.$ac_objext
26820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26821  (eval $ac_compile) 2>conftest.er1
26822  ac_status=$?
26823  grep -v '^ *+' conftest.er1 >conftest.err
26824  rm -f conftest.er1
26825  cat conftest.err >&5
26826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827  (exit $ac_status); } &&
26828	 { ac_try='test -z "$ac_c_werror_flag"
26829			 || test ! -s conftest.err'
26830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831  (eval $ac_try) 2>&5
26832  ac_status=$?
26833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834  (exit $ac_status); }; } &&
26835	 { ac_try='test -s conftest.$ac_objext'
26836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837  (eval $ac_try) 2>&5
26838  ac_status=$?
26839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840  (exit $ac_status); }; }; then
26841  eval "$as_ac_Header=yes"
26842else
26843  echo "$as_me: failed program was:" >&5
26844sed 's/^/| /' conftest.$ac_ext >&5
26845
26846eval "$as_ac_Header=no"
26847fi
26848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26849fi
26850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26852if test `eval echo '${'$as_ac_Header'}'` = yes; then
26853  cat >>confdefs.h <<_ACEOF
26854#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26855_ACEOF
26856
26857ac_header_dirent=$ac_hdr; break
26858fi
26859
26860done
26861# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26862if test $ac_header_dirent = dirent.h; then
26863  echo "$as_me:$LINENO: checking for library containing opendir" >&5
26864echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26865if test "${ac_cv_search_opendir+set}" = set; then
26866  echo $ECHO_N "(cached) $ECHO_C" >&6
26867else
26868  ac_func_search_save_LIBS=$LIBS
26869ac_cv_search_opendir=no
26870cat >conftest.$ac_ext <<_ACEOF
26871/* confdefs.h.  */
26872_ACEOF
26873cat confdefs.h >>conftest.$ac_ext
26874cat >>conftest.$ac_ext <<_ACEOF
26875/* end confdefs.h.  */
26876
26877/* Override any gcc2 internal prototype to avoid an error.  */
26878#ifdef __cplusplus
26879extern "C"
26880#endif
26881/* We use char because int might match the return type of a gcc2
26882   builtin and then its argument prototype would still apply.  */
26883char opendir ();
26884int
26885main ()
26886{
26887opendir ();
26888  ;
26889  return 0;
26890}
26891_ACEOF
26892rm -f conftest.$ac_objext conftest$ac_exeext
26893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26894  (eval $ac_link) 2>conftest.er1
26895  ac_status=$?
26896  grep -v '^ *+' conftest.er1 >conftest.err
26897  rm -f conftest.er1
26898  cat conftest.err >&5
26899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900  (exit $ac_status); } &&
26901	 { ac_try='test -z "$ac_c_werror_flag"
26902			 || test ! -s conftest.err'
26903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26904  (eval $ac_try) 2>&5
26905  ac_status=$?
26906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907  (exit $ac_status); }; } &&
26908	 { ac_try='test -s conftest$ac_exeext'
26909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910  (eval $ac_try) 2>&5
26911  ac_status=$?
26912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913  (exit $ac_status); }; }; then
26914  ac_cv_search_opendir="none required"
26915else
26916  echo "$as_me: failed program was:" >&5
26917sed 's/^/| /' conftest.$ac_ext >&5
26918
26919fi
26920rm -f conftest.err conftest.$ac_objext \
26921      conftest$ac_exeext conftest.$ac_ext
26922if test "$ac_cv_search_opendir" = no; then
26923  for ac_lib in dir; do
26924    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26925    cat >conftest.$ac_ext <<_ACEOF
26926/* confdefs.h.  */
26927_ACEOF
26928cat confdefs.h >>conftest.$ac_ext
26929cat >>conftest.$ac_ext <<_ACEOF
26930/* end confdefs.h.  */
26931
26932/* Override any gcc2 internal prototype to avoid an error.  */
26933#ifdef __cplusplus
26934extern "C"
26935#endif
26936/* We use char because int might match the return type of a gcc2
26937   builtin and then its argument prototype would still apply.  */
26938char opendir ();
26939int
26940main ()
26941{
26942opendir ();
26943  ;
26944  return 0;
26945}
26946_ACEOF
26947rm -f conftest.$ac_objext conftest$ac_exeext
26948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26949  (eval $ac_link) 2>conftest.er1
26950  ac_status=$?
26951  grep -v '^ *+' conftest.er1 >conftest.err
26952  rm -f conftest.er1
26953  cat conftest.err >&5
26954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955  (exit $ac_status); } &&
26956	 { ac_try='test -z "$ac_c_werror_flag"
26957			 || test ! -s conftest.err'
26958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959  (eval $ac_try) 2>&5
26960  ac_status=$?
26961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962  (exit $ac_status); }; } &&
26963	 { ac_try='test -s conftest$ac_exeext'
26964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26965  (eval $ac_try) 2>&5
26966  ac_status=$?
26967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968  (exit $ac_status); }; }; then
26969  ac_cv_search_opendir="-l$ac_lib"
26970break
26971else
26972  echo "$as_me: failed program was:" >&5
26973sed 's/^/| /' conftest.$ac_ext >&5
26974
26975fi
26976rm -f conftest.err conftest.$ac_objext \
26977      conftest$ac_exeext conftest.$ac_ext
26978  done
26979fi
26980LIBS=$ac_func_search_save_LIBS
26981fi
26982echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26983echo "${ECHO_T}$ac_cv_search_opendir" >&6
26984if test "$ac_cv_search_opendir" != no; then
26985  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26986
26987fi
26988
26989else
26990  echo "$as_me:$LINENO: checking for library containing opendir" >&5
26991echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26992if test "${ac_cv_search_opendir+set}" = set; then
26993  echo $ECHO_N "(cached) $ECHO_C" >&6
26994else
26995  ac_func_search_save_LIBS=$LIBS
26996ac_cv_search_opendir=no
26997cat >conftest.$ac_ext <<_ACEOF
26998/* confdefs.h.  */
26999_ACEOF
27000cat confdefs.h >>conftest.$ac_ext
27001cat >>conftest.$ac_ext <<_ACEOF
27002/* end confdefs.h.  */
27003
27004/* Override any gcc2 internal prototype to avoid an error.  */
27005#ifdef __cplusplus
27006extern "C"
27007#endif
27008/* We use char because int might match the return type of a gcc2
27009   builtin and then its argument prototype would still apply.  */
27010char opendir ();
27011int
27012main ()
27013{
27014opendir ();
27015  ;
27016  return 0;
27017}
27018_ACEOF
27019rm -f conftest.$ac_objext conftest$ac_exeext
27020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27021  (eval $ac_link) 2>conftest.er1
27022  ac_status=$?
27023  grep -v '^ *+' conftest.er1 >conftest.err
27024  rm -f conftest.er1
27025  cat conftest.err >&5
27026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027  (exit $ac_status); } &&
27028	 { ac_try='test -z "$ac_c_werror_flag"
27029			 || test ! -s conftest.err'
27030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031  (eval $ac_try) 2>&5
27032  ac_status=$?
27033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034  (exit $ac_status); }; } &&
27035	 { ac_try='test -s conftest$ac_exeext'
27036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037  (eval $ac_try) 2>&5
27038  ac_status=$?
27039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040  (exit $ac_status); }; }; then
27041  ac_cv_search_opendir="none required"
27042else
27043  echo "$as_me: failed program was:" >&5
27044sed 's/^/| /' conftest.$ac_ext >&5
27045
27046fi
27047rm -f conftest.err conftest.$ac_objext \
27048      conftest$ac_exeext conftest.$ac_ext
27049if test "$ac_cv_search_opendir" = no; then
27050  for ac_lib in x; do
27051    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27052    cat >conftest.$ac_ext <<_ACEOF
27053/* confdefs.h.  */
27054_ACEOF
27055cat confdefs.h >>conftest.$ac_ext
27056cat >>conftest.$ac_ext <<_ACEOF
27057/* end confdefs.h.  */
27058
27059/* Override any gcc2 internal prototype to avoid an error.  */
27060#ifdef __cplusplus
27061extern "C"
27062#endif
27063/* We use char because int might match the return type of a gcc2
27064   builtin and then its argument prototype would still apply.  */
27065char opendir ();
27066int
27067main ()
27068{
27069opendir ();
27070  ;
27071  return 0;
27072}
27073_ACEOF
27074rm -f conftest.$ac_objext conftest$ac_exeext
27075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27076  (eval $ac_link) 2>conftest.er1
27077  ac_status=$?
27078  grep -v '^ *+' conftest.er1 >conftest.err
27079  rm -f conftest.er1
27080  cat conftest.err >&5
27081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082  (exit $ac_status); } &&
27083	 { ac_try='test -z "$ac_c_werror_flag"
27084			 || test ! -s conftest.err'
27085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086  (eval $ac_try) 2>&5
27087  ac_status=$?
27088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089  (exit $ac_status); }; } &&
27090	 { ac_try='test -s conftest$ac_exeext'
27091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092  (eval $ac_try) 2>&5
27093  ac_status=$?
27094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095  (exit $ac_status); }; }; then
27096  ac_cv_search_opendir="-l$ac_lib"
27097break
27098else
27099  echo "$as_me: failed program was:" >&5
27100sed 's/^/| /' conftest.$ac_ext >&5
27101
27102fi
27103rm -f conftest.err conftest.$ac_objext \
27104      conftest$ac_exeext conftest.$ac_ext
27105  done
27106fi
27107LIBS=$ac_func_search_save_LIBS
27108fi
27109echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27110echo "${ECHO_T}$ac_cv_search_opendir" >&6
27111if test "$ac_cv_search_opendir" != no; then
27112  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27113
27114fi
27115
27116fi
27117
27118
27119
27120  echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27121echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27122if test "${ac_cv_func_closedir_void+set}" = set; then
27123  echo $ECHO_N "(cached) $ECHO_C" >&6
27124else
27125  if test "$cross_compiling" = yes; then
27126  ac_cv_func_closedir_void=yes
27127else
27128  cat >conftest.$ac_ext <<_ACEOF
27129/* confdefs.h.  */
27130_ACEOF
27131cat confdefs.h >>conftest.$ac_ext
27132cat >>conftest.$ac_ext <<_ACEOF
27133/* end confdefs.h.  */
27134$ac_includes_default
27135#include <$ac_header_dirent>
27136#ifndef __cplusplus
27137int closedir ();
27138#endif
27139
27140int
27141main ()
27142{
27143exit (closedir (opendir (".")) != 0);
27144  ;
27145  return 0;
27146}
27147_ACEOF
27148rm -f conftest$ac_exeext
27149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27150  (eval $ac_link) 2>&5
27151  ac_status=$?
27152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155  (eval $ac_try) 2>&5
27156  ac_status=$?
27157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158  (exit $ac_status); }; }; then
27159  ac_cv_func_closedir_void=no
27160else
27161  echo "$as_me: program exited with status $ac_status" >&5
27162echo "$as_me: failed program was:" >&5
27163sed 's/^/| /' conftest.$ac_ext >&5
27164
27165( exit $ac_status )
27166ac_cv_func_closedir_void=yes
27167fi
27168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27169fi
27170fi
27171echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27172echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
27173if test $ac_cv_func_closedir_void = yes; then
27174
27175cat >>confdefs.h <<\_ACEOF
27176#define CLOSEDIR_VOID 1
27177_ACEOF
27178
27179fi
27180
27181
27182for ac_header in string.h
27183do
27184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27185if eval "test \"\${$as_ac_Header+set}\" = set"; then
27186  echo "$as_me:$LINENO: checking for $ac_header" >&5
27187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27188if eval "test \"\${$as_ac_Header+set}\" = set"; then
27189  echo $ECHO_N "(cached) $ECHO_C" >&6
27190fi
27191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27193else
27194  # Is the header compilable?
27195echo "$as_me:$LINENO: checking $ac_header usability" >&5
27196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27197cat >conftest.$ac_ext <<_ACEOF
27198/* confdefs.h.  */
27199_ACEOF
27200cat confdefs.h >>conftest.$ac_ext
27201cat >>conftest.$ac_ext <<_ACEOF
27202/* end confdefs.h.  */
27203$ac_includes_default
27204#include <$ac_header>
27205_ACEOF
27206rm -f conftest.$ac_objext
27207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27208  (eval $ac_compile) 2>conftest.er1
27209  ac_status=$?
27210  grep -v '^ *+' conftest.er1 >conftest.err
27211  rm -f conftest.er1
27212  cat conftest.err >&5
27213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214  (exit $ac_status); } &&
27215	 { ac_try='test -z "$ac_c_werror_flag"
27216			 || test ! -s conftest.err'
27217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27218  (eval $ac_try) 2>&5
27219  ac_status=$?
27220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221  (exit $ac_status); }; } &&
27222	 { ac_try='test -s conftest.$ac_objext'
27223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27224  (eval $ac_try) 2>&5
27225  ac_status=$?
27226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227  (exit $ac_status); }; }; then
27228  ac_header_compiler=yes
27229else
27230  echo "$as_me: failed program was:" >&5
27231sed 's/^/| /' conftest.$ac_ext >&5
27232
27233ac_header_compiler=no
27234fi
27235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27237echo "${ECHO_T}$ac_header_compiler" >&6
27238
27239# Is the header present?
27240echo "$as_me:$LINENO: checking $ac_header presence" >&5
27241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27242cat >conftest.$ac_ext <<_ACEOF
27243/* confdefs.h.  */
27244_ACEOF
27245cat confdefs.h >>conftest.$ac_ext
27246cat >>conftest.$ac_ext <<_ACEOF
27247/* end confdefs.h.  */
27248#include <$ac_header>
27249_ACEOF
27250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27251  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27252  ac_status=$?
27253  grep -v '^ *+' conftest.er1 >conftest.err
27254  rm -f conftest.er1
27255  cat conftest.err >&5
27256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257  (exit $ac_status); } >/dev/null; then
27258  if test -s conftest.err; then
27259    ac_cpp_err=$ac_c_preproc_warn_flag
27260    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27261  else
27262    ac_cpp_err=
27263  fi
27264else
27265  ac_cpp_err=yes
27266fi
27267if test -z "$ac_cpp_err"; then
27268  ac_header_preproc=yes
27269else
27270  echo "$as_me: failed program was:" >&5
27271sed 's/^/| /' conftest.$ac_ext >&5
27272
27273  ac_header_preproc=no
27274fi
27275rm -f conftest.err conftest.$ac_ext
27276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27277echo "${ECHO_T}$ac_header_preproc" >&6
27278
27279# So?  What about this header?
27280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27281  yes:no: )
27282    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27283echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27284    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27285echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27286    ac_header_preproc=yes
27287    ;;
27288  no:yes:* )
27289    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27290echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27291    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27292echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27293    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27294echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27295    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27296echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27297    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27299    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27300echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27301    (
27302      cat <<\_ASBOX
27303## ------------------------------------------ ##
27304## Report this to the AC_PACKAGE_NAME lists.  ##
27305## ------------------------------------------ ##
27306_ASBOX
27307    ) |
27308      sed "s/^/$as_me: WARNING:     /" >&2
27309    ;;
27310esac
27311echo "$as_me:$LINENO: checking for $ac_header" >&5
27312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27313if eval "test \"\${$as_ac_Header+set}\" = set"; then
27314  echo $ECHO_N "(cached) $ECHO_C" >&6
27315else
27316  eval "$as_ac_Header=\$ac_header_preproc"
27317fi
27318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27320
27321fi
27322if test `eval echo '${'$as_ac_Header'}'` = yes; then
27323  cat >>confdefs.h <<_ACEOF
27324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27325_ACEOF
27326
27327fi
27328
27329done
27330
27331    echo "$as_me:$LINENO: checking for long file names" >&5
27332echo $ECHO_N "checking for long file names... $ECHO_C" >&6
27333if test "${ac_cv_sys_long_file_names+set}" = set; then
27334  echo $ECHO_N "(cached) $ECHO_C" >&6
27335else
27336  ac_cv_sys_long_file_names=yes
27337# Test for long file names in all the places we know might matter:
27338#      .		the current directory, where building will happen
27339#      $prefix/lib	where we will be installing things
27340#      $exec_prefix/lib	likewise
27341# eval it to expand exec_prefix.
27342#      $TMPDIR		if set, where it might want to write temporary files
27343# if $TMPDIR is not set:
27344#      /tmp		where it might want to write temporary files
27345#      /var/tmp		likewise
27346#      /usr/tmp		likewise
27347if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
27348  ac_tmpdirs=$TMPDIR
27349else
27350  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
27351fi
27352for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
27353  test -d $ac_dir || continue
27354  test -w $ac_dir || continue # It is less confusing to not echo anything here.
27355  ac_xdir=$ac_dir/cf$$
27356  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
27357  ac_tf1=$ac_xdir/conftest9012345
27358  ac_tf2=$ac_xdir/conftest9012346
27359  (echo 1 >$ac_tf1) 2>/dev/null
27360  (echo 2 >$ac_tf2) 2>/dev/null
27361  ac_val=`cat $ac_tf1 2>/dev/null`
27362  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
27363    ac_cv_sys_long_file_names=no
27364    rm -rf $ac_xdir 2>/dev/null
27365    break
27366  fi
27367  rm -rf $ac_xdir 2>/dev/null
27368done
27369fi
27370echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
27371echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
27372if test $ac_cv_sys_long_file_names = yes; then
27373
27374cat >>confdefs.h <<\_ACEOF
27375#define HAVE_LONG_FILE_NAMES 1
27376_ACEOF
27377
27378fi
27379
27380
27381for ac_func in pathconf
27382do
27383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27384echo "$as_me:$LINENO: checking for $ac_func" >&5
27385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27386if eval "test \"\${$as_ac_var+set}\" = set"; then
27387  echo $ECHO_N "(cached) $ECHO_C" >&6
27388else
27389  cat >conftest.$ac_ext <<_ACEOF
27390/* confdefs.h.  */
27391_ACEOF
27392cat confdefs.h >>conftest.$ac_ext
27393cat >>conftest.$ac_ext <<_ACEOF
27394/* end confdefs.h.  */
27395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27396   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27397#define $ac_func innocuous_$ac_func
27398
27399/* System header to define __stub macros and hopefully few prototypes,
27400    which can conflict with char $ac_func (); below.
27401    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27402    <limits.h> exists even on freestanding compilers.  */
27403
27404#ifdef __STDC__
27405# include <limits.h>
27406#else
27407# include <assert.h>
27408#endif
27409
27410#undef $ac_func
27411
27412/* Override any gcc2 internal prototype to avoid an error.  */
27413#ifdef __cplusplus
27414extern "C"
27415{
27416#endif
27417/* We use char because int might match the return type of a gcc2
27418   builtin and then its argument prototype would still apply.  */
27419char $ac_func ();
27420/* The GNU C library defines this for functions which it implements
27421    to always fail with ENOSYS.  Some functions are actually named
27422    something starting with __ and the normal name is an alias.  */
27423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27424choke me
27425#else
27426char (*f) () = $ac_func;
27427#endif
27428#ifdef __cplusplus
27429}
27430#endif
27431
27432int
27433main ()
27434{
27435return f != $ac_func;
27436  ;
27437  return 0;
27438}
27439_ACEOF
27440rm -f conftest.$ac_objext conftest$ac_exeext
27441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27442  (eval $ac_link) 2>conftest.er1
27443  ac_status=$?
27444  grep -v '^ *+' conftest.er1 >conftest.err
27445  rm -f conftest.er1
27446  cat conftest.err >&5
27447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448  (exit $ac_status); } &&
27449	 { ac_try='test -z "$ac_c_werror_flag"
27450			 || test ! -s conftest.err'
27451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452  (eval $ac_try) 2>&5
27453  ac_status=$?
27454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455  (exit $ac_status); }; } &&
27456	 { ac_try='test -s conftest$ac_exeext'
27457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458  (eval $ac_try) 2>&5
27459  ac_status=$?
27460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461  (exit $ac_status); }; }; then
27462  eval "$as_ac_var=yes"
27463else
27464  echo "$as_me: failed program was:" >&5
27465sed 's/^/| /' conftest.$ac_ext >&5
27466
27467eval "$as_ac_var=no"
27468fi
27469rm -f conftest.err conftest.$ac_objext \
27470      conftest$ac_exeext conftest.$ac_ext
27471fi
27472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27474if test `eval echo '${'$as_ac_var'}'` = yes; then
27475  cat >>confdefs.h <<_ACEOF
27476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27477_ACEOF
27478
27479fi
27480done
27481
27482
27483
27484for ac_header in string.h unistd.h
27485do
27486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27487if eval "test \"\${$as_ac_Header+set}\" = set"; then
27488  echo "$as_me:$LINENO: checking for $ac_header" >&5
27489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27490if eval "test \"\${$as_ac_Header+set}\" = set"; then
27491  echo $ECHO_N "(cached) $ECHO_C" >&6
27492fi
27493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27495else
27496  # Is the header compilable?
27497echo "$as_me:$LINENO: checking $ac_header usability" >&5
27498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27499cat >conftest.$ac_ext <<_ACEOF
27500/* confdefs.h.  */
27501_ACEOF
27502cat confdefs.h >>conftest.$ac_ext
27503cat >>conftest.$ac_ext <<_ACEOF
27504/* end confdefs.h.  */
27505$ac_includes_default
27506#include <$ac_header>
27507_ACEOF
27508rm -f conftest.$ac_objext
27509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27510  (eval $ac_compile) 2>conftest.er1
27511  ac_status=$?
27512  grep -v '^ *+' conftest.er1 >conftest.err
27513  rm -f conftest.er1
27514  cat conftest.err >&5
27515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516  (exit $ac_status); } &&
27517	 { ac_try='test -z "$ac_c_werror_flag"
27518			 || test ! -s conftest.err'
27519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520  (eval $ac_try) 2>&5
27521  ac_status=$?
27522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523  (exit $ac_status); }; } &&
27524	 { ac_try='test -s conftest.$ac_objext'
27525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27526  (eval $ac_try) 2>&5
27527  ac_status=$?
27528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529  (exit $ac_status); }; }; then
27530  ac_header_compiler=yes
27531else
27532  echo "$as_me: failed program was:" >&5
27533sed 's/^/| /' conftest.$ac_ext >&5
27534
27535ac_header_compiler=no
27536fi
27537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27539echo "${ECHO_T}$ac_header_compiler" >&6
27540
27541# Is the header present?
27542echo "$as_me:$LINENO: checking $ac_header presence" >&5
27543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27544cat >conftest.$ac_ext <<_ACEOF
27545/* confdefs.h.  */
27546_ACEOF
27547cat confdefs.h >>conftest.$ac_ext
27548cat >>conftest.$ac_ext <<_ACEOF
27549/* end confdefs.h.  */
27550#include <$ac_header>
27551_ACEOF
27552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27554  ac_status=$?
27555  grep -v '^ *+' conftest.er1 >conftest.err
27556  rm -f conftest.er1
27557  cat conftest.err >&5
27558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559  (exit $ac_status); } >/dev/null; then
27560  if test -s conftest.err; then
27561    ac_cpp_err=$ac_c_preproc_warn_flag
27562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27563  else
27564    ac_cpp_err=
27565  fi
27566else
27567  ac_cpp_err=yes
27568fi
27569if test -z "$ac_cpp_err"; then
27570  ac_header_preproc=yes
27571else
27572  echo "$as_me: failed program was:" >&5
27573sed 's/^/| /' conftest.$ac_ext >&5
27574
27575  ac_header_preproc=no
27576fi
27577rm -f conftest.err conftest.$ac_ext
27578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27579echo "${ECHO_T}$ac_header_preproc" >&6
27580
27581# So?  What about this header?
27582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27583  yes:no: )
27584    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27586    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27588    ac_header_preproc=yes
27589    ;;
27590  no:yes:* )
27591    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27593    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27594echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27595    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27597    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27598echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27599    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27601    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27603    (
27604      cat <<\_ASBOX
27605## ------------------------------------------ ##
27606## Report this to the AC_PACKAGE_NAME lists.  ##
27607## ------------------------------------------ ##
27608_ASBOX
27609    ) |
27610      sed "s/^/$as_me: WARNING:     /" >&2
27611    ;;
27612esac
27613echo "$as_me:$LINENO: checking for $ac_header" >&5
27614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27615if eval "test \"\${$as_ac_Header+set}\" = set"; then
27616  echo $ECHO_N "(cached) $ECHO_C" >&6
27617else
27618  eval "$as_ac_Header=\$ac_header_preproc"
27619fi
27620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27622
27623fi
27624if test `eval echo '${'$as_ac_Header'}'` = yes; then
27625  cat >>confdefs.h <<_ACEOF
27626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27627_ACEOF
27628
27629fi
27630
27631done
27632
27633
27634
27635
27636for ac_header in unistd.h vfork.h
27637do
27638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27639if eval "test \"\${$as_ac_Header+set}\" = set"; then
27640  echo "$as_me:$LINENO: checking for $ac_header" >&5
27641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27642if eval "test \"\${$as_ac_Header+set}\" = set"; then
27643  echo $ECHO_N "(cached) $ECHO_C" >&6
27644fi
27645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27647else
27648  # Is the header compilable?
27649echo "$as_me:$LINENO: checking $ac_header usability" >&5
27650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27651cat >conftest.$ac_ext <<_ACEOF
27652/* confdefs.h.  */
27653_ACEOF
27654cat confdefs.h >>conftest.$ac_ext
27655cat >>conftest.$ac_ext <<_ACEOF
27656/* end confdefs.h.  */
27657$ac_includes_default
27658#include <$ac_header>
27659_ACEOF
27660rm -f conftest.$ac_objext
27661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27662  (eval $ac_compile) 2>conftest.er1
27663  ac_status=$?
27664  grep -v '^ *+' conftest.er1 >conftest.err
27665  rm -f conftest.er1
27666  cat conftest.err >&5
27667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668  (exit $ac_status); } &&
27669	 { ac_try='test -z "$ac_c_werror_flag"
27670			 || test ! -s conftest.err'
27671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27672  (eval $ac_try) 2>&5
27673  ac_status=$?
27674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675  (exit $ac_status); }; } &&
27676	 { ac_try='test -s conftest.$ac_objext'
27677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678  (eval $ac_try) 2>&5
27679  ac_status=$?
27680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681  (exit $ac_status); }; }; then
27682  ac_header_compiler=yes
27683else
27684  echo "$as_me: failed program was:" >&5
27685sed 's/^/| /' conftest.$ac_ext >&5
27686
27687ac_header_compiler=no
27688fi
27689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27691echo "${ECHO_T}$ac_header_compiler" >&6
27692
27693# Is the header present?
27694echo "$as_me:$LINENO: checking $ac_header presence" >&5
27695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27696cat >conftest.$ac_ext <<_ACEOF
27697/* confdefs.h.  */
27698_ACEOF
27699cat confdefs.h >>conftest.$ac_ext
27700cat >>conftest.$ac_ext <<_ACEOF
27701/* end confdefs.h.  */
27702#include <$ac_header>
27703_ACEOF
27704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27705  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27706  ac_status=$?
27707  grep -v '^ *+' conftest.er1 >conftest.err
27708  rm -f conftest.er1
27709  cat conftest.err >&5
27710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711  (exit $ac_status); } >/dev/null; then
27712  if test -s conftest.err; then
27713    ac_cpp_err=$ac_c_preproc_warn_flag
27714    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27715  else
27716    ac_cpp_err=
27717  fi
27718else
27719  ac_cpp_err=yes
27720fi
27721if test -z "$ac_cpp_err"; then
27722  ac_header_preproc=yes
27723else
27724  echo "$as_me: failed program was:" >&5
27725sed 's/^/| /' conftest.$ac_ext >&5
27726
27727  ac_header_preproc=no
27728fi
27729rm -f conftest.err conftest.$ac_ext
27730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27731echo "${ECHO_T}$ac_header_preproc" >&6
27732
27733# So?  What about this header?
27734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27735  yes:no: )
27736    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27740    ac_header_preproc=yes
27741    ;;
27742  no:yes:* )
27743    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27745    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27746echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27747    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27749    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27750echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27753    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27755    (
27756      cat <<\_ASBOX
27757## ------------------------------------------ ##
27758## Report this to the AC_PACKAGE_NAME lists.  ##
27759## ------------------------------------------ ##
27760_ASBOX
27761    ) |
27762      sed "s/^/$as_me: WARNING:     /" >&2
27763    ;;
27764esac
27765echo "$as_me:$LINENO: checking for $ac_header" >&5
27766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27767if eval "test \"\${$as_ac_Header+set}\" = set"; then
27768  echo $ECHO_N "(cached) $ECHO_C" >&6
27769else
27770  eval "$as_ac_Header=\$ac_header_preproc"
27771fi
27772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27774
27775fi
27776if test `eval echo '${'$as_ac_Header'}'` = yes; then
27777  cat >>confdefs.h <<_ACEOF
27778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27779_ACEOF
27780
27781fi
27782
27783done
27784
27785
27786
27787for ac_func in fork vfork
27788do
27789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27790echo "$as_me:$LINENO: checking for $ac_func" >&5
27791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27792if eval "test \"\${$as_ac_var+set}\" = set"; then
27793  echo $ECHO_N "(cached) $ECHO_C" >&6
27794else
27795  cat >conftest.$ac_ext <<_ACEOF
27796/* confdefs.h.  */
27797_ACEOF
27798cat confdefs.h >>conftest.$ac_ext
27799cat >>conftest.$ac_ext <<_ACEOF
27800/* end confdefs.h.  */
27801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27802   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27803#define $ac_func innocuous_$ac_func
27804
27805/* System header to define __stub macros and hopefully few prototypes,
27806    which can conflict with char $ac_func (); below.
27807    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27808    <limits.h> exists even on freestanding compilers.  */
27809
27810#ifdef __STDC__
27811# include <limits.h>
27812#else
27813# include <assert.h>
27814#endif
27815
27816#undef $ac_func
27817
27818/* Override any gcc2 internal prototype to avoid an error.  */
27819#ifdef __cplusplus
27820extern "C"
27821{
27822#endif
27823/* We use char because int might match the return type of a gcc2
27824   builtin and then its argument prototype would still apply.  */
27825char $ac_func ();
27826/* The GNU C library defines this for functions which it implements
27827    to always fail with ENOSYS.  Some functions are actually named
27828    something starting with __ and the normal name is an alias.  */
27829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27830choke me
27831#else
27832char (*f) () = $ac_func;
27833#endif
27834#ifdef __cplusplus
27835}
27836#endif
27837
27838int
27839main ()
27840{
27841return f != $ac_func;
27842  ;
27843  return 0;
27844}
27845_ACEOF
27846rm -f conftest.$ac_objext conftest$ac_exeext
27847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27848  (eval $ac_link) 2>conftest.er1
27849  ac_status=$?
27850  grep -v '^ *+' conftest.er1 >conftest.err
27851  rm -f conftest.er1
27852  cat conftest.err >&5
27853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854  (exit $ac_status); } &&
27855	 { ac_try='test -z "$ac_c_werror_flag"
27856			 || test ! -s conftest.err'
27857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858  (eval $ac_try) 2>&5
27859  ac_status=$?
27860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861  (exit $ac_status); }; } &&
27862	 { ac_try='test -s conftest$ac_exeext'
27863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864  (eval $ac_try) 2>&5
27865  ac_status=$?
27866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867  (exit $ac_status); }; }; then
27868  eval "$as_ac_var=yes"
27869else
27870  echo "$as_me: failed program was:" >&5
27871sed 's/^/| /' conftest.$ac_ext >&5
27872
27873eval "$as_ac_var=no"
27874fi
27875rm -f conftest.err conftest.$ac_objext \
27876      conftest$ac_exeext conftest.$ac_ext
27877fi
27878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27880if test `eval echo '${'$as_ac_var'}'` = yes; then
27881  cat >>confdefs.h <<_ACEOF
27882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27883_ACEOF
27884
27885fi
27886done
27887
27888if test "x$ac_cv_func_fork" = xyes; then
27889  echo "$as_me:$LINENO: checking for working fork" >&5
27890echo $ECHO_N "checking for working fork... $ECHO_C" >&6
27891if test "${ac_cv_func_fork_works+set}" = set; then
27892  echo $ECHO_N "(cached) $ECHO_C" >&6
27893else
27894  if test "$cross_compiling" = yes; then
27895  ac_cv_func_fork_works=cross
27896else
27897  cat >conftest.$ac_ext <<_ACEOF
27898/* By Ruediger Kuhlmann. */
27899      #include <sys/types.h>
27900      #if HAVE_UNISTD_H
27901      # include <unistd.h>
27902      #endif
27903      /* Some systems only have a dummy stub for fork() */
27904      int main ()
27905      {
27906	if (fork() < 0)
27907	  exit (1);
27908	exit (0);
27909      }
27910_ACEOF
27911rm -f conftest$ac_exeext
27912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27913  (eval $ac_link) 2>&5
27914  ac_status=$?
27915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918  (eval $ac_try) 2>&5
27919  ac_status=$?
27920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921  (exit $ac_status); }; }; then
27922  ac_cv_func_fork_works=yes
27923else
27924  echo "$as_me: program exited with status $ac_status" >&5
27925echo "$as_me: failed program was:" >&5
27926sed 's/^/| /' conftest.$ac_ext >&5
27927
27928( exit $ac_status )
27929ac_cv_func_fork_works=no
27930fi
27931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27932fi
27933fi
27934echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
27935echo "${ECHO_T}$ac_cv_func_fork_works" >&6
27936
27937else
27938  ac_cv_func_fork_works=$ac_cv_func_fork
27939fi
27940if test "x$ac_cv_func_fork_works" = xcross; then
27941  case $host in
27942    *-*-amigaos* | *-*-msdosdjgpp*)
27943      # Override, as these systems have only a dummy fork() stub
27944      ac_cv_func_fork_works=no
27945      ;;
27946    *)
27947      ac_cv_func_fork_works=yes
27948      ;;
27949  esac
27950  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27951echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27952fi
27953ac_cv_func_vfork_works=$ac_cv_func_vfork
27954if test "x$ac_cv_func_vfork" = xyes; then
27955  echo "$as_me:$LINENO: checking for working vfork" >&5
27956echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
27957if test "${ac_cv_func_vfork_works+set}" = set; then
27958  echo $ECHO_N "(cached) $ECHO_C" >&6
27959else
27960  if test "$cross_compiling" = yes; then
27961  ac_cv_func_vfork_works=cross
27962else
27963  cat >conftest.$ac_ext <<_ACEOF
27964/* confdefs.h.  */
27965_ACEOF
27966cat confdefs.h >>conftest.$ac_ext
27967cat >>conftest.$ac_ext <<_ACEOF
27968/* end confdefs.h.  */
27969/* Thanks to Paul Eggert for this test.  */
27970#include <stdio.h>
27971#include <stdlib.h>
27972#include <sys/types.h>
27973#include <sys/stat.h>
27974#include <sys/wait.h>
27975#if HAVE_UNISTD_H
27976# include <unistd.h>
27977#endif
27978#if HAVE_VFORK_H
27979# include <vfork.h>
27980#endif
27981/* On some sparc systems, changes by the child to local and incoming
27982   argument registers are propagated back to the parent.  The compiler
27983   is told about this with #include <vfork.h>, but some compilers
27984   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
27985   static variable whose address is put into a register that is
27986   clobbered by the vfork.  */
27987static void
27988#ifdef __cplusplus
27989sparc_address_test (int arg)
27990# else
27991sparc_address_test (arg) int arg;
27992#endif
27993{
27994  static pid_t child;
27995  if (!child) {
27996    child = vfork ();
27997    if (child < 0) {
27998      perror ("vfork");
27999      _exit(2);
28000    }
28001    if (!child) {
28002      arg = getpid();
28003      write(-1, "", 0);
28004      _exit (arg);
28005    }
28006  }
28007}
28008
28009int
28010main ()
28011{
28012  pid_t parent = getpid ();
28013  pid_t child;
28014
28015  sparc_address_test (0);
28016
28017  child = vfork ();
28018
28019  if (child == 0) {
28020    /* Here is another test for sparc vfork register problems.  This
28021       test uses lots of local variables, at least as many local
28022       variables as main has allocated so far including compiler
28023       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
28024       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
28025       reuse the register of parent for one of the local variables,
28026       since it will think that parent can't possibly be used any more
28027       in this routine.  Assigning to the local variable will thus
28028       munge parent in the parent process.  */
28029    pid_t
28030      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
28031      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
28032    /* Convince the compiler that p..p7 are live; otherwise, it might
28033       use the same hardware register for all 8 local variables.  */
28034    if (p != p1 || p != p2 || p != p3 || p != p4
28035	|| p != p5 || p != p6 || p != p7)
28036      _exit(1);
28037
28038    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
28039       from child file descriptors.  If the child closes a descriptor
28040       before it execs or exits, this munges the parent's descriptor
28041       as well.  Test for this by closing stdout in the child.  */
28042    _exit(close(fileno(stdout)) != 0);
28043  } else {
28044    int status;
28045    struct stat st;
28046
28047    while (wait(&status) != child)
28048      ;
28049    exit(
28050	 /* Was there some problem with vforking?  */
28051	 child < 0
28052
28053	 /* Did the child fail?  (This shouldn't happen.)  */
28054	 || status
28055
28056	 /* Did the vfork/compiler bug occur?  */
28057	 || parent != getpid()
28058
28059	 /* Did the file descriptor bug occur?  */
28060	 || fstat(fileno(stdout), &st) != 0
28061	 );
28062  }
28063}
28064_ACEOF
28065rm -f conftest$ac_exeext
28066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28067  (eval $ac_link) 2>&5
28068  ac_status=$?
28069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072  (eval $ac_try) 2>&5
28073  ac_status=$?
28074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075  (exit $ac_status); }; }; then
28076  ac_cv_func_vfork_works=yes
28077else
28078  echo "$as_me: program exited with status $ac_status" >&5
28079echo "$as_me: failed program was:" >&5
28080sed 's/^/| /' conftest.$ac_ext >&5
28081
28082( exit $ac_status )
28083ac_cv_func_vfork_works=no
28084fi
28085rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28086fi
28087fi
28088echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
28089echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
28090
28091fi;
28092if test "x$ac_cv_func_fork_works" = xcross; then
28093  ac_cv_func_vfork_works=$ac_cv_func_vfork
28094  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
28095echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
28096fi
28097
28098if test "x$ac_cv_func_vfork_works" = xyes; then
28099
28100cat >>confdefs.h <<\_ACEOF
28101#define HAVE_WORKING_VFORK 1
28102_ACEOF
28103
28104else
28105
28106cat >>confdefs.h <<\_ACEOF
28107#define vfork fork
28108_ACEOF
28109
28110fi
28111if test "x$ac_cv_func_fork_works" = xyes; then
28112
28113cat >>confdefs.h <<\_ACEOF
28114#define HAVE_WORKING_FORK 1
28115_ACEOF
28116
28117fi
28118
28119
28120
28121for ac_func in waitpid
28122do
28123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28124echo "$as_me:$LINENO: checking for $ac_func" >&5
28125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28126if eval "test \"\${$as_ac_var+set}\" = set"; then
28127  echo $ECHO_N "(cached) $ECHO_C" >&6
28128else
28129  cat >conftest.$ac_ext <<_ACEOF
28130/* confdefs.h.  */
28131_ACEOF
28132cat confdefs.h >>conftest.$ac_ext
28133cat >>conftest.$ac_ext <<_ACEOF
28134/* end confdefs.h.  */
28135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28136   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28137#define $ac_func innocuous_$ac_func
28138
28139/* System header to define __stub macros and hopefully few prototypes,
28140    which can conflict with char $ac_func (); below.
28141    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28142    <limits.h> exists even on freestanding compilers.  */
28143
28144#ifdef __STDC__
28145# include <limits.h>
28146#else
28147# include <assert.h>
28148#endif
28149
28150#undef $ac_func
28151
28152/* Override any gcc2 internal prototype to avoid an error.  */
28153#ifdef __cplusplus
28154extern "C"
28155{
28156#endif
28157/* We use char because int might match the return type of a gcc2
28158   builtin and then its argument prototype would still apply.  */
28159char $ac_func ();
28160/* The GNU C library defines this for functions which it implements
28161    to always fail with ENOSYS.  Some functions are actually named
28162    something starting with __ and the normal name is an alias.  */
28163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28164choke me
28165#else
28166char (*f) () = $ac_func;
28167#endif
28168#ifdef __cplusplus
28169}
28170#endif
28171
28172int
28173main ()
28174{
28175return f != $ac_func;
28176  ;
28177  return 0;
28178}
28179_ACEOF
28180rm -f conftest.$ac_objext conftest$ac_exeext
28181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28182  (eval $ac_link) 2>conftest.er1
28183  ac_status=$?
28184  grep -v '^ *+' conftest.er1 >conftest.err
28185  rm -f conftest.er1
28186  cat conftest.err >&5
28187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188  (exit $ac_status); } &&
28189	 { ac_try='test -z "$ac_c_werror_flag"
28190			 || test ! -s conftest.err'
28191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192  (eval $ac_try) 2>&5
28193  ac_status=$?
28194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195  (exit $ac_status); }; } &&
28196	 { ac_try='test -s conftest$ac_exeext'
28197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198  (eval $ac_try) 2>&5
28199  ac_status=$?
28200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201  (exit $ac_status); }; }; then
28202  eval "$as_ac_var=yes"
28203else
28204  echo "$as_me: failed program was:" >&5
28205sed 's/^/| /' conftest.$ac_ext >&5
28206
28207eval "$as_ac_var=no"
28208fi
28209rm -f conftest.err conftest.$ac_objext \
28210      conftest$ac_exeext conftest.$ac_ext
28211fi
28212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28214if test `eval echo '${'$as_ac_var'}'` = yes; then
28215  cat >>confdefs.h <<_ACEOF
28216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28217_ACEOF
28218
28219fi
28220done
28221
28222echo "$as_me:$LINENO: checking for union wait" >&5
28223echo $ECHO_N "checking for union wait... $ECHO_C" >&6
28224if test "${gt_cv_union_wait+set}" = set; then
28225  echo $ECHO_N "(cached) $ECHO_C" >&6
28226else
28227  cat >conftest.$ac_ext <<_ACEOF
28228/* confdefs.h.  */
28229_ACEOF
28230cat confdefs.h >>conftest.$ac_ext
28231cat >>conftest.$ac_ext <<_ACEOF
28232/* end confdefs.h.  */
28233#include <sys/types.h>
28234#include <sys/wait.h>
28235int
28236main ()
28237{
28238union wait status; int pid; pid = wait (&status);
28239#ifdef WEXITSTATUS
28240/* Some POSIXoid systems have both the new-style macros and the old
28241   union wait type, and they do not work together.  If union wait
28242   conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
28243if (WEXITSTATUS (status) != 0) pid = -1;
28244#ifdef WTERMSIG
28245/* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
28246-- blow chunks here --
28247#endif
28248#endif
28249#ifdef HAVE_WAITPID
28250/* Make sure union wait works with waitpid.  */
28251pid = waitpid (-1, &status, 0);
28252#endif
28253
28254  ;
28255  return 0;
28256}
28257_ACEOF
28258rm -f conftest.$ac_objext conftest$ac_exeext
28259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28260  (eval $ac_link) 2>conftest.er1
28261  ac_status=$?
28262  grep -v '^ *+' conftest.er1 >conftest.err
28263  rm -f conftest.er1
28264  cat conftest.err >&5
28265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266  (exit $ac_status); } &&
28267	 { ac_try='test -z "$ac_c_werror_flag"
28268			 || test ! -s conftest.err'
28269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270  (eval $ac_try) 2>&5
28271  ac_status=$?
28272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273  (exit $ac_status); }; } &&
28274	 { ac_try='test -s conftest$ac_exeext'
28275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276  (eval $ac_try) 2>&5
28277  ac_status=$?
28278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279  (exit $ac_status); }; }; then
28280  gt_cv_union_wait=yes
28281else
28282  echo "$as_me: failed program was:" >&5
28283sed 's/^/| /' conftest.$ac_ext >&5
28284
28285gt_cv_union_wait=no
28286fi
28287rm -f conftest.err conftest.$ac_objext \
28288      conftest$ac_exeext conftest.$ac_ext
28289fi
28290
28291if test "$gt_cv_union_wait" = yes; then
28292
28293cat >>confdefs.h <<\_ACEOF
28294#define HAVE_UNION_WAIT 1
28295_ACEOF
28296
28297fi
28298echo "$as_me:$LINENO: result: $gt_cv_union_wait" >&5
28299echo "${ECHO_T}$gt_cv_union_wait" >&6
28300
28301
28302  echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28303echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
28304if test "${ac_cv_header_stat_broken+set}" = set; then
28305  echo $ECHO_N "(cached) $ECHO_C" >&6
28306else
28307  cat >conftest.$ac_ext <<_ACEOF
28308/* confdefs.h.  */
28309_ACEOF
28310cat confdefs.h >>conftest.$ac_ext
28311cat >>conftest.$ac_ext <<_ACEOF
28312/* end confdefs.h.  */
28313#include <sys/types.h>
28314#include <sys/stat.h>
28315
28316#if defined(S_ISBLK) && defined(S_IFDIR)
28317# if S_ISBLK (S_IFDIR)
28318You lose.
28319# endif
28320#endif
28321
28322#if defined(S_ISBLK) && defined(S_IFCHR)
28323# if S_ISBLK (S_IFCHR)
28324You lose.
28325# endif
28326#endif
28327
28328#if defined(S_ISLNK) && defined(S_IFREG)
28329# if S_ISLNK (S_IFREG)
28330You lose.
28331# endif
28332#endif
28333
28334#if defined(S_ISSOCK) && defined(S_IFREG)
28335# if S_ISSOCK (S_IFREG)
28336You lose.
28337# endif
28338#endif
28339
28340_ACEOF
28341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28342  $EGREP "You lose" >/dev/null 2>&1; then
28343  ac_cv_header_stat_broken=yes
28344else
28345  ac_cv_header_stat_broken=no
28346fi
28347rm -f conftest*
28348
28349fi
28350echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28351echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
28352if test $ac_cv_header_stat_broken = yes; then
28353
28354cat >>confdefs.h <<\_ACEOF
28355#define STAT_MACROS_BROKEN 1
28356_ACEOF
28357
28358fi
28359
28360
28361for ac_func in __secure_getenv
28362do
28363as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28364echo "$as_me:$LINENO: checking for $ac_func" >&5
28365echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28366if eval "test \"\${$as_ac_var+set}\" = set"; then
28367  echo $ECHO_N "(cached) $ECHO_C" >&6
28368else
28369  cat >conftest.$ac_ext <<_ACEOF
28370/* confdefs.h.  */
28371_ACEOF
28372cat confdefs.h >>conftest.$ac_ext
28373cat >>conftest.$ac_ext <<_ACEOF
28374/* end confdefs.h.  */
28375/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28376   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28377#define $ac_func innocuous_$ac_func
28378
28379/* System header to define __stub macros and hopefully few prototypes,
28380    which can conflict with char $ac_func (); below.
28381    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28382    <limits.h> exists even on freestanding compilers.  */
28383
28384#ifdef __STDC__
28385# include <limits.h>
28386#else
28387# include <assert.h>
28388#endif
28389
28390#undef $ac_func
28391
28392/* Override any gcc2 internal prototype to avoid an error.  */
28393#ifdef __cplusplus
28394extern "C"
28395{
28396#endif
28397/* We use char because int might match the return type of a gcc2
28398   builtin and then its argument prototype would still apply.  */
28399char $ac_func ();
28400/* The GNU C library defines this for functions which it implements
28401    to always fail with ENOSYS.  Some functions are actually named
28402    something starting with __ and the normal name is an alias.  */
28403#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28404choke me
28405#else
28406char (*f) () = $ac_func;
28407#endif
28408#ifdef __cplusplus
28409}
28410#endif
28411
28412int
28413main ()
28414{
28415return f != $ac_func;
28416  ;
28417  return 0;
28418}
28419_ACEOF
28420rm -f conftest.$ac_objext conftest$ac_exeext
28421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28422  (eval $ac_link) 2>conftest.er1
28423  ac_status=$?
28424  grep -v '^ *+' conftest.er1 >conftest.err
28425  rm -f conftest.er1
28426  cat conftest.err >&5
28427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428  (exit $ac_status); } &&
28429	 { ac_try='test -z "$ac_c_werror_flag"
28430			 || test ! -s conftest.err'
28431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432  (eval $ac_try) 2>&5
28433  ac_status=$?
28434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435  (exit $ac_status); }; } &&
28436	 { ac_try='test -s conftest$ac_exeext'
28437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438  (eval $ac_try) 2>&5
28439  ac_status=$?
28440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441  (exit $ac_status); }; }; then
28442  eval "$as_ac_var=yes"
28443else
28444  echo "$as_me: failed program was:" >&5
28445sed 's/^/| /' conftest.$ac_ext >&5
28446
28447eval "$as_ac_var=no"
28448fi
28449rm -f conftest.err conftest.$ac_objext \
28450      conftest$ac_exeext conftest.$ac_ext
28451fi
28452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28453echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28454if test `eval echo '${'$as_ac_var'}'` = yes; then
28455  cat >>confdefs.h <<_ACEOF
28456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28457_ACEOF
28458
28459fi
28460done
28461
28462
28463
28464
28465for ac_header in sys/time.h
28466do
28467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28468if eval "test \"\${$as_ac_Header+set}\" = set"; then
28469  echo "$as_me:$LINENO: checking for $ac_header" >&5
28470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28471if eval "test \"\${$as_ac_Header+set}\" = set"; then
28472  echo $ECHO_N "(cached) $ECHO_C" >&6
28473fi
28474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28476else
28477  # Is the header compilable?
28478echo "$as_me:$LINENO: checking $ac_header usability" >&5
28479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28480cat >conftest.$ac_ext <<_ACEOF
28481/* confdefs.h.  */
28482_ACEOF
28483cat confdefs.h >>conftest.$ac_ext
28484cat >>conftest.$ac_ext <<_ACEOF
28485/* end confdefs.h.  */
28486$ac_includes_default
28487#include <$ac_header>
28488_ACEOF
28489rm -f conftest.$ac_objext
28490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28491  (eval $ac_compile) 2>conftest.er1
28492  ac_status=$?
28493  grep -v '^ *+' conftest.er1 >conftest.err
28494  rm -f conftest.er1
28495  cat conftest.err >&5
28496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497  (exit $ac_status); } &&
28498	 { ac_try='test -z "$ac_c_werror_flag"
28499			 || test ! -s conftest.err'
28500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501  (eval $ac_try) 2>&5
28502  ac_status=$?
28503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504  (exit $ac_status); }; } &&
28505	 { ac_try='test -s conftest.$ac_objext'
28506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507  (eval $ac_try) 2>&5
28508  ac_status=$?
28509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510  (exit $ac_status); }; }; then
28511  ac_header_compiler=yes
28512else
28513  echo "$as_me: failed program was:" >&5
28514sed 's/^/| /' conftest.$ac_ext >&5
28515
28516ac_header_compiler=no
28517fi
28518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28520echo "${ECHO_T}$ac_header_compiler" >&6
28521
28522# Is the header present?
28523echo "$as_me:$LINENO: checking $ac_header presence" >&5
28524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28525cat >conftest.$ac_ext <<_ACEOF
28526/* confdefs.h.  */
28527_ACEOF
28528cat confdefs.h >>conftest.$ac_ext
28529cat >>conftest.$ac_ext <<_ACEOF
28530/* end confdefs.h.  */
28531#include <$ac_header>
28532_ACEOF
28533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28534  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28535  ac_status=$?
28536  grep -v '^ *+' conftest.er1 >conftest.err
28537  rm -f conftest.er1
28538  cat conftest.err >&5
28539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540  (exit $ac_status); } >/dev/null; then
28541  if test -s conftest.err; then
28542    ac_cpp_err=$ac_c_preproc_warn_flag
28543    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28544  else
28545    ac_cpp_err=
28546  fi
28547else
28548  ac_cpp_err=yes
28549fi
28550if test -z "$ac_cpp_err"; then
28551  ac_header_preproc=yes
28552else
28553  echo "$as_me: failed program was:" >&5
28554sed 's/^/| /' conftest.$ac_ext >&5
28555
28556  ac_header_preproc=no
28557fi
28558rm -f conftest.err conftest.$ac_ext
28559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28560echo "${ECHO_T}$ac_header_preproc" >&6
28561
28562# So?  What about this header?
28563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28564  yes:no: )
28565    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28567    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28569    ac_header_preproc=yes
28570    ;;
28571  no:yes:* )
28572    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28574    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28575echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28576    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28578    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28579echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28580    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28582    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28584    (
28585      cat <<\_ASBOX
28586## ------------------------------------------ ##
28587## Report this to the AC_PACKAGE_NAME lists.  ##
28588## ------------------------------------------ ##
28589_ASBOX
28590    ) |
28591      sed "s/^/$as_me: WARNING:     /" >&2
28592    ;;
28593esac
28594echo "$as_me:$LINENO: checking for $ac_header" >&5
28595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28596if eval "test \"\${$as_ac_Header+set}\" = set"; then
28597  echo $ECHO_N "(cached) $ECHO_C" >&6
28598else
28599  eval "$as_ac_Header=\$ac_header_preproc"
28600fi
28601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28603
28604fi
28605if test `eval echo '${'$as_ac_Header'}'` = yes; then
28606  cat >>confdefs.h <<_ACEOF
28607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28608_ACEOF
28609
28610fi
28611
28612done
28613
28614
28615
28616
28617for ac_header in unistd.h
28618do
28619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28620if eval "test \"\${$as_ac_Header+set}\" = set"; then
28621  echo "$as_me:$LINENO: checking for $ac_header" >&5
28622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28623if eval "test \"\${$as_ac_Header+set}\" = set"; then
28624  echo $ECHO_N "(cached) $ECHO_C" >&6
28625fi
28626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28628else
28629  # Is the header compilable?
28630echo "$as_me:$LINENO: checking $ac_header usability" >&5
28631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28632cat >conftest.$ac_ext <<_ACEOF
28633/* confdefs.h.  */
28634_ACEOF
28635cat confdefs.h >>conftest.$ac_ext
28636cat >>conftest.$ac_ext <<_ACEOF
28637/* end confdefs.h.  */
28638$ac_includes_default
28639#include <$ac_header>
28640_ACEOF
28641rm -f conftest.$ac_objext
28642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28643  (eval $ac_compile) 2>conftest.er1
28644  ac_status=$?
28645  grep -v '^ *+' conftest.er1 >conftest.err
28646  rm -f conftest.er1
28647  cat conftest.err >&5
28648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649  (exit $ac_status); } &&
28650	 { ac_try='test -z "$ac_c_werror_flag"
28651			 || test ! -s conftest.err'
28652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653  (eval $ac_try) 2>&5
28654  ac_status=$?
28655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656  (exit $ac_status); }; } &&
28657	 { ac_try='test -s conftest.$ac_objext'
28658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659  (eval $ac_try) 2>&5
28660  ac_status=$?
28661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662  (exit $ac_status); }; }; then
28663  ac_header_compiler=yes
28664else
28665  echo "$as_me: failed program was:" >&5
28666sed 's/^/| /' conftest.$ac_ext >&5
28667
28668ac_header_compiler=no
28669fi
28670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28672echo "${ECHO_T}$ac_header_compiler" >&6
28673
28674# Is the header present?
28675echo "$as_me:$LINENO: checking $ac_header presence" >&5
28676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28677cat >conftest.$ac_ext <<_ACEOF
28678/* confdefs.h.  */
28679_ACEOF
28680cat confdefs.h >>conftest.$ac_ext
28681cat >>conftest.$ac_ext <<_ACEOF
28682/* end confdefs.h.  */
28683#include <$ac_header>
28684_ACEOF
28685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28686  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28687  ac_status=$?
28688  grep -v '^ *+' conftest.er1 >conftest.err
28689  rm -f conftest.er1
28690  cat conftest.err >&5
28691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692  (exit $ac_status); } >/dev/null; then
28693  if test -s conftest.err; then
28694    ac_cpp_err=$ac_c_preproc_warn_flag
28695    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28696  else
28697    ac_cpp_err=
28698  fi
28699else
28700  ac_cpp_err=yes
28701fi
28702if test -z "$ac_cpp_err"; then
28703  ac_header_preproc=yes
28704else
28705  echo "$as_me: failed program was:" >&5
28706sed 's/^/| /' conftest.$ac_ext >&5
28707
28708  ac_header_preproc=no
28709fi
28710rm -f conftest.err conftest.$ac_ext
28711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28712echo "${ECHO_T}$ac_header_preproc" >&6
28713
28714# So?  What about this header?
28715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28716  yes:no: )
28717    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28719    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28721    ac_header_preproc=yes
28722    ;;
28723  no:yes:* )
28724    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28726    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28727echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28728    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28730    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28731echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28732    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28734    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28736    (
28737      cat <<\_ASBOX
28738## ------------------------------------------ ##
28739## Report this to the AC_PACKAGE_NAME lists.  ##
28740## ------------------------------------------ ##
28741_ASBOX
28742    ) |
28743      sed "s/^/$as_me: WARNING:     /" >&2
28744    ;;
28745esac
28746echo "$as_me:$LINENO: checking for $ac_header" >&5
28747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28748if eval "test \"\${$as_ac_Header+set}\" = set"; then
28749  echo $ECHO_N "(cached) $ECHO_C" >&6
28750else
28751  eval "$as_ac_Header=\$ac_header_preproc"
28752fi
28753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28755
28756fi
28757if test `eval echo '${'$as_ac_Header'}'` = yes; then
28758  cat >>confdefs.h <<_ACEOF
28759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28760_ACEOF
28761
28762fi
28763
28764done
28765
28766
28767
28768
28769for ac_func in mkdtemp
28770do
28771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28772echo "$as_me:$LINENO: checking for $ac_func" >&5
28773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28774if eval "test \"\${$as_ac_var+set}\" = set"; then
28775  echo $ECHO_N "(cached) $ECHO_C" >&6
28776else
28777  cat >conftest.$ac_ext <<_ACEOF
28778/* confdefs.h.  */
28779_ACEOF
28780cat confdefs.h >>conftest.$ac_ext
28781cat >>conftest.$ac_ext <<_ACEOF
28782/* end confdefs.h.  */
28783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28784   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28785#define $ac_func innocuous_$ac_func
28786
28787/* System header to define __stub macros and hopefully few prototypes,
28788    which can conflict with char $ac_func (); below.
28789    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28790    <limits.h> exists even on freestanding compilers.  */
28791
28792#ifdef __STDC__
28793# include <limits.h>
28794#else
28795# include <assert.h>
28796#endif
28797
28798#undef $ac_func
28799
28800/* Override any gcc2 internal prototype to avoid an error.  */
28801#ifdef __cplusplus
28802extern "C"
28803{
28804#endif
28805/* We use char because int might match the return type of a gcc2
28806   builtin and then its argument prototype would still apply.  */
28807char $ac_func ();
28808/* The GNU C library defines this for functions which it implements
28809    to always fail with ENOSYS.  Some functions are actually named
28810    something starting with __ and the normal name is an alias.  */
28811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28812choke me
28813#else
28814char (*f) () = $ac_func;
28815#endif
28816#ifdef __cplusplus
28817}
28818#endif
28819
28820int
28821main ()
28822{
28823return f != $ac_func;
28824  ;
28825  return 0;
28826}
28827_ACEOF
28828rm -f conftest.$ac_objext conftest$ac_exeext
28829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28830  (eval $ac_link) 2>conftest.er1
28831  ac_status=$?
28832  grep -v '^ *+' conftest.er1 >conftest.err
28833  rm -f conftest.er1
28834  cat conftest.err >&5
28835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836  (exit $ac_status); } &&
28837	 { ac_try='test -z "$ac_c_werror_flag"
28838			 || test ! -s conftest.err'
28839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840  (eval $ac_try) 2>&5
28841  ac_status=$?
28842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843  (exit $ac_status); }; } &&
28844	 { ac_try='test -s conftest$ac_exeext'
28845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846  (eval $ac_try) 2>&5
28847  ac_status=$?
28848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849  (exit $ac_status); }; }; then
28850  eval "$as_ac_var=yes"
28851else
28852  echo "$as_me: failed program was:" >&5
28853sed 's/^/| /' conftest.$ac_ext >&5
28854
28855eval "$as_ac_var=no"
28856fi
28857rm -f conftest.err conftest.$ac_objext \
28858      conftest$ac_exeext conftest.$ac_ext
28859fi
28860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28862if test `eval echo '${'$as_ac_var'}'` = yes; then
28863  cat >>confdefs.h <<_ACEOF
28864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28865_ACEOF
28866
28867else
28868  case $LIBOBJS in
28869    "$ac_func.$ac_objext"   | \
28870  *" $ac_func.$ac_objext"   | \
28871    "$ac_func.$ac_objext "* | \
28872  *" $ac_func.$ac_objext "* ) ;;
28873  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28874esac
28875
28876fi
28877done
28878
28879
28880  if test $ac_cv_func_mkdtemp = no; then
28881
28882
28883
28884  :
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894for ac_header in time.h
28895do
28896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28897if eval "test \"\${$as_ac_Header+set}\" = set"; then
28898  echo "$as_me:$LINENO: checking for $ac_header" >&5
28899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28900if eval "test \"\${$as_ac_Header+set}\" = set"; then
28901  echo $ECHO_N "(cached) $ECHO_C" >&6
28902fi
28903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28905else
28906  # Is the header compilable?
28907echo "$as_me:$LINENO: checking $ac_header usability" >&5
28908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28909cat >conftest.$ac_ext <<_ACEOF
28910/* confdefs.h.  */
28911_ACEOF
28912cat confdefs.h >>conftest.$ac_ext
28913cat >>conftest.$ac_ext <<_ACEOF
28914/* end confdefs.h.  */
28915$ac_includes_default
28916#include <$ac_header>
28917_ACEOF
28918rm -f conftest.$ac_objext
28919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28920  (eval $ac_compile) 2>conftest.er1
28921  ac_status=$?
28922  grep -v '^ *+' conftest.er1 >conftest.err
28923  rm -f conftest.er1
28924  cat conftest.err >&5
28925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926  (exit $ac_status); } &&
28927	 { ac_try='test -z "$ac_c_werror_flag"
28928			 || test ! -s conftest.err'
28929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28930  (eval $ac_try) 2>&5
28931  ac_status=$?
28932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933  (exit $ac_status); }; } &&
28934	 { ac_try='test -s conftest.$ac_objext'
28935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28936  (eval $ac_try) 2>&5
28937  ac_status=$?
28938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939  (exit $ac_status); }; }; then
28940  ac_header_compiler=yes
28941else
28942  echo "$as_me: failed program was:" >&5
28943sed 's/^/| /' conftest.$ac_ext >&5
28944
28945ac_header_compiler=no
28946fi
28947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28949echo "${ECHO_T}$ac_header_compiler" >&6
28950
28951# Is the header present?
28952echo "$as_me:$LINENO: checking $ac_header presence" >&5
28953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28954cat >conftest.$ac_ext <<_ACEOF
28955/* confdefs.h.  */
28956_ACEOF
28957cat confdefs.h >>conftest.$ac_ext
28958cat >>conftest.$ac_ext <<_ACEOF
28959/* end confdefs.h.  */
28960#include <$ac_header>
28961_ACEOF
28962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28963  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28964  ac_status=$?
28965  grep -v '^ *+' conftest.er1 >conftest.err
28966  rm -f conftest.er1
28967  cat conftest.err >&5
28968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969  (exit $ac_status); } >/dev/null; then
28970  if test -s conftest.err; then
28971    ac_cpp_err=$ac_c_preproc_warn_flag
28972    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28973  else
28974    ac_cpp_err=
28975  fi
28976else
28977  ac_cpp_err=yes
28978fi
28979if test -z "$ac_cpp_err"; then
28980  ac_header_preproc=yes
28981else
28982  echo "$as_me: failed program was:" >&5
28983sed 's/^/| /' conftest.$ac_ext >&5
28984
28985  ac_header_preproc=no
28986fi
28987rm -f conftest.err conftest.$ac_ext
28988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28989echo "${ECHO_T}$ac_header_preproc" >&6
28990
28991# So?  What about this header?
28992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28993  yes:no: )
28994    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28996    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28998    ac_header_preproc=yes
28999    ;;
29000  no:yes:* )
29001    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29003    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29004echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29005    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29007    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29008echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29009    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29011    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29013    (
29014      cat <<\_ASBOX
29015## ------------------------------------------ ##
29016## Report this to the AC_PACKAGE_NAME lists.  ##
29017## ------------------------------------------ ##
29018_ASBOX
29019    ) |
29020      sed "s/^/$as_me: WARNING:     /" >&2
29021    ;;
29022esac
29023echo "$as_me:$LINENO: checking for $ac_header" >&5
29024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29025if eval "test \"\${$as_ac_Header+set}\" = set"; then
29026  echo $ECHO_N "(cached) $ECHO_C" >&6
29027else
29028  eval "$as_ac_Header=\$ac_header_preproc"
29029fi
29030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29032
29033fi
29034if test `eval echo '${'$as_ac_Header'}'` = yes; then
29035  cat >>confdefs.h <<_ACEOF
29036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29037_ACEOF
29038
29039fi
29040
29041done
29042
29043
29044
29045for ac_func in gettimeofday
29046do
29047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29048echo "$as_me:$LINENO: checking for $ac_func" >&5
29049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29050if eval "test \"\${$as_ac_var+set}\" = set"; then
29051  echo $ECHO_N "(cached) $ECHO_C" >&6
29052else
29053  cat >conftest.$ac_ext <<_ACEOF
29054/* confdefs.h.  */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h.  */
29059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29060   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29061#define $ac_func innocuous_$ac_func
29062
29063/* System header to define __stub macros and hopefully few prototypes,
29064    which can conflict with char $ac_func (); below.
29065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29066    <limits.h> exists even on freestanding compilers.  */
29067
29068#ifdef __STDC__
29069# include <limits.h>
29070#else
29071# include <assert.h>
29072#endif
29073
29074#undef $ac_func
29075
29076/* Override any gcc2 internal prototype to avoid an error.  */
29077#ifdef __cplusplus
29078extern "C"
29079{
29080#endif
29081/* We use char because int might match the return type of a gcc2
29082   builtin and then its argument prototype would still apply.  */
29083char $ac_func ();
29084/* The GNU C library defines this for functions which it implements
29085    to always fail with ENOSYS.  Some functions are actually named
29086    something starting with __ and the normal name is an alias.  */
29087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29088choke me
29089#else
29090char (*f) () = $ac_func;
29091#endif
29092#ifdef __cplusplus
29093}
29094#endif
29095
29096int
29097main ()
29098{
29099return f != $ac_func;
29100  ;
29101  return 0;
29102}
29103_ACEOF
29104rm -f conftest.$ac_objext conftest$ac_exeext
29105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29106  (eval $ac_link) 2>conftest.er1
29107  ac_status=$?
29108  grep -v '^ *+' conftest.er1 >conftest.err
29109  rm -f conftest.er1
29110  cat conftest.err >&5
29111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112  (exit $ac_status); } &&
29113	 { ac_try='test -z "$ac_c_werror_flag"
29114			 || test ! -s conftest.err'
29115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116  (eval $ac_try) 2>&5
29117  ac_status=$?
29118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119  (exit $ac_status); }; } &&
29120	 { ac_try='test -s conftest$ac_exeext'
29121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122  (eval $ac_try) 2>&5
29123  ac_status=$?
29124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125  (exit $ac_status); }; }; then
29126  eval "$as_ac_var=yes"
29127else
29128  echo "$as_me: failed program was:" >&5
29129sed 's/^/| /' conftest.$ac_ext >&5
29130
29131eval "$as_ac_var=no"
29132fi
29133rm -f conftest.err conftest.$ac_objext \
29134      conftest$ac_exeext conftest.$ac_ext
29135fi
29136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29138if test `eval echo '${'$as_ac_var'}'` = yes; then
29139  cat >>confdefs.h <<_ACEOF
29140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29141_ACEOF
29142
29143fi
29144done
29145
29146
29147  fi
29148
29149
29150  signals_not_posix=
29151  cat >conftest.$ac_ext <<_ACEOF
29152/* confdefs.h.  */
29153_ACEOF
29154cat confdefs.h >>conftest.$ac_ext
29155cat >>conftest.$ac_ext <<_ACEOF
29156/* end confdefs.h.  */
29157#include <signal.h>
29158
29159_ACEOF
29160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29161  $EGREP "sigset_t" >/dev/null 2>&1; then
29162  :
29163else
29164  signals_not_posix=1
29165fi
29166rm -f conftest*
29167
29168  if test -z "$signals_not_posix"; then
29169    echo "$as_me:$LINENO: checking for sigprocmask" >&5
29170echo $ECHO_N "checking for sigprocmask... $ECHO_C" >&6
29171if test "${ac_cv_func_sigprocmask+set}" = set; then
29172  echo $ECHO_N "(cached) $ECHO_C" >&6
29173else
29174  cat >conftest.$ac_ext <<_ACEOF
29175/* confdefs.h.  */
29176_ACEOF
29177cat confdefs.h >>conftest.$ac_ext
29178cat >>conftest.$ac_ext <<_ACEOF
29179/* end confdefs.h.  */
29180/* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask.
29181   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29182#define sigprocmask innocuous_sigprocmask
29183
29184/* System header to define __stub macros and hopefully few prototypes,
29185    which can conflict with char sigprocmask (); below.
29186    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29187    <limits.h> exists even on freestanding compilers.  */
29188
29189#ifdef __STDC__
29190# include <limits.h>
29191#else
29192# include <assert.h>
29193#endif
29194
29195#undef sigprocmask
29196
29197/* Override any gcc2 internal prototype to avoid an error.  */
29198#ifdef __cplusplus
29199extern "C"
29200{
29201#endif
29202/* We use char because int might match the return type of a gcc2
29203   builtin and then its argument prototype would still apply.  */
29204char sigprocmask ();
29205/* The GNU C library defines this for functions which it implements
29206    to always fail with ENOSYS.  Some functions are actually named
29207    something starting with __ and the normal name is an alias.  */
29208#if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
29209choke me
29210#else
29211char (*f) () = sigprocmask;
29212#endif
29213#ifdef __cplusplus
29214}
29215#endif
29216
29217int
29218main ()
29219{
29220return f != sigprocmask;
29221  ;
29222  return 0;
29223}
29224_ACEOF
29225rm -f conftest.$ac_objext conftest$ac_exeext
29226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29227  (eval $ac_link) 2>conftest.er1
29228  ac_status=$?
29229  grep -v '^ *+' conftest.er1 >conftest.err
29230  rm -f conftest.er1
29231  cat conftest.err >&5
29232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233  (exit $ac_status); } &&
29234	 { ac_try='test -z "$ac_c_werror_flag"
29235			 || test ! -s conftest.err'
29236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237  (eval $ac_try) 2>&5
29238  ac_status=$?
29239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240  (exit $ac_status); }; } &&
29241	 { ac_try='test -s conftest$ac_exeext'
29242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243  (eval $ac_try) 2>&5
29244  ac_status=$?
29245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246  (exit $ac_status); }; }; then
29247  ac_cv_func_sigprocmask=yes
29248else
29249  echo "$as_me: failed program was:" >&5
29250sed 's/^/| /' conftest.$ac_ext >&5
29251
29252ac_cv_func_sigprocmask=no
29253fi
29254rm -f conftest.err conftest.$ac_objext \
29255      conftest$ac_exeext conftest.$ac_ext
29256fi
29257echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5
29258echo "${ECHO_T}$ac_cv_func_sigprocmask" >&6
29259if test $ac_cv_func_sigprocmask = yes; then
29260
29261cat >>confdefs.h <<\_ACEOF
29262#define HAVE_POSIX_SIGNALBLOCKING 1
29263_ACEOF
29264
29265fi
29266
29267  fi
29268
29269
29270  echo "$as_me:$LINENO: checking for signal handlers with siginfo_t" >&5
29271echo $ECHO_N "checking for signal handlers with siginfo_t... $ECHO_C" >&6
29272if test "${gt_cv_siginfo_t+set}" = set; then
29273  echo $ECHO_N "(cached) $ECHO_C" >&6
29274else
29275  cat >conftest.$ac_ext <<_ACEOF
29276/* confdefs.h.  */
29277_ACEOF
29278cat confdefs.h >>conftest.$ac_ext
29279cat >>conftest.$ac_ext <<_ACEOF
29280/* end confdefs.h.  */
29281
29282#include <signal.h>
29283int
29284main ()
29285{
29286
29287struct sigaction action;
29288siginfo_t info;
29289action.sa_flags = SA_SIGINFO;
29290action.sa_sigaction = (void *) 0;
29291
29292  ;
29293  return 0;
29294}
29295_ACEOF
29296rm -f conftest.$ac_objext
29297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29298  (eval $ac_compile) 2>conftest.er1
29299  ac_status=$?
29300  grep -v '^ *+' conftest.er1 >conftest.err
29301  rm -f conftest.er1
29302  cat conftest.err >&5
29303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304  (exit $ac_status); } &&
29305	 { ac_try='test -z "$ac_c_werror_flag"
29306			 || test ! -s conftest.err'
29307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29308  (eval $ac_try) 2>&5
29309  ac_status=$?
29310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311  (exit $ac_status); }; } &&
29312	 { ac_try='test -s conftest.$ac_objext'
29313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314  (eval $ac_try) 2>&5
29315  ac_status=$?
29316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317  (exit $ac_status); }; }; then
29318  gt_cv_siginfo_t=yes
29319else
29320  echo "$as_me: failed program was:" >&5
29321sed 's/^/| /' conftest.$ac_ext >&5
29322
29323gt_cv_siginfo_t=no
29324fi
29325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29326fi
29327echo "$as_me:$LINENO: result: $gt_cv_siginfo_t" >&5
29328echo "${ECHO_T}$gt_cv_siginfo_t" >&6
29329  if test $gt_cv_siginfo_t = yes; then
29330
29331cat >>confdefs.h <<\_ACEOF
29332#define HAVE_SIGINFO 1
29333_ACEOF
29334
29335  fi
29336
29337
29338
29339
29340for ac_func in setenv unsetenv
29341do
29342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29343echo "$as_me:$LINENO: checking for $ac_func" >&5
29344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29345if eval "test \"\${$as_ac_var+set}\" = set"; then
29346  echo $ECHO_N "(cached) $ECHO_C" >&6
29347else
29348  cat >conftest.$ac_ext <<_ACEOF
29349/* confdefs.h.  */
29350_ACEOF
29351cat confdefs.h >>conftest.$ac_ext
29352cat >>conftest.$ac_ext <<_ACEOF
29353/* end confdefs.h.  */
29354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29356#define $ac_func innocuous_$ac_func
29357
29358/* System header to define __stub macros and hopefully few prototypes,
29359    which can conflict with char $ac_func (); below.
29360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29361    <limits.h> exists even on freestanding compilers.  */
29362
29363#ifdef __STDC__
29364# include <limits.h>
29365#else
29366# include <assert.h>
29367#endif
29368
29369#undef $ac_func
29370
29371/* Override any gcc2 internal prototype to avoid an error.  */
29372#ifdef __cplusplus
29373extern "C"
29374{
29375#endif
29376/* We use char because int might match the return type of a gcc2
29377   builtin and then its argument prototype would still apply.  */
29378char $ac_func ();
29379/* The GNU C library defines this for functions which it implements
29380    to always fail with ENOSYS.  Some functions are actually named
29381    something starting with __ and the normal name is an alias.  */
29382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29383choke me
29384#else
29385char (*f) () = $ac_func;
29386#endif
29387#ifdef __cplusplus
29388}
29389#endif
29390
29391int
29392main ()
29393{
29394return f != $ac_func;
29395  ;
29396  return 0;
29397}
29398_ACEOF
29399rm -f conftest.$ac_objext conftest$ac_exeext
29400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29401  (eval $ac_link) 2>conftest.er1
29402  ac_status=$?
29403  grep -v '^ *+' conftest.er1 >conftest.err
29404  rm -f conftest.er1
29405  cat conftest.err >&5
29406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407  (exit $ac_status); } &&
29408	 { ac_try='test -z "$ac_c_werror_flag"
29409			 || test ! -s conftest.err'
29410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411  (eval $ac_try) 2>&5
29412  ac_status=$?
29413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414  (exit $ac_status); }; } &&
29415	 { ac_try='test -s conftest$ac_exeext'
29416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417  (eval $ac_try) 2>&5
29418  ac_status=$?
29419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420  (exit $ac_status); }; }; then
29421  eval "$as_ac_var=yes"
29422else
29423  echo "$as_me: failed program was:" >&5
29424sed 's/^/| /' conftest.$ac_ext >&5
29425
29426eval "$as_ac_var=no"
29427fi
29428rm -f conftest.err conftest.$ac_objext \
29429      conftest$ac_exeext conftest.$ac_ext
29430fi
29431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29433if test `eval echo '${'$as_ac_var'}'` = yes; then
29434  cat >>confdefs.h <<_ACEOF
29435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29436_ACEOF
29437
29438else
29439  case $LIBOBJS in
29440    "$ac_func.$ac_objext"   | \
29441  *" $ac_func.$ac_objext"   | \
29442    "$ac_func.$ac_objext "* | \
29443  *" $ac_func.$ac_objext "* ) ;;
29444  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
29445esac
29446
29447fi
29448done
29449
29450
29451  if test $ac_cv_func_setenv = no; then
29452
29453
29454
29455  :
29456
29457
29458
29459
29460
29461
29462for ac_header in search.h
29463do
29464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29465if eval "test \"\${$as_ac_Header+set}\" = set"; then
29466  echo "$as_me:$LINENO: checking for $ac_header" >&5
29467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29468if eval "test \"\${$as_ac_Header+set}\" = set"; then
29469  echo $ECHO_N "(cached) $ECHO_C" >&6
29470fi
29471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29473else
29474  # Is the header compilable?
29475echo "$as_me:$LINENO: checking $ac_header usability" >&5
29476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29477cat >conftest.$ac_ext <<_ACEOF
29478/* confdefs.h.  */
29479_ACEOF
29480cat confdefs.h >>conftest.$ac_ext
29481cat >>conftest.$ac_ext <<_ACEOF
29482/* end confdefs.h.  */
29483$ac_includes_default
29484#include <$ac_header>
29485_ACEOF
29486rm -f conftest.$ac_objext
29487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29488  (eval $ac_compile) 2>conftest.er1
29489  ac_status=$?
29490  grep -v '^ *+' conftest.er1 >conftest.err
29491  rm -f conftest.er1
29492  cat conftest.err >&5
29493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494  (exit $ac_status); } &&
29495	 { ac_try='test -z "$ac_c_werror_flag"
29496			 || test ! -s conftest.err'
29497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498  (eval $ac_try) 2>&5
29499  ac_status=$?
29500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501  (exit $ac_status); }; } &&
29502	 { ac_try='test -s conftest.$ac_objext'
29503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29504  (eval $ac_try) 2>&5
29505  ac_status=$?
29506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507  (exit $ac_status); }; }; then
29508  ac_header_compiler=yes
29509else
29510  echo "$as_me: failed program was:" >&5
29511sed 's/^/| /' conftest.$ac_ext >&5
29512
29513ac_header_compiler=no
29514fi
29515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517echo "${ECHO_T}$ac_header_compiler" >&6
29518
29519# Is the header present?
29520echo "$as_me:$LINENO: checking $ac_header presence" >&5
29521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29522cat >conftest.$ac_ext <<_ACEOF
29523/* confdefs.h.  */
29524_ACEOF
29525cat confdefs.h >>conftest.$ac_ext
29526cat >>conftest.$ac_ext <<_ACEOF
29527/* end confdefs.h.  */
29528#include <$ac_header>
29529_ACEOF
29530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29531  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29532  ac_status=$?
29533  grep -v '^ *+' conftest.er1 >conftest.err
29534  rm -f conftest.er1
29535  cat conftest.err >&5
29536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537  (exit $ac_status); } >/dev/null; then
29538  if test -s conftest.err; then
29539    ac_cpp_err=$ac_c_preproc_warn_flag
29540    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29541  else
29542    ac_cpp_err=
29543  fi
29544else
29545  ac_cpp_err=yes
29546fi
29547if test -z "$ac_cpp_err"; then
29548  ac_header_preproc=yes
29549else
29550  echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
29553  ac_header_preproc=no
29554fi
29555rm -f conftest.err conftest.$ac_ext
29556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29557echo "${ECHO_T}$ac_header_preproc" >&6
29558
29559# So?  What about this header?
29560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29561  yes:no: )
29562    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29564    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29566    ac_header_preproc=yes
29567    ;;
29568  no:yes:* )
29569    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29571    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29572echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29573    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29575    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29576echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29577    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29579    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29581    (
29582      cat <<\_ASBOX
29583## ------------------------------------------ ##
29584## Report this to the AC_PACKAGE_NAME lists.  ##
29585## ------------------------------------------ ##
29586_ASBOX
29587    ) |
29588      sed "s/^/$as_me: WARNING:     /" >&2
29589    ;;
29590esac
29591echo "$as_me:$LINENO: checking for $ac_header" >&5
29592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29593if eval "test \"\${$as_ac_Header+set}\" = set"; then
29594  echo $ECHO_N "(cached) $ECHO_C" >&6
29595else
29596  eval "$as_ac_Header=\$ac_header_preproc"
29597fi
29598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29600
29601fi
29602if test `eval echo '${'$as_ac_Header'}'` = yes; then
29603  cat >>confdefs.h <<_ACEOF
29604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29605_ACEOF
29606
29607fi
29608
29609done
29610
29611
29612for ac_func in tsearch
29613do
29614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29615echo "$as_me:$LINENO: checking for $ac_func" >&5
29616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29617if eval "test \"\${$as_ac_var+set}\" = set"; then
29618  echo $ECHO_N "(cached) $ECHO_C" >&6
29619else
29620  cat >conftest.$ac_ext <<_ACEOF
29621/* confdefs.h.  */
29622_ACEOF
29623cat confdefs.h >>conftest.$ac_ext
29624cat >>conftest.$ac_ext <<_ACEOF
29625/* end confdefs.h.  */
29626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29627   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29628#define $ac_func innocuous_$ac_func
29629
29630/* System header to define __stub macros and hopefully few prototypes,
29631    which can conflict with char $ac_func (); below.
29632    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29633    <limits.h> exists even on freestanding compilers.  */
29634
29635#ifdef __STDC__
29636# include <limits.h>
29637#else
29638# include <assert.h>
29639#endif
29640
29641#undef $ac_func
29642
29643/* Override any gcc2 internal prototype to avoid an error.  */
29644#ifdef __cplusplus
29645extern "C"
29646{
29647#endif
29648/* We use char because int might match the return type of a gcc2
29649   builtin and then its argument prototype would still apply.  */
29650char $ac_func ();
29651/* The GNU C library defines this for functions which it implements
29652    to always fail with ENOSYS.  Some functions are actually named
29653    something starting with __ and the normal name is an alias.  */
29654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29655choke me
29656#else
29657char (*f) () = $ac_func;
29658#endif
29659#ifdef __cplusplus
29660}
29661#endif
29662
29663int
29664main ()
29665{
29666return f != $ac_func;
29667  ;
29668  return 0;
29669}
29670_ACEOF
29671rm -f conftest.$ac_objext conftest$ac_exeext
29672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29673  (eval $ac_link) 2>conftest.er1
29674  ac_status=$?
29675  grep -v '^ *+' conftest.er1 >conftest.err
29676  rm -f conftest.er1
29677  cat conftest.err >&5
29678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679  (exit $ac_status); } &&
29680	 { ac_try='test -z "$ac_c_werror_flag"
29681			 || test ! -s conftest.err'
29682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29683  (eval $ac_try) 2>&5
29684  ac_status=$?
29685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686  (exit $ac_status); }; } &&
29687	 { ac_try='test -s conftest$ac_exeext'
29688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689  (eval $ac_try) 2>&5
29690  ac_status=$?
29691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692  (exit $ac_status); }; }; then
29693  eval "$as_ac_var=yes"
29694else
29695  echo "$as_me: failed program was:" >&5
29696sed 's/^/| /' conftest.$ac_ext >&5
29697
29698eval "$as_ac_var=no"
29699fi
29700rm -f conftest.err conftest.$ac_objext \
29701      conftest$ac_exeext conftest.$ac_ext
29702fi
29703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29705if test `eval echo '${'$as_ac_var'}'` = yes; then
29706  cat >>confdefs.h <<_ACEOF
29707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29708_ACEOF
29709
29710fi
29711done
29712
29713
29714
29715  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
29716echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
29717  if test "${gt_cv_var_errno_declaration+set}" = set; then
29718  echo $ECHO_N "(cached) $ECHO_C" >&6
29719else
29720
29721    cat >conftest.$ac_ext <<_ACEOF
29722/* confdefs.h.  */
29723_ACEOF
29724cat confdefs.h >>conftest.$ac_ext
29725cat >>conftest.$ac_ext <<_ACEOF
29726/* end confdefs.h.  */
29727#include <errno.h>
29728      extern struct { int foo; } errno;
29729int
29730main ()
29731{
29732errno.foo = 1;
29733  ;
29734  return 0;
29735}
29736_ACEOF
29737rm -f conftest.$ac_objext
29738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29739  (eval $ac_compile) 2>conftest.er1
29740  ac_status=$?
29741  grep -v '^ *+' conftest.er1 >conftest.err
29742  rm -f conftest.er1
29743  cat conftest.err >&5
29744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745  (exit $ac_status); } &&
29746	 { ac_try='test -z "$ac_c_werror_flag"
29747			 || test ! -s conftest.err'
29748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749  (eval $ac_try) 2>&5
29750  ac_status=$?
29751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752  (exit $ac_status); }; } &&
29753	 { ac_try='test -s conftest.$ac_objext'
29754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755  (eval $ac_try) 2>&5
29756  ac_status=$?
29757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758  (exit $ac_status); }; }; then
29759  gt_cv_var_errno_declaration=no
29760else
29761  echo "$as_me: failed program was:" >&5
29762sed 's/^/| /' conftest.$ac_ext >&5
29763
29764gt_cv_var_errno_declaration=yes
29765fi
29766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29767fi
29768
29769  echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
29770echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
29771  if test $gt_cv_var_errno_declaration = yes; then
29772
29773cat >>confdefs.h <<\_ACEOF
29774#define HAVE_ERRNO_DECL 1
29775_ACEOF
29776
29777  fi
29778
29779
29780
29781  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
29782echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
29783  if test "${gt_cv_var_environ_declaration+set}" = set; then
29784  echo $ECHO_N "(cached) $ECHO_C" >&6
29785else
29786
29787    cat >conftest.$ac_ext <<_ACEOF
29788/* confdefs.h.  */
29789_ACEOF
29790cat confdefs.h >>conftest.$ac_ext
29791cat >>conftest.$ac_ext <<_ACEOF
29792/* end confdefs.h.  */
29793#include <unistd.h>
29794      extern struct { int foo; } environ;
29795int
29796main ()
29797{
29798environ.foo = 1;
29799  ;
29800  return 0;
29801}
29802_ACEOF
29803rm -f conftest.$ac_objext
29804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29805  (eval $ac_compile) 2>conftest.er1
29806  ac_status=$?
29807  grep -v '^ *+' conftest.er1 >conftest.err
29808  rm -f conftest.er1
29809  cat conftest.err >&5
29810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811  (exit $ac_status); } &&
29812	 { ac_try='test -z "$ac_c_werror_flag"
29813			 || test ! -s conftest.err'
29814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29815  (eval $ac_try) 2>&5
29816  ac_status=$?
29817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818  (exit $ac_status); }; } &&
29819	 { ac_try='test -s conftest.$ac_objext'
29820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29821  (eval $ac_try) 2>&5
29822  ac_status=$?
29823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824  (exit $ac_status); }; }; then
29825  gt_cv_var_environ_declaration=no
29826else
29827  echo "$as_me: failed program was:" >&5
29828sed 's/^/| /' conftest.$ac_ext >&5
29829
29830gt_cv_var_environ_declaration=yes
29831fi
29832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29833fi
29834
29835  echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
29836echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
29837  if test $gt_cv_var_environ_declaration = yes; then
29838
29839cat >>confdefs.h <<\_ACEOF
29840#define HAVE_ENVIRON_DECL 1
29841_ACEOF
29842
29843  fi
29844
29845
29846  fi
29847  if test $ac_cv_func_unsetenv = no; then
29848
29849
29850  :
29851
29852
29853
29854
29855
29856
29857
29858  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
29859echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
29860  if test "${gt_cv_var_errno_declaration+set}" = set; then
29861  echo $ECHO_N "(cached) $ECHO_C" >&6
29862else
29863
29864    cat >conftest.$ac_ext <<_ACEOF
29865/* confdefs.h.  */
29866_ACEOF
29867cat confdefs.h >>conftest.$ac_ext
29868cat >>conftest.$ac_ext <<_ACEOF
29869/* end confdefs.h.  */
29870#include <errno.h>
29871      extern struct { int foo; } errno;
29872int
29873main ()
29874{
29875errno.foo = 1;
29876  ;
29877  return 0;
29878}
29879_ACEOF
29880rm -f conftest.$ac_objext
29881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29882  (eval $ac_compile) 2>conftest.er1
29883  ac_status=$?
29884  grep -v '^ *+' conftest.er1 >conftest.err
29885  rm -f conftest.er1
29886  cat conftest.err >&5
29887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888  (exit $ac_status); } &&
29889	 { ac_try='test -z "$ac_c_werror_flag"
29890			 || test ! -s conftest.err'
29891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29892  (eval $ac_try) 2>&5
29893  ac_status=$?
29894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895  (exit $ac_status); }; } &&
29896	 { ac_try='test -s conftest.$ac_objext'
29897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898  (eval $ac_try) 2>&5
29899  ac_status=$?
29900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901  (exit $ac_status); }; }; then
29902  gt_cv_var_errno_declaration=no
29903else
29904  echo "$as_me: failed program was:" >&5
29905sed 's/^/| /' conftest.$ac_ext >&5
29906
29907gt_cv_var_errno_declaration=yes
29908fi
29909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29910fi
29911
29912  echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
29913echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
29914  if test $gt_cv_var_errno_declaration = yes; then
29915
29916cat >>confdefs.h <<\_ACEOF
29917#define HAVE_ERRNO_DECL 1
29918_ACEOF
29919
29920  fi
29921
29922
29923
29924  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
29925echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
29926  if test "${gt_cv_var_environ_declaration+set}" = set; then
29927  echo $ECHO_N "(cached) $ECHO_C" >&6
29928else
29929
29930    cat >conftest.$ac_ext <<_ACEOF
29931/* confdefs.h.  */
29932_ACEOF
29933cat confdefs.h >>conftest.$ac_ext
29934cat >>conftest.$ac_ext <<_ACEOF
29935/* end confdefs.h.  */
29936#include <unistd.h>
29937      extern struct { int foo; } environ;
29938int
29939main ()
29940{
29941environ.foo = 1;
29942  ;
29943  return 0;
29944}
29945_ACEOF
29946rm -f conftest.$ac_objext
29947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29948  (eval $ac_compile) 2>conftest.er1
29949  ac_status=$?
29950  grep -v '^ *+' conftest.er1 >conftest.err
29951  rm -f conftest.er1
29952  cat conftest.err >&5
29953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954  (exit $ac_status); } &&
29955	 { ac_try='test -z "$ac_c_werror_flag"
29956			 || test ! -s conftest.err'
29957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29958  (eval $ac_try) 2>&5
29959  ac_status=$?
29960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961  (exit $ac_status); }; } &&
29962	 { ac_try='test -s conftest.$ac_objext'
29963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29964  (eval $ac_try) 2>&5
29965  ac_status=$?
29966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967  (exit $ac_status); }; }; then
29968  gt_cv_var_environ_declaration=no
29969else
29970  echo "$as_me: failed program was:" >&5
29971sed 's/^/| /' conftest.$ac_ext >&5
29972
29973gt_cv_var_environ_declaration=yes
29974fi
29975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29976fi
29977
29978  echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
29979echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
29980  if test $gt_cv_var_environ_declaration = yes; then
29981
29982cat >>confdefs.h <<\_ACEOF
29983#define HAVE_ENVIRON_DECL 1
29984_ACEOF
29985
29986  fi
29987
29988
29989  else
29990    echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
29991echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
29992if test "${gt_cv_func_unsetenv_ret+set}" = set; then
29993  echo $ECHO_N "(cached) $ECHO_C" >&6
29994else
29995  cat >conftest.$ac_ext <<_ACEOF
29996/* confdefs.h.  */
29997_ACEOF
29998cat confdefs.h >>conftest.$ac_ext
29999cat >>conftest.$ac_ext <<_ACEOF
30000/* end confdefs.h.  */
30001#include <stdlib.h>
30002extern
30003#ifdef __cplusplus
30004"C"
30005#endif
30006#if defined(__STDC__) || defined(__cplusplus)
30007int unsetenv (const char *name);
30008#else
30009int unsetenv();
30010#endif
30011
30012int
30013main ()
30014{
30015
30016  ;
30017  return 0;
30018}
30019_ACEOF
30020rm -f conftest.$ac_objext
30021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30022  (eval $ac_compile) 2>conftest.er1
30023  ac_status=$?
30024  grep -v '^ *+' conftest.er1 >conftest.err
30025  rm -f conftest.er1
30026  cat conftest.err >&5
30027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028  (exit $ac_status); } &&
30029	 { ac_try='test -z "$ac_c_werror_flag"
30030			 || test ! -s conftest.err'
30031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032  (eval $ac_try) 2>&5
30033  ac_status=$?
30034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035  (exit $ac_status); }; } &&
30036	 { ac_try='test -s conftest.$ac_objext'
30037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038  (eval $ac_try) 2>&5
30039  ac_status=$?
30040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041  (exit $ac_status); }; }; then
30042  gt_cv_func_unsetenv_ret='int'
30043else
30044  echo "$as_me: failed program was:" >&5
30045sed 's/^/| /' conftest.$ac_ext >&5
30046
30047gt_cv_func_unsetenv_ret='void'
30048fi
30049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30050fi
30051echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
30052echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
30053    if test $gt_cv_func_unsetenv_ret = 'void'; then
30054
30055cat >>confdefs.h <<\_ACEOF
30056#define VOID_UNSETENV 1
30057_ACEOF
30058
30059    fi
30060  fi
30061
30062
30063
30064for ac_func in strerror
30065do
30066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30067echo "$as_me:$LINENO: checking for $ac_func" >&5
30068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30069if eval "test \"\${$as_ac_var+set}\" = set"; then
30070  echo $ECHO_N "(cached) $ECHO_C" >&6
30071else
30072  cat >conftest.$ac_ext <<_ACEOF
30073/* confdefs.h.  */
30074_ACEOF
30075cat confdefs.h >>conftest.$ac_ext
30076cat >>conftest.$ac_ext <<_ACEOF
30077/* end confdefs.h.  */
30078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30079   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30080#define $ac_func innocuous_$ac_func
30081
30082/* System header to define __stub macros and hopefully few prototypes,
30083    which can conflict with char $ac_func (); below.
30084    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30085    <limits.h> exists even on freestanding compilers.  */
30086
30087#ifdef __STDC__
30088# include <limits.h>
30089#else
30090# include <assert.h>
30091#endif
30092
30093#undef $ac_func
30094
30095/* Override any gcc2 internal prototype to avoid an error.  */
30096#ifdef __cplusplus
30097extern "C"
30098{
30099#endif
30100/* We use char because int might match the return type of a gcc2
30101   builtin and then its argument prototype would still apply.  */
30102char $ac_func ();
30103/* The GNU C library defines this for functions which it implements
30104    to always fail with ENOSYS.  Some functions are actually named
30105    something starting with __ and the normal name is an alias.  */
30106#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30107choke me
30108#else
30109char (*f) () = $ac_func;
30110#endif
30111#ifdef __cplusplus
30112}
30113#endif
30114
30115int
30116main ()
30117{
30118return f != $ac_func;
30119  ;
30120  return 0;
30121}
30122_ACEOF
30123rm -f conftest.$ac_objext conftest$ac_exeext
30124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30125  (eval $ac_link) 2>conftest.er1
30126  ac_status=$?
30127  grep -v '^ *+' conftest.er1 >conftest.err
30128  rm -f conftest.er1
30129  cat conftest.err >&5
30130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131  (exit $ac_status); } &&
30132	 { ac_try='test -z "$ac_c_werror_flag"
30133			 || test ! -s conftest.err'
30134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135  (eval $ac_try) 2>&5
30136  ac_status=$?
30137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138  (exit $ac_status); }; } &&
30139	 { ac_try='test -s conftest$ac_exeext'
30140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141  (eval $ac_try) 2>&5
30142  ac_status=$?
30143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144  (exit $ac_status); }; }; then
30145  eval "$as_ac_var=yes"
30146else
30147  echo "$as_me: failed program was:" >&5
30148sed 's/^/| /' conftest.$ac_ext >&5
30149
30150eval "$as_ac_var=no"
30151fi
30152rm -f conftest.err conftest.$ac_objext \
30153      conftest$ac_exeext conftest.$ac_ext
30154fi
30155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30156echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30157if test `eval echo '${'$as_ac_var'}'` = yes; then
30158  cat >>confdefs.h <<_ACEOF
30159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30160_ACEOF
30161
30162else
30163  case $LIBOBJS in
30164    "$ac_func.$ac_objext"   | \
30165  *" $ac_func.$ac_objext"   | \
30166    "$ac_func.$ac_objext "* | \
30167  *" $ac_func.$ac_objext "* ) ;;
30168  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
30169esac
30170
30171fi
30172done
30173
30174
30175  if test $ac_cv_func_strerror = no; then
30176
30177  :
30178
30179  fi
30180
30181
30182      echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
30183echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
30184if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
30185  echo $ECHO_N "(cached) $ECHO_C" >&6
30186else
30187  cat >conftest.$ac_ext <<_ACEOF
30188/* confdefs.h.  */
30189_ACEOF
30190cat confdefs.h >>conftest.$ac_ext
30191cat >>conftest.$ac_ext <<_ACEOF
30192/* end confdefs.h.  */
30193$ac_includes_default
30194int
30195main ()
30196{
30197#ifndef clearerr_unlocked
30198  char *p = (char *) clearerr_unlocked;
30199#endif
30200
30201  ;
30202  return 0;
30203}
30204_ACEOF
30205rm -f conftest.$ac_objext
30206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30207  (eval $ac_compile) 2>conftest.er1
30208  ac_status=$?
30209  grep -v '^ *+' conftest.er1 >conftest.err
30210  rm -f conftest.er1
30211  cat conftest.err >&5
30212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213  (exit $ac_status); } &&
30214	 { ac_try='test -z "$ac_c_werror_flag"
30215			 || test ! -s conftest.err'
30216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217  (eval $ac_try) 2>&5
30218  ac_status=$?
30219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220  (exit $ac_status); }; } &&
30221	 { ac_try='test -s conftest.$ac_objext'
30222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223  (eval $ac_try) 2>&5
30224  ac_status=$?
30225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226  (exit $ac_status); }; }; then
30227  ac_cv_have_decl_clearerr_unlocked=yes
30228else
30229  echo "$as_me: failed program was:" >&5
30230sed 's/^/| /' conftest.$ac_ext >&5
30231
30232ac_cv_have_decl_clearerr_unlocked=no
30233fi
30234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30235fi
30236echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
30237echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
30238if test $ac_cv_have_decl_clearerr_unlocked = yes; then
30239
30240cat >>confdefs.h <<_ACEOF
30241#define HAVE_DECL_CLEARERR_UNLOCKED 1
30242_ACEOF
30243
30244
30245else
30246  cat >>confdefs.h <<_ACEOF
30247#define HAVE_DECL_CLEARERR_UNLOCKED 0
30248_ACEOF
30249
30250
30251fi
30252
30253
30254
30255
30256      echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
30257echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
30258if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
30259  echo $ECHO_N "(cached) $ECHO_C" >&6
30260else
30261  cat >conftest.$ac_ext <<_ACEOF
30262/* confdefs.h.  */
30263_ACEOF
30264cat confdefs.h >>conftest.$ac_ext
30265cat >>conftest.$ac_ext <<_ACEOF
30266/* end confdefs.h.  */
30267$ac_includes_default
30268int
30269main ()
30270{
30271#ifndef feof_unlocked
30272  char *p = (char *) feof_unlocked;
30273#endif
30274
30275  ;
30276  return 0;
30277}
30278_ACEOF
30279rm -f conftest.$ac_objext
30280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30281  (eval $ac_compile) 2>conftest.er1
30282  ac_status=$?
30283  grep -v '^ *+' conftest.er1 >conftest.err
30284  rm -f conftest.er1
30285  cat conftest.err >&5
30286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287  (exit $ac_status); } &&
30288	 { ac_try='test -z "$ac_c_werror_flag"
30289			 || test ! -s conftest.err'
30290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30291  (eval $ac_try) 2>&5
30292  ac_status=$?
30293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294  (exit $ac_status); }; } &&
30295	 { ac_try='test -s conftest.$ac_objext'
30296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30297  (eval $ac_try) 2>&5
30298  ac_status=$?
30299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300  (exit $ac_status); }; }; then
30301  ac_cv_have_decl_feof_unlocked=yes
30302else
30303  echo "$as_me: failed program was:" >&5
30304sed 's/^/| /' conftest.$ac_ext >&5
30305
30306ac_cv_have_decl_feof_unlocked=no
30307fi
30308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30309fi
30310echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
30311echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
30312if test $ac_cv_have_decl_feof_unlocked = yes; then
30313
30314cat >>confdefs.h <<_ACEOF
30315#define HAVE_DECL_FEOF_UNLOCKED 1
30316_ACEOF
30317
30318
30319else
30320  cat >>confdefs.h <<_ACEOF
30321#define HAVE_DECL_FEOF_UNLOCKED 0
30322_ACEOF
30323
30324
30325fi
30326
30327
30328
30329
30330      echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
30331echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
30332if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
30333  echo $ECHO_N "(cached) $ECHO_C" >&6
30334else
30335  cat >conftest.$ac_ext <<_ACEOF
30336/* confdefs.h.  */
30337_ACEOF
30338cat confdefs.h >>conftest.$ac_ext
30339cat >>conftest.$ac_ext <<_ACEOF
30340/* end confdefs.h.  */
30341$ac_includes_default
30342int
30343main ()
30344{
30345#ifndef ferror_unlocked
30346  char *p = (char *) ferror_unlocked;
30347#endif
30348
30349  ;
30350  return 0;
30351}
30352_ACEOF
30353rm -f conftest.$ac_objext
30354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30355  (eval $ac_compile) 2>conftest.er1
30356  ac_status=$?
30357  grep -v '^ *+' conftest.er1 >conftest.err
30358  rm -f conftest.er1
30359  cat conftest.err >&5
30360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361  (exit $ac_status); } &&
30362	 { ac_try='test -z "$ac_c_werror_flag"
30363			 || test ! -s conftest.err'
30364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365  (eval $ac_try) 2>&5
30366  ac_status=$?
30367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368  (exit $ac_status); }; } &&
30369	 { ac_try='test -s conftest.$ac_objext'
30370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371  (eval $ac_try) 2>&5
30372  ac_status=$?
30373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374  (exit $ac_status); }; }; then
30375  ac_cv_have_decl_ferror_unlocked=yes
30376else
30377  echo "$as_me: failed program was:" >&5
30378sed 's/^/| /' conftest.$ac_ext >&5
30379
30380ac_cv_have_decl_ferror_unlocked=no
30381fi
30382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30383fi
30384echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
30385echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
30386if test $ac_cv_have_decl_ferror_unlocked = yes; then
30387
30388cat >>confdefs.h <<_ACEOF
30389#define HAVE_DECL_FERROR_UNLOCKED 1
30390_ACEOF
30391
30392
30393else
30394  cat >>confdefs.h <<_ACEOF
30395#define HAVE_DECL_FERROR_UNLOCKED 0
30396_ACEOF
30397
30398
30399fi
30400
30401
30402
30403
30404      echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
30405echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
30406if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
30407  echo $ECHO_N "(cached) $ECHO_C" >&6
30408else
30409  cat >conftest.$ac_ext <<_ACEOF
30410/* confdefs.h.  */
30411_ACEOF
30412cat confdefs.h >>conftest.$ac_ext
30413cat >>conftest.$ac_ext <<_ACEOF
30414/* end confdefs.h.  */
30415$ac_includes_default
30416int
30417main ()
30418{
30419#ifndef fflush_unlocked
30420  char *p = (char *) fflush_unlocked;
30421#endif
30422
30423  ;
30424  return 0;
30425}
30426_ACEOF
30427rm -f conftest.$ac_objext
30428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30429  (eval $ac_compile) 2>conftest.er1
30430  ac_status=$?
30431  grep -v '^ *+' conftest.er1 >conftest.err
30432  rm -f conftest.er1
30433  cat conftest.err >&5
30434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435  (exit $ac_status); } &&
30436	 { ac_try='test -z "$ac_c_werror_flag"
30437			 || test ! -s conftest.err'
30438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439  (eval $ac_try) 2>&5
30440  ac_status=$?
30441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442  (exit $ac_status); }; } &&
30443	 { ac_try='test -s conftest.$ac_objext'
30444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30445  (eval $ac_try) 2>&5
30446  ac_status=$?
30447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448  (exit $ac_status); }; }; then
30449  ac_cv_have_decl_fflush_unlocked=yes
30450else
30451  echo "$as_me: failed program was:" >&5
30452sed 's/^/| /' conftest.$ac_ext >&5
30453
30454ac_cv_have_decl_fflush_unlocked=no
30455fi
30456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30457fi
30458echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
30459echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
30460if test $ac_cv_have_decl_fflush_unlocked = yes; then
30461
30462cat >>confdefs.h <<_ACEOF
30463#define HAVE_DECL_FFLUSH_UNLOCKED 1
30464_ACEOF
30465
30466
30467else
30468  cat >>confdefs.h <<_ACEOF
30469#define HAVE_DECL_FFLUSH_UNLOCKED 0
30470_ACEOF
30471
30472
30473fi
30474
30475
30476
30477
30478      echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
30479echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
30480if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
30481  echo $ECHO_N "(cached) $ECHO_C" >&6
30482else
30483  cat >conftest.$ac_ext <<_ACEOF
30484/* confdefs.h.  */
30485_ACEOF
30486cat confdefs.h >>conftest.$ac_ext
30487cat >>conftest.$ac_ext <<_ACEOF
30488/* end confdefs.h.  */
30489$ac_includes_default
30490int
30491main ()
30492{
30493#ifndef fgets_unlocked
30494  char *p = (char *) fgets_unlocked;
30495#endif
30496
30497  ;
30498  return 0;
30499}
30500_ACEOF
30501rm -f conftest.$ac_objext
30502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30503  (eval $ac_compile) 2>conftest.er1
30504  ac_status=$?
30505  grep -v '^ *+' conftest.er1 >conftest.err
30506  rm -f conftest.er1
30507  cat conftest.err >&5
30508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509  (exit $ac_status); } &&
30510	 { ac_try='test -z "$ac_c_werror_flag"
30511			 || test ! -s conftest.err'
30512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30513  (eval $ac_try) 2>&5
30514  ac_status=$?
30515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516  (exit $ac_status); }; } &&
30517	 { ac_try='test -s conftest.$ac_objext'
30518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30519  (eval $ac_try) 2>&5
30520  ac_status=$?
30521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522  (exit $ac_status); }; }; then
30523  ac_cv_have_decl_fgets_unlocked=yes
30524else
30525  echo "$as_me: failed program was:" >&5
30526sed 's/^/| /' conftest.$ac_ext >&5
30527
30528ac_cv_have_decl_fgets_unlocked=no
30529fi
30530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30531fi
30532echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
30533echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
30534if test $ac_cv_have_decl_fgets_unlocked = yes; then
30535
30536cat >>confdefs.h <<_ACEOF
30537#define HAVE_DECL_FGETS_UNLOCKED 1
30538_ACEOF
30539
30540
30541else
30542  cat >>confdefs.h <<_ACEOF
30543#define HAVE_DECL_FGETS_UNLOCKED 0
30544_ACEOF
30545
30546
30547fi
30548
30549
30550
30551
30552      echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
30553echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
30554if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
30555  echo $ECHO_N "(cached) $ECHO_C" >&6
30556else
30557  cat >conftest.$ac_ext <<_ACEOF
30558/* confdefs.h.  */
30559_ACEOF
30560cat confdefs.h >>conftest.$ac_ext
30561cat >>conftest.$ac_ext <<_ACEOF
30562/* end confdefs.h.  */
30563$ac_includes_default
30564int
30565main ()
30566{
30567#ifndef fputc_unlocked
30568  char *p = (char *) fputc_unlocked;
30569#endif
30570
30571  ;
30572  return 0;
30573}
30574_ACEOF
30575rm -f conftest.$ac_objext
30576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30577  (eval $ac_compile) 2>conftest.er1
30578  ac_status=$?
30579  grep -v '^ *+' conftest.er1 >conftest.err
30580  rm -f conftest.er1
30581  cat conftest.err >&5
30582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583  (exit $ac_status); } &&
30584	 { ac_try='test -z "$ac_c_werror_flag"
30585			 || test ! -s conftest.err'
30586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30587  (eval $ac_try) 2>&5
30588  ac_status=$?
30589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590  (exit $ac_status); }; } &&
30591	 { ac_try='test -s conftest.$ac_objext'
30592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30593  (eval $ac_try) 2>&5
30594  ac_status=$?
30595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596  (exit $ac_status); }; }; then
30597  ac_cv_have_decl_fputc_unlocked=yes
30598else
30599  echo "$as_me: failed program was:" >&5
30600sed 's/^/| /' conftest.$ac_ext >&5
30601
30602ac_cv_have_decl_fputc_unlocked=no
30603fi
30604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30605fi
30606echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
30607echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
30608if test $ac_cv_have_decl_fputc_unlocked = yes; then
30609
30610cat >>confdefs.h <<_ACEOF
30611#define HAVE_DECL_FPUTC_UNLOCKED 1
30612_ACEOF
30613
30614
30615else
30616  cat >>confdefs.h <<_ACEOF
30617#define HAVE_DECL_FPUTC_UNLOCKED 0
30618_ACEOF
30619
30620
30621fi
30622
30623
30624
30625
30626      echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
30627echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
30628if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
30629  echo $ECHO_N "(cached) $ECHO_C" >&6
30630else
30631  cat >conftest.$ac_ext <<_ACEOF
30632/* confdefs.h.  */
30633_ACEOF
30634cat confdefs.h >>conftest.$ac_ext
30635cat >>conftest.$ac_ext <<_ACEOF
30636/* end confdefs.h.  */
30637$ac_includes_default
30638int
30639main ()
30640{
30641#ifndef fputs_unlocked
30642  char *p = (char *) fputs_unlocked;
30643#endif
30644
30645  ;
30646  return 0;
30647}
30648_ACEOF
30649rm -f conftest.$ac_objext
30650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30651  (eval $ac_compile) 2>conftest.er1
30652  ac_status=$?
30653  grep -v '^ *+' conftest.er1 >conftest.err
30654  rm -f conftest.er1
30655  cat conftest.err >&5
30656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657  (exit $ac_status); } &&
30658	 { ac_try='test -z "$ac_c_werror_flag"
30659			 || test ! -s conftest.err'
30660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661  (eval $ac_try) 2>&5
30662  ac_status=$?
30663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664  (exit $ac_status); }; } &&
30665	 { ac_try='test -s conftest.$ac_objext'
30666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30667  (eval $ac_try) 2>&5
30668  ac_status=$?
30669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670  (exit $ac_status); }; }; then
30671  ac_cv_have_decl_fputs_unlocked=yes
30672else
30673  echo "$as_me: failed program was:" >&5
30674sed 's/^/| /' conftest.$ac_ext >&5
30675
30676ac_cv_have_decl_fputs_unlocked=no
30677fi
30678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30679fi
30680echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
30681echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
30682if test $ac_cv_have_decl_fputs_unlocked = yes; then
30683
30684cat >>confdefs.h <<_ACEOF
30685#define HAVE_DECL_FPUTS_UNLOCKED 1
30686_ACEOF
30687
30688
30689else
30690  cat >>confdefs.h <<_ACEOF
30691#define HAVE_DECL_FPUTS_UNLOCKED 0
30692_ACEOF
30693
30694
30695fi
30696
30697
30698
30699
30700      echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
30701echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
30702if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
30703  echo $ECHO_N "(cached) $ECHO_C" >&6
30704else
30705  cat >conftest.$ac_ext <<_ACEOF
30706/* confdefs.h.  */
30707_ACEOF
30708cat confdefs.h >>conftest.$ac_ext
30709cat >>conftest.$ac_ext <<_ACEOF
30710/* end confdefs.h.  */
30711$ac_includes_default
30712int
30713main ()
30714{
30715#ifndef fread_unlocked
30716  char *p = (char *) fread_unlocked;
30717#endif
30718
30719  ;
30720  return 0;
30721}
30722_ACEOF
30723rm -f conftest.$ac_objext
30724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30725  (eval $ac_compile) 2>conftest.er1
30726  ac_status=$?
30727  grep -v '^ *+' conftest.er1 >conftest.err
30728  rm -f conftest.er1
30729  cat conftest.err >&5
30730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731  (exit $ac_status); } &&
30732	 { ac_try='test -z "$ac_c_werror_flag"
30733			 || test ! -s conftest.err'
30734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30735  (eval $ac_try) 2>&5
30736  ac_status=$?
30737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738  (exit $ac_status); }; } &&
30739	 { ac_try='test -s conftest.$ac_objext'
30740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30741  (eval $ac_try) 2>&5
30742  ac_status=$?
30743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744  (exit $ac_status); }; }; then
30745  ac_cv_have_decl_fread_unlocked=yes
30746else
30747  echo "$as_me: failed program was:" >&5
30748sed 's/^/| /' conftest.$ac_ext >&5
30749
30750ac_cv_have_decl_fread_unlocked=no
30751fi
30752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30753fi
30754echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
30755echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
30756if test $ac_cv_have_decl_fread_unlocked = yes; then
30757
30758cat >>confdefs.h <<_ACEOF
30759#define HAVE_DECL_FREAD_UNLOCKED 1
30760_ACEOF
30761
30762
30763else
30764  cat >>confdefs.h <<_ACEOF
30765#define HAVE_DECL_FREAD_UNLOCKED 0
30766_ACEOF
30767
30768
30769fi
30770
30771
30772
30773
30774      echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
30775echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
30776if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
30777  echo $ECHO_N "(cached) $ECHO_C" >&6
30778else
30779  cat >conftest.$ac_ext <<_ACEOF
30780/* confdefs.h.  */
30781_ACEOF
30782cat confdefs.h >>conftest.$ac_ext
30783cat >>conftest.$ac_ext <<_ACEOF
30784/* end confdefs.h.  */
30785$ac_includes_default
30786int
30787main ()
30788{
30789#ifndef fwrite_unlocked
30790  char *p = (char *) fwrite_unlocked;
30791#endif
30792
30793  ;
30794  return 0;
30795}
30796_ACEOF
30797rm -f conftest.$ac_objext
30798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30799  (eval $ac_compile) 2>conftest.er1
30800  ac_status=$?
30801  grep -v '^ *+' conftest.er1 >conftest.err
30802  rm -f conftest.er1
30803  cat conftest.err >&5
30804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805  (exit $ac_status); } &&
30806	 { ac_try='test -z "$ac_c_werror_flag"
30807			 || test ! -s conftest.err'
30808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809  (eval $ac_try) 2>&5
30810  ac_status=$?
30811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812  (exit $ac_status); }; } &&
30813	 { ac_try='test -s conftest.$ac_objext'
30814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30815  (eval $ac_try) 2>&5
30816  ac_status=$?
30817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818  (exit $ac_status); }; }; then
30819  ac_cv_have_decl_fwrite_unlocked=yes
30820else
30821  echo "$as_me: failed program was:" >&5
30822sed 's/^/| /' conftest.$ac_ext >&5
30823
30824ac_cv_have_decl_fwrite_unlocked=no
30825fi
30826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30827fi
30828echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
30829echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
30830if test $ac_cv_have_decl_fwrite_unlocked = yes; then
30831
30832cat >>confdefs.h <<_ACEOF
30833#define HAVE_DECL_FWRITE_UNLOCKED 1
30834_ACEOF
30835
30836
30837else
30838  cat >>confdefs.h <<_ACEOF
30839#define HAVE_DECL_FWRITE_UNLOCKED 0
30840_ACEOF
30841
30842
30843fi
30844
30845
30846
30847
30848      echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
30849echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
30850if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
30851  echo $ECHO_N "(cached) $ECHO_C" >&6
30852else
30853  cat >conftest.$ac_ext <<_ACEOF
30854/* confdefs.h.  */
30855_ACEOF
30856cat confdefs.h >>conftest.$ac_ext
30857cat >>conftest.$ac_ext <<_ACEOF
30858/* end confdefs.h.  */
30859$ac_includes_default
30860int
30861main ()
30862{
30863#ifndef getc_unlocked
30864  char *p = (char *) getc_unlocked;
30865#endif
30866
30867  ;
30868  return 0;
30869}
30870_ACEOF
30871rm -f conftest.$ac_objext
30872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30873  (eval $ac_compile) 2>conftest.er1
30874  ac_status=$?
30875  grep -v '^ *+' conftest.er1 >conftest.err
30876  rm -f conftest.er1
30877  cat conftest.err >&5
30878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879  (exit $ac_status); } &&
30880	 { ac_try='test -z "$ac_c_werror_flag"
30881			 || test ! -s conftest.err'
30882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883  (eval $ac_try) 2>&5
30884  ac_status=$?
30885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886  (exit $ac_status); }; } &&
30887	 { ac_try='test -s conftest.$ac_objext'
30888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889  (eval $ac_try) 2>&5
30890  ac_status=$?
30891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892  (exit $ac_status); }; }; then
30893  ac_cv_have_decl_getc_unlocked=yes
30894else
30895  echo "$as_me: failed program was:" >&5
30896sed 's/^/| /' conftest.$ac_ext >&5
30897
30898ac_cv_have_decl_getc_unlocked=no
30899fi
30900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30901fi
30902echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
30903echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
30904if test $ac_cv_have_decl_getc_unlocked = yes; then
30905
30906cat >>confdefs.h <<_ACEOF
30907#define HAVE_DECL_GETC_UNLOCKED 1
30908_ACEOF
30909
30910
30911else
30912  cat >>confdefs.h <<_ACEOF
30913#define HAVE_DECL_GETC_UNLOCKED 0
30914_ACEOF
30915
30916
30917fi
30918
30919
30920
30921
30922      echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
30923echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
30924if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
30925  echo $ECHO_N "(cached) $ECHO_C" >&6
30926else
30927  cat >conftest.$ac_ext <<_ACEOF
30928/* confdefs.h.  */
30929_ACEOF
30930cat confdefs.h >>conftest.$ac_ext
30931cat >>conftest.$ac_ext <<_ACEOF
30932/* end confdefs.h.  */
30933$ac_includes_default
30934int
30935main ()
30936{
30937#ifndef getchar_unlocked
30938  char *p = (char *) getchar_unlocked;
30939#endif
30940
30941  ;
30942  return 0;
30943}
30944_ACEOF
30945rm -f conftest.$ac_objext
30946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30947  (eval $ac_compile) 2>conftest.er1
30948  ac_status=$?
30949  grep -v '^ *+' conftest.er1 >conftest.err
30950  rm -f conftest.er1
30951  cat conftest.err >&5
30952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953  (exit $ac_status); } &&
30954	 { ac_try='test -z "$ac_c_werror_flag"
30955			 || test ! -s conftest.err'
30956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957  (eval $ac_try) 2>&5
30958  ac_status=$?
30959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960  (exit $ac_status); }; } &&
30961	 { ac_try='test -s conftest.$ac_objext'
30962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963  (eval $ac_try) 2>&5
30964  ac_status=$?
30965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966  (exit $ac_status); }; }; then
30967  ac_cv_have_decl_getchar_unlocked=yes
30968else
30969  echo "$as_me: failed program was:" >&5
30970sed 's/^/| /' conftest.$ac_ext >&5
30971
30972ac_cv_have_decl_getchar_unlocked=no
30973fi
30974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30975fi
30976echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
30977echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
30978if test $ac_cv_have_decl_getchar_unlocked = yes; then
30979
30980cat >>confdefs.h <<_ACEOF
30981#define HAVE_DECL_GETCHAR_UNLOCKED 1
30982_ACEOF
30983
30984
30985else
30986  cat >>confdefs.h <<_ACEOF
30987#define HAVE_DECL_GETCHAR_UNLOCKED 0
30988_ACEOF
30989
30990
30991fi
30992
30993
30994
30995
30996      echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
30997echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
30998if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
30999  echo $ECHO_N "(cached) $ECHO_C" >&6
31000else
31001  cat >conftest.$ac_ext <<_ACEOF
31002/* confdefs.h.  */
31003_ACEOF
31004cat confdefs.h >>conftest.$ac_ext
31005cat >>conftest.$ac_ext <<_ACEOF
31006/* end confdefs.h.  */
31007$ac_includes_default
31008int
31009main ()
31010{
31011#ifndef putc_unlocked
31012  char *p = (char *) putc_unlocked;
31013#endif
31014
31015  ;
31016  return 0;
31017}
31018_ACEOF
31019rm -f conftest.$ac_objext
31020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31021  (eval $ac_compile) 2>conftest.er1
31022  ac_status=$?
31023  grep -v '^ *+' conftest.er1 >conftest.err
31024  rm -f conftest.er1
31025  cat conftest.err >&5
31026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027  (exit $ac_status); } &&
31028	 { ac_try='test -z "$ac_c_werror_flag"
31029			 || test ! -s conftest.err'
31030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31031  (eval $ac_try) 2>&5
31032  ac_status=$?
31033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034  (exit $ac_status); }; } &&
31035	 { ac_try='test -s conftest.$ac_objext'
31036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31037  (eval $ac_try) 2>&5
31038  ac_status=$?
31039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040  (exit $ac_status); }; }; then
31041  ac_cv_have_decl_putc_unlocked=yes
31042else
31043  echo "$as_me: failed program was:" >&5
31044sed 's/^/| /' conftest.$ac_ext >&5
31045
31046ac_cv_have_decl_putc_unlocked=no
31047fi
31048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31049fi
31050echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
31051echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
31052if test $ac_cv_have_decl_putc_unlocked = yes; then
31053
31054cat >>confdefs.h <<_ACEOF
31055#define HAVE_DECL_PUTC_UNLOCKED 1
31056_ACEOF
31057
31058
31059else
31060  cat >>confdefs.h <<_ACEOF
31061#define HAVE_DECL_PUTC_UNLOCKED 0
31062_ACEOF
31063
31064
31065fi
31066
31067
31068
31069
31070      echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
31071echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
31072if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
31073  echo $ECHO_N "(cached) $ECHO_C" >&6
31074else
31075  cat >conftest.$ac_ext <<_ACEOF
31076/* confdefs.h.  */
31077_ACEOF
31078cat confdefs.h >>conftest.$ac_ext
31079cat >>conftest.$ac_ext <<_ACEOF
31080/* end confdefs.h.  */
31081$ac_includes_default
31082int
31083main ()
31084{
31085#ifndef putchar_unlocked
31086  char *p = (char *) putchar_unlocked;
31087#endif
31088
31089  ;
31090  return 0;
31091}
31092_ACEOF
31093rm -f conftest.$ac_objext
31094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31095  (eval $ac_compile) 2>conftest.er1
31096  ac_status=$?
31097  grep -v '^ *+' conftest.er1 >conftest.err
31098  rm -f conftest.er1
31099  cat conftest.err >&5
31100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101  (exit $ac_status); } &&
31102	 { ac_try='test -z "$ac_c_werror_flag"
31103			 || test ! -s conftest.err'
31104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31105  (eval $ac_try) 2>&5
31106  ac_status=$?
31107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31108  (exit $ac_status); }; } &&
31109	 { ac_try='test -s conftest.$ac_objext'
31110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31111  (eval $ac_try) 2>&5
31112  ac_status=$?
31113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114  (exit $ac_status); }; }; then
31115  ac_cv_have_decl_putchar_unlocked=yes
31116else
31117  echo "$as_me: failed program was:" >&5
31118sed 's/^/| /' conftest.$ac_ext >&5
31119
31120ac_cv_have_decl_putchar_unlocked=no
31121fi
31122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31123fi
31124echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
31125echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
31126if test $ac_cv_have_decl_putchar_unlocked = yes; then
31127
31128cat >>confdefs.h <<_ACEOF
31129#define HAVE_DECL_PUTCHAR_UNLOCKED 1
31130_ACEOF
31131
31132
31133else
31134  cat >>confdefs.h <<_ACEOF
31135#define HAVE_DECL_PUTCHAR_UNLOCKED 0
31136_ACEOF
31137
31138
31139fi
31140
31141
31142
31143
31144
31145cat >>confdefs.h <<\_ACEOF
31146#define USE_UNLOCKED_IO 1
31147_ACEOF
31148
31149
31150
31151
31152
31153  :
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
31197echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
31198if test "${ac_cv_have_decl_strerror_r+set}" = set; then
31199  echo $ECHO_N "(cached) $ECHO_C" >&6
31200else
31201  cat >conftest.$ac_ext <<_ACEOF
31202/* confdefs.h.  */
31203_ACEOF
31204cat confdefs.h >>conftest.$ac_ext
31205cat >>conftest.$ac_ext <<_ACEOF
31206/* end confdefs.h.  */
31207$ac_includes_default
31208int
31209main ()
31210{
31211#ifndef strerror_r
31212  char *p = (char *) strerror_r;
31213#endif
31214
31215  ;
31216  return 0;
31217}
31218_ACEOF
31219rm -f conftest.$ac_objext
31220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31221  (eval $ac_compile) 2>conftest.er1
31222  ac_status=$?
31223  grep -v '^ *+' conftest.er1 >conftest.err
31224  rm -f conftest.er1
31225  cat conftest.err >&5
31226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227  (exit $ac_status); } &&
31228	 { ac_try='test -z "$ac_c_werror_flag"
31229			 || test ! -s conftest.err'
31230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231  (eval $ac_try) 2>&5
31232  ac_status=$?
31233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234  (exit $ac_status); }; } &&
31235	 { ac_try='test -s conftest.$ac_objext'
31236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31237  (eval $ac_try) 2>&5
31238  ac_status=$?
31239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240  (exit $ac_status); }; }; then
31241  ac_cv_have_decl_strerror_r=yes
31242else
31243  echo "$as_me: failed program was:" >&5
31244sed 's/^/| /' conftest.$ac_ext >&5
31245
31246ac_cv_have_decl_strerror_r=no
31247fi
31248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31249fi
31250echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
31251echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
31252if test $ac_cv_have_decl_strerror_r = yes; then
31253
31254cat >>confdefs.h <<_ACEOF
31255#define HAVE_DECL_STRERROR_R 1
31256_ACEOF
31257
31258
31259else
31260  cat >>confdefs.h <<_ACEOF
31261#define HAVE_DECL_STRERROR_R 0
31262_ACEOF
31263
31264
31265fi
31266
31267
31268
31269for ac_func in strerror_r
31270do
31271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31272echo "$as_me:$LINENO: checking for $ac_func" >&5
31273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31274if eval "test \"\${$as_ac_var+set}\" = set"; then
31275  echo $ECHO_N "(cached) $ECHO_C" >&6
31276else
31277  cat >conftest.$ac_ext <<_ACEOF
31278/* confdefs.h.  */
31279_ACEOF
31280cat confdefs.h >>conftest.$ac_ext
31281cat >>conftest.$ac_ext <<_ACEOF
31282/* end confdefs.h.  */
31283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31284   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31285#define $ac_func innocuous_$ac_func
31286
31287/* System header to define __stub macros and hopefully few prototypes,
31288    which can conflict with char $ac_func (); below.
31289    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31290    <limits.h> exists even on freestanding compilers.  */
31291
31292#ifdef __STDC__
31293# include <limits.h>
31294#else
31295# include <assert.h>
31296#endif
31297
31298#undef $ac_func
31299
31300/* Override any gcc2 internal prototype to avoid an error.  */
31301#ifdef __cplusplus
31302extern "C"
31303{
31304#endif
31305/* We use char because int might match the return type of a gcc2
31306   builtin and then its argument prototype would still apply.  */
31307char $ac_func ();
31308/* The GNU C library defines this for functions which it implements
31309    to always fail with ENOSYS.  Some functions are actually named
31310    something starting with __ and the normal name is an alias.  */
31311#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31312choke me
31313#else
31314char (*f) () = $ac_func;
31315#endif
31316#ifdef __cplusplus
31317}
31318#endif
31319
31320int
31321main ()
31322{
31323return f != $ac_func;
31324  ;
31325  return 0;
31326}
31327_ACEOF
31328rm -f conftest.$ac_objext conftest$ac_exeext
31329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31330  (eval $ac_link) 2>conftest.er1
31331  ac_status=$?
31332  grep -v '^ *+' conftest.er1 >conftest.err
31333  rm -f conftest.er1
31334  cat conftest.err >&5
31335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336  (exit $ac_status); } &&
31337	 { ac_try='test -z "$ac_c_werror_flag"
31338			 || test ! -s conftest.err'
31339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340  (eval $ac_try) 2>&5
31341  ac_status=$?
31342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343  (exit $ac_status); }; } &&
31344	 { ac_try='test -s conftest$ac_exeext'
31345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346  (eval $ac_try) 2>&5
31347  ac_status=$?
31348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349  (exit $ac_status); }; }; then
31350  eval "$as_ac_var=yes"
31351else
31352  echo "$as_me: failed program was:" >&5
31353sed 's/^/| /' conftest.$ac_ext >&5
31354
31355eval "$as_ac_var=no"
31356fi
31357rm -f conftest.err conftest.$ac_objext \
31358      conftest$ac_exeext conftest.$ac_ext
31359fi
31360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31361echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31362if test `eval echo '${'$as_ac_var'}'` = yes; then
31363  cat >>confdefs.h <<_ACEOF
31364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31365_ACEOF
31366
31367fi
31368done
31369
31370echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
31371echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
31372if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
31373  echo $ECHO_N "(cached) $ECHO_C" >&6
31374else
31375
31376    ac_cv_func_strerror_r_char_p=no
31377    if test $ac_cv_have_decl_strerror_r = yes; then
31378      cat >conftest.$ac_ext <<_ACEOF
31379/* confdefs.h.  */
31380_ACEOF
31381cat confdefs.h >>conftest.$ac_ext
31382cat >>conftest.$ac_ext <<_ACEOF
31383/* end confdefs.h.  */
31384$ac_includes_default
31385int
31386main ()
31387{
31388
31389	  char buf[100];
31390	  char x = *strerror_r (0, buf, sizeof buf);
31391	  char *p = strerror_r (0, buf, sizeof buf);
31392
31393  ;
31394  return 0;
31395}
31396_ACEOF
31397rm -f conftest.$ac_objext
31398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31399  (eval $ac_compile) 2>conftest.er1
31400  ac_status=$?
31401  grep -v '^ *+' conftest.er1 >conftest.err
31402  rm -f conftest.er1
31403  cat conftest.err >&5
31404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405  (exit $ac_status); } &&
31406	 { ac_try='test -z "$ac_c_werror_flag"
31407			 || test ! -s conftest.err'
31408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409  (eval $ac_try) 2>&5
31410  ac_status=$?
31411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412  (exit $ac_status); }; } &&
31413	 { ac_try='test -s conftest.$ac_objext'
31414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415  (eval $ac_try) 2>&5
31416  ac_status=$?
31417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418  (exit $ac_status); }; }; then
31419  ac_cv_func_strerror_r_char_p=yes
31420else
31421  echo "$as_me: failed program was:" >&5
31422sed 's/^/| /' conftest.$ac_ext >&5
31423
31424fi
31425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31426    else
31427      # strerror_r is not declared.  Choose between
31428      # systems that have relatively inaccessible declarations for the
31429      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
31430      # former has a strerror_r that returns char*, while the latter
31431      # has a strerror_r that returns `int'.
31432      # This test should segfault on the DEC system.
31433      if test "$cross_compiling" = yes; then
31434  :
31435else
31436  cat >conftest.$ac_ext <<_ACEOF
31437/* confdefs.h.  */
31438_ACEOF
31439cat confdefs.h >>conftest.$ac_ext
31440cat >>conftest.$ac_ext <<_ACEOF
31441/* end confdefs.h.  */
31442$ac_includes_default
31443	extern char *strerror_r ();
31444int
31445main ()
31446{
31447char buf[100];
31448	  char x = *strerror_r (0, buf, sizeof buf);
31449	  exit (!isalpha (x));
31450  ;
31451  return 0;
31452}
31453_ACEOF
31454rm -f conftest$ac_exeext
31455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31456  (eval $ac_link) 2>&5
31457  ac_status=$?
31458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31461  (eval $ac_try) 2>&5
31462  ac_status=$?
31463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464  (exit $ac_status); }; }; then
31465  ac_cv_func_strerror_r_char_p=yes
31466else
31467  echo "$as_me: program exited with status $ac_status" >&5
31468echo "$as_me: failed program was:" >&5
31469sed 's/^/| /' conftest.$ac_ext >&5
31470
31471fi
31472rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31473fi
31474    fi
31475
31476fi
31477echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
31478echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
31479if test $ac_cv_func_strerror_r_char_p = yes; then
31480
31481cat >>confdefs.h <<\_ACEOF
31482#define STRERROR_R_CHAR_P 1
31483_ACEOF
31484
31485fi
31486
31487
31488  echo "$as_me:$LINENO: checking for error_at_line" >&5
31489echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
31490if test "${ac_cv_lib_error_at_line+set}" = set; then
31491  echo $ECHO_N "(cached) $ECHO_C" >&6
31492else
31493  cat >conftest.$ac_ext <<_ACEOF
31494/* confdefs.h.  */
31495_ACEOF
31496cat confdefs.h >>conftest.$ac_ext
31497cat >>conftest.$ac_ext <<_ACEOF
31498/* end confdefs.h.  */
31499$ac_includes_default
31500int
31501main ()
31502{
31503error_at_line (0, 0, "", 0, "");
31504  ;
31505  return 0;
31506}
31507_ACEOF
31508rm -f conftest.$ac_objext conftest$ac_exeext
31509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31510  (eval $ac_link) 2>conftest.er1
31511  ac_status=$?
31512  grep -v '^ *+' conftest.er1 >conftest.err
31513  rm -f conftest.er1
31514  cat conftest.err >&5
31515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516  (exit $ac_status); } &&
31517	 { ac_try='test -z "$ac_c_werror_flag"
31518			 || test ! -s conftest.err'
31519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31520  (eval $ac_try) 2>&5
31521  ac_status=$?
31522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523  (exit $ac_status); }; } &&
31524	 { ac_try='test -s conftest$ac_exeext'
31525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31526  (eval $ac_try) 2>&5
31527  ac_status=$?
31528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529  (exit $ac_status); }; }; then
31530  ac_cv_lib_error_at_line=yes
31531else
31532  echo "$as_me: failed program was:" >&5
31533sed 's/^/| /' conftest.$ac_ext >&5
31534
31535ac_cv_lib_error_at_line=no
31536fi
31537rm -f conftest.err conftest.$ac_objext \
31538      conftest$ac_exeext conftest.$ac_ext
31539fi
31540echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
31541echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
31542if test $ac_cv_lib_error_at_line = no; then
31543  case $LIBOBJS in
31544    "error.$ac_objext"   | \
31545  *" error.$ac_objext"   | \
31546    "error.$ac_objext "* | \
31547  *" error.$ac_objext "* ) ;;
31548  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
31549esac
31550
31551fi
31552
31553
31554
31555  :
31556
31557
31558
31559
31560  :
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570  :
31571
31572
31573
31574
31575
31576
31577
31578
31579  echo "$as_me:$LINENO: checking for mbstate_t" >&5
31580echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31581if test "${ac_cv_type_mbstate_t+set}" = set; then
31582  echo $ECHO_N "(cached) $ECHO_C" >&6
31583else
31584  cat >conftest.$ac_ext <<_ACEOF
31585/* confdefs.h.  */
31586_ACEOF
31587cat confdefs.h >>conftest.$ac_ext
31588cat >>conftest.$ac_ext <<_ACEOF
31589/* end confdefs.h.  */
31590$ac_includes_default
31591#	    include <wchar.h>
31592int
31593main ()
31594{
31595mbstate_t x; return sizeof x;
31596  ;
31597  return 0;
31598}
31599_ACEOF
31600rm -f conftest.$ac_objext
31601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31602  (eval $ac_compile) 2>conftest.er1
31603  ac_status=$?
31604  grep -v '^ *+' conftest.er1 >conftest.err
31605  rm -f conftest.er1
31606  cat conftest.err >&5
31607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608  (exit $ac_status); } &&
31609	 { ac_try='test -z "$ac_c_werror_flag"
31610			 || test ! -s conftest.err'
31611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31612  (eval $ac_try) 2>&5
31613  ac_status=$?
31614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615  (exit $ac_status); }; } &&
31616	 { ac_try='test -s conftest.$ac_objext'
31617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31618  (eval $ac_try) 2>&5
31619  ac_status=$?
31620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621  (exit $ac_status); }; }; then
31622  ac_cv_type_mbstate_t=yes
31623else
31624  echo "$as_me: failed program was:" >&5
31625sed 's/^/| /' conftest.$ac_ext >&5
31626
31627ac_cv_type_mbstate_t=no
31628fi
31629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31630fi
31631echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31632echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
31633   if test $ac_cv_type_mbstate_t = yes; then
31634
31635cat >>confdefs.h <<\_ACEOF
31636#define HAVE_MBSTATE_T 1
31637_ACEOF
31638
31639   else
31640
31641cat >>confdefs.h <<\_ACEOF
31642#define mbstate_t int
31643_ACEOF
31644
31645   fi
31646
31647  echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
31648echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
31649if test "${gl_cv_func_mbrtowc+set}" = set; then
31650  echo $ECHO_N "(cached) $ECHO_C" >&6
31651else
31652  cat >conftest.$ac_ext <<_ACEOF
31653/* confdefs.h.  */
31654_ACEOF
31655cat confdefs.h >>conftest.$ac_ext
31656cat >>conftest.$ac_ext <<_ACEOF
31657/* end confdefs.h.  */
31658#include <wchar.h>
31659int
31660main ()
31661{
31662mbstate_t state; return ! (sizeof state && mbrtowc);
31663  ;
31664  return 0;
31665}
31666_ACEOF
31667rm -f conftest.$ac_objext conftest$ac_exeext
31668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31669  (eval $ac_link) 2>conftest.er1
31670  ac_status=$?
31671  grep -v '^ *+' conftest.er1 >conftest.err
31672  rm -f conftest.er1
31673  cat conftest.err >&5
31674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675  (exit $ac_status); } &&
31676	 { ac_try='test -z "$ac_c_werror_flag"
31677			 || test ! -s conftest.err'
31678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31679  (eval $ac_try) 2>&5
31680  ac_status=$?
31681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682  (exit $ac_status); }; } &&
31683	 { ac_try='test -s conftest$ac_exeext'
31684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31685  (eval $ac_try) 2>&5
31686  ac_status=$?
31687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688  (exit $ac_status); }; }; then
31689  gl_cv_func_mbrtowc=yes
31690else
31691  echo "$as_me: failed program was:" >&5
31692sed 's/^/| /' conftest.$ac_ext >&5
31693
31694gl_cv_func_mbrtowc=no
31695fi
31696rm -f conftest.err conftest.$ac_objext \
31697      conftest$ac_exeext conftest.$ac_ext
31698fi
31699echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
31700echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
31701  if test $gl_cv_func_mbrtowc = yes; then
31702
31703cat >>confdefs.h <<\_ACEOF
31704#define HAVE_MBRTOWC 1
31705_ACEOF
31706
31707  fi
31708
31709
31710
31711
31712
31713
31714for ac_header in sys/param.h
31715do
31716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31717if eval "test \"\${$as_ac_Header+set}\" = set"; then
31718  echo "$as_me:$LINENO: checking for $ac_header" >&5
31719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31720if eval "test \"\${$as_ac_Header+set}\" = set"; then
31721  echo $ECHO_N "(cached) $ECHO_C" >&6
31722fi
31723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31725else
31726  # Is the header compilable?
31727echo "$as_me:$LINENO: checking $ac_header usability" >&5
31728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31729cat >conftest.$ac_ext <<_ACEOF
31730/* confdefs.h.  */
31731_ACEOF
31732cat confdefs.h >>conftest.$ac_ext
31733cat >>conftest.$ac_ext <<_ACEOF
31734/* end confdefs.h.  */
31735$ac_includes_default
31736#include <$ac_header>
31737_ACEOF
31738rm -f conftest.$ac_objext
31739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31740  (eval $ac_compile) 2>conftest.er1
31741  ac_status=$?
31742  grep -v '^ *+' conftest.er1 >conftest.err
31743  rm -f conftest.er1
31744  cat conftest.err >&5
31745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746  (exit $ac_status); } &&
31747	 { ac_try='test -z "$ac_c_werror_flag"
31748			 || test ! -s conftest.err'
31749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31750  (eval $ac_try) 2>&5
31751  ac_status=$?
31752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753  (exit $ac_status); }; } &&
31754	 { ac_try='test -s conftest.$ac_objext'
31755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31756  (eval $ac_try) 2>&5
31757  ac_status=$?
31758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759  (exit $ac_status); }; }; then
31760  ac_header_compiler=yes
31761else
31762  echo "$as_me: failed program was:" >&5
31763sed 's/^/| /' conftest.$ac_ext >&5
31764
31765ac_header_compiler=no
31766fi
31767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31769echo "${ECHO_T}$ac_header_compiler" >&6
31770
31771# Is the header present?
31772echo "$as_me:$LINENO: checking $ac_header presence" >&5
31773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31774cat >conftest.$ac_ext <<_ACEOF
31775/* confdefs.h.  */
31776_ACEOF
31777cat confdefs.h >>conftest.$ac_ext
31778cat >>conftest.$ac_ext <<_ACEOF
31779/* end confdefs.h.  */
31780#include <$ac_header>
31781_ACEOF
31782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31783  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31784  ac_status=$?
31785  grep -v '^ *+' conftest.er1 >conftest.err
31786  rm -f conftest.er1
31787  cat conftest.err >&5
31788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789  (exit $ac_status); } >/dev/null; then
31790  if test -s conftest.err; then
31791    ac_cpp_err=$ac_c_preproc_warn_flag
31792    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31793  else
31794    ac_cpp_err=
31795  fi
31796else
31797  ac_cpp_err=yes
31798fi
31799if test -z "$ac_cpp_err"; then
31800  ac_header_preproc=yes
31801else
31802  echo "$as_me: failed program was:" >&5
31803sed 's/^/| /' conftest.$ac_ext >&5
31804
31805  ac_header_preproc=no
31806fi
31807rm -f conftest.err conftest.$ac_ext
31808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31809echo "${ECHO_T}$ac_header_preproc" >&6
31810
31811# So?  What about this header?
31812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31813  yes:no: )
31814    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31816    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31818    ac_header_preproc=yes
31819    ;;
31820  no:yes:* )
31821    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31823    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31824echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31825    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31827    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31828echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31829    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31831    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31833    (
31834      cat <<\_ASBOX
31835## ------------------------------------------ ##
31836## Report this to the AC_PACKAGE_NAME lists.  ##
31837## ------------------------------------------ ##
31838_ASBOX
31839    ) |
31840      sed "s/^/$as_me: WARNING:     /" >&2
31841    ;;
31842esac
31843echo "$as_me:$LINENO: checking for $ac_header" >&5
31844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31845if eval "test \"\${$as_ac_Header+set}\" = set"; then
31846  echo $ECHO_N "(cached) $ECHO_C" >&6
31847else
31848  eval "$as_ac_Header=\$ac_header_preproc"
31849fi
31850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31852
31853fi
31854if test `eval echo '${'$as_ac_Header'}'` = yes; then
31855  cat >>confdefs.h <<_ACEOF
31856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31857_ACEOF
31858
31859fi
31860
31861done
31862
31863
31864
31865
31866  :
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878for ac_func in readlink
31879do
31880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31881echo "$as_me:$LINENO: checking for $ac_func" >&5
31882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31883if eval "test \"\${$as_ac_var+set}\" = set"; then
31884  echo $ECHO_N "(cached) $ECHO_C" >&6
31885else
31886  cat >conftest.$ac_ext <<_ACEOF
31887/* confdefs.h.  */
31888_ACEOF
31889cat confdefs.h >>conftest.$ac_ext
31890cat >>conftest.$ac_ext <<_ACEOF
31891/* end confdefs.h.  */
31892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31893   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31894#define $ac_func innocuous_$ac_func
31895
31896/* System header to define __stub macros and hopefully few prototypes,
31897    which can conflict with char $ac_func (); below.
31898    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31899    <limits.h> exists even on freestanding compilers.  */
31900
31901#ifdef __STDC__
31902# include <limits.h>
31903#else
31904# include <assert.h>
31905#endif
31906
31907#undef $ac_func
31908
31909/* Override any gcc2 internal prototype to avoid an error.  */
31910#ifdef __cplusplus
31911extern "C"
31912{
31913#endif
31914/* We use char because int might match the return type of a gcc2
31915   builtin and then its argument prototype would still apply.  */
31916char $ac_func ();
31917/* The GNU C library defines this for functions which it implements
31918    to always fail with ENOSYS.  Some functions are actually named
31919    something starting with __ and the normal name is an alias.  */
31920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31921choke me
31922#else
31923char (*f) () = $ac_func;
31924#endif
31925#ifdef __cplusplus
31926}
31927#endif
31928
31929int
31930main ()
31931{
31932return f != $ac_func;
31933  ;
31934  return 0;
31935}
31936_ACEOF
31937rm -f conftest.$ac_objext conftest$ac_exeext
31938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31939  (eval $ac_link) 2>conftest.er1
31940  ac_status=$?
31941  grep -v '^ *+' conftest.er1 >conftest.err
31942  rm -f conftest.er1
31943  cat conftest.err >&5
31944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945  (exit $ac_status); } &&
31946	 { ac_try='test -z "$ac_c_werror_flag"
31947			 || test ! -s conftest.err'
31948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31949  (eval $ac_try) 2>&5
31950  ac_status=$?
31951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952  (exit $ac_status); }; } &&
31953	 { ac_try='test -s conftest$ac_exeext'
31954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955  (eval $ac_try) 2>&5
31956  ac_status=$?
31957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958  (exit $ac_status); }; }; then
31959  eval "$as_ac_var=yes"
31960else
31961  echo "$as_me: failed program was:" >&5
31962sed 's/^/| /' conftest.$ac_ext >&5
31963
31964eval "$as_ac_var=no"
31965fi
31966rm -f conftest.err conftest.$ac_objext \
31967      conftest$ac_exeext conftest.$ac_ext
31968fi
31969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31971if test `eval echo '${'$as_ac_var'}'` = yes; then
31972  cat >>confdefs.h <<_ACEOF
31973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31974_ACEOF
31975
31976fi
31977done
31978
31979  if test $ac_cv_func_readlink = no; then
31980    case $LIBOBJS in
31981    "readlink.$ac_objext"   | \
31982  *" readlink.$ac_objext"   | \
31983    "readlink.$ac_objext "* | \
31984  *" readlink.$ac_objext "* ) ;;
31985  *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
31986esac
31987
31988
31989  :
31990
31991  fi
31992
31993
31994
31995
31996  :
31997
31998
31999
32000
32001
32002
32003
32004
32005for ac_func in canonicalize_file_name
32006do
32007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32008echo "$as_me:$LINENO: checking for $ac_func" >&5
32009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32010if eval "test \"\${$as_ac_var+set}\" = set"; then
32011  echo $ECHO_N "(cached) $ECHO_C" >&6
32012else
32013  cat >conftest.$ac_ext <<_ACEOF
32014/* confdefs.h.  */
32015_ACEOF
32016cat confdefs.h >>conftest.$ac_ext
32017cat >>conftest.$ac_ext <<_ACEOF
32018/* end confdefs.h.  */
32019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32020   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32021#define $ac_func innocuous_$ac_func
32022
32023/* System header to define __stub macros and hopefully few prototypes,
32024    which can conflict with char $ac_func (); below.
32025    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32026    <limits.h> exists even on freestanding compilers.  */
32027
32028#ifdef __STDC__
32029# include <limits.h>
32030#else
32031# include <assert.h>
32032#endif
32033
32034#undef $ac_func
32035
32036/* Override any gcc2 internal prototype to avoid an error.  */
32037#ifdef __cplusplus
32038extern "C"
32039{
32040#endif
32041/* We use char because int might match the return type of a gcc2
32042   builtin and then its argument prototype would still apply.  */
32043char $ac_func ();
32044/* The GNU C library defines this for functions which it implements
32045    to always fail with ENOSYS.  Some functions are actually named
32046    something starting with __ and the normal name is an alias.  */
32047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32048choke me
32049#else
32050char (*f) () = $ac_func;
32051#endif
32052#ifdef __cplusplus
32053}
32054#endif
32055
32056int
32057main ()
32058{
32059return f != $ac_func;
32060  ;
32061  return 0;
32062}
32063_ACEOF
32064rm -f conftest.$ac_objext conftest$ac_exeext
32065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32066  (eval $ac_link) 2>conftest.er1
32067  ac_status=$?
32068  grep -v '^ *+' conftest.er1 >conftest.err
32069  rm -f conftest.er1
32070  cat conftest.err >&5
32071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072  (exit $ac_status); } &&
32073	 { ac_try='test -z "$ac_c_werror_flag"
32074			 || test ! -s conftest.err'
32075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32076  (eval $ac_try) 2>&5
32077  ac_status=$?
32078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079  (exit $ac_status); }; } &&
32080	 { ac_try='test -s conftest$ac_exeext'
32081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32082  (eval $ac_try) 2>&5
32083  ac_status=$?
32084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085  (exit $ac_status); }; }; then
32086  eval "$as_ac_var=yes"
32087else
32088  echo "$as_me: failed program was:" >&5
32089sed 's/^/| /' conftest.$ac_ext >&5
32090
32091eval "$as_ac_var=no"
32092fi
32093rm -f conftest.err conftest.$ac_objext \
32094      conftest$ac_exeext conftest.$ac_ext
32095fi
32096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32098if test `eval echo '${'$as_ac_var'}'` = yes; then
32099  cat >>confdefs.h <<_ACEOF
32100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32101_ACEOF
32102
32103fi
32104done
32105
32106  if test $ac_cv_func_canonicalize_file_name = no; then
32107    case $LIBOBJS in
32108    "canonicalize.$ac_objext"   | \
32109  *" canonicalize.$ac_objext"   | \
32110    "canonicalize.$ac_objext "* | \
32111  *" canonicalize.$ac_objext "* ) ;;
32112  *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" ;;
32113esac
32114
32115
32116cat >>confdefs.h <<\_ACEOF
32117#define realpath rpl_realpath
32118_ACEOF
32119
32120
32121
32122  :
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133for ac_func in getcwd readlink
32134do
32135as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32136echo "$as_me:$LINENO: checking for $ac_func" >&5
32137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32138if eval "test \"\${$as_ac_var+set}\" = set"; then
32139  echo $ECHO_N "(cached) $ECHO_C" >&6
32140else
32141  cat >conftest.$ac_ext <<_ACEOF
32142/* confdefs.h.  */
32143_ACEOF
32144cat confdefs.h >>conftest.$ac_ext
32145cat >>conftest.$ac_ext <<_ACEOF
32146/* end confdefs.h.  */
32147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32148   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32149#define $ac_func innocuous_$ac_func
32150
32151/* System header to define __stub macros and hopefully few prototypes,
32152    which can conflict with char $ac_func (); below.
32153    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32154    <limits.h> exists even on freestanding compilers.  */
32155
32156#ifdef __STDC__
32157# include <limits.h>
32158#else
32159# include <assert.h>
32160#endif
32161
32162#undef $ac_func
32163
32164/* Override any gcc2 internal prototype to avoid an error.  */
32165#ifdef __cplusplus
32166extern "C"
32167{
32168#endif
32169/* We use char because int might match the return type of a gcc2
32170   builtin and then its argument prototype would still apply.  */
32171char $ac_func ();
32172/* The GNU C library defines this for functions which it implements
32173    to always fail with ENOSYS.  Some functions are actually named
32174    something starting with __ and the normal name is an alias.  */
32175#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32176choke me
32177#else
32178char (*f) () = $ac_func;
32179#endif
32180#ifdef __cplusplus
32181}
32182#endif
32183
32184int
32185main ()
32186{
32187return f != $ac_func;
32188  ;
32189  return 0;
32190}
32191_ACEOF
32192rm -f conftest.$ac_objext conftest$ac_exeext
32193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32194  (eval $ac_link) 2>conftest.er1
32195  ac_status=$?
32196  grep -v '^ *+' conftest.er1 >conftest.err
32197  rm -f conftest.er1
32198  cat conftest.err >&5
32199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200  (exit $ac_status); } &&
32201	 { ac_try='test -z "$ac_c_werror_flag"
32202			 || test ! -s conftest.err'
32203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204  (eval $ac_try) 2>&5
32205  ac_status=$?
32206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207  (exit $ac_status); }; } &&
32208	 { ac_try='test -s conftest$ac_exeext'
32209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210  (eval $ac_try) 2>&5
32211  ac_status=$?
32212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213  (exit $ac_status); }; }; then
32214  eval "$as_ac_var=yes"
32215else
32216  echo "$as_me: failed program was:" >&5
32217sed 's/^/| /' conftest.$ac_ext >&5
32218
32219eval "$as_ac_var=no"
32220fi
32221rm -f conftest.err conftest.$ac_objext \
32222      conftest$ac_exeext conftest.$ac_ext
32223fi
32224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32225echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32226if test `eval echo '${'$as_ac_var'}'` = yes; then
32227  cat >>confdefs.h <<_ACEOF
32228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32229_ACEOF
32230
32231fi
32232done
32233
32234
32235  fi
32236
32237
32238
32239for ac_header in locale.h
32240do
32241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32242if eval "test \"\${$as_ac_Header+set}\" = set"; then
32243  echo "$as_me:$LINENO: checking for $ac_header" >&5
32244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32245if eval "test \"\${$as_ac_Header+set}\" = set"; then
32246  echo $ECHO_N "(cached) $ECHO_C" >&6
32247fi
32248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32250else
32251  # Is the header compilable?
32252echo "$as_me:$LINENO: checking $ac_header usability" >&5
32253echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32254cat >conftest.$ac_ext <<_ACEOF
32255/* confdefs.h.  */
32256_ACEOF
32257cat confdefs.h >>conftest.$ac_ext
32258cat >>conftest.$ac_ext <<_ACEOF
32259/* end confdefs.h.  */
32260$ac_includes_default
32261#include <$ac_header>
32262_ACEOF
32263rm -f conftest.$ac_objext
32264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32265  (eval $ac_compile) 2>conftest.er1
32266  ac_status=$?
32267  grep -v '^ *+' conftest.er1 >conftest.err
32268  rm -f conftest.er1
32269  cat conftest.err >&5
32270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271  (exit $ac_status); } &&
32272	 { ac_try='test -z "$ac_c_werror_flag"
32273			 || test ! -s conftest.err'
32274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32275  (eval $ac_try) 2>&5
32276  ac_status=$?
32277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278  (exit $ac_status); }; } &&
32279	 { ac_try='test -s conftest.$ac_objext'
32280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281  (eval $ac_try) 2>&5
32282  ac_status=$?
32283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284  (exit $ac_status); }; }; then
32285  ac_header_compiler=yes
32286else
32287  echo "$as_me: failed program was:" >&5
32288sed 's/^/| /' conftest.$ac_ext >&5
32289
32290ac_header_compiler=no
32291fi
32292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32294echo "${ECHO_T}$ac_header_compiler" >&6
32295
32296# Is the header present?
32297echo "$as_me:$LINENO: checking $ac_header presence" >&5
32298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32299cat >conftest.$ac_ext <<_ACEOF
32300/* confdefs.h.  */
32301_ACEOF
32302cat confdefs.h >>conftest.$ac_ext
32303cat >>conftest.$ac_ext <<_ACEOF
32304/* end confdefs.h.  */
32305#include <$ac_header>
32306_ACEOF
32307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32308  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32309  ac_status=$?
32310  grep -v '^ *+' conftest.er1 >conftest.err
32311  rm -f conftest.er1
32312  cat conftest.err >&5
32313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314  (exit $ac_status); } >/dev/null; then
32315  if test -s conftest.err; then
32316    ac_cpp_err=$ac_c_preproc_warn_flag
32317    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32318  else
32319    ac_cpp_err=
32320  fi
32321else
32322  ac_cpp_err=yes
32323fi
32324if test -z "$ac_cpp_err"; then
32325  ac_header_preproc=yes
32326else
32327  echo "$as_me: failed program was:" >&5
32328sed 's/^/| /' conftest.$ac_ext >&5
32329
32330  ac_header_preproc=no
32331fi
32332rm -f conftest.err conftest.$ac_ext
32333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32334echo "${ECHO_T}$ac_header_preproc" >&6
32335
32336# So?  What about this header?
32337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32338  yes:no: )
32339    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32340echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32341    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32342echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32343    ac_header_preproc=yes
32344    ;;
32345  no:yes:* )
32346    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32347echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32348    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32349echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32350    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32351echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32352    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32353echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32354    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32356    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32357echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32358    (
32359      cat <<\_ASBOX
32360## ------------------------------------------ ##
32361## Report this to the AC_PACKAGE_NAME lists.  ##
32362## ------------------------------------------ ##
32363_ASBOX
32364    ) |
32365      sed "s/^/$as_me: WARNING:     /" >&2
32366    ;;
32367esac
32368echo "$as_me:$LINENO: checking for $ac_header" >&5
32369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32370if eval "test \"\${$as_ac_Header+set}\" = set"; then
32371  echo $ECHO_N "(cached) $ECHO_C" >&6
32372else
32373  eval "$as_ac_Header=\$ac_header_preproc"
32374fi
32375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32377
32378fi
32379if test `eval echo '${'$as_ac_Header'}'` = yes; then
32380  cat >>confdefs.h <<_ACEOF
32381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32382_ACEOF
32383
32384fi
32385
32386done
32387
32388echo "$as_me:$LINENO: checking for setlocale declaration" >&5
32389echo $ECHO_N "checking for setlocale declaration... $ECHO_C" >&6
32390if test "${gt_cv_proto_setlocale+set}" = set; then
32391  echo $ECHO_N "(cached) $ECHO_C" >&6
32392else
32393
32394cat >conftest.$ac_ext <<_ACEOF
32395/* confdefs.h.  */
32396_ACEOF
32397cat confdefs.h >>conftest.$ac_ext
32398cat >>conftest.$ac_ext <<_ACEOF
32399/* end confdefs.h.  */
32400
32401#include <stdlib.h>
32402#include <locale.h>
32403extern
32404#ifdef __cplusplus
32405"C"
32406#endif
32407#if defined(__STDC__) || defined(__cplusplus)
32408char *setlocale (int category, char *locale);
32409#else
32410char *setlocale();
32411#endif
32412
32413int
32414main ()
32415{
32416
32417  ;
32418  return 0;
32419}
32420_ACEOF
32421rm -f conftest.$ac_objext
32422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32423  (eval $ac_compile) 2>conftest.er1
32424  ac_status=$?
32425  grep -v '^ *+' conftest.er1 >conftest.err
32426  rm -f conftest.er1
32427  cat conftest.err >&5
32428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429  (exit $ac_status); } &&
32430	 { ac_try='test -z "$ac_c_werror_flag"
32431			 || test ! -s conftest.err'
32432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433  (eval $ac_try) 2>&5
32434  ac_status=$?
32435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436  (exit $ac_status); }; } &&
32437	 { ac_try='test -s conftest.$ac_objext'
32438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439  (eval $ac_try) 2>&5
32440  ac_status=$?
32441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442  (exit $ac_status); }; }; then
32443  gt_cv_proto_setlocale_arg1=""
32444else
32445  echo "$as_me: failed program was:" >&5
32446sed 's/^/| /' conftest.$ac_ext >&5
32447
32448gt_cv_proto_setlocale_arg1="const"
32449fi
32450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32451gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"
32452fi
32453
32454gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
32455echo "$as_me:$LINENO: result: ${ac_t:-
32456         }$gt_cv_proto_setlocale" >&5
32457echo "${ECHO_T}${ac_t:-
32458         }$gt_cv_proto_setlocale" >&6
32459
32460cat >>confdefs.h <<_ACEOF
32461#define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1
32462_ACEOF
32463
32464
32465
32466
32467for ac_header in stdint.h
32468do
32469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32470if eval "test \"\${$as_ac_Header+set}\" = set"; then
32471  echo "$as_me:$LINENO: checking for $ac_header" >&5
32472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32473if eval "test \"\${$as_ac_Header+set}\" = set"; then
32474  echo $ECHO_N "(cached) $ECHO_C" >&6
32475fi
32476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32478else
32479  # Is the header compilable?
32480echo "$as_me:$LINENO: checking $ac_header usability" >&5
32481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32482cat >conftest.$ac_ext <<_ACEOF
32483/* confdefs.h.  */
32484_ACEOF
32485cat confdefs.h >>conftest.$ac_ext
32486cat >>conftest.$ac_ext <<_ACEOF
32487/* end confdefs.h.  */
32488$ac_includes_default
32489#include <$ac_header>
32490_ACEOF
32491rm -f conftest.$ac_objext
32492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32493  (eval $ac_compile) 2>conftest.er1
32494  ac_status=$?
32495  grep -v '^ *+' conftest.er1 >conftest.err
32496  rm -f conftest.er1
32497  cat conftest.err >&5
32498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499  (exit $ac_status); } &&
32500	 { ac_try='test -z "$ac_c_werror_flag"
32501			 || test ! -s conftest.err'
32502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32503  (eval $ac_try) 2>&5
32504  ac_status=$?
32505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506  (exit $ac_status); }; } &&
32507	 { ac_try='test -s conftest.$ac_objext'
32508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509  (eval $ac_try) 2>&5
32510  ac_status=$?
32511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512  (exit $ac_status); }; }; then
32513  ac_header_compiler=yes
32514else
32515  echo "$as_me: failed program was:" >&5
32516sed 's/^/| /' conftest.$ac_ext >&5
32517
32518ac_header_compiler=no
32519fi
32520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32522echo "${ECHO_T}$ac_header_compiler" >&6
32523
32524# Is the header present?
32525echo "$as_me:$LINENO: checking $ac_header presence" >&5
32526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32527cat >conftest.$ac_ext <<_ACEOF
32528/* confdefs.h.  */
32529_ACEOF
32530cat confdefs.h >>conftest.$ac_ext
32531cat >>conftest.$ac_ext <<_ACEOF
32532/* end confdefs.h.  */
32533#include <$ac_header>
32534_ACEOF
32535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32536  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32537  ac_status=$?
32538  grep -v '^ *+' conftest.er1 >conftest.err
32539  rm -f conftest.er1
32540  cat conftest.err >&5
32541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542  (exit $ac_status); } >/dev/null; then
32543  if test -s conftest.err; then
32544    ac_cpp_err=$ac_c_preproc_warn_flag
32545    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32546  else
32547    ac_cpp_err=
32548  fi
32549else
32550  ac_cpp_err=yes
32551fi
32552if test -z "$ac_cpp_err"; then
32553  ac_header_preproc=yes
32554else
32555  echo "$as_me: failed program was:" >&5
32556sed 's/^/| /' conftest.$ac_ext >&5
32557
32558  ac_header_preproc=no
32559fi
32560rm -f conftest.err conftest.$ac_ext
32561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32562echo "${ECHO_T}$ac_header_preproc" >&6
32563
32564# So?  What about this header?
32565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32566  yes:no: )
32567    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32569    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32571    ac_header_preproc=yes
32572    ;;
32573  no:yes:* )
32574    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32576    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32577echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32578    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32580    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32581echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32582    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32584    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32586    (
32587      cat <<\_ASBOX
32588## ------------------------------------------ ##
32589## Report this to the AC_PACKAGE_NAME lists.  ##
32590## ------------------------------------------ ##
32591_ASBOX
32592    ) |
32593      sed "s/^/$as_me: WARNING:     /" >&2
32594    ;;
32595esac
32596echo "$as_me:$LINENO: checking for $ac_header" >&5
32597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32598if eval "test \"\${$as_ac_Header+set}\" = set"; then
32599  echo $ECHO_N "(cached) $ECHO_C" >&6
32600else
32601  eval "$as_ac_Header=\$ac_header_preproc"
32602fi
32603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32605
32606fi
32607if test `eval echo '${'$as_ac_Header'}'` = yes; then
32608  cat >>confdefs.h <<_ACEOF
32609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32610_ACEOF
32611
32612fi
32613
32614done
32615
32616    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
32617echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
32618  result=
32619  cat >conftest.$ac_ext <<_ACEOF
32620/* confdefs.h.  */
32621_ACEOF
32622cat confdefs.h >>conftest.$ac_ext
32623cat >>conftest.$ac_ext <<_ACEOF
32624/* end confdefs.h.  */
32625
32626#include <limits.h>
32627#if HAVE_STDINT_H
32628#include <stdint.h>
32629#endif
32630#ifdef SIZE_MAX
32631Found it
32632#endif
32633
32634_ACEOF
32635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32636  $EGREP "Found it" >/dev/null 2>&1; then
32637  result=yes
32638fi
32639rm -f conftest*
32640
32641  if test -z "$result"; then
32642                    if test "$cross_compiling" = yes; then
32643  # Depending upon the size, compute the lo and hi bounds.
32644cat >conftest.$ac_ext <<_ACEOF
32645/* confdefs.h.  */
32646_ACEOF
32647cat confdefs.h >>conftest.$ac_ext
32648cat >>conftest.$ac_ext <<_ACEOF
32649/* end confdefs.h.  */
32650#include <stddef.h>
32651int
32652main ()
32653{
32654static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
32655test_array [0] = 0
32656
32657  ;
32658  return 0;
32659}
32660_ACEOF
32661rm -f conftest.$ac_objext
32662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32663  (eval $ac_compile) 2>conftest.er1
32664  ac_status=$?
32665  grep -v '^ *+' conftest.er1 >conftest.err
32666  rm -f conftest.er1
32667  cat conftest.err >&5
32668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669  (exit $ac_status); } &&
32670	 { ac_try='test -z "$ac_c_werror_flag"
32671			 || test ! -s conftest.err'
32672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32673  (eval $ac_try) 2>&5
32674  ac_status=$?
32675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676  (exit $ac_status); }; } &&
32677	 { ac_try='test -s conftest.$ac_objext'
32678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32679  (eval $ac_try) 2>&5
32680  ac_status=$?
32681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682  (exit $ac_status); }; }; then
32683  ac_lo=0 ac_mid=0
32684  while :; do
32685    cat >conftest.$ac_ext <<_ACEOF
32686/* confdefs.h.  */
32687_ACEOF
32688cat confdefs.h >>conftest.$ac_ext
32689cat >>conftest.$ac_ext <<_ACEOF
32690/* end confdefs.h.  */
32691#include <stddef.h>
32692int
32693main ()
32694{
32695static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
32696test_array [0] = 0
32697
32698  ;
32699  return 0;
32700}
32701_ACEOF
32702rm -f conftest.$ac_objext
32703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32704  (eval $ac_compile) 2>conftest.er1
32705  ac_status=$?
32706  grep -v '^ *+' conftest.er1 >conftest.err
32707  rm -f conftest.er1
32708  cat conftest.err >&5
32709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710  (exit $ac_status); } &&
32711	 { ac_try='test -z "$ac_c_werror_flag"
32712			 || test ! -s conftest.err'
32713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714  (eval $ac_try) 2>&5
32715  ac_status=$?
32716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717  (exit $ac_status); }; } &&
32718	 { ac_try='test -s conftest.$ac_objext'
32719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720  (eval $ac_try) 2>&5
32721  ac_status=$?
32722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723  (exit $ac_status); }; }; then
32724  ac_hi=$ac_mid; break
32725else
32726  echo "$as_me: failed program was:" >&5
32727sed 's/^/| /' conftest.$ac_ext >&5
32728
32729ac_lo=`expr $ac_mid + 1`
32730		    if test $ac_lo -le $ac_mid; then
32731		      ac_lo= ac_hi=
32732		      break
32733		    fi
32734		    ac_mid=`expr 2 '*' $ac_mid + 1`
32735fi
32736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32737  done
32738else
32739  echo "$as_me: failed program was:" >&5
32740sed 's/^/| /' conftest.$ac_ext >&5
32741
32742cat >conftest.$ac_ext <<_ACEOF
32743/* confdefs.h.  */
32744_ACEOF
32745cat confdefs.h >>conftest.$ac_ext
32746cat >>conftest.$ac_ext <<_ACEOF
32747/* end confdefs.h.  */
32748#include <stddef.h>
32749int
32750main ()
32751{
32752static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
32753test_array [0] = 0
32754
32755  ;
32756  return 0;
32757}
32758_ACEOF
32759rm -f conftest.$ac_objext
32760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32761  (eval $ac_compile) 2>conftest.er1
32762  ac_status=$?
32763  grep -v '^ *+' conftest.er1 >conftest.err
32764  rm -f conftest.er1
32765  cat conftest.err >&5
32766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767  (exit $ac_status); } &&
32768	 { ac_try='test -z "$ac_c_werror_flag"
32769			 || test ! -s conftest.err'
32770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771  (eval $ac_try) 2>&5
32772  ac_status=$?
32773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774  (exit $ac_status); }; } &&
32775	 { ac_try='test -s conftest.$ac_objext'
32776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777  (eval $ac_try) 2>&5
32778  ac_status=$?
32779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780  (exit $ac_status); }; }; then
32781  ac_hi=-1 ac_mid=-1
32782  while :; do
32783    cat >conftest.$ac_ext <<_ACEOF
32784/* confdefs.h.  */
32785_ACEOF
32786cat confdefs.h >>conftest.$ac_ext
32787cat >>conftest.$ac_ext <<_ACEOF
32788/* end confdefs.h.  */
32789#include <stddef.h>
32790int
32791main ()
32792{
32793static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
32794test_array [0] = 0
32795
32796  ;
32797  return 0;
32798}
32799_ACEOF
32800rm -f conftest.$ac_objext
32801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32802  (eval $ac_compile) 2>conftest.er1
32803  ac_status=$?
32804  grep -v '^ *+' conftest.er1 >conftest.err
32805  rm -f conftest.er1
32806  cat conftest.err >&5
32807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808  (exit $ac_status); } &&
32809	 { ac_try='test -z "$ac_c_werror_flag"
32810			 || test ! -s conftest.err'
32811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32812  (eval $ac_try) 2>&5
32813  ac_status=$?
32814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815  (exit $ac_status); }; } &&
32816	 { ac_try='test -s conftest.$ac_objext'
32817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32818  (eval $ac_try) 2>&5
32819  ac_status=$?
32820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821  (exit $ac_status); }; }; then
32822  ac_lo=$ac_mid; break
32823else
32824  echo "$as_me: failed program was:" >&5
32825sed 's/^/| /' conftest.$ac_ext >&5
32826
32827ac_hi=`expr '(' $ac_mid ')' - 1`
32828		       if test $ac_mid -le $ac_hi; then
32829			 ac_lo= ac_hi=
32830			 break
32831		       fi
32832		       ac_mid=`expr 2 '*' $ac_mid`
32833fi
32834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32835  done
32836else
32837  echo "$as_me: failed program was:" >&5
32838sed 's/^/| /' conftest.$ac_ext >&5
32839
32840ac_lo= ac_hi=
32841fi
32842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32843fi
32844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32845# Binary search between lo and hi bounds.
32846while test "x$ac_lo" != "x$ac_hi"; do
32847  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32848  cat >conftest.$ac_ext <<_ACEOF
32849/* confdefs.h.  */
32850_ACEOF
32851cat confdefs.h >>conftest.$ac_ext
32852cat >>conftest.$ac_ext <<_ACEOF
32853/* end confdefs.h.  */
32854#include <stddef.h>
32855int
32856main ()
32857{
32858static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
32859test_array [0] = 0
32860
32861  ;
32862  return 0;
32863}
32864_ACEOF
32865rm -f conftest.$ac_objext
32866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32867  (eval $ac_compile) 2>conftest.er1
32868  ac_status=$?
32869  grep -v '^ *+' conftest.er1 >conftest.err
32870  rm -f conftest.er1
32871  cat conftest.err >&5
32872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873  (exit $ac_status); } &&
32874	 { ac_try='test -z "$ac_c_werror_flag"
32875			 || test ! -s conftest.err'
32876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32877  (eval $ac_try) 2>&5
32878  ac_status=$?
32879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880  (exit $ac_status); }; } &&
32881	 { ac_try='test -s conftest.$ac_objext'
32882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32883  (eval $ac_try) 2>&5
32884  ac_status=$?
32885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886  (exit $ac_status); }; }; then
32887  ac_hi=$ac_mid
32888else
32889  echo "$as_me: failed program was:" >&5
32890sed 's/^/| /' conftest.$ac_ext >&5
32891
32892ac_lo=`expr '(' $ac_mid ')' + 1`
32893fi
32894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32895done
32896case $ac_lo in
32897?*) res_hi=$ac_lo;;
32898'') result=? ;;
32899esac
32900else
32901  if test "$cross_compiling" = yes; then
32902  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32903See \`config.log' for more details." >&5
32904echo "$as_me: error: cannot run test program while cross compiling
32905See \`config.log' for more details." >&2;}
32906   { (exit 1); exit 1; }; }
32907else
32908  cat >conftest.$ac_ext <<_ACEOF
32909/* confdefs.h.  */
32910_ACEOF
32911cat confdefs.h >>conftest.$ac_ext
32912cat >>conftest.$ac_ext <<_ACEOF
32913/* end confdefs.h.  */
32914#include <stddef.h>
32915long longval () { return ~(size_t)0 / 10; }
32916unsigned long ulongval () { return ~(size_t)0 / 10; }
32917#include <stdio.h>
32918#include <stdlib.h>
32919int
32920main ()
32921{
32922
32923  FILE *f = fopen ("conftest.val", "w");
32924  if (! f)
32925    exit (1);
32926  if ((~(size_t)0 / 10) < 0)
32927    {
32928      long i = longval ();
32929      if (i != (~(size_t)0 / 10))
32930	exit (1);
32931      fprintf (f, "%ld\n", i);
32932    }
32933  else
32934    {
32935      unsigned long i = ulongval ();
32936      if (i != (~(size_t)0 / 10))
32937	exit (1);
32938      fprintf (f, "%lu\n", i);
32939    }
32940  exit (ferror (f) || fclose (f) != 0);
32941
32942  ;
32943  return 0;
32944}
32945_ACEOF
32946rm -f conftest$ac_exeext
32947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32948  (eval $ac_link) 2>&5
32949  ac_status=$?
32950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953  (eval $ac_try) 2>&5
32954  ac_status=$?
32955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956  (exit $ac_status); }; }; then
32957  res_hi=`cat conftest.val`
32958else
32959  echo "$as_me: program exited with status $ac_status" >&5
32960echo "$as_me: failed program was:" >&5
32961sed 's/^/| /' conftest.$ac_ext >&5
32962
32963( exit $ac_status )
32964result=?
32965fi
32966rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32967fi
32968fi
32969rm -f conftest.val
32970    if test "$cross_compiling" = yes; then
32971  # Depending upon the size, compute the lo and hi bounds.
32972cat >conftest.$ac_ext <<_ACEOF
32973/* confdefs.h.  */
32974_ACEOF
32975cat confdefs.h >>conftest.$ac_ext
32976cat >>conftest.$ac_ext <<_ACEOF
32977/* end confdefs.h.  */
32978#include <stddef.h>
32979int
32980main ()
32981{
32982static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
32983test_array [0] = 0
32984
32985  ;
32986  return 0;
32987}
32988_ACEOF
32989rm -f conftest.$ac_objext
32990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32991  (eval $ac_compile) 2>conftest.er1
32992  ac_status=$?
32993  grep -v '^ *+' conftest.er1 >conftest.err
32994  rm -f conftest.er1
32995  cat conftest.err >&5
32996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997  (exit $ac_status); } &&
32998	 { ac_try='test -z "$ac_c_werror_flag"
32999			 || test ! -s conftest.err'
33000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33001  (eval $ac_try) 2>&5
33002  ac_status=$?
33003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004  (exit $ac_status); }; } &&
33005	 { ac_try='test -s conftest.$ac_objext'
33006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007  (eval $ac_try) 2>&5
33008  ac_status=$?
33009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010  (exit $ac_status); }; }; then
33011  ac_lo=0 ac_mid=0
33012  while :; do
33013    cat >conftest.$ac_ext <<_ACEOF
33014/* confdefs.h.  */
33015_ACEOF
33016cat confdefs.h >>conftest.$ac_ext
33017cat >>conftest.$ac_ext <<_ACEOF
33018/* end confdefs.h.  */
33019#include <stddef.h>
33020int
33021main ()
33022{
33023static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
33024test_array [0] = 0
33025
33026  ;
33027  return 0;
33028}
33029_ACEOF
33030rm -f conftest.$ac_objext
33031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33032  (eval $ac_compile) 2>conftest.er1
33033  ac_status=$?
33034  grep -v '^ *+' conftest.er1 >conftest.err
33035  rm -f conftest.er1
33036  cat conftest.err >&5
33037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038  (exit $ac_status); } &&
33039	 { ac_try='test -z "$ac_c_werror_flag"
33040			 || test ! -s conftest.err'
33041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33042  (eval $ac_try) 2>&5
33043  ac_status=$?
33044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045  (exit $ac_status); }; } &&
33046	 { ac_try='test -s conftest.$ac_objext'
33047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048  (eval $ac_try) 2>&5
33049  ac_status=$?
33050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051  (exit $ac_status); }; }; then
33052  ac_hi=$ac_mid; break
33053else
33054  echo "$as_me: failed program was:" >&5
33055sed 's/^/| /' conftest.$ac_ext >&5
33056
33057ac_lo=`expr $ac_mid + 1`
33058		    if test $ac_lo -le $ac_mid; then
33059		      ac_lo= ac_hi=
33060		      break
33061		    fi
33062		    ac_mid=`expr 2 '*' $ac_mid + 1`
33063fi
33064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33065  done
33066else
33067  echo "$as_me: failed program was:" >&5
33068sed 's/^/| /' conftest.$ac_ext >&5
33069
33070cat >conftest.$ac_ext <<_ACEOF
33071/* confdefs.h.  */
33072_ACEOF
33073cat confdefs.h >>conftest.$ac_ext
33074cat >>conftest.$ac_ext <<_ACEOF
33075/* end confdefs.h.  */
33076#include <stddef.h>
33077int
33078main ()
33079{
33080static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
33081test_array [0] = 0
33082
33083  ;
33084  return 0;
33085}
33086_ACEOF
33087rm -f conftest.$ac_objext
33088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33089  (eval $ac_compile) 2>conftest.er1
33090  ac_status=$?
33091  grep -v '^ *+' conftest.er1 >conftest.err
33092  rm -f conftest.er1
33093  cat conftest.err >&5
33094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095  (exit $ac_status); } &&
33096	 { ac_try='test -z "$ac_c_werror_flag"
33097			 || test ! -s conftest.err'
33098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33099  (eval $ac_try) 2>&5
33100  ac_status=$?
33101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102  (exit $ac_status); }; } &&
33103	 { ac_try='test -s conftest.$ac_objext'
33104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105  (eval $ac_try) 2>&5
33106  ac_status=$?
33107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108  (exit $ac_status); }; }; then
33109  ac_hi=-1 ac_mid=-1
33110  while :; do
33111    cat >conftest.$ac_ext <<_ACEOF
33112/* confdefs.h.  */
33113_ACEOF
33114cat confdefs.h >>conftest.$ac_ext
33115cat >>conftest.$ac_ext <<_ACEOF
33116/* end confdefs.h.  */
33117#include <stddef.h>
33118int
33119main ()
33120{
33121static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
33122test_array [0] = 0
33123
33124  ;
33125  return 0;
33126}
33127_ACEOF
33128rm -f conftest.$ac_objext
33129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33130  (eval $ac_compile) 2>conftest.er1
33131  ac_status=$?
33132  grep -v '^ *+' conftest.er1 >conftest.err
33133  rm -f conftest.er1
33134  cat conftest.err >&5
33135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136  (exit $ac_status); } &&
33137	 { ac_try='test -z "$ac_c_werror_flag"
33138			 || test ! -s conftest.err'
33139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33140  (eval $ac_try) 2>&5
33141  ac_status=$?
33142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143  (exit $ac_status); }; } &&
33144	 { ac_try='test -s conftest.$ac_objext'
33145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33146  (eval $ac_try) 2>&5
33147  ac_status=$?
33148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149  (exit $ac_status); }; }; then
33150  ac_lo=$ac_mid; break
33151else
33152  echo "$as_me: failed program was:" >&5
33153sed 's/^/| /' conftest.$ac_ext >&5
33154
33155ac_hi=`expr '(' $ac_mid ')' - 1`
33156		       if test $ac_mid -le $ac_hi; then
33157			 ac_lo= ac_hi=
33158			 break
33159		       fi
33160		       ac_mid=`expr 2 '*' $ac_mid`
33161fi
33162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33163  done
33164else
33165  echo "$as_me: failed program was:" >&5
33166sed 's/^/| /' conftest.$ac_ext >&5
33167
33168ac_lo= ac_hi=
33169fi
33170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33171fi
33172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33173# Binary search between lo and hi bounds.
33174while test "x$ac_lo" != "x$ac_hi"; do
33175  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33176  cat >conftest.$ac_ext <<_ACEOF
33177/* confdefs.h.  */
33178_ACEOF
33179cat confdefs.h >>conftest.$ac_ext
33180cat >>conftest.$ac_ext <<_ACEOF
33181/* end confdefs.h.  */
33182#include <stddef.h>
33183int
33184main ()
33185{
33186static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
33187test_array [0] = 0
33188
33189  ;
33190  return 0;
33191}
33192_ACEOF
33193rm -f conftest.$ac_objext
33194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33195  (eval $ac_compile) 2>conftest.er1
33196  ac_status=$?
33197  grep -v '^ *+' conftest.er1 >conftest.err
33198  rm -f conftest.er1
33199  cat conftest.err >&5
33200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201  (exit $ac_status); } &&
33202	 { ac_try='test -z "$ac_c_werror_flag"
33203			 || test ! -s conftest.err'
33204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33205  (eval $ac_try) 2>&5
33206  ac_status=$?
33207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208  (exit $ac_status); }; } &&
33209	 { ac_try='test -s conftest.$ac_objext'
33210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33211  (eval $ac_try) 2>&5
33212  ac_status=$?
33213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214  (exit $ac_status); }; }; then
33215  ac_hi=$ac_mid
33216else
33217  echo "$as_me: failed program was:" >&5
33218sed 's/^/| /' conftest.$ac_ext >&5
33219
33220ac_lo=`expr '(' $ac_mid ')' + 1`
33221fi
33222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33223done
33224case $ac_lo in
33225?*) res_lo=$ac_lo;;
33226'') result=? ;;
33227esac
33228else
33229  if test "$cross_compiling" = yes; then
33230  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33231See \`config.log' for more details." >&5
33232echo "$as_me: error: cannot run test program while cross compiling
33233See \`config.log' for more details." >&2;}
33234   { (exit 1); exit 1; }; }
33235else
33236  cat >conftest.$ac_ext <<_ACEOF
33237/* confdefs.h.  */
33238_ACEOF
33239cat confdefs.h >>conftest.$ac_ext
33240cat >>conftest.$ac_ext <<_ACEOF
33241/* end confdefs.h.  */
33242#include <stddef.h>
33243long longval () { return ~(size_t)0 % 10; }
33244unsigned long ulongval () { return ~(size_t)0 % 10; }
33245#include <stdio.h>
33246#include <stdlib.h>
33247int
33248main ()
33249{
33250
33251  FILE *f = fopen ("conftest.val", "w");
33252  if (! f)
33253    exit (1);
33254  if ((~(size_t)0 % 10) < 0)
33255    {
33256      long i = longval ();
33257      if (i != (~(size_t)0 % 10))
33258	exit (1);
33259      fprintf (f, "%ld\n", i);
33260    }
33261  else
33262    {
33263      unsigned long i = ulongval ();
33264      if (i != (~(size_t)0 % 10))
33265	exit (1);
33266      fprintf (f, "%lu\n", i);
33267    }
33268  exit (ferror (f) || fclose (f) != 0);
33269
33270  ;
33271  return 0;
33272}
33273_ACEOF
33274rm -f conftest$ac_exeext
33275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33276  (eval $ac_link) 2>&5
33277  ac_status=$?
33278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33281  (eval $ac_try) 2>&5
33282  ac_status=$?
33283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284  (exit $ac_status); }; }; then
33285  res_lo=`cat conftest.val`
33286else
33287  echo "$as_me: program exited with status $ac_status" >&5
33288echo "$as_me: failed program was:" >&5
33289sed 's/^/| /' conftest.$ac_ext >&5
33290
33291( exit $ac_status )
33292result=?
33293fi
33294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33295fi
33296fi
33297rm -f conftest.val
33298    if test "$cross_compiling" = yes; then
33299  # Depending upon the size, compute the lo and hi bounds.
33300cat >conftest.$ac_ext <<_ACEOF
33301/* confdefs.h.  */
33302_ACEOF
33303cat confdefs.h >>conftest.$ac_ext
33304cat >>conftest.$ac_ext <<_ACEOF
33305/* end confdefs.h.  */
33306#include <stddef.h>
33307int
33308main ()
33309{
33310static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
33311test_array [0] = 0
33312
33313  ;
33314  return 0;
33315}
33316_ACEOF
33317rm -f conftest.$ac_objext
33318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33319  (eval $ac_compile) 2>conftest.er1
33320  ac_status=$?
33321  grep -v '^ *+' conftest.er1 >conftest.err
33322  rm -f conftest.er1
33323  cat conftest.err >&5
33324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325  (exit $ac_status); } &&
33326	 { ac_try='test -z "$ac_c_werror_flag"
33327			 || test ! -s conftest.err'
33328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329  (eval $ac_try) 2>&5
33330  ac_status=$?
33331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332  (exit $ac_status); }; } &&
33333	 { ac_try='test -s conftest.$ac_objext'
33334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335  (eval $ac_try) 2>&5
33336  ac_status=$?
33337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338  (exit $ac_status); }; }; then
33339  ac_lo=0 ac_mid=0
33340  while :; do
33341    cat >conftest.$ac_ext <<_ACEOF
33342/* confdefs.h.  */
33343_ACEOF
33344cat confdefs.h >>conftest.$ac_ext
33345cat >>conftest.$ac_ext <<_ACEOF
33346/* end confdefs.h.  */
33347#include <stddef.h>
33348int
33349main ()
33350{
33351static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
33352test_array [0] = 0
33353
33354  ;
33355  return 0;
33356}
33357_ACEOF
33358rm -f conftest.$ac_objext
33359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33360  (eval $ac_compile) 2>conftest.er1
33361  ac_status=$?
33362  grep -v '^ *+' conftest.er1 >conftest.err
33363  rm -f conftest.er1
33364  cat conftest.err >&5
33365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366  (exit $ac_status); } &&
33367	 { ac_try='test -z "$ac_c_werror_flag"
33368			 || test ! -s conftest.err'
33369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33370  (eval $ac_try) 2>&5
33371  ac_status=$?
33372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373  (exit $ac_status); }; } &&
33374	 { ac_try='test -s conftest.$ac_objext'
33375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33376  (eval $ac_try) 2>&5
33377  ac_status=$?
33378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379  (exit $ac_status); }; }; then
33380  ac_hi=$ac_mid; break
33381else
33382  echo "$as_me: failed program was:" >&5
33383sed 's/^/| /' conftest.$ac_ext >&5
33384
33385ac_lo=`expr $ac_mid + 1`
33386		    if test $ac_lo -le $ac_mid; then
33387		      ac_lo= ac_hi=
33388		      break
33389		    fi
33390		    ac_mid=`expr 2 '*' $ac_mid + 1`
33391fi
33392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33393  done
33394else
33395  echo "$as_me: failed program was:" >&5
33396sed 's/^/| /' conftest.$ac_ext >&5
33397
33398cat >conftest.$ac_ext <<_ACEOF
33399/* confdefs.h.  */
33400_ACEOF
33401cat confdefs.h >>conftest.$ac_ext
33402cat >>conftest.$ac_ext <<_ACEOF
33403/* end confdefs.h.  */
33404#include <stddef.h>
33405int
33406main ()
33407{
33408static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
33409test_array [0] = 0
33410
33411  ;
33412  return 0;
33413}
33414_ACEOF
33415rm -f conftest.$ac_objext
33416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33417  (eval $ac_compile) 2>conftest.er1
33418  ac_status=$?
33419  grep -v '^ *+' conftest.er1 >conftest.err
33420  rm -f conftest.er1
33421  cat conftest.err >&5
33422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423  (exit $ac_status); } &&
33424	 { ac_try='test -z "$ac_c_werror_flag"
33425			 || test ! -s conftest.err'
33426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33427  (eval $ac_try) 2>&5
33428  ac_status=$?
33429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430  (exit $ac_status); }; } &&
33431	 { ac_try='test -s conftest.$ac_objext'
33432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33433  (eval $ac_try) 2>&5
33434  ac_status=$?
33435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436  (exit $ac_status); }; }; then
33437  ac_hi=-1 ac_mid=-1
33438  while :; do
33439    cat >conftest.$ac_ext <<_ACEOF
33440/* confdefs.h.  */
33441_ACEOF
33442cat confdefs.h >>conftest.$ac_ext
33443cat >>conftest.$ac_ext <<_ACEOF
33444/* end confdefs.h.  */
33445#include <stddef.h>
33446int
33447main ()
33448{
33449static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
33450test_array [0] = 0
33451
33452  ;
33453  return 0;
33454}
33455_ACEOF
33456rm -f conftest.$ac_objext
33457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33458  (eval $ac_compile) 2>conftest.er1
33459  ac_status=$?
33460  grep -v '^ *+' conftest.er1 >conftest.err
33461  rm -f conftest.er1
33462  cat conftest.err >&5
33463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464  (exit $ac_status); } &&
33465	 { ac_try='test -z "$ac_c_werror_flag"
33466			 || test ! -s conftest.err'
33467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33468  (eval $ac_try) 2>&5
33469  ac_status=$?
33470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471  (exit $ac_status); }; } &&
33472	 { ac_try='test -s conftest.$ac_objext'
33473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474  (eval $ac_try) 2>&5
33475  ac_status=$?
33476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477  (exit $ac_status); }; }; then
33478  ac_lo=$ac_mid; break
33479else
33480  echo "$as_me: failed program was:" >&5
33481sed 's/^/| /' conftest.$ac_ext >&5
33482
33483ac_hi=`expr '(' $ac_mid ')' - 1`
33484		       if test $ac_mid -le $ac_hi; then
33485			 ac_lo= ac_hi=
33486			 break
33487		       fi
33488		       ac_mid=`expr 2 '*' $ac_mid`
33489fi
33490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33491  done
33492else
33493  echo "$as_me: failed program was:" >&5
33494sed 's/^/| /' conftest.$ac_ext >&5
33495
33496ac_lo= ac_hi=
33497fi
33498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33499fi
33500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33501# Binary search between lo and hi bounds.
33502while test "x$ac_lo" != "x$ac_hi"; do
33503  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33504  cat >conftest.$ac_ext <<_ACEOF
33505/* confdefs.h.  */
33506_ACEOF
33507cat confdefs.h >>conftest.$ac_ext
33508cat >>conftest.$ac_ext <<_ACEOF
33509/* end confdefs.h.  */
33510#include <stddef.h>
33511int
33512main ()
33513{
33514static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
33515test_array [0] = 0
33516
33517  ;
33518  return 0;
33519}
33520_ACEOF
33521rm -f conftest.$ac_objext
33522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33523  (eval $ac_compile) 2>conftest.er1
33524  ac_status=$?
33525  grep -v '^ *+' conftest.er1 >conftest.err
33526  rm -f conftest.er1
33527  cat conftest.err >&5
33528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529  (exit $ac_status); } &&
33530	 { ac_try='test -z "$ac_c_werror_flag"
33531			 || test ! -s conftest.err'
33532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33533  (eval $ac_try) 2>&5
33534  ac_status=$?
33535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536  (exit $ac_status); }; } &&
33537	 { ac_try='test -s conftest.$ac_objext'
33538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539  (eval $ac_try) 2>&5
33540  ac_status=$?
33541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542  (exit $ac_status); }; }; then
33543  ac_hi=$ac_mid
33544else
33545  echo "$as_me: failed program was:" >&5
33546sed 's/^/| /' conftest.$ac_ext >&5
33547
33548ac_lo=`expr '(' $ac_mid ')' + 1`
33549fi
33550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33551done
33552case $ac_lo in
33553?*) fits_in_uint=$ac_lo;;
33554'') result=? ;;
33555esac
33556else
33557  if test "$cross_compiling" = yes; then
33558  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33559See \`config.log' for more details." >&5
33560echo "$as_me: error: cannot run test program while cross compiling
33561See \`config.log' for more details." >&2;}
33562   { (exit 1); exit 1; }; }
33563else
33564  cat >conftest.$ac_ext <<_ACEOF
33565/* confdefs.h.  */
33566_ACEOF
33567cat confdefs.h >>conftest.$ac_ext
33568cat >>conftest.$ac_ext <<_ACEOF
33569/* end confdefs.h.  */
33570#include <stddef.h>
33571long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
33572unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
33573#include <stdio.h>
33574#include <stdlib.h>
33575int
33576main ()
33577{
33578
33579  FILE *f = fopen ("conftest.val", "w");
33580  if (! f)
33581    exit (1);
33582  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
33583    {
33584      long i = longval ();
33585      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
33586	exit (1);
33587      fprintf (f, "%ld\n", i);
33588    }
33589  else
33590    {
33591      unsigned long i = ulongval ();
33592      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
33593	exit (1);
33594      fprintf (f, "%lu\n", i);
33595    }
33596  exit (ferror (f) || fclose (f) != 0);
33597
33598  ;
33599  return 0;
33600}
33601_ACEOF
33602rm -f conftest$ac_exeext
33603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33604  (eval $ac_link) 2>&5
33605  ac_status=$?
33606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609  (eval $ac_try) 2>&5
33610  ac_status=$?
33611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612  (exit $ac_status); }; }; then
33613  fits_in_uint=`cat conftest.val`
33614else
33615  echo "$as_me: program exited with status $ac_status" >&5
33616echo "$as_me: failed program was:" >&5
33617sed 's/^/| /' conftest.$ac_ext >&5
33618
33619( exit $ac_status )
33620result=?
33621fi
33622rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33623fi
33624fi
33625rm -f conftest.val
33626    if test "$fits_in_uint" = 1; then
33627                  cat >conftest.$ac_ext <<_ACEOF
33628/* confdefs.h.  */
33629_ACEOF
33630cat confdefs.h >>conftest.$ac_ext
33631cat >>conftest.$ac_ext <<_ACEOF
33632/* end confdefs.h.  */
33633#include <stddef.h>
33634        extern size_t foo;
33635        extern unsigned long foo;
33636
33637int
33638main ()
33639{
33640
33641  ;
33642  return 0;
33643}
33644_ACEOF
33645rm -f conftest.$ac_objext
33646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33647  (eval $ac_compile) 2>conftest.er1
33648  ac_status=$?
33649  grep -v '^ *+' conftest.er1 >conftest.err
33650  rm -f conftest.er1
33651  cat conftest.err >&5
33652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653  (exit $ac_status); } &&
33654	 { ac_try='test -z "$ac_c_werror_flag"
33655			 || test ! -s conftest.err'
33656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657  (eval $ac_try) 2>&5
33658  ac_status=$?
33659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660  (exit $ac_status); }; } &&
33661	 { ac_try='test -s conftest.$ac_objext'
33662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663  (eval $ac_try) 2>&5
33664  ac_status=$?
33665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666  (exit $ac_status); }; }; then
33667  fits_in_uint=0
33668else
33669  echo "$as_me: failed program was:" >&5
33670sed 's/^/| /' conftest.$ac_ext >&5
33671
33672fi
33673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33674    fi
33675    if test -z "$result"; then
33676      if test "$fits_in_uint" = 1; then
33677        result="$res_hi$res_lo"U
33678      else
33679        result="$res_hi$res_lo"UL
33680      fi
33681    else
33682            result='~(size_t)0'
33683    fi
33684  fi
33685  echo "$as_me:$LINENO: result: $result" >&5
33686echo "${ECHO_T}$result" >&6
33687  if test "$result" != yes; then
33688
33689cat >>confdefs.h <<_ACEOF
33690#define SIZE_MAX $result
33691_ACEOF
33692
33693  fi
33694
33695
33696
33697
33698
33699for ac_header in stdint.h
33700do
33701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33702if eval "test \"\${$as_ac_Header+set}\" = set"; then
33703  echo "$as_me:$LINENO: checking for $ac_header" >&5
33704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33705if eval "test \"\${$as_ac_Header+set}\" = set"; then
33706  echo $ECHO_N "(cached) $ECHO_C" >&6
33707fi
33708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33710else
33711  # Is the header compilable?
33712echo "$as_me:$LINENO: checking $ac_header usability" >&5
33713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33714cat >conftest.$ac_ext <<_ACEOF
33715/* confdefs.h.  */
33716_ACEOF
33717cat confdefs.h >>conftest.$ac_ext
33718cat >>conftest.$ac_ext <<_ACEOF
33719/* end confdefs.h.  */
33720$ac_includes_default
33721#include <$ac_header>
33722_ACEOF
33723rm -f conftest.$ac_objext
33724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33725  (eval $ac_compile) 2>conftest.er1
33726  ac_status=$?
33727  grep -v '^ *+' conftest.er1 >conftest.err
33728  rm -f conftest.er1
33729  cat conftest.err >&5
33730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731  (exit $ac_status); } &&
33732	 { ac_try='test -z "$ac_c_werror_flag"
33733			 || test ! -s conftest.err'
33734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33735  (eval $ac_try) 2>&5
33736  ac_status=$?
33737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738  (exit $ac_status); }; } &&
33739	 { ac_try='test -s conftest.$ac_objext'
33740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741  (eval $ac_try) 2>&5
33742  ac_status=$?
33743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744  (exit $ac_status); }; }; then
33745  ac_header_compiler=yes
33746else
33747  echo "$as_me: failed program was:" >&5
33748sed 's/^/| /' conftest.$ac_ext >&5
33749
33750ac_header_compiler=no
33751fi
33752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33754echo "${ECHO_T}$ac_header_compiler" >&6
33755
33756# Is the header present?
33757echo "$as_me:$LINENO: checking $ac_header presence" >&5
33758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33759cat >conftest.$ac_ext <<_ACEOF
33760/* confdefs.h.  */
33761_ACEOF
33762cat confdefs.h >>conftest.$ac_ext
33763cat >>conftest.$ac_ext <<_ACEOF
33764/* end confdefs.h.  */
33765#include <$ac_header>
33766_ACEOF
33767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33768  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33769  ac_status=$?
33770  grep -v '^ *+' conftest.er1 >conftest.err
33771  rm -f conftest.er1
33772  cat conftest.err >&5
33773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774  (exit $ac_status); } >/dev/null; then
33775  if test -s conftest.err; then
33776    ac_cpp_err=$ac_c_preproc_warn_flag
33777    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33778  else
33779    ac_cpp_err=
33780  fi
33781else
33782  ac_cpp_err=yes
33783fi
33784if test -z "$ac_cpp_err"; then
33785  ac_header_preproc=yes
33786else
33787  echo "$as_me: failed program was:" >&5
33788sed 's/^/| /' conftest.$ac_ext >&5
33789
33790  ac_header_preproc=no
33791fi
33792rm -f conftest.err conftest.$ac_ext
33793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33794echo "${ECHO_T}$ac_header_preproc" >&6
33795
33796# So?  What about this header?
33797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33798  yes:no: )
33799    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33803    ac_header_preproc=yes
33804    ;;
33805  no:yes:* )
33806    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33808    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33809echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33810    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33812    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33813echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33814    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33816    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33818    (
33819      cat <<\_ASBOX
33820## ------------------------------------------ ##
33821## Report this to the AC_PACKAGE_NAME lists.  ##
33822## ------------------------------------------ ##
33823_ASBOX
33824    ) |
33825      sed "s/^/$as_me: WARNING:     /" >&2
33826    ;;
33827esac
33828echo "$as_me:$LINENO: checking for $ac_header" >&5
33829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33830if eval "test \"\${$as_ac_Header+set}\" = set"; then
33831  echo $ECHO_N "(cached) $ECHO_C" >&6
33832else
33833  eval "$as_ac_Header=\$ac_header_preproc"
33834fi
33835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33837
33838fi
33839if test `eval echo '${'$as_ac_Header'}'` = yes; then
33840  cat >>confdefs.h <<_ACEOF
33841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33842_ACEOF
33843
33844fi
33845
33846done
33847
33848
33849
33850      echo "$as_me:$LINENO: checking whether strdup is declared" >&5
33851echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6
33852if test "${ac_cv_have_decl_strdup+set}" = set; then
33853  echo $ECHO_N "(cached) $ECHO_C" >&6
33854else
33855  cat >conftest.$ac_ext <<_ACEOF
33856/* confdefs.h.  */
33857_ACEOF
33858cat confdefs.h >>conftest.$ac_ext
33859cat >>conftest.$ac_ext <<_ACEOF
33860/* end confdefs.h.  */
33861$ac_includes_default
33862int
33863main ()
33864{
33865#ifndef strdup
33866  char *p = (char *) strdup;
33867#endif
33868
33869  ;
33870  return 0;
33871}
33872_ACEOF
33873rm -f conftest.$ac_objext
33874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33875  (eval $ac_compile) 2>conftest.er1
33876  ac_status=$?
33877  grep -v '^ *+' conftest.er1 >conftest.err
33878  rm -f conftest.er1
33879  cat conftest.err >&5
33880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881  (exit $ac_status); } &&
33882	 { ac_try='test -z "$ac_c_werror_flag"
33883			 || test ! -s conftest.err'
33884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33885  (eval $ac_try) 2>&5
33886  ac_status=$?
33887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888  (exit $ac_status); }; } &&
33889	 { ac_try='test -s conftest.$ac_objext'
33890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33891  (eval $ac_try) 2>&5
33892  ac_status=$?
33893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894  (exit $ac_status); }; }; then
33895  ac_cv_have_decl_strdup=yes
33896else
33897  echo "$as_me: failed program was:" >&5
33898sed 's/^/| /' conftest.$ac_ext >&5
33899
33900ac_cv_have_decl_strdup=no
33901fi
33902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33903fi
33904echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
33905echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6
33906if test $ac_cv_have_decl_strdup = yes; then
33907
33908cat >>confdefs.h <<_ACEOF
33909#define HAVE_DECL_STRDUP 1
33910_ACEOF
33911
33912
33913else
33914  cat >>confdefs.h <<_ACEOF
33915#define HAVE_DECL_STRDUP 0
33916_ACEOF
33917
33918
33919fi
33920
33921
33922
33923echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
33924echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
33925if test "${gl_cv_c_restrict+set}" = set; then
33926  echo $ECHO_N "(cached) $ECHO_C" >&6
33927else
33928  gl_cv_c_restrict=no
33929   # Try the official restrict keyword, then gcc's __restrict, and
33930   # the less common variants.
33931   for ac_kw in restrict __restrict __restrict__ _Restrict; do
33932     cat >conftest.$ac_ext <<_ACEOF
33933/* confdefs.h.  */
33934_ACEOF
33935cat confdefs.h >>conftest.$ac_ext
33936cat >>conftest.$ac_ext <<_ACEOF
33937/* end confdefs.h.  */
33938float * $ac_kw x;
33939_ACEOF
33940rm -f conftest.$ac_objext
33941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33942  (eval $ac_compile) 2>conftest.er1
33943  ac_status=$?
33944  grep -v '^ *+' conftest.er1 >conftest.err
33945  rm -f conftest.er1
33946  cat conftest.err >&5
33947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948  (exit $ac_status); } &&
33949	 { ac_try='test -z "$ac_c_werror_flag"
33950			 || test ! -s conftest.err'
33951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33952  (eval $ac_try) 2>&5
33953  ac_status=$?
33954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955  (exit $ac_status); }; } &&
33956	 { ac_try='test -s conftest.$ac_objext'
33957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33958  (eval $ac_try) 2>&5
33959  ac_status=$?
33960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961  (exit $ac_status); }; }; then
33962  gl_cv_c_restrict=$ac_kw; break
33963else
33964  echo "$as_me: failed program was:" >&5
33965sed 's/^/| /' conftest.$ac_ext >&5
33966
33967fi
33968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33969   done
33970
33971fi
33972echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
33973echo "${ECHO_T}$gl_cv_c_restrict" >&6
33974 case $gl_cv_c_restrict in
33975   restrict) ;;
33976   no)
33977cat >>confdefs.h <<\_ACEOF
33978#define restrict
33979_ACEOF
33980 ;;
33981   *)  cat >>confdefs.h <<_ACEOF
33982#define restrict $gl_cv_c_restrict
33983_ACEOF
33984 ;;
33985 esac
33986
33987
33988
33989for ac_func in mempcpy
33990do
33991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33992echo "$as_me:$LINENO: checking for $ac_func" >&5
33993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33994if eval "test \"\${$as_ac_var+set}\" = set"; then
33995  echo $ECHO_N "(cached) $ECHO_C" >&6
33996else
33997  cat >conftest.$ac_ext <<_ACEOF
33998/* confdefs.h.  */
33999_ACEOF
34000cat confdefs.h >>conftest.$ac_ext
34001cat >>conftest.$ac_ext <<_ACEOF
34002/* end confdefs.h.  */
34003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34004   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34005#define $ac_func innocuous_$ac_func
34006
34007/* System header to define __stub macros and hopefully few prototypes,
34008    which can conflict with char $ac_func (); below.
34009    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34010    <limits.h> exists even on freestanding compilers.  */
34011
34012#ifdef __STDC__
34013# include <limits.h>
34014#else
34015# include <assert.h>
34016#endif
34017
34018#undef $ac_func
34019
34020/* Override any gcc2 internal prototype to avoid an error.  */
34021#ifdef __cplusplus
34022extern "C"
34023{
34024#endif
34025/* We use char because int might match the return type of a gcc2
34026   builtin and then its argument prototype would still apply.  */
34027char $ac_func ();
34028/* The GNU C library defines this for functions which it implements
34029    to always fail with ENOSYS.  Some functions are actually named
34030    something starting with __ and the normal name is an alias.  */
34031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34032choke me
34033#else
34034char (*f) () = $ac_func;
34035#endif
34036#ifdef __cplusplus
34037}
34038#endif
34039
34040int
34041main ()
34042{
34043return f != $ac_func;
34044  ;
34045  return 0;
34046}
34047_ACEOF
34048rm -f conftest.$ac_objext conftest$ac_exeext
34049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34050  (eval $ac_link) 2>conftest.er1
34051  ac_status=$?
34052  grep -v '^ *+' conftest.er1 >conftest.err
34053  rm -f conftest.er1
34054  cat conftest.err >&5
34055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056  (exit $ac_status); } &&
34057	 { ac_try='test -z "$ac_c_werror_flag"
34058			 || test ! -s conftest.err'
34059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34060  (eval $ac_try) 2>&5
34061  ac_status=$?
34062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063  (exit $ac_status); }; } &&
34064	 { ac_try='test -s conftest$ac_exeext'
34065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066  (eval $ac_try) 2>&5
34067  ac_status=$?
34068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069  (exit $ac_status); }; }; then
34070  eval "$as_ac_var=yes"
34071else
34072  echo "$as_me: failed program was:" >&5
34073sed 's/^/| /' conftest.$ac_ext >&5
34074
34075eval "$as_ac_var=no"
34076fi
34077rm -f conftest.err conftest.$ac_objext \
34078      conftest$ac_exeext conftest.$ac_ext
34079fi
34080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34081echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34082if test `eval echo '${'$as_ac_var'}'` = yes; then
34083  cat >>confdefs.h <<_ACEOF
34084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34085_ACEOF
34086
34087fi
34088done
34089
34090
34091
34092
34093
34094
34095
34096  :
34097
34098
34099for ac_func in memchr
34100do
34101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34102echo "$as_me:$LINENO: checking for $ac_func" >&5
34103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34104if eval "test \"\${$as_ac_var+set}\" = set"; then
34105  echo $ECHO_N "(cached) $ECHO_C" >&6
34106else
34107  cat >conftest.$ac_ext <<_ACEOF
34108/* confdefs.h.  */
34109_ACEOF
34110cat confdefs.h >>conftest.$ac_ext
34111cat >>conftest.$ac_ext <<_ACEOF
34112/* end confdefs.h.  */
34113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34114   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34115#define $ac_func innocuous_$ac_func
34116
34117/* System header to define __stub macros and hopefully few prototypes,
34118    which can conflict with char $ac_func (); below.
34119    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34120    <limits.h> exists even on freestanding compilers.  */
34121
34122#ifdef __STDC__
34123# include <limits.h>
34124#else
34125# include <assert.h>
34126#endif
34127
34128#undef $ac_func
34129
34130/* Override any gcc2 internal prototype to avoid an error.  */
34131#ifdef __cplusplus
34132extern "C"
34133{
34134#endif
34135/* We use char because int might match the return type of a gcc2
34136   builtin and then its argument prototype would still apply.  */
34137char $ac_func ();
34138/* The GNU C library defines this for functions which it implements
34139    to always fail with ENOSYS.  Some functions are actually named
34140    something starting with __ and the normal name is an alias.  */
34141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34142choke me
34143#else
34144char (*f) () = $ac_func;
34145#endif
34146#ifdef __cplusplus
34147}
34148#endif
34149
34150int
34151main ()
34152{
34153return f != $ac_func;
34154  ;
34155  return 0;
34156}
34157_ACEOF
34158rm -f conftest.$ac_objext conftest$ac_exeext
34159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34160  (eval $ac_link) 2>conftest.er1
34161  ac_status=$?
34162  grep -v '^ *+' conftest.er1 >conftest.err
34163  rm -f conftest.er1
34164  cat conftest.err >&5
34165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166  (exit $ac_status); } &&
34167	 { ac_try='test -z "$ac_c_werror_flag"
34168			 || test ! -s conftest.err'
34169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34170  (eval $ac_try) 2>&5
34171  ac_status=$?
34172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173  (exit $ac_status); }; } &&
34174	 { ac_try='test -s conftest$ac_exeext'
34175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34176  (eval $ac_try) 2>&5
34177  ac_status=$?
34178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179  (exit $ac_status); }; }; then
34180  eval "$as_ac_var=yes"
34181else
34182  echo "$as_me: failed program was:" >&5
34183sed 's/^/| /' conftest.$ac_ext >&5
34184
34185eval "$as_ac_var=no"
34186fi
34187rm -f conftest.err conftest.$ac_objext \
34188      conftest$ac_exeext conftest.$ac_ext
34189fi
34190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34192if test `eval echo '${'$as_ac_var'}'` = yes; then
34193  cat >>confdefs.h <<_ACEOF
34194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34195_ACEOF
34196
34197else
34198  LIBGREPOBJS="$LIBGREPOBJS $ac_func.$ac_objext"
34199fi
34200done
34201
34202  if test $ac_cv_func_memchr = no; then
34203
34204
34205for ac_header in bp-sym.h
34206do
34207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34208if eval "test \"\${$as_ac_Header+set}\" = set"; then
34209  echo "$as_me:$LINENO: checking for $ac_header" >&5
34210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34211if eval "test \"\${$as_ac_Header+set}\" = set"; then
34212  echo $ECHO_N "(cached) $ECHO_C" >&6
34213fi
34214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34216else
34217  # Is the header compilable?
34218echo "$as_me:$LINENO: checking $ac_header usability" >&5
34219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34220cat >conftest.$ac_ext <<_ACEOF
34221/* confdefs.h.  */
34222_ACEOF
34223cat confdefs.h >>conftest.$ac_ext
34224cat >>conftest.$ac_ext <<_ACEOF
34225/* end confdefs.h.  */
34226$ac_includes_default
34227#include <$ac_header>
34228_ACEOF
34229rm -f conftest.$ac_objext
34230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34231  (eval $ac_compile) 2>conftest.er1
34232  ac_status=$?
34233  grep -v '^ *+' conftest.er1 >conftest.err
34234  rm -f conftest.er1
34235  cat conftest.err >&5
34236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237  (exit $ac_status); } &&
34238	 { ac_try='test -z "$ac_c_werror_flag"
34239			 || test ! -s conftest.err'
34240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241  (eval $ac_try) 2>&5
34242  ac_status=$?
34243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244  (exit $ac_status); }; } &&
34245	 { ac_try='test -s conftest.$ac_objext'
34246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247  (eval $ac_try) 2>&5
34248  ac_status=$?
34249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250  (exit $ac_status); }; }; then
34251  ac_header_compiler=yes
34252else
34253  echo "$as_me: failed program was:" >&5
34254sed 's/^/| /' conftest.$ac_ext >&5
34255
34256ac_header_compiler=no
34257fi
34258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34260echo "${ECHO_T}$ac_header_compiler" >&6
34261
34262# Is the header present?
34263echo "$as_me:$LINENO: checking $ac_header presence" >&5
34264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34265cat >conftest.$ac_ext <<_ACEOF
34266/* confdefs.h.  */
34267_ACEOF
34268cat confdefs.h >>conftest.$ac_ext
34269cat >>conftest.$ac_ext <<_ACEOF
34270/* end confdefs.h.  */
34271#include <$ac_header>
34272_ACEOF
34273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34274  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34275  ac_status=$?
34276  grep -v '^ *+' conftest.er1 >conftest.err
34277  rm -f conftest.er1
34278  cat conftest.err >&5
34279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280  (exit $ac_status); } >/dev/null; then
34281  if test -s conftest.err; then
34282    ac_cpp_err=$ac_c_preproc_warn_flag
34283    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34284  else
34285    ac_cpp_err=
34286  fi
34287else
34288  ac_cpp_err=yes
34289fi
34290if test -z "$ac_cpp_err"; then
34291  ac_header_preproc=yes
34292else
34293  echo "$as_me: failed program was:" >&5
34294sed 's/^/| /' conftest.$ac_ext >&5
34295
34296  ac_header_preproc=no
34297fi
34298rm -f conftest.err conftest.$ac_ext
34299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34300echo "${ECHO_T}$ac_header_preproc" >&6
34301
34302# So?  What about this header?
34303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34304  yes:no: )
34305    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34307    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34309    ac_header_preproc=yes
34310    ;;
34311  no:yes:* )
34312    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34314    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34315echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34316    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34318    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34319echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34320    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34322    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34324    (
34325      cat <<\_ASBOX
34326## ------------------------------------------ ##
34327## Report this to the AC_PACKAGE_NAME lists.  ##
34328## ------------------------------------------ ##
34329_ASBOX
34330    ) |
34331      sed "s/^/$as_me: WARNING:     /" >&2
34332    ;;
34333esac
34334echo "$as_me:$LINENO: checking for $ac_header" >&5
34335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34336if eval "test \"\${$as_ac_Header+set}\" = set"; then
34337  echo $ECHO_N "(cached) $ECHO_C" >&6
34338else
34339  eval "$as_ac_Header=\$ac_header_preproc"
34340fi
34341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34343
34344fi
34345if test `eval echo '${'$as_ac_Header'}'` = yes; then
34346  cat >>confdefs.h <<_ACEOF
34347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34348_ACEOF
34349
34350fi
34351
34352done
34353
34354
34355  fi
34356
34357
34358
34359for ac_func in strdup
34360do
34361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34362echo "$as_me:$LINENO: checking for $ac_func" >&5
34363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34364if eval "test \"\${$as_ac_var+set}\" = set"; then
34365  echo $ECHO_N "(cached) $ECHO_C" >&6
34366else
34367  cat >conftest.$ac_ext <<_ACEOF
34368/* confdefs.h.  */
34369_ACEOF
34370cat confdefs.h >>conftest.$ac_ext
34371cat >>conftest.$ac_ext <<_ACEOF
34372/* end confdefs.h.  */
34373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34374   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34375#define $ac_func innocuous_$ac_func
34376
34377/* System header to define __stub macros and hopefully few prototypes,
34378    which can conflict with char $ac_func (); below.
34379    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34380    <limits.h> exists even on freestanding compilers.  */
34381
34382#ifdef __STDC__
34383# include <limits.h>
34384#else
34385# include <assert.h>
34386#endif
34387
34388#undef $ac_func
34389
34390/* Override any gcc2 internal prototype to avoid an error.  */
34391#ifdef __cplusplus
34392extern "C"
34393{
34394#endif
34395/* We use char because int might match the return type of a gcc2
34396   builtin and then its argument prototype would still apply.  */
34397char $ac_func ();
34398/* The GNU C library defines this for functions which it implements
34399    to always fail with ENOSYS.  Some functions are actually named
34400    something starting with __ and the normal name is an alias.  */
34401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34402choke me
34403#else
34404char (*f) () = $ac_func;
34405#endif
34406#ifdef __cplusplus
34407}
34408#endif
34409
34410int
34411main ()
34412{
34413return f != $ac_func;
34414  ;
34415  return 0;
34416}
34417_ACEOF
34418rm -f conftest.$ac_objext conftest$ac_exeext
34419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34420  (eval $ac_link) 2>conftest.er1
34421  ac_status=$?
34422  grep -v '^ *+' conftest.er1 >conftest.err
34423  rm -f conftest.er1
34424  cat conftest.err >&5
34425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426  (exit $ac_status); } &&
34427	 { ac_try='test -z "$ac_c_werror_flag"
34428			 || test ! -s conftest.err'
34429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34430  (eval $ac_try) 2>&5
34431  ac_status=$?
34432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433  (exit $ac_status); }; } &&
34434	 { ac_try='test -s conftest$ac_exeext'
34435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436  (eval $ac_try) 2>&5
34437  ac_status=$?
34438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439  (exit $ac_status); }; }; then
34440  eval "$as_ac_var=yes"
34441else
34442  echo "$as_me: failed program was:" >&5
34443sed 's/^/| /' conftest.$ac_ext >&5
34444
34445eval "$as_ac_var=no"
34446fi
34447rm -f conftest.err conftest.$ac_objext \
34448      conftest$ac_exeext conftest.$ac_ext
34449fi
34450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34452if test `eval echo '${'$as_ac_var'}'` = yes; then
34453  cat >>confdefs.h <<_ACEOF
34454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34455_ACEOF
34456
34457else
34458  LIBGREPOBJS="$LIBGREPOBJS $ac_func.$ac_objext"
34459fi
34460done
34461
34462
34463  :
34464
34465
34466
34467
34468
34469  :
34470
34471
34472
34473    # Assume we'll default to using the included regex.c.
34474    ac_use_included_regex=yes
34475
34476    # However, if the system regex support is good enough that it passes the
34477    # the following run test, then default to *not* using the included regex.c.
34478    # If cross compiling, assume the test would fail and use the included
34479    # regex.c.  The first failing regular expression is from `Spencer ere
34480    # test #75' in grep-2.3.
34481    echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
34482echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
34483if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
34484  echo $ECHO_N "(cached) $ECHO_C" >&6
34485else
34486  if test "$cross_compiling" = yes; then
34487  	       jm_cv_func_working_re_compile_pattern=no
34488else
34489  cat >conftest.$ac_ext <<_ACEOF
34490/* confdefs.h.  */
34491_ACEOF
34492cat confdefs.h >>conftest.$ac_ext
34493cat >>conftest.$ac_ext <<_ACEOF
34494/* end confdefs.h.  */
34495#include <stdio.h>
34496#include <string.h>
34497#include <regex.h>
34498	  int
34499	  main ()
34500	  {
34501	    static struct re_pattern_buffer regex;
34502	    const char *s;
34503	    struct re_registers regs;
34504	    re_set_syntax (RE_SYNTAX_POSIX_EGREP);
34505	    memset (&regex, 0, sizeof (regex));
34506	    s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
34507	    /* This should fail with _Invalid character class name_ error.  */
34508	    if (!s)
34509	      exit (1);
34510
34511	    /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
34512	    memset (&regex, 0, sizeof (regex));
34513	    s = re_compile_pattern ("{1", 2, &regex);
34514
34515	    if (s)
34516	      exit (1);
34517
34518	    /* The following example is derived from a problem report
34519               against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
34520	    memset (&regex, 0, sizeof (regex));
34521	    s = re_compile_pattern ("[an\371]*n", 7, &regex);
34522	    if (s)
34523	      exit (1);
34524
34525	    /* This should match, but doesn't for e.g. glibc-2.2.1.  */
34526	    if (re_match (&regex, "an", 2, 0, &regs) != 2)
34527	      exit (1);
34528
34529	    memset (&regex, 0, sizeof (regex));
34530	    s = re_compile_pattern ("x", 1, &regex);
34531	    if (s)
34532	      exit (1);
34533
34534	    /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
34535	       work with a negative RANGE argument.  */
34536	    if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
34537	      exit (1);
34538
34539	    exit (0);
34540	  }
34541
34542_ACEOF
34543rm -f conftest$ac_exeext
34544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34545  (eval $ac_link) 2>&5
34546  ac_status=$?
34547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34550  (eval $ac_try) 2>&5
34551  ac_status=$?
34552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553  (exit $ac_status); }; }; then
34554  jm_cv_func_working_re_compile_pattern=yes
34555else
34556  echo "$as_me: program exited with status $ac_status" >&5
34557echo "$as_me: failed program was:" >&5
34558sed 's/^/| /' conftest.$ac_ext >&5
34559
34560( exit $ac_status )
34561jm_cv_func_working_re_compile_pattern=no
34562fi
34563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34564fi
34565fi
34566echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
34567echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
34568    if test $jm_cv_func_working_re_compile_pattern = yes; then
34569      ac_use_included_regex=no
34570    fi
34571
34572    test -n "libgrep/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
34573echo "$as_me: error: missing argument" >&2;}
34574   { (exit 1); exit 1; }; }
34575
34576
34577
34578# Check whether --with-included-regex or --without-included-regex was given.
34579if test "${with_included_regex+set}" = set; then
34580  withval="$with_included_regex"
34581  jm_with_regex=$withval
34582else
34583  jm_with_regex=$ac_use_included_regex
34584fi;
34585	if test "$jm_with_regex" = yes; then
34586	  LIBGREPOBJS="$LIBGREPOBJS regex.$ac_objext"
34587
34588
34589
34590
34591
34592
34593
34594
34595  :
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605  :
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615for ac_func in btowc
34616do
34617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34618echo "$as_me:$LINENO: checking for $ac_func" >&5
34619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34620if eval "test \"\${$as_ac_var+set}\" = set"; then
34621  echo $ECHO_N "(cached) $ECHO_C" >&6
34622else
34623  cat >conftest.$ac_ext <<_ACEOF
34624/* confdefs.h.  */
34625_ACEOF
34626cat confdefs.h >>conftest.$ac_ext
34627cat >>conftest.$ac_ext <<_ACEOF
34628/* end confdefs.h.  */
34629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34630   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34631#define $ac_func innocuous_$ac_func
34632
34633/* System header to define __stub macros and hopefully few prototypes,
34634    which can conflict with char $ac_func (); below.
34635    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34636    <limits.h> exists even on freestanding compilers.  */
34637
34638#ifdef __STDC__
34639# include <limits.h>
34640#else
34641# include <assert.h>
34642#endif
34643
34644#undef $ac_func
34645
34646/* Override any gcc2 internal prototype to avoid an error.  */
34647#ifdef __cplusplus
34648extern "C"
34649{
34650#endif
34651/* We use char because int might match the return type of a gcc2
34652   builtin and then its argument prototype would still apply.  */
34653char $ac_func ();
34654/* The GNU C library defines this for functions which it implements
34655    to always fail with ENOSYS.  Some functions are actually named
34656    something starting with __ and the normal name is an alias.  */
34657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34658choke me
34659#else
34660char (*f) () = $ac_func;
34661#endif
34662#ifdef __cplusplus
34663}
34664#endif
34665
34666int
34667main ()
34668{
34669return f != $ac_func;
34670  ;
34671  return 0;
34672}
34673_ACEOF
34674rm -f conftest.$ac_objext conftest$ac_exeext
34675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34676  (eval $ac_link) 2>conftest.er1
34677  ac_status=$?
34678  grep -v '^ *+' conftest.er1 >conftest.err
34679  rm -f conftest.er1
34680  cat conftest.err >&5
34681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682  (exit $ac_status); } &&
34683	 { ac_try='test -z "$ac_c_werror_flag"
34684			 || test ! -s conftest.err'
34685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686  (eval $ac_try) 2>&5
34687  ac_status=$?
34688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689  (exit $ac_status); }; } &&
34690	 { ac_try='test -s conftest$ac_exeext'
34691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692  (eval $ac_try) 2>&5
34693  ac_status=$?
34694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695  (exit $ac_status); }; }; then
34696  eval "$as_ac_var=yes"
34697else
34698  echo "$as_me: failed program was:" >&5
34699sed 's/^/| /' conftest.$ac_ext >&5
34700
34701eval "$as_ac_var=no"
34702fi
34703rm -f conftest.err conftest.$ac_objext \
34704      conftest$ac_exeext conftest.$ac_ext
34705fi
34706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34708if test `eval echo '${'$as_ac_var'}'` = yes; then
34709  cat >>confdefs.h <<_ACEOF
34710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34711_ACEOF
34712
34713fi
34714done
34715
34716
34717	fi
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728for ac_header in arpa/inet.h
34729do
34730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34731if eval "test \"\${$as_ac_Header+set}\" = set"; then
34732  echo "$as_me:$LINENO: checking for $ac_header" >&5
34733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34734if eval "test \"\${$as_ac_Header+set}\" = set"; then
34735  echo $ECHO_N "(cached) $ECHO_C" >&6
34736fi
34737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34739else
34740  # Is the header compilable?
34741echo "$as_me:$LINENO: checking $ac_header usability" >&5
34742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34743cat >conftest.$ac_ext <<_ACEOF
34744/* confdefs.h.  */
34745_ACEOF
34746cat confdefs.h >>conftest.$ac_ext
34747cat >>conftest.$ac_ext <<_ACEOF
34748/* end confdefs.h.  */
34749$ac_includes_default
34750#include <$ac_header>
34751_ACEOF
34752rm -f conftest.$ac_objext
34753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34754  (eval $ac_compile) 2>conftest.er1
34755  ac_status=$?
34756  grep -v '^ *+' conftest.er1 >conftest.err
34757  rm -f conftest.er1
34758  cat conftest.err >&5
34759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760  (exit $ac_status); } &&
34761	 { ac_try='test -z "$ac_c_werror_flag"
34762			 || test ! -s conftest.err'
34763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34764  (eval $ac_try) 2>&5
34765  ac_status=$?
34766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767  (exit $ac_status); }; } &&
34768	 { ac_try='test -s conftest.$ac_objext'
34769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770  (eval $ac_try) 2>&5
34771  ac_status=$?
34772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773  (exit $ac_status); }; }; then
34774  ac_header_compiler=yes
34775else
34776  echo "$as_me: failed program was:" >&5
34777sed 's/^/| /' conftest.$ac_ext >&5
34778
34779ac_header_compiler=no
34780fi
34781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34783echo "${ECHO_T}$ac_header_compiler" >&6
34784
34785# Is the header present?
34786echo "$as_me:$LINENO: checking $ac_header presence" >&5
34787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34788cat >conftest.$ac_ext <<_ACEOF
34789/* confdefs.h.  */
34790_ACEOF
34791cat confdefs.h >>conftest.$ac_ext
34792cat >>conftest.$ac_ext <<_ACEOF
34793/* end confdefs.h.  */
34794#include <$ac_header>
34795_ACEOF
34796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34797  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34798  ac_status=$?
34799  grep -v '^ *+' conftest.er1 >conftest.err
34800  rm -f conftest.er1
34801  cat conftest.err >&5
34802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803  (exit $ac_status); } >/dev/null; then
34804  if test -s conftest.err; then
34805    ac_cpp_err=$ac_c_preproc_warn_flag
34806    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34807  else
34808    ac_cpp_err=
34809  fi
34810else
34811  ac_cpp_err=yes
34812fi
34813if test -z "$ac_cpp_err"; then
34814  ac_header_preproc=yes
34815else
34816  echo "$as_me: failed program was:" >&5
34817sed 's/^/| /' conftest.$ac_ext >&5
34818
34819  ac_header_preproc=no
34820fi
34821rm -f conftest.err conftest.$ac_ext
34822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34823echo "${ECHO_T}$ac_header_preproc" >&6
34824
34825# So?  What about this header?
34826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34827  yes:no: )
34828    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34830    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34832    ac_header_preproc=yes
34833    ;;
34834  no:yes:* )
34835    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34837    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34838echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34839    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34841    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34842echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34843    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34845    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34847    (
34848      cat <<\_ASBOX
34849## ------------------------------------------ ##
34850## Report this to the AC_PACKAGE_NAME lists.  ##
34851## ------------------------------------------ ##
34852_ASBOX
34853    ) |
34854      sed "s/^/$as_me: WARNING:     /" >&2
34855    ;;
34856esac
34857echo "$as_me:$LINENO: checking for $ac_header" >&5
34858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34859if eval "test \"\${$as_ac_Header+set}\" = set"; then
34860  echo $ECHO_N "(cached) $ECHO_C" >&6
34861else
34862  eval "$as_ac_Header=\$ac_header_preproc"
34863fi
34864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34866
34867fi
34868if test `eval echo '${'$as_ac_Header'}'` = yes; then
34869  cat >>confdefs.h <<_ACEOF
34870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34871_ACEOF
34872
34873fi
34874
34875done
34876
34877
34878
34879
34880for ac_func in gethostname gethostbyname inet_ntop
34881do
34882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34883echo "$as_me:$LINENO: checking for $ac_func" >&5
34884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34885if eval "test \"\${$as_ac_var+set}\" = set"; then
34886  echo $ECHO_N "(cached) $ECHO_C" >&6
34887else
34888  cat >conftest.$ac_ext <<_ACEOF
34889/* confdefs.h.  */
34890_ACEOF
34891cat confdefs.h >>conftest.$ac_ext
34892cat >>conftest.$ac_ext <<_ACEOF
34893/* end confdefs.h.  */
34894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34895   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34896#define $ac_func innocuous_$ac_func
34897
34898/* System header to define __stub macros and hopefully few prototypes,
34899    which can conflict with char $ac_func (); below.
34900    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34901    <limits.h> exists even on freestanding compilers.  */
34902
34903#ifdef __STDC__
34904# include <limits.h>
34905#else
34906# include <assert.h>
34907#endif
34908
34909#undef $ac_func
34910
34911/* Override any gcc2 internal prototype to avoid an error.  */
34912#ifdef __cplusplus
34913extern "C"
34914{
34915#endif
34916/* We use char because int might match the return type of a gcc2
34917   builtin and then its argument prototype would still apply.  */
34918char $ac_func ();
34919/* The GNU C library defines this for functions which it implements
34920    to always fail with ENOSYS.  Some functions are actually named
34921    something starting with __ and the normal name is an alias.  */
34922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34923choke me
34924#else
34925char (*f) () = $ac_func;
34926#endif
34927#ifdef __cplusplus
34928}
34929#endif
34930
34931int
34932main ()
34933{
34934return f != $ac_func;
34935  ;
34936  return 0;
34937}
34938_ACEOF
34939rm -f conftest.$ac_objext conftest$ac_exeext
34940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34941  (eval $ac_link) 2>conftest.er1
34942  ac_status=$?
34943  grep -v '^ *+' conftest.er1 >conftest.err
34944  rm -f conftest.er1
34945  cat conftest.err >&5
34946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947  (exit $ac_status); } &&
34948	 { ac_try='test -z "$ac_c_werror_flag"
34949			 || test ! -s conftest.err'
34950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34951  (eval $ac_try) 2>&5
34952  ac_status=$?
34953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954  (exit $ac_status); }; } &&
34955	 { ac_try='test -s conftest$ac_exeext'
34956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34957  (eval $ac_try) 2>&5
34958  ac_status=$?
34959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960  (exit $ac_status); }; }; then
34961  eval "$as_ac_var=yes"
34962else
34963  echo "$as_me: failed program was:" >&5
34964sed 's/^/| /' conftest.$ac_ext >&5
34965
34966eval "$as_ac_var=no"
34967fi
34968rm -f conftest.err conftest.$ac_objext \
34969      conftest$ac_exeext conftest.$ac_ext
34970fi
34971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34973if test `eval echo '${'$as_ac_var'}'` = yes; then
34974  cat >>confdefs.h <<_ACEOF
34975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34976_ACEOF
34977
34978fi
34979done
34980
34981
34982  echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
34983echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6
34984  if test "${gt_cv_socket_ipv6+set}" = set; then
34985  echo $ECHO_N "(cached) $ECHO_C" >&6
34986else
34987
34988    cat >conftest.$ac_ext <<_ACEOF
34989/* confdefs.h.  */
34990_ACEOF
34991cat confdefs.h >>conftest.$ac_ext
34992cat >>conftest.$ac_ext <<_ACEOF
34993/* end confdefs.h.  */
34994
34995#include <sys/types.h>
34996#include <sys/socket.h>
34997#include <netinet/in.h>
34998int
34999main ()
35000{
35001int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
35002  ;
35003  return 0;
35004}
35005_ACEOF
35006rm -f conftest.$ac_objext
35007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35008  (eval $ac_compile) 2>conftest.er1
35009  ac_status=$?
35010  grep -v '^ *+' conftest.er1 >conftest.err
35011  rm -f conftest.er1
35012  cat conftest.err >&5
35013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014  (exit $ac_status); } &&
35015	 { ac_try='test -z "$ac_c_werror_flag"
35016			 || test ! -s conftest.err'
35017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35018  (eval $ac_try) 2>&5
35019  ac_status=$?
35020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021  (exit $ac_status); }; } &&
35022	 { ac_try='test -s conftest.$ac_objext'
35023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35024  (eval $ac_try) 2>&5
35025  ac_status=$?
35026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027  (exit $ac_status); }; }; then
35028  gt_cv_socket_ipv6=yes
35029else
35030  echo "$as_me: failed program was:" >&5
35031sed 's/^/| /' conftest.$ac_ext >&5
35032
35033gt_cv_socket_ipv6=no
35034fi
35035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35036
35037fi
35038
35039  echo "$as_me:$LINENO: result: $gt_cv_socket_ipv6" >&5
35040echo "${ECHO_T}$gt_cv_socket_ipv6" >&6
35041  if test $gt_cv_socket_ipv6 = yes; then
35042
35043cat >>confdefs.h <<\_ACEOF
35044#define HAVE_IPV6 1
35045_ACEOF
35046
35047  fi
35048
35049
35050
35051
35052        MKINSTALLDIRS=
35053  if test -n "$ac_aux_dir"; then
35054    case "$ac_aux_dir" in
35055      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
35056      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
35057    esac
35058  fi
35059  if test -z "$MKINSTALLDIRS"; then
35060    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
35061  fi
35062
35063
35064
35065  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
35066echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
35067    # Check whether --enable-nls or --disable-nls was given.
35068if test "${enable_nls+set}" = set; then
35069  enableval="$enable_nls"
35070  USE_NLS=$enableval
35071else
35072  USE_NLS=yes
35073fi;
35074  echo "$as_me:$LINENO: result: $USE_NLS" >&5
35075echo "${ECHO_T}$USE_NLS" >&6
35076
35077
35078
35079
35080
35081
35082# Prepare PATH_SEPARATOR.
35083# The user is always right.
35084if test "${PATH_SEPARATOR+set}" != set; then
35085  echo "#! /bin/sh" >conf$$.sh
35086  echo  "exit 0"   >>conf$$.sh
35087  chmod +x conf$$.sh
35088  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35089    PATH_SEPARATOR=';'
35090  else
35091    PATH_SEPARATOR=:
35092  fi
35093  rm -f conf$$.sh
35094fi
35095
35096# Find out how to test for executable files. Don't use a zero-byte file,
35097# as systems may use methods other than mode bits to determine executability.
35098cat >conf$$.file <<_ASEOF
35099#! /bin/sh
35100exit 0
35101_ASEOF
35102chmod +x conf$$.file
35103if test -x conf$$.file >/dev/null 2>&1; then
35104  ac_executable_p="test -x"
35105else
35106  ac_executable_p="test -f"
35107fi
35108rm -f conf$$.file
35109
35110# Extract the first word of "msgfmt", so it can be a program name with args.
35111set dummy msgfmt; ac_word=$2
35112echo "$as_me:$LINENO: checking for $ac_word" >&5
35113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35114if test "${ac_cv_path_MSGFMT+set}" = set; then
35115  echo $ECHO_N "(cached) $ECHO_C" >&6
35116else
35117  case "$MSGFMT" in
35118  [\\/]* | ?:[\\/]*)
35119    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
35120    ;;
35121  *)
35122    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35123    for ac_dir in $PATH; do
35124      IFS="$ac_save_IFS"
35125      test -z "$ac_dir" && ac_dir=.
35126      for ac_exec_ext in '' $ac_executable_extensions; do
35127        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35128          echo "$as_me: trying $ac_dir/$ac_word..." >&5
35129          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
35130     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35131            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
35132            break 2
35133          fi
35134        fi
35135      done
35136    done
35137    IFS="$ac_save_IFS"
35138  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
35139    ;;
35140esac
35141fi
35142MSGFMT="$ac_cv_path_MSGFMT"
35143if test "$MSGFMT" != ":"; then
35144  echo "$as_me:$LINENO: result: $MSGFMT" >&5
35145echo "${ECHO_T}$MSGFMT" >&6
35146else
35147  echo "$as_me:$LINENO: result: no" >&5
35148echo "${ECHO_T}no" >&6
35149fi
35150
35151  # Extract the first word of "gmsgfmt", so it can be a program name with args.
35152set dummy gmsgfmt; ac_word=$2
35153echo "$as_me:$LINENO: checking for $ac_word" >&5
35154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35155if test "${ac_cv_path_GMSGFMT+set}" = set; then
35156  echo $ECHO_N "(cached) $ECHO_C" >&6
35157else
35158  case $GMSGFMT in
35159  [\\/]* | ?:[\\/]*)
35160  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
35161  ;;
35162  *)
35163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35164for as_dir in $PATH
35165do
35166  IFS=$as_save_IFS
35167  test -z "$as_dir" && as_dir=.
35168  for ac_exec_ext in '' $ac_executable_extensions; do
35169  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35170    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
35171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35172    break 2
35173  fi
35174done
35175done
35176
35177  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
35178  ;;
35179esac
35180fi
35181GMSGFMT=$ac_cv_path_GMSGFMT
35182
35183if test -n "$GMSGFMT"; then
35184  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
35185echo "${ECHO_T}$GMSGFMT" >&6
35186else
35187  echo "$as_me:$LINENO: result: no" >&5
35188echo "${ECHO_T}no" >&6
35189fi
35190
35191
35192
35193# Prepare PATH_SEPARATOR.
35194# The user is always right.
35195if test "${PATH_SEPARATOR+set}" != set; then
35196  echo "#! /bin/sh" >conf$$.sh
35197  echo  "exit 0"   >>conf$$.sh
35198  chmod +x conf$$.sh
35199  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35200    PATH_SEPARATOR=';'
35201  else
35202    PATH_SEPARATOR=:
35203  fi
35204  rm -f conf$$.sh
35205fi
35206
35207# Find out how to test for executable files. Don't use a zero-byte file,
35208# as systems may use methods other than mode bits to determine executability.
35209cat >conf$$.file <<_ASEOF
35210#! /bin/sh
35211exit 0
35212_ASEOF
35213chmod +x conf$$.file
35214if test -x conf$$.file >/dev/null 2>&1; then
35215  ac_executable_p="test -x"
35216else
35217  ac_executable_p="test -f"
35218fi
35219rm -f conf$$.file
35220
35221# Extract the first word of "xgettext", so it can be a program name with args.
35222set dummy xgettext; ac_word=$2
35223echo "$as_me:$LINENO: checking for $ac_word" >&5
35224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35225if test "${ac_cv_path_XGETTEXT+set}" = set; then
35226  echo $ECHO_N "(cached) $ECHO_C" >&6
35227else
35228  case "$XGETTEXT" in
35229  [\\/]* | ?:[\\/]*)
35230    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
35231    ;;
35232  *)
35233    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35234    for ac_dir in $PATH; do
35235      IFS="$ac_save_IFS"
35236      test -z "$ac_dir" && ac_dir=.
35237      for ac_exec_ext in '' $ac_executable_extensions; do
35238        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35239          echo "$as_me: trying $ac_dir/$ac_word..." >&5
35240          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
35241     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35242            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
35243            break 2
35244          fi
35245        fi
35246      done
35247    done
35248    IFS="$ac_save_IFS"
35249  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
35250    ;;
35251esac
35252fi
35253XGETTEXT="$ac_cv_path_XGETTEXT"
35254if test "$XGETTEXT" != ":"; then
35255  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
35256echo "${ECHO_T}$XGETTEXT" >&6
35257else
35258  echo "$as_me:$LINENO: result: no" >&5
35259echo "${ECHO_T}no" >&6
35260fi
35261
35262    rm -f messages.po
35263
35264
35265# Prepare PATH_SEPARATOR.
35266# The user is always right.
35267if test "${PATH_SEPARATOR+set}" != set; then
35268  echo "#! /bin/sh" >conf$$.sh
35269  echo  "exit 0"   >>conf$$.sh
35270  chmod +x conf$$.sh
35271  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35272    PATH_SEPARATOR=';'
35273  else
35274    PATH_SEPARATOR=:
35275  fi
35276  rm -f conf$$.sh
35277fi
35278
35279# Find out how to test for executable files. Don't use a zero-byte file,
35280# as systems may use methods other than mode bits to determine executability.
35281cat >conf$$.file <<_ASEOF
35282#! /bin/sh
35283exit 0
35284_ASEOF
35285chmod +x conf$$.file
35286if test -x conf$$.file >/dev/null 2>&1; then
35287  ac_executable_p="test -x"
35288else
35289  ac_executable_p="test -f"
35290fi
35291rm -f conf$$.file
35292
35293# Extract the first word of "msgmerge", so it can be a program name with args.
35294set dummy msgmerge; ac_word=$2
35295echo "$as_me:$LINENO: checking for $ac_word" >&5
35296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35297if test "${ac_cv_path_MSGMERGE+set}" = set; then
35298  echo $ECHO_N "(cached) $ECHO_C" >&6
35299else
35300  case "$MSGMERGE" in
35301  [\\/]* | ?:[\\/]*)
35302    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
35303    ;;
35304  *)
35305    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35306    for ac_dir in $PATH; do
35307      IFS="$ac_save_IFS"
35308      test -z "$ac_dir" && ac_dir=.
35309      for ac_exec_ext in '' $ac_executable_extensions; do
35310        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35311          echo "$as_me: trying $ac_dir/$ac_word..." >&5
35312          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
35313            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
35314            break 2
35315          fi
35316        fi
35317      done
35318    done
35319    IFS="$ac_save_IFS"
35320  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
35321    ;;
35322esac
35323fi
35324MSGMERGE="$ac_cv_path_MSGMERGE"
35325if test "$MSGMERGE" != ":"; then
35326  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
35327echo "${ECHO_T}$MSGMERGE" >&6
35328else
35329  echo "$as_me:$LINENO: result: no" >&5
35330echo "${ECHO_T}no" >&6
35331fi
35332
35333
35334      if test "$GMSGFMT" != ":"; then
35335            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
35336       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35337      : ;
35338    else
35339      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
35340      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
35341echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
35342      GMSGFMT=":"
35343    fi
35344  fi
35345
35346      if test "$XGETTEXT" != ":"; then
35347            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
35348       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35349      : ;
35350    else
35351      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
35352echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
35353      XGETTEXT=":"
35354    fi
35355        rm -f messages.po
35356  fi
35357
35358            ac_config_commands="$ac_config_commands default-1"
35359
35360
35361
35362    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
35363echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
35364if test "${ac_cv_gnu_library_2+set}" = set; then
35365  echo $ECHO_N "(cached) $ECHO_C" >&6
35366else
35367  cat >conftest.$ac_ext <<_ACEOF
35368/* confdefs.h.  */
35369_ACEOF
35370cat confdefs.h >>conftest.$ac_ext
35371cat >>conftest.$ac_ext <<_ACEOF
35372/* end confdefs.h.  */
35373
35374#include <features.h>
35375#ifdef __GNU_LIBRARY__
35376 #if (__GLIBC__ >= 2)
35377  Lucky GNU user
35378 #endif
35379#endif
35380
35381_ACEOF
35382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35383  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
35384  ac_cv_gnu_library_2=yes
35385else
35386  ac_cv_gnu_library_2=no
35387fi
35388rm -f conftest*
35389
35390
35391
35392fi
35393echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
35394echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
35395
35396    GLIBC2="$ac_cv_gnu_library_2"
35397
35398
35399if test -n "$ac_tool_prefix"; then
35400  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35401set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35402echo "$as_me:$LINENO: checking for $ac_word" >&5
35403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35404if test "${ac_cv_prog_RANLIB+set}" = set; then
35405  echo $ECHO_N "(cached) $ECHO_C" >&6
35406else
35407  if test -n "$RANLIB"; then
35408  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
35409else
35410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35411for as_dir in $PATH
35412do
35413  IFS=$as_save_IFS
35414  test -z "$as_dir" && as_dir=.
35415  for ac_exec_ext in '' $ac_executable_extensions; do
35416  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35417    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35419    break 2
35420  fi
35421done
35422done
35423
35424fi
35425fi
35426RANLIB=$ac_cv_prog_RANLIB
35427if test -n "$RANLIB"; then
35428  echo "$as_me:$LINENO: result: $RANLIB" >&5
35429echo "${ECHO_T}$RANLIB" >&6
35430else
35431  echo "$as_me:$LINENO: result: no" >&5
35432echo "${ECHO_T}no" >&6
35433fi
35434
35435fi
35436if test -z "$ac_cv_prog_RANLIB"; then
35437  ac_ct_RANLIB=$RANLIB
35438  # Extract the first word of "ranlib", so it can be a program name with args.
35439set dummy ranlib; ac_word=$2
35440echo "$as_me:$LINENO: checking for $ac_word" >&5
35441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35442if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35443  echo $ECHO_N "(cached) $ECHO_C" >&6
35444else
35445  if test -n "$ac_ct_RANLIB"; then
35446  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35447else
35448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35449for as_dir in $PATH
35450do
35451  IFS=$as_save_IFS
35452  test -z "$as_dir" && as_dir=.
35453  for ac_exec_ext in '' $ac_executable_extensions; do
35454  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35455    ac_cv_prog_ac_ct_RANLIB="ranlib"
35456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35457    break 2
35458  fi
35459done
35460done
35461
35462  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
35463fi
35464fi
35465ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35466if test -n "$ac_ct_RANLIB"; then
35467  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35468echo "${ECHO_T}$ac_ct_RANLIB" >&6
35469else
35470  echo "$as_me:$LINENO: result: no" >&5
35471echo "${ECHO_T}no" >&6
35472fi
35473
35474  RANLIB=$ac_ct_RANLIB
35475else
35476  RANLIB="$ac_cv_prog_RANLIB"
35477fi
35478
35479echo "$as_me:$LINENO: checking for off_t" >&5
35480echo $ECHO_N "checking for off_t... $ECHO_C" >&6
35481if test "${ac_cv_type_off_t+set}" = set; then
35482  echo $ECHO_N "(cached) $ECHO_C" >&6
35483else
35484  cat >conftest.$ac_ext <<_ACEOF
35485/* confdefs.h.  */
35486_ACEOF
35487cat confdefs.h >>conftest.$ac_ext
35488cat >>conftest.$ac_ext <<_ACEOF
35489/* end confdefs.h.  */
35490$ac_includes_default
35491int
35492main ()
35493{
35494if ((off_t *) 0)
35495  return 0;
35496if (sizeof (off_t))
35497  return 0;
35498  ;
35499  return 0;
35500}
35501_ACEOF
35502rm -f conftest.$ac_objext
35503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35504  (eval $ac_compile) 2>conftest.er1
35505  ac_status=$?
35506  grep -v '^ *+' conftest.er1 >conftest.err
35507  rm -f conftest.er1
35508  cat conftest.err >&5
35509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510  (exit $ac_status); } &&
35511	 { ac_try='test -z "$ac_c_werror_flag"
35512			 || test ! -s conftest.err'
35513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35514  (eval $ac_try) 2>&5
35515  ac_status=$?
35516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517  (exit $ac_status); }; } &&
35518	 { ac_try='test -s conftest.$ac_objext'
35519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520  (eval $ac_try) 2>&5
35521  ac_status=$?
35522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523  (exit $ac_status); }; }; then
35524  ac_cv_type_off_t=yes
35525else
35526  echo "$as_me: failed program was:" >&5
35527sed 's/^/| /' conftest.$ac_ext >&5
35528
35529ac_cv_type_off_t=no
35530fi
35531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35532fi
35533echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35534echo "${ECHO_T}$ac_cv_type_off_t" >&6
35535if test $ac_cv_type_off_t = yes; then
35536  :
35537else
35538
35539cat >>confdefs.h <<_ACEOF
35540#define off_t long
35541_ACEOF
35542
35543fi
35544
35545
35546  echo "$as_me:$LINENO: checking for wchar_t" >&5
35547echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35548if test "${gt_cv_c_wchar_t+set}" = set; then
35549  echo $ECHO_N "(cached) $ECHO_C" >&6
35550else
35551  cat >conftest.$ac_ext <<_ACEOF
35552/* confdefs.h.  */
35553_ACEOF
35554cat confdefs.h >>conftest.$ac_ext
35555cat >>conftest.$ac_ext <<_ACEOF
35556/* end confdefs.h.  */
35557#include <stddef.h>
35558       wchar_t foo = (wchar_t)'\0';
35559int
35560main ()
35561{
35562
35563  ;
35564  return 0;
35565}
35566_ACEOF
35567rm -f conftest.$ac_objext
35568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35569  (eval $ac_compile) 2>conftest.er1
35570  ac_status=$?
35571  grep -v '^ *+' conftest.er1 >conftest.err
35572  rm -f conftest.er1
35573  cat conftest.err >&5
35574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575  (exit $ac_status); } &&
35576	 { ac_try='test -z "$ac_c_werror_flag"
35577			 || test ! -s conftest.err'
35578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35579  (eval $ac_try) 2>&5
35580  ac_status=$?
35581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582  (exit $ac_status); }; } &&
35583	 { ac_try='test -s conftest.$ac_objext'
35584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585  (eval $ac_try) 2>&5
35586  ac_status=$?
35587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588  (exit $ac_status); }; }; then
35589  gt_cv_c_wchar_t=yes
35590else
35591  echo "$as_me: failed program was:" >&5
35592sed 's/^/| /' conftest.$ac_ext >&5
35593
35594gt_cv_c_wchar_t=no
35595fi
35596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35597fi
35598echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
35599echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
35600  if test $gt_cv_c_wchar_t = yes; then
35601
35602cat >>confdefs.h <<\_ACEOF
35603#define HAVE_WCHAR_T 1
35604_ACEOF
35605
35606  fi
35607
35608
35609  echo "$as_me:$LINENO: checking for wint_t" >&5
35610echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
35611if test "${gt_cv_c_wint_t+set}" = set; then
35612  echo $ECHO_N "(cached) $ECHO_C" >&6
35613else
35614  cat >conftest.$ac_ext <<_ACEOF
35615/* confdefs.h.  */
35616_ACEOF
35617cat confdefs.h >>conftest.$ac_ext
35618cat >>conftest.$ac_ext <<_ACEOF
35619/* end confdefs.h.  */
35620#include <wchar.h>
35621       wint_t foo = (wchar_t)'\0';
35622int
35623main ()
35624{
35625
35626  ;
35627  return 0;
35628}
35629_ACEOF
35630rm -f conftest.$ac_objext
35631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35632  (eval $ac_compile) 2>conftest.er1
35633  ac_status=$?
35634  grep -v '^ *+' conftest.er1 >conftest.err
35635  rm -f conftest.er1
35636  cat conftest.err >&5
35637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638  (exit $ac_status); } &&
35639	 { ac_try='test -z "$ac_c_werror_flag"
35640			 || test ! -s conftest.err'
35641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642  (eval $ac_try) 2>&5
35643  ac_status=$?
35644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645  (exit $ac_status); }; } &&
35646	 { ac_try='test -s conftest.$ac_objext'
35647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648  (eval $ac_try) 2>&5
35649  ac_status=$?
35650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651  (exit $ac_status); }; }; then
35652  gt_cv_c_wint_t=yes
35653else
35654  echo "$as_me: failed program was:" >&5
35655sed 's/^/| /' conftest.$ac_ext >&5
35656
35657gt_cv_c_wint_t=no
35658fi
35659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35660fi
35661echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
35662echo "${ECHO_T}$gt_cv_c_wint_t" >&6
35663  if test $gt_cv_c_wint_t = yes; then
35664
35665cat >>confdefs.h <<\_ACEOF
35666#define HAVE_WINT_T 1
35667_ACEOF
35668
35669  fi
35670
35671
35672
35673
35674  echo "$as_me:$LINENO: checking for intmax_t" >&5
35675echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
35676if test "${gt_cv_c_intmax_t+set}" = set; then
35677  echo $ECHO_N "(cached) $ECHO_C" >&6
35678else
35679  cat >conftest.$ac_ext <<_ACEOF
35680/* confdefs.h.  */
35681_ACEOF
35682cat confdefs.h >>conftest.$ac_ext
35683cat >>conftest.$ac_ext <<_ACEOF
35684/* end confdefs.h.  */
35685
35686#include <stddef.h>
35687#include <stdlib.h>
35688#if HAVE_STDINT_H_WITH_UINTMAX
35689#include <stdint.h>
35690#endif
35691#if HAVE_INTTYPES_H_WITH_UINTMAX
35692#include <inttypes.h>
35693#endif
35694
35695int
35696main ()
35697{
35698intmax_t x = -1;
35699  ;
35700  return 0;
35701}
35702_ACEOF
35703rm -f conftest.$ac_objext
35704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35705  (eval $ac_compile) 2>conftest.er1
35706  ac_status=$?
35707  grep -v '^ *+' conftest.er1 >conftest.err
35708  rm -f conftest.er1
35709  cat conftest.err >&5
35710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711  (exit $ac_status); } &&
35712	 { ac_try='test -z "$ac_c_werror_flag"
35713			 || test ! -s conftest.err'
35714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715  (eval $ac_try) 2>&5
35716  ac_status=$?
35717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718  (exit $ac_status); }; } &&
35719	 { ac_try='test -s conftest.$ac_objext'
35720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35721  (eval $ac_try) 2>&5
35722  ac_status=$?
35723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724  (exit $ac_status); }; }; then
35725  gt_cv_c_intmax_t=yes
35726else
35727  echo "$as_me: failed program was:" >&5
35728sed 's/^/| /' conftest.$ac_ext >&5
35729
35730gt_cv_c_intmax_t=no
35731fi
35732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35733fi
35734echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
35735echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
35736  if test $gt_cv_c_intmax_t = yes; then
35737
35738cat >>confdefs.h <<\_ACEOF
35739#define HAVE_INTMAX_T 1
35740_ACEOF
35741
35742  fi
35743
35744
35745
35746  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
35747echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
35748if test "${gt_cv_func_printf_posix+set}" = set; then
35749  echo $ECHO_N "(cached) $ECHO_C" >&6
35750else
35751
35752      if test "$cross_compiling" = yes; then
35753
35754        cat >conftest.$ac_ext <<_ACEOF
35755/* confdefs.h.  */
35756_ACEOF
35757cat confdefs.h >>conftest.$ac_ext
35758cat >>conftest.$ac_ext <<_ACEOF
35759/* end confdefs.h.  */
35760
35761#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
35762  notposix
35763#endif
35764
35765_ACEOF
35766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35767  $EGREP "notposix" >/dev/null 2>&1; then
35768  gt_cv_func_printf_posix="guessing no"
35769else
35770  gt_cv_func_printf_posix="guessing yes"
35771fi
35772rm -f conftest*
35773
35774
35775else
35776  cat >conftest.$ac_ext <<_ACEOF
35777/* confdefs.h.  */
35778_ACEOF
35779cat confdefs.h >>conftest.$ac_ext
35780cat >>conftest.$ac_ext <<_ACEOF
35781/* end confdefs.h.  */
35782
35783#include <stdio.h>
35784#include <string.h>
35785/* The string "%2$d %1$d", with dollar characters protected from the shell's
35786   dollar expansion (possibly an autoconf bug).  */
35787static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
35788static char buf[100];
35789int main ()
35790{
35791  sprintf (buf, format, 33, 55);
35792  return (strcmp (buf, "55 33") != 0);
35793}
35794_ACEOF
35795rm -f conftest$ac_exeext
35796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35797  (eval $ac_link) 2>&5
35798  ac_status=$?
35799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35802  (eval $ac_try) 2>&5
35803  ac_status=$?
35804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805  (exit $ac_status); }; }; then
35806  gt_cv_func_printf_posix=yes
35807else
35808  echo "$as_me: program exited with status $ac_status" >&5
35809echo "$as_me: failed program was:" >&5
35810sed 's/^/| /' conftest.$ac_ext >&5
35811
35812( exit $ac_status )
35813gt_cv_func_printf_posix=no
35814fi
35815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35816fi
35817
35818fi
35819echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
35820echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
35821  case $gt_cv_func_printf_posix in
35822    *yes)
35823
35824cat >>confdefs.h <<\_ACEOF
35825#define HAVE_POSIX_PRINTF 1
35826_ACEOF
35827
35828      ;;
35829  esac
35830
35831
35832
35833for ac_header in stdlib.h unistd.h
35834do
35835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35836if eval "test \"\${$as_ac_Header+set}\" = set"; then
35837  echo "$as_me:$LINENO: checking for $ac_header" >&5
35838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35839if eval "test \"\${$as_ac_Header+set}\" = set"; then
35840  echo $ECHO_N "(cached) $ECHO_C" >&6
35841fi
35842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35844else
35845  # Is the header compilable?
35846echo "$as_me:$LINENO: checking $ac_header usability" >&5
35847echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35848cat >conftest.$ac_ext <<_ACEOF
35849/* confdefs.h.  */
35850_ACEOF
35851cat confdefs.h >>conftest.$ac_ext
35852cat >>conftest.$ac_ext <<_ACEOF
35853/* end confdefs.h.  */
35854$ac_includes_default
35855#include <$ac_header>
35856_ACEOF
35857rm -f conftest.$ac_objext
35858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35859  (eval $ac_compile) 2>conftest.er1
35860  ac_status=$?
35861  grep -v '^ *+' conftest.er1 >conftest.err
35862  rm -f conftest.er1
35863  cat conftest.err >&5
35864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865  (exit $ac_status); } &&
35866	 { ac_try='test -z "$ac_c_werror_flag"
35867			 || test ! -s conftest.err'
35868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35869  (eval $ac_try) 2>&5
35870  ac_status=$?
35871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872  (exit $ac_status); }; } &&
35873	 { ac_try='test -s conftest.$ac_objext'
35874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875  (eval $ac_try) 2>&5
35876  ac_status=$?
35877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878  (exit $ac_status); }; }; then
35879  ac_header_compiler=yes
35880else
35881  echo "$as_me: failed program was:" >&5
35882sed 's/^/| /' conftest.$ac_ext >&5
35883
35884ac_header_compiler=no
35885fi
35886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35888echo "${ECHO_T}$ac_header_compiler" >&6
35889
35890# Is the header present?
35891echo "$as_me:$LINENO: checking $ac_header presence" >&5
35892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35893cat >conftest.$ac_ext <<_ACEOF
35894/* confdefs.h.  */
35895_ACEOF
35896cat confdefs.h >>conftest.$ac_ext
35897cat >>conftest.$ac_ext <<_ACEOF
35898/* end confdefs.h.  */
35899#include <$ac_header>
35900_ACEOF
35901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35902  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35903  ac_status=$?
35904  grep -v '^ *+' conftest.er1 >conftest.err
35905  rm -f conftest.er1
35906  cat conftest.err >&5
35907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908  (exit $ac_status); } >/dev/null; then
35909  if test -s conftest.err; then
35910    ac_cpp_err=$ac_c_preproc_warn_flag
35911    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35912  else
35913    ac_cpp_err=
35914  fi
35915else
35916  ac_cpp_err=yes
35917fi
35918if test -z "$ac_cpp_err"; then
35919  ac_header_preproc=yes
35920else
35921  echo "$as_me: failed program was:" >&5
35922sed 's/^/| /' conftest.$ac_ext >&5
35923
35924  ac_header_preproc=no
35925fi
35926rm -f conftest.err conftest.$ac_ext
35927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35928echo "${ECHO_T}$ac_header_preproc" >&6
35929
35930# So?  What about this header?
35931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35932  yes:no: )
35933    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35937    ac_header_preproc=yes
35938    ;;
35939  no:yes:* )
35940    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35942    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35943echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35944    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35946    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35947echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35948    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35950    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35952    (
35953      cat <<\_ASBOX
35954## ------------------------------------------ ##
35955## Report this to the AC_PACKAGE_NAME lists.  ##
35956## ------------------------------------------ ##
35957_ASBOX
35958    ) |
35959      sed "s/^/$as_me: WARNING:     /" >&2
35960    ;;
35961esac
35962echo "$as_me:$LINENO: checking for $ac_header" >&5
35963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35964if eval "test \"\${$as_ac_Header+set}\" = set"; then
35965  echo $ECHO_N "(cached) $ECHO_C" >&6
35966else
35967  eval "$as_ac_Header=\$ac_header_preproc"
35968fi
35969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35971
35972fi
35973if test `eval echo '${'$as_ac_Header'}'` = yes; then
35974  cat >>confdefs.h <<_ACEOF
35975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35976_ACEOF
35977
35978fi
35979
35980done
35981
35982
35983for ac_func in getpagesize
35984do
35985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35986echo "$as_me:$LINENO: checking for $ac_func" >&5
35987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35988if eval "test \"\${$as_ac_var+set}\" = set"; then
35989  echo $ECHO_N "(cached) $ECHO_C" >&6
35990else
35991  cat >conftest.$ac_ext <<_ACEOF
35992/* confdefs.h.  */
35993_ACEOF
35994cat confdefs.h >>conftest.$ac_ext
35995cat >>conftest.$ac_ext <<_ACEOF
35996/* end confdefs.h.  */
35997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35998   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35999#define $ac_func innocuous_$ac_func
36000
36001/* System header to define __stub macros and hopefully few prototypes,
36002    which can conflict with char $ac_func (); below.
36003    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36004    <limits.h> exists even on freestanding compilers.  */
36005
36006#ifdef __STDC__
36007# include <limits.h>
36008#else
36009# include <assert.h>
36010#endif
36011
36012#undef $ac_func
36013
36014/* Override any gcc2 internal prototype to avoid an error.  */
36015#ifdef __cplusplus
36016extern "C"
36017{
36018#endif
36019/* We use char because int might match the return type of a gcc2
36020   builtin and then its argument prototype would still apply.  */
36021char $ac_func ();
36022/* The GNU C library defines this for functions which it implements
36023    to always fail with ENOSYS.  Some functions are actually named
36024    something starting with __ and the normal name is an alias.  */
36025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36026choke me
36027#else
36028char (*f) () = $ac_func;
36029#endif
36030#ifdef __cplusplus
36031}
36032#endif
36033
36034int
36035main ()
36036{
36037return f != $ac_func;
36038  ;
36039  return 0;
36040}
36041_ACEOF
36042rm -f conftest.$ac_objext conftest$ac_exeext
36043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36044  (eval $ac_link) 2>conftest.er1
36045  ac_status=$?
36046  grep -v '^ *+' conftest.er1 >conftest.err
36047  rm -f conftest.er1
36048  cat conftest.err >&5
36049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050  (exit $ac_status); } &&
36051	 { ac_try='test -z "$ac_c_werror_flag"
36052			 || test ! -s conftest.err'
36053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36054  (eval $ac_try) 2>&5
36055  ac_status=$?
36056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057  (exit $ac_status); }; } &&
36058	 { ac_try='test -s conftest$ac_exeext'
36059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060  (eval $ac_try) 2>&5
36061  ac_status=$?
36062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063  (exit $ac_status); }; }; then
36064  eval "$as_ac_var=yes"
36065else
36066  echo "$as_me: failed program was:" >&5
36067sed 's/^/| /' conftest.$ac_ext >&5
36068
36069eval "$as_ac_var=no"
36070fi
36071rm -f conftest.err conftest.$ac_objext \
36072      conftest$ac_exeext conftest.$ac_ext
36073fi
36074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36076if test `eval echo '${'$as_ac_var'}'` = yes; then
36077  cat >>confdefs.h <<_ACEOF
36078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36079_ACEOF
36080
36081fi
36082done
36083
36084echo "$as_me:$LINENO: checking for working mmap" >&5
36085echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
36086if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
36087  echo $ECHO_N "(cached) $ECHO_C" >&6
36088else
36089  if test "$cross_compiling" = yes; then
36090  ac_cv_func_mmap_fixed_mapped=no
36091else
36092  cat >conftest.$ac_ext <<_ACEOF
36093/* confdefs.h.  */
36094_ACEOF
36095cat confdefs.h >>conftest.$ac_ext
36096cat >>conftest.$ac_ext <<_ACEOF
36097/* end confdefs.h.  */
36098$ac_includes_default
36099/* malloc might have been renamed as rpl_malloc. */
36100#undef malloc
36101
36102/* Thanks to Mike Haertel and Jim Avera for this test.
36103   Here is a matrix of mmap possibilities:
36104	mmap private not fixed
36105	mmap private fixed at somewhere currently unmapped
36106	mmap private fixed at somewhere already mapped
36107	mmap shared not fixed
36108	mmap shared fixed at somewhere currently unmapped
36109	mmap shared fixed at somewhere already mapped
36110   For private mappings, we should verify that changes cannot be read()
36111   back from the file, nor mmap's back from the file at a different
36112   address.  (There have been systems where private was not correctly
36113   implemented like the infamous i386 svr4.0, and systems where the
36114   VM page cache was not coherent with the file system buffer cache
36115   like early versions of FreeBSD and possibly contemporary NetBSD.)
36116   For shared mappings, we should conversely verify that changes get
36117   propagated back to all the places they're supposed to be.
36118
36119   Grep wants private fixed already mapped.
36120   The main things grep needs to know about mmap are:
36121   * does it exist and is it safe to write into the mmap'd area
36122   * how to use it (BSD variants)  */
36123
36124#include <fcntl.h>
36125#include <sys/mman.h>
36126
36127#if !STDC_HEADERS && !HAVE_STDLIB_H
36128char *malloc ();
36129#endif
36130
36131/* This mess was copied from the GNU getpagesize.h.  */
36132#if !HAVE_GETPAGESIZE
36133/* Assume that all systems that can run configure have sys/param.h.  */
36134# if !HAVE_SYS_PARAM_H
36135#  define HAVE_SYS_PARAM_H 1
36136# endif
36137
36138# ifdef _SC_PAGESIZE
36139#  define getpagesize() sysconf(_SC_PAGESIZE)
36140# else /* no _SC_PAGESIZE */
36141#  if HAVE_SYS_PARAM_H
36142#   include <sys/param.h>
36143#   ifdef EXEC_PAGESIZE
36144#    define getpagesize() EXEC_PAGESIZE
36145#   else /* no EXEC_PAGESIZE */
36146#    ifdef NBPG
36147#     define getpagesize() NBPG * CLSIZE
36148#     ifndef CLSIZE
36149#      define CLSIZE 1
36150#     endif /* no CLSIZE */
36151#    else /* no NBPG */
36152#     ifdef NBPC
36153#      define getpagesize() NBPC
36154#     else /* no NBPC */
36155#      ifdef PAGESIZE
36156#       define getpagesize() PAGESIZE
36157#      endif /* PAGESIZE */
36158#     endif /* no NBPC */
36159#    endif /* no NBPG */
36160#   endif /* no EXEC_PAGESIZE */
36161#  else /* no HAVE_SYS_PARAM_H */
36162#   define getpagesize() 8192	/* punt totally */
36163#  endif /* no HAVE_SYS_PARAM_H */
36164# endif /* no _SC_PAGESIZE */
36165
36166#endif /* no HAVE_GETPAGESIZE */
36167
36168int
36169main ()
36170{
36171  char *data, *data2, *data3;
36172  int i, pagesize;
36173  int fd;
36174
36175  pagesize = getpagesize ();
36176
36177  /* First, make a file with some known garbage in it. */
36178  data = (char *) malloc (pagesize);
36179  if (!data)
36180    exit (1);
36181  for (i = 0; i < pagesize; ++i)
36182    *(data + i) = rand ();
36183  umask (0);
36184  fd = creat ("conftest.mmap", 0600);
36185  if (fd < 0)
36186    exit (1);
36187  if (write (fd, data, pagesize) != pagesize)
36188    exit (1);
36189  close (fd);
36190
36191  /* Next, try to mmap the file at a fixed address which already has
36192     something else allocated at it.  If we can, also make sure that
36193     we see the same garbage.  */
36194  fd = open ("conftest.mmap", O_RDWR);
36195  if (fd < 0)
36196    exit (1);
36197  data2 = (char *) malloc (2 * pagesize);
36198  if (!data2)
36199    exit (1);
36200  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
36201  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
36202		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
36203    exit (1);
36204  for (i = 0; i < pagesize; ++i)
36205    if (*(data + i) != *(data2 + i))
36206      exit (1);
36207
36208  /* Finally, make sure that changes to the mapped area do not
36209     percolate back to the file as seen by read().  (This is a bug on
36210     some variants of i386 svr4.0.)  */
36211  for (i = 0; i < pagesize; ++i)
36212    *(data2 + i) = *(data2 + i) + 1;
36213  data3 = (char *) malloc (pagesize);
36214  if (!data3)
36215    exit (1);
36216  if (read (fd, data3, pagesize) != pagesize)
36217    exit (1);
36218  for (i = 0; i < pagesize; ++i)
36219    if (*(data + i) != *(data3 + i))
36220      exit (1);
36221  close (fd);
36222  exit (0);
36223}
36224_ACEOF
36225rm -f conftest$ac_exeext
36226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36227  (eval $ac_link) 2>&5
36228  ac_status=$?
36229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36232  (eval $ac_try) 2>&5
36233  ac_status=$?
36234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235  (exit $ac_status); }; }; then
36236  ac_cv_func_mmap_fixed_mapped=yes
36237else
36238  echo "$as_me: program exited with status $ac_status" >&5
36239echo "$as_me: failed program was:" >&5
36240sed 's/^/| /' conftest.$ac_ext >&5
36241
36242( exit $ac_status )
36243ac_cv_func_mmap_fixed_mapped=no
36244fi
36245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36246fi
36247fi
36248echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
36249echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
36250if test $ac_cv_func_mmap_fixed_mapped = yes; then
36251
36252cat >>confdefs.h <<\_ACEOF
36253#define HAVE_MMAP 1
36254_ACEOF
36255
36256fi
36257rm -f conftest.mmap
36258
36259
36260    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
36261echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
36262if test "${ac_cv_gnu_library_2_1+set}" = set; then
36263  echo $ECHO_N "(cached) $ECHO_C" >&6
36264else
36265  cat >conftest.$ac_ext <<_ACEOF
36266/* confdefs.h.  */
36267_ACEOF
36268cat confdefs.h >>conftest.$ac_ext
36269cat >>conftest.$ac_ext <<_ACEOF
36270/* end confdefs.h.  */
36271
36272#include <features.h>
36273#ifdef __GNU_LIBRARY__
36274 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
36275  Lucky GNU user
36276 #endif
36277#endif
36278
36279_ACEOF
36280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36281  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
36282  ac_cv_gnu_library_2_1=yes
36283else
36284  ac_cv_gnu_library_2_1=no
36285fi
36286rm -f conftest*
36287
36288
36289
36290fi
36291echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
36292echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
36293
36294    GLIBC21="$ac_cv_gnu_library_2_1"
36295
36296
36297
36298
36299  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
36300echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
36301if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
36302  echo $ECHO_N "(cached) $ECHO_C" >&6
36303else
36304
36305      if test "$cross_compiling" = yes; then
36306
36307          # Guess based on the CPU.
36308          case "$host_cpu" in
36309            alpha* | i3456786 | m68k | s390*)
36310              gt_cv_int_divbyzero_sigfpe="guessing yes";;
36311            *)
36312              gt_cv_int_divbyzero_sigfpe="guessing no";;
36313          esac
36314
36315else
36316  cat >conftest.$ac_ext <<_ACEOF
36317/* confdefs.h.  */
36318_ACEOF
36319cat confdefs.h >>conftest.$ac_ext
36320cat >>conftest.$ac_ext <<_ACEOF
36321/* end confdefs.h.  */
36322
36323#include <stdlib.h>
36324#include <signal.h>
36325
36326static void
36327#ifdef __cplusplus
36328sigfpe_handler (int sig)
36329#else
36330sigfpe_handler (sig) int sig;
36331#endif
36332{
36333  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
36334  exit (sig != SIGFPE);
36335}
36336
36337int x = 1;
36338int y = 0;
36339int z;
36340int nan;
36341
36342int main ()
36343{
36344  signal (SIGFPE, sigfpe_handler);
36345/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
36346#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
36347  signal (SIGTRAP, sigfpe_handler);
36348#endif
36349/* Linux/SPARC yields signal SIGILL.  */
36350#if defined (__sparc__) && defined (__linux__)
36351  signal (SIGILL, sigfpe_handler);
36352#endif
36353
36354  z = x / y;
36355  nan = y / y;
36356  exit (1);
36357}
36358
36359_ACEOF
36360rm -f conftest$ac_exeext
36361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36362  (eval $ac_link) 2>&5
36363  ac_status=$?
36364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367  (eval $ac_try) 2>&5
36368  ac_status=$?
36369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370  (exit $ac_status); }; }; then
36371  gt_cv_int_divbyzero_sigfpe=yes
36372else
36373  echo "$as_me: program exited with status $ac_status" >&5
36374echo "$as_me: failed program was:" >&5
36375sed 's/^/| /' conftest.$ac_ext >&5
36376
36377( exit $ac_status )
36378gt_cv_int_divbyzero_sigfpe=no
36379fi
36380rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36381fi
36382
36383fi
36384echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
36385echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
36386  case "$gt_cv_int_divbyzero_sigfpe" in
36387    *yes) value=1;;
36388    *) value=0;;
36389  esac
36390
36391cat >>confdefs.h <<_ACEOF
36392#define INTDIV0_RAISES_SIGFPE $value
36393_ACEOF
36394
36395
36396
36397  echo "$as_me:$LINENO: checking for inttypes.h" >&5
36398echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
36399if test "${gt_cv_header_inttypes_h+set}" = set; then
36400  echo $ECHO_N "(cached) $ECHO_C" >&6
36401else
36402
36403    cat >conftest.$ac_ext <<_ACEOF
36404/* confdefs.h.  */
36405_ACEOF
36406cat confdefs.h >>conftest.$ac_ext
36407cat >>conftest.$ac_ext <<_ACEOF
36408/* end confdefs.h.  */
36409#include <sys/types.h>
36410#include <inttypes.h>
36411int
36412main ()
36413{
36414
36415  ;
36416  return 0;
36417}
36418_ACEOF
36419rm -f conftest.$ac_objext
36420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36421  (eval $ac_compile) 2>conftest.er1
36422  ac_status=$?
36423  grep -v '^ *+' conftest.er1 >conftest.err
36424  rm -f conftest.er1
36425  cat conftest.err >&5
36426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427  (exit $ac_status); } &&
36428	 { ac_try='test -z "$ac_c_werror_flag"
36429			 || test ! -s conftest.err'
36430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36431  (eval $ac_try) 2>&5
36432  ac_status=$?
36433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434  (exit $ac_status); }; } &&
36435	 { ac_try='test -s conftest.$ac_objext'
36436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437  (eval $ac_try) 2>&5
36438  ac_status=$?
36439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440  (exit $ac_status); }; }; then
36441  gt_cv_header_inttypes_h=yes
36442else
36443  echo "$as_me: failed program was:" >&5
36444sed 's/^/| /' conftest.$ac_ext >&5
36445
36446gt_cv_header_inttypes_h=no
36447fi
36448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36449
36450fi
36451echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
36452echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
36453  if test $gt_cv_header_inttypes_h = yes; then
36454
36455cat >>confdefs.h <<_ACEOF
36456#define HAVE_INTTYPES_H 1
36457_ACEOF
36458
36459  fi
36460
36461
36462
36463  if test $gt_cv_header_inttypes_h = yes; then
36464    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
36465echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
36466if test "${gt_cv_inttypes_pri_broken+set}" = set; then
36467  echo $ECHO_N "(cached) $ECHO_C" >&6
36468else
36469
36470        cat >conftest.$ac_ext <<_ACEOF
36471/* confdefs.h.  */
36472_ACEOF
36473cat confdefs.h >>conftest.$ac_ext
36474cat >>conftest.$ac_ext <<_ACEOF
36475/* end confdefs.h.  */
36476#include <inttypes.h>
36477#ifdef PRId32
36478char *p = PRId32;
36479#endif
36480
36481int
36482main ()
36483{
36484
36485  ;
36486  return 0;
36487}
36488_ACEOF
36489rm -f conftest.$ac_objext
36490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36491  (eval $ac_compile) 2>conftest.er1
36492  ac_status=$?
36493  grep -v '^ *+' conftest.er1 >conftest.err
36494  rm -f conftest.er1
36495  cat conftest.err >&5
36496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36497  (exit $ac_status); } &&
36498	 { ac_try='test -z "$ac_c_werror_flag"
36499			 || test ! -s conftest.err'
36500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36501  (eval $ac_try) 2>&5
36502  ac_status=$?
36503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504  (exit $ac_status); }; } &&
36505	 { ac_try='test -s conftest.$ac_objext'
36506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36507  (eval $ac_try) 2>&5
36508  ac_status=$?
36509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510  (exit $ac_status); }; }; then
36511  gt_cv_inttypes_pri_broken=no
36512else
36513  echo "$as_me: failed program was:" >&5
36514sed 's/^/| /' conftest.$ac_ext >&5
36515
36516gt_cv_inttypes_pri_broken=yes
36517fi
36518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36519
36520fi
36521echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
36522echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
36523  fi
36524  if test "$gt_cv_inttypes_pri_broken" = yes; then
36525
36526cat >>confdefs.h <<_ACEOF
36527#define PRI_MACROS_BROKEN 1
36528_ACEOF
36529
36530  fi
36531
36532
36533    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
36534echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
36535if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
36536  echo $ECHO_N "(cached) $ECHO_C" >&6
36537else
36538  gt_save_CPPFLAGS="$CPPFLAGS"
36539     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
36540     gt_save_LIBS="$LIBS"
36541     LIBS="$LIBS -framework CoreFoundation"
36542     cat >conftest.$ac_ext <<_ACEOF
36543/* confdefs.h.  */
36544_ACEOF
36545cat confdefs.h >>conftest.$ac_ext
36546cat >>conftest.$ac_ext <<_ACEOF
36547/* end confdefs.h.  */
36548#include <CFPreferences.h>
36549int
36550main ()
36551{
36552CFPreferencesCopyAppValue(NULL, NULL)
36553  ;
36554  return 0;
36555}
36556_ACEOF
36557rm -f conftest.$ac_objext conftest$ac_exeext
36558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36559  (eval $ac_link) 2>conftest.er1
36560  ac_status=$?
36561  grep -v '^ *+' conftest.er1 >conftest.err
36562  rm -f conftest.er1
36563  cat conftest.err >&5
36564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565  (exit $ac_status); } &&
36566	 { ac_try='test -z "$ac_c_werror_flag"
36567			 || test ! -s conftest.err'
36568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569  (eval $ac_try) 2>&5
36570  ac_status=$?
36571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572  (exit $ac_status); }; } &&
36573	 { ac_try='test -s conftest$ac_exeext'
36574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575  (eval $ac_try) 2>&5
36576  ac_status=$?
36577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578  (exit $ac_status); }; }; then
36579  gt_cv_func_CFPreferencesCopyAppValue=yes
36580else
36581  echo "$as_me: failed program was:" >&5
36582sed 's/^/| /' conftest.$ac_ext >&5
36583
36584gt_cv_func_CFPreferencesCopyAppValue=no
36585fi
36586rm -f conftest.err conftest.$ac_objext \
36587      conftest$ac_exeext conftest.$ac_ext
36588     CPPFLAGS="$gt_save_CPPFLAGS"
36589     LIBS="$gt_save_LIBS"
36590fi
36591echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
36592echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
36593  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
36594
36595cat >>confdefs.h <<\_ACEOF
36596#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
36597_ACEOF
36598
36599  fi
36600    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
36601echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
36602if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
36603  echo $ECHO_N "(cached) $ECHO_C" >&6
36604else
36605  gt_save_CPPFLAGS="$CPPFLAGS"
36606     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
36607     gt_save_LIBS="$LIBS"
36608     LIBS="$LIBS -framework CoreFoundation"
36609     cat >conftest.$ac_ext <<_ACEOF
36610/* confdefs.h.  */
36611_ACEOF
36612cat confdefs.h >>conftest.$ac_ext
36613cat >>conftest.$ac_ext <<_ACEOF
36614/* end confdefs.h.  */
36615#include <CFLocale.h>
36616int
36617main ()
36618{
36619CFLocaleCopyCurrent();
36620  ;
36621  return 0;
36622}
36623_ACEOF
36624rm -f conftest.$ac_objext conftest$ac_exeext
36625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36626  (eval $ac_link) 2>conftest.er1
36627  ac_status=$?
36628  grep -v '^ *+' conftest.er1 >conftest.err
36629  rm -f conftest.er1
36630  cat conftest.err >&5
36631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632  (exit $ac_status); } &&
36633	 { ac_try='test -z "$ac_c_werror_flag"
36634			 || test ! -s conftest.err'
36635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36636  (eval $ac_try) 2>&5
36637  ac_status=$?
36638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639  (exit $ac_status); }; } &&
36640	 { ac_try='test -s conftest$ac_exeext'
36641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36642  (eval $ac_try) 2>&5
36643  ac_status=$?
36644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645  (exit $ac_status); }; }; then
36646  gt_cv_func_CFLocaleCopyCurrent=yes
36647else
36648  echo "$as_me: failed program was:" >&5
36649sed 's/^/| /' conftest.$ac_ext >&5
36650
36651gt_cv_func_CFLocaleCopyCurrent=no
36652fi
36653rm -f conftest.err conftest.$ac_objext \
36654      conftest$ac_exeext conftest.$ac_ext
36655     CPPFLAGS="$gt_save_CPPFLAGS"
36656     LIBS="$gt_save_LIBS"
36657fi
36658echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
36659echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
36660  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36661
36662cat >>confdefs.h <<\_ACEOF
36663#define HAVE_CFLOCALECOPYCURRENT 1
36664_ACEOF
36665
36666  fi
36667  INTL_MACOSX_LIBS=
36668  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36669    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
36670  fi
36671
36672
36673
36674      if test "X$prefix" = "XNONE"; then
36675    acl_final_prefix="$ac_default_prefix"
36676  else
36677    acl_final_prefix="$prefix"
36678  fi
36679  if test "X$exec_prefix" = "XNONE"; then
36680    acl_final_exec_prefix='${prefix}'
36681  else
36682    acl_final_exec_prefix="$exec_prefix"
36683  fi
36684  acl_save_prefix="$prefix"
36685  prefix="$acl_final_prefix"
36686  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
36687  prefix="$acl_save_prefix"
36688
36689
36690
36691                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
36692echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
36693if test "${acl_cv_rpath+set}" = set; then
36694  echo $ECHO_N "(cached) $ECHO_C" >&6
36695else
36696
36697    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
36698    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
36699    . ./conftest.sh
36700    rm -f ./conftest.sh
36701    acl_cv_rpath=done
36702
36703fi
36704echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
36705echo "${ECHO_T}$acl_cv_rpath" >&6
36706  wl="$acl_cv_wl"
36707  libext="$acl_cv_libext"
36708  shlibext="$acl_cv_shlibext"
36709  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
36710  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
36711  hardcode_direct="$acl_cv_hardcode_direct"
36712  hardcode_minus_L="$acl_cv_hardcode_minus_L"
36713    # Check whether --enable-rpath or --disable-rpath was given.
36714if test "${enable_rpath+set}" = set; then
36715  enableval="$enable_rpath"
36716  :
36717else
36718  enable_rpath=yes
36719fi;
36720
36721
36722
36723
36724
36725
36726
36727    use_additional=yes
36728
36729  acl_save_prefix="$prefix"
36730  prefix="$acl_final_prefix"
36731  acl_save_exec_prefix="$exec_prefix"
36732  exec_prefix="$acl_final_exec_prefix"
36733
36734    eval additional_includedir=\"$includedir\"
36735    eval additional_libdir=\"$libdir\"
36736
36737  exec_prefix="$acl_save_exec_prefix"
36738  prefix="$acl_save_prefix"
36739
36740
36741# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36742if test "${with_libiconv_prefix+set}" = set; then
36743  withval="$with_libiconv_prefix"
36744
36745    if test "X$withval" = "Xno"; then
36746      use_additional=no
36747    else
36748      if test "X$withval" = "X"; then
36749
36750  acl_save_prefix="$prefix"
36751  prefix="$acl_final_prefix"
36752  acl_save_exec_prefix="$exec_prefix"
36753  exec_prefix="$acl_final_exec_prefix"
36754
36755          eval additional_includedir=\"$includedir\"
36756          eval additional_libdir=\"$libdir\"
36757
36758  exec_prefix="$acl_save_exec_prefix"
36759  prefix="$acl_save_prefix"
36760
36761      else
36762        additional_includedir="$withval/include"
36763        additional_libdir="$withval/lib"
36764      fi
36765    fi
36766
36767fi;
36768      LIBICONV=
36769  LTLIBICONV=
36770  INCICONV=
36771  rpathdirs=
36772  ltrpathdirs=
36773  names_already_handled=
36774  names_next_round='iconv '
36775  while test -n "$names_next_round"; do
36776    names_this_round="$names_next_round"
36777    names_next_round=
36778    for name in $names_this_round; do
36779      already_handled=
36780      for n in $names_already_handled; do
36781        if test "$n" = "$name"; then
36782          already_handled=yes
36783          break
36784        fi
36785      done
36786      if test -z "$already_handled"; then
36787        names_already_handled="$names_already_handled $name"
36788                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36789        eval value=\"\$HAVE_LIB$uppername\"
36790        if test -n "$value"; then
36791          if test "$value" = yes; then
36792            eval value=\"\$LIB$uppername\"
36793            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
36794            eval value=\"\$LTLIB$uppername\"
36795            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
36796          else
36797                                    :
36798          fi
36799        else
36800                              found_dir=
36801          found_la=
36802          found_so=
36803          found_a=
36804          if test $use_additional = yes; then
36805            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
36806              found_dir="$additional_libdir"
36807              found_so="$additional_libdir/lib$name.$shlibext"
36808              if test -f "$additional_libdir/lib$name.la"; then
36809                found_la="$additional_libdir/lib$name.la"
36810              fi
36811            else
36812              if test -f "$additional_libdir/lib$name.$libext"; then
36813                found_dir="$additional_libdir"
36814                found_a="$additional_libdir/lib$name.$libext"
36815                if test -f "$additional_libdir/lib$name.la"; then
36816                  found_la="$additional_libdir/lib$name.la"
36817                fi
36818              fi
36819            fi
36820          fi
36821          if test "X$found_dir" = "X"; then
36822            for x in $LDFLAGS $LTLIBICONV; do
36823
36824  acl_save_prefix="$prefix"
36825  prefix="$acl_final_prefix"
36826  acl_save_exec_prefix="$exec_prefix"
36827  exec_prefix="$acl_final_exec_prefix"
36828  eval x=\"$x\"
36829  exec_prefix="$acl_save_exec_prefix"
36830  prefix="$acl_save_prefix"
36831
36832              case "$x" in
36833                -L*)
36834                  dir=`echo "X$x" | sed -e 's/^X-L//'`
36835                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
36836                    found_dir="$dir"
36837                    found_so="$dir/lib$name.$shlibext"
36838                    if test -f "$dir/lib$name.la"; then
36839                      found_la="$dir/lib$name.la"
36840                    fi
36841                  else
36842                    if test -f "$dir/lib$name.$libext"; then
36843                      found_dir="$dir"
36844                      found_a="$dir/lib$name.$libext"
36845                      if test -f "$dir/lib$name.la"; then
36846                        found_la="$dir/lib$name.la"
36847                      fi
36848                    fi
36849                  fi
36850                  ;;
36851              esac
36852              if test "X$found_dir" != "X"; then
36853                break
36854              fi
36855            done
36856          fi
36857          if test "X$found_dir" != "X"; then
36858                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
36859            if test "X$found_so" != "X"; then
36860                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
36861                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36862              else
36863                                                                                haveit=
36864                for x in $ltrpathdirs; do
36865                  if test "X$x" = "X$found_dir"; then
36866                    haveit=yes
36867                    break
36868                  fi
36869                done
36870                if test -z "$haveit"; then
36871                  ltrpathdirs="$ltrpathdirs $found_dir"
36872                fi
36873                                if test "$hardcode_direct" = yes; then
36874                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36875                else
36876                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
36877                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36878                                                            haveit=
36879                    for x in $rpathdirs; do
36880                      if test "X$x" = "X$found_dir"; then
36881                        haveit=yes
36882                        break
36883                      fi
36884                    done
36885                    if test -z "$haveit"; then
36886                      rpathdirs="$rpathdirs $found_dir"
36887                    fi
36888                  else
36889                                                                                haveit=
36890                    for x in $LDFLAGS $LIBICONV; do
36891
36892  acl_save_prefix="$prefix"
36893  prefix="$acl_final_prefix"
36894  acl_save_exec_prefix="$exec_prefix"
36895  exec_prefix="$acl_final_exec_prefix"
36896  eval x=\"$x\"
36897  exec_prefix="$acl_save_exec_prefix"
36898  prefix="$acl_save_prefix"
36899
36900                      if test "X$x" = "X-L$found_dir"; then
36901                        haveit=yes
36902                        break
36903                      fi
36904                    done
36905                    if test -z "$haveit"; then
36906                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
36907                    fi
36908                    if test "$hardcode_minus_L" != no; then
36909                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36910                    else
36911                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
36912                    fi
36913                  fi
36914                fi
36915              fi
36916            else
36917              if test "X$found_a" != "X"; then
36918                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
36919              else
36920                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
36921              fi
36922            fi
36923                        additional_includedir=
36924            case "$found_dir" in
36925              */lib | */lib/)
36926                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
36927                additional_includedir="$basedir/include"
36928                ;;
36929            esac
36930            if test "X$additional_includedir" != "X"; then
36931                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
36932                haveit=
36933                if test "X$additional_includedir" = "X/usr/local/include"; then
36934                  if test -n "$GCC"; then
36935                    case $host_os in
36936                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36937                    esac
36938                  fi
36939                fi
36940                if test -z "$haveit"; then
36941                  for x in $CPPFLAGS $INCICONV; do
36942
36943  acl_save_prefix="$prefix"
36944  prefix="$acl_final_prefix"
36945  acl_save_exec_prefix="$exec_prefix"
36946  exec_prefix="$acl_final_exec_prefix"
36947  eval x=\"$x\"
36948  exec_prefix="$acl_save_exec_prefix"
36949  prefix="$acl_save_prefix"
36950
36951                    if test "X$x" = "X-I$additional_includedir"; then
36952                      haveit=yes
36953                      break
36954                    fi
36955                  done
36956                  if test -z "$haveit"; then
36957                    if test -d "$additional_includedir"; then
36958                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
36959                    fi
36960                  fi
36961                fi
36962              fi
36963            fi
36964                        if test -n "$found_la"; then
36965                                                        save_libdir="$libdir"
36966              case "$found_la" in
36967                */* | *\\*) . "$found_la" ;;
36968                *) . "./$found_la" ;;
36969              esac
36970              libdir="$save_libdir"
36971                            for dep in $dependency_libs; do
36972                case "$dep" in
36973                  -L*)
36974                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36975                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
36976                      haveit=
36977                      if test "X$additional_libdir" = "X/usr/local/lib"; then
36978                        if test -n "$GCC"; then
36979                          case $host_os in
36980                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36981                          esac
36982                        fi
36983                      fi
36984                      if test -z "$haveit"; then
36985                        haveit=
36986                        for x in $LDFLAGS $LIBICONV; do
36987
36988  acl_save_prefix="$prefix"
36989  prefix="$acl_final_prefix"
36990  acl_save_exec_prefix="$exec_prefix"
36991  exec_prefix="$acl_final_exec_prefix"
36992  eval x=\"$x\"
36993  exec_prefix="$acl_save_exec_prefix"
36994  prefix="$acl_save_prefix"
36995
36996                          if test "X$x" = "X-L$additional_libdir"; then
36997                            haveit=yes
36998                            break
36999                          fi
37000                        done
37001                        if test -z "$haveit"; then
37002                          if test -d "$additional_libdir"; then
37003                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
37004                          fi
37005                        fi
37006                        haveit=
37007                        for x in $LDFLAGS $LTLIBICONV; do
37008
37009  acl_save_prefix="$prefix"
37010  prefix="$acl_final_prefix"
37011  acl_save_exec_prefix="$exec_prefix"
37012  exec_prefix="$acl_final_exec_prefix"
37013  eval x=\"$x\"
37014  exec_prefix="$acl_save_exec_prefix"
37015  prefix="$acl_save_prefix"
37016
37017                          if test "X$x" = "X-L$additional_libdir"; then
37018                            haveit=yes
37019                            break
37020                          fi
37021                        done
37022                        if test -z "$haveit"; then
37023                          if test -d "$additional_libdir"; then
37024                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
37025                          fi
37026                        fi
37027                      fi
37028                    fi
37029                    ;;
37030                  -R*)
37031                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
37032                    if test "$enable_rpath" != no; then
37033                                                                  haveit=
37034                      for x in $rpathdirs; do
37035                        if test "X$x" = "X$dir"; then
37036                          haveit=yes
37037                          break
37038                        fi
37039                      done
37040                      if test -z "$haveit"; then
37041                        rpathdirs="$rpathdirs $dir"
37042                      fi
37043                                                                  haveit=
37044                      for x in $ltrpathdirs; do
37045                        if test "X$x" = "X$dir"; then
37046                          haveit=yes
37047                          break
37048                        fi
37049                      done
37050                      if test -z "$haveit"; then
37051                        ltrpathdirs="$ltrpathdirs $dir"
37052                      fi
37053                    fi
37054                    ;;
37055                  -l*)
37056                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37057                    ;;
37058                  *.la)
37059                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37060                    ;;
37061                  *)
37062                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
37063                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
37064                    ;;
37065                esac
37066              done
37067            fi
37068          else
37069                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
37070            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
37071          fi
37072        fi
37073      fi
37074    done
37075  done
37076  if test "X$rpathdirs" != "X"; then
37077    if test -n "$hardcode_libdir_separator"; then
37078                        alldirs=
37079      for found_dir in $rpathdirs; do
37080        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
37081      done
37082            acl_save_libdir="$libdir"
37083      libdir="$alldirs"
37084      eval flag=\"$hardcode_libdir_flag_spec\"
37085      libdir="$acl_save_libdir"
37086      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
37087    else
37088            for found_dir in $rpathdirs; do
37089        acl_save_libdir="$libdir"
37090        libdir="$found_dir"
37091        eval flag=\"$hardcode_libdir_flag_spec\"
37092        libdir="$acl_save_libdir"
37093        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
37094      done
37095    fi
37096  fi
37097  if test "X$ltrpathdirs" != "X"; then
37098            for found_dir in $ltrpathdirs; do
37099      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
37100    done
37101  fi
37102
37103
37104
37105
37106
37107
37108
37109
37110  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37111echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37112if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37113  echo $ECHO_N "(cached) $ECHO_C" >&6
37114else
37115  cat >conftest.$ac_ext <<_ACEOF
37116/* confdefs.h.  */
37117_ACEOF
37118cat confdefs.h >>conftest.$ac_ext
37119cat >>conftest.$ac_ext <<_ACEOF
37120/* end confdefs.h.  */
37121$ac_includes_default
37122int
37123main ()
37124{
37125if ((ptrdiff_t *) 0)
37126  return 0;
37127if (sizeof (ptrdiff_t))
37128  return 0;
37129  ;
37130  return 0;
37131}
37132_ACEOF
37133rm -f conftest.$ac_objext
37134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37135  (eval $ac_compile) 2>conftest.er1
37136  ac_status=$?
37137  grep -v '^ *+' conftest.er1 >conftest.err
37138  rm -f conftest.er1
37139  cat conftest.err >&5
37140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141  (exit $ac_status); } &&
37142	 { ac_try='test -z "$ac_c_werror_flag"
37143			 || test ! -s conftest.err'
37144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37145  (eval $ac_try) 2>&5
37146  ac_status=$?
37147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148  (exit $ac_status); }; } &&
37149	 { ac_try='test -s conftest.$ac_objext'
37150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37151  (eval $ac_try) 2>&5
37152  ac_status=$?
37153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154  (exit $ac_status); }; }; then
37155  ac_cv_type_ptrdiff_t=yes
37156else
37157  echo "$as_me: failed program was:" >&5
37158sed 's/^/| /' conftest.$ac_ext >&5
37159
37160ac_cv_type_ptrdiff_t=no
37161fi
37162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37163fi
37164echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37165echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37166if test $ac_cv_type_ptrdiff_t = yes; then
37167  :
37168else
37169
37170cat >>confdefs.h <<\_ACEOF
37171#define ptrdiff_t long
37172_ACEOF
37173
37174
37175fi
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186
37187for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
37188stdlib.h string.h unistd.h sys/param.h
37189do
37190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37191if eval "test \"\${$as_ac_Header+set}\" = set"; then
37192  echo "$as_me:$LINENO: checking for $ac_header" >&5
37193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37194if eval "test \"\${$as_ac_Header+set}\" = set"; then
37195  echo $ECHO_N "(cached) $ECHO_C" >&6
37196fi
37197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37199else
37200  # Is the header compilable?
37201echo "$as_me:$LINENO: checking $ac_header usability" >&5
37202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37203cat >conftest.$ac_ext <<_ACEOF
37204/* confdefs.h.  */
37205_ACEOF
37206cat confdefs.h >>conftest.$ac_ext
37207cat >>conftest.$ac_ext <<_ACEOF
37208/* end confdefs.h.  */
37209$ac_includes_default
37210#include <$ac_header>
37211_ACEOF
37212rm -f conftest.$ac_objext
37213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37214  (eval $ac_compile) 2>conftest.er1
37215  ac_status=$?
37216  grep -v '^ *+' conftest.er1 >conftest.err
37217  rm -f conftest.er1
37218  cat conftest.err >&5
37219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220  (exit $ac_status); } &&
37221	 { ac_try='test -z "$ac_c_werror_flag"
37222			 || test ! -s conftest.err'
37223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37224  (eval $ac_try) 2>&5
37225  ac_status=$?
37226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37227  (exit $ac_status); }; } &&
37228	 { ac_try='test -s conftest.$ac_objext'
37229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37230  (eval $ac_try) 2>&5
37231  ac_status=$?
37232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233  (exit $ac_status); }; }; then
37234  ac_header_compiler=yes
37235else
37236  echo "$as_me: failed program was:" >&5
37237sed 's/^/| /' conftest.$ac_ext >&5
37238
37239ac_header_compiler=no
37240fi
37241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37243echo "${ECHO_T}$ac_header_compiler" >&6
37244
37245# Is the header present?
37246echo "$as_me:$LINENO: checking $ac_header presence" >&5
37247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37248cat >conftest.$ac_ext <<_ACEOF
37249/* confdefs.h.  */
37250_ACEOF
37251cat confdefs.h >>conftest.$ac_ext
37252cat >>conftest.$ac_ext <<_ACEOF
37253/* end confdefs.h.  */
37254#include <$ac_header>
37255_ACEOF
37256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37258  ac_status=$?
37259  grep -v '^ *+' conftest.er1 >conftest.err
37260  rm -f conftest.er1
37261  cat conftest.err >&5
37262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263  (exit $ac_status); } >/dev/null; then
37264  if test -s conftest.err; then
37265    ac_cpp_err=$ac_c_preproc_warn_flag
37266    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37267  else
37268    ac_cpp_err=
37269  fi
37270else
37271  ac_cpp_err=yes
37272fi
37273if test -z "$ac_cpp_err"; then
37274  ac_header_preproc=yes
37275else
37276  echo "$as_me: failed program was:" >&5
37277sed 's/^/| /' conftest.$ac_ext >&5
37278
37279  ac_header_preproc=no
37280fi
37281rm -f conftest.err conftest.$ac_ext
37282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37283echo "${ECHO_T}$ac_header_preproc" >&6
37284
37285# So?  What about this header?
37286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37287  yes:no: )
37288    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37292    ac_header_preproc=yes
37293    ;;
37294  no:yes:* )
37295    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37297    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37298echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37299    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37301    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37302echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37305    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37307    (
37308      cat <<\_ASBOX
37309## ------------------------------------------ ##
37310## Report this to the AC_PACKAGE_NAME lists.  ##
37311## ------------------------------------------ ##
37312_ASBOX
37313    ) |
37314      sed "s/^/$as_me: WARNING:     /" >&2
37315    ;;
37316esac
37317echo "$as_me:$LINENO: checking for $ac_header" >&5
37318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37319if eval "test \"\${$as_ac_Header+set}\" = set"; then
37320  echo $ECHO_N "(cached) $ECHO_C" >&6
37321else
37322  eval "$as_ac_Header=\$ac_header_preproc"
37323fi
37324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37326
37327fi
37328if test `eval echo '${'$as_ac_Header'}'` = yes; then
37329  cat >>confdefs.h <<_ACEOF
37330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37331_ACEOF
37332
37333fi
37334
37335done
37336
37337
37338
37339
37340
37341
37342
37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
37361mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
37362strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
37363__fsetlocking
37364do
37365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37366echo "$as_me:$LINENO: checking for $ac_func" >&5
37367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37368if eval "test \"\${$as_ac_var+set}\" = set"; then
37369  echo $ECHO_N "(cached) $ECHO_C" >&6
37370else
37371  cat >conftest.$ac_ext <<_ACEOF
37372/* confdefs.h.  */
37373_ACEOF
37374cat confdefs.h >>conftest.$ac_ext
37375cat >>conftest.$ac_ext <<_ACEOF
37376/* end confdefs.h.  */
37377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37378   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37379#define $ac_func innocuous_$ac_func
37380
37381/* System header to define __stub macros and hopefully few prototypes,
37382    which can conflict with char $ac_func (); below.
37383    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37384    <limits.h> exists even on freestanding compilers.  */
37385
37386#ifdef __STDC__
37387# include <limits.h>
37388#else
37389# include <assert.h>
37390#endif
37391
37392#undef $ac_func
37393
37394/* Override any gcc2 internal prototype to avoid an error.  */
37395#ifdef __cplusplus
37396extern "C"
37397{
37398#endif
37399/* We use char because int might match the return type of a gcc2
37400   builtin and then its argument prototype would still apply.  */
37401char $ac_func ();
37402/* The GNU C library defines this for functions which it implements
37403    to always fail with ENOSYS.  Some functions are actually named
37404    something starting with __ and the normal name is an alias.  */
37405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37406choke me
37407#else
37408char (*f) () = $ac_func;
37409#endif
37410#ifdef __cplusplus
37411}
37412#endif
37413
37414int
37415main ()
37416{
37417return f != $ac_func;
37418  ;
37419  return 0;
37420}
37421_ACEOF
37422rm -f conftest.$ac_objext conftest$ac_exeext
37423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37424  (eval $ac_link) 2>conftest.er1
37425  ac_status=$?
37426  grep -v '^ *+' conftest.er1 >conftest.err
37427  rm -f conftest.er1
37428  cat conftest.err >&5
37429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430  (exit $ac_status); } &&
37431	 { ac_try='test -z "$ac_c_werror_flag"
37432			 || test ! -s conftest.err'
37433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37434  (eval $ac_try) 2>&5
37435  ac_status=$?
37436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437  (exit $ac_status); }; } &&
37438	 { ac_try='test -s conftest$ac_exeext'
37439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37440  (eval $ac_try) 2>&5
37441  ac_status=$?
37442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443  (exit $ac_status); }; }; then
37444  eval "$as_ac_var=yes"
37445else
37446  echo "$as_me: failed program was:" >&5
37447sed 's/^/| /' conftest.$ac_ext >&5
37448
37449eval "$as_ac_var=no"
37450fi
37451rm -f conftest.err conftest.$ac_objext \
37452      conftest$ac_exeext conftest.$ac_ext
37453fi
37454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37456if test `eval echo '${'$as_ac_var'}'` = yes; then
37457  cat >>confdefs.h <<_ACEOF
37458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37459_ACEOF
37460
37461fi
37462done
37463
37464
37465
37466  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
37467echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
37468if test "${ac_cv_have_decl__snprintf+set}" = set; then
37469  echo $ECHO_N "(cached) $ECHO_C" >&6
37470else
37471  cat >conftest.$ac_ext <<_ACEOF
37472/* confdefs.h.  */
37473_ACEOF
37474cat confdefs.h >>conftest.$ac_ext
37475cat >>conftest.$ac_ext <<_ACEOF
37476/* end confdefs.h.  */
37477#include <stdio.h>
37478int
37479main ()
37480{
37481
37482#ifndef _snprintf
37483  char *p = (char *) _snprintf;
37484#endif
37485
37486  ;
37487  return 0;
37488}
37489_ACEOF
37490rm -f conftest.$ac_objext
37491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37492  (eval $ac_compile) 2>conftest.er1
37493  ac_status=$?
37494  grep -v '^ *+' conftest.er1 >conftest.err
37495  rm -f conftest.er1
37496  cat conftest.err >&5
37497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498  (exit $ac_status); } &&
37499	 { ac_try='test -z "$ac_c_werror_flag"
37500			 || test ! -s conftest.err'
37501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502  (eval $ac_try) 2>&5
37503  ac_status=$?
37504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505  (exit $ac_status); }; } &&
37506	 { ac_try='test -s conftest.$ac_objext'
37507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508  (eval $ac_try) 2>&5
37509  ac_status=$?
37510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511  (exit $ac_status); }; }; then
37512  ac_cv_have_decl__snprintf=yes
37513else
37514  echo "$as_me: failed program was:" >&5
37515sed 's/^/| /' conftest.$ac_ext >&5
37516
37517ac_cv_have_decl__snprintf=no
37518fi
37519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37520fi
37521echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
37522echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
37523  if test $ac_cv_have_decl__snprintf = yes; then
37524    gt_value=1
37525  else
37526    gt_value=0
37527  fi
37528
37529cat >>confdefs.h <<_ACEOF
37530#define HAVE_DECL__SNPRINTF $gt_value
37531_ACEOF
37532
37533
37534
37535  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
37536echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
37537if test "${ac_cv_have_decl__snwprintf+set}" = set; then
37538  echo $ECHO_N "(cached) $ECHO_C" >&6
37539else
37540  cat >conftest.$ac_ext <<_ACEOF
37541/* confdefs.h.  */
37542_ACEOF
37543cat confdefs.h >>conftest.$ac_ext
37544cat >>conftest.$ac_ext <<_ACEOF
37545/* end confdefs.h.  */
37546#include <stdio.h>
37547int
37548main ()
37549{
37550
37551#ifndef _snwprintf
37552  char *p = (char *) _snwprintf;
37553#endif
37554
37555  ;
37556  return 0;
37557}
37558_ACEOF
37559rm -f conftest.$ac_objext
37560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37561  (eval $ac_compile) 2>conftest.er1
37562  ac_status=$?
37563  grep -v '^ *+' conftest.er1 >conftest.err
37564  rm -f conftest.er1
37565  cat conftest.err >&5
37566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567  (exit $ac_status); } &&
37568	 { ac_try='test -z "$ac_c_werror_flag"
37569			 || test ! -s conftest.err'
37570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37571  (eval $ac_try) 2>&5
37572  ac_status=$?
37573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574  (exit $ac_status); }; } &&
37575	 { ac_try='test -s conftest.$ac_objext'
37576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37577  (eval $ac_try) 2>&5
37578  ac_status=$?
37579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580  (exit $ac_status); }; }; then
37581  ac_cv_have_decl__snwprintf=yes
37582else
37583  echo "$as_me: failed program was:" >&5
37584sed 's/^/| /' conftest.$ac_ext >&5
37585
37586ac_cv_have_decl__snwprintf=no
37587fi
37588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37589fi
37590echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
37591echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
37592  if test $ac_cv_have_decl__snwprintf = yes; then
37593    gt_value=1
37594  else
37595    gt_value=0
37596  fi
37597
37598cat >>confdefs.h <<_ACEOF
37599#define HAVE_DECL__SNWPRINTF $gt_value
37600_ACEOF
37601
37602
37603
37604
37605  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
37606echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
37607if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
37608  echo $ECHO_N "(cached) $ECHO_C" >&6
37609else
37610  cat >conftest.$ac_ext <<_ACEOF
37611/* confdefs.h.  */
37612_ACEOF
37613cat confdefs.h >>conftest.$ac_ext
37614cat >>conftest.$ac_ext <<_ACEOF
37615/* end confdefs.h.  */
37616#include <stdio.h>
37617int
37618main ()
37619{
37620
37621#ifndef feof_unlocked
37622  char *p = (char *) feof_unlocked;
37623#endif
37624
37625  ;
37626  return 0;
37627}
37628_ACEOF
37629rm -f conftest.$ac_objext
37630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37631  (eval $ac_compile) 2>conftest.er1
37632  ac_status=$?
37633  grep -v '^ *+' conftest.er1 >conftest.err
37634  rm -f conftest.er1
37635  cat conftest.err >&5
37636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637  (exit $ac_status); } &&
37638	 { ac_try='test -z "$ac_c_werror_flag"
37639			 || test ! -s conftest.err'
37640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37641  (eval $ac_try) 2>&5
37642  ac_status=$?
37643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644  (exit $ac_status); }; } &&
37645	 { ac_try='test -s conftest.$ac_objext'
37646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647  (eval $ac_try) 2>&5
37648  ac_status=$?
37649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650  (exit $ac_status); }; }; then
37651  ac_cv_have_decl_feof_unlocked=yes
37652else
37653  echo "$as_me: failed program was:" >&5
37654sed 's/^/| /' conftest.$ac_ext >&5
37655
37656ac_cv_have_decl_feof_unlocked=no
37657fi
37658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37659fi
37660echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
37661echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
37662  if test $ac_cv_have_decl_feof_unlocked = yes; then
37663    gt_value=1
37664  else
37665    gt_value=0
37666  fi
37667
37668cat >>confdefs.h <<_ACEOF
37669#define HAVE_DECL_FEOF_UNLOCKED $gt_value
37670_ACEOF
37671
37672
37673
37674  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
37675echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
37676if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
37677  echo $ECHO_N "(cached) $ECHO_C" >&6
37678else
37679  cat >conftest.$ac_ext <<_ACEOF
37680/* confdefs.h.  */
37681_ACEOF
37682cat confdefs.h >>conftest.$ac_ext
37683cat >>conftest.$ac_ext <<_ACEOF
37684/* end confdefs.h.  */
37685#include <stdio.h>
37686int
37687main ()
37688{
37689
37690#ifndef fgets_unlocked
37691  char *p = (char *) fgets_unlocked;
37692#endif
37693
37694  ;
37695  return 0;
37696}
37697_ACEOF
37698rm -f conftest.$ac_objext
37699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37700  (eval $ac_compile) 2>conftest.er1
37701  ac_status=$?
37702  grep -v '^ *+' conftest.er1 >conftest.err
37703  rm -f conftest.er1
37704  cat conftest.err >&5
37705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706  (exit $ac_status); } &&
37707	 { ac_try='test -z "$ac_c_werror_flag"
37708			 || test ! -s conftest.err'
37709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37710  (eval $ac_try) 2>&5
37711  ac_status=$?
37712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713  (exit $ac_status); }; } &&
37714	 { ac_try='test -s conftest.$ac_objext'
37715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37716  (eval $ac_try) 2>&5
37717  ac_status=$?
37718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719  (exit $ac_status); }; }; then
37720  ac_cv_have_decl_fgets_unlocked=yes
37721else
37722  echo "$as_me: failed program was:" >&5
37723sed 's/^/| /' conftest.$ac_ext >&5
37724
37725ac_cv_have_decl_fgets_unlocked=no
37726fi
37727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37728fi
37729echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
37730echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
37731  if test $ac_cv_have_decl_fgets_unlocked = yes; then
37732    gt_value=1
37733  else
37734    gt_value=0
37735  fi
37736
37737cat >>confdefs.h <<_ACEOF
37738#define HAVE_DECL_FGETS_UNLOCKED $gt_value
37739_ACEOF
37740
37741
37742
37743  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
37744echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
37745if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
37746  echo $ECHO_N "(cached) $ECHO_C" >&6
37747else
37748  cat >conftest.$ac_ext <<_ACEOF
37749/* confdefs.h.  */
37750_ACEOF
37751cat confdefs.h >>conftest.$ac_ext
37752cat >>conftest.$ac_ext <<_ACEOF
37753/* end confdefs.h.  */
37754#include <stdio.h>
37755int
37756main ()
37757{
37758
37759#ifndef getc_unlocked
37760  char *p = (char *) getc_unlocked;
37761#endif
37762
37763  ;
37764  return 0;
37765}
37766_ACEOF
37767rm -f conftest.$ac_objext
37768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37769  (eval $ac_compile) 2>conftest.er1
37770  ac_status=$?
37771  grep -v '^ *+' conftest.er1 >conftest.err
37772  rm -f conftest.er1
37773  cat conftest.err >&5
37774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775  (exit $ac_status); } &&
37776	 { ac_try='test -z "$ac_c_werror_flag"
37777			 || test ! -s conftest.err'
37778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37779  (eval $ac_try) 2>&5
37780  ac_status=$?
37781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782  (exit $ac_status); }; } &&
37783	 { ac_try='test -s conftest.$ac_objext'
37784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785  (eval $ac_try) 2>&5
37786  ac_status=$?
37787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788  (exit $ac_status); }; }; then
37789  ac_cv_have_decl_getc_unlocked=yes
37790else
37791  echo "$as_me: failed program was:" >&5
37792sed 's/^/| /' conftest.$ac_ext >&5
37793
37794ac_cv_have_decl_getc_unlocked=no
37795fi
37796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37797fi
37798echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
37799echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
37800  if test $ac_cv_have_decl_getc_unlocked = yes; then
37801    gt_value=1
37802  else
37803    gt_value=0
37804  fi
37805
37806cat >>confdefs.h <<_ACEOF
37807#define HAVE_DECL_GETC_UNLOCKED $gt_value
37808_ACEOF
37809
37810
37811
37812  case $gt_cv_func_printf_posix in
37813    *yes) HAVE_POSIX_PRINTF=1 ;;
37814    *) HAVE_POSIX_PRINTF=0 ;;
37815  esac
37816
37817  if test "$ac_cv_func_asprintf" = yes; then
37818    HAVE_ASPRINTF=1
37819  else
37820    HAVE_ASPRINTF=0
37821  fi
37822
37823  if test "$ac_cv_func_snprintf" = yes; then
37824    HAVE_SNPRINTF=1
37825  else
37826    HAVE_SNPRINTF=0
37827  fi
37828
37829  if test "$ac_cv_func_wprintf" = yes; then
37830    HAVE_WPRINTF=1
37831  else
37832    HAVE_WPRINTF=0
37833  fi
37834
37835
37836
37837
37838
37839
37840
37841          am_save_CPPFLAGS="$CPPFLAGS"
37842
37843  for element in $INCICONV; do
37844    haveit=
37845    for x in $CPPFLAGS; do
37846
37847  acl_save_prefix="$prefix"
37848  prefix="$acl_final_prefix"
37849  acl_save_exec_prefix="$exec_prefix"
37850  exec_prefix="$acl_final_exec_prefix"
37851  eval x=\"$x\"
37852  exec_prefix="$acl_save_exec_prefix"
37853  prefix="$acl_save_prefix"
37854
37855      if test "X$x" = "X$element"; then
37856        haveit=yes
37857        break
37858      fi
37859    done
37860    if test -z "$haveit"; then
37861      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37862    fi
37863  done
37864
37865
37866  echo "$as_me:$LINENO: checking for iconv" >&5
37867echo $ECHO_N "checking for iconv... $ECHO_C" >&6
37868if test "${am_cv_func_iconv+set}" = set; then
37869  echo $ECHO_N "(cached) $ECHO_C" >&6
37870else
37871
37872    am_cv_func_iconv="no, consider installing GNU libiconv"
37873    am_cv_lib_iconv=no
37874    cat >conftest.$ac_ext <<_ACEOF
37875/* confdefs.h.  */
37876_ACEOF
37877cat confdefs.h >>conftest.$ac_ext
37878cat >>conftest.$ac_ext <<_ACEOF
37879/* end confdefs.h.  */
37880#include <stdlib.h>
37881#include <iconv.h>
37882int
37883main ()
37884{
37885iconv_t cd = iconv_open("","");
37886       iconv(cd,NULL,NULL,NULL,NULL);
37887       iconv_close(cd);
37888  ;
37889  return 0;
37890}
37891_ACEOF
37892rm -f conftest.$ac_objext conftest$ac_exeext
37893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37894  (eval $ac_link) 2>conftest.er1
37895  ac_status=$?
37896  grep -v '^ *+' conftest.er1 >conftest.err
37897  rm -f conftest.er1
37898  cat conftest.err >&5
37899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900  (exit $ac_status); } &&
37901	 { ac_try='test -z "$ac_c_werror_flag"
37902			 || test ! -s conftest.err'
37903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37904  (eval $ac_try) 2>&5
37905  ac_status=$?
37906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37907  (exit $ac_status); }; } &&
37908	 { ac_try='test -s conftest$ac_exeext'
37909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37910  (eval $ac_try) 2>&5
37911  ac_status=$?
37912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913  (exit $ac_status); }; }; then
37914  am_cv_func_iconv=yes
37915else
37916  echo "$as_me: failed program was:" >&5
37917sed 's/^/| /' conftest.$ac_ext >&5
37918
37919fi
37920rm -f conftest.err conftest.$ac_objext \
37921      conftest$ac_exeext conftest.$ac_ext
37922    if test "$am_cv_func_iconv" != yes; then
37923      am_save_LIBS="$LIBS"
37924      LIBS="$LIBS $LIBICONV"
37925      cat >conftest.$ac_ext <<_ACEOF
37926/* confdefs.h.  */
37927_ACEOF
37928cat confdefs.h >>conftest.$ac_ext
37929cat >>conftest.$ac_ext <<_ACEOF
37930/* end confdefs.h.  */
37931#include <stdlib.h>
37932#include <iconv.h>
37933int
37934main ()
37935{
37936iconv_t cd = iconv_open("","");
37937         iconv(cd,NULL,NULL,NULL,NULL);
37938         iconv_close(cd);
37939  ;
37940  return 0;
37941}
37942_ACEOF
37943rm -f conftest.$ac_objext conftest$ac_exeext
37944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37945  (eval $ac_link) 2>conftest.er1
37946  ac_status=$?
37947  grep -v '^ *+' conftest.er1 >conftest.err
37948  rm -f conftest.er1
37949  cat conftest.err >&5
37950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37951  (exit $ac_status); } &&
37952	 { ac_try='test -z "$ac_c_werror_flag"
37953			 || test ! -s conftest.err'
37954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37955  (eval $ac_try) 2>&5
37956  ac_status=$?
37957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958  (exit $ac_status); }; } &&
37959	 { ac_try='test -s conftest$ac_exeext'
37960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37961  (eval $ac_try) 2>&5
37962  ac_status=$?
37963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964  (exit $ac_status); }; }; then
37965  am_cv_lib_iconv=yes
37966        am_cv_func_iconv=yes
37967else
37968  echo "$as_me: failed program was:" >&5
37969sed 's/^/| /' conftest.$ac_ext >&5
37970
37971fi
37972rm -f conftest.err conftest.$ac_objext \
37973      conftest$ac_exeext conftest.$ac_ext
37974      LIBS="$am_save_LIBS"
37975    fi
37976
37977fi
37978echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37979echo "${ECHO_T}$am_cv_func_iconv" >&6
37980  if test "$am_cv_func_iconv" = yes; then
37981
37982cat >>confdefs.h <<\_ACEOF
37983#define HAVE_ICONV 1
37984_ACEOF
37985
37986  fi
37987  if test "$am_cv_lib_iconv" = yes; then
37988    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
37989echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
37990    echo "$as_me:$LINENO: result: $LIBICONV" >&5
37991echo "${ECHO_T}$LIBICONV" >&6
37992  else
37993            CPPFLAGS="$am_save_CPPFLAGS"
37994    LIBICONV=
37995    LTLIBICONV=
37996  fi
37997
37998
37999
38000  if test "$am_cv_func_iconv" = yes; then
38001    echo "$as_me:$LINENO: checking for iconv declaration" >&5
38002echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
38003    if test "${am_cv_proto_iconv+set}" = set; then
38004  echo $ECHO_N "(cached) $ECHO_C" >&6
38005else
38006
38007      cat >conftest.$ac_ext <<_ACEOF
38008/* confdefs.h.  */
38009_ACEOF
38010cat confdefs.h >>conftest.$ac_ext
38011cat >>conftest.$ac_ext <<_ACEOF
38012/* end confdefs.h.  */
38013
38014#include <stdlib.h>
38015#include <iconv.h>
38016extern
38017#ifdef __cplusplus
38018"C"
38019#endif
38020#if defined(__STDC__) || defined(__cplusplus)
38021size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38022#else
38023size_t iconv();
38024#endif
38025
38026int
38027main ()
38028{
38029
38030  ;
38031  return 0;
38032}
38033_ACEOF
38034rm -f conftest.$ac_objext
38035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38036  (eval $ac_compile) 2>conftest.er1
38037  ac_status=$?
38038  grep -v '^ *+' conftest.er1 >conftest.err
38039  rm -f conftest.er1
38040  cat conftest.err >&5
38041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042  (exit $ac_status); } &&
38043	 { ac_try='test -z "$ac_c_werror_flag"
38044			 || test ! -s conftest.err'
38045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046  (eval $ac_try) 2>&5
38047  ac_status=$?
38048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049  (exit $ac_status); }; } &&
38050	 { ac_try='test -s conftest.$ac_objext'
38051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38052  (eval $ac_try) 2>&5
38053  ac_status=$?
38054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055  (exit $ac_status); }; }; then
38056  am_cv_proto_iconv_arg1=""
38057else
38058  echo "$as_me: failed program was:" >&5
38059sed 's/^/| /' conftest.$ac_ext >&5
38060
38061am_cv_proto_iconv_arg1="const"
38062fi
38063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38064      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
38065fi
38066
38067    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
38068    echo "$as_me:$LINENO: result: ${ac_t:-
38069         }$am_cv_proto_iconv" >&5
38070echo "${ECHO_T}${ac_t:-
38071         }$am_cv_proto_iconv" >&6
38072
38073cat >>confdefs.h <<_ACEOF
38074#define ICONV_CONST $am_cv_proto_iconv_arg1
38075_ACEOF
38076
38077  fi
38078
38079
38080  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
38081echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
38082if test "${am_cv_langinfo_codeset+set}" = set; then
38083  echo $ECHO_N "(cached) $ECHO_C" >&6
38084else
38085  cat >conftest.$ac_ext <<_ACEOF
38086/* confdefs.h.  */
38087_ACEOF
38088cat confdefs.h >>conftest.$ac_ext
38089cat >>conftest.$ac_ext <<_ACEOF
38090/* end confdefs.h.  */
38091#include <langinfo.h>
38092int
38093main ()
38094{
38095char* cs = nl_langinfo(CODESET);
38096  ;
38097  return 0;
38098}
38099_ACEOF
38100rm -f conftest.$ac_objext conftest$ac_exeext
38101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38102  (eval $ac_link) 2>conftest.er1
38103  ac_status=$?
38104  grep -v '^ *+' conftest.er1 >conftest.err
38105  rm -f conftest.er1
38106  cat conftest.err >&5
38107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108  (exit $ac_status); } &&
38109	 { ac_try='test -z "$ac_c_werror_flag"
38110			 || test ! -s conftest.err'
38111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38112  (eval $ac_try) 2>&5
38113  ac_status=$?
38114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115  (exit $ac_status); }; } &&
38116	 { ac_try='test -s conftest$ac_exeext'
38117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38118  (eval $ac_try) 2>&5
38119  ac_status=$?
38120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121  (exit $ac_status); }; }; then
38122  am_cv_langinfo_codeset=yes
38123else
38124  echo "$as_me: failed program was:" >&5
38125sed 's/^/| /' conftest.$ac_ext >&5
38126
38127am_cv_langinfo_codeset=no
38128fi
38129rm -f conftest.err conftest.$ac_objext \
38130      conftest$ac_exeext conftest.$ac_ext
38131
38132fi
38133echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
38134echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
38135  if test $am_cv_langinfo_codeset = yes; then
38136
38137cat >>confdefs.h <<\_ACEOF
38138#define HAVE_LANGINFO_CODESET 1
38139_ACEOF
38140
38141  fi
38142
38143  if test $ac_cv_header_locale_h = yes; then
38144
38145  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
38146echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
38147if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
38148  echo $ECHO_N "(cached) $ECHO_C" >&6
38149else
38150  cat >conftest.$ac_ext <<_ACEOF
38151/* confdefs.h.  */
38152_ACEOF
38153cat confdefs.h >>conftest.$ac_ext
38154cat >>conftest.$ac_ext <<_ACEOF
38155/* end confdefs.h.  */
38156#include <locale.h>
38157int
38158main ()
38159{
38160return LC_MESSAGES
38161  ;
38162  return 0;
38163}
38164_ACEOF
38165rm -f conftest.$ac_objext conftest$ac_exeext
38166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38167  (eval $ac_link) 2>conftest.er1
38168  ac_status=$?
38169  grep -v '^ *+' conftest.er1 >conftest.err
38170  rm -f conftest.er1
38171  cat conftest.err >&5
38172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38173  (exit $ac_status); } &&
38174	 { ac_try='test -z "$ac_c_werror_flag"
38175			 || test ! -s conftest.err'
38176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38177  (eval $ac_try) 2>&5
38178  ac_status=$?
38179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180  (exit $ac_status); }; } &&
38181	 { ac_try='test -s conftest$ac_exeext'
38182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38183  (eval $ac_try) 2>&5
38184  ac_status=$?
38185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186  (exit $ac_status); }; }; then
38187  gt_cv_val_LC_MESSAGES=yes
38188else
38189  echo "$as_me: failed program was:" >&5
38190sed 's/^/| /' conftest.$ac_ext >&5
38191
38192gt_cv_val_LC_MESSAGES=no
38193fi
38194rm -f conftest.err conftest.$ac_objext \
38195      conftest$ac_exeext conftest.$ac_ext
38196fi
38197echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
38198echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
38199  if test $gt_cv_val_LC_MESSAGES = yes; then
38200
38201cat >>confdefs.h <<\_ACEOF
38202#define HAVE_LC_MESSAGES 1
38203_ACEOF
38204
38205  fi
38206
38207  fi
38208
38209  if test -n "$INTL_MACOSX_LIBS"; then
38210    CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
38211  fi
38212
38213                      for ac_prog in bison
38214do
38215  # Extract the first word of "$ac_prog", so it can be a program name with args.
38216set dummy $ac_prog; ac_word=$2
38217echo "$as_me:$LINENO: checking for $ac_word" >&5
38218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38219if test "${ac_cv_prog_INTLBISON+set}" = set; then
38220  echo $ECHO_N "(cached) $ECHO_C" >&6
38221else
38222  if test -n "$INTLBISON"; then
38223  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
38224else
38225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38226for as_dir in $PATH
38227do
38228  IFS=$as_save_IFS
38229  test -z "$as_dir" && as_dir=.
38230  for ac_exec_ext in '' $ac_executable_extensions; do
38231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38232    ac_cv_prog_INTLBISON="$ac_prog"
38233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38234    break 2
38235  fi
38236done
38237done
38238
38239fi
38240fi
38241INTLBISON=$ac_cv_prog_INTLBISON
38242if test -n "$INTLBISON"; then
38243  echo "$as_me:$LINENO: result: $INTLBISON" >&5
38244echo "${ECHO_T}$INTLBISON" >&6
38245else
38246  echo "$as_me:$LINENO: result: no" >&5
38247echo "${ECHO_T}no" >&6
38248fi
38249
38250  test -n "$INTLBISON" && break
38251done
38252
38253  if test -z "$INTLBISON"; then
38254    ac_verc_fail=yes
38255  else
38256        echo "$as_me:$LINENO: checking version of bison" >&5
38257echo $ECHO_N "checking version of bison... $ECHO_C" >&6
38258    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
38259    case $ac_prog_version in
38260      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
38261      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
38262         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
38263      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
38264    esac
38265    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
38266echo "${ECHO_T}$ac_prog_version" >&6
38267  fi
38268  if test $ac_verc_fail = yes; then
38269    INTLBISON=:
38270  fi
38271
38272
38273
38274
38275
38276
38277
38278
38279
38280
38281
38282
38283
38284
38285
38286
38287    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
38288echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
38289if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
38290  echo $ECHO_N "(cached) $ECHO_C" >&6
38291else
38292  gt_save_CPPFLAGS="$CPPFLAGS"
38293     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
38294     gt_save_LIBS="$LIBS"
38295     LIBS="$LIBS -framework CoreFoundation"
38296     cat >conftest.$ac_ext <<_ACEOF
38297/* confdefs.h.  */
38298_ACEOF
38299cat confdefs.h >>conftest.$ac_ext
38300cat >>conftest.$ac_ext <<_ACEOF
38301/* end confdefs.h.  */
38302#include <CFPreferences.h>
38303int
38304main ()
38305{
38306CFPreferencesCopyAppValue(NULL, NULL)
38307  ;
38308  return 0;
38309}
38310_ACEOF
38311rm -f conftest.$ac_objext conftest$ac_exeext
38312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38313  (eval $ac_link) 2>conftest.er1
38314  ac_status=$?
38315  grep -v '^ *+' conftest.er1 >conftest.err
38316  rm -f conftest.er1
38317  cat conftest.err >&5
38318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319  (exit $ac_status); } &&
38320	 { ac_try='test -z "$ac_c_werror_flag"
38321			 || test ! -s conftest.err'
38322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38323  (eval $ac_try) 2>&5
38324  ac_status=$?
38325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326  (exit $ac_status); }; } &&
38327	 { ac_try='test -s conftest$ac_exeext'
38328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38329  (eval $ac_try) 2>&5
38330  ac_status=$?
38331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332  (exit $ac_status); }; }; then
38333  gt_cv_func_CFPreferencesCopyAppValue=yes
38334else
38335  echo "$as_me: failed program was:" >&5
38336sed 's/^/| /' conftest.$ac_ext >&5
38337
38338gt_cv_func_CFPreferencesCopyAppValue=no
38339fi
38340rm -f conftest.err conftest.$ac_objext \
38341      conftest$ac_exeext conftest.$ac_ext
38342     CPPFLAGS="$gt_save_CPPFLAGS"
38343     LIBS="$gt_save_LIBS"
38344fi
38345echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
38346echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
38347  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
38348
38349cat >>confdefs.h <<\_ACEOF
38350#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
38351_ACEOF
38352
38353  fi
38354    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
38355echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
38356if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
38357  echo $ECHO_N "(cached) $ECHO_C" >&6
38358else
38359  gt_save_CPPFLAGS="$CPPFLAGS"
38360     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
38361     gt_save_LIBS="$LIBS"
38362     LIBS="$LIBS -framework CoreFoundation"
38363     cat >conftest.$ac_ext <<_ACEOF
38364/* confdefs.h.  */
38365_ACEOF
38366cat confdefs.h >>conftest.$ac_ext
38367cat >>conftest.$ac_ext <<_ACEOF
38368/* end confdefs.h.  */
38369#include <CFLocale.h>
38370int
38371main ()
38372{
38373CFLocaleCopyCurrent();
38374  ;
38375  return 0;
38376}
38377_ACEOF
38378rm -f conftest.$ac_objext conftest$ac_exeext
38379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38380  (eval $ac_link) 2>conftest.er1
38381  ac_status=$?
38382  grep -v '^ *+' conftest.er1 >conftest.err
38383  rm -f conftest.er1
38384  cat conftest.err >&5
38385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386  (exit $ac_status); } &&
38387	 { ac_try='test -z "$ac_c_werror_flag"
38388			 || test ! -s conftest.err'
38389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390  (eval $ac_try) 2>&5
38391  ac_status=$?
38392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393  (exit $ac_status); }; } &&
38394	 { ac_try='test -s conftest$ac_exeext'
38395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38396  (eval $ac_try) 2>&5
38397  ac_status=$?
38398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38399  (exit $ac_status); }; }; then
38400  gt_cv_func_CFLocaleCopyCurrent=yes
38401else
38402  echo "$as_me: failed program was:" >&5
38403sed 's/^/| /' conftest.$ac_ext >&5
38404
38405gt_cv_func_CFLocaleCopyCurrent=no
38406fi
38407rm -f conftest.err conftest.$ac_objext \
38408      conftest$ac_exeext conftest.$ac_ext
38409     CPPFLAGS="$gt_save_CPPFLAGS"
38410     LIBS="$gt_save_LIBS"
38411fi
38412echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
38413echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
38414  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
38415
38416cat >>confdefs.h <<\_ACEOF
38417#define HAVE_CFLOCALECOPYCURRENT 1
38418_ACEOF
38419
38420  fi
38421  INTL_MACOSX_LIBS=
38422  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
38423    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
38424  fi
38425
38426
38427
38428
38429  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38430echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
38431    # Check whether --enable-nls or --disable-nls was given.
38432if test "${enable_nls+set}" = set; then
38433  enableval="$enable_nls"
38434  USE_NLS=$enableval
38435else
38436  USE_NLS=yes
38437fi;
38438  echo "$as_me:$LINENO: result: $USE_NLS" >&5
38439echo "${ECHO_T}$USE_NLS" >&6
38440
38441
38442
38443
38444    BUILD_INCLUDED_LIBINTL=no
38445    USE_INCLUDED_LIBINTL=no
38446
38447  LIBINTL=
38448  LTLIBINTL=
38449  POSUB=
38450
38451    if test "$USE_NLS" = "yes"; then
38452    gt_use_preinstalled_gnugettext=no
38453
38454      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
38455echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
38456
38457# Check whether --with-included-gettext or --without-included-gettext was given.
38458if test "${with_included_gettext+set}" = set; then
38459  withval="$with_included_gettext"
38460  nls_cv_force_use_gnu_gettext=$withval
38461else
38462  nls_cv_force_use_gnu_gettext=no
38463fi;
38464      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
38465echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
38466
38467      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
38468      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
38469
38470
38471
38472
38473
38474
38475        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
38476echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
38477if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
38478  echo $ECHO_N "(cached) $ECHO_C" >&6
38479else
38480  cat >conftest.$ac_ext <<_ACEOF
38481/* confdefs.h.  */
38482_ACEOF
38483cat confdefs.h >>conftest.$ac_ext
38484cat >>conftest.$ac_ext <<_ACEOF
38485/* end confdefs.h.  */
38486#include <libintl.h>
38487extern int _nl_msg_cat_cntr;
38488extern int *_nl_domain_bindings;
38489int
38490main ()
38491{
38492bindtextdomain ("", "");
38493return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
38494  ;
38495  return 0;
38496}
38497_ACEOF
38498rm -f conftest.$ac_objext conftest$ac_exeext
38499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38500  (eval $ac_link) 2>conftest.er1
38501  ac_status=$?
38502  grep -v '^ *+' conftest.er1 >conftest.err
38503  rm -f conftest.er1
38504  cat conftest.err >&5
38505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506  (exit $ac_status); } &&
38507	 { ac_try='test -z "$ac_c_werror_flag"
38508			 || test ! -s conftest.err'
38509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510  (eval $ac_try) 2>&5
38511  ac_status=$?
38512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513  (exit $ac_status); }; } &&
38514	 { ac_try='test -s conftest$ac_exeext'
38515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516  (eval $ac_try) 2>&5
38517  ac_status=$?
38518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519  (exit $ac_status); }; }; then
38520  gt_cv_func_gnugettext2_libc=yes
38521else
38522  echo "$as_me: failed program was:" >&5
38523sed 's/^/| /' conftest.$ac_ext >&5
38524
38525gt_cv_func_gnugettext2_libc=no
38526fi
38527rm -f conftest.err conftest.$ac_objext \
38528      conftest$ac_exeext conftest.$ac_ext
38529fi
38530echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
38531echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
38532
38533        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
38534
38535
38536
38537    use_additional=yes
38538
38539  acl_save_prefix="$prefix"
38540  prefix="$acl_final_prefix"
38541  acl_save_exec_prefix="$exec_prefix"
38542  exec_prefix="$acl_final_exec_prefix"
38543
38544    eval additional_includedir=\"$includedir\"
38545    eval additional_libdir=\"$libdir\"
38546
38547  exec_prefix="$acl_save_exec_prefix"
38548  prefix="$acl_save_prefix"
38549
38550
38551# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
38552if test "${with_libintl_prefix+set}" = set; then
38553  withval="$with_libintl_prefix"
38554
38555    if test "X$withval" = "Xno"; then
38556      use_additional=no
38557    else
38558      if test "X$withval" = "X"; then
38559
38560  acl_save_prefix="$prefix"
38561  prefix="$acl_final_prefix"
38562  acl_save_exec_prefix="$exec_prefix"
38563  exec_prefix="$acl_final_exec_prefix"
38564
38565          eval additional_includedir=\"$includedir\"
38566          eval additional_libdir=\"$libdir\"
38567
38568  exec_prefix="$acl_save_exec_prefix"
38569  prefix="$acl_save_prefix"
38570
38571      else
38572        additional_includedir="$withval/include"
38573        additional_libdir="$withval/lib"
38574      fi
38575    fi
38576
38577fi;
38578      LIBINTL=
38579  LTLIBINTL=
38580  INCINTL=
38581  rpathdirs=
38582  ltrpathdirs=
38583  names_already_handled=
38584  names_next_round='intl '
38585  while test -n "$names_next_round"; do
38586    names_this_round="$names_next_round"
38587    names_next_round=
38588    for name in $names_this_round; do
38589      already_handled=
38590      for n in $names_already_handled; do
38591        if test "$n" = "$name"; then
38592          already_handled=yes
38593          break
38594        fi
38595      done
38596      if test -z "$already_handled"; then
38597        names_already_handled="$names_already_handled $name"
38598                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
38599        eval value=\"\$HAVE_LIB$uppername\"
38600        if test -n "$value"; then
38601          if test "$value" = yes; then
38602            eval value=\"\$LIB$uppername\"
38603            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
38604            eval value=\"\$LTLIB$uppername\"
38605            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
38606          else
38607                                    :
38608          fi
38609        else
38610                              found_dir=
38611          found_la=
38612          found_so=
38613          found_a=
38614          if test $use_additional = yes; then
38615            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
38616              found_dir="$additional_libdir"
38617              found_so="$additional_libdir/lib$name.$shlibext"
38618              if test -f "$additional_libdir/lib$name.la"; then
38619                found_la="$additional_libdir/lib$name.la"
38620              fi
38621            else
38622              if test -f "$additional_libdir/lib$name.$libext"; then
38623                found_dir="$additional_libdir"
38624                found_a="$additional_libdir/lib$name.$libext"
38625                if test -f "$additional_libdir/lib$name.la"; then
38626                  found_la="$additional_libdir/lib$name.la"
38627                fi
38628              fi
38629            fi
38630          fi
38631          if test "X$found_dir" = "X"; then
38632            for x in $LDFLAGS $LTLIBINTL; do
38633
38634  acl_save_prefix="$prefix"
38635  prefix="$acl_final_prefix"
38636  acl_save_exec_prefix="$exec_prefix"
38637  exec_prefix="$acl_final_exec_prefix"
38638  eval x=\"$x\"
38639  exec_prefix="$acl_save_exec_prefix"
38640  prefix="$acl_save_prefix"
38641
38642              case "$x" in
38643                -L*)
38644                  dir=`echo "X$x" | sed -e 's/^X-L//'`
38645                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
38646                    found_dir="$dir"
38647                    found_so="$dir/lib$name.$shlibext"
38648                    if test -f "$dir/lib$name.la"; then
38649                      found_la="$dir/lib$name.la"
38650                    fi
38651                  else
38652                    if test -f "$dir/lib$name.$libext"; then
38653                      found_dir="$dir"
38654                      found_a="$dir/lib$name.$libext"
38655                      if test -f "$dir/lib$name.la"; then
38656                        found_la="$dir/lib$name.la"
38657                      fi
38658                    fi
38659                  fi
38660                  ;;
38661              esac
38662              if test "X$found_dir" != "X"; then
38663                break
38664              fi
38665            done
38666          fi
38667          if test "X$found_dir" != "X"; then
38668                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
38669            if test "X$found_so" != "X"; then
38670                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
38671                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38672              else
38673                                                                                haveit=
38674                for x in $ltrpathdirs; do
38675                  if test "X$x" = "X$found_dir"; then
38676                    haveit=yes
38677                    break
38678                  fi
38679                done
38680                if test -z "$haveit"; then
38681                  ltrpathdirs="$ltrpathdirs $found_dir"
38682                fi
38683                                if test "$hardcode_direct" = yes; then
38684                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38685                else
38686                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
38687                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38688                                                            haveit=
38689                    for x in $rpathdirs; do
38690                      if test "X$x" = "X$found_dir"; then
38691                        haveit=yes
38692                        break
38693                      fi
38694                    done
38695                    if test -z "$haveit"; then
38696                      rpathdirs="$rpathdirs $found_dir"
38697                    fi
38698                  else
38699                                                                                haveit=
38700                    for x in $LDFLAGS $LIBINTL; do
38701
38702  acl_save_prefix="$prefix"
38703  prefix="$acl_final_prefix"
38704  acl_save_exec_prefix="$exec_prefix"
38705  exec_prefix="$acl_final_exec_prefix"
38706  eval x=\"$x\"
38707  exec_prefix="$acl_save_exec_prefix"
38708  prefix="$acl_save_prefix"
38709
38710                      if test "X$x" = "X-L$found_dir"; then
38711                        haveit=yes
38712                        break
38713                      fi
38714                    done
38715                    if test -z "$haveit"; then
38716                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
38717                    fi
38718                    if test "$hardcode_minus_L" != no; then
38719                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38720                    else
38721                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
38722                    fi
38723                  fi
38724                fi
38725              fi
38726            else
38727              if test "X$found_a" != "X"; then
38728                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
38729              else
38730                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
38731              fi
38732            fi
38733                        additional_includedir=
38734            case "$found_dir" in
38735              */lib | */lib/)
38736                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
38737                additional_includedir="$basedir/include"
38738                ;;
38739            esac
38740            if test "X$additional_includedir" != "X"; then
38741                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
38742                haveit=
38743                if test "X$additional_includedir" = "X/usr/local/include"; then
38744                  if test -n "$GCC"; then
38745                    case $host_os in
38746                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38747                    esac
38748                  fi
38749                fi
38750                if test -z "$haveit"; then
38751                  for x in $CPPFLAGS $INCINTL; do
38752
38753  acl_save_prefix="$prefix"
38754  prefix="$acl_final_prefix"
38755  acl_save_exec_prefix="$exec_prefix"
38756  exec_prefix="$acl_final_exec_prefix"
38757  eval x=\"$x\"
38758  exec_prefix="$acl_save_exec_prefix"
38759  prefix="$acl_save_prefix"
38760
38761                    if test "X$x" = "X-I$additional_includedir"; then
38762                      haveit=yes
38763                      break
38764                    fi
38765                  done
38766                  if test -z "$haveit"; then
38767                    if test -d "$additional_includedir"; then
38768                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
38769                    fi
38770                  fi
38771                fi
38772              fi
38773            fi
38774                        if test -n "$found_la"; then
38775                                                        save_libdir="$libdir"
38776              case "$found_la" in
38777                */* | *\\*) . "$found_la" ;;
38778                *) . "./$found_la" ;;
38779              esac
38780              libdir="$save_libdir"
38781                            for dep in $dependency_libs; do
38782                case "$dep" in
38783                  -L*)
38784                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
38785                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
38786                      haveit=
38787                      if test "X$additional_libdir" = "X/usr/local/lib"; then
38788                        if test -n "$GCC"; then
38789                          case $host_os in
38790                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38791                          esac
38792                        fi
38793                      fi
38794                      if test -z "$haveit"; then
38795                        haveit=
38796                        for x in $LDFLAGS $LIBINTL; do
38797
38798  acl_save_prefix="$prefix"
38799  prefix="$acl_final_prefix"
38800  acl_save_exec_prefix="$exec_prefix"
38801  exec_prefix="$acl_final_exec_prefix"
38802  eval x=\"$x\"
38803  exec_prefix="$acl_save_exec_prefix"
38804  prefix="$acl_save_prefix"
38805
38806                          if test "X$x" = "X-L$additional_libdir"; then
38807                            haveit=yes
38808                            break
38809                          fi
38810                        done
38811                        if test -z "$haveit"; then
38812                          if test -d "$additional_libdir"; then
38813                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
38814                          fi
38815                        fi
38816                        haveit=
38817                        for x in $LDFLAGS $LTLIBINTL; do
38818
38819  acl_save_prefix="$prefix"
38820  prefix="$acl_final_prefix"
38821  acl_save_exec_prefix="$exec_prefix"
38822  exec_prefix="$acl_final_exec_prefix"
38823  eval x=\"$x\"
38824  exec_prefix="$acl_save_exec_prefix"
38825  prefix="$acl_save_prefix"
38826
38827                          if test "X$x" = "X-L$additional_libdir"; then
38828                            haveit=yes
38829                            break
38830                          fi
38831                        done
38832                        if test -z "$haveit"; then
38833                          if test -d "$additional_libdir"; then
38834                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
38835                          fi
38836                        fi
38837                      fi
38838                    fi
38839                    ;;
38840                  -R*)
38841                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
38842                    if test "$enable_rpath" != no; then
38843                                                                  haveit=
38844                      for x in $rpathdirs; do
38845                        if test "X$x" = "X$dir"; then
38846                          haveit=yes
38847                          break
38848                        fi
38849                      done
38850                      if test -z "$haveit"; then
38851                        rpathdirs="$rpathdirs $dir"
38852                      fi
38853                                                                  haveit=
38854                      for x in $ltrpathdirs; do
38855                        if test "X$x" = "X$dir"; then
38856                          haveit=yes
38857                          break
38858                        fi
38859                      done
38860                      if test -z "$haveit"; then
38861                        ltrpathdirs="$ltrpathdirs $dir"
38862                      fi
38863                    fi
38864                    ;;
38865                  -l*)
38866                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
38867                    ;;
38868                  *.la)
38869                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
38870                    ;;
38871                  *)
38872                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
38873                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
38874                    ;;
38875                esac
38876              done
38877            fi
38878          else
38879                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
38880            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
38881          fi
38882        fi
38883      fi
38884    done
38885  done
38886  if test "X$rpathdirs" != "X"; then
38887    if test -n "$hardcode_libdir_separator"; then
38888                        alldirs=
38889      for found_dir in $rpathdirs; do
38890        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
38891      done
38892            acl_save_libdir="$libdir"
38893      libdir="$alldirs"
38894      eval flag=\"$hardcode_libdir_flag_spec\"
38895      libdir="$acl_save_libdir"
38896      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
38897    else
38898            for found_dir in $rpathdirs; do
38899        acl_save_libdir="$libdir"
38900        libdir="$found_dir"
38901        eval flag=\"$hardcode_libdir_flag_spec\"
38902        libdir="$acl_save_libdir"
38903        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
38904      done
38905    fi
38906  fi
38907  if test "X$ltrpathdirs" != "X"; then
38908            for found_dir in $ltrpathdirs; do
38909      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
38910    done
38911  fi
38912
38913          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
38914echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
38915if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
38916  echo $ECHO_N "(cached) $ECHO_C" >&6
38917else
38918  gt_save_CPPFLAGS="$CPPFLAGS"
38919            CPPFLAGS="$CPPFLAGS $INCINTL"
38920            gt_save_LIBS="$LIBS"
38921            LIBS="$LIBS $LIBINTL"
38922                        cat >conftest.$ac_ext <<_ACEOF
38923/* confdefs.h.  */
38924_ACEOF
38925cat confdefs.h >>conftest.$ac_ext
38926cat >>conftest.$ac_ext <<_ACEOF
38927/* end confdefs.h.  */
38928#include <libintl.h>
38929extern int _nl_msg_cat_cntr;
38930extern
38931#ifdef __cplusplus
38932"C"
38933#endif
38934const char *_nl_expand_alias (const char *);
38935int
38936main ()
38937{
38938bindtextdomain ("", "");
38939return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
38940  ;
38941  return 0;
38942}
38943_ACEOF
38944rm -f conftest.$ac_objext conftest$ac_exeext
38945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38946  (eval $ac_link) 2>conftest.er1
38947  ac_status=$?
38948  grep -v '^ *+' conftest.er1 >conftest.err
38949  rm -f conftest.er1
38950  cat conftest.err >&5
38951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38952  (exit $ac_status); } &&
38953	 { ac_try='test -z "$ac_c_werror_flag"
38954			 || test ! -s conftest.err'
38955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956  (eval $ac_try) 2>&5
38957  ac_status=$?
38958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959  (exit $ac_status); }; } &&
38960	 { ac_try='test -s conftest$ac_exeext'
38961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38962  (eval $ac_try) 2>&5
38963  ac_status=$?
38964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965  (exit $ac_status); }; }; then
38966  gt_cv_func_gnugettext2_libintl=yes
38967else
38968  echo "$as_me: failed program was:" >&5
38969sed 's/^/| /' conftest.$ac_ext >&5
38970
38971gt_cv_func_gnugettext2_libintl=no
38972fi
38973rm -f conftest.err conftest.$ac_objext \
38974      conftest$ac_exeext conftest.$ac_ext
38975                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
38976              LIBS="$LIBS $LIBICONV"
38977              cat >conftest.$ac_ext <<_ACEOF
38978/* confdefs.h.  */
38979_ACEOF
38980cat confdefs.h >>conftest.$ac_ext
38981cat >>conftest.$ac_ext <<_ACEOF
38982/* end confdefs.h.  */
38983#include <libintl.h>
38984extern int _nl_msg_cat_cntr;
38985extern
38986#ifdef __cplusplus
38987"C"
38988#endif
38989const char *_nl_expand_alias (const char *);
38990int
38991main ()
38992{
38993bindtextdomain ("", "");
38994return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
38995  ;
38996  return 0;
38997}
38998_ACEOF
38999rm -f conftest.$ac_objext conftest$ac_exeext
39000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39001  (eval $ac_link) 2>conftest.er1
39002  ac_status=$?
39003  grep -v '^ *+' conftest.er1 >conftest.err
39004  rm -f conftest.er1
39005  cat conftest.err >&5
39006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007  (exit $ac_status); } &&
39008	 { ac_try='test -z "$ac_c_werror_flag"
39009			 || test ! -s conftest.err'
39010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39011  (eval $ac_try) 2>&5
39012  ac_status=$?
39013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014  (exit $ac_status); }; } &&
39015	 { ac_try='test -s conftest$ac_exeext'
39016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39017  (eval $ac_try) 2>&5
39018  ac_status=$?
39019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39020  (exit $ac_status); }; }; then
39021  LIBINTL="$LIBINTL $LIBICONV"
39022                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
39023                gt_cv_func_gnugettext2_libintl=yes
39024
39025else
39026  echo "$as_me: failed program was:" >&5
39027sed 's/^/| /' conftest.$ac_ext >&5
39028
39029fi
39030rm -f conftest.err conftest.$ac_objext \
39031      conftest$ac_exeext conftest.$ac_ext
39032            fi
39033            CPPFLAGS="$gt_save_CPPFLAGS"
39034            LIBS="$gt_save_LIBS"
39035fi
39036echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
39037echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
39038        fi
39039
39040                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
39041           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
39042                && test "$PACKAGE" != gettext-runtime \
39043                && test "$PACKAGE" != gettext-tools; }; then
39044          gt_use_preinstalled_gnugettext=yes
39045        else
39046                    LIBINTL=
39047          LTLIBINTL=
39048          INCINTL=
39049        fi
39050
39051
39052        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
39053                              nls_cv_use_gnu_gettext=yes
39054        fi
39055      fi
39056
39057      if test "$nls_cv_use_gnu_gettext" = "yes"; then
39058                BUILD_INCLUDED_LIBINTL=yes
39059        USE_INCLUDED_LIBINTL=yes
39060        LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV"
39061        LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV"
39062        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
39063      fi
39064
39065      CATOBJEXT=
39066      if test "$gt_use_preinstalled_gnugettext" = "yes" \
39067         || test "$nls_cv_use_gnu_gettext" = "yes"; then
39068                CATOBJEXT=.gmo
39069      fi
39070
39071
39072    if test -n "$INTL_MACOSX_LIBS"; then
39073      if test "$gt_use_preinstalled_gnugettext" = "yes" \
39074         || test "$nls_cv_use_gnu_gettext" = "yes"; then
39075                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
39076        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
39077      fi
39078    fi
39079
39080    if test "$gt_use_preinstalled_gnugettext" = "yes" \
39081       || test "$nls_cv_use_gnu_gettext" = "yes"; then
39082
39083cat >>confdefs.h <<\_ACEOF
39084#define ENABLE_NLS 1
39085_ACEOF
39086
39087    else
39088      USE_NLS=no
39089    fi
39090  fi
39091
39092  echo "$as_me:$LINENO: checking whether to use NLS" >&5
39093echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
39094  echo "$as_me:$LINENO: result: $USE_NLS" >&5
39095echo "${ECHO_T}$USE_NLS" >&6
39096  if test "$USE_NLS" = "yes"; then
39097    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
39098echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
39099    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39100      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
39101        gt_source="external libintl"
39102      else
39103        gt_source="libc"
39104      fi
39105    else
39106      gt_source="included intl directory"
39107    fi
39108    echo "$as_me:$LINENO: result: $gt_source" >&5
39109echo "${ECHO_T}$gt_source" >&6
39110  fi
39111
39112  if test "$USE_NLS" = "yes"; then
39113
39114    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39115      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
39116        echo "$as_me:$LINENO: checking how to link with libintl" >&5
39117echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
39118        echo "$as_me:$LINENO: result: $LIBINTL" >&5
39119echo "${ECHO_T}$LIBINTL" >&6
39120
39121  for element in $INCINTL; do
39122    haveit=
39123    for x in $CPPFLAGS; do
39124
39125  acl_save_prefix="$prefix"
39126  prefix="$acl_final_prefix"
39127  acl_save_exec_prefix="$exec_prefix"
39128  exec_prefix="$acl_final_exec_prefix"
39129  eval x=\"$x\"
39130  exec_prefix="$acl_save_exec_prefix"
39131  prefix="$acl_save_prefix"
39132
39133      if test "X$x" = "X$element"; then
39134        haveit=yes
39135        break
39136      fi
39137    done
39138    if test -z "$haveit"; then
39139      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39140    fi
39141  done
39142
39143      fi
39144
39145
39146cat >>confdefs.h <<\_ACEOF
39147#define HAVE_GETTEXT 1
39148_ACEOF
39149
39150
39151cat >>confdefs.h <<\_ACEOF
39152#define HAVE_DCGETTEXT 1
39153_ACEOF
39154
39155    fi
39156
39157        POSUB=po
39158  fi
39159
39160
39161            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
39162      BUILD_INCLUDED_LIBINTL=yes
39163    fi
39164
39165
39166
39167
39168
39169        nls_cv_header_intl=
39170    nls_cv_header_libgt=
39171
39172        DATADIRNAME=share
39173
39174
39175        INSTOBJEXT=.mo
39176
39177
39178        GENCAT=gencat
39179
39180
39181        INTLOBJS=
39182    if test "$USE_INCLUDED_LIBINTL" = yes; then
39183      INTLOBJS="\$(GETTOBJS)"
39184    fi
39185
39186
39187        INTL_LIBTOOL_SUFFIX_PREFIX=l
39188
39189
39190
39191    INTLLIBS="$LIBINTL"
39192
39193
39194
39195
39196
39197
39198
39199
39200
39201
39202
39203
39204case "$host_os" in
39205  linux*)
39206
39207cat >>confdefs.h <<\_ACEOF
39208#define DYNLOAD_LIBEXPAT 1
39209_ACEOF
39210
39211    LIBEXPAT="-ldl"
39212    LTLIBEXPAT="-ldl"
39213
39214
39215    ;;
39216  *)
39217
39218
39219
39220
39221
39222
39223
39224
39225    use_additional=yes
39226
39227  acl_save_prefix="$prefix"
39228  prefix="$acl_final_prefix"
39229  acl_save_exec_prefix="$exec_prefix"
39230  exec_prefix="$acl_final_exec_prefix"
39231
39232    eval additional_includedir=\"$includedir\"
39233    eval additional_libdir=\"$libdir\"
39234
39235  exec_prefix="$acl_save_exec_prefix"
39236  prefix="$acl_save_prefix"
39237
39238
39239# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
39240if test "${with_libexpat_prefix+set}" = set; then
39241  withval="$with_libexpat_prefix"
39242
39243    if test "X$withval" = "Xno"; then
39244      use_additional=no
39245    else
39246      if test "X$withval" = "X"; then
39247
39248  acl_save_prefix="$prefix"
39249  prefix="$acl_final_prefix"
39250  acl_save_exec_prefix="$exec_prefix"
39251  exec_prefix="$acl_final_exec_prefix"
39252
39253          eval additional_includedir=\"$includedir\"
39254          eval additional_libdir=\"$libdir\"
39255
39256  exec_prefix="$acl_save_exec_prefix"
39257  prefix="$acl_save_prefix"
39258
39259      else
39260        additional_includedir="$withval/include"
39261        additional_libdir="$withval/lib"
39262      fi
39263    fi
39264
39265fi;
39266      LIBEXPAT=
39267  LTLIBEXPAT=
39268  INCEXPAT=
39269  rpathdirs=
39270  ltrpathdirs=
39271  names_already_handled=
39272  names_next_round='expat '
39273  while test -n "$names_next_round"; do
39274    names_this_round="$names_next_round"
39275    names_next_round=
39276    for name in $names_this_round; do
39277      already_handled=
39278      for n in $names_already_handled; do
39279        if test "$n" = "$name"; then
39280          already_handled=yes
39281          break
39282        fi
39283      done
39284      if test -z "$already_handled"; then
39285        names_already_handled="$names_already_handled $name"
39286                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39287        eval value=\"\$HAVE_LIB$uppername\"
39288        if test -n "$value"; then
39289          if test "$value" = yes; then
39290            eval value=\"\$LIB$uppername\"
39291            test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
39292            eval value=\"\$LTLIB$uppername\"
39293            test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
39294          else
39295                                    :
39296          fi
39297        else
39298                              found_dir=
39299          found_la=
39300          found_so=
39301          found_a=
39302          if test $use_additional = yes; then
39303            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39304              found_dir="$additional_libdir"
39305              found_so="$additional_libdir/lib$name.$shlibext"
39306              if test -f "$additional_libdir/lib$name.la"; then
39307                found_la="$additional_libdir/lib$name.la"
39308              fi
39309            else
39310              if test -f "$additional_libdir/lib$name.$libext"; then
39311                found_dir="$additional_libdir"
39312                found_a="$additional_libdir/lib$name.$libext"
39313                if test -f "$additional_libdir/lib$name.la"; then
39314                  found_la="$additional_libdir/lib$name.la"
39315                fi
39316              fi
39317            fi
39318          fi
39319          if test "X$found_dir" = "X"; then
39320            for x in $LDFLAGS $LTLIBEXPAT; do
39321
39322  acl_save_prefix="$prefix"
39323  prefix="$acl_final_prefix"
39324  acl_save_exec_prefix="$exec_prefix"
39325  exec_prefix="$acl_final_exec_prefix"
39326  eval x=\"$x\"
39327  exec_prefix="$acl_save_exec_prefix"
39328  prefix="$acl_save_prefix"
39329
39330              case "$x" in
39331                -L*)
39332                  dir=`echo "X$x" | sed -e 's/^X-L//'`
39333                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39334                    found_dir="$dir"
39335                    found_so="$dir/lib$name.$shlibext"
39336                    if test -f "$dir/lib$name.la"; then
39337                      found_la="$dir/lib$name.la"
39338                    fi
39339                  else
39340                    if test -f "$dir/lib$name.$libext"; then
39341                      found_dir="$dir"
39342                      found_a="$dir/lib$name.$libext"
39343                      if test -f "$dir/lib$name.la"; then
39344                        found_la="$dir/lib$name.la"
39345                      fi
39346                    fi
39347                  fi
39348                  ;;
39349              esac
39350              if test "X$found_dir" != "X"; then
39351                break
39352              fi
39353            done
39354          fi
39355          if test "X$found_dir" != "X"; then
39356                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
39357            if test "X$found_so" != "X"; then
39358                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
39359                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
39360              else
39361                                                                                haveit=
39362                for x in $ltrpathdirs; do
39363                  if test "X$x" = "X$found_dir"; then
39364                    haveit=yes
39365                    break
39366                  fi
39367                done
39368                if test -z "$haveit"; then
39369                  ltrpathdirs="$ltrpathdirs $found_dir"
39370                fi
39371                                if test "$hardcode_direct" = yes; then
39372                                                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
39373                else
39374                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39375                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
39376                                                            haveit=
39377                    for x in $rpathdirs; do
39378                      if test "X$x" = "X$found_dir"; then
39379                        haveit=yes
39380                        break
39381                      fi
39382                    done
39383                    if test -z "$haveit"; then
39384                      rpathdirs="$rpathdirs $found_dir"
39385                    fi
39386                  else
39387                                                                                haveit=
39388                    for x in $LDFLAGS $LIBEXPAT; do
39389
39390  acl_save_prefix="$prefix"
39391  prefix="$acl_final_prefix"
39392  acl_save_exec_prefix="$exec_prefix"
39393  exec_prefix="$acl_final_exec_prefix"
39394  eval x=\"$x\"
39395  exec_prefix="$acl_save_exec_prefix"
39396  prefix="$acl_save_prefix"
39397
39398                      if test "X$x" = "X-L$found_dir"; then
39399                        haveit=yes
39400                        break
39401                      fi
39402                    done
39403                    if test -z "$haveit"; then
39404                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
39405                    fi
39406                    if test "$hardcode_minus_L" != no; then
39407                                                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
39408                    else
39409                                                                                                                                                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
39410                    fi
39411                  fi
39412                fi
39413              fi
39414            else
39415              if test "X$found_a" != "X"; then
39416                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
39417              else
39418                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
39419              fi
39420            fi
39421                        additional_includedir=
39422            case "$found_dir" in
39423              */lib | */lib/)
39424                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
39425                additional_includedir="$basedir/include"
39426                ;;
39427            esac
39428            if test "X$additional_includedir" != "X"; then
39429                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
39430                haveit=
39431                if test "X$additional_includedir" = "X/usr/local/include"; then
39432                  if test -n "$GCC"; then
39433                    case $host_os in
39434                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39435                    esac
39436                  fi
39437                fi
39438                if test -z "$haveit"; then
39439                  for x in $CPPFLAGS $INCEXPAT; do
39440
39441  acl_save_prefix="$prefix"
39442  prefix="$acl_final_prefix"
39443  acl_save_exec_prefix="$exec_prefix"
39444  exec_prefix="$acl_final_exec_prefix"
39445  eval x=\"$x\"
39446  exec_prefix="$acl_save_exec_prefix"
39447  prefix="$acl_save_prefix"
39448
39449                    if test "X$x" = "X-I$additional_includedir"; then
39450                      haveit=yes
39451                      break
39452                    fi
39453                  done
39454                  if test -z "$haveit"; then
39455                    if test -d "$additional_includedir"; then
39456                                            INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
39457                    fi
39458                  fi
39459                fi
39460              fi
39461            fi
39462                        if test -n "$found_la"; then
39463                                                        save_libdir="$libdir"
39464              case "$found_la" in
39465                */* | *\\*) . "$found_la" ;;
39466                *) . "./$found_la" ;;
39467              esac
39468              libdir="$save_libdir"
39469                            for dep in $dependency_libs; do
39470                case "$dep" in
39471                  -L*)
39472                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39473                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
39474                      haveit=
39475                      if test "X$additional_libdir" = "X/usr/local/lib"; then
39476                        if test -n "$GCC"; then
39477                          case $host_os in
39478                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39479                          esac
39480                        fi
39481                      fi
39482                      if test -z "$haveit"; then
39483                        haveit=
39484                        for x in $LDFLAGS $LIBEXPAT; do
39485
39486  acl_save_prefix="$prefix"
39487  prefix="$acl_final_prefix"
39488  acl_save_exec_prefix="$exec_prefix"
39489  exec_prefix="$acl_final_exec_prefix"
39490  eval x=\"$x\"
39491  exec_prefix="$acl_save_exec_prefix"
39492  prefix="$acl_save_prefix"
39493
39494                          if test "X$x" = "X-L$additional_libdir"; then
39495                            haveit=yes
39496                            break
39497                          fi
39498                        done
39499                        if test -z "$haveit"; then
39500                          if test -d "$additional_libdir"; then
39501                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
39502                          fi
39503                        fi
39504                        haveit=
39505                        for x in $LDFLAGS $LTLIBEXPAT; do
39506
39507  acl_save_prefix="$prefix"
39508  prefix="$acl_final_prefix"
39509  acl_save_exec_prefix="$exec_prefix"
39510  exec_prefix="$acl_final_exec_prefix"
39511  eval x=\"$x\"
39512  exec_prefix="$acl_save_exec_prefix"
39513  prefix="$acl_save_prefix"
39514
39515                          if test "X$x" = "X-L$additional_libdir"; then
39516                            haveit=yes
39517                            break
39518                          fi
39519                        done
39520                        if test -z "$haveit"; then
39521                          if test -d "$additional_libdir"; then
39522                                                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
39523                          fi
39524                        fi
39525                      fi
39526                    fi
39527                    ;;
39528                  -R*)
39529                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
39530                    if test "$enable_rpath" != no; then
39531                                                                  haveit=
39532                      for x in $rpathdirs; do
39533                        if test "X$x" = "X$dir"; then
39534                          haveit=yes
39535                          break
39536                        fi
39537                      done
39538                      if test -z "$haveit"; then
39539                        rpathdirs="$rpathdirs $dir"
39540                      fi
39541                                                                  haveit=
39542                      for x in $ltrpathdirs; do
39543                        if test "X$x" = "X$dir"; then
39544                          haveit=yes
39545                          break
39546                        fi
39547                      done
39548                      if test -z "$haveit"; then
39549                        ltrpathdirs="$ltrpathdirs $dir"
39550                      fi
39551                    fi
39552                    ;;
39553                  -l*)
39554                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39555                    ;;
39556                  *.la)
39557                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39558                    ;;
39559                  *)
39560                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
39561                    LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
39562                    ;;
39563                esac
39564              done
39565            fi
39566          else
39567                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
39568            LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
39569          fi
39570        fi
39571      fi
39572    done
39573  done
39574  if test "X$rpathdirs" != "X"; then
39575    if test -n "$hardcode_libdir_separator"; then
39576                        alldirs=
39577      for found_dir in $rpathdirs; do
39578        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
39579      done
39580            acl_save_libdir="$libdir"
39581      libdir="$alldirs"
39582      eval flag=\"$hardcode_libdir_flag_spec\"
39583      libdir="$acl_save_libdir"
39584      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
39585    else
39586            for found_dir in $rpathdirs; do
39587        acl_save_libdir="$libdir"
39588        libdir="$found_dir"
39589        eval flag=\"$hardcode_libdir_flag_spec\"
39590        libdir="$acl_save_libdir"
39591        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
39592      done
39593    fi
39594  fi
39595  if test "X$ltrpathdirs" != "X"; then
39596            for found_dir in $ltrpathdirs; do
39597      LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
39598    done
39599  fi
39600
39601
39602        ac_save_CPPFLAGS="$CPPFLAGS"
39603
39604  for element in $INCEXPAT; do
39605    haveit=
39606    for x in $CPPFLAGS; do
39607
39608  acl_save_prefix="$prefix"
39609  prefix="$acl_final_prefix"
39610  acl_save_exec_prefix="$exec_prefix"
39611  exec_prefix="$acl_final_exec_prefix"
39612  eval x=\"$x\"
39613  exec_prefix="$acl_save_exec_prefix"
39614  prefix="$acl_save_prefix"
39615
39616      if test "X$x" = "X$element"; then
39617        haveit=yes
39618        break
39619      fi
39620    done
39621    if test -z "$haveit"; then
39622      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39623    fi
39624  done
39625
39626
39627  echo "$as_me:$LINENO: checking for libexpat" >&5
39628echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
39629if test "${ac_cv_libexpat+set}" = set; then
39630  echo $ECHO_N "(cached) $ECHO_C" >&6
39631else
39632
39633    ac_save_LIBS="$LIBS"
39634    LIBS="$LIBS $LIBEXPAT"
39635    cat >conftest.$ac_ext <<_ACEOF
39636/* confdefs.h.  */
39637_ACEOF
39638cat confdefs.h >>conftest.$ac_ext
39639cat >>conftest.$ac_ext <<_ACEOF
39640/* end confdefs.h.  */
39641#include <expat.h>
39642int
39643main ()
39644{
39645XML_ExpatVersion();
39646  ;
39647  return 0;
39648}
39649_ACEOF
39650rm -f conftest.$ac_objext conftest$ac_exeext
39651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39652  (eval $ac_link) 2>conftest.er1
39653  ac_status=$?
39654  grep -v '^ *+' conftest.er1 >conftest.err
39655  rm -f conftest.er1
39656  cat conftest.err >&5
39657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39658  (exit $ac_status); } &&
39659	 { ac_try='test -z "$ac_c_werror_flag"
39660			 || test ! -s conftest.err'
39661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39662  (eval $ac_try) 2>&5
39663  ac_status=$?
39664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665  (exit $ac_status); }; } &&
39666	 { ac_try='test -s conftest$ac_exeext'
39667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39668  (eval $ac_try) 2>&5
39669  ac_status=$?
39670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671  (exit $ac_status); }; }; then
39672  ac_cv_libexpat=yes
39673else
39674  echo "$as_me: failed program was:" >&5
39675sed 's/^/| /' conftest.$ac_ext >&5
39676
39677ac_cv_libexpat=no
39678fi
39679rm -f conftest.err conftest.$ac_objext \
39680      conftest$ac_exeext conftest.$ac_ext
39681    LIBS="$ac_save_LIBS"
39682
39683fi
39684echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
39685echo "${ECHO_T}$ac_cv_libexpat" >&6
39686  if test "$ac_cv_libexpat" = yes; then
39687    HAVE_LIBEXPAT=yes
39688
39689cat >>confdefs.h <<\_ACEOF
39690#define HAVE_LIBEXPAT 1
39691_ACEOF
39692
39693    echo "$as_me:$LINENO: checking how to link with libexpat" >&5
39694echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
39695    echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
39696echo "${ECHO_T}$LIBEXPAT" >&6
39697  else
39698    HAVE_LIBEXPAT=no
39699            CPPFLAGS="$ac_save_CPPFLAGS"
39700    LIBEXPAT=
39701    LTLIBEXPAT=
39702  fi
39703
39704
39705
39706
39707
39708
39709    ;;
39710esac
39711
39712 # If set to t, that means we are running in a shell under Emacs.
39713 # If you have an Emacs named "t", then use the full path.
39714 test x"$EMACS" = xt && EMACS=
39715 for ac_prog in emacs xemacs
39716do
39717  # Extract the first word of "$ac_prog", so it can be a program name with args.
39718set dummy $ac_prog; ac_word=$2
39719echo "$as_me:$LINENO: checking for $ac_word" >&5
39720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39721if test "${ac_cv_prog_EMACS+set}" = set; then
39722  echo $ECHO_N "(cached) $ECHO_C" >&6
39723else
39724  if test -n "$EMACS"; then
39725  ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
39726else
39727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39728for as_dir in $PATH
39729do
39730  IFS=$as_save_IFS
39731  test -z "$as_dir" && as_dir=.
39732  for ac_exec_ext in '' $ac_executable_extensions; do
39733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39734    ac_cv_prog_EMACS="$ac_prog"
39735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39736    break 2
39737  fi
39738done
39739done
39740
39741fi
39742fi
39743EMACS=$ac_cv_prog_EMACS
39744if test -n "$EMACS"; then
39745  echo "$as_me:$LINENO: result: $EMACS" >&5
39746echo "${ECHO_T}$EMACS" >&6
39747else
39748  echo "$as_me:$LINENO: result: no" >&5
39749echo "${ECHO_T}no" >&6
39750fi
39751
39752  test -n "$EMACS" && break
39753done
39754test -n "$EMACS" || EMACS="no"
39755
39756
39757
39758
39759# Check whether --with-lispdir or --without-lispdir was given.
39760if test "${with_lispdir+set}" = set; then
39761  withval="$with_lispdir"
39762   lispdir="$withval"
39763   echo "$as_me:$LINENO: checking where .elc files should go" >&5
39764echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
39765   echo "$as_me:$LINENO: result: $lispdir" >&5
39766echo "${ECHO_T}$lispdir" >&6
39767else
39768
39769 echo "$as_me:$LINENO: checking where .elc files should go" >&5
39770echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
39771if test "${am_cv_lispdir+set}" = set; then
39772  echo $ECHO_N "(cached) $ECHO_C" >&6
39773else
39774
39775   if test $EMACS != "no"; then
39776     if test x${lispdir+set} != xset; then
39777  # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
39778  # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
39779  #  which is non-obvious for non-emacs users.
39780  # Redirecting /dev/null should help a bit; pity we can't detect "broken"
39781  #  emacsen earlier and avoid running this altogether.
39782  { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
39783  ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
39784  ac_status=$?
39785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39786  (exit $ac_status); }
39787	am_cv_lispdir=`sed -n \
39788       -e 's,/$,,' \
39789       -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
39790       -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
39791       conftest.out`
39792       rm conftest.out
39793     fi
39794   fi
39795   test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
39796
39797fi
39798echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
39799echo "${ECHO_T}$am_cv_lispdir" >&6
39800  lispdir="$am_cv_lispdir"
39801
39802fi;
39803
39804
39805
39806aclocaldir='${datadir}/aclocal'
39807
39808
39809ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
39810# Extract the first word of "dvips", so it can be a program name with args.
39811set dummy dvips; ac_word=$2
39812echo "$as_me:$LINENO: checking for $ac_word" >&5
39813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39814if test "${ac_cv_path_DVIPS+set}" = set; then
39815  echo $ECHO_N "(cached) $ECHO_C" >&6
39816else
39817  case $DVIPS in
39818  [\\/]* | ?:[\\/]*)
39819  ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
39820  ;;
39821  *)
39822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39823for as_dir in $PATH
39824do
39825  IFS=$as_save_IFS
39826  test -z "$as_dir" && as_dir=.
39827  for ac_exec_ext in '' $ac_executable_extensions; do
39828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39829    ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
39830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39831    break 2
39832  fi
39833done
39834done
39835
39836  test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
39837  ;;
39838esac
39839fi
39840DVIPS=$ac_cv_path_DVIPS
39841
39842if test -n "$DVIPS"; then
39843  echo "$as_me:$LINENO: result: $DVIPS" >&5
39844echo "${ECHO_T}$DVIPS" >&6
39845else
39846  echo "$as_me:$LINENO: result: no" >&5
39847echo "${ECHO_T}no" >&6
39848fi
39849
39850# Extract the first word of "texi2pdf", so it can be a program name with args.
39851set dummy texi2pdf; ac_word=$2
39852echo "$as_me:$LINENO: checking for $ac_word" >&5
39853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39854if test "${ac_cv_path_TEXI2PDF+set}" = set; then
39855  echo $ECHO_N "(cached) $ECHO_C" >&6
39856else
39857  case $TEXI2PDF in
39858  [\\/]* | ?:[\\/]*)
39859  ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
39860  ;;
39861  *)
39862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39863for as_dir in $PATH
39864do
39865  IFS=$as_save_IFS
39866  test -z "$as_dir" && as_dir=.
39867  for ac_exec_ext in '' $ac_executable_extensions; do
39868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39869    ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
39870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39871    break 2
39872  fi
39873done
39874done
39875
39876  test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
39877  ;;
39878esac
39879fi
39880TEXI2PDF=$ac_cv_path_TEXI2PDF
39881
39882if test -n "$TEXI2PDF"; then
39883  echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
39884echo "${ECHO_T}$TEXI2PDF" >&6
39885else
39886  echo "$as_me:$LINENO: result: no" >&5
39887echo "${ECHO_T}no" >&6
39888fi
39889
39890# Extract the first word of "perl", so it can be a program name with args.
39891set dummy perl; ac_word=$2
39892echo "$as_me:$LINENO: checking for $ac_word" >&5
39893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39894if test "${ac_cv_path_PERL+set}" = set; then
39895  echo $ECHO_N "(cached) $ECHO_C" >&6
39896else
39897  case $PERL in
39898  [\\/]* | ?:[\\/]*)
39899  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39900  ;;
39901  *)
39902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39903for as_dir in $PATH
39904do
39905  IFS=$as_save_IFS
39906  test -z "$as_dir" && as_dir=.
39907  for ac_exec_ext in '' $ac_executable_extensions; do
39908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39909    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39911    break 2
39912  fi
39913done
39914done
39915
39916  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
39917  ;;
39918esac
39919fi
39920PERL=$ac_cv_path_PERL
39921
39922if test -n "$PERL"; then
39923  echo "$as_me:$LINENO: result: $PERL" >&5
39924echo "${ECHO_T}$PERL" >&6
39925else
39926  echo "$as_me:$LINENO: result: no" >&5
39927echo "${ECHO_T}no" >&6
39928fi
39929
39930
39931CROSS_COMPILING=$cross_compiling
39932
39933
39934
39935for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
39936do
39937  # Extract the first word of "$ac_prog", so it can be a program name with args.
39938set dummy $ac_prog; ac_word=$2
39939echo "$as_me:$LINENO: checking for $ac_word" >&5
39940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39941if test "${ac_cv_prog_CXX+set}" = set; then
39942  echo $ECHO_N "(cached) $ECHO_C" >&6
39943else
39944  if test -n "$CXX"; then
39945  ac_cv_prog_CXX="$CXX" # Let the user override the test.
39946else
39947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39948for as_dir in $PATH
39949do
39950  IFS=$as_save_IFS
39951  test -z "$as_dir" && as_dir=.
39952  for ac_exec_ext in '' $ac_executable_extensions; do
39953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39954    ac_cv_prog_CXX="$ac_prog"
39955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39956    break 2
39957  fi
39958done
39959done
39960
39961fi
39962fi
39963CXX=$ac_cv_prog_CXX
39964if test -n "$CXX"; then
39965  echo "$as_me:$LINENO: result: $CXX" >&5
39966echo "${ECHO_T}$CXX" >&6
39967else
39968  echo "$as_me:$LINENO: result: no" >&5
39969echo "${ECHO_T}no" >&6
39970fi
39971
39972  test -n "$CXX" && break
39973done
39974test -n "$CXX" || CXX=":"
39975
39976if test "$CXX" != ":"; then
39977      echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
39978echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6
39979  ac_ext=cc
39980ac_cpp='$CXXCPP $CPPFLAGS'
39981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39984
39985
39986
39987  echo 'int main () { return 0; }' > conftest.$ac_ext
39988  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39989  (eval $ac_link) 2>&5
39990  ac_status=$?
39991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992  (exit $ac_status); } && test -s conftest$ac_exeext; then
39993    ac_cv_prog_cxx_works=yes
39994    if (./conftest; exit) 2>/dev/null; then
39995      ac_cv_prog_cxx_cross=no
39996    else
39997      ac_cv_prog_cxx_cross=yes
39998    fi
39999  else
40000    ac_cv_prog_cxx_works=no
40001  fi
40002  rm -fr conftest*
40003  ac_ext=c
40004ac_cpp='$CPP $CPPFLAGS'
40005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40007ac_compiler_gnu=$ac_cv_c_compiler_gnu
40008
40009  echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5
40010echo "${ECHO_T}$ac_cv_prog_cxx_works" >&6
40011  if test $ac_cv_prog_cxx_works = no; then
40012    CXX=:
40013  else
40014            echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5
40015echo $ECHO_N "checking whether the C++ compiler supports namespaces... $ECHO_C" >&6
40016    ac_ext=cc
40017ac_cpp='$CXXCPP $CPPFLAGS'
40018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40021
40022    cat <<EOF > conftest.$ac_ext
40023#include <iostream>
40024namespace test { using namespace std; }
40025std::ostream* ptr;
40026int main () { return 0; }
40027EOF
40028    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40029  (eval $ac_link) 2>&5
40030  ac_status=$?
40031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032  (exit $ac_status); } && test -s conftest$ac_exeext; then
40033      gt_cv_prog_cxx_namespaces=yes
40034    else
40035      gt_cv_prog_cxx_namespaces=no
40036    fi
40037    rm -fr conftest*
40038    ac_ext=c
40039ac_cpp='$CPP $CPPFLAGS'
40040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40042ac_compiler_gnu=$ac_cv_c_compiler_gnu
40043
40044    echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5
40045echo "${ECHO_T}$gt_cv_prog_cxx_namespaces" >&6
40046    if test $gt_cv_prog_cxx_namespaces = no; then
40047      CXX=:
40048    fi
40049  fi
40050fi
40051
40052
40053
40054  echo "$as_me:$LINENO: checking for a traditional french locale" >&5
40055echo $ECHO_N "checking for a traditional french locale... $ECHO_C" >&6
40056if test "${gt_cv_locale_fr+set}" = set; then
40057  echo $ECHO_N "(cached) $ECHO_C" >&6
40058else
40059
40060    macosx=
40061    case "$host_os" in
40062      darwin56*) ;;
40063      darwin*) macosx=yes;;
40064    esac
40065    if test -n "$macosx"; then
40066      # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8
40067      # encodings, but the kernel does not support them. The documentation
40068      # says:
40069      #   "... all code that calls BSD system routines should ensure
40070      #    that the const *char parameters of these routines are in UTF-8
40071      #    encoding. All BSD system functions expect their string
40072      #    parameters to be in UTF-8 encoding and nothing else."
40073      # See the comments in config.charset. Therefore we bypass the test.
40074      gt_cv_locale_fr=none
40075    else
40076      cat <<EOF > conftest.$ac_ext
40077#include <locale.h>
40078#include <time.h>
40079struct tm t;
40080char buf[16];
40081int main () {
40082  /* Check whether the given locale name is recognized by the system.  */
40083  if (setlocale (LC_ALL, "") == NULL) return 1;
40084  /* Check whether in the abbreviation of the second month, the second
40085     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
40086     one byte long. This excludes the UTF-8 encoding.  */
40087  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
40088  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
40089  return 0;
40090}
40091EOF
40092      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40093  (eval $ac_link) 2>&5
40094  ac_status=$?
40095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096  (exit $ac_status); } && test -s conftest$ac_exeext; then
40097        # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
40098        # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
40099        # configure script would override the LC_ALL setting.
40100        # Test for the usual locale name.
40101        if (LC_ALL=fr_FR LC_TIME= ./conftest; exit) 2>/dev/null; then
40102          gt_cv_locale_fr=fr_FR
40103        else
40104          # Test for the locale name with explicit encoding suffix.
40105          if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= ./conftest; exit) 2>/dev/null; then
40106            gt_cv_locale_fr=fr_FR.ISO-8859-1
40107          else
40108            # Test for the AIX, OSF/1, FreeBSD, NetBSD locale name.
40109            if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= ./conftest; exit) 2>/dev/null; then
40110              gt_cv_locale_fr=fr_FR.ISO8859-1
40111            else
40112              # Test for the HP-UX locale name.
40113              if (LC_ALL=fr_FR.iso88591 LC_TIME= ./conftest; exit) 2>/dev/null; then
40114                gt_cv_locale_fr=fr_FR.iso88591
40115              else
40116                # Test for the Solaris 7 locale name.
40117                if (LC_ALL=fr LC_TIME= ./conftest; exit) 2>/dev/null; then
40118                  gt_cv_locale_fr=fr
40119                else
40120                  # Special test for NetBSD 1.6.
40121                  if test -f /usr/share/locale/fr_FR.ISO8859-1/LC_CTYPE; then
40122                    gt_cv_locale_fr=fr_FR.ISO8859-1
40123                  else
40124                    # None found.
40125                    gt_cv_locale_fr=none
40126                  fi
40127                fi
40128              fi
40129            fi
40130          fi
40131        fi
40132      fi
40133      rm -fr conftest*
40134    fi
40135
40136fi
40137echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
40138echo "${ECHO_T}$gt_cv_locale_fr" >&6
40139  LOCALE_FR=$gt_cv_locale_fr
40140
40141
40142
40143  echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
40144echo $ECHO_N "checking for a french Unicode locale... $ECHO_C" >&6
40145if test "${gt_cv_locale_fr_utf8+set}" = set; then
40146  echo $ECHO_N "(cached) $ECHO_C" >&6
40147else
40148
40149    cat <<EOF > conftest.$ac_ext
40150#include <locale.h>
40151#include <time.h>
40152struct tm t;
40153char buf[16];
40154int main () {
40155  /* On BeOS, locales are not implemented in libc.  Rather, libintl
40156     imitates locale dependent behaviour by looking at the environment
40157     variables, and all locales use the UTF-8 encoding.  */
40158#if !defined(__BEOS__)
40159  /* Check whether the given locale name is recognized by the system.  */
40160  if (setlocale (LC_ALL, "") == NULL) return 1;
40161  /* Check whether in the abbreviation of the second month, the second
40162     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
40163     two bytes long, with UTF-8 encoding.  */
40164  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
40165  if (strftime (buf, sizeof (buf), "%b", &t) < 4
40166      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
40167    return 1;
40168#endif
40169  return 0;
40170}
40171EOF
40172    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40173  (eval $ac_link) 2>&5
40174  ac_status=$?
40175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176  (exit $ac_status); } && test -s conftest$ac_exeext; then
40177      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
40178      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
40179      # configure script would override the LC_ALL setting.
40180      # Test for the usual locale name.
40181      if (LC_ALL=fr_FR LC_TIME= ./conftest; exit) 2>/dev/null; then
40182        gt_cv_locale_fr_utf8=fr_FR
40183      else
40184        # Test for the locale name with explicit encoding suffix.
40185        if (LC_ALL=fr_FR.UTF-8 LC_TIME= ./conftest; exit) 2>/dev/null; then
40186          gt_cv_locale_fr_utf8=fr_FR.UTF-8
40187        else
40188          # Test for the Solaris 7 locale name.
40189          if (LC_ALL=fr.UTF-8 LC_TIME= ./conftest; exit) 2>/dev/null; then
40190            gt_cv_locale_fr_utf8=fr.UTF-8
40191          else
40192            # None found.
40193            gt_cv_locale_fr_utf8=none
40194          fi
40195        fi
40196      fi
40197    fi
40198    rm -fr conftest*
40199
40200fi
40201echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
40202echo "${ECHO_T}$gt_cv_locale_fr_utf8" >&6
40203  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
40204
40205
40206
40207if test "${enable_libasprintf+set}" = set; then
40208  if test "$enable_libasprintf" != no; then
40209    TESTLIBASPRINTF=yes
40210  else
40211    TESTLIBASPRINTF=no
40212  fi
40213else
40214  TESTLIBASPRINTF=yes
40215fi
40216if test "$CXX" = ":"; then
40217  TESTLIBASPRINTF=no
40218fi
40219
40220
40221test -d intl || mkdir intl
40222echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
40223cat > intl/ChangeLog.inst <<EOF
40224$RELEASE_DATE  GNU  <bug-gnu-gettext@gnu.org>
40225
40226	* Version $VERSION released.
40227
40228EOF
40229
40230          ac_config_files="$ac_config_files Makefile"
40231
40232
40233          ac_config_files="$ac_config_files doc/Makefile"
40234
40235
40236          ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in"
40237
40238
40239          ac_config_files="$ac_config_files lib/Makefile"
40240
40241                    ac_config_files="$ac_config_files lib/javacomp.sh lib/javaexec.sh"
40242
40243                    ac_config_files="$ac_config_files lib/csharpcomp.sh lib/csharpexec.sh"
40244
40245
40246          ac_config_files="$ac_config_files libgrep/Makefile"
40247
40248
40249          ac_config_files="$ac_config_files libuniname/Makefile"
40250
40251
40252          ac_config_files="$ac_config_files src/Makefile"
40253
40254          ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in"
40255
40256
40257          ac_config_files="$ac_config_files po/Makefile.in"
40258
40259
40260          ac_config_files="$ac_config_files projects/Makefile"
40261
40262
40263          ac_config_files="$ac_config_files misc/Makefile"
40264
40265          ac_config_files="$ac_config_files misc/gettextize"
40266
40267          ac_config_files="$ac_config_files misc/autopoint"
40268
40269
40270          ac_config_files="$ac_config_files man/Makefile"
40271
40272          ac_config_files="$ac_config_files man/x-to-1"
40273
40274
40275          ac_config_files="$ac_config_files m4/Makefile"
40276
40277
40278          ac_config_files="$ac_config_files tests/Makefile"
40279
40280
40281          ac_config_files="$ac_config_files examples/Makefile"
40282
40283          ac_config_files="$ac_config_files examples/installpaths"
40284
40285          ac_config_files="$ac_config_files examples/po/Makefile"
40286
40287
40288cat >confcache <<\_ACEOF
40289# This file is a shell script that caches the results of configure
40290# tests run on this system so they can be shared between configure
40291# scripts and configure runs, see configure's option --config-cache.
40292# It is not useful on other systems.  If it contains results you don't
40293# want to keep, you may remove or edit it.
40294#
40295# config.status only pays attention to the cache file if you give it
40296# the --recheck option to rerun configure.
40297#
40298# `ac_cv_env_foo' variables (set or unset) will be overridden when
40299# loading this file, other *unset* `ac_cv_foo' will be assigned the
40300# following values.
40301
40302_ACEOF
40303
40304# The following way of writing the cache mishandles newlines in values,
40305# but we know of no workaround that is simple, portable, and efficient.
40306# So, don't put newlines in cache variables' values.
40307# Ultrix sh set writes to stderr and can't be redirected directly,
40308# and sets the high bit in the cache file unless we assign to the vars.
40309{
40310  (set) 2>&1 |
40311    case `(ac_space=' '; set | grep ac_space) 2>&1` in
40312    *ac_space=\ *)
40313      # `set' does not quote correctly, so add quotes (double-quote
40314      # substitution turns \\\\ into \\, and sed turns \\ into \).
40315      sed -n \
40316	"s/'/'\\\\''/g;
40317	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40318      ;;
40319    *)
40320      # `set' quotes correctly as required by POSIX, so do not add quotes.
40321      sed -n \
40322	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40323      ;;
40324    esac;
40325} |
40326  sed '
40327     t clear
40328     : clear
40329     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40330     t end
40331     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40332     : end' >>confcache
40333if diff $cache_file confcache >/dev/null 2>&1; then :; else
40334  if test -w $cache_file; then
40335    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40336    cat confcache >$cache_file
40337  else
40338    echo "not updating unwritable cache $cache_file"
40339  fi
40340fi
40341rm -f confcache
40342
40343test "x$prefix" = xNONE && prefix=$ac_default_prefix
40344# Let make expand exec_prefix.
40345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40346
40347# VPATH may cause trouble with some makes, so we remove $(srcdir),
40348# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40349# trailing colons and then remove the whole line if VPATH becomes empty
40350# (actually we leave an empty line to preserve line numbers).
40351if test "x$srcdir" = x.; then
40352  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
40353s/:*\$(srcdir):*/:/;
40354s/:*\${srcdir}:*/:/;
40355s/:*@srcdir@:*/:/;
40356s/^\([^=]*=[	 ]*\):*/\1/;
40357s/:*$//;
40358s/^[^=]*=[	 ]*$//;
40359}'
40360fi
40361
40362DEFS=-DHAVE_CONFIG_H
40363
40364ac_libobjs=
40365ac_ltlibobjs=
40366for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40367  # 1. Remove the extension, and $U if already installed.
40368  ac_i=`echo "$ac_i" |
40369	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40370  # 2. Add them.
40371  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40372  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40373done
40374LIBOBJS=$ac_libobjs
40375
40376LTLIBOBJS=$ac_ltlibobjs
40377
40378
40379if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40380  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40381Usually this means the macro was only invoked conditionally." >&5
40382echo "$as_me: error: conditional \"AMDEP\" was never defined.
40383Usually this means the macro was only invoked conditionally." >&2;}
40384   { (exit 1); exit 1; }; }
40385fi
40386if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40387  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40388Usually this means the macro was only invoked conditionally." >&5
40389echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40390Usually this means the macro was only invoked conditionally." >&2;}
40391   { (exit 1); exit 1; }; }
40392fi
40393if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
40394  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
40395Usually this means the macro was only invoked conditionally." >&5
40396echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
40397Usually this means the macro was only invoked conditionally." >&2;}
40398   { (exit 1); exit 1; }; }
40399fi
40400if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
40401  { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
40402Usually this means the macro was only invoked conditionally." >&5
40403echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
40404Usually this means the macro was only invoked conditionally." >&2;}
40405   { (exit 1); exit 1; }; }
40406fi
40407
40408: ${CONFIG_STATUS=./config.status}
40409ac_clean_files_save=$ac_clean_files
40410ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40411{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40412echo "$as_me: creating $CONFIG_STATUS" >&6;}
40413cat >$CONFIG_STATUS <<_ACEOF
40414#! $SHELL
40415# Generated by $as_me.
40416# Run this file to recreate the current configuration.
40417# Compiler output produced by configure, useful for debugging
40418# configure, is in config.log if it exists.
40419
40420debug=false
40421ac_cs_recheck=false
40422ac_cs_silent=false
40423SHELL=\${CONFIG_SHELL-$SHELL}
40424_ACEOF
40425
40426cat >>$CONFIG_STATUS <<\_ACEOF
40427## --------------------- ##
40428## M4sh Initialization.  ##
40429## --------------------- ##
40430
40431# Be Bourne compatible
40432if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40433  emulate sh
40434  NULLCMD=:
40435  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40436  # is contrary to our usage.  Disable this feature.
40437  alias -g '${1+"$@"}'='"$@"'
40438elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40439  set -o posix
40440fi
40441DUALCASE=1; export DUALCASE # for MKS sh
40442
40443# Support unset when possible.
40444if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40445  as_unset=unset
40446else
40447  as_unset=false
40448fi
40449
40450
40451# Work around bugs in pre-3.0 UWIN ksh.
40452$as_unset ENV MAIL MAILPATH
40453PS1='$ '
40454PS2='> '
40455PS4='+ '
40456
40457# NLS nuisances.
40458for as_var in \
40459  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40460  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40461  LC_TELEPHONE LC_TIME
40462do
40463  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40464    eval $as_var=C; export $as_var
40465  else
40466    $as_unset $as_var
40467  fi
40468done
40469
40470# Required to use basename.
40471if expr a : '\(a\)' >/dev/null 2>&1; then
40472  as_expr=expr
40473else
40474  as_expr=false
40475fi
40476
40477if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40478  as_basename=basename
40479else
40480  as_basename=false
40481fi
40482
40483
40484# Name of the executable.
40485as_me=`$as_basename "$0" ||
40486$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40487	 X"$0" : 'X\(//\)$' \| \
40488	 X"$0" : 'X\(/\)$' \| \
40489	 .     : '\(.\)' 2>/dev/null ||
40490echo X/"$0" |
40491    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40492  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
40493  	  /^X\/\(\/\).*/{ s//\1/; q; }
40494  	  s/.*/./; q'`
40495
40496
40497# PATH needs CR, and LINENO needs CR and PATH.
40498# Avoid depending upon Character Ranges.
40499as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40500as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40501as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40502as_cr_digits='0123456789'
40503as_cr_alnum=$as_cr_Letters$as_cr_digits
40504
40505# The user is always right.
40506if test "${PATH_SEPARATOR+set}" != set; then
40507  echo "#! /bin/sh" >conf$$.sh
40508  echo  "exit 0"   >>conf$$.sh
40509  chmod +x conf$$.sh
40510  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40511    PATH_SEPARATOR=';'
40512  else
40513    PATH_SEPARATOR=:
40514  fi
40515  rm -f conf$$.sh
40516fi
40517
40518
40519  as_lineno_1=$LINENO
40520  as_lineno_2=$LINENO
40521  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40522  test "x$as_lineno_1" != "x$as_lineno_2" &&
40523  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
40524  # Find who we are.  Look in the path if we contain no path at all
40525  # relative or not.
40526  case $0 in
40527    *[\\/]* ) as_myself=$0 ;;
40528    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40529for as_dir in $PATH
40530do
40531  IFS=$as_save_IFS
40532  test -z "$as_dir" && as_dir=.
40533  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40534done
40535
40536       ;;
40537  esac
40538  # We did not find ourselves, most probably we were run as `sh COMMAND'
40539  # in which case we are not to be found in the path.
40540  if test "x$as_myself" = x; then
40541    as_myself=$0
40542  fi
40543  if test ! -f "$as_myself"; then
40544    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40545echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40546   { (exit 1); exit 1; }; }
40547  fi
40548  case $CONFIG_SHELL in
40549  '')
40550    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40551for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40552do
40553  IFS=$as_save_IFS
40554  test -z "$as_dir" && as_dir=.
40555  for as_base in sh bash ksh sh5; do
40556	 case $as_dir in
40557	 /*)
40558	   if ("$as_dir/$as_base" -c '
40559  as_lineno_1=$LINENO
40560  as_lineno_2=$LINENO
40561  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40562  test "x$as_lineno_1" != "x$as_lineno_2" &&
40563  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
40564	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40565	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40566	     CONFIG_SHELL=$as_dir/$as_base
40567	     export CONFIG_SHELL
40568	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40569	   fi;;
40570	 esac
40571       done
40572done
40573;;
40574  esac
40575
40576  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40577  # uniformly replaced by the line number.  The first 'sed' inserts a
40578  # line-number line before each line; the second 'sed' does the real
40579  # work.  The second script uses 'N' to pair each line-number line
40580  # with the numbered line, and appends trailing '-' during
40581  # substitution so that $LINENO is not a special case at line end.
40582  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40583  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
40584  sed '=' <$as_myself |
40585    sed '
40586      N
40587      s,$,-,
40588      : loop
40589      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40590      t loop
40591      s,-$,,
40592      s,^['$as_cr_digits']*\n,,
40593    ' >$as_me.lineno &&
40594  chmod +x $as_me.lineno ||
40595    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40596echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40597   { (exit 1); exit 1; }; }
40598
40599  # Don't try to exec as it changes $[0], causing all sort of problems
40600  # (the dirname of $[0] is not the place where we might find the
40601  # original and so on.  Autoconf is especially sensible to this).
40602  . ./$as_me.lineno
40603  # Exit status is that of the last command.
40604  exit
40605}
40606
40607
40608case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40609  *c*,-n*) ECHO_N= ECHO_C='
40610' ECHO_T='	' ;;
40611  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40612  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
40613esac
40614
40615if expr a : '\(a\)' >/dev/null 2>&1; then
40616  as_expr=expr
40617else
40618  as_expr=false
40619fi
40620
40621rm -f conf$$ conf$$.exe conf$$.file
40622echo >conf$$.file
40623if ln -s conf$$.file conf$$ 2>/dev/null; then
40624  # We could just check for DJGPP; but this test a) works b) is more generic
40625  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40626  if test -f conf$$.exe; then
40627    # Don't use ln at all; we don't have any links
40628    as_ln_s='cp -p'
40629  else
40630    as_ln_s='ln -s'
40631  fi
40632elif ln conf$$.file conf$$ 2>/dev/null; then
40633  as_ln_s=ln
40634else
40635  as_ln_s='cp -p'
40636fi
40637rm -f conf$$ conf$$.exe conf$$.file
40638
40639if mkdir -p . 2>/dev/null; then
40640  as_mkdir_p=:
40641else
40642  test -d ./-p && rmdir ./-p
40643  as_mkdir_p=false
40644fi
40645
40646as_executable_p="test -f"
40647
40648# Sed expression to map a string onto a valid CPP name.
40649as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40650
40651# Sed expression to map a string onto a valid variable name.
40652as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40653
40654
40655# IFS
40656# We need space, tab and new line, in precisely that order.
40657as_nl='
40658'
40659IFS=" 	$as_nl"
40660
40661# CDPATH.
40662$as_unset CDPATH
40663
40664exec 6>&1
40665
40666# Open the log real soon, to keep \$[0] and so on meaningful, and to
40667# report actual input values of CONFIG_FILES etc. instead of their
40668# values after options handling.  Logging --version etc. is OK.
40669exec 5>>config.log
40670{
40671  echo
40672  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40673## Running $as_me. ##
40674_ASBOX
40675} >&5
40676cat >&5 <<_CSEOF
40677
40678This file was extended by $as_me, which was
40679generated by GNU Autoconf 2.59.  Invocation command line was
40680
40681  CONFIG_FILES    = $CONFIG_FILES
40682  CONFIG_HEADERS  = $CONFIG_HEADERS
40683  CONFIG_LINKS    = $CONFIG_LINKS
40684  CONFIG_COMMANDS = $CONFIG_COMMANDS
40685  $ $0 $@
40686
40687_CSEOF
40688echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40689echo >&5
40690_ACEOF
40691
40692# Files that config.status was made for.
40693if test -n "$ac_config_files"; then
40694  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40695fi
40696
40697if test -n "$ac_config_headers"; then
40698  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40699fi
40700
40701if test -n "$ac_config_links"; then
40702  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40703fi
40704
40705if test -n "$ac_config_commands"; then
40706  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40707fi
40708
40709cat >>$CONFIG_STATUS <<\_ACEOF
40710
40711ac_cs_usage="\
40712\`$as_me' instantiates files from templates according to the
40713current configuration.
40714
40715Usage: $0 [OPTIONS] [FILE]...
40716
40717  -h, --help       print this help, then exit
40718  -V, --version    print version number, then exit
40719  -q, --quiet      do not print progress messages
40720  -d, --debug      don't remove temporary files
40721      --recheck    update $as_me by reconfiguring in the same conditions
40722  --file=FILE[:TEMPLATE]
40723		   instantiate the configuration file FILE
40724  --header=FILE[:TEMPLATE]
40725		   instantiate the configuration header FILE
40726
40727Configuration files:
40728$config_files
40729
40730Configuration headers:
40731$config_headers
40732
40733Configuration commands:
40734$config_commands
40735
40736Report bugs to <bug-autoconf@gnu.org>."
40737_ACEOF
40738
40739cat >>$CONFIG_STATUS <<_ACEOF
40740ac_cs_version="\\
40741config.status
40742configured by $0, generated by GNU Autoconf 2.59,
40743  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40744
40745Copyright (C) 2003 Free Software Foundation, Inc.
40746This config.status script is free software; the Free Software Foundation
40747gives unlimited permission to copy, distribute and modify it."
40748srcdir=$srcdir
40749INSTALL="$INSTALL"
40750_ACEOF
40751
40752cat >>$CONFIG_STATUS <<\_ACEOF
40753# If no file are specified by the user, then we need to provide default
40754# value.  By we need to know if files were specified by the user.
40755ac_need_defaults=:
40756while test $# != 0
40757do
40758  case $1 in
40759  --*=*)
40760    ac_option=`expr "x$1" : 'x\([^=]*\)='`
40761    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40762    ac_shift=:
40763    ;;
40764  -*)
40765    ac_option=$1
40766    ac_optarg=$2
40767    ac_shift=shift
40768    ;;
40769  *) # This is not an option, so the user has probably given explicit
40770     # arguments.
40771     ac_option=$1
40772     ac_need_defaults=false;;
40773  esac
40774
40775  case $ac_option in
40776  # Handling of the options.
40777_ACEOF
40778cat >>$CONFIG_STATUS <<\_ACEOF
40779  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40780    ac_cs_recheck=: ;;
40781  --version | --vers* | -V )
40782    echo "$ac_cs_version"; exit 0 ;;
40783  --he | --h)
40784    # Conflict between --help and --header
40785    { { echo "$as_me:$LINENO: error: ambiguous option: $1
40786Try \`$0 --help' for more information." >&5
40787echo "$as_me: error: ambiguous option: $1
40788Try \`$0 --help' for more information." >&2;}
40789   { (exit 1); exit 1; }; };;
40790  --help | --hel | -h )
40791    echo "$ac_cs_usage"; exit 0 ;;
40792  --debug | --d* | -d )
40793    debug=: ;;
40794  --file | --fil | --fi | --f )
40795    $ac_shift
40796    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40797    ac_need_defaults=false;;
40798  --header | --heade | --head | --hea )
40799    $ac_shift
40800    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40801    ac_need_defaults=false;;
40802  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40803  | -silent | --silent | --silen | --sile | --sil | --si | --s)
40804    ac_cs_silent=: ;;
40805
40806  # This is an error.
40807  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40808Try \`$0 --help' for more information." >&5
40809echo "$as_me: error: unrecognized option: $1
40810Try \`$0 --help' for more information." >&2;}
40811   { (exit 1); exit 1; }; } ;;
40812
40813  *) ac_config_targets="$ac_config_targets $1" ;;
40814
40815  esac
40816  shift
40817done
40818
40819ac_configure_extra_args=
40820
40821if $ac_cs_silent; then
40822  exec 6>/dev/null
40823  ac_configure_extra_args="$ac_configure_extra_args --silent"
40824fi
40825
40826_ACEOF
40827cat >>$CONFIG_STATUS <<_ACEOF
40828if \$ac_cs_recheck; then
40829  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40830  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40831fi
40832
40833_ACEOF
40834
40835cat >>$CONFIG_STATUS <<_ACEOF
40836#
40837# INIT-COMMANDS section.
40838#
40839
40840AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40841# Capture the value of obsolete ALL_LINGUAS because we need it to compute
40842    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
40843    # from automake.
40844    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
40845    # Capture the value of LINGUAS because we need it to compute CATALOGS.
40846    LINGUAS="${LINGUAS-%UNSET%}"
40847
40848
40849_ACEOF
40850
40851
40852
40853cat >>$CONFIG_STATUS <<\_ACEOF
40854for ac_config_target in $ac_config_targets
40855do
40856  case "$ac_config_target" in
40857  # Handling of arguments.
40858  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40859  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
40860  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;;
40861  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40862  "lib/javacomp.sh" ) CONFIG_FILES="$CONFIG_FILES lib/javacomp.sh" ;;
40863  "lib/javaexec.sh" ) CONFIG_FILES="$CONFIG_FILES lib/javaexec.sh" ;;
40864  "lib/csharpcomp.sh" ) CONFIG_FILES="$CONFIG_FILES lib/csharpcomp.sh" ;;
40865  "lib/csharpexec.sh" ) CONFIG_FILES="$CONFIG_FILES lib/csharpexec.sh" ;;
40866  "libgrep/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;;
40867  "libuniname/Makefile" ) CONFIG_FILES="$CONFIG_FILES libuniname/Makefile" ;;
40868  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40869  "src/user-email" ) CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;;
40870  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
40871  "projects/Makefile" ) CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;;
40872  "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
40873  "misc/gettextize" ) CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;;
40874  "misc/autopoint" ) CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;;
40875  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
40876  "man/x-to-1" ) CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
40877  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
40878  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40879  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
40880  "examples/installpaths" ) CONFIG_FILES="$CONFIG_FILES examples/installpaths" ;;
40881  "examples/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/po/Makefile" ;;
40882  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40883  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
40884  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
40885  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40886echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40887   { (exit 1); exit 1; }; };;
40888  esac
40889done
40890
40891# If the user did not use the arguments to specify the items to instantiate,
40892# then the envvar interface is used.  Set only those that are not.
40893# We use the long form for the default assignment because of an extremely
40894# bizarre bug on SunOS 4.1.3.
40895if $ac_need_defaults; then
40896  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40897  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40898  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40899fi
40900
40901# Have a temporary directory for convenience.  Make it in the build tree
40902# simply because there is no reason to put it here, and in addition,
40903# creating and moving files from /tmp can sometimes cause problems.
40904# Create a temporary directory, and hook for its removal unless debugging.
40905$debug ||
40906{
40907  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40908  trap '{ (exit 1); exit 1; }' 1 2 13 15
40909}
40910
40911# Create a (secure) tmp directory for tmp files.
40912
40913{
40914  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40915  test -n "$tmp" && test -d "$tmp"
40916}  ||
40917{
40918  tmp=./confstat$$-$RANDOM
40919  (umask 077 && mkdir $tmp)
40920} ||
40921{
40922   echo "$me: cannot create a temporary directory in ." >&2
40923   { (exit 1); exit 1; }
40924}
40925
40926_ACEOF
40927
40928cat >>$CONFIG_STATUS <<_ACEOF
40929
40930#
40931# CONFIG_FILES section.
40932#
40933
40934# No need to generate the scripts if there are no CONFIG_FILES.
40935# This happens for instance when ./config.status config.h
40936if test -n "\$CONFIG_FILES"; then
40937  # Protect against being on the right side of a sed subst in config.status.
40938  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40939   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40940s,@SHELL@,$SHELL,;t t
40941s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40942s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40943s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40944s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40945s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40946s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40947s,@exec_prefix@,$exec_prefix,;t t
40948s,@prefix@,$prefix,;t t
40949s,@program_transform_name@,$program_transform_name,;t t
40950s,@bindir@,$bindir,;t t
40951s,@sbindir@,$sbindir,;t t
40952s,@libexecdir@,$libexecdir,;t t
40953s,@datadir@,$datadir,;t t
40954s,@sysconfdir@,$sysconfdir,;t t
40955s,@sharedstatedir@,$sharedstatedir,;t t
40956s,@localstatedir@,$localstatedir,;t t
40957s,@libdir@,$libdir,;t t
40958s,@includedir@,$includedir,;t t
40959s,@oldincludedir@,$oldincludedir,;t t
40960s,@infodir@,$infodir,;t t
40961s,@mandir@,$mandir,;t t
40962s,@build_alias@,$build_alias,;t t
40963s,@host_alias@,$host_alias,;t t
40964s,@target_alias@,$target_alias,;t t
40965s,@DEFS@,$DEFS,;t t
40966s,@ECHO_C@,$ECHO_C,;t t
40967s,@ECHO_N@,$ECHO_N,;t t
40968s,@ECHO_T@,$ECHO_T,;t t
40969s,@LIBS@,$LIBS,;t t
40970s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40971s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40972s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40973s,@CYGPATH_W@,$CYGPATH_W,;t t
40974s,@PACKAGE@,$PACKAGE,;t t
40975s,@VERSION@,$VERSION,;t t
40976s,@ACLOCAL@,$ACLOCAL,;t t
40977s,@AUTOCONF@,$AUTOCONF,;t t
40978s,@AUTOMAKE@,$AUTOMAKE,;t t
40979s,@AUTOHEADER@,$AUTOHEADER,;t t
40980s,@MAKEINFO@,$MAKEINFO,;t t
40981s,@install_sh@,$install_sh,;t t
40982s,@STRIP@,$STRIP,;t t
40983s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40984s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40985s,@mkdir_p@,$mkdir_p,;t t
40986s,@AWK@,$AWK,;t t
40987s,@SET_MAKE@,$SET_MAKE,;t t
40988s,@am__leading_dot@,$am__leading_dot,;t t
40989s,@AMTAR@,$AMTAR,;t t
40990s,@am__tar@,$am__tar,;t t
40991s,@am__untar@,$am__untar,;t t
40992s,@localedir@,$localedir,;t t
40993s,@docdir@,$docdir,;t t
40994s,@CC@,$CC,;t t
40995s,@CFLAGS@,$CFLAGS,;t t
40996s,@LDFLAGS@,$LDFLAGS,;t t
40997s,@CPPFLAGS@,$CPPFLAGS,;t t
40998s,@ac_ct_CC@,$ac_ct_CC,;t t
40999s,@EXEEXT@,$EXEEXT,;t t
41000s,@OBJEXT@,$OBJEXT,;t t
41001s,@DEPDIR@,$DEPDIR,;t t
41002s,@am__include@,$am__include,;t t
41003s,@am__quote@,$am__quote,;t t
41004s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41005s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41006s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41007s,@CCDEPMODE@,$CCDEPMODE,;t t
41008s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41009s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41010s,@YACC@,$YACC,;t t
41011s,@GCJ@,$GCJ,;t t
41012s,@GCJFLAGS@,$GCJFLAGS,;t t
41013s,@HAVE_GCJ@,$HAVE_GCJ,;t t
41014s,@BUILDJAVAEXE@,$BUILDJAVAEXE,;t t
41015s,@CPP@,$CPP,;t t
41016s,@EGREP@,$EGREP,;t t
41017s,@HAVE_GCJ_IN_PATH@,$HAVE_GCJ_IN_PATH,;t t
41018s,@HAVE_JAVAC_IN_PATH@,$HAVE_JAVAC_IN_PATH,;t t
41019s,@HAVE_JIKES_IN_PATH@,$HAVE_JIKES_IN_PATH,;t t
41020s,@JAVAC@,$JAVAC,;t t
41021s,@CLASSPATH@,$CLASSPATH,;t t
41022s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
41023s,@HAVE_GCJ_C@,$HAVE_GCJ_C,;t t
41024s,@HAVE_JAVAC@,$HAVE_JAVAC,;t t
41025s,@HAVE_JIKES@,$HAVE_JIKES,;t t
41026s,@JAR@,$JAR,;t t
41027s,@BUILDJAVA@,$BUILDJAVA,;t t
41028s,@HAVE_GIJ_IN_PATH@,$HAVE_GIJ_IN_PATH,;t t
41029s,@HAVE_JAVA_IN_PATH@,$HAVE_JAVA_IN_PATH,;t t
41030s,@HAVE_JRE_IN_PATH@,$HAVE_JRE_IN_PATH,;t t
41031s,@HAVE_JVIEW_IN_PATH@,$HAVE_JVIEW_IN_PATH,;t t
41032s,@JAVA@,$JAVA,;t t
41033s,@HAVE_GIJ@,$HAVE_GIJ,;t t
41034s,@HAVE_JAVA@,$HAVE_JAVA,;t t
41035s,@HAVE_JRE@,$HAVE_JRE,;t t
41036s,@HAVE_JVIEW@,$HAVE_JVIEW,;t t
41037s,@TESTJAVA@,$TESTJAVA,;t t
41038s,@CSHARP_CHOICE@,$CSHARP_CHOICE,;t t
41039s,@HAVE_CSCC_IN_PATH@,$HAVE_CSCC_IN_PATH,;t t
41040s,@HAVE_MCS_IN_PATH@,$HAVE_MCS_IN_PATH,;t t
41041s,@HAVE_CSC_IN_PATH@,$HAVE_CSC_IN_PATH,;t t
41042s,@HAVE_CSCC@,$HAVE_CSCC,;t t
41043s,@HAVE_MCS@,$HAVE_MCS,;t t
41044s,@HAVE_CSC@,$HAVE_CSC,;t t
41045s,@BUILDCSHARP@,$BUILDCSHARP,;t t
41046s,@HAVE_ILRUN_IN_PATH@,$HAVE_ILRUN_IN_PATH,;t t
41047s,@HAVE_MONO_IN_PATH@,$HAVE_MONO_IN_PATH,;t t
41048s,@MONO_PATH@,$MONO_PATH,;t t
41049s,@MONO_PATH_SEPARATOR@,$MONO_PATH_SEPARATOR,;t t
41050s,@HAVE_ILRUN@,$HAVE_ILRUN,;t t
41051s,@HAVE_MONO@,$HAVE_MONO,;t t
41052s,@TESTCSHARP@,$TESTCSHARP,;t t
41053s,@build@,$build,;t t
41054s,@build_cpu@,$build_cpu,;t t
41055s,@build_vendor@,$build_vendor,;t t
41056s,@build_os@,$build_os,;t t
41057s,@host@,$host,;t t
41058s,@host_cpu@,$host_cpu,;t t
41059s,@host_vendor@,$host_vendor,;t t
41060s,@host_os@,$host_os,;t t
41061s,@LN_S@,$LN_S,;t t
41062s,@ECHO@,$ECHO,;t t
41063s,@AR@,$AR,;t t
41064s,@ac_ct_AR@,$ac_ct_AR,;t t
41065s,@RANLIB@,$RANLIB,;t t
41066s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41067s,@DLLTOOL@,$DLLTOOL,;t t
41068s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41069s,@AS@,$AS,;t t
41070s,@ac_ct_AS@,$ac_ct_AS,;t t
41071s,@OBJDUMP@,$OBJDUMP,;t t
41072s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41073s,@CXX@,$CXX,;t t
41074s,@CXXFLAGS@,$CXXFLAGS,;t t
41075s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41076s,@CXXDEPMODE@,$CXXDEPMODE,;t t
41077s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
41078s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
41079s,@CXXCPP@,$CXXCPP,;t t
41080s,@F77@,$F77,;t t
41081s,@FFLAGS@,$FFLAGS,;t t
41082s,@ac_ct_F77@,$ac_ct_F77,;t t
41083s,@LIBTOOL@,$LIBTOOL,;t t
41084s,@RELOCATABLE@,$RELOCATABLE,;t t
41085s,@LIBOBJS@,$LIBOBJS,;t t
41086s,@SET_RELOCATABLE@,$SET_RELOCATABLE,;t t
41087s,@RELOCATABLE_VIA_LD_TRUE@,$RELOCATABLE_VIA_LD_TRUE,;t t
41088s,@RELOCATABLE_VIA_LD_FALSE@,$RELOCATABLE_VIA_LD_FALSE,;t t
41089s,@STDBOOL_H@,$STDBOOL_H,;t t
41090s,@HAVE__BOOL@,$HAVE__BOOL,;t t
41091s,@ALLOCA@,$ALLOCA,;t t
41092s,@ALLOCA_H@,$ALLOCA_H,;t t
41093s,@FNMATCH_H@,$FNMATCH_H,;t t
41094s,@GETOPT_H@,$GETOPT_H,;t t
41095s,@LIBGREPOBJS@,$LIBGREPOBJS,;t t
41096s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41097s,@USE_NLS@,$USE_NLS,;t t
41098s,@MSGFMT@,$MSGFMT,;t t
41099s,@GMSGFMT@,$GMSGFMT,;t t
41100s,@XGETTEXT@,$XGETTEXT,;t t
41101s,@MSGMERGE@,$MSGMERGE,;t t
41102s,@GLIBC2@,$GLIBC2,;t t
41103s,@GLIBC21@,$GLIBC21,;t t
41104s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
41105s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
41106s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
41107s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
41108s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
41109s,@LIBICONV@,$LIBICONV,;t t
41110s,@LTLIBICONV@,$LTLIBICONV,;t t
41111s,@INTLBISON@,$INTLBISON,;t t
41112s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
41113s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
41114s,@CATOBJEXT@,$CATOBJEXT,;t t
41115s,@DATADIRNAME@,$DATADIRNAME,;t t
41116s,@INSTOBJEXT@,$INSTOBJEXT,;t t
41117s,@GENCAT@,$GENCAT,;t t
41118s,@INTLOBJS@,$INTLOBJS,;t t
41119s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
41120s,@INTLLIBS@,$INTLLIBS,;t t
41121s,@LIBINTL@,$LIBINTL,;t t
41122s,@LTLIBINTL@,$LTLIBINTL,;t t
41123s,@POSUB@,$POSUB,;t t
41124s,@LIBEXPAT@,$LIBEXPAT,;t t
41125s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
41126s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
41127s,@EMACS@,$EMACS,;t t
41128s,@EMACSLOADPATH@,$EMACSLOADPATH,;t t
41129s,@lispdir@,$lispdir,;t t
41130s,@aclocaldir@,$aclocaldir,;t t
41131s,@DVIPS@,$DVIPS,;t t
41132s,@TEXI2PDF@,$TEXI2PDF,;t t
41133s,@PERL@,$PERL,;t t
41134s,@CROSS_COMPILING@,$CROSS_COMPILING,;t t
41135s,@LOCALE_FR@,$LOCALE_FR,;t t
41136s,@LOCALE_FR_UTF8@,$LOCALE_FR_UTF8,;t t
41137s,@TESTLIBASPRINTF@,$TESTLIBASPRINTF,;t t
41138s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41139CEOF
41140
41141_ACEOF
41142
41143  cat >>$CONFIG_STATUS <<\_ACEOF
41144  # Split the substitutions into bite-sized pieces for seds with
41145  # small command number limits, like on Digital OSF/1 and HP-UX.
41146  ac_max_sed_lines=48
41147  ac_sed_frag=1 # Number of current file.
41148  ac_beg=1 # First line for current file.
41149  ac_end=$ac_max_sed_lines # Line after last line for current file.
41150  ac_more_lines=:
41151  ac_sed_cmds=
41152  while $ac_more_lines; do
41153    if test $ac_beg -gt 1; then
41154      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41155    else
41156      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41157    fi
41158    if test ! -s $tmp/subs.frag; then
41159      ac_more_lines=false
41160    else
41161      # The purpose of the label and of the branching condition is to
41162      # speed up the sed processing (if there are no `@' at all, there
41163      # is no need to browse any of the substitutions).
41164      # These are the two extra sed commands mentioned above.
41165      (echo ':t
41166  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41167      if test -z "$ac_sed_cmds"; then
41168	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41169      else
41170	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41171      fi
41172      ac_sed_frag=`expr $ac_sed_frag + 1`
41173      ac_beg=$ac_end
41174      ac_end=`expr $ac_end + $ac_max_sed_lines`
41175    fi
41176  done
41177  if test -z "$ac_sed_cmds"; then
41178    ac_sed_cmds=cat
41179  fi
41180fi # test -n "$CONFIG_FILES"
41181
41182_ACEOF
41183cat >>$CONFIG_STATUS <<\_ACEOF
41184for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41185  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41186  case $ac_file in
41187  - | *:- | *:-:* ) # input from stdin
41188	cat >$tmp/stdin
41189	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41190	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41191  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41192	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41193  * )   ac_file_in=$ac_file.in ;;
41194  esac
41195
41196  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41197  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41198$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41199	 X"$ac_file" : 'X\(//\)[^/]' \| \
41200	 X"$ac_file" : 'X\(//\)$' \| \
41201	 X"$ac_file" : 'X\(/\)' \| \
41202	 .     : '\(.\)' 2>/dev/null ||
41203echo X"$ac_file" |
41204    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41205  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41206  	  /^X\(\/\/\)$/{ s//\1/; q; }
41207  	  /^X\(\/\).*/{ s//\1/; q; }
41208  	  s/.*/./; q'`
41209  { if $as_mkdir_p; then
41210    mkdir -p "$ac_dir"
41211  else
41212    as_dir="$ac_dir"
41213    as_dirs=
41214    while test ! -d "$as_dir"; do
41215      as_dirs="$as_dir $as_dirs"
41216      as_dir=`(dirname "$as_dir") 2>/dev/null ||
41217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41218	 X"$as_dir" : 'X\(//\)[^/]' \| \
41219	 X"$as_dir" : 'X\(//\)$' \| \
41220	 X"$as_dir" : 'X\(/\)' \| \
41221	 .     : '\(.\)' 2>/dev/null ||
41222echo X"$as_dir" |
41223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41224  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41225  	  /^X\(\/\/\)$/{ s//\1/; q; }
41226  	  /^X\(\/\).*/{ s//\1/; q; }
41227  	  s/.*/./; q'`
41228    done
41229    test ! -n "$as_dirs" || mkdir $as_dirs
41230  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41231echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41232   { (exit 1); exit 1; }; }; }
41233
41234  ac_builddir=.
41235
41236if test "$ac_dir" != .; then
41237  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41238  # A "../" for each directory in $ac_dir_suffix.
41239  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41240else
41241  ac_dir_suffix= ac_top_builddir=
41242fi
41243
41244case $srcdir in
41245  .)  # No --srcdir option.  We are building in place.
41246    ac_srcdir=.
41247    if test -z "$ac_top_builddir"; then
41248       ac_top_srcdir=.
41249    else
41250       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41251    fi ;;
41252  [\\/]* | ?:[\\/]* )  # Absolute path.
41253    ac_srcdir=$srcdir$ac_dir_suffix;
41254    ac_top_srcdir=$srcdir ;;
41255  *) # Relative path.
41256    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41257    ac_top_srcdir=$ac_top_builddir$srcdir ;;
41258esac
41259
41260# Do not use `cd foo && pwd` to compute absolute paths, because
41261# the directories may not exist.
41262case `pwd` in
41263.) ac_abs_builddir="$ac_dir";;
41264*)
41265  case "$ac_dir" in
41266  .) ac_abs_builddir=`pwd`;;
41267  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41268  *) ac_abs_builddir=`pwd`/"$ac_dir";;
41269  esac;;
41270esac
41271case $ac_abs_builddir in
41272.) ac_abs_top_builddir=${ac_top_builddir}.;;
41273*)
41274  case ${ac_top_builddir}. in
41275  .) ac_abs_top_builddir=$ac_abs_builddir;;
41276  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41277  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41278  esac;;
41279esac
41280case $ac_abs_builddir in
41281.) ac_abs_srcdir=$ac_srcdir;;
41282*)
41283  case $ac_srcdir in
41284  .) ac_abs_srcdir=$ac_abs_builddir;;
41285  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41286  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41287  esac;;
41288esac
41289case $ac_abs_builddir in
41290.) ac_abs_top_srcdir=$ac_top_srcdir;;
41291*)
41292  case $ac_top_srcdir in
41293  .) ac_abs_top_srcdir=$ac_abs_builddir;;
41294  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41295  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41296  esac;;
41297esac
41298
41299
41300  case $INSTALL in
41301  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41302  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41303  esac
41304
41305  if test x"$ac_file" != x-; then
41306    { echo "$as_me:$LINENO: creating $ac_file" >&5
41307echo "$as_me: creating $ac_file" >&6;}
41308    rm -f "$ac_file"
41309  fi
41310  # Let's still pretend it is `configure' which instantiates (i.e., don't
41311  # use $as_me), people would be surprised to read:
41312  #    /* config.h.  Generated by config.status.  */
41313  if test x"$ac_file" = x-; then
41314    configure_input=
41315  else
41316    configure_input="$ac_file.  "
41317  fi
41318  configure_input=$configure_input"Generated from `echo $ac_file_in |
41319				     sed 's,.*/,,'` by configure."
41320
41321  # First look for the input files in the build tree, otherwise in the
41322  # src tree.
41323  ac_file_inputs=`IFS=:
41324    for f in $ac_file_in; do
41325      case $f in
41326      -) echo $tmp/stdin ;;
41327      [\\/$]*)
41328	 # Absolute (can't be DOS-style, as IFS=:)
41329	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41330echo "$as_me: error: cannot find input file: $f" >&2;}
41331   { (exit 1); exit 1; }; }
41332	 echo "$f";;
41333      *) # Relative
41334	 if test -f "$f"; then
41335	   # Build tree
41336	   echo "$f"
41337	 elif test -f "$srcdir/$f"; then
41338	   # Source tree
41339	   echo "$srcdir/$f"
41340	 else
41341	   # /dev/null tree
41342	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41343echo "$as_me: error: cannot find input file: $f" >&2;}
41344   { (exit 1); exit 1; }; }
41345	 fi;;
41346      esac
41347    done` || { (exit 1); exit 1; }
41348_ACEOF
41349cat >>$CONFIG_STATUS <<_ACEOF
41350  sed "$ac_vpsub
41351$extrasub
41352_ACEOF
41353cat >>$CONFIG_STATUS <<\_ACEOF
41354:t
41355/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41356s,@configure_input@,$configure_input,;t t
41357s,@srcdir@,$ac_srcdir,;t t
41358s,@abs_srcdir@,$ac_abs_srcdir,;t t
41359s,@top_srcdir@,$ac_top_srcdir,;t t
41360s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41361s,@builddir@,$ac_builddir,;t t
41362s,@abs_builddir@,$ac_abs_builddir,;t t
41363s,@top_builddir@,$ac_top_builddir,;t t
41364s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41365s,@INSTALL@,$ac_INSTALL,;t t
41366" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41367  rm -f $tmp/stdin
41368  if test x"$ac_file" != x-; then
41369    mv $tmp/out $ac_file
41370  else
41371    cat $tmp/out
41372    rm -f $tmp/out
41373  fi
41374
41375  # Run the commands associated with the file.
41376  case $ac_file in
41377    doc/Makefile )
41378  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41379  mv $ac_file.tmp $ac_file
41380
41381
41382  sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
41383  mv $ac_file.tmp $ac_file
41384
41385
41386  sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp
41387  mv $ac_file.tmp $ac_file
41388 ;;
41389    intl/Makefile )
41390  # Change srcdir variable so that it points to ../gettext-runtime/intl.
41391  sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
41392    < intl/Makefile > intl/Makefile.tmp
41393  mv intl/Makefile.tmp intl/Makefile
41394   ;;
41395    lib/Makefile )
41396  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41397  mv $ac_file.tmp $ac_file
41398 ;;
41399    libgrep/Makefile )
41400  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41401  mv $ac_file.tmp $ac_file
41402 ;;
41403    libuniname/Makefile )
41404  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41405  mv $ac_file.tmp $ac_file
41406 ;;
41407    src/Makefile )
41408  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41409  mv $ac_file.tmp $ac_file
41410 ;;
41411    misc/gettextize ) chmod a+x misc/gettextize ;;
41412    misc/autopoint ) chmod a+x misc/autopoint ;;
41413    man/Makefile )
41414  sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
41415  mv $ac_file.tmp $ac_file
41416 ;;
41417    tests/Makefile )
41418  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41419  mv $ac_file.tmp $ac_file
41420 ;;
41421    examples/Makefile )
41422  sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
41423  mv $ac_file.tmp $ac_file
41424 ;;
41425    examples/po/Makefile )
41426  # When this code is run, in config.status, two variables have already been
41427  # set:
41428  # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
41429  # - LINGUAS is the value of the environment variable LINGUAS at configure
41430  #   time.
41431
41432  # Adjust a relative srcdir.
41433  ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
41434  ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
41435  ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
41436  # In autoconf-2.13 it is called $ac_given_srcdir.
41437  # In autoconf-2.50 it is called $srcdir.
41438  test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
41439  case "$ac_given_srcdir" in
41440    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
41441    /*) top_srcdir="$ac_given_srcdir" ;;
41442    *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
41443  esac
41444
41445  # Find a way to echo strings without interpreting backslash.
41446  if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
41447    gt_echo='echo'
41448  else
41449    if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
41450      gt_echo='printf %s\n'
41451    else
41452      echo_func () {
41453        cat <<EOT
41454
41455EOT
41456      }
41457      gt_echo='echo_func'
41458    fi
41459  fi
41460
41461  # A sed script that extracts the value of VARIABLE from a Makefile.
41462  sed_x_variable='
41463# Test if the hold space is empty.
41464x
41465s/P/P/
41466x
41467ta
41468# Yes it was empty. Look if we have the expected variable definition.
41469/^[	 ]*VARIABLE[	 ]*=/{
41470  # Seen the first line of the variable definition.
41471  s/^[	 ]*VARIABLE[	 ]*=//
41472  ba
41473}
41474bd
41475:a
41476# Here we are processing a line from the variable definition.
41477# Remove comment, more precisely replace it with a space.
41478s/#.*$/ /
41479# See if the line ends in a backslash.
41480tb
41481:b
41482s/\\$//
41483# Print the line, without the trailing backslash.
41484p
41485tc
41486# There was no trailing backslash. The end of the variable definition is
41487# reached. Clear the hold space.
41488s/^.*$//
41489x
41490bd
41491:c
41492# A trailing backslash means that the variable definition continues in the
41493# next line. Put a nonempty string into the hold space to indicate this.
41494s/^.*$/P/
41495x
41496:d
41497'
41498
41499  # Set POTFILES to the value of the Makefile variable POTFILES.
41500  sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
41501  POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
41502  # Compute POTFILES_DEPS as
41503  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
41504  POTFILES_DEPS=
41505  for file in $POTFILES; do
41506    POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
41507  done
41508  POMAKEFILEDEPS=""
41509
41510  if test -n "$OBSOLETE_ALL_LINGUAS"; then
41511    test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
41512  fi
41513  if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
41514    # The LINGUAS file contains the set of available languages.
41515    ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
41516    POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
41517  else
41518    # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
41519    sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
41520    ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
41521  fi
41522  # Hide the ALL_LINGUAS assigment from automake.
41523  eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
41524  # Compute POFILES
41525  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
41526  # Compute UPDATEPOFILES
41527  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
41528  # Compute DUMMYPOFILES
41529  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
41530  # Compute GMOFILES
41531  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
41532  # Compute PROPERTIESFILES
41533  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
41534  # Compute CLASSFILES
41535  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
41536  # Compute QMFILES
41537  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
41538  # Compute MSGFILES
41539  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
41540  # Compute RESOURCESDLLFILES
41541  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
41542  case "$ac_given_srcdir" in
41543    .) srcdirpre= ;;
41544    *) srcdirpre='$(srcdir)/' ;;
41545  esac
41546  POFILES=
41547  UPDATEPOFILES=
41548  DUMMYPOFILES=
41549  GMOFILES=
41550  PROPERTIESFILES=
41551  CLASSFILES=
41552  QMFILES=
41553  MSGFILES=
41554  RESOURCESDLLFILES=
41555  for lang in $ALL_LINGUAS; do
41556    POFILES="$POFILES $srcdirpre$lang.po"
41557    UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
41558    DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
41559    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
41560    PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
41561    CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
41562    QMFILES="$QMFILES $srcdirpre$lang.qm"
41563    frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
41564    MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
41565    frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
41566    RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
41567  done
41568  # CATALOGS depends on both $ac_dir and the user's LINGUAS
41569  # environment variable.
41570  INST_LINGUAS=
41571  if test -n "$ALL_LINGUAS"; then
41572    for presentlang in $ALL_LINGUAS; do
41573      useit=no
41574      if test "%UNSET%" != "$LINGUAS"; then
41575        desiredlanguages="$LINGUAS"
41576      else
41577        desiredlanguages="$ALL_LINGUAS"
41578      fi
41579      for desiredlang in $desiredlanguages; do
41580        # Use the presentlang catalog if desiredlang is
41581        #   a. equal to presentlang, or
41582        #   b. a variant of presentlang (because in this case,
41583        #      presentlang can be used as a fallback for messages
41584        #      which are not translated in the desiredlang catalog).
41585        case "$desiredlang" in
41586          "$presentlang"*) useit=yes;;
41587        esac
41588      done
41589      if test $useit = yes; then
41590        INST_LINGUAS="$INST_LINGUAS $presentlang"
41591      fi
41592    done
41593  fi
41594  CATALOGS=
41595  JAVACATALOGS=
41596  QTCATALOGS=
41597  TCLCATALOGS=
41598  CSHARPCATALOGS=
41599  if test -n "$INST_LINGUAS"; then
41600    for lang in $INST_LINGUAS; do
41601      CATALOGS="$CATALOGS $lang.gmo"
41602      JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
41603      QTCATALOGS="$QTCATALOGS $lang.qm"
41604      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
41605      TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
41606      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
41607      CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
41608    done
41609  fi
41610
41611  sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
41612  if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
41613    # Add dependencies that cannot be formulated as a simple suffix rule.
41614    for lang in $ALL_LINGUAS; do
41615      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
41616      cat >> "$ac_file.tmp" <<EOF
41617$frobbedlang.msg: $lang.po
41618	@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
41619	\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
41620EOF
41621    done
41622  fi
41623  if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
41624    # Add dependencies that cannot be formulated as a simple suffix rule.
41625    for lang in $ALL_LINGUAS; do
41626      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
41627      cat >> "$ac_file.tmp" <<EOF
41628$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
41629	@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
41630	\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
41631EOF
41632    done
41633  fi
41634  if test -n "$POMAKEFILEDEPS"; then
41635    cat >> "$ac_file.tmp" <<EOF
41636Makefile: $POMAKEFILEDEPS
41637EOF
41638  fi
41639  mv "$ac_file.tmp" "$ac_file"
41640 ;;
41641  esac
41642done
41643_ACEOF
41644cat >>$CONFIG_STATUS <<\_ACEOF
41645
41646#
41647# CONFIG_HEADER section.
41648#
41649
41650# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41651# NAME is the cpp macro being defined and VALUE is the value it is being given.
41652#
41653# ac_d sets the value in "#define NAME VALUE" lines.
41654ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
41655ac_dB='[	 ].*$,\1#\2'
41656ac_dC=' '
41657ac_dD=',;t'
41658# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41659ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
41660ac_uB='$,\1#\2define\3'
41661ac_uC=' '
41662ac_uD=',;t'
41663
41664for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41665  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41666  case $ac_file in
41667  - | *:- | *:-:* ) # input from stdin
41668	cat >$tmp/stdin
41669	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41670	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41671  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41672	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41673  * )   ac_file_in=$ac_file.in ;;
41674  esac
41675
41676  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41677echo "$as_me: creating $ac_file" >&6;}
41678
41679  # First look for the input files in the build tree, otherwise in the
41680  # src tree.
41681  ac_file_inputs=`IFS=:
41682    for f in $ac_file_in; do
41683      case $f in
41684      -) echo $tmp/stdin ;;
41685      [\\/$]*)
41686	 # Absolute (can't be DOS-style, as IFS=:)
41687	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41688echo "$as_me: error: cannot find input file: $f" >&2;}
41689   { (exit 1); exit 1; }; }
41690	 # Do quote $f, to prevent DOS paths from being IFS'd.
41691	 echo "$f";;
41692      *) # Relative
41693	 if test -f "$f"; then
41694	   # Build tree
41695	   echo "$f"
41696	 elif test -f "$srcdir/$f"; then
41697	   # Source tree
41698	   echo "$srcdir/$f"
41699	 else
41700	   # /dev/null tree
41701	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41702echo "$as_me: error: cannot find input file: $f" >&2;}
41703   { (exit 1); exit 1; }; }
41704	 fi;;
41705      esac
41706    done` || { (exit 1); exit 1; }
41707  # Remove the trailing spaces.
41708  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
41709
41710_ACEOF
41711
41712# Transform confdefs.h into two sed scripts, `conftest.defines' and
41713# `conftest.undefs', that substitutes the proper values into
41714# config.h.in to produce config.h.  The first handles `#define'
41715# templates, and the second `#undef' templates.
41716# And first: Protect against being on the right side of a sed subst in
41717# config.status.  Protect against being in an unquoted here document
41718# in config.status.
41719rm -f conftest.defines conftest.undefs
41720# Using a here document instead of a string reduces the quoting nightmare.
41721# Putting comments in sed scripts is not portable.
41722#
41723# `end' is used to avoid that the second main sed command (meant for
41724# 0-ary CPP macros) applies to n-ary macro definitions.
41725# See the Autoconf documentation for `clear'.
41726cat >confdef2sed.sed <<\_ACEOF
41727s/[\\&,]/\\&/g
41728s,[\\$`],\\&,g
41729t clear
41730: clear
41731s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41732t end
41733s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41734: end
41735_ACEOF
41736# If some macros were called several times there might be several times
41737# the same #defines, which is useless.  Nevertheless, we may not want to
41738# sort them, since we want the *last* AC-DEFINE to be honored.
41739uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41740sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41741rm -f confdef2sed.sed
41742
41743# This sed command replaces #undef with comments.  This is necessary, for
41744# example, in the case of _POSIX_SOURCE, which is predefined and required
41745# on some systems where configure will not decide to define it.
41746cat >>conftest.undefs <<\_ACEOF
41747s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41748_ACEOF
41749
41750# Break up conftest.defines because some shells have a limit on the size
41751# of here documents, and old seds have small limits too (100 cmds).
41752echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41753echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41754echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41755echo '  :' >>$CONFIG_STATUS
41756rm -f conftest.tail
41757while grep . conftest.defines >/dev/null
41758do
41759  # Write a limited-size here document to $tmp/defines.sed.
41760  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41761  # Speed up: don't consider the non `#define' lines.
41762  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
41763  # Work around the forget-to-reset-the-flag bug.
41764  echo 't clr' >>$CONFIG_STATUS
41765  echo ': clr' >>$CONFIG_STATUS
41766  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41767  echo 'CEOF
41768  sed -f $tmp/defines.sed $tmp/in >$tmp/out
41769  rm -f $tmp/in
41770  mv $tmp/out $tmp/in
41771' >>$CONFIG_STATUS
41772  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41773  rm -f conftest.defines
41774  mv conftest.tail conftest.defines
41775done
41776rm -f conftest.defines
41777echo '  fi # grep' >>$CONFIG_STATUS
41778echo >>$CONFIG_STATUS
41779
41780# Break up conftest.undefs because some shells have a limit on the size
41781# of here documents, and old seds have small limits too (100 cmds).
41782echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41783rm -f conftest.tail
41784while grep . conftest.undefs >/dev/null
41785do
41786  # Write a limited-size here document to $tmp/undefs.sed.
41787  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41788  # Speed up: don't consider the non `#undef'
41789  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
41790  # Work around the forget-to-reset-the-flag bug.
41791  echo 't clr' >>$CONFIG_STATUS
41792  echo ': clr' >>$CONFIG_STATUS
41793  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41794  echo 'CEOF
41795  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41796  rm -f $tmp/in
41797  mv $tmp/out $tmp/in
41798' >>$CONFIG_STATUS
41799  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41800  rm -f conftest.undefs
41801  mv conftest.tail conftest.undefs
41802done
41803rm -f conftest.undefs
41804
41805cat >>$CONFIG_STATUS <<\_ACEOF
41806  # Let's still pretend it is `configure' which instantiates (i.e., don't
41807  # use $as_me), people would be surprised to read:
41808  #    /* config.h.  Generated by config.status.  */
41809  if test x"$ac_file" = x-; then
41810    echo "/* Generated by configure.  */" >$tmp/config.h
41811  else
41812    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
41813  fi
41814  cat $tmp/in >>$tmp/config.h
41815  rm -f $tmp/in
41816  if test x"$ac_file" != x-; then
41817    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41818      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41819echo "$as_me: $ac_file is unchanged" >&6;}
41820    else
41821      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41822$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41823	 X"$ac_file" : 'X\(//\)[^/]' \| \
41824	 X"$ac_file" : 'X\(//\)$' \| \
41825	 X"$ac_file" : 'X\(/\)' \| \
41826	 .     : '\(.\)' 2>/dev/null ||
41827echo X"$ac_file" |
41828    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41829  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41830  	  /^X\(\/\/\)$/{ s//\1/; q; }
41831  	  /^X\(\/\).*/{ s//\1/; q; }
41832  	  s/.*/./; q'`
41833      { if $as_mkdir_p; then
41834    mkdir -p "$ac_dir"
41835  else
41836    as_dir="$ac_dir"
41837    as_dirs=
41838    while test ! -d "$as_dir"; do
41839      as_dirs="$as_dir $as_dirs"
41840      as_dir=`(dirname "$as_dir") 2>/dev/null ||
41841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41842	 X"$as_dir" : 'X\(//\)[^/]' \| \
41843	 X"$as_dir" : 'X\(//\)$' \| \
41844	 X"$as_dir" : 'X\(/\)' \| \
41845	 .     : '\(.\)' 2>/dev/null ||
41846echo X"$as_dir" |
41847    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41848  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41849  	  /^X\(\/\/\)$/{ s//\1/; q; }
41850  	  /^X\(\/\).*/{ s//\1/; q; }
41851  	  s/.*/./; q'`
41852    done
41853    test ! -n "$as_dirs" || mkdir $as_dirs
41854  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41855echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41856   { (exit 1); exit 1; }; }; }
41857
41858      rm -f $ac_file
41859      mv $tmp/config.h $ac_file
41860    fi
41861  else
41862    cat $tmp/config.h
41863    rm -f $tmp/config.h
41864  fi
41865# Compute $ac_file's index in $config_headers.
41866_am_stamp_count=1
41867for _am_header in $config_headers :; do
41868  case $_am_header in
41869    $ac_file | $ac_file:* )
41870      break ;;
41871    * )
41872      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41873  esac
41874done
41875echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
41876$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41877	 X$ac_file : 'X\(//\)[^/]' \| \
41878	 X$ac_file : 'X\(//\)$' \| \
41879	 X$ac_file : 'X\(/\)' \| \
41880	 .     : '\(.\)' 2>/dev/null ||
41881echo X$ac_file |
41882    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41883  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41884  	  /^X\(\/\/\)$/{ s//\1/; q; }
41885  	  /^X\(\/\).*/{ s//\1/; q; }
41886  	  s/.*/./; q'`/stamp-h$_am_stamp_count
41887done
41888_ACEOF
41889cat >>$CONFIG_STATUS <<\_ACEOF
41890
41891#
41892# CONFIG_COMMANDS section.
41893#
41894for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41895  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41896  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41897  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41898$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41899	 X"$ac_dest" : 'X\(//\)[^/]' \| \
41900	 X"$ac_dest" : 'X\(//\)$' \| \
41901	 X"$ac_dest" : 'X\(/\)' \| \
41902	 .     : '\(.\)' 2>/dev/null ||
41903echo X"$ac_dest" |
41904    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41905  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41906  	  /^X\(\/\/\)$/{ s//\1/; q; }
41907  	  /^X\(\/\).*/{ s//\1/; q; }
41908  	  s/.*/./; q'`
41909  { if $as_mkdir_p; then
41910    mkdir -p "$ac_dir"
41911  else
41912    as_dir="$ac_dir"
41913    as_dirs=
41914    while test ! -d "$as_dir"; do
41915      as_dirs="$as_dir $as_dirs"
41916      as_dir=`(dirname "$as_dir") 2>/dev/null ||
41917$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41918	 X"$as_dir" : 'X\(//\)[^/]' \| \
41919	 X"$as_dir" : 'X\(//\)$' \| \
41920	 X"$as_dir" : 'X\(/\)' \| \
41921	 .     : '\(.\)' 2>/dev/null ||
41922echo X"$as_dir" |
41923    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41924  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41925  	  /^X\(\/\/\)$/{ s//\1/; q; }
41926  	  /^X\(\/\).*/{ s//\1/; q; }
41927  	  s/.*/./; q'`
41928    done
41929    test ! -n "$as_dirs" || mkdir $as_dirs
41930  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41931echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41932   { (exit 1); exit 1; }; }; }
41933
41934  ac_builddir=.
41935
41936if test "$ac_dir" != .; then
41937  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41938  # A "../" for each directory in $ac_dir_suffix.
41939  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41940else
41941  ac_dir_suffix= ac_top_builddir=
41942fi
41943
41944case $srcdir in
41945  .)  # No --srcdir option.  We are building in place.
41946    ac_srcdir=.
41947    if test -z "$ac_top_builddir"; then
41948       ac_top_srcdir=.
41949    else
41950       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41951    fi ;;
41952  [\\/]* | ?:[\\/]* )  # Absolute path.
41953    ac_srcdir=$srcdir$ac_dir_suffix;
41954    ac_top_srcdir=$srcdir ;;
41955  *) # Relative path.
41956    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41957    ac_top_srcdir=$ac_top_builddir$srcdir ;;
41958esac
41959
41960# Do not use `cd foo && pwd` to compute absolute paths, because
41961# the directories may not exist.
41962case `pwd` in
41963.) ac_abs_builddir="$ac_dir";;
41964*)
41965  case "$ac_dir" in
41966  .) ac_abs_builddir=`pwd`;;
41967  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41968  *) ac_abs_builddir=`pwd`/"$ac_dir";;
41969  esac;;
41970esac
41971case $ac_abs_builddir in
41972.) ac_abs_top_builddir=${ac_top_builddir}.;;
41973*)
41974  case ${ac_top_builddir}. in
41975  .) ac_abs_top_builddir=$ac_abs_builddir;;
41976  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41977  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41978  esac;;
41979esac
41980case $ac_abs_builddir in
41981.) ac_abs_srcdir=$ac_srcdir;;
41982*)
41983  case $ac_srcdir in
41984  .) ac_abs_srcdir=$ac_abs_builddir;;
41985  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41986  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41987  esac;;
41988esac
41989case $ac_abs_builddir in
41990.) ac_abs_top_srcdir=$ac_top_srcdir;;
41991*)
41992  case $ac_top_srcdir in
41993  .) ac_abs_top_srcdir=$ac_abs_builddir;;
41994  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41995  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41996  esac;;
41997esac
41998
41999
42000  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42001echo "$as_me: executing $ac_dest commands" >&6;}
42002  case $ac_dest in
42003    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42004  # Strip MF so we end up with the name of the file.
42005  mf=`echo "$mf" | sed -e 's/:.*$//'`
42006  # Check whether this is an Automake generated Makefile or not.
42007  # We used to match only the files named `Makefile.in', but
42008  # some people rename them; so instead we look at the file content.
42009  # Grep'ing the first line is not enough: some people post-process
42010  # each Makefile.in and add a new line on top of each file to say so.
42011  # So let's grep whole file.
42012  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42013    dirpart=`(dirname "$mf") 2>/dev/null ||
42014$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42015	 X"$mf" : 'X\(//\)[^/]' \| \
42016	 X"$mf" : 'X\(//\)$' \| \
42017	 X"$mf" : 'X\(/\)' \| \
42018	 .     : '\(.\)' 2>/dev/null ||
42019echo X"$mf" |
42020    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42021  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42022  	  /^X\(\/\/\)$/{ s//\1/; q; }
42023  	  /^X\(\/\).*/{ s//\1/; q; }
42024  	  s/.*/./; q'`
42025  else
42026    continue
42027  fi
42028  # Extract the definition of DEPDIR, am__include, and am__quote
42029  # from the Makefile without running `make'.
42030  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42031  test -z "$DEPDIR" && continue
42032  am__include=`sed -n 's/^am__include = //p' < "$mf"`
42033  test -z "am__include" && continue
42034  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42035  # When using ansi2knr, U may be empty or an underscore; expand it
42036  U=`sed -n 's/^U = //p' < "$mf"`
42037  # Find all dependency output files, they are included files with
42038  # $(DEPDIR) in their names.  We invoke sed twice because it is the
42039  # simplest approach to changing $(DEPDIR) to its actual value in the
42040  # expansion.
42041  for file in `sed -n "
42042    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42043       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42044    # Make sure the directory exists.
42045    test -f "$dirpart/$file" && continue
42046    fdir=`(dirname "$file") 2>/dev/null ||
42047$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42048	 X"$file" : 'X\(//\)[^/]' \| \
42049	 X"$file" : 'X\(//\)$' \| \
42050	 X"$file" : 'X\(/\)' \| \
42051	 .     : '\(.\)' 2>/dev/null ||
42052echo X"$file" |
42053    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42054  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42055  	  /^X\(\/\/\)$/{ s//\1/; q; }
42056  	  /^X\(\/\).*/{ s//\1/; q; }
42057  	  s/.*/./; q'`
42058    { if $as_mkdir_p; then
42059    mkdir -p $dirpart/$fdir
42060  else
42061    as_dir=$dirpart/$fdir
42062    as_dirs=
42063    while test ! -d "$as_dir"; do
42064      as_dirs="$as_dir $as_dirs"
42065      as_dir=`(dirname "$as_dir") 2>/dev/null ||
42066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42067	 X"$as_dir" : 'X\(//\)[^/]' \| \
42068	 X"$as_dir" : 'X\(//\)$' \| \
42069	 X"$as_dir" : 'X\(/\)' \| \
42070	 .     : '\(.\)' 2>/dev/null ||
42071echo X"$as_dir" |
42072    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42073  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42074  	  /^X\(\/\/\)$/{ s//\1/; q; }
42075  	  /^X\(\/\).*/{ s//\1/; q; }
42076  	  s/.*/./; q'`
42077    done
42078    test ! -n "$as_dirs" || mkdir $as_dirs
42079  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42080echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42081   { (exit 1); exit 1; }; }; }
42082
42083    # echo "creating $dirpart/$file"
42084    echo '# dummy' > "$dirpart/$file"
42085  done
42086done
42087 ;;
42088    default-1 )
42089    for ac_file in $CONFIG_FILES; do
42090      # Support "outfile[:infile[:infile...]]"
42091      case "$ac_file" in
42092        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
42093      esac
42094      # PO directories have a Makefile.in generated from Makefile.in.in.
42095      case "$ac_file" in */Makefile.in)
42096        # Adjust a relative srcdir.
42097        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42098        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
42099        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42100        # In autoconf-2.13 it is called $ac_given_srcdir.
42101        # In autoconf-2.50 it is called $srcdir.
42102        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
42103        case "$ac_given_srcdir" in
42104          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
42105          /*) top_srcdir="$ac_given_srcdir" ;;
42106          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
42107        esac
42108        # Treat a directory as a PO directory if and only if it has a
42109        # POTFILES.in file. This allows packages to have multiple PO
42110        # directories under different names or in different locations.
42111        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42112          rm -f "$ac_dir/POTFILES"
42113          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
42114          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42115          POMAKEFILEDEPS="POTFILES.in"
42116          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
42117          # on $ac_dir but don't depend on user-specified configuration
42118          # parameters.
42119          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42120            # The LINGUAS file contains the set of available languages.
42121            if test -n "$OBSOLETE_ALL_LINGUAS"; then
42122              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
42123            fi
42124            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42125            # Hide the ALL_LINGUAS assigment from automake.
42126            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42127            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
42128          else
42129            # The set of available languages was given in configure.in.
42130            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
42131          fi
42132          # Compute POFILES
42133          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
42134          # Compute UPDATEPOFILES
42135          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
42136          # Compute DUMMYPOFILES
42137          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
42138          # Compute GMOFILES
42139          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
42140          case "$ac_given_srcdir" in
42141            .) srcdirpre= ;;
42142            *) srcdirpre='$(srcdir)/' ;;
42143          esac
42144          POFILES=
42145          UPDATEPOFILES=
42146          DUMMYPOFILES=
42147          GMOFILES=
42148          for lang in $ALL_LINGUAS; do
42149            POFILES="$POFILES $srcdirpre$lang.po"
42150            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
42151            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
42152            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
42153          done
42154          # CATALOGS depends on both $ac_dir and the user's LINGUAS
42155          # environment variable.
42156          INST_LINGUAS=
42157          if test -n "$ALL_LINGUAS"; then
42158            for presentlang in $ALL_LINGUAS; do
42159              useit=no
42160              if test "%UNSET%" != "$LINGUAS"; then
42161                desiredlanguages="$LINGUAS"
42162              else
42163                desiredlanguages="$ALL_LINGUAS"
42164              fi
42165              for desiredlang in $desiredlanguages; do
42166                # Use the presentlang catalog if desiredlang is
42167                #   a. equal to presentlang, or
42168                #   b. a variant of presentlang (because in this case,
42169                #      presentlang can be used as a fallback for messages
42170                #      which are not translated in the desiredlang catalog).
42171                case "$desiredlang" in
42172                  "$presentlang"*) useit=yes;;
42173                esac
42174              done
42175              if test $useit = yes; then
42176                INST_LINGUAS="$INST_LINGUAS $presentlang"
42177              fi
42178            done
42179          fi
42180          CATALOGS=
42181          if test -n "$INST_LINGUAS"; then
42182            for lang in $INST_LINGUAS; do
42183              CATALOGS="$CATALOGS $lang.gmo"
42184            done
42185          fi
42186          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
42187          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
42188          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
42189            if test -f "$f"; then
42190              case "$f" in
42191                *.orig | *.bak | *~) ;;
42192                *) cat "$f" >> "$ac_dir/Makefile" ;;
42193              esac
42194            fi
42195          done
42196        fi
42197        ;;
42198      esac
42199    done ;;
42200  esac
42201done
42202_ACEOF
42203
42204cat >>$CONFIG_STATUS <<\_ACEOF
42205
42206{ (exit 0); exit 0; }
42207_ACEOF
42208chmod +x $CONFIG_STATUS
42209ac_clean_files=$ac_clean_files_save
42210
42211
42212# configure is writing to config.log, and then calls config.status.
42213# config.status does its own redirection, appending to config.log.
42214# Unfortunately, on DOS this fails, as config.log is still kept open
42215# by configure, so config.status won't be able to write to it; its
42216# output is simply discarded.  So we exec the FD to /dev/null,
42217# effectively closing config.log, so it can be properly (re)opened and
42218# appended to by config.status.  When coming back to configure, we
42219# need to make the FD available again.
42220if test "$no_create" != yes; then
42221  ac_cs_success=:
42222  ac_config_status_args=
42223  test "$silent" = yes &&
42224    ac_config_status_args="$ac_config_status_args --quiet"
42225  exec 5>/dev/null
42226  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42227  exec 5>>config.log
42228  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42229  # would make configure fail if this is the last instruction.
42230  $ac_cs_success || { (exit 1); exit 1; }
42231fi
42232
42233